本文共 4391 字,大约阅读时间需要 14 分钟。
【系统更新】
~$ sudo apt update ~$ sudo apt upgrade ~$ sudo apt autoremove【更新源】
备份源 sudo mv /etc/apt/sources.list /etc/apt/sources.list.bak 更换源 sudo nano /etc/apt/sources.list 粘贴下面内容,更改为阿里源(20.04LTS):deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
保存退出,更新源 sudo apt update更新软件
sudo apt upgrade【彻底卸载libreoffice】
sudo apt remove libreoffice-calc
sudo apt remove libreoffice-draw sudo apt remove libreoffice-impress sudo apt remove libreoffice-writer sudo apt remove libreoffice*sudo apt purge libreoffice*
sudo apt autoremove
【卸载没用到的软件】
~$ sudo apt remove thunderbird
~$ sudo apt remove pidgin ~$ sudo apt remove parole——————————————————————————————————————————————————————————————————————————————————————————
【查系统信息命令】
~$ df -h
~$ lsb_release -a ~$ uname -a ~$ free -m ~$ lscpu ~$ sensors 【安装系统信息查询】 ~$ sudo apt install screenfetch ~$ screenfetch【实时进程和CPU内存监视】
~$ sudo apt install htop ~$ htop——————————————————————————————————————————————————————————————————————————————————————————
【安装网络服务】
~$ sudo apt install net-tools ~$ ifconfig 查IP地址~$ sudo apt install nmap
~$ nmap 127.0.0.1 查开放的端口~$ sudo apt install remmina
远程桌面软件~$ sudo apt install qbittorrent
BT下载工具,设置参考https://trackerslist.com/#/zh?id=qbittorrent~$ sudo apt install putty
管理ssh的shell软件【安装Xrdp Server(远程桌面)】
前提:安装Gnome或者Xfce sudo apt install ubuntu-desktop sudo apt install xubuntu-desktop安装Xrdp
~$ sudo apt install xrdp 启动服务 ~$ sudo systemctl status xrdp重新启动Xrdp服务
sudo systemctl restart xrdp Xrdp配置文件位于/etc/xrdp目录,主配置文件名为xrdp.ini 配置防火墙 sudo ufw allow from 192.168.1.129/24 to any port 3389 sudo ufw allow 3389如果本机该用户已经登录,远程登录不了的话,可以尝试在本机注销后再在远程登录
——————————————————————————————————————————————————————————————————————————————————————————【安装搜狗拼音输入法】
~/下载$ sudo dpkg -i sogoupinyin_2.4.0.3469_amd64.deb
正在选中未选择的软件包 sogoupinyin。 dpkg: 关于含有 sogoupinyin 的 sogoupinyin_2.4.0.3469_amd64.deb: sogoupinyin 会破坏 fcitx-ui-qimpanel fcitx-ui-qimpanel (版本为 2.1.3-2build1)已存在并且 已安装。dpkg: 处理归档 sogoupinyin_2.4.0.3469_amd64.deb (--install)时出错:
安装 sogoupinyin 将破坏 fcitx-ui-qimpanel,并且 不允许反配置(--auto-deconfigure 也许会有帮助) 在处理时有错误发生: sogoupinyin_2.4.0.3469_amd64.deb~/下载$ sudo apt remove fcitx-ui-qimpanel
~/下载$ sudo dpkg -i sogoupinyin_2.4.0.3469_amd64.deb ~/下载$ sudo apt -f install ~/下载$ reboot 【安装记事本功能】 ~$ sudo apt install gedit ——————————————————————————————————————————————————————————————————————————————————————————【安装蓝牙管理器】
~$ sudo apt install blueman 然后面板上就有蓝牙图标,可以开关蓝牙了。【温度监测】
~$ sudo apt install psensor*Psensor在远程登录时会有bug,会不停提示需要给硬盘信息授权,把硬盘温度监测关闭即可。
首选项——Provides,Enable surpport of udisks2,去掉前面的√如果在终端,用以下命令
~$ watch -n 2 sensors 读数每2秒更新一次,可根据需要调整,Ctrl+C退出【电池情况监测】
~$ sudo apt install acpi ~$ acpi #查电池剩余百分比 ~$ acpi -V #查全部电池相关信息 ~$ acpi -a #查交流电适配器是否连接 ~$ man acpi #查看该命令更多用法【电源挂起功能设置】
以下操作将“挂起”功能停止,以便不会影响服务器长期工作~$ sudo nano /etc/systemd/logind.conf
#HandleLidSwitch=suspend 改成: HandleLidSwitch=ignore保存退出,然后重启服务:
~$ sudo service systemd-logind restart~$ sudo reboot
——————————————————————————————————————————————————————————————————————————————————————————
【影音娱乐】
~$ sudo apt install vlc【美化桌面】
~$ sudo apt install plank 类似macOS的Dock栏,按住Ctrl,右击图标调出首选项 xubuntu下出现桌面一条线,开始————设置————窗口管理器微调,合成器(O) 去掉”在Dock窗口下显示阴影“前的√xubuntu壁纸默认目录:/usr/share/xfce4/backdrops
【添加软件开机自启动】
开始————设置————会话和启动
————应用程序自启动(L)
以添加plank为例
终端:
~$ whereis plank plank: /usr/bin/plank /usr/lib/x86_64-linux-gnu/plank /usr/share/plank /usr/share/man/man1/plank.1.gz可以查出程序路径/usr/bin/plank
然后在应用程序自启动(L),点击“添加”
名称:plank (随便写) 描述:plank (随便写) 命令:/usr/bin/plank (把查出来的完整路径填写上去) 触发器:on login (选择用户登录时开启)转载地址:http://hswh.baihongyu.com/