Debian 6 x86 minimal下常用Linux命令详解

经常用到的命令在这里保存一下。有空写个脚本。另外,试了一下finalspeed,堪称神器。

更新一下源,放在/etc/apt/sources.list。完了以后apt-get update更新一下。(其实这是debian8的源,debian6的源似乎都已经不维护了,全是404)

deb http://ftp.us.debian.org/debian jessie main contrib non-free
deb-src http://ftp.us.debian.org/debian jessie main contrib non-free

deb http://ftp.us.debian.org/debian proposed-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian proposed-updates main contrib non-free

deb http://ftp.us.debian.org/debian jessie-proposed-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian jessie-proposed-updates main contrib non-free

deb http://ftp.us.debian.org/debian jessie-updates main contrib non-free
deb-src http://ftp.us.debian.org/debian jessie-updates main contrib non-free

#deb http://ftp.us.debian.org/debian rc-buggy main contrib non-free
#deb-src http://ftp.us.debian.org/debian rc-buggy main contrib non-free

deb http://ftp.us.debian.org/debian-backports jessie-backports main contrib non-free
deb-src http://ftp.us.debian.org/debian-backports jessie-backports main contrib non-free

deb http://ftp.us.debian.org/debian-security jessie/updates main contrib non-free
deb-src http://ftp.us.debian.org/debian-security jessie/updates main contrib non-free

deb http://www.deb-multimedia.org jessie main non-free
deb-src http://www.deb-multimedia.org jessie main non-free

安装chacha20的支持库libsodium.so:

sudo apt-get install build-essential
wget https://github.com/jedisct1/libsodium/releases/download/1.0.8/libsodium-1.0.8.tar.gz --no-check-certificate
tar xf libsodium-1.0.8.tar.gz && cd libsodium-1.0.8
./configure && make -j2
sudo make install
sudo ldconfig

安装net-speeder:

wget https://github.com/snooda/net-speeder/archive/master.zip --no-check-certificate
#安装libnet-dev:
apt-get install libnet1-dev
#安装libpcap-dev:
apt-get install libpcap0.8-dev
apt-get install unzip 
unzip master.zip
cd net-speeder-master
sh build.sh -DCOOKED
echo 'nohup /root/net-speeder-master/net_speeder venet0 "ip" >/dev/null 2>&1 &' >> /etc/rc.local

安装软件:

wget https://bootstrap.pypa.io/get-pip.py --no-check-certificate
python get-pip.py
pip install shadowsocks
echo 'ssserver -p 443 -k password -m chacha20 --user nobody -d start' >> /etc/rc.local

启动、停止软件:

sudo ssserver -p 443 -k password -m chacha20 --user nobody -d start
nohup /root/net-speeder-master/net_speeder venet0 "ip" >/dev/null 2>&1 &

发表评论

电子邮件地址不会被公开。 必填项已用*标注