Skip to content

Instantly share code, notes, and snippets.

@mariusa
Last active December 14, 2022 09:35
Show Gist options
  • Save mariusa/c5938af4497206424279cd0f883bd4b2 to your computer and use it in GitHub Desktop.
Save mariusa/c5938af4497206424279cd0f883bd4b2 to your computer and use it in GitHub Desktop.
# Find the downloaded image, right-click on it, go to Open With, and click Disk Image Writer.
# Select your USB stick as the Destination, and click Start Restoring.
Partitions
bios boot 2M
/boot 512M
/boot/efi 200M
for next ones, choose LVM after creating:
/ 32G
swap 8G
/home rest
===============
sudo su -
passwd
echo "SystemMaxUse=50M" >> /etc/systemd/journald.conf
cat /proc/sys/fs/inotify/max_user_watches
# dropbox, node serve, vue webpack hot reload... More than 400 causes system hdd trashing?
echo "fs.inotify.max_user_watches=400000" >> /etc/sysctl.conf; sysctl -p
dnf in -y fedora-workstation-repositories
dnf config-manager --set-disabled updates-testing
dnf config-manager --set-disabled updates-testing-modular
dnf config-manager --set-disabled phracek-PyCharm
dnf config-manager --set-disabled rpmfusion-nonfree-steam
dnf config-manager --set-disabled rpmfusion-nonfree-nvidia-driver
dnf config-manager --set-enabled google-chrome
dnf repolist
dnf repolist enabled
dnf -y in --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
rpm --import https://packages.microsoft.com/keys/microsoft.asc
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'
ls /etc/yum.repos.d/
dnf check-update
dnf in -y autokey-gtk awscli calibre code colordiff dnf-plugin-system-upgrade dnf-plugins-core ffmpeg freetype-freeworld gimp git gnome-tweak-tool google-chrome-stable libreoffice-calc libreoffice-writer make mc mediawriter meld mesa-vdpau-drivers micro mupdf nautilus-dropbox nautilus-open-terminal nss-tools pavucontrol prename rclone redshift-gtk syncthing transmission vlc vlc-extras youtube-dl wget
dnf in -y gcc gcc-c++ nodejs npm postgresql postgresql-server # ruby rubygem-jekyll ruby-devel #for jekyll-multiple-languages-plugin
# dnf in -y cmake clang # to build (not use) https://github.com/Shopify/javy
dnf rm nodejs-docs
# dnf rm dropbox gnome-shell-extension-appindicator
# pavucontrol for hdmi sound
# https://medium.com/linuxforeveryone/how-to-sync-all-your-stuff-with-syncthing-linux-android-guide-536fe61d68df
# watch the deps!
dnf rm abrt avahi audit blender btrfs-progs containernetworking-plugins createrepo_c cups cups-client cups-filesystem
dnf rm conmon
dnf rm fedora-chromium-config fedora-workstation-backgrounds fpaste fprintd
dnf rm geolite2-city gnome-classic-session gnome-contacts gnome-getting-started-docs gnome-maps gnome-user-docs gnome-tour gssproxy gutenprint gvfs-gphoto2 gvnc gucharmap iok
dnf rm 'kde*' libpurple libreoffice-emailmerge libreoffice-math libreoffice-help-en
dnf rm httpd libreport
dnf rm ModemManager m17n-contrib mcelog mypaint-brushes mtr nano 'qemu*' qt-x11 oddjob openvpn open-vm-tools orca perl-doc perl-devel
dnf rm pcsc-lite pcsc-lite-libs pinentry power-profiles-daemon qgnomeplatform rhythmbox rng-tools
dnf rm samba-client sane-backends sane-backends-libs 'selinux-policy*' spice-vdagent system-config-printer-libs
dnf rm sssd 'libsss_*' totem
# power-profiles-daemon If you leave it installed, it doesn't matter what power mode you select, it will be locked at performance, drastically decreasing battery life
# sssd-client is needed by gdm-password ?
dnf rm virtualbox-guest-additions vim-filesystem vim-minimal yelp yum
# i18n
dnf rm anthy-unicode firefox-langpacks libpinyin libkkc libkkc-data libhangul opencc
dnf rm 'cjkuni-*' 'thai-scalable-*' 'nhn-nanum-*' 'rit-meera-*' 'smc-*' skkdic 'wqy-*'
dnf rm 'google-noto-e*' 'google-noto-c*' 'google-noto-n*' 'google-noto-sans-a*' 'google-noto-sans-c*' 'google-noto-sans-e*' 'google-noto-sans-g*' 'google-noto-sans-l*' 'google-noto-sans-h*' 'google-noto-sans-m*' 'google-noto-sans-t*'
# rpm -qa |grep noto
dnf rm PackageKit
dnf -y upgrade
cd /home/marius/Dropbox/linux/
cp -R post_install_files/* /
chmod +x /usr/local/bin/*
#wayland false, for redshift / autokey; tabby hotkeys https://github.com/Eugeny/tabby/issues/5207
micro /etc/gdm/custom.conf
# https://dba.stackexchange.com/questions/292431/postgresql-setup-initdb-with-custom-data-directory
# mkdir -p /home/pg; sudo chown postgres:postgres /home/pg
postgresql-setup --initdb
ENABLE_SERVICES="bluetooth firewalld postgresql"; for i in $ENABLE_SERVICES; do systemctl enable $i; systemctl start $i; done
DISABLE_SERVICES="atd dnf-makecache mdmonitor NetworkManager-wait-online redis snapd unbound-anchor.timer"; for i in $DISABLE_SERVICES; do systemctl stop $i; systemctl disable $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment