Tuesday, August 11GNOME IT SOLUTIONS LLC

Linux

How to Use rsync for Backups on Linux Servers

How to Use rsync for Backups on Linux Servers

Linux
Use rsync on Linux for fast, incremental backups and file synchronization. Step 1: Basic Local Sync Sync a directory locally: rsync -av /source/ /destination/ Step 1: Basic Local Sync Step 2: Remote Backup over SSH Backup to remote server: rsync -avz -e ssh /data/ user@remote:/backup/ Step 2: Remote Backup over SSH Step 3: Automate with Cron Add rsync to crontab for scheduled daily backups. Step 3: Automate with Cron rsync -avz --delete --progress /var/www/ backup:/var/backups/www/ Terminal screenshots are original illustrations created for Gnome IT Solutions (blog.gnomeitsolutions.com).
How to Use journalctl to Read Linux System Logs

How to Use journalctl to Read Linux System Logs

Linux
Troubleshoot Linux servers with journalctl — the systemd journal log viewer. Step 1: View Service Logs Run journalctl -u nginx to see logs for a specific service. Step 1: View Service Logs Step 2: Filter by Time and Priority Use --since "1 hour ago" and -p err to filter errors from the last hour. Step 2: Filter by Time and Priority Step 3: Follow Live Logs Run journalctl -f -u servicename to tail logs in real time. Step 3: Follow Live Logs journalctl -b -1 # previous boot logs journalctl --disk-usage Terminal screenshots are original illustrations created for Gnome IT Solutions (blog.gnomeitsolutions.com).
UFW Firewall Basics: Secure Your Linux Server

UFW Firewall Basics: Secure Your Linux Server

Linux
Secure your Linux server with the UFW firewall — simple and effective on Ubuntu/Debian. Step 1: Enable UFW Run ufw enable to activate the firewall. Default deny incoming, allow outgoing. Step 1: Enable UFW Step 2: Allow Required Ports Allow SSH before enabling: ufw allow 22/tcp. Then allow web: ufw allow 80,443/tcp. Step 2: Allow Required Ports Step 3: Check Firewall Status Run ufw status verbose to verify active rules. Step 3: Check Firewall Status ufw deny from 203.0.113.0/24 ufw reset # caution: removes all rules Terminal screenshots are original illustrations created for Gnome IT Solutions (blog.gnomeitsolutions.com).
Install and Configure Fail2ban on Linux (SSH Protection)

Install and Configure Fail2ban on Linux (SSH Protection)

Linux
Protect your Linux server with Fail2ban — automatically ban IPs after failed login attempts. Step 1: Install Fail2ban Install with apt install fail2ban (Debian/Ubuntu) or dnf install fail2ban (RHEL/AlmaLinux). Step 1: Install Fail2ban Step 2: Enable and Start the Service Run systemctl enable --now fail2ban to start Fail2ban on boot. Step 2: Enable and Start the Service Step 3: Check Banned IPs Use fail2ban-client status sshd to view the SSH jail and banned IP addresses. Step 3: Check Banned IPs # /etc/fail2ban/jail.local [sshd] enabled = true maxretry = 3 bantime = 3600 Terminal screenshots are original illustrations created for Gnome IT Solutions (blog.gnomeitsolutions.com).
Cron Jobs in Linux: Schedule Tasks with crontab

Cron Jobs in Linux: Schedule Tasks with crontab

Linux
Automate repetitive tasks with crontab on Linux — backups, monitoring, and maintenance scripts. Step 1: Edit Crontab Run crontab -e to open the cron editor for the current user. Step 1: Edit Crontab Step 2: Understand Cron Syntax Format: minute hour day month weekday command. Example: 0 2 * * * = daily at 2 AM. Step 2: Understand Cron Syntax Step 3: List and Verify Cron Jobs Use crontab -l to list active jobs. Check logs at /var/log/syslog. Step 3: List and Verify Cron Jobs # Every 5 minutes */5 * * * * /path/to/script.sh Terminal screenshots are original illustrations created for Gnome IT Solutions (blog.gnomeitsolutions.com).
Check Disk Space in Linux: df, du & ncdu Explained

Check Disk Space in Linux: df, du & ncdu Explained

Linux
Monitor and troubleshoot Linux disk usage with df, du, and ncdu. Step 1: Check Filesystem Usage with df Run df -h to see total, used, and available space on all mounted filesystems. Step 1: Check Filesystem Usage with df Step 2: Find Directory Sizes with du Use du -sh /path/* to find which directories consume the most space. Step 2: Find Directory Sizes with du Step 3: Interactive Analysis with ncdu Install ncdu and run ncdu /var for an interactive disk usage browser. Step 3: Interactive Analysis with ncdu df -i # check inode usage ncdu --exclude /proc / Terminal screenshots are original illustrations created for Gnome IT Solutions (blog.gnomeitsolutions.com).
SSH Key Authentication on Linux Servers (Step-by-Step)

SSH Key Authentication on Linux Servers (Step-by-Step)

Linux
Secure your Linux servers with SSH key authentication instead of passwords. Step 1: Generate SSH Key Pair Run ssh-keygen -t ed25519 on your local machine or workstation. Step 1: Generate SSH Key Pair Step 2: Copy Public Key to Server Use ssh-copy-id user@server-ip to install your public key on the server. Step 2: Copy Public Key to Server Step 3: Test Passwordless Login Connect with ssh user@server-ip — you should log in without a password prompt. Step 3: Test Passwordless Login chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys Terminal screenshots are original illustrations created for Gnome IT Solutions (blog.gnomeitsolutions.com).
How to Use systemctl to Manage Services on Linux

How to Use systemctl to Manage Services on Linux

Linux
Learn how to use systemctl on Linux to manage services with systemd — essential for every server administrator. Step 1: Check Service Status Use systemctl status to see if a service is running, enabled, and view recent logs. Step 1: Check Service Status Step 2: Start, Stop, and Restart Services Control services with systemctl start, stop, and restart. Step 2: Start, Stop, and Restart Services Step 3: Enable Service at Boot Use systemctl enable servicename so the service starts automatically after reboot. Step 3: Enable Service at Boot systemctl list-units --type=service --state=running systemctl disable servicename Terminal screenshots are original illustrations created for Gnome IT Solutions (blog.gnomeitsolutions.com).