Dotfiles: Configuration Files

What Are Dotfiles and why Should I Care? After using your system for a while, you will likely change settings everywhere: On your desktop environment, different programs, and even create scripts to automate your work. Most of these configurations are saved in your $HOME directory, in the form of .app_name. These files begin with a dot (making them ‘hidden’), hence the name dotfiles. Some apps (like most browsers) are able to sync settings between different devices, but most programs can’t. Eventually, you may have to replace your device, switch to another system temporarily, or face any other situation where you either lose your files or need your configurations somewhere else. ...

May 30, 2024 · 3 min · 545 words · TrudeEH

Firewall [UFW]

A firewall monitors and controls all incoming and outgoing network traffic, and can be implemented in the hardware or software level. See All Open Ports All ports opened by a program, including those blocked by a firewall. sudo ss -tupln Software Firewall (UFW) # Enable the SSH port if it is being used sudo ufw limit 22/tcp # `limit` is used to prevent bruteforce # Set default connection settings sudo ufw default deny incoming sudo ufw default allow outgoing # Open ports for the services running sudo ufw allow 80/tcp # Web server 1 sudo ufw allow 443/tcp # Web server 2 # Check if UFW is running and is configurations sudo ufw status numbered # Delete an entry sudo ufw delete 2 # Number given by `status numbered` # Enable UFW sudo ufw enable Block Pings Blocking pings prevents hackers from quickly discovering the server. It is still possible to scan all ports on the server and eventually find any open one, but it adds another layer of security. ...

2 min · 282 words · TrudeEH