Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Fedora Linux the way I like it

NotificationsYou must be signed in to change notification settings

zearp/casquette

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

logo

My spin on Fedora Linux. Nothing fancy. Bare bones with only the things I need and want. The aim of this repo is to have my stuff easily available to myself and anyone interested. It is essentially a kickstart file that can be modified to suit your needs and build an iso with. Compared to a normal Fedora Linux dark mode is enabled by default, third party repo's been added and a different (minimal) selection of packages is used. Kickstarts are a great way to customise Fedora Linux. The iso can be installed without an active internet connection.

Packages:
  • GUI Stuff:
    • Cockpit, manage stuff (remotely) from your browser
    • Eye of Gnome image viewer
    • Evince document viewer
    • Flatseal to manage Flatpak permissions
    • gedit, simple text editor
    • Gnome disk utility
    • Gnome font vieuwer
    • Gnome schreenshot tool
    • Gnome software centre
    • Gnome system monitor
    • Gnome terminal
    • Gnome tweaks
    • Nautilus file manager
    • Plymouth spinner boot theme
  • Shell utils:
    • bat 🦀
    • btop
    • eza 🦀
    • grubby
    • htop
    • nano
    • nvme-cli
    • pciutils
    • pfetch 🦀
    • usbutils
    • ripgrep 🦀
    • rsync
    • wget
    • zsh
    • and many others!
  • Extra repo's:
    • RPM Fusion
    • Flatpaks via the Gnome software centre

Contents:

Installation

  1. Disable SELinux:

    sudo setenforce 0
  2. Install required packages:

    sudo dnf -y --refresh update&& sudo dnf -y install mock mock-rpmfusion-free mock-rpmfusion-nonfree
  3. Add yourself to the mock group and logout:

    sudo usermod -a -G mock$USER&&exit
  4. Log back in and create/etc/mock/casquette.cfg and paste in the following:

    include('fedora-41-x86_64-rpmfusion_nonfree.cfg')config_opts['root'] ="casquette-41-{{ target_arch }}"config_opts['description'] ='Casquette 41'
  5. Initialise and enter the mock environment:

    mock -r casquette --init --nobestmock -r casquette --install lorax-lmc-novirt nano pykickstart gitmock -r casquette --shell --isolation=simple --enable-network

    The --nobest option is not strickly needed, just sometimes its fails to initialise and this option prevents/fixes it.

  6. From inside the mock enviroment download the kickstart file and edit, then flatten it:

    git clone https://github.com/zearp/casquette&&cd casquette/kickstartnano casquette.ks&& ksflatten -c casquette.ks -o flat.ks
  7. Generate the iso with the following command:

    livemedia-creator --ks flat.ks --no-virt --resultdir /var/lmc --project="Casquette" --make-iso \--volid Casquette-41 --iso-only --iso-name Casquette-41-x86_64.iso --releasever=41 --macboot&&exit
  8. When it's done we'll move the iso file to the current directory and clean up:

    sudo mv /var/lib/mock/casquette-41-x86_64/root/var/lmc/Casquette-41-x86_64.iso.sudo chown$USER:$USER Casquette-41-x86_64.isomock -r casquette --scrub=all
  9. Re-enable SELinux:

    sudo setenforce 1

That's all, you can now use the iso file to install.

Post install

Some (hopefully) useful post install stuff.

Remove left overs.

sudo dnf -y remove anaconda\*sudo dnf clean all

Optionally if you just want to usednf remove flatpak, flatseal and gnome-software.

sudo dnf -y remove flatpak\* flatseal gnome-software

On AMD iGPU/GPU systems the Intel driver can be removed too:

sudo dnf -y remove intel-media-driver

Verify SELinux

Security is paramount so let's make sure SELinux is running inenforcement mode. run the following command to check the current enforcement status:

sudo getenforce

If it showsEnforcing we don't need to do anything. If it showsPermissive run the following command, reboot and check the enforcement status again:

sudo fixfiles onboot

For more information please refer tothis page.

Check for and install firmware updates

Run these commands one by one and only update if you want to. If everything is workign fine it might not be needed to update anything. Refer to the release notes and change logs for each firmware update.

sudo fwupdmgr refreshsudo fwupdmgr get-updates## make sure you need/want these updates!sudo fwupdmgr update

Cockpit

Cockpit is a nice web frontend to do basic monitoring and managements tasks. I suggest using it not only on servers but anywhere and also when you need to troubleshoot issues. It has some great utilities and access to log files and services and so on. The default location ishttp://localhost:9090. For more information please readthis page.

Firefox

For hardware encoding setmedia.ffmpeg.vaapi.enabled andgfx.webrender.all to true inabout:config and restart Firefox. To test check cpu/gpu usage innvtop orintel_gpu_top.

It is recommended to block unsupported codecs usingthis add-on. For example, my NUC 8 does not support AV1 but does support VP8/9 and h264. Setting the add-on to only block AV1 tries to makes it so videos are being decoded by the gpu. To see which codecs are supported you can use thevainfo command.

You will see entries likeVAProfileH264 and so on. Disable any you don't have but are listed in theenhanced-h264ify add-on. This way Firefox won't be rendering videos ususing the cpu (as much). If you run into a video that doesn't play disabling the add-on and refreshing the page should fix it and let Firefox use the cpu to render the video.

While we're at it let's installuBlock Origin to block some ads and trackers.

Misc.

  • Change shell to zsh:
    sudo usermod --shell /usr/bin/zsh$USER
  • Less flickering when booting and old school network interface names:
    grubby --update-kernel=ALL --args="loglevel=3 systemd.show_status=auto rd.udev.log_level=3 vt.global_cursor_default=0 biosdevname=0 net.ifnames=0"
  • Sort apps alphabetically, logout and in to apply, don't use sudo here:
    gsettingsset org.gnome.shell app-picker-layout"[]"
  • Sync login screen settings (gdm):
    sudo cp~/.config/monitors.xml /var/lib/gdm/.config/
  • Remove brightness slider (when applicable):
    sudo grubby --update-kernel ALL --args acpi_backlight=none
  • Compiling kernel modules:
    sudo dnf -y install kernel-devel dkms
  • Disable sleep/suspend completely, disable it in Gnome settings first or else you get false positive notifications about impending suspends. Re-run withunmask to re-enable:
    sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target
  • The firewall (firewalld) is enabled and allowing; cockpit and ssh. For some basics on opening ports/services and more information please refer tothis page.

Updating

Easy mode!

sudo dnf --refresh update

[8]ページ先頭

©2009-2025 Movatter.jp