标签 ubuntu 下的文章

192 MB的VPS上安装ss服务基于Ubuntu16.04

在内存只有192MB小鸡vps上安装ss服务,基于ubuntu16.04精简版,安装脚本命令如下:

apt-get update

pip install -U pip

pip3 install --upgrade pip

pip3 install shadowsocks

pip install --upgrade shadowsocks

pip3 install --upgrade shadowsocks
     
cat <<EOF>> /etc/shadowsocks.json
{
    "server":"vps ipadder",
    "local_address":"127.0.0.1",
    "local_port":8888,
    "port_password":{
         "9001":"password",
         "9002":"password"
    },
    "timeout":600,
    "method":"aes-256-cfb",
    "fast_open": false
}
EOF

/usr/local/bin/ssserver -c /etc/shadowsocks.json >> /ss.log 2>&1 &

---阅读剩余部分---

Ubuntu17.04设置修改网卡名称 、静态IP、DNS更新源等

新装的Ubuntu17.04默认网卡名字是enp3(后面这个数字可能会变),修改成通用的eth0,

找到GRUB_CMDLINE_LINUX=""
改为GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

执行sudo grub-mkconfig -o /boot/grub/grub.cfg

设置静态IP及dns:

auto eth0    #默认启动网卡
iface eth0 inet static
address 192.168.121.163
gateway 192.168.120.1
netmask 255.255.254.0
dns-nameservers 192.168.121.222    #指定DNS

最后reboot重启即可,若只是修改IP直接重启网卡服务即可
sudo /etc/init.d/networking restart

sudo ifdown eth0 ; sudo ifup eth0

修改更新源为中科大更新源:

sudo mv /etc/apt/sources.list /etc/apt/sources.list_bak
sudo tee -a /etc/apt/sources.list <<-'EOF'
deb http://mirrors.ustc.edu.cn/ubuntu/ zesty main restricted

deb http://mirrors.ustc.edu.cn/ubuntu/ zesty-updates main restricted

deb http://mirrors.ustc.edu.cn/ubuntu/ zesty universe
deb http://mirrors.ustc.edu.cn/ubuntu/ zesty-updates universe

deb http://mirrors.ustc.edu.cn/ubuntu/ zesty multiverse
deb http://mirrors.ustc.edu.cn/ubuntu/ zesty-updates multiverse

deb http://mirrors.ustc.edu.cn/ubuntu/ zesty-backports main restricted universe multiverse


deb http://security.ubuntu.com/ubuntu zesty-security main restricted
deb http://security.ubuntu.com/ubuntu zesty-security universe
deb http://security.ubuntu.com/ubuntu zesty-security multiverse
EOF
apt update -y

Ubuntu17.04总体来说,比之前的版本好用多了^o^

最新

分类

归档

评论

  • 安安: 都是af
  • Liang: 嗯,有点不通顺·
  • 王庭威: “MySQL互为主从...
  • Liang: 贴下编译参数和步骤,...
  • shao3911: 您好,为什么我在编译...
  • aliang: 先看是yum安装还是...
  • aliang: 将原来的nginx安...
  • yen: 3、如果要回滚的话,...
  • yen: 刚好需要升级ngin...
  • 文雨: 一些新的method...

其它