Customization after Ubuntu 16.10 new installation

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
#!/bin/bash
# Created By liuxiaohui @2016/12/26
## System
# system update
sudo apt update
sudo apt upgrade
# vim
sudo apt remove vim-tiny
sudo apt install vim
# terminator
sudo apt install terminator
# shutter
sudo apt install shutter
# rar
sudo apt install rar unrar
# bleachbit
sudo apt install bleachbit
# grub customizer
sudo add-apt-repository ppa:danielrichter2007/grub-customizer
sudo apt update
sudo apt install grub-customizer
# sougou pinyin
wget "http://pinyin.sogou.com/linux/download.php?f=linux&bit=64" -O "sougou_64bit.deb"
sudo dpkg -i sougou_64bit.deb
sudo sed -i 's/deb/#deb/' /etc/apt/sources.list.d/sogoupinyin.list
# chrome
wget "https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb" -O "chrome_64bit.deb"
sudo dpkg -i chrome_64bit.deb
# corebird
sudo apt install corebird
# proxychains
sudo apt install proxychains
sudo echo "socks5 127.0.0.1 1080" >> /etc/proxychains.conf
# shadowsocks
sudo apt install python-gevent python-pip
sudo pip install --upgrade pip
sudo pip install shadowsocks
sudo bash -c 'cat << EOF > /etc/shadowsocks.json
{
"server": "SHADOWSOCKS_SERVER_IP_ADDRESS",
"server_port": 9000,
"local_address": "127.0.0.1",
"local_port": 1080,
"password": "PASSWORD",
"timeout":300,
"method": "aes-256-cfb",
"fast_open": false,
"workers": 1,
"remarks": "",
"auth": false
}
EOF'
sudo bash -c 'cat << EOF > /home/$USER/.config/autostart/sslocal.desktop
[Desktop Entry]
Type=Application
Exec=/usr/local/bin/sslocal -c /etc/shadowsocks.json /dev/null 2>&1 &
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[zh_CN]=Shadowsocks
Name=Shadowsocks
Comment[zh_CN]=Shadowsocks
Comment=Shadowsocks
EOF'
# dropbox
wget "https://www.dropbox.com/download?dl=packages/ubuntu/dropbox_2015.10.28_amd64.deb" - O "dropbox_2015.10.28_amd64.deb"
sudo dpkg -i dropbox_2015.10.28_amd64.deb
proxychains dropbox start -i
## Media
# vlc
sudo apt install vlc
# media codec
sudo apt install ubuntu-restricted-extras
## Development
# develop tools
sudo apt install git make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev xz-utils
# haroopad markdown editor
wget "https://bitbucket.org/rhiokim/haroopad-download/downloads/haroopad-v0.13.1-x64.deb" -O "haroopad-v0.13.1-x64.deb"
sudo dpkg -i haroopad-v0.13.1-x64.deb
# texlive pandoc
sudo apt intall texlive texlive-latex-extra pandoc
# bluefish
sudo apt install bluefish
# pyenv
git clone https://github.com/yyuu/pyenv.git ~/.pyenv
cat <<EOF >> ~/.bashrc
# pyenv settings
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
EOF
# pyenv-virtualenv
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
echo 'eval "$(pyenv virtualenv-init -)"' >> ~/.bashrc
exec "$SHELL"
# pycharm
wget "https://download.jetbrains.com/python/pycharm-professional-2017.1.3.tar.gz" -O "pycharm.tar.gz"
tar -xvf pycharm.tar.gz
mkdir ~/Application
mv pycharm-professional-2017.1.3 ~/Application/
# mysql-server
sudo apt install mysql-server
# mongodb
sudo apt install mongodb
# redis-server
sudo apt install redis-server