Summary

  Subject:

Run Rocky Linux as a Desktop OS: Helpful Commands

  Updated:

2023-06-15

  Author:

Tim Hammond ([email protected])

  Operating Systems:

Rocky 8

Rocky 9

  Background:

This guide was written to help users get setup on a desktop computer and either run KDE or Xfce. There are a host of other applications that are installed as well.

This guide's was origanlly targeted for Fedora 36, but after testing, I came to the following conclustions:

  1. Fedora is too leading and bleeding for my taste.
  2. Secure CRT will only work on CentOS/Rocky 8 and BELOW. They have dropped all support for RHEL based distros.
  3. VMware console is now supported on RHEL 9 based distros.
  4. I didn't want to get into supporting more operating systems (Windows (desktop and server), Rocky, and Ubuntu).

Due to the length of the content, I opted to break the article into the following sections:

  1. Rocky Desktop: OS Install
  2. Rocky Desktop: Desktop Environment
  3. Rocky Desktop: Drivers and Hardware
  4. Rocky Desktop: Additional Software (Email, Office Suite, etc)
  5. Rocky Desktop: Helpful Commands
  6. Rocky Desktop: References
 

Table of Contents

Mount Commands

Local Windows Partition

If you are dual booting the system with Windows, you will need to "Disable Windows Fast Start" so as to not cause file read/write corruption between the OSs.

  1. In Windows, click the Start button and search for "cpanel"
  2. Click "Choose what the power buttons do"
  3. Click "Change settings that are currently unavailable"
  4. Uncheck the "Fast Startup" check-box
  5. Reboot Windows

Install the following prerequisite. It may already be installed, but just to make sure.

sudo dnf install -y ntfs-3g

Make the folder for the mount point

sudo mkdir -p /mnt/local-data

To find the disk that we want to use, use the following command. Note the drive, the partion, and the size. This will help to verify you are using the correct partition.

sudo lsblk

Using the blkid command you can view attributes of block device. Note the TYPE to see the formatting.

sudo blkid /dev/nvme1n1p1

Mount the Windows partition to the newly created folder.

sudo mount -t ntfs-3g /dev/nvme1n1p1 /mnt/local-data

To unmount the local drive, use this command.

sudo umount /mnt//mnt/local-data

Add the mapped drives to the Linux startup.

sudo tee -a /etc/fstab >/dev/null <<EOF /dev/nvme1n1p1 /mnt/local-data ntfs-3g defaults 0 0 EOF

CIFS/SMB Shares

Install the following prerequisite. It may already be installed, but just to make sure.

sudo dnf -y install cifs-utils

Create local mount points.

sudo mkdir -p ~/mnt/folder01 sudo mkdir -p ~/mnt/folder02

CIFS mount commands.

sudo mount -t cifs -o username=thammond //fs01/folder01 ~/mnt/folder01 sudo mount -t cifs -o username=thammond //fs01/folder02 ~/mnt/folder02

Unmount local share.

sudo umount ~/mnt/folder01 sudo umount ~/mnt/folder02

NFS Shares

Install the following prerequisite. It may already be installed, but just to make sure.

sudo dnf -y install nfs-utils

Create local mount points

sudo mkdir -p ~/mnt/folder01 sudo mkdir -p ~/mnt/folder02

NFS mount commands.

sudo mount -t nfs fs01.domain.local:/username ~/mnt/folder01 sudo mount -t nfs fs01.domain.local:/username ~/mnt/folder02

Unmount local share

sudo umount ~/mnt/folder01 sudo umount ~/mnt/folder02

File Copy Commands

MD5 Checksums

Commands to genorate MD5s for an entire directory.

sudo find /home/thammond/Desktop -type f -exec md5sum {} + > /home/thammond/Desktop/desktop.md5

rsync

Commands for rsync.

  • -h : output numbers in a human-readable format
  • -P : shows the progress of a transfer and also keeps partially copied files; same as --partial and --progress
  • -r : copies data recursively (ignores timestamps and permissions)
  • -v : increase verbosity
sudo rsync -hPrv /mnt/fs01.domain.local/Home$/thammond/WiP /home/thammond/Desktop

scp

Copy files between systems through SSH.

sudo scp -rp /home/thammond/Desktop/test.txt [email protected]:/home/syseng/Desktop/test.txt

Find Commands

To find a file that has a specific name:

sudo find / -name "test.txt"

To find a file that has a specific extension:

sudo find / -type f -name "*.txt"