Start working under ubuntu

origin##

The PC at home has been useless for several months. I just turned it on yesterday and found that the SSD could not be recognized. After investigation, it was determined that the disk was broken, and then I could only reinstall it.

I used win10 as a development environment before, but I feel that windows is still more suitable as a game console, and there is an MBP at home, so considering that I have not used the Linux desktop version, I decided to feel ubuntu

Partition##

The PC configuration is 12GB memory, the hard disk is 1T+5T, and the 1T hard disk is almost loaded with data. 5T has 4 T without partitions, so it is directly installed on the 5T disk, and 200G is mounted in the / directory. , 100G is mounted in the /home directory, 14G is allocated to the SWAP swap partition, 500M is allocated to the EFI boot partition, and UEFI boot configuration is carried out in the BIOS

Visit foreign website##

Accessing foreign websites under linux is relatively cumbersome compared to windows, darwin, android, and ios systems. First, install ss, and after opening ss, configure the system proxy to the local port in ss

If you want to implement the browser to go online according to the GFWList rules, in the case of chrome, you need to download a plug-in: SwitchyOmega, and follow the Process configuration

If you want to implement terminal access to foreign websites, you need to install proxychains

sudo apt-get install proxychains

Edit configuration file

mkdir -p /home/lestat/.proxychains/
sudo vim ~/.proxychains/proxychains.conf

Configure as follows (protocol, ip, port are configured according to actual situation)

strict_chain
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
quiet_mode
[ ProxyList]
socks5 127.0.0.11080

Then add proxychains before the command that requires ss, such as:

sudo proxychains git clone https://github.com/lestat220255/docker-lnmp.git

docker development environment##

After installing docker and docker-compose, use the script I wrote before to quickly build a docker+nginx+php+mysql+redis development environment, while supporting the coexistence of multiple versions of various services , The later development is very convenient, getting rid of the constraint that similar services in the integrated environment can only run one version

sudo proxychains git clone https://github.com/lestat220255/docker-lnmp.git
cd docker-lnmp && chmod u+x ./init.sh &&./init.sh

Tool recommendation##

terminal extension

  1. proxychains
  2. git
  3. npm related
  4. docker related
  5. ntfs-3g (tool used to hang on the windows ntfs partition, if the computer is a dual system, it is highly recommended)
  6. rdesktop (connect to windows server)
  7. OhMyZsh
  8. tldr
  9. htop (top enhanced version)

Social###

  1. telegram (recommended to install a chrome/firefox plugin for more convenient use)
  2. Web version of WeChat

development tools###

  1. vscode (cannot be better used...)
  2. The updated version of phpstorm (2018.1.6) cannot use the previous activation server
  3. pycharm (personal version, free)
  4. postman

other###

  1. Sogou Pinyin
  2. Nut Cloud
  3. FileZilla
  4. Wps
  5. vps network speed test wget -qO- git.io/superbench.sh | bash
  6. frp (intranet penetration, can be used for development testing, receiving payment callback)

Close program crash report##

Install theme management##

sudo apt-get install unity-tweak-tool
sudo apt-get install notify-osd && sudo apt-get install overlay-scrollbar
nohup unity-tweak-tool>/dev/null2>&1&

One-stop solution for theme, icon, dock

One-click start of development environment##

#! /bin/zsh
# Use zsh instead of bash to execute commands here

# home directory location
HOME=/home/username

# Open ss&&Start the development environment&&Open phpstorm
nohup $HOME/Downloads/Shadowsocks-version.AppImage>/dev/null2>&1&
cd $HOME/work && sudo -S docker-compose up -d  << EOF 
password
EOF
cd $HOME/PhpStorm-version/bin && nohup ./phpstorm.sh>/dev/null2>&1&

# Open frp proxy
nohup $HOME/frp/frpc -c $HOME/frp/frpc.ini>/dev/null&

# Mount windows F disk to the current system/mnt/windows_D
sudo -S ntfs-3g /dev/sdb2 /mnt/windows_D << EOF 
password
EOF

Finally, Amway a theme series##

draculatheme dark theme, supports a variety of mainstream editors, and the zsh installed above, personally like this style

Hasta la vista

Recommended Posts

Start working under ubuntu
Install apache+PHP under Ubuntu
Install node.js under Ubuntu
Install python3.6 under Ubuntu 16.04
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Python MySQLd under Ubuntu
[python] python2 and python3 under ubuntu
Use iptables under ubuntu
2018-09-11 Install arduino under Ubuntu
LNMP installation under Ubuntu
Network configuration under Ubuntu
Install ROS under ROS Ubuntu 18.04[2]
Install MySQL under Ubuntu
Install Yarm-PM2 under Ubuntu
Django&amp;MySQL environment deployment under Ubuntu 14.04
Solve Unment dependencies under ubuntu
Open SSH service under Ubuntu
Use sublime tex under ubuntu
Modify shortcut keys under Ubuntu 18.04
Use of mediawiki under ubuntu
Install server-side Shadowsocks under Ubuntu 16.04
Open SSH service under Ubuntu
DNS service construction under Ubuntu
Install rgl package under Ubuntu
Use QQ under Ubuntu 13.10, suitable for 14.10
VMware fixes Ubuntu can’t start problem
Installation of deb package under Ubuntu
How to compile ijkplayer-android under ubuntu
Install 3 single-cell R packages under Ubuntu
Install and deploy Gerrit under Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install JDK1.8 original under Ubuntu Kylin
Redis installation under ubuntu and windows
Small tool: install screenshot tool under ubuntu
Install nodejs and npm under Ubuntu 16.04
Python Chinese encoding setting under ubuntu
Ubuntu 16.04 installation graphic tutorial under VMware 12
Installation of Docker CE under Ubuntu
Coexistence of CUDA8.0 and CUDA9.0 under Ubuntu 16.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Compile and install QEMU under Ubuntu
Ubuntu16.04 mirror complete installation tutorial under VMware
Pycharm calls Hanlp practice sharing under ubuntu
Use mendeley to insert references under ubuntu
51 MCU program development and download under Ubuntu
Solution for Postgresql uninstall error under Ubuntu
Remove root password verification strategy under ubuntu
Install linux (ubuntu) dual system under windows system
JDK environment variable configuration method under ubuntu
Installation and uninstallation of CUDA under Ubuntu 16.04
Build the C++ compilation environment under ubuntu
Install YouCompleteMe plugin for vim under Ubuntu
Configure android debugging tool adb under ubuntu16.04
Install PyTesser under ubuntu 14.04 for OCR recognition
Install Ubuntu with Parallels Desktop under Mac
GPU programming (1): CUDA8.0 environment construction under Ubuntu
Build a python development environment under Ubuntu
Three ways to install software under Ubuntu