Instantly share code, notes, and snippets.
Save yokoffing/3f36b995461c443844a5517fc271ca23 to your computer and use it in GitHub Desktop.
Mostly to help me keep track of my doings in Linux Fedora.
.',;::::;,'. yokoffing@my-fedora .';:cccccccccccc:;,. ------------------- .;cccccccccccccccccccccc;. OS: Fedora Linux 40 (Workstation) .:cccccccccccccccccccccccccc:. Host: 2020 XPS 15 9500 .;ccccccccccccc;.:dddl:.;ccccccc;. Kernel: Linux 6.9.12-200.fc40.x86_64 .:ccccccccccccc;OWMKOOXMWd;ccccccc:. Uptime: 16 hours, 20 mins.:ccccccccccccc;KMMc;cc;xMMc;ccccccc:. Packages: 2182 (rpm), 6 (flatpak),cccccccccccccc;MMM.;cc;;WW:;cccccccc, Shell: bash 5.2.26:cccccccccccccc;MMM.;cccccccccccccccc: Display (SHP14D1): 1920x1200 @ 60 Hz ]:ccccccc;oxOOOo;MMM000k.;cccccccccccc: DE: GNOME 46.3.1cccccc;0MMKxdd:;MMMkddc.;cccccccccccc; WM: Mutter (Wayland)ccccc;XMO';cccc;MMM.;cccccccccccccccc' WM Theme: Adwaitaccccc;MMo;ccccc;MMW.;ccccccccccccccc; Theme: Adwaita [GTK2/3/4]ccccc;0MNc.ccc.xMMd;ccccccccccccccc; Icons: Adwaita [GTK2/3/4]cccccc;dNMWXXXWM0:;cccccccccccccc:, Font: Inter (11pt) [GTK2/3/4]cccccccc;.:odl:.;cccccccccccccc:,. Cursor: Adwaita (24px)ccccccccccccccccccccccccccccc:'. Terminal: GNOME Terminal 3.50.1:ccccccccccccccccccccccc:;,.. Terminal Font: Fira Code Medium (12pt)':cccccccccccccccc::;,. CPU: Intel(R) Core(TM) i7-10750H (12)z GPU: Intel UHD Graphics @ 1.15 GHz [I] GPU: NVIDIA eForce GTX 1650 Ti Mobile [D] Memory: 4.74 GiB / 15.36 GiB (31%) Swap: 0 B / 8.00 GiB (0%) Disk (/): 26.03 GiB / 475.35 GiB (5%)s Local IP (wlp0s20f3): 192.168.0.233/24 Battery: 75% [Discharging] Locale: en_US.UTF-8
Fastfetch is a replacement of neofetch, which is now depreciated.
sudo dnf install fastfetchfastfetch
sudo gnome-text-editor /etc/dnf/dnf.conf
Add this text:
max_parallel_downloads=20fastestmirror=True
Programs
sudo dnf update -y && sudo dnf upgrade -y
Then reboot, if needed.
https://itsfoss.com/things-to-do-after-installing-fedora/#6-change-hostname-after-installation
Needed?
- https://docs.fedoraproject.org/en-US/quick-docs/rpmfusion-setup/#_enabling_the_rpm_fusion_repositories_using_command_line_utilities
- https://itsfoss.com/fedora-third-party-repos/
Needed?
- https://docs.fedoraproject.org/en-US/quick-docs/installing-plugins-for-playing-movies-and-music/
- https://itsfoss.com/things-to-do-after-installing-fedora/#5-install-multimedia-plugins
Gstreamer applications
sudo dnf install gstreamer1-plugins-{bad-\*,good-\*,base} gstreamer1-plugin-openh264 gstreamer1-libav --exclude=gstreamer1-plugins-bad-free-develsudo dnf install lame\* --exclude=lame-develsudo dnf groupupdate multimedia --setop="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
sudo dnf config-manager --set-enabled fedora-cisco-openh264sudo dnf install -y gstreamer1-plugin-openh264 mozilla-openh264
Includes tinkering with Firefox:https://docs.fedoraproject.org/en-US/quick-docs/openh264/
I need these for my dGPU.Source:https://github.com/gridhead/nvidia-auto-installer-for-fedora-linux
sudo dnf install dnf-plugins-core -ysudo dnf copr enable t0xic0der/nvidia-auto-installer-for-fedora -ysudo dnf install nvautoinstall -y
Then run:
sudo nvautoinstall rpmaddsudo nvautoinstall driversudo nvautoinstall nvreposudo nvautoinstall plcuda
sudo dnf update # Update the system first, the drivers may not work right if you don't.sudo dnf install akmod-nvidia # Install the NVIDIA kernel module.
I need these for my iGPU.
sudo dnf install libheif-freeworld.x86_64sudo dnf swap libavcodec-free libavcodec-freeworldsudo dnf swap ffmpeg-free ffmpeg
Restart, then:
# Check video drivers in uselspci -n -n -k | grep -A 2 -e VGA -e 3D# Check active GPU driverglxinfo | grep -e OpenGL.vendor -e OpenGL.renderer# List available and default GPUswitcherooctl list
sudo dnf group upgrade --with-optional Multimedia
https://itsfoss.com/things-to-do-after-installing-fedora/#14-automatically-delete-trash-content
sudo dnf install -y unzip p7zip p7zip-plugins unrarsudo dnf install -y vlcsudo dnf install -y steam# One linednf install gnome-tweak-tool steam vlc <anything>
Seehere.
flatpak install flathub org.videolan.VLCflatpak install flathub com.valvesoftware.Steamflatpak install flathub com.heroicgameslauncher.hglflatpak install flathub com.spotify.Client
Run command for both Tweaks app and Extension app:https://itsfoss.com/things-to-do-after-installing-fedora/#8-install-gnome-tweaks-and-extensions-appsudo dnf install -y gnome-tweaks gnome-extensions-app
- Enable min/max buttons
- Power Profile Switcher for laptop.
- Search Light is similar to macOS Spotlight search.
- Logo Menu
- Vitals
- Blur my Shell
- AppIndicator
- App Icons Taskbar
- Clipboard Indicator
- Night Theme Switcher
- No blurry fonts tweak
# Download font in Downloads folder# Create a new directorysudo mkdir -p /usr/share/fonts/font_name# Change into the new directorycd /usr/share/fonts/font-name# Extract the downloaded fontsudo unzip -d . ~/Downloads/font_name.zip# Register the font with the systemsudo fc-cache -fv
Uncomplicated Firewall (ufw) is an easy firewall to setup and understand. ufw blocks traffic and allows it via iptables.
iptables is a firewall tool that comes pre-installed on most Linux systems that allows you to control and manage the traffic going in and out of your computer or network.
iptables works by creating a set of rules that define which network traffic is allowed to pass through and which is blocked. For instance, to allow only certain types of network traffic, such as web traffic on port 80, and block everything else.
# Install UFWsudo dnf install ufw# SSH protocolsudo ufw limit 22/tcp# HTTPsudo ufw allow 80/tcp# HTTPSsudo ufw allow 443/tcp# All incoming connections will be blocked by the firewall,# unless explicitly allowed by a previous rulesudo ufw default deny incoming# All outgoing connections from your system will be permitted by the firewallsudo ufw default allow outgoing# Enable UFWsudo ufw enable# Summary reviewsudo ufw status verbose
In case you need to:sudo ufw disable
ufw reset
Example:sudo ufw delete deny 80/tcp
I had an issue where ufw was disabled after restart:https://askubuntu.com/questions/1399653/ufw-disabled-inactive-on-reboot