1.换源
system-->Software&Updates-->Download from ...choose other and select china-->mirrors.aliyun.com
at last close -->reload
或者
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak #备份
sudo vim /etc/apt/sources.list
底部加上 alinyun
deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
sudo apt-get update #更新列表
2.搜狗输入法
system-->Language support-->keyboard input method system select fcitx
下载deb:https://pinyin.sogou.com/linux/
sudo dpkg -i sogou.deb
如果出现缺少包或者依赖则
sudo apt-get install -f
sudo apt-get update
然后
sudo dpkg -i sogou.deb
出现
No such key 'Gtk/IMModule' in schema 'org.gnome.settings-daemon.plugins.xsettings' as specified in override file '/usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override'; ignoring override for this key.
dont care.不用管。 restart pc. 然后win键 搜索fcitx configuration 点击 +找到sogou即可
3.谷歌浏览器
参考:http://www.linuxidc.com/Linux/2016-05/131096.htm
将下载源加入到系统的源列表
sudo wget http://www.linuxidc.com/files/repo/google-chrome.list -P /etc/apt/sources.list.d/
导入谷歌软件的公钥
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update
sudo apt-get install google-chrome-stable
4.shadowsocks
参考:http://blog.youkuaiyun.com/u014266895/article/details/64922486
http://blog.youkuaiyun.com/q873040807/article/details/56028791
安装python-pip:
apt-get install python-pip
安装shadowsocks:
pip install shadowsocks
然后利用你的ssr账号写成json文件
如 /home/mudao/shadowsocks.json:
{"server":"23.83.243.111","server_port":443,"local_port":1080,"password":"你猜","method":"aes-256-cfb"}
启动:
sslocal -c /home/mudao/shadowsocks.json
如果报错:AttributeError: /usr/lib/x86_64-Linux-gnu/libcrypto.so.1.1 参考:
https://blog.youkuaiyun.com/blackfrog_unique/article/details/60320737
设置pac文件
有的博客是在谷歌浏览器上用SwitchyOmega插件代理。但是这样,火狐等其他浏览器没法用。所以用本地代理。
pac文件:链接: https://pan.baidu.com/s/1gfhHWOV 密码: q444
genpac --proxy="SOCKS5 127.0.0.1:1080" --gfwlist-proxy="SOCKS5 127.0.0.1:1080" -o autoproxy.pac --gfwlist-url="https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt"
安装genpac 制作pac的时候 出现:Could not find a version that satisfies the requirement genpac
解决方法:
pip install pyopenssl ndg-httpsclient pyasn1
sudo apt-get install libffi-dev libssl-dev
之前我用从网上下载的pac文件。总是出错,只能访问国外不能访问国内或者直接连不上。 最后自己制作一个。
导入pac
system->network->network proxy->automatic 写入你的pac路径。如:file:///home/fitch/Documents/command/autoproxy.pac
注意:file后面有3个/
命令行使用代理:
sudo apt-get install proxychains
sudo vim /etc/proxychains.conf
把里面的最后一行设置改为 socks5 127.0.0.1 1080 就好了。之后命令需要翻墙的时候,在前面加上 proxychains 就行。如下:
proxychains wget https://google.com
开机自启:
win按键-->startupApplication-->add -->输入命令 sslocal -c /home/fitch/Documents/command/shadowsocks.json
或者 写一个脚本运行sslocal -c /home/fitch/Documents/command/shadowsocks.json 。 然后在/etc/rc.local 里 执行你的脚本
5.mysql
安装3条命令:
1. sudo apt-get install mysql-server
2. sudo apt-get install mysql-client
3. sudo apt-get install libmysqlclient-dev
检验是否安装成功:
sudo netstat -tap | grep mysql
出现listen 则成功。 登录mysql 用
mysql -u root -p
参考:http://www.linuxidc.com/Linux/2016-07/133128.htm
https://www.linuxidc.com/Linux/2017-05/143861.htm
6. navicate
这个从官网下载deb然后安装即可。主要是会乱码。则在start_navicat里将en_US.UTF-8改为zh_CN.UTF-8
到期了 则
第一次执行start_navicat时,会在用户主目录下生成一个名为.navicat的隐藏文件夹。
rm -r .navicat
把此文件删除后,下次启动navicat 会重新生成此文件,30天试用期会按新的时间开始计算。
(注意:在改字符集的时候 查看系统支持的字符集 locale -a , 然后改成 支持的中文字符集)
参考:https://www.linuxidc.com/Linux/2017-04/143122.htm
7.Wine and Tim
sudo dpkg --add-architecture i386 # If your system is 64 bit, enable 32 bit architecture (if you haven't already):
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/ #Add the repository:
|
<span style="color:#333333"> 安装完成之后在打开的配置里找到函数库。增加 riched20 </span>
将windows字体 simsun.tcc 文件拷贝到这里~/.wine/drive_c/windows/Fonts。然后wineboot。
将下载的Tim用wine安装。 找到安装好的Tim.exe(一般在bin文件夹里)。右击 用wine 打开。
这个Tim有点缺点。 不能够保持密码和 关闭Tim之后 再次登录会出现 XXX已占用 登不上去。则用
killall TIM.exe
删除掉占用的东西。
参考:https://www.hiczp.com/post-142.html#comment-856
快捷方式。
在/usr/share/applications/里创建Tim.desktop
里面写
#!/usr/bin/env xdg-open
[Desktop Entry]
GenericName[zh_CN]=Tim
Name=Tim
Exec=env WINEPREFIX="/home/fitch/.wine" wine "/home/fitch/Tim/Bin/TIM.exe"
Type=Application
StartupWMClass=Wine
Icon=/home/fitch/Tim/TIMUninst.ico
Categories=Wine-Programs;
路径要写成你的路径。 之后将生成的快捷方式 cp 到 桌面即可
8.设置默认应用
system-->details-->default Applications