Last active
March 22, 2017 06:32
-
-
Save huyinjie/fb3a22ff7f6683f03fd16ae65fe4687e to your computer and use it in GitHub Desktop.
BWG Ubuntu 16.04 Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo vim /etc/apt/sources.list | |
----------------------------------------------------------------------------------------------- | |
#------------------------------------------------------------------------------# | |
# OFFICIAL UBUNTU REPOS # | |
#------------------------------------------------------------------------------# | |
###### Ubuntu Main Repos | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse | |
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial main restricted universe multiverse | |
###### Ubuntu Update Repos | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse | |
deb http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse | |
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-security main restricted universe multiverse | |
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-updates main restricted universe multiverse | |
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-proposed main restricted universe multiverse | |
deb-src http://us.archive.ubuntu.com/ubuntu/ xenial-backports main restricted universe multiverse | |
###### Ubuntu Partner Repo | |
deb http://archive.canonical.com/ubuntu xenial partner | |
deb-src http://archive.canonical.com/ubuntu xenial partner | |
------------------------------------------------------------------------------------------------------------ | |
rm /etc/mdadm/mdadm.conf | |
sudo apt-get update && sudo apt-get upgrade -y | |
sudo apt-get install curl -y | |
curl https://repogen.simplylinux.ch/txt/xenial/sources_8e2c2611bccddbabe97e129f805006bdfd8ee22b.txt | sudo tee /etc/apt/sources.list | |
curl https://repogen.simplylinux.ch/txt/xenial/gpg_8e2c2611bccddbabe97e129f805006bdfd8ee22b.txt | sudo tee /etc/apt/gpg_keys.txt | |
curl https://repogen.simplylinux.ch/txt/xenial/synaptic_8e2c2611bccddbabe97e129f805006bdfd8ee22b.txt | sudo tee /etc/apt/sources.list | |
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y | |
sudo apt-get install git htop -y | |
sudo apt-get install shadowsocks | |
ssserver -c /etc/shadowsocks.json | |
https://github.com/snooda/net-speeder | |
[Unit] | |
Description=Shadowsocks Server | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/ssserver -c /etc/shadowsocks.json | |
Restart=on-abort | |
[Install] | |
WantedBy=multi-user.target | |
copy this file to /etc/systemd/system/shadowsocks-server.service | |
edit /etc/shadowsocks/ss-config.json to config shadowsocks | |
exec systemctl enable shadowsocks-server and systemctl start shadowsocks-server |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sudo apt-get install mosh -y