1 环境配置
blobt edited this page 1 year ago

修改软件源为清华源

vim /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish main restricted 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates main restricted 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish universe 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates universe 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish multiverse 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-updates multiverse 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ impish-backports main restricted universe multiverse 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security main restricted 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security universe 
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu impish-security multiverse

安装常用包

sudo apt update
sudo apt install curl vim net-tools libjpeg62:i386 gnome-shell-extension-top-icons-plus gnome-tweaks -y

安装sogou输入法

sudo apt install fcitx
sudo apt purge ibus
sudo cp /usr/share/applications/fcitx.desktop /etc/xdg/autostart/
wget https://ime.sogouimecdn.com/202301262055/d5b8a8c678e458c6f8fe639f012b9bda/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
sudo apt install libgsettings-qt1

安装chrome

wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && sudo dpkg -i google-chrome-stable_current_amd64.deb

安装V2RayA

curl -Ls https://mirrors.v2raya.org/go.sh | sudo bash
sudo systemctl enable v2ray
sudo systemctl start v2ray
wget -qO - https://apt.v2raya.org/key/public-key.asc | sudo apt-key add -
echo "deb https://apt.v2raya.org/ v2raya main" | sudo tee /etc/apt/sources.list.d/v2raya.list
sudo apt update
sudo apt install v2raya
sudo systemctl enable v2raya
sudo systemctl start v2raya

打开浏览器访问: http://127.0.0.1:2017 设置订阅地址:https://wwwjs.pro/api/v1/client/subscribe?token=b42f4a7794e24558fdfd05c2e50f6387

修复V2RayA 无法更新问题

如果运行apt update后出现下面提示

Get:4 https://apt.v2raya.org v2raya InRelease [6,089 B]             
Err:4 https://apt.v2raya.org v2raya InRelease 
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 354E516D494EF95F
Hit:13 http://security.ubuntu.com/ubuntu focal-security InRelease
Reading package lists... Done
W: GPG error: https://apt.v2raya.org v2raya InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 354E516D494EF95F
E: The repository 'https://apt.v2raya.mzz.pub v2raya InRelease' is not signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.

下载public key 并添加

cd ~/Downloads
wget http://apt.v2raya.mzz.pub/key/public-key.asc
sudo apt-key add public-key.asc

安装zoom

wget https://zoom.us/client/latest/zoom_amd64.deb
sudo apt install ./zoom_amd64.deb

同步win10时间

sudo apt-get install ntpdate
sudo ntpdate time.windows.com
sudo hwclock --localtime --systohc

温度和cpu使用率

sudo add-apt-repository ppa:fossfreedom/indicator-sysmonitor -y
sudo apt-get update
sudo apt-get install indicator-sysmonitor

配置系统startup 命令为 indicator-sysmonitor &

缩放后出现2个鼠标问题修复

修改/etc/gdm3/custom.conf,设置WaylandEnable=false

安装截图工具 flameshot

https://www.cnblogs.com/kendoziyu/p/how_to_screenshot_in_ubuntu2004.html

sudo apt-get install flameshot
flameshot gui

设置快捷键

安装录屏软件 kazam

sudo apt-get install kazam

安装调节cpu性能的工具

sudo apt-get install indicator-cpufreq