ubuntu20.04开发开境配置

记录下新系统下开发必须安装的工具

1.小飞机安装
注意事项:需要安装python2

1
sudo apt install python

2.vscode安装,直接下载deb包进行安装,不要使用snap命令进行安装,否则会出现不能输入中文的问题。
3.安装截图工具flameshot,并设置快捷键

1
sudo apt install flameshot

image
4.安装chrome,配置插件SwitchyOmega.
image
5.安装polipo,终端使用代理

1
2
3
4
5
6
cat <<EOF >> /etc/apt/sources.list
deb http://cz.archive.ubuntu.com/ubuntu xenial main universe
EOF

sudo apt-get update
sudo apt install polipo

修改配置/etc/polipo/config,加入如下内容

1
2
3
4
5
6
7
8
9
10
11
proxyAddress = "0.0.0.0"

socksParentProxy = "127.0.0.1:1080"
socksProxyType = socks5

chunkHighMark = 50331648
objectHighMark = 16384

serverMaxSlots = 64
serverSlots = 16
serverSlots1 = 32

重启服务sudo systemctl restart polipo
配置代理

1
2
export http_proxy=http://127.0.0.1:8123
export https_proxy=http://127.0.0.1:8123

6.使用系统自带的五笔输入法
7.安装GoLand,PyCharm
8.安装golang1.13.6
9.安装terminator

1
sudo apt install terminator

10.安装git,zsh,oh-my-zshautojump

1
2
3
4
5
6
7
8
9
sudo apt install git
sudo apt install zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

cat <<EOF >> ~/.zshrc
. /usr/share/autojump/autojump.sh
EOF

source ~/.zshrc

11.安装qshell,用于同步文件到七牛云,下载qshell
设置帐户空间

1
qshell account [<AccessKey> <SecretKey> <Name>] [flags]

设置文件上传策略,vim ~/.qshell/upload.conf

1
2
3
4
5
6
7
{
"src_dir": "/media/hys/65F33762C14D581B/hysyeah_qiniu",
"bucket": "hysyeah",
"check_exists": true,
"check_hash": true,
"rescan_local": true
}

设置快捷上传命令e

1
2
3
cat <<EOF >> ~/.zshrc
alias qsupload="qs qupload ~/.qshell/upleeeeoad.conf"
EOF

  1. 设置镜像源,ubuntu20.04可以在界面上设置
    image

问题:
解决双系统时间不一致的问题,在ubuntu终端输入如下命令

1
timedatectl set-local-rtc 1 --adjust-system-clock


Ref:
1.ubuntu package
2.qshell