本文共 2534 字,大约阅读时间需要 8 分钟。
1.备份默认源文件:
sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak
2.更换阿里云源:
sudo nano /etc/apt/sources.list
3.粘贴以下内容:
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiversedeb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
4.保存退出并更新源:
sudo apt update
###彻底卸载LibreOffice
sudo apt remove libreoffice*sudo apt purge libreoffice*sudo apt autoremove
###卸载不必要软件
sudo apt remove thunderbird pidgin parole
###查看系统状态
df -hlsb_release -auname -afree -mlscpusensors
###安装系统信息工具
sudo apt install screenfetchscreenfetchsudo apt install htophtop
###安装网络工具
sudo apt install net-toolsifconfigsudo apt install nmapnmap 127.0.0.1sudo apt install remminasudo apt install qbittorrentsudo apt install putty
###安装Xrdp远程桌面服务器
sudo apt install ubuntu-desktopsudo apt install xubuntu-desktopsudo apt install xrdpsudo systemctl status xrdpsudo systemctl restart xrdpsudo ufw allow from 192.168.1.129/24 to any port 3389sudo ufw allow 3389
###搜狗拼音输入法
sudo dpkg -i sogoupinyin_2.4.0.3469_amd64.debsudo apt remove fcitx-ui-qimpanelsudo dpkg -i sogoupinyin_2.4.0.3469_amd64.debsudo apt -f installsudo reboot
###安装记事本
sudo apt install gedit
###安装蓝牙管理器
sudo apt install blueman
###温度监测
sudo apt install psensor# 配置注意:在远程登录时可能需要关闭硬盘温度监测
###电池监测
sudo apt install acpiacpi -Vacpi -aman acpi
###禁用电源挂起
sudo nano /etc/systemd/logind.conf# HandleLidSwitch=suspendHandleLidSwitch=ignoresudo service systemd-logind restartsudo reboot
###安装影音软件
sudo apt install vlc
###安装桌面美化工具
sudo apt install plank
###桌面微调
在窗口管理器设置中:- 合成器(O)- 去掉“在Dock窗口下显示阴影”的选项
###添加开机自启动程序 1.查找程序路径:
whereis plank
2.在会话和启动设置中:
转载地址:http://hswh.baihongyu.com/