Ubuntu 18.04 LTS installation configuration

Time:2019-9-11

Replacement of domestic sources

System Settings – > Software and Update Selection Download Server – > “Mirrors.aliyun.com”

Installation of Common Software

Update the source and upgrade the software

sudo apt update
sudo apt upgrade

Install vim, chromium, FileZilla

sudo apt install git vim chromium-browser filezilla -y
# GIMP image processing, Kdenlive video processing, p7zip support RAR compression
sudo apt install gimp kdenlive p7zip-full -y

Install NVM (terminal restart is required after installation)

nvm
n

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
Or
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
# Replacement of NVM Taobao Source
echo "export NVM_NODEJS_ORG_MIRROR=https://npm.taobao.org/mirrors/node" >> ~/.bashrc
  • Install node
# Latest version of LTS
nvm install --lts
# Replacement of NPM Taobao Source
npm config set registry https://registry.npm.taobao.org
# View the current source
npm config get registry
# Supplement (yarn installation, view source, replace source)
npm install -g yarn
yarn config get registry
yarn config set registry https://registry.npm.taobao.org
  • Install hexo
npm install hexo-cli -g

Install Sogou Input Method

Download: https://pinyin.sogou.com/linux/

Double-click to install the downloaded DEB package. After installation, enter the language support – > keyboard input method system option and select fcitx to restart the computer.

Use shortcut key Ctrl + space or shift to switch input method

Install Netease Cloud Music

Download: http://music.163.com/#/download

Double-click to install the downloaded DEB package

Chromium creates desktop applications (e.g. nails, Wechat)

Create your own desktop file (vim xxx. desktop) in the ~/. local / share / applications / directory

Nail

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name= nail
Icon=/home/ocean/appicon/dd.png
Exec=/opt/google/chrome/google-chrome "--app=https://im.dingtalk.com/"
Terminal=false
StartupWMClass=im.dingtalk.com

WeChat

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Name= WeChat
Icon=/home/ocean/appicon/wx.png
Exec=/opt/google/chrome/google-chrome "--app=https://wx.qq.com/?lang=zh_CN"
Terminal=false
StartupWMClass=wx.qq.com

Icon paths can be changed to corresponding paths by themselves, not according to the case, as long as access is OK.

Ubuntu 18.04 LTS installation configuration

Ubuntu 18.04 LTS installation configuration

Create App shortcuts:

charles

[Desktop Entry]
Version=1.0
Type=Application
Name=charles
Icon=/home/ocean/develop/charles/icon/64x64/apps/charles-proxy.png
Exec="/home/ocean/develop/charles/bin/charles" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false

postman

[Desktop Entry]
Version=1.0
Type=Application
Name=Postman
Icon=/home/ocean/develop/Postman/resources/app/assets/icon.png
Exec="/home/ocean/develop/Postman/Postman" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false

pycharm

[Desktop Entry]
Version=1.0
Type=Application
Name=Pycharm
Icon=/home/ocean/develop/pycharm-community-2018.1.2/bin/pycharm.png
Exec="/home/ocean/develop/pycharm-community-2018.1.2/bin/pycharm.sh" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false

wechat-dev-tool

[Desktop Entry]
Version=1.0
Type=Application
Name=wechat-dev-tool
Icon=/home/ocean/develop/wechat-dev-tool/app/images/icon.png
Exec="/home/ocean/develop/wechat-dev-tool/nw" %f
Comment=The Drive to Develop
Categories=Development;IDE;
Terminal=false

Install Postman

Official website: https://www.getpostman.com/

Download decompression

cd Postman/
sudo apt install libgconf-2-4 -y
./Postman &

Install Workbench

Download address: https://dev.mysql.com/downloa…

Install VirtualBox VMware

VirtualBox Download Address: https://www.virtualbox.org/wi…

VMware Download Address: https://www.vmware.com/cn/pro…

Install Vmware:

sudo ./VMware-Workstation-Full-14.1.1-7528167.x86_64.bundle

PHPStorm Pycharm

Download address: http://www.jetbrains.com/

Unzip into bin directory and start

./phpstorm.sh &
./pycharm.sh &

activation

Modify the hosts file and add the following line

0.0.0.0 account.jetbrains.com

Get activation code, register code activation:

http://idea.iteblog.com/
http://idea.lanyus.com/

Sublime Text

Download address: http://www.sublimetext.com/

Shadowsocksr Client

SSR Client Installation Configuration Script (Recommended)
Download
curl https://raw.githubusercontent.com/the0demiurge/CharlesScripts/master/charles/bin/ssr -o "ssr"
Or
wget https://raw.githubusercontent.com/the0demiurge/CharlesScripts/master/charles/bin/ssr -O "ssr"
# Add Execution Permissions
chmod a+x ssr
sudo ln -s /home/ocean/develop/ssr /usr/bin/ssr
# Installation dependency
sudo apt install curl jq tsocks -y
# Install SSR client
ssr install
Collocation
ssr config
Start up
ssr start
Halt
ssr stop
Reboot
ssr restart
Unloading
ssr uninstall
SSR GUI Client

SSR GUI Client

Direct download and installation can be done without much introduction. For some Linux clients, it is not recommended.

After installing ssr, you can’t climb over the wall, because there is no agent set up. Set it up below.

Agent configuration (Pac/SwitchyOmega alternative)

Pac Automatic Agent Configuration

1. Genpac Generates Pac (Recommendation)

genpac

Install pip
sudo apt install python-pip -y
# Install genpac
pip install genpac
# Update genpac
pip install --upgrade genpac
# Unloading genpac
pip uninstall genpac
# Generate autoproxy. PAC under the current directory, such as: / home / ocean / development
genpac --format=pac --pac-proxy="SOCKS5 127.0.0.1:1080" --pac-precise --output="autoproxy.pac"

Note: If the command genpac cannot be found during execution, it may be that the genpac command is not installed in the system path, and the genpac execution entry file is installed in the system path.~/.local/binSolutions

Option 1: Will~/.local/binAdd to System Path

sudo ln -s ~/.local/bin/genpac /usr/bin/genpac

Solution 2: Uninstall and reuse sudo to install genpac

pip uninstall genpac
sudo pip install genpac
sudo pip install --upgrade genpac

2. Pac_get.sh Generates Pac

pac_get

# Download the script to the current directory
curl https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/pac_get.sh -o "pac_get"
Or
wget https://raw.githubusercontent.com/ToyoDAdoubi/doubi/master/pac_get.sh -O "pac_get"
chmod a+x pac_get
vim pac_get
# "_PROXY_" is changed to its agent address, such as "SOCKS5 127.0.0.1:1080", otherwise the wall cannot be turned over.
# Output_URL= Generate PAC file path, which can be modified freely, such as "autoproxy. pac"
# After the modification is saved, the script is executed to generate autoproxy. PAC in the current directory (e.g. / home / ocean / development)
./pac_get

3. Open System Settings – > Network – > Network Agent – > Automatically, configure the URL “file://pac file path”, such as “file://home/ocean/development/autoproxy.pac”

SwitchyOmega proxy configuration

SwitchyOmega

SwitchyOmega Github

When the installation is complete, click on the top right cornerSwitchyOmega> option

1. Scenario pattern – > proxy

URL agreement Agency agreement proxy server Proxy port
(default) SOCKS5 127.0.0.1 1080

2. Scenario mode – > auto switch

Rule List Settings – > Add Rule List

Rule list format AutoProxy
Rule List Website https://raw.githubusercontent…

Handover rule

Rule List Rules (Match requests according to the rule list) proxy
Default scenario mode Direct connection

3.Update Scenario Patterns Immediately -> Application optionsSave the settings.

Scenario model description:

proxy All URLs follow the proxy model
auto switch Automatically judge whether to go agent according to the URL