Skip to content

Instantly share code, notes, and snippets.

@UncleTallest
Last active April 2, 2022 16:31
Show Gist options
  • Save UncleTallest/dd96b4c0eec311424344c0204b1f3792 to your computer and use it in GitHub Desktop.
Save UncleTallest/dd96b4c0eec311424344c0204b1f3792 to your computer and use it in GitHub Desktop.

Initial Fedora 35 Workstation Setup

During Install

drive partitioning

On Hades: To save the contents of my /home folder we don't want to format it and we want to reuse our old partition structure.

mountpoint | size | format   | reformat | device
---------------------------------------------------------
/boot      |  4Gb | ext4     |    yes   | /dev/sdb1
/boot/efi  |  2Gb | fat32    |    yes   | /dev/sdb2
swap       | 32Gb | swap     |    yes   | /dev/sdb3
/          |  *Gb | ext4     |    yes   | /dev/sdb4
/home      |  *Tb | LVM/ext4 |     no   | /dev/mapper/kallisti--home
/var       |  1Tb | LVM/ext4 |    yes   | /dev/mapper/kallisti--var
DNF Flags
$ echo 'fastestmirror=1' | sudo tee -a /etc/dnf/dnf.conf
$ echo 'max_parallel_downloads=10' | sudo tee -a /etc/dnf/dnf.conf
$ echo 'deltarpm=true' | sudo tee -a /etc/dnf/dnf.confb
$ cat /etc/dnf/dnf.conf

After Install

$ sudo dnf upgrade --refresh
$ sudo dnf update -y

Set hostname

Set hostname to kallisti

$ hostnamectl set-hostname kallisti 

Additional Repositories

sudo dnf install -y  https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
sudo dnf install -y https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
sudo dnf config-manager --set-enabled rpmfusion-free-updates-testing
sudo dnf config-manager --set-enabled rpmfusion-nonfree-updates-testing

sudo dnf upgrade --refresh
sudo dnf groupupdate core
sudo dnf install -y rpmfusion-free-release-tainted
sudo dnf install -y dnf-plugins-core

Checkout sudo dnf grouplist -v to see available groups you might be interested in.

Nvidia Driver

dnf install dnf-plugins-core -y
dnf copr enable t0xic0der/nvidia-auto-installer-for-fedora -y
dnf install nvautoinstall -y
sudo nvautoinstall rpmadd
sudo nvautoinstall driver
sudo nvautoinstall ffmpeg
sudo nvautoinstall plcuda
sudo nvautoinstall vidacc
sudo nvautoinstall vulkan
sudo reboot now

Install Pantheon Desktop

sudo dnf copr enable decathorpe/elementary-staging
sudo dnf update -y

sudo dnf group install `Pantheon Desktop`

sudo dnf install appcenter xdg-desktop-portal-pantheon
# sudo dnf install switchboard-plug-parental-controls

sudo dnf install lightdm
sudo systemctl disable gdm
sudo systemctl enable lightdm
sudo reboot now

Flatpak support

Let's make sure that both the normal and beta repos for Flatpak are working as intended.

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.gnome.Recipes
flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo
flatpak install flathub-beta org.godotengine.Godot
flatpak update

Snap support

Enabling snap support boils down to running the following commands:

sudo dnf install -y snapd
sudo ln -s /var/lib/snapd/snap /snap # for classic snap support
sudo reboot now

The restart is needed to ensure snap’s paths are updated correctly. After the reboot, check whether there are any updates (and install Snap Store for ease of use):

sudo snap refresh
sudo snap install snap-store

Fonts

sudo dnf install -y google-roboto*'
Microsoft 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

SSH Keys

If I want to create a new SSH key, I run e.g.:

ssh-keygen -t ed25519 -C "fedora-on-kallisti"
eval "$(ssh-agent -s)" 
ssh-add ~/.ssh/id_ed25519

Don’t forget to add your public key to GitHub, Gitlab, Servers, etc.

Coding

First, we really need a good terminal based text editor for emergencies.

sudo dnf install vim-enhanced -y
Git related
sudo dnf install -y git git-lfs
git-lfs install
wget https://release.gitkraken.com/linux/gitkraken-amd64.rpm
sudo dnf install ./gitkraken-amd64.rpm

Various Applications

Discord
sudo snap install discord --edge
sudo snap connect discord:system-observe
Vivaldi
sudo dnf install -y dnf-utils
sudo dnf config-manager --add-repo https://repo.vivaldi.com/archive/vivaldi-fedora.repo
sudo dnf install -y vivaldi-stable
Zoom Client
sudo snap install zoom-client --edge

Multimedia

VLC

The best video player:

sudo dnf install -y vlc

Open it and check whether it works.

Winamp
WINEPREFIX="/home/tallest/.winamp/" winecfg
Multimedia Codecs

If you have VLC installed, you should be fine as it has builtin support for all relevant audio and video codecs. In other cases, I have found that the following commands install all required stuff for Audio and Video:

sudo dnf groupupdate sound-and-video
sudo dnf install -y libdvdcss
sudo dnf install -y gstreamer1-plugins-{bad-\*,good-\*,ugly-\*,base} gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-devel ffmpeg gstreamer-ffmpeg 
sudo dnf install -y lame\* --exclude=lame-devel
sudo dnf group upgrade --with-optional Multimedia

For OpenH264 I run:

sudo dnf config-manager --set-enabled fedora-cisco-openh264
sudo dnf install -y gstreamer1-plugin-openh264
OBS

I like that the snap version has all popular extensions included, so I use it:

sudo snap install obs-studio --edge
sudo snap connect obs-studio:audio-record
sudo snap connect obs-studio:avahi-control
sudo snap connect obs-studio:camera
sudo snap connect obs-studio:jack1
sudo snap connect obs-studio:joystick
sudo snap connect obs-studio:process-control
sudo snap connect obs-studio:removable-media
sudo snap connect obs-studio:raw-usb
sudo snap connect obs-studio:kernel-module-observe
sudo dnf -y install akmod-v4l2loopback v4l2loopback-utils
echo "options v4l2loopback devices=1 video_nr=13 card_label='OBS Virtual Camera'    exclusive_caps=1" | sudo tee /etc/modprobe.d/v4l2loopback.conf
echo "v4l2loopback" | sudo tee /etc/modules-load.d/v4l2loopback.conf
sudo modprobe -r v4l2loopback
sudo modprobe v4l2loopback devices=1 video_nr=13 card_label='OBS Virtual Camera' exclusive_caps=1

Open OBS and set it up, import your scenes, etc.

ToDo

Windows VM(s) for:
  • Adobie CS3 (you have the disks)
  • Office 2016 Pro (In the Installers folder w/ key)
  • CuteWriter (aka CutePDF) (In Installers folder)
Linux Native:

Wine:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment