ubuntu18重装笔记
生活随笔
收集整理的這篇文章主要介紹了
ubuntu18重装笔记
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
再次重裝了系統,為方便以后再次重裝,,,因此將主要步驟記錄下來。
1. 更新源
sudo gedit /etc/apt/sources.list
# 阿里源deb http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse # 中科大源 deb https://mirrors.ustc.edu.cn/ubuntu/ focal main restricted deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates main restricted deb https://mirrors.ustc.edu.cn/ubuntu/ focal universe deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates universe deb https://mirrors.ustc.edu.cn/ubuntu/ focal multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ focal-updates multiverse deb https://mirrors.ustc.edu.cn/ubuntu/ focal-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu focal-security main restricted deb http://security.ubuntu.com/ubuntu focal-security universe deb http://security.ubuntu.com/ubuntu focal-security multiverse進行更新
sudo apt update sudo apt upgrade2. 安裝git及配置
sudo apt install git配置github免密傳輸
ssh-keygen -t rsa cd ~/.ssh; cat id_rsa.pub;將輸出信息復制到github設置的SSH and GPG keys一欄,添加
2. 安裝vim
sudo apt install vim使用vim一鍵配置
wget -qO- https://raw.github.com/ma6174/vim/master/setup.sh | sh -x3. 安裝google
到google官網下載安裝包,進入文件夾
sudo dpkg -i ***.deb網易云、vscode、virtualbox、wps等同理
4. 安裝shadowsocks
sudo apt install shadowsocks-qt5 sudo vim /etc/shadowsocks.json格式為
{ "server":"ip地址", "server_port":端口號, "local_port":1080, "password":"密碼", "timeout":600, "method":"加密方式" }修改網絡代理設置
為便于使用,編寫腳本
vim .shadowsocks.sh文件內容為:
#!/bin/shsudo sslocal -c /etc/shadowsocks.json使用時直接運行腳本即可。
5. 安裝搜狗輸入法
sudo apt install fcitx官網下載對應的deb包,進入文件夾
sudo dpkg -i ***.deb進入到Add input method界面,將下面的Only Show Current Language 取消掉后,在搜索欄搜索搜狗拼音,選中之后進行添加。
添加成功后,將搜狗拼音移到第一位。
參考:https://blog.csdn.net/lupengCSDN/article/details/80279177
6. 安裝oh-my-zsh
- 先安裝zsh
- 把默認shell改為zsh
或按照這樣修改終端配置
- 安裝oh-my-zsh
7. 取消顯示桌面圖標
安裝tweak-tool
sudo apt install gnome-tweak-tool打開后,在桌面一欄,將show icons取消
8. 安裝gcc、g++
sudo apt install gcc sudo apt install g++若有依賴問題,一般可使用sudo apt install -f解決。
Ps: -f 是--fix-broken的縮寫,并非強制執行。
總結
以上是生活随笔為你收集整理的ubuntu18重装笔记的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 坤泰胶囊治疗多囊卵巢
- 下一篇: Ubuntu14.04设置开机可以以ro