×


Category: Linux Backup


Methods to check the status of laptop battery on Ubuntu 20.04 LTS ?

This article will guide you on different methods to view detailed information on your battery using both the #command line and UI.

To check your #battery health you'll want to open the app, click on the relevant battery item in the sidebar, and double-check that you're faced with the Details tab.

1. Use upower command to check battery status from command line:

Type the following command:

$ upower -i /org/freedesktop/UPower/devices/battery_BAT0

2. Displaying #Linux Laptop Battery Status Using the apci #terminal command

The acpi command may not be installed by default so use apt-get command or yum command to install the same:

$ sudo yum install acpitool

3. Use /proc/acpi/ directory to get laptop battery info (deprecated method)

You can browse the same data by visiting /proc/acpi/ directory:

$ cd /proc/acpi/

$ ls -l


Steps to Install Webmin on Ubuntu 20.04 LTS ?

This article will guide you on the steps to install #Webmin in your Linux system. Webmin comes with a very simple webserver called miniserv.pl that is capable of doing all that is necessary for Webmin to run. However, it is not as fast or memory efficient as a well-developed server such as #Apache.

To modify the default port, 10000 to 10101, open the /etc/webmin/miniserv. conf file and modify line 1 and 16. Now you can access the Webmin through url with new custom port.

To Install Webmin on #Ubuntu:

1. Log in to your Ubuntu #server.

2. Issue the command sudo nano /etc/apt/sources. list.

3. Hit [CTRL][x] and save the file.

4. Add the downloaded key with the command sudo apt-key add jcameron-key. asc.

5. Update apt with the command sudo apt-get update.

6. Install Webmin with the command sudo apt-get install webmin.


How to use SSH to connect to a remote server in Ubuntu 20.04 LTS ?

This article will guide you on how to #SSH remote Linux servers using #OpenSSH utility. We have also discussed some basic configurations that you may find useful when connecting via SSH. Now you can easily manage remote #Linux servers for administration and troubleshooting.

To Enable #root login over SSH:

1. As root, edit the sshd_config file in /etc/ssh/sshd_config : 

nano /etc/ssh/sshd_config.

2. Add a line in the Authentication section of the file that says PermitRootLogin yes.

3. Save the updated /etc/ssh/sshd_config file.

4. Restart the SSH server: service sshd restart.


How to block or unblock ping requests on Ubuntu Server 20.04 LTS ?

This article will guide you on steps to block or unblock #ping requests on #Ubuntu Server 20.04 LTS. Also you will learn how to unblock the ping requests in case you need to use ping for system administration and troubleshooting.

To block #ping requests in #Linux:

You can implement blocking ICMP messages in your Linux system by adding the below #kernel variable that will drop all ping packets. In order to make the above rule permanent, append following line to /etc/sysctl. conf file and, subsequently, apply the rule with sysctl command.


How to know Ubuntu version via command line ?

This article will guide you on how to check your Ubuntu version so that you can apply patches and update versions for security and performance reasons. The Process of Checking the #Ubuntu version in the #terminal ? i. Open the terminal using "Show Applications" or use the keyboard shortcut [Ctrl] + [Alt] + [T]. ii. Type the #command "lsb_release -a" into the command line and press enter. iii. The terminal shows the Ubuntu version you're running under "Description" and "Release".


How to open ssh 22 / TCP port using ufw on Ubuntu/Debian Linux?

This tutorial will guide you on the steps to open ssh port using ufw on Ubuntu or Debian Linux server.