Must be Installed Apps of Ubuntu
前言
Ubuntu上一些基础app的安装
ZSH
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61
| $ apt install zsh
$ sudo chsh -s $(which zsh) $(whoami)
$ sudo usermod -s /bin/zsh yourusername
$ sudo apt install powerline-fonts
$ git clone https://github.com/powerline/fonts.git $ cd fonts $ ./install.sh $ rm -rf fonts
$ sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
$ chmod u+x install.sh $ bash install.sh
$ git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
$ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
$ sudo apt install autojump
j dir
jo dir
$ sudo apt install fasd
alias f='fasd -f' alias d='fasd -d' alias a='fasd -a' alias s='fasd -si'
alias sd='fasd -sid' alias sf='fasd -sif' alias z='fasd_cd -d' alias zz='fasd_cd -d -i'
$ sudo nano ~/.zshrc
plugins=( git fasd zsh-autosuggestions zsh-syntax-highlighting extract )
ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" "ys" "pygmalion" "rixius")
|
打印当前系统的logo
打印当前系统的logo
1 2 3 4
| $ sudo apt install screenfetch -y
$ sudo apt install neofetch -y
|
输入法
输入法推荐使用小狼毫RIME
1 2 3 4 5 6 7 8 9 10 11
| $ sudo apt-get install ibus-rime $ ibus restart $ ibus engine rime
$ nano ~/.config/ibus/rime/build/ibus_rime.yaml
style: horizontal: true $ ibus restart
|
Qv2ray
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| $ sudo apt-get install gnupg ca-certificates curl
$ curl -sSL https://qv2ray.github.io/debian/pubkey.gpg | sudo apt-key add -
$ echo "deb [arch=amd64] https://qv2ray.github.io/debian/ stable main" | sudo tee /etc/apt/sources.list.d/qv2ray.list
$ sudo apt-get update
$ sudo apt-get install qv2ray
|
Screen
可以在多个进程之间多路复用一个物理终端的全屏窗口管理器
1 2 3 4 5 6 7 8 9 10 11 12
| $ sudo apt-get install screen
$ screen -S sessionname
$ screen -ls
$ screen -r sessionname or sessionid
$ screen -d -r sessionname or sessionid
$ screen -X
|
暂离当前会话
子会话
1 2 3 4 5
| Ctrl + a then c Ctrl + a then w Ctrl + a then p Ctrl + a then n Ctrl + a then 0-9
|
读取Mac的文件格式
1
| $ sudo apt-get install hfsprogs
|
IFCONFIG
1
| $ sudo apt-get install net-tools
|
Terminal
推荐两个Terminal,可以替代系统的终端
Guake
通过快捷键可以快速打开和管理,支持Tab
1 2 3 4
| $ sudo apt-get install guake -y
$ sudo cp /usr/share/applications/guake.desktop /etc/xdg/autostart/
|
Terminator
可以分窗口,功能比自带Terminal强太多,难怪安装好就成了默认终端了。。。
安装
1 2
| $ sudo apt-get install terminator
|
主题插件
1 2 3 4 5 6 7 8 9 10 11
|
$ mkdir -p $HOME/.config/terminator/plugins
$ dpkg -l | grep terminator
$ wget https://git.io/v5Zww -O $HOME"/.config/terminator/plugins/terminator-themes.py"
$ wget https://git.io/v5Zwz -O $HOME"/.config/terminator/plugins/terminator-themes.py"
|
设置默认主题
- 在Layout里新建一个布局,选择自己喜欢的主题。
- 在preferences的global Tab里,勾选
Re-use profiles for new terminals
这个做法我没试过,我创建了一个新的布局, 然后再~/.config/terminator/config 文件里,把defalut删了,再把我的布局名称改成了defalut了,还可以设置窗口大小。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| [[default]] [[[child0]]] type = Window parent = "" order = 0 position = 668:271 maximised = False fullscreen = False size = 1200, 600 title = yao@Yao-ThinkPad-E460:~/Desktop last_active_term = f5ab9814-cb1b-49b6-939d-63c9ba290ec1 last_active_window = True [[[terminal1]]] type = Terminal parent = child0 order = 0 profile = Venom uuid = f5ab9814-cb1b-49b6-939d-63c9ba290ec1
|
Dropbox
添加源
1 2 3 4 5 6 7 8 9
| $ sudo nano /etc/apt/sources.list.d/dropbox.list
deb [arch=i386,amd64] http://linux.dropbox.com/ubuntu bionic main
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1C61A2656FB57B7E4DE0F4C1FC918B335044912E $ sudo apt update $ sudo apt install python3-gpg dropbox
|
第一次启动Dropbox时会下载守护程序,但是在墙外,设置系统代理没有用,需要在启动dropbox命令行前单独设置代理,也可以手动下载
1 2
| $ cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
|
启动Dropbox,需要使用https的代理
1
| sudo https_proxy=http://ip:port dropbox start -i
|