Archive for 2016年4月27日


centos6.7安全更新

列出可用的安全更新 [only security update]
# yum –security check-update 或 yum list updates –security

只安装最安全的安全更新,忽略所有可能包含不安全新功能的包
# yum –security update-minimal

只安装安全更新,新包中可能包含不安全的新功能
# yum update –security

列出当前系统所有可用更新 [bugfix, enhancement, and security update]
# yum list-security 或 yum updateinfo list

检查特定软件有无更新 [bugfix, enhancement, and security update]
# yum info-security software_name 或 yum list-security software_name

列出系统中可用的不同severity的security补丁
# yum updateinfo list –sec-severity=Moderate
# yum updateinfo list –sec-severity=Important
# yum updateinfo list –sec-severity=Crtical

安装chromium
# cd /etc/yum.repos.d
# wget http://people.centos.org/hughesjr/chromium/6/chromium-el6.repo
# yum install chromium

安装shadowsocks客户端
#安装Python版
# yum install epel-release
#yum install python-setuptools && easy_install pip
# python-pip
# pip install –upgrade pip
# pip install shadowsocks

# 安装C libev 版的shadowsocks
yum install shadowsocks-libev
—————
GUI Client
you can download the corresponding yum repo from https://copr.fedoraproject.org/coprs/librehat/shadowsocks/ and put it under /etc/yum.repos.d/, then install shadowsocks-qt5 via yum

===============
用法:

前台运行
ssserver -p 443 -k password -m rc4-md5

后台运行
sudo ssserver -p 443 -k password -m rc4-md5 –user nobody -d start

停止
sudo ssserver -d stop

查看日志
less /var/log/shadowsocks.log

软件选项帮助
ssserver -h

———————
# 编辑配置文件
sudo vim /etc/shadowsocks-libev/config.json

# 启动服务
sudo /etc/init.d/shadowsocks-libev start # for sysvinit, or
sudo systemctl start shadowsocks-libev # for systemd

# 命令行参数
ss-local -s server_name -p server_port -l local_port -k password -m bf-cfb
ss-server -p server_port -k password -m bf-cfb
ss-server -c /etc/fukei/config.json

shadowsocks-local -s server_address -p server_port -k password -m aes-128-cfb -c config.json -b local_address -l local_port
shadowsocks-server -p server_port -k password -m aes-128-cfb -c config.json -t timeout