Ubuntu 22.04 - AtoZ Linux https://atozlinux.com Linux News, Tutorials, Freebies & Many More Sun, 13 Oct 2024 05:02:09 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.2 How To Setup UFW On Ubuntu 24.04 LTS https://atozlinux.com/how-to-set-up-ufw-firewall-on-ubuntu-24-04-lts/ https://atozlinux.com/how-to-set-up-ufw-firewall-on-ubuntu-24-04-lts/#respond Sun, 13 Oct 2024 01:37:54 +0000 https://itsubuntu.com/?p=124719 How To Setup UFW (Uncomplicated Firewall) On Ubuntu 24.04 LTS In this tutorial, we are going to show you the method to set up  UFW or Uncomplicated Firewall on Ubuntu 24.04 LTS. It is an user-friendly application that manages iptables-based firewalls on Ubuntu. How To Setup UFW On Ubuntu 22.04 LTS Let’s have a look […]

The post How To Setup UFW On Ubuntu 24.04 LTS first appeared on AtoZ Linux.

]]>
How To Setup UFW (Uncomplicated Firewall) On Ubuntu 24.04 LTS

In this tutorial, we are going to show you the method to set up  UFW or Uncomplicated Firewall on Ubuntu 24.04 LTS. It is an user-friendly application that manages iptables-based firewalls on Ubuntu.

How To Setup UFW On Ubuntu 22.04 LTS

Let’s have a look at the step-by-step method to set up UFW on Ubuntu 24.04 LTS.

UFW  is already installed on Ubuntu 24.04 LTS By default. You can run the following command to see whether the UFW is installed or not.

which ufw

If it does not return the path to the command then run the following command to install UFW on Ubuntu 24.04 LTS.

Install UFW On Ubuntu 24.04 LTS

sudo apt install ufw

and run the following command to enable UFW as  the firewall is not enabled by default

sudo ufw enable

You can verify that UFW is running by running the following command:

sudo ufw status verbose

Run the following command to turn off or disable the UFW.

sudo ufw disable

Set Up default UFW policies On Ubuntu 24.04 LTS

Run the following command to block all incoming connections and only allow outgoing connections from the Ubuntu 24.04 LTS:

sudo ufw default allow outgoing
sudo ufw default deny incoming

Make sure IPv6 support enabled too. by running the following command:

grep IPV6 /etc/default/ufw

Open SSH TCP port 22 using the ufw On Ubuntu 24.04 LTS

Run the following command to allow incoming SSH connections on the default TCP port 22 as follows:

sudo ufw allow ssh

For example you are running the OpenSSH server on TCP port 1222, then run the following command :

sudo ufw allow 1222/tcp

You can limit ssh port access to combat bots:

sudo ufw limit ssh

UFW Allow Command To Allow Incoming Connections.

Run the following command to allow SSH access.

sudo ufw allow 22

Run the following command to deny the connection from port 80:

sudo ufw deny 80

Allow a specific IP Address

Run the following command to allow the specific IP address on Linux. The command below will allow the IP 192.168.1.117 to access all ports on the server:

sudo ufw allow from 192.168.1.117

Disable and Reset UFW on Ubuntu 24.04 LTS

Command to turn off or disable UFW on Ubuntu 24.04 LTS

sudo ufw disable

Deleting a UFW Firewall Rule On Ubuntu 24.04 LTS

If you want to delete UFW firewall rule then run the following command to delete a UFW firewall rule on Ubuntu 24.04 LTS.

sudo ufw delete allow ssh

The post How To Setup UFW On Ubuntu 24.04 LTS first appeared on AtoZ Linux.

]]>
https://atozlinux.com/how-to-set-up-ufw-firewall-on-ubuntu-24-04-lts/feed/ 0
How To Check Your Ubuntu Version https://atozlinux.com/how-to-check-your-ubuntu-version/ https://atozlinux.com/how-to-check-your-ubuntu-version/#respond Thu, 14 Dec 2023 08:07:36 +0000 https://itsubuntu.com/?p=124610 How To Check Your Ubuntu Version No matter which version of Ubuntu you are using, this command will work like a charm to help you to figure out the exact version of the Ubuntu that you are using. Why You Should Know The Version Of Ubuntu? To avoid any conflicts with other apps or repositories,  […]

The post How To Check Your Ubuntu Version first appeared on AtoZ Linux.

]]>
How To Check Your Ubuntu Version

No matter which version of Ubuntu you are using, this command will work like a charm to help you to figure out the exact version of the Ubuntu that you are using.

Why You Should Know The Version Of Ubuntu?

To avoid any conflicts with other apps or repositories,  It is always good to check the version of Ubuntu. If you know the version, you can install the apps that is compatible with your Ubuntu.  In this tutorial, we will show you the easy way to check the version of Ubuntu that you are using.

How To Check Your Ubuntu Version

Run the following command in your Ubuntu terminal to to check the Ubuntu version from the command line. We will be using the lsb_release -a command to display the Ubuntu version in your terminal.

lsb_release -a

Alternatively, you can also use the  /etc/issue file to see the Ubuntu version. We will use cat the command to display the Ubuntu version from the etc/issue file.

cat /etc/issue

We can also see the version from the file /etc/os-release. This will work only if you have Ubuntu 16.04 or newer:

cat /etc/os-release

Check the Ubuntu version using the hostnamectl command

This command will work only on Ubuntu 16.04 or newer versions. Run this command to display the Ubuntu version:

hostnamectl

Check the Ubuntu version using the GUI Method

In another method, you can check the Ubuntu version using the GUI tool. You need to Open the system settings window by clicking on the Settings icon.  In the system settings window, click on the Details tab and your Ubuntu version will be shown under the orange Ubuntu logo.

The post How To Check Your Ubuntu Version first appeared on AtoZ Linux.

]]>
https://atozlinux.com/how-to-check-your-ubuntu-version/feed/ 0
Install Synaptic Package Manager On Ubuntu 22.04 LTS https://atozlinux.com/install-synaptic-package-manager-on-ubuntu-22-04-lts/ https://atozlinux.com/install-synaptic-package-manager-on-ubuntu-22-04-lts/#respond Sun, 10 Sep 2023 07:51:59 +0000 https://atozlinux.com/?p=125795 Install Synaptic Package Manager On Ubuntu 22.04 LTS In this Ubuntu Tutorial post, we will show you the process to install the synaptic package manager on Ubuntu 22.04 LTS. Synaptic Package Manager helps you to install, remove, configure, or upgrade software packages in Ubuntu. It is the graphical front-end to apt or Advanced Package Tool […]

The post Install Synaptic Package Manager On Ubuntu 22.04 LTS first appeared on AtoZ Linux.

]]>
Install Synaptic Package Manager On Ubuntu 22.04 LTS

In this Ubuntu Tutorial post, we will show you the process to install the synaptic package manager on Ubuntu 22.04 LTS. Synaptic Package Manager helps you to install, remove, configure, or upgrade software packages in Ubuntu. It is the graphical front-end to apt or Advanced Package Tool that is similar to apt command. You can also browse, sort, and search the list of available software packages, manage repositories, or upgrade the Ubuntu. You can also fix the broken package dependencies using Synaptic.

How To Install Synaptic Package Manager On Ubuntu 22.04 LTS

Install Synaptic Package Manager Via Software-center.

Synaptic Package Manager is already available in the Ubuntu software center. You can easily install by searching it.

Install Synaptic Package Manager Via Command.

Run the following command in your terminal to install the Synaptic Package Manager with the following command.

sudo apt-get install synaptic

Now, after installing, you can easily launch Synaptic by going through the following steps. You can also launch it from the application menu.

System > Administration > “Synaptic Package Manager

Just in case if you are not able to start Synaptic Package Manager  then at that time you need  to install policykit in your operating system. Run the following commands according to your Linux based operating system.

For the Mate Desktop Environment:

sudo apt install mate-polkit

For Cinnamon, XFCE and Unity Desktop Environment:

sudo apt install policykit-1-gnome

For LXQt –

sudo apt install lxqt-policykit

For LXDE (Lightweight X11 Desktop Environment):

sudo apt install lxpolkit

You can easily install any packages from the Synaptic Package Manager by searching the package name that you wants to install.

The post Install Synaptic Package Manager On Ubuntu 22.04 LTS first appeared on AtoZ Linux.

]]>
https://atozlinux.com/install-synaptic-package-manager-on-ubuntu-22-04-lts/feed/ 0