Pop!_OS相關使用配置
#0x0 書接上回
首先請看上一章末尾,
Pop!_OS安裝與配置(一)
修復grub和時間同步
#0x1 換源
#0x10 nopasswd sudo
個人使用,懶得次次輸入密碼
因此先給自己加個nopasswd 的sudo
終端:
sudo su - root
#root身份下:
visudo
#在%sudo ALL=(ALL:ALL) ALL下另起一行
用戶名 ALL=(ALL:ALL) NOPASSWD:ALL
保存退出,退回原本用戶
#0x11 換國內源
他本身的源是很慢的,而且有時候還會連接失敗,應該得科學上網
而Pop!_os本身就是ubuntu 改版,所以直接從網上找ubuntu國內的源
終端
cd /etc/apt
sudo cp source.list source.list.backup
sudo gedit /etc/apt/source.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
保存退出
當然還有別的國內源可以自行百度選擇。
0x2 安裝應用
其實我也是搜索ubuntu18.04配置美化,然后照抄各位大佬的操作
在這里做一個整理吧
- 更新使源生效
sudo apt update
sudo apt upgrade
- 網易雲音樂
首先下一個網易雲音樂可以一邊聽歌一邊搞機。
官網下載-linux-ubuntu版。
在下載目錄打開終端
sudo dpkg -i netease-cloud-music_1.1.0_amd64_ubuntu.deb
#如果失敗就sudo apt install -f
然后可能發現點擊圖標不出界面
sudo gedit /usr/share/applications/netease-cloud-music.desktop
找到Exec=netease-cloud-music %U,改為Exec=sudo netease-cloud-music %U。
- Chrome
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
sudo dpkg -i google-chrome-stable_current_amd64.deb
然后可以卸載火狐
sudo apt-get purge firefox*
- 搜狗輸入法
sudo apt-get install fcitx-bin
sudo apt-get install fcitx-table
安裝fcitx-bin && fcitx-table
然后去搜狗輸入法Linux官網下載64bit的程序
安裝
sudo dpkg -i sogoupinyin_2.2.0.0108_amd64.deb
sudo apt install -f
sudo dpkg - i sogoupinyin_2.2.0.0108_amd64.deb
修改系統默認輸入法為fcitx:設置-區域與語言-管理已安裝的語言
然后應用到整個系統
重啟,在應用列表中找到fcitx配置,點下面加號選擇搜狗拼音
- WPS
官網下載deb包WPS for linux
sudo dpkg -i wps*.deb
wps已經安裝成功。要安裝WPS所需要的字體。
鏈接: https://pan.baidu.com/s/1o84hfHPLS6hp6TJ7GzwbdA 提取碼: hpqe
雙系統的可以直接把windows的字體搬過來。
sudo mkdir /usr/share/fonts/WPS-Fonts
sudo cp -rf fonts/* /usr/share/fonts/WPS-Fonts/
cd /usr/share/fonts/WPS-Fonts
sudo mkfontscale
sudo mkfontdir
sudo fc-cache
卸載libreoffice
sudo apt-get purge libreoffice*
- uget && aria2
這是下載工具
uget-Download Manager(sourceforge)
然后dpkg
安裝aria2
sudo add-apt-repository ppa:t-tujikawa/ppa
sudo apt-get update
#如果有報錯:sudo mv /etc/apt/sources.list.d/t-tujikawa-ubuntu-ppa-disco.list t-tujikawa-ubuntu-ppa-disco.list.bak
sudo apt-get install aria2
整合
uGet->編輯->設置->插件
-
WeChat.QQ
參考項目deepin-wine-ubuntu -
科學上網
electron-ssr v0.2.6
同樣sudo dpkg -i
然后按下ctrl+shift+w喚出界面
ctrl+shift+b打開菜單,選擇全局代理,pac好像有點問題
將這個http代理端口由12333改為8080(與下面設置網絡代理里的一致即可)
接下來打開設置->網絡->網絡代理,進行修改。
-
安全
安全一點吧,防患於未然
查看防火牆狀態:sudo ufw status
開啟防火牆,並在系統啟動時自動開啟:sudo ufw enable
關閉所有外部對本機的訪問,但本機訪問外部正常:sudo ufw default deny
完事。