sudo passwd root
sudo sed -e 's|^metalink=|#metalink=|g' -e 's|^#baseurl=http://download.example/pub/fedora/linux|baseurl=https://mirrors.ustc.edu.cn/fedora|g' -i.bak /etc/yum.repos.d/fedora.repo /etc/yum.repos.d/fedora-modular.repo /etc/yum.repos.d/fedora-updates.repo /etc/yum.repos.d/fedora-updates-modular.repo sudo dnf makecache
sudo dnf remove firefox* sudo dnf install chromium vim tilda zsh
注意:输入法最后一个会是默认输入法
sudo dnf install fcitx5 fcitx5-configtool fcitx5-chinese-addons fcitx5-qt fcitx5-table-extra fcitx5-table-other gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/IMModule':<'fcitx'>}"
echo "[google-chrome] name=google-chrome baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64 enabled=1 gpgcheck=1 gpgkey=https://dl.google.com/linux/linux_signing_key.pub " > /etc/yum.repos.d/google-chrome.repo sudo dnf install google-chrome-stable -y
sudo sh -c 'echo -e "[code] name=Visual Studio Code baseurl=https://packages.microsoft.com/yumrepos/vscode enabled=1 gpgcheck=1 gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' sudo dnf check-update sudo dnf install code
sudo dnf remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-selinux docker-engine-selinux docker-engine sudo dnf -y install dnf-plugins-core sudo dnf config-manager --add-repo https://download.docker.com/linux/fedora/docker-ce.repo sudo sed 's/download.docker.com/mirrors.ustc.edu.cn/docker-ce/g' -i.bak /etc/yum.repos.d/docker-ce.repo sudo dnf install docker-ce docker-ce-cli containerd.io sudo systemctl enable docker.service sudo groupadd docker sudo usermod -aG docker $USER newgrp docker sudo systemstl start docker.service echo -e "{ "registry-mirrors": ["https://docker.mirrors.ustc.edu.cn/"], "data-root": "/home/taoqf/docker/" }" | sudo tee /etc/docker/daemon.json sudo systemctl daemon-reload sudo systemctl restart docker.service
sudo curl -L https://get.daocloud.io/docker/compose/releases/download/1.28.5/docker-compose-`uname -s`-`uname -m` --output /usr/local/bin/docker-compose sudo chmod +x /usr/local/bin/docker-compose
sudo dnf remove PackageKit