My Linux (Ubuntu) Confg

Important

  1. Don’t put any lines in your Config file that you don’t understand.
  2. 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

a-good-vimrc

Tmux

Usable - A Guide to Customizing your tmux.conf
hamvocke/dotfiles

ShortcutFunction
Ctl+Spaceprefix
|vertical split
-horizontal split
M+arrow ->switch pane
EscVi 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

Resources

nerd-fonts

Reference

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值