Switch to Fedora Silverblue

2021/05/22

分区方案

分区 挂载点 格式 大小
efi /boot/efi efi 512M
boot /boot ext4 1G
root / btrfs 256G
home /var/home ext4 剩余空间

配置镜像

fedora-ostree

RPMFusion 镜像使用帮助

sudo rpm-ostree update

基础软件

卸载冗余

首先卸载掉来自Fedora的所有flatpak包,之后覆写掉ostree上的如下包:

sudo rpm-ostree override remove gnome-tour yelp google-noto-sans-cjk-ttc-fonts

向ostree增添包

sudo rpm-ostree install gnome-extensions-app gnome-tweaks
sudo rpm-ostree install ffmpegthumbnailer file-roller p7zip unrar webp-pixbuf-loader eog gnome-weather ibus-rime
sudo rpm-ostree install fish neovim clash proxychains-ng ffmpeg-libs gstreamer1-plugin-openh264 mozilla-openh264 hugo
sudo rpm-ostree install google-noto-serif-cjk-sc-fonts
sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'
sudo rpm install code

Toolbox

toolbox create
toolbox enter

sudo dnf install --nogpgcheck https://mirrors.bfsu.edu.cn/rpmfusion/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://mirrors.bfsu.edu.cn/rpmfusion/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

sudo dnf install nodejs
sudo npm config set registry https://registry.npm.taobao.org
sudo npm install -g nativefier

sudo dnf install ffmpeg youtube-dl proxychains

配置

git

git config --global user.name "qvshuo"
git config --global user.email qvshuo@foxmail.com

SSH key

ssh-keygen -t rsa -C qvshuo@foxmail.com
cat ~/.ssh/id_rsa.pub

恢复配置文件

git clone git@github.com:qvshuo/fdotfiles.git
./rsync
systemctl --user enable clash
systemctl --user enable syncthing

GDM 缩放

sudo cp ~/.config/monitors.xml /var/lib/gdm/.config/
sudo chown gdm:gdm /var/lib/gdm/.config/monitors.xml

Firefox

about:config

退格键返回:(将值由2改成0)
browser.backspace_action

双击关闭标签页:
browser.tabs.closeTabByDblclick

终结内容农场

https://raw.githubusercontent.com/danny0838/content-farm-terminator/gh-pages/files/blocklist/content-farms.txt

flatpak

flatpak --user config --set languages "zh;en"
flatpak --user override --env=LC_ALL=zh_CN.UTF-8
flatpak --user override --filesystem=~/.themes
flatpak --user remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak --user remote-modify flathub --url=https://mirror.sjtu.edu.cn/flathub
flatpak install flathub org.gtk.Gtk3theme.Materia{,-dark,-light}{,-compact}

flatpak install flathub org.telegram.desktop
flatpak install flathub net.agalwood.Motrix
flatpak install flathub com.thincast.client

flatpak install flathub org.gnome.Lollypop
flatpak install flathub io.github.celluloid_player.Celluloid

flatpak install flathub com.github.huluti.Curtail
flatpak install flathub org.gimp.GIMP

flatpak install flathub org.gnome.EasyTAG
flatpak install flathub org.soundconverter.SoundConverter

flatpak install flathub com.obsproject.Studio
flatpak install flathub org.blender.Blender
flatpak install flathub fr.handbrake.ghb

flatpak install flathub org.onlyoffice.desktopeditors
flatpak install flathub io.typora.Typora
flatpak install flathub com.visualstudio.code

Gnome Extensions

https://extensions.gnome.org/extension/3193/blur-my-shell/
https://extensions.gnome.org/extension/779/clipboard-indicator/
https://extensions.gnome.org/extension/3843/just-perfection/
https://extensions.gnome.org/extension/2236/night-theme-switcher/
https://extensions.gnome.org/extension/1007/window-is-ready-notification-remover/

字体

cp fonts ~/.local/share/fonts
chmod 644 fonts
fc-cache -f

主题

materia-theme