以下脚本用于刚刚完成安装的Ubuntu22.04 LTS系统。
init.sh
装完系统后,本脚本用于刷新apt。
1 2 3 4 5 6 7
| echo '配置成清华源' sudo sed -i "s@http://.*archive.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list sudo sed -i "s@http://.*security.ubuntu.com@https://mirrors.tuna.tsinghua.edu.cn@g" /etc/apt/sources.list
echo '更新所有软件包' sudo apt update sudo apt upgrade
|
exp.sh
正式安装必要的软件(有一些软件可能不是最新版)。
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
| sudo apt update
RED='\E[1;31m' # 红 RES='\E[0m' # 清除颜色
echo '安装微信(参考https://blog.csdn.net/yunlin2000/article/details/125424695)' wget http://archive.ubuntukylin.com/software/pool/partner/ukylin-wine_70.6.3.25_amd64.deb wget http://archive.ubuntukylin.com/software/pool/partner/ukylin-wechat_3.0.0_amd64.deb sudo dpkg -i ukylin-wine_70.6.3.25_amd64.deb sudo dpkg -i ukylin-wechat_3.0.0_amd64.deb echo -e "${RED}该版微信截图可能无法使用,需要结合PrintScreen快捷键使用。${RES}"
echo '安装并默认配置gcc, g++10' sudo apt-get install gcc-10 sudo apt-get install g++-10 cd /usr/bin&&sudo rm -rf gcc&&sudo ln -s gcc-10 gcc&&sudo rm -rf g++&&sudo ln -s g++-10 g++
echo '安装Clion' sudo snap install clion --classic
echo '安装Python3.11' sudo apt install python3.11
echo '安装Pycharm社区版' sudo snap install pycharm-community --classic
echo '安装VScode' sudo wget https://az764295.vo.msecnd.net/stable/30d9c6cd9483b2cc586687151bcbcd635f373630/code_1.68.1-1655263094_amd64.deb sudo dpkg -i code_1.68.1-1655263094_amd64.deb
echo '安装Google Chrome' sudo wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome-stable_current_amd64.deb
echo '安装git, vim等' sudo apt install git vim
echo '安装向日葵' sudo wget https://down.oray.com/sunlogin/linux/SunloginClient_11.0.1.44968_amd64.deb sudo dpkg -i SunloginClient_11.0.1.44968_amd64.deb
echo 'Hexo博客环境相关' sudo apt install nodejs npm pandoc sudo npm install -g hexo-cli
echo 'SSH设置相关' sudo apt install net-tools ssh openssh-server
echo '安装并自动配置搜狗输入法(参考https://blog.csdn.net/weixin_64684404/article/details/125461860)' sudo apt install fcitx sudo cp /usr/share/applications/fcitx.desktop /etc/xdg/autostart/ sudo apt purge ibus sudo wget https://ime.sogouimecdn.com/202210311553/55aeadc888f29444268beefacb62c811/dl/gzindex/1656597217/sogoupinyin_4.0.1.2800_x86_64.deb sudo dpkg -i sogoupinyin_4.0.1.2800_x86_64.deb sudo apt install libqt5qml5 libqt5quick5 libqt5quickwidgets5 qml-module-qtquick2 libgsettings-qt1
|