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 //测试是否配置成功