Securing your Linux installation: Basics

Linux is often considered the most secure operating system of the three. For Windows and Mac OS, Linux has the best security. This is mostly true, but not for reasons that most people may think of. Linux security comes from obscurity. There aren’t that many people using Linux, and as a result, there aren’t that many malicious people targeting it. If many people have used Linux as Windows 10, then Linux users who claim their operating system is the most secure will quickly prove themselves. In this article, we will cover securing the installation of Linux.

Whether something is secure or not, there is one thing every Linux user should do: take control of the PC and make it harder for hackers to infiltrate. We’ll look at how to create a strong password for Linux, how to configure your firewall, encryption, and even virus scanning.

Create a secure password

All good Linux installations have a basic password for both the root user and other computer users. This makes it difficult for intruders to gain access to your computer. The best way to create a secure password is to understand what makes a good password.

There’s a complete list of things to keep in mind when setting up a good, secure password. However, this is time-consuming. Use this service instead: This is a site that considers all the things that require a strong password and creates one for you.

If you are currently creating a new configuration for a Linux distribution – go to the password generation site during installation. Use the generated password in the user setup process. If you have already installed your Linux distribution and want to make your user and root accounts more secure, follow the instructions below.

The habit of a strong password generator is to produce such secure passwords that people sometimes forget. Be sure to write down your new password on a piece of paper and place it securely in your home.


Change the password for existing users


sudo -s


passwd username

Firewall setting

One of the best ways to keep Linux safe is to manage network traffic on and off. This is achieved through a firewall. Fortunately, most (if not all) mainstream Linux distributions have an excellent firewall. Unfortunately, it is usually turned off or not properly configured. To configure a Linux firewall, you must first install a program.

This program is needed to interact with them Linux firewall is much easier. Open a terminal and enter one of the following commands to install. Alternatively, find a way to install the software for a program called “GUFW” and install it.


sudo apt install gufw

Arch Linux

sudo pacman -S gufw


sudo dnf install gufw


sudo zypper install gufw


sudo apt-get install gufw

GUFW gives the full user control over the Linux number firewall. Find “Status” to turn it on and click the slider to turn it on. Then review the different firewall profiles and select one. These profiles are perfect because they contain normal defaults. The developers of this program have considered what most people do with a firewall and have configured it accordingly.

Linux Antivirus

Contrary to popular belief, Linux is a malicious program and can get viruses. Obviously, Linux users are much less affected by this. Today, however, attacks on Linux users are becoming more and more a reality. It’s also good to have an antivirus tool that can be used simply because Linux users can accidentally transmit Windows viruses over networks.

The best virus tool for Linux is ClamTK. It is an open-source graphical user interface for Linux for the top-rated ClamAV command line antivirus. Here’s how to install:


sudo apt install clamtk

Arch Linux

sudo pacman -S clamtk


sudo dnf install clamtk


sudo zypper install clamtk


sudo apt-get install clamtk


ClamTK is very popular. As a result, it can be found everywhere. If your Linux distribution has not already been mentioned, obtain it by locating the location where you usually install the software.

Search for hazards


Antivirus can easily detect threats by scanning individual files or entire directories. To search for threats, click the “scan file” or “scan directory” button in ClamTK. Then use a file browser to locate the one you want to check for vulnerabilities and threats. This can be a Windows hard drive, a partition or just files on a Linux computer.

Hide files and folders

Protecting Privacy and Keeping It Safe Linux is finding a way to keep sensitive documents away from prying eyes. Fortunately, sensitive documents, files, and other things can be easily hidden on Linux. To hide something, open the file manager first.

From here, locate the folder or file you want to hide, then press F2 on your keyboard (or right-click, rename it) and put a full stop in front of each. This means that if you want to hide a folder called “Sensitive Documents”, it will be renamed: “. Sensitive documents’. This applies to any file.

This is not a perfect solution, but for those who are hiding some sensitive information, this is a good option.


All the methods discussed in this article are great ways for Linux users to control and secure a Linux installation. The only best method (in addition to a secure password) is to encrypt the entire disk during the installation process. The setup is straightforward because, during installation, most Linux distributions have a small check box to encrypt the entire hard drive.

If you are a new Linux user and want full disk encryption, Ubuntu is recommended. This is because it is the easiest to set up. Here is the Ubuntu tutorial.

Note: As mentioned, pretty much all Linux distributions support full disk encryption one way or another. It is best to visit the Linux distribution website for instructions on encryption. Alternatively, search the installation tool for “encryption options,” etc.

This guide does not discuss installing Ubuntu Linux. Instructions for full disk encryption only.

Start the Ubuntu live disk normally. This includes reviewing and setting up your computer’s BIOS so that the USB disk boots first. When Ubuntu finishes loading, select “Install Ubuntu”.

Check the “Download updates when installing Ubuntu” and “Install external software” options, then select the Continue button to go to the next page.


This next page sets up full disk encryption. Select one of the options to install Ubuntu and select the “Encrypt new installation for security” checkbox, then click Continue to set the encryption key.

For maximum security, be sure to use to generate the encryption key.

After setup, click Continue to continue installing Ubuntu.


Linux has a good reputation due to its nature. The reality is that no operating system matters, whatever will be 100% secure at the time. The only way to keep your operating system safe and prevent bad things from happening is to take precautions. Fortunately, there are simple tools that allow even beginners to take control.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button