ubuntu 18.04 early configuration

The catalog of this series https://www.idealclover.top/index.php/archives/142/ The writing background is no longer explained too much.

Nvidia graphics card huh...why answer

Ah, this graphics card really makes me want to die... The culprit that makes ubuntu stuck in the boot logo... This has been said in the last issue

Change source##

Modify the source of HKUST as the default source of Ubuntu 18.04

Backup /etc/apt/sources.list

cp /etc/apt/sources.list /etc/apt/sources.list.bak

Add the following entry in front of the /etc/apt/sources.list file

deb https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-updates main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-backports main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-security main restricted universe multiverse
deb https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse
deb-src https://mirrors.ustc.edu.cn/ubuntu/ bionic-proposed main restricted universe multiverse

And comment out other sources

Finally execute the following command to update the source

sudo apt-get update

vim

Download vim

sudo apt install vim

vim changed to the default editor###

sudo update-alternatives --config editor

Turn off the sudo password##

sudo visudo

Will this line

%sudo   ALL=(ALL:ALL) ALL

To

%sudo   ALL=(ALL:ALL) NOPASSWD:ALL

zsh

sudo apt install zsh
sudo wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O -| sh
chsh -s /bin/zsh

thefuck

pip3 installation###

sudo apt install python3-pip3

thefuck

pip3 install thefuck --superuser

Settings for zsh plugin###

Open ~/.zshrc

vim ~/.zshrc

Add at the end

eval "$(thefuck --alias)"

shadowsocks

About shadowsocks, I wrote an article before, so I won’t repeat it here.

References##

https://blog.csdn.net/SaberHowei/article/details/80564849
https://github.com/nvbn/thefuck

Copyright Notice##

This work is licensed by idealclover under the Creative Commons Attribution-Share in the Same Way 4.0 International License Agreement. Please indicate the source for reprinting

Recommended Posts

ubuntu 18.04 early configuration
Ubuntu nfs configuration
Ubuntu20.04 configuration notes
Ubuntu 14.04 configuration record
ubuntu configuration python, Red
Ubuntu configuration development environment
Ubuntu 18.04 network card configuration
Ubuntu development environment configuration
Network configuration under Ubuntu
023. Ubuntu common personalized configuration
Ubuntu16.04 installation and simple configuration
Ubuntu16.04 install SVN and configuration
Ubuntu PostgreSQL installation and configuration
Ubuntu environment variables and ADB configuration
Ubuntu 20.04 best configuration guide for engineers
Ubuntu 20.04 best configuration guide for engineers
Ubuntu16.04 configuration OpenCV3.4.2 and basic use
Ubuntu 19.1 installation and configuration Chinese environment
Configuration and beautification after Ubuntu installation (1)
Nginx installation and configuration load (ubuntu12.04)
Ubuntu configuration source and installation software
Ubuntu 20.04 best configuration guide (required for newbies)
JDK environment variable configuration method under ubuntu
Ubuntu software
Ubuntu17.04 configuration method to replace domestic sources
Ubuntu install PHP and PHP Nginx configuration method
Linux (ubuntu 12.04)
Ubuntu 18.04 LTS configuration network tutorial through Netplan
DLNA/UPnP Server installation and configuration under Ubuntu 12.04
Debian and Ubuntu installation source configuration file description
The basic configuration and interface beautification of Ubuntu
Virtual machine installation and configuration ubuntu shared folder_
Kaldi installation and configuration graphic tutorials under Ubuntu
Basic configuration and common software installation after ubuntu 18.04 installation
Installation, configuration and uninstallation of GitLab in Ubuntu19.1