Remove DNF Repository Permanently
rpm -qa |grep -i repo-name
rpm -e some-repository-rpm-package
References
https://www.if-not-true-then-false.com/2010/yum-remove-repo-repository-yum-disable-repo-repository/
rpm -qa |grep -i repo-name
rpm -e some-repository-rpm-package
References
https://www.if-not-true-then-false.com/2010/yum-remove-repo-repository-yum-disable-repo-repository/
sudo apt install redis-server
Configure Redis
sudo nano /etc/redis/redis.conf
find the line specifying the supervised directive. By default, this line is set to no. However, to manage Redis as a service, set the supervised directive to systemd (Ubuntu’s init system).

Secure Redis
sudo nano /etc/redis/redis.conf
locate the requirepass directive under the SECURITY section and uncomment it (by removing #).Once you have uncommented the line, replace foobared with the password of your choice.

sudo systemctl restart redis.service
References
https://phoenixnap.com/kb/install-redis-on-ubuntu-20-04
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/winehq.key sudo apt-key add winehq.key
sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'
sudo apt update
sudo apt install --install-recommends winehq-stable
References
https://wiki.winehq.org/Ubuntu
Install NVIDIA proprietary drivers on Debian / Ubuntu / Linux Mint / LMDE and disable the nouveau driver
Make sure that you system is up-to-date and you are running latest kernel, also make sure that you don’t have any Debian / Ubuntu / Linux Mint / LMDE NVIDIA package installed
## Ubuntu / Debian / Linux Mint / LMDE ##
apt update
apt upgrade
## Debian and Linux Mint ##
apt autoremove $(dpkg -l nvidia-driver* |grep ii |awk '{print $2}')
## Ubuntu ##
apt autoremove $(dpkg -l xserver-xorg-video-nvidia* |grep ii |awk '{print $2}')
apt reinstall xserver-xorg-video-nouveau
Install needed dependencies
## Ubuntu / Debian / Linux Mint ## apt install linux-headers-$(uname -r) gcc make acpid dkms libglvnd-core-dev libglvnd0 libglvnd-dev dracut wget patch libgtk2.0-0
Disable nouveau
Create or edit /etc/modprobe.d/blacklist.conf
Append ‘blacklist nouveau’
echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
Edit /etc/default/grub
Append ‘rd.driver.blacklist=nouveau’ to end of ‘GRUB_CMDLINE_LINUX=”…”‘.
## Example row on Debian ## GRUB_CMDLINE_LINUX_DEFAULT="quiet rd.driver.blacklist=nouveau" ## OR with Ubuntu and Linux Mint ## GRUB_CMDLINE_LINUX_DEFAULT="quiet splash rd.driver.blacklist=nouveau"
Update grub2 conf
## BIOS and UEFI ## update-grub2
Generate initramfs
## Backup old initramfs nouveau image ## mv /boot/initrd.img-$(uname -r) /boot/initrd.img-$(uname -r)-nouveau ## Generate new initramfs image ## dracut -q /boot/initrd.img-$(uname -r) $(uname -r)
Create new directory for inttf NVIDIA patcher
cd ~ mkdir NVIDIA cd NVIDIA
Download / Update inttf NVIDIA patcher
wget -O inttf-nvidia-patcher.sh https://nvidia.if-not-true-then-false.com/patcher/inttf-nvidia-patcher.sh
Make inttf NVIDIA patcher executable
chmod +x inttf-nvidia-patcher.sh
Download and patch your drivers
./inttf-nvidia-patcher.sh -v 340.108
Reboot to runlevel 3
systemctl set-default multi-user.target reboot
Run NVIDIA Binary
./NVIDIA-Linux-x86_64-340.108-patched-kernel-5.15.run
systemctl set-default graphical.target reboot
References
https://www.if-not-true-then-false.com/2021/debian-ubuntu-linux-mint-nvidia-guide/
https://www.if-not-true-then-false.com/2020/inttf-nvidia-patcher/
xgamma -gamma 0.8
add this command to Startup Application Preferences.

So now every time I login, the gamma is adjusted and the display looks much better.
References
https://ubuntu-mate.community/t/how-to-change-screen-gamma-using-xgamma/12969
https://askubuntu.com/questions/9248/is-there-a-software-utility-to-adjust-screen-gamma-brightness-contrast
wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-5.0.list
sudo apt-get update
sudo apt-get install -y mongodb-mongosh
References
https://docs.mongodb.com/mongodb-shell/install/#std-label-mdb-shell-install
apt-get install --only-upgrade <packagename>
References
https://askubuntu.com/questions/44122/how-to-upgrade-a-single-package-using-apt-get
if grep -q "$STRING" "$FILE" ; then
echo 'the string exists' ;
else
echo 'the string does not exist' ;
fi
References
https://unix.stackexchange.com/questions/530561/shell-script-check-if-a-file-contains-a-specific-line-string
https://stackoverflow.com/questions/10552711/how-to-make-if-not-true-condition
Allow Incoming SSH from Specific IP Address or Subnet
sudo ufw allow from 15.15.15.0/24 to any port 22
sudo ufw allow from 15.15.15.65 to any port 22
Allow Incoming Rsync from Specific IP Address or Subnet
sudo ufw allow from 15.15.15.0/24 to any port 873
Allow All Incoming HTTP and HTTPS
sudo ufw allow proto tcp from any to any port 80,443
Allow MySQL from Specific IP Address or Subnet
sudo ufw allow from 15.15.15.0/24 to any port 3306
Allow MySQL to Specific Network Interface
sudo ufw allow in on eth1 to any port 3306
References
https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands
sudo ufw deny from 15.15.15.51
if you wish, a subnet, such as 15.15.15.0/24, may be specified here instead.
sudo ufw deny in on eth0 from 15.15.15.51
References
https://www.digitalocean.com/community/tutorials/ufw-essentials-common-firewall-rules-and-commands