Reduce Debian/Ubuntu screen brightness using /sys/class

About /sys/class /sys/class is a virtual file system on Linux that exposes information about various kernel classes. It provides an interface for retrieving and editing various info about different hardware components, drivers, and subsystems in a Linux system. Each directory inside /sys/class represents a different class of PC devices. You can do ls /sys/class to …

Read more

Linux commands to add or change the content of a file

When working with your cloud server, you will need to edit files. There are several commands in Linux that can be used to add or change the content of a file. Some of the most commonly used commands include: More about echo and sed echo echo is a command-line utility on Linux and other Unix-based …

Read more

Completely uninstall MariaDB – Debian 11

Note that the following steps will completely purge your MariaDB, configs and all other setup. In the command below, note that purge has 2 hyphens in front of it. sudo apt-get –purge remove “mysql*” # Note that purge has 2 hyphens in front of it. sudo rm -rf /etc/mysql sudo rm -rf /var/lib/mysql # You …

Read more

Nginx convert conf.d directory to the sites-available directory setup

To convert an NGINX server from using the conf.d directory to the sites-available directory to store configuration files, you can follow these steps: sudo mkdir /etc/nginx/sites-available sudo mkdir /etc/nginx/sites-enabled sudo cp /etc/nginx/conf.d/* /etc/nginx/sites-available/ sudo ln -s /etc/nginx/sites-available/* /etc/nginx/sites-enabled/ sudo rm /etc/nginx/conf.d/* include /etc/nginx/sites-enabled/*; sudo systemctl restart nginx This will convert the NGINX server to use …

Read more

Install PHP 8.2 or 8.1 Debian 11 – Sury PPA

Add the DEB.SURY.ORG repository PPA on Debian 11 curl -sSL https://packages.sury.org/php/README.txt | sudo bash -x ; sudo apt update Installing PHP 8.1 FPM and other relevant modules. Copy the following line and run it in your terminal. This line installs PHP and all the other listed php modules. If you do not need to install …

Read more

Ubuntu 22.04 Initial Server Setup on VPS Cloud [Video]

Ubuntu 22.04 Initial Server Setup on VPS Cloud such as Contabo, Hetzner, Vultr, Linode or DigitalOcean. If you want to run any application or server in a production environment, the video above will help you set up your Ubuntu server. These steps are important to make your Ubuntu 22.04 server ready for public use. Set …

Read more

How to Rebuild Hetzner server and log in via SSH

Let’s say that , after deploying your Hetzner Cloud server with Debian, you decide that you want Ubuntu 22.04.  The video above will show you how to rebuild your server and deploy a new OS or the same operating system afresh. After deploying your fresh new install, you will also see how to successfully log …

Read more

HestiaCP Restore Backup via SSH

If you are on Windows, download Git because we will use Git Bash to finish this task. On Linux and mac you can use Terminal. Step 1: Back up and download the backup from your Hestia dashboard. Go to the HestiaCP dashboard and create a new backup for the user you want to back up. …

Read more