Linux configuration notes

Configuration brochure --Linux

Modify the host name < ludada@XXXin XXX>
// view the current hostname 
hostname
or
hostnamectl
   
   
sudo hostnamectl SEt- hostname hostname
Restart shell

 

Modifying Xshellthe displayed connection [ludada@XXX]Color
// modify the file .bashrc 
Vim .bashrc
 // jump to last row 
< Shift + G>
 // Add the following 
Export PS1 = " \ [\ E [37 [; 40m \] [\ [\ E [32; 40m \ ] \ U \ [\ E [37 [; 40m \] @ \ H \ [\ E [36; 40m \] \ W \ [\ E [0m \]] \\ $ "

 

installationvimplus

Author help files

// Open the pre-generated code, the path 
~ / .vim / Plugged / prepare- code
 // Select. 3 Py
 @ modify the display color 
cd .vimplus /
vim .vimrc
To line 211, is modified
colorscheme default

 

 

UbuntuArise apt-get: Package has no installation candidateproblems
// solve 
# APT- GET Update
# apt-get upgrade
# apt-get install <packagename>

 

 

Guess you like

Origin www.cnblogs.com/luuuw/p/12292651.html