标签 debian 下的文章

Debian 10 MariaDB 初始化及启用密码验证

设置MariaDB root密码 # mysql_secure_installation   
登录MariaDB,启用mysql_native_password插件
# mysql

mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;

重启数据库完成。

debian 8 python SS server

apt-get install python-pip libsodium-dev  
pip install shadowsocks

创建配置文件/etc/shadowsocks.json

{
    "server":"my_server_ip",
    "server_port":8388,
    "local_address": "127.0.0.1",
    "local_port":1080,
    "password":"mypassword",
    "timeout":300,
    "method":"chacha20",
    "fast_open": false
}

后台运行ssserver

ssserver -c /etc/shadowsocks.json -d start (启动)
ssserver -c /etc/shadowsocks.json -d stop  (停止)

开机启动vi /etc/rc.local 在exit 0前添加启动命令

 

#END#

Ralink for linux Usb无线网卡驱动编译

已测型号:RT3070/RT3072/RT3370/RT5370/RT5372/RT3072

下载驱动包:http://pan.baidu.com/s/1wAGma

编译工具和依赖

debian/ubuntu:apt-get install make gcc build-essential dkms -y

opensuse :zypper in make gcc dkms -y

(其他linux发行版自行寻找以上依赖包名称,以下步骤相同)

解压并且进入目录2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO

cd 2011_0719_RT3070_RT3370_RT5370_RT5372_Linux_STA_V2.5.0.3_DPO
#编辑os/linux/config.mk开启Wpa Supplicant
vi os/linux/config.mk

# Support Wpa_Supplicant
HAS_WPA_SUPPLICANT=y
# Support Native WpaSupplicant for Network Maganger
HAS_NATIVE_WPA_SUPPLICANT_SUPPORT=y
编译
make
make install

编译完成后重启网络管理器

/etc/init.d/network-manager restart

gdm 自动登录 gnome

编辑GDM的配置文件 /etc/gdm/custom.conf

AutomaticLoginEnable= true

AutomaticLogin= username  #(username=你要自动登录的用户,不能使用大写,例Lyp,填lyp)

将以上两行前面的#去掉。