BlueXIII's Blog

热爱技术,持续学习

0%

ubuntu16.04开发环境配置笔记

安装下载好的本地.deb

sudo dpkg -i /path/to/deb/file ,然后 sudo apt-get install -f 修复依赖关系

Chrome设置临时代理

google-chrome –proxy-server=”socks5://127.0.0.1:1080”

ExFat格式U盘支持

sudo apt-get install exfat-fuse exfat-utils

安装fcitx五笔拼音输入法

sudo apt-get install fcitx-table-wbpy

sublime中文输入法问题

参考
http://qiushao.net/2015/07/01/sublimetext-linux%E4%B8%8B%E8%BE%93%E5%85%A5%E4%B8%AD%E6%96%87/
https://github.com/lyfeyaj/sublime-text-imfix.git

openvpn安装及配置

sudo apt install openvpn
解决DNS问题:
vi xxx.opvn
script-security 2
up /etc/openvpn/update-resolv-conf
down /etc/openvpn/update-resolv-conf

openvpn GUI安装

sudo apt-get install -y network-manager-openvpn network-manager-openvpn-gnome

shadowsocks安装

apt-get install python-pip
pip install shadowsocks

shadowsocks启动

vi shadow.json
{
“server”:”IP”,
“server_port”:Port,
“local_port”:1080,
“password”:”password”,
“timeout”:600,
“method”:”rc4-md5”
}
vi startss.sh
sslocal -c shadow.json

proxychains强制应用走代理

安装:
sudo apt-get install proxychains
配置:
sudo vi /etc/proxychains.conf
socks5 IP PORT
使用:
proxychains <程序名>

ssh隧道

ssh -N -v svn@xxx.xxx.xxx.xxx -pxxx -D 127.0.0.1:1080

手工下载必备工具

atom-amd64.deb
google-chrome-stable_current_amd64.deb
nautilus_nutstore_amd64.deb
sublime-text_build-3126_amd64.deb
virtualbox-5.1_5.1.8-111374Ubuntuxenial_amd64.deb
wine-qqintl.zip

APT安装其它工具

sudo apt install unity-tweak-tool
sudo apt install aria2
sudo apt install vlc
sudo apt install tmux
sudo apt install sshpass
sudo apt install aria2c
sudo apt install rsync
sudo apt install nodejs
sudo apt install maven
sudo apt install gradle
sudo apt install build-essential
sudo apt install unrar

gradle下载安装

https://gradle.org/gradle-download/
export GRADLE_HOME=/opt/gradle
export PATH=$GRADLE_HOME/bin:$PATH

PPA方式安装Oracle JDK

sudo apt-add-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java8-installer
export JAVA_HOME=/usr/lib/jvm/java-8-oracle

IntelliJ IDEA安装

sudo mv idea-IU-162.2228.15 /opt/
sudo vi /usr/share/applications/idea.desktop
[Desktop Entry]
Encoding=UTF-8
Name=IntelliJ IDEA
Comment=IntelliJ IDEA
Exec=/opt/idea-IU-162.2228.15/bin/idea.sh
Icon=/opt/idea-IU-162.2228.15/bin/idea.png
Terminal=false
StartupNotify=true
Type=Application

grub等待时间配置

sudo vi /etc/default/grub
sudo update-grub

Flatabulous主题

https://github.com/anmoljagetia/Flatabulous

WPS

http://linux.wps.cn/

zsh

sudo apt-get install zsh git wget
wget –no-check-certificate https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh

使用ssh_config进行连接

vi ~/.ssh/config
Host root@104.224.162.238
HostName 104.224.162.238
User root
Port p28259
ssh-keygen -t rsa
ssh-copy-id -i root@104.224.162.238 -p28259

雅黑字体

sudo mkdir -p /usr/share/fonts/msyh
sudo mkfontscale && sudo mkfontdir && sudo fc-cache -fv
再运行unity-tweak-tool指定字体