文章目录
Important
- Don’t put any lines in your Config file that you don’t understand.
- Do not remove python3, ohterwise your system will be crashed
Linux package management
dpkg
-
Find all dependencies:
Eg:
dpkg -l | grep python3.5
-
ubuntu dpkg --configure 处理出错
sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
sudo mkdir /var/lib/dpkg/info
sudo apt-get update
sudo apt-get -f install
sudo rm /var/lib/apt/lists/lock
sudo rm /var/lib/dpkg/lock
sudo rm /var/lib/dpkg/lock-frontend
sudo dpkg --configure -a
sudo apt clean
sudo apt-get update --fix-missing
sudo apt install -f
sudo dpkg --configure -a
sudo apt-get upgrade
VIM
Tmux
Usable - A Guide to Customizing your tmux.conf
hamvocke/dotfiles
Shortcut | Function |
---|---|
Ctl+Space | prefix |
| | vertical split |
- | horizontal split |
M+arrow -> | switch pane |
Esc | Vi copy mode |
Spacemacs
Create own Layer
<SPC> : configuration-layer/create-layer RET.
This has several benefits:
First you can source control your layers and synchronize your configuration on different machines.
Second your elpa repository is always in sync with what you need.
How to
How to mount additional hard disk?
sudo vim /etc/fstab
/dev/sdb /home/yubao/data ext4 defaults 0 0
Common Issues
gnome-language-selector
$ sudo gnome-language-selector
Click Install
Solution:
sudo apt install $(check-language-support)
return Command ‘lsb_release -a’ returned non-zero exit status 1
python – pip显示错误’lsb_release -a’返回非零退出状态1
Rerer:
pip-is-showing-error-lsb-release-a-returned-non-zero-exit-status-1)
Solution 1:
Open /usr/bin/lsb_release (Make sure you use sudo or open as root!)
Edit the first line to be #! /usr/bin/python2.7
Save the file
Solution2:
sudo rm /usr/bin/lsb_release