Skip to content

Instantly share code, notes, and snippets.

@luminoso
Last active July 15, 2023 08:58
Show Gist options
  • Save luminoso/2f3bb79cff42d7a4bfc718977778b6d3 to your computer and use it in GitHub Desktop.
Save luminoso/2f3bb79cff42d7a4bfc718977778b6d3 to your computer and use it in GitHub Desktop.
fedora base install minimal setup
# https://wiki.archlinux.org/title/Trusted_Platform_Module#Clevis
sudo dnf install clevis\*
# check the correct partition with lsbk
sudo lsblk
# bind clevis to secure boot
sudo clevis luks bind -d /dev/nvme0n1p3 tpm2 '{"pcr_ids":"1,7"}'
sudo systemctl enable clevis-luks-askpass.path
# optional. see detailed boot plymonth
# sudo plymouth-set-default-theme details -R
# regenerate dracut
sudo dracut -f -v
# flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak update
flatpak install -y spotify
flatpak install -y anydesk
flatpak install -y org.signal.Signal
# brave browser. is an ad-based browser.
sudo dnf install -y dnf-plugins-core
sudo dnf config-manager --add-repo https://brave-browser-rpm-release.s3.brave.com/x86_64/
sudo rpm --import https://brave-browser-rpm-release.s3.brave.com/brave-core.asc
sudo dnf install -y brave-browser
# anydesk. better use the flatpak version
cat > /etc/yum.repos.d/AnyDesk-Fedora.repo << "EOF"
[anydesk]
name=AnyDesk Fedora - stable
baseurl=http://rpm.anydesk.com/fedora/$basearch/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://keys.anydesk.com/repos/RPM-GPG-KEY
EOF
sudo dnf install -y anydesk
# signal-desktop. better use the flatpak version
sudo dnf copr enable luminoso/Signal-Desktop
sudo dnf install -y signal-desktop
# virtualbox. incompatible with securebot for now
cd /etc/yum.repos.d/
sudo wget https://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo
sudo dnf install -y VirtualBox-6.1
sudo dnf install -y kernel-devel
# keybase. brought by zoom. now irrelevant
sudo dnf install -y https://prerelease.keybase.io/keybase_amd64.rpm
# mono + keepass. maybe better to use keepassxc
sudo rpm --import "https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF"
su -c 'curl https://download.mono-project.com/repo/centos8-stable.repo | tee /etc/yum.repos.d/mono-centos8-stable.repo'
sudo dnf install -y mono --refresh
sudo dnf install -y keepass
# better fonts. can cause problems on hidpi monitors.
sudo dnf install -y curl cabextract xorg-x11-font-utils fontconfig
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
sudo dnf install -y google-croscore-\*
sudo dnf install -y google-crosextra-ca\*
# sudo dnf copr enable dawid/better_fonts
# sudo dnf install -y fontconfig-enhanced-defaults fontconfig-font-replacements
# snap support. let's avoid centralized store management and use flatpak instead
sudo dnf install -y snapd
# spotify. may be installed via flatpak instead
sudo dnf config-manager --add-repo=https://negativo17.org/repos/fedora-spotify.repo
sudo dnf install -y spotify-client
# earlyoom not needed anymore if you install fedora >=34
# sudo dnf install -y earlyoom
# sudo systemctl enable earlyoom
# jupyterlab export nb as pdf
sudo dnf install -y texlive-tcolorbox texlive-adjustbox texlive-upquote texlive-titling texlive-ulem
# .zsh
# https://zdharma.org/zinit/wiki/INTRODUCTION/
# teamviewer
sudo dnf install -y https://download.teamviewer.com/download/linux/teamviewer.x86_64.rpm
# oh my zsh
sudo dnf install -y zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# change plymouth theme
sudo plymouth-set-default-theme details -R
# syncthing
sudo dnf install -y syncthing
systemctl --user enable --now syncthing.service
## for plasma only
# plasma-current
sudo dnf copr enable zawertun/kde
sudo dnf update --refresh
sudo dnf install -y --allowerasing kwin-lowlatency && sudo dnf update --refresh -y
# dolphin goodies
sudo dnf install -y nextcloud-client-dolphin dolphin-plugins
# misc stuff for plasma
sudo dnf install -y yakuake krita kate filelight krusader okular
sudo dnf install -y libreoffice-kde5
sudo dnf install -y breeze-gtk sddm-breeze
kwriteconfig5 --file startkderc --group General --key systemdBoot true
# https://mutschler.eu/linux/install-guides/fedora-post-install/
# remove useless packages
sudo dnf remove -y kmail k3b kwrite calligra\*
# update base install
sudo dnf --refresh distro-sync -y
sudo dnf check
sudo dnf autoremove -y
# update hardware firmwares
sudo fwupdmgr get-devices
sudo fwupdmgr refresh --force
sudo fwupdmgr get-updates
sudo fwupdmgr update
#sudo reboot now
# dnf tracer
sudo dnf install -y python3-dnf-plugin-tracer
# update base install with dev packages
sudo dnf group install -y 'Development Tools'
sudo dnf group install -y "C Development Tools and Libraries"
sudo dnf group install -y "RPM Development Tools"
sudo dnf group install -y "Security Lab"
# improve multimedia compatibility via rpmfusion
sudo dnf install -y https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf groupupdate core
sudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
sudo dnf groupupdate sound-and-video
sudo dnf install -y libva libva-utils mesa-vulkan-drivers
sudo dnf install -y vlc vlc-extras mpv
# just for intel graphic cards
sudo dnf install -y libva-intel-driver intel-media-driver
# extra fonts
sudo dnf install -y fira-code-fonts 'mozilla-fira*' 'google-roboto*'
# ms fonts
sudo dnf install -y curl cabextract xorg-x11-font-utils fontconfig
sudo rpm -i https://downloads.sourceforge.net/project/mscorefonts2/rpms/msttcore-fonts-installer-2.6-1.noarch.rpm
# jetbrains mono font
https://www.jetbrains.com/lp/mono/#how-to-install
# sensors and monitors
sudo dnf install -y lm_sensors vnstat uptimed
sudo sensors-detect --auto
sudo systemctl enable vnstat
sudo systemctl enable uptimed
# laptop goodies
sudo systemctl enable fstrim.timer
sudo dnf install -y tlp powertop
sudo systemctl enable tlp
# todo: check lvm crypt?
# docker
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 dnf install docker-ce docker-ce-cli containerd.io -y
# visual code editor
sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
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'
# https://zaiste.net/posts/shell-commands-rust/
# https://web.archive.org/web/20201225035446if_/https://zaiste.net/posts/shell-commands-rust/
sudo dnf install procs ripgrep tokei ytop bat exa fd-find # dust bandwith rmesg
# other misc stuff
sudo dnf install -y keepassxc thunderbird meld rapidsvn inkscape git \
nextcloud-client htop python3-devel ImageMagick \
NetworkManager-tui cowsay
sudo dnf install -y libreoffice-langpack-pt-PT libreoffice
sudo dnf install -y virt-manager
# google earth
sudo dnf install https://dl.google.com/dl/earth/client/current/google-earth-pro-stable-current.x86_64.rpm
# steam
sudo dnf install -y steam
# cloud
https://kubernetes.io/docs/tasks/tools/install-kubectl/
https://github.com/derailed/k9s
https://cloud.google.com/sdk/docs/install#rpm
https://github.com/ahmetb/kubectx
# telegram client
sudo dnf install telegram-desktop
# Matrix element riot.im https://github.com/taw00/element-rpm
sudo dnf install -y dnf-plugins-core distribution-gpg-keys
sudo dnf copr enable taw/element
sudo dnf install -y element --refresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment