Back to main index

Install RockyLinux-9

Time and Date: optional NTP servers in Germany.

0.de.pool.ntp.org
1.de.pool.ntp.org
2.de.pool.ntp.org
3.de.pool.ntp.org

Activate laptop wifi connection.

rpm -q NetworkManager-wifi
# plug-in ethernet connection
dnf install NetworkManager-wifi
systemctl restart NetworkManager
# unplug ethernet connection
nmtui
I use dnf priority to isolate the core system from 3rd party software.
It means a 3rd party package cannot upgrade a baseos package.
Here is my /etc/yum.repos.d/rocky.repo
[baseos]
name=Rocky Linux $releasever - BaseOS
mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=$basearch&repo=BaseOS-$releasever$rltype
gpgcheck=1
enabled=1
countme=1
metadata_expire=6h
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-Rocky-9
priority=10

The rule is that if a [repository] has "enabled=1" then add "priority=X" to establish it's hierarchy among other repos.
The hierarchy usually is:
priority=10 for [baseos]
priority=20 for [appstream]
priority=20 for [crb]
priority=30 for [extras]
priority=40 for [epel]
priority=50 for [google-chrome]
priority=90 for [fedora]

Install epel repo, the Fedora Special Interest Group (with priority=40).

dnf install epel-release

Install Xfce Desktop

dnf group install "Xfce"

dnf install lightdm
systemctl disable gdm.service
systemctl enable lightdm.service

systemctl set-default graphical.target
ll /etc/systemd/system/default.target

dnf install xdg-user-dirs
# Create $HOME template directories, e.g. Documents, Downloads, Music, Trash as $HOME/.local/share/Trash
# Run as regular user
xdg-user-dirs-update

Reboot the system and login to Xfce session

Add [google-chrome] repository.
Create and edit the file /etc/yum.repos.d/google-chrome.repo

[google-chrome]
name=google-chrome
baseurl=https://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
priority=50

Add Fedora-35 repository to Rocky Linux 9

cd /tmp
wget https://archives.fedoraproject.org/pub/archive/fedora/linux/releases/35/Everything/x86_64/os/Packages/f/fedora-gpg-keys-35-1.noarch.rpm
rpm2cpio fedora-gpg-keys-35-1.noarch.rpm | cpio -idmv
cp etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-primary .
rm -rfv etc
rm fedora-gpg-keys-35-1.noarch.rpm

# as root
cp RPM-GPG-KEY-fedora-35-primary /etc/pki/rpm-gpg
chown -v root:root  /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-primary
chmod 644 /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-primary
chcon -u system_u -t cert_t -v /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-primary

Create /etc/yum.repos.d/fedora35.repo

[fedora35]
name=Fedora-35 beta version for RHEL-9
baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/35/Everything/$basearch/os/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-35-primary
protect=0
priority=90

Install Xfce extra packages

dnf install xfce4-datetime-plugin xfce4-screenshooter xfce4-systemload-plugin  \
            xfce4-weather-plugin xfce4-xkb-plugin xfce4-whiskermenu-plugin     \
            xfce4-taskmanager xfce4-about mousepad parole

dnf install gnome-calculator ristretto gimp evince brasero mlocate p7zip zip unzip bzip2

Thunar automount feature

dnf install udisks2 gvfs gvfs-fuse gvfs-gphoto2 gvfs-smb ntfs-3g gvfs-mtp

Optional Icons

dnf --enablerepo=fedora35 install \
            bluecurve-icon-theme.noarch \
            breeze-icon-theme.noarch \
            candy-icon-theme.noarch \
            echo-icon-theme.noarch \
            elementary-icon-theme.noarch \
            elementary-icon-theme-gimp-palette.noarch \
            elementary-icon-theme-inkscape-palette.noarch \
            elementary-xfce-icon-theme.noarch \
            faience-icon-theme.noarch \
            flat-remix-icon-theme.noarch \
            humanity-icon-theme.noarch \
            lumina-icons.noarch \
            luv-icon-theme.noarch \
            mint-x-icons.noarch \
            mint-y-icons.noarch \
            moka-icon-theme.noarch \
            numix-icon-theme.noarch \
            numix-icon-theme-circle.noarch \
            numix-icon-theme-square.noarch \
            paper-icon-theme.noarch \
            papirus-icon-theme.noarch \
            suru-icon-theme.noarch \
            tango-icon-theme.noarch \
            tango-icon-theme-extras.noarch \
            We10X-icon-theme.noarch \
            yaru-icon-theme.noarch

Optional Xfce Themes

dnf --enablerepo=fedora35 install \
            bluecurve-cursor-theme \
            clearlooks-compact-gnome-theme \ 
            xfwm4-themes \
            bluebird-xfwm4-theme \
            albatross-xfwm4-theme

To revert/uninstall all packages from fedora35.repo use:

dnf remove $(dnf list installed | grep 'fedora35' | awk '{ print $1 }')

Install seahorse (gnome-keyring related)

dnf info seahorse
dnf repoquery --deplist seahorse
dnf install seahorse

Edit /etc/lightdm/lightdm.conf

greeter-session=lightdm-gtk-greeter
Set up the gtk3 css theme
cd /tmp
wget ftp://vasilian.net/Gtk-Themes/lightdm-gtk-clearlooks-grey.tar.gz
tar -zxvf lightdm-gtk-clearlooks-grey.tar.gz
mv lightdm-gtk-clearlooks-grey  /usr/share/themes
chown -Rv root:root /usr/share/themes/lightdm-gtk-clearlooks-grey
chcon -Rv -u system_u -t usr_t /usr/share/themes/lightdm-gtk-clearlooks-grey
Set up the greeter settings /etc/lightdm/lightdm-gtk-greeter.conf
[greeter]
background=/usr/share/backgrounds/default.png
theme-name=lightdm-gtk-clearlooks-grey
icon-theme-name=Bluecurve
font-name=DejaVu Sans Condensed:10
#xft-antialias=
xft-dpi=96
#xft-hintstyle=
#xft-rgba=
indicators=~ally;~host;~spacer;~clock;~spacer;~language;~session;~power;
clock-format=%H:%M:%S
keyboard=us
position=50%,center 50%,center
#screensaver-timeout=

Set Thunar custom actions feature.

Install elrepo with priority=40 for kmod-nvidia

Install adobe with priority=50.

Read on the top 10 programming fonts

Add own RHEL repository.

[vasilian]
name=Vasilian packages for RHEL
baseurl=ftp://vasilian.net/RHEL/$releasever/extras/$basearch/
enabled=0
gpgcheck=1
gpgkey=ftp://vasilian.net/RHEL/$releasever/RPM-GPG-KEY-vasilian
protect=0
priority=90

Optional some popular fonts.

dnf --enablerepo=vasilian install win10-fonts mac-fonts

Optional Anonymous Pro Font

cd /tmp
wget http://www.marksimonson.com/assets/content/fonts/AnonymousPro-1.002.zip
unzip AnonymousPro-1.002.zip
mv AnonymousPro-1.002.001  /usr/share/fonts/
cd /usr/share/fonts
chown -Rv root:root AnonymousPro-1.002.001
chcon -u system_u -t fonts_t -Rv AnonymousPro-1.002.001/
fc-cache /usr/share/fonts/AnonymousPro-1.002.001

Optional Monaco (From OSX)

cd /usr/share/fonts
mkdir Monaco && cd Monaco
wget http://www.gringod.com/wp-upload/MONACO.TTF  # or manually
chown -Rv root:root Monaco
chcon -u system_u -t fonts_t -Rv Monaco/
fc-cache /usr/share/fonts/Monaco


Back to main index