Ubuntu 18.10 安裝之後做的一點事(一)
阿新 • • 發佈:2018-11-10
sb_release -c //檢視系統代號
更換為西電ubuntu更新源
vim /etc/apt/sources.list //開啟更新目錄 deb https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic main restricted universe multiverse deb-src https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic main restricted universe multiverse deb https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic-security main restricted universe multiverse deb-src https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic-security main restricted universe multiverse deb https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic-updates main restricted universe multiverse deb-src https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic-updates main restricted universe multiverse deb https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic-backports main restricted universe multiverse deb-src https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic-backports main restricted universe multiverse deb https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic-proposed main restricted universe multiverse deb-src https://linux.xidian.edu.cn/mirrors/ubuntu/ cosmic-proposed main restricted universe multiverse
Telegram 安裝
sudo add-apt-repository ppa:atareao/telegram
sudo apt update
sudo apt-get install telegram-desktop
sudo apt remove telegram //此句解除安裝時候使用
Chrome 安裝
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - //下載並安裝 sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list' //將官方源加入源列表 sudo apt-get update //更新 sudo apt-get install google-chrome-stable //安裝穩定版Chrome sudo apt-get install google-chrome-beta //安裝beta版Chrome sudo apt-get install google-chrome-unstable //安裝不穩定版Chrome
SS 安裝
sudo add-apt-repository ppa:hzwhuang/ss-qt5 ppa:hzwhuang/ss-qt5 // 並沒有18.10的源,所以會報錯: E: 倉庫 “http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu bionic Release” cd /etc/apt/sources.list.d/ //修改下面的hzwhuang-ubuntu-ss-qt5-bionic.list 去官網看看適配了那個 sudo vim hzwhuang-ubuntu-ss-qt5-bionic.list
修改為
deb http://ppa.launchpad.net/hzwhuang/ss-qt5/ubuntu Artful main
然後再執行:
sudo apt-get update
sudo apt-get install shadowsocks-qt5
Java安裝
apt-cache search openjdk //尋找合適版本
sudo apt-get install //安裝自己想要的版本
java -version //檢查是否配置成功
echo $java_home
which javac //尋找javac的路徑,然後通過file 一步一步尋找
sudo echo export JAVA_HOME=”/usr/lib/jvm/java-11-openjdk-amd64/bin”>>~/.bashrc //新增系統環境變數
source ~/.bashrc
gedit ~/.bashrc //測試是否配置成功