×


Linux Resources


Add and Remove Users on Ubuntu 20.04 - How to perform this task ?

This article covers how you can add and remove users on Ubuntu and assign them administrator privileges. Based on your convenience, you can either choose to add and remove users either through the command line or GUI. 

Ubuntu, like any other Linux distribution, is a multi-user operating system. Each user can have different permission levels and specific settings for various command-line and GUI applications.

Knowing how to add and remove users is one of the basic skills a Linux user should know.


To add a user in Ubuntu via GUI:

1. Open the Activities overview and start typing Users.

2. Click on Users to open the panel.

3. Press Unlock in the top right corner and type in your password when prompted.

4. Press the + button, below the list of accounts on the left, to add a new user account.


To remove a user from Ubuntu:

1. Open the terminal app.

2. Login to server using the ssh user@server-ip-here command.

3. Run sudo deluser --remove-home userNameHere command to delete a user account on Ubuntu.

4. Verify it by running id command.


To Remove a Linux user:

1. Log in to your server via SSH.

2. Switch to the root user: sudo su -

3. Use the userdel command to remove the old user: userdel user's username.

Optional: You can also delete that user's home directory and mail spool by using the -r flag with the command: userdel -r user's username.


To Add a User to Linux:

1. Log in as root.

2. Use the command useradd "name of the user" (for example, useradd linuxapt)

3. Use su plus the name of the user you just added to log on.

4. "Exit" will log you out.


Linux operations commands:

1. adduser : add a user to the system.

2. userdel : delete a user account and related files.

3. addgroup : add a group to the system.

4. delgroup : remove a group from the system.

5. usermod : modify a user account.

6. chage : change user password expiry information.


How do I assign a user to a group in Linux?

1. To create a new group, enter the following: sudo groupadd new_group.

2. Use the adduser command to add a user to a group: sudo adduser user_name new_group.

3. To delete a group, use the command: sudo groupdel new_group.

4. Linux comes with several different groups by default.


Install TeamViewer on CentOS 8 - Step by Step process to get it done ?

This article covers how to install TeamViewer on the CentOS system. Additionally, you will learn how to install, launch, and update TeamViewer on CentOS.

We have also covered how to uninstall TeamViewer in case you no longer need it on your system. 

For some more help regarding TeamViewer, run teamviewer help in Terminal.

TeamViewer is a Robust cross-platform solution that provides secure remote access, remote control, and remote support solution across devices. 

The data traffic between devices are encrypted which makes the TeamViewer very secure. 

This software is available for “Linux, Windows, Mac, Chrome OS” and even for mobile devices like "iOS, Android, and so on".


To Install TeamViewer on CentOS 8:

1. Enable EPEL Repo on CentOS 8

You can install EPEL repo using the below command. This command will enable the repo if it is not already installed:

$ sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -y

2. Now you can proceed further to install TeamViewer on CentOS 8:

$ sudo yum install teamviewer.x86_64.rpm -y

3. Once the package is installed you can start using team viewer:

$ teamviewer


Install Arduino IDE on Debian 10 - Step by Step Process to implement it ?

This article covers different methods to install the Arduino IDE on Debian system. To get the latest version of Arduino IDE, simply go for installation via tarball and snap. If you prefer an older release of Arduino, go for installation via apt.

Arduino boards are able to read inputs – light on a sensor, a finger on a button, or a Twitter message – and turn it into an output – activating a motor, turning on an LED, publishing something online. You can tell your board what to do by sending a set of instructions to the microcontroller on the board. 

To do so you use the Arduino programming language (based on Wiring), and the Arduino Software (IDE), based on Processing.”


To Install Arduino IDE on Ubuntu:

1. Execute the command:

$ sudo apt install Arduino

2. You will be provided with Y/N option, press y to continue.

3. Now wait for a while until the installation of Arduino IDE is completed.


To Launch Arduino IDE:

To launch Arduino IDE application on your system, hit the super key and in the search bar that appears, type Arduino. When the Arduino IDE icon appears, click on it to launch.

You will see the default view of Arduino IDE.


Install Skype on CentOS 8 - Step by Step process to implement it ?

This article covers how to install skype on the CentOS 8 system. One is using the RPM skype repository and another one is through the snap tool. 

Running Skype on CentOS/Fedora allows you to make Skype calls, group video calls, instant messaging, phone number calls, and screen sharing.


To Install Skype on CentOS:

1. Execute the command;

$ sudo yum localinstall skypeforlinux-64.rpm

2. Press y when prompted to confirm installation.


To Launch Skype on CentOS:

After successful installation, search Skype on your Desktop Environment search bar.


Install Nginx on Ubuntu 20.04 - Step by Step process to implement it ?

This article covers how to install Nginx on the Ubuntu system. Also, you will learn how to configure the firewall and manage Nginx services. 

Finally, you will see how to uninstall Nginx in case you no longer need it in your system.

Nginx is a free, open-source Linux application for web servers. It works as a reverse proxy server by directing web traffic to specific servers.

Also, Nginx is used for security and load-balancing, but can also function independently as a web server.


To Install Nginx From Ubuntu Repositories:

1. Update Software Repositories

It is important to refresh the repository lists before installing new software. This helps make sure that the latest updates and patches are installed.

Open a terminal window and enter the following:

$ sudo apt-get update

2. Nginx is included in the Ubuntu 20.04 default repositories. Install it by entering the following command:

$ sudo apt-get install nginx


How to manage Nginx on Ubuntu ?

The behavior of Nginx can be adjusted. Use this to start or stop Nginx, or to enable or disable Nginx at boot.

Start by checking the status of the Nginx service:

$ sudo systemctl status nginx

If the status displays active (running), Nginx has already been started. 

Press CTRL+z to exit the status display.

If Nginx is not running, use the following command to launch the Nginx service:

$ sudo systemctl start nginx

To set Nginx to load when the system starts, enter the following:

$ sudo systemctl enable nginx

To stop the Nginx service, enter the following:

$ sudo systemctl stop nginx

To prevent Nginx from loading when the system boots:

$ sudo systemctl disable nginx

To reload the Nginx service (used to apply configuration changes):

$ sudo systemctl reload nginx

For a hard restart of Nginx:

$ sudo systemctl restart nginx

To Test the Configuration

$ sudo nginx –t

The system should report that the configuration file syntax is OK, and that the configuration file test is successful.


Install KDE Plasma on Ubuntu 20.04 - Step by Step process to implement it ?

This article covers how to install KDE Plasma on Ubuntu 20.04 system. The Plasma desktop option will be available along with the standard Ubuntu system. Also, you will learn the steps to uninstall KDE Plasma from the Ubuntu system. 

KDE is the short form for K Desktop Environment.

Plasma is the desktop environment and KDE is the umbrella project responsible for the development of Plasma desktop and a bunch of other applications.


To Install KDE desktop environment on Ubuntu:

For KDE Full - This is the complete KDE pack. It comes with the complete package and core KDE plasma desktop. 

$ sudo apt install kde-full


For KDE Standard - It includes Plasma desktop with standard set of KDE apps such as Kate (default text editor), Konqueror (default web browser), Kget (Download Manager), KMail (email client), Dolphin (File Manager) and so on. 

$ sudo apt install kde-standard


To install KDE Plasma Desktop:

Run the command - $ sudo apt install kde-plasma-desktop

Search by typing a one letter Word Term Here