https://ip.skk.moe/simple-dark
wget <http://fishros.com/install> -O fishros && . fishros
source <(wget -qO- <http://fishros.com/install>)
# chsrc
curl <https://chsrc.run/posix> | sudo bash
wget -O chsrc <https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-linux> && chmod +x ./chsrc
curl -L <https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-x64-linux> -o chsrc; chmod +x ./chsrc
# aarch64
curl -L <https://gitee.com/RubyMetric/chsrc/releases/download/pre/chsrc-aarch64-linux> -o chsrc; chmod +x ./chsrc
# 一键设置源
sudo chsrc set ubuntu ustc
sudo sed -i 's@//.*archive.ubuntu.com@//mirrors.ustc.edu.cn@g' /etc/apt/sources.list
sudo sed -E -i 's@https?://.*/ubuntu/?@<https://mirrors.tuna.tsinghua.edu.cn/ubuntu@g>' /etc/apt/sources.list
sed -E -i 's@https?://.*/ubuntu/?@<https://mirrors.cernet.edu.cn/ubuntu/@g>' /etc/apt/sources.list
sudo apt edit-sources # 验证换源
# fastfetch
wget <https://github.com/fastfetch-cli/fastfetch/releases/latest/download/fastfetch-linux-amd64.deb> && sudo apt install ./fastfetch*.deb
wget <https://github.com/fastfetch-cli/fastfetch/releases/latest/download/fastfetch-linux-aarch64.deb> && sudo apt install ./fastfetch*.deb
sudo add-apt-repository ppa:zhangsongcui3371/fastfetch
sudo apt update
sudo apt upgrade
# 每个ppa都会在/etc/apt/sources.list.d/目录下创建一个list文件。
# 只需把里面的ppa.launchpad.net改为 launchpad.proxy.ustclug.org ,http改为https即可。
sudo apt install sudo curl git nano fish btop htop neofetch python-is-python3 \\
gdebi gdebi-core
sudo apt install konsole dolphin konqueror
wget <http://fishros.com/install> -O fishros && . fishros
sudo su # 切换到 root 用户并保留当前用户的环境变量和工作目录
sudo -i # 完全模拟 root 用户的登录会话,并改变当前的环境变量和工作目录
export PATH="$PATH:/usr/local/bin:$HOME/.local/bin" #添加环境变量, : 号分割
export PATH="$HOME/.local/bin:$PATH"
sudo systemctl disable sddm # 命令禁用显示管理器
sudo systemctl disable lightdm # 命令禁用显示管理器
# 更新时间
sudo ntpdate pool.ntp.org
# 双系统时间不一致, 修改 Windows 硬件时钟为 UTC 时间
Reg add HKLM\\SYSTEM\\CurrentControlSet\\Control\\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1
# 解决依赖
sudo apt install aptitude
sudo aptitude install openssh-server
# oh-my-bash
bash -c "$(wget <https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh> -O -)"
sudo hostnamectl set-hostname 新主机名 # 更改主机名(永久且立即生效)
其它:
/bin/bash -c "$(curl -fsSL <https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh>)"
**curl -fsSL <https://click.diy/brew> | bash**
echo >> /home/clicko/.bashrc
echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' >> /home/clicko/.bashrc
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# 中文输入法
sudo apt install fcitx5 fcitx5-chinese-addons fcitx5-frontend-gtk4 \\
fcitx5-frontend-gtk3 fcitx5-frontend-gtk2 fcitx5-frontend-qt5
# 下载词库文件
wget <https://github.com/felixonmars/fcitx5-pinyin-zhwiki/releases/download/0.2.4/zhwiki-20220416.dict>
mkdir -p ~/.local/share/fcitx5/pinyin/dictionaries/
mv zhwiki-20220416.dict ~/.local/share/fcitx5/pinyin/dictionaries/
# 选择 fcitx5 引擎
im-config
# 开机自启
sudo cp /usr/share/applications/org.fcitx.Fcitx5.desktop /etc/xdg/autostart/
# 设置中文 (可选步骤)
sudo apt install lang uage-pack-zh-hans fonts-noto-cjk
sudo dpkg-reconfigure locales
sudo nano /etc/default/locale
# 设置为
LANG="zh_CN.UTF-8"
LC_ALL="zh_CN.UTF-8"