新Ubuntu14.04配置

换源

1
2
3
sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

sudo gedit /etc/apt/sources.list

填入:

1
2
3
4
5
6
7
8
9
10
deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.163.com/ubuntu/ trusty-backports main restricted universe multiverse
1
2
sudo apt-get update
sudo apt-get upgrade

科学上网

1
2
3
sudo add-apt-repository ppa:hzwhuang/ss-qt5
sudo apt-get update
sudo apt-get install shadowsocks-qt5

终端指令代理1

1
2
3
sudo apt-get install proxychains

sudo gedit /etc/proxychains.conf

在末尾,删掉socks4的那一条目(重要),并且根据实际添加代理:

1
socks5  127.0.0.1 1080

或者2

1
2
3
4
5
6
7
8
9
10
11
12
# 安装
git clone https://github.com/rofl0r/proxychains-ng.git
./configure --prefix=/usr --sysconfdir=/etc
make
sudo make install
sudo make install-config

# 配置 socks4 127.0.0.1 9050改为socks5 127.0.0.1 1080
sudo gedit /etc/proxychains.conf

# 使用
proxychains4 telnet google.com 8

Shadowsocks 转换 HTTP 代理3

Shadowsocks 默认是用 Socks5 协议的,对于 Terminal 的 get,wget 等走 Http 协议的地方是无能为力的,所以需要转换成 Http 代理,加强通用性,这里使用的转换方法是基于 Polipo 的。

1
2
sudo apt-get install polipo
sudo gedit /etc/polipo/config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# This file only needs to list configuration variables that deviate
# from the default values. See /usr/share/doc/polipo/examples/config.sample
# and "polipo -v" for variables you can tweak and further information.
logSyslog = false
logFile = "/var/log/polipo/polipo.log"

socksParentProxy = "127.0.0.1:1080"
socksProxyType = socks5

chunkHighMark = 50331648
objectHighMark = 16384

serverMaxSlots = 64
serverSlots = 16
serverSlots1 = 32

proxyAddress = "0.0.0.0"
proxyPort = 8123
1
/etc/init.d/polipo restart

chrome

1
https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb

Dropbox

这里下载Dropbox,然后执行4

1
2
sudo dpkg -i dropbox_2015.10.28_amd64.deb
proxychains4 dropbox start -i

或者:

这里下载dropbox-lnx.x86_64-3.16.1.tar.gz,将解压缩后的 .dropbox-dist 放在 /home/用户名/ 下。然后:

1
~/.dropbox-dist/dropboxd

右键添加在终端中打开功能

1
sudo apt-get install nautilus-open-terminal