The system hostname is stored in two main files in Linux. The first file is the “/etc/hostname” file, and the other file is the “/etc/hosts” file. The former only consists of the hostname of your system, whereas the latter contains a mapping of the hostname onto a specific IP address. The “failed to start hostname.service unit hostname.service is masked” error arises when the contents of these two files are mismatched, i.e., the hostname mentioned in one of these files is different from the hostname in the other file. Due to this inconsistency between the contents of the “/etc/hostname” and “/etc/hosts” files, your system will fail to start the hostname.service, and the error will occur.
The simplest way to resolve this error in Linux is by ensuring that the hostname mentioned in both files is the same. To do so, you will need to check the contents of both these files. You can access the “/etc/hostname” file by executing the following command in the Linux terminal:
Our “/etc/hostname” file is shown in the image below:
The “/etc/hosts” file can be accessed with the following command:
Our “/etc/hosts” file is shown in the image below:
As you can see from the contents of both files, our hostname is the same in both files, i.e., kbuzdar-VirtualBox. Once you have ensured that the hostname in your respective files is exactly the same, then you can try restarting the hostname.service once again. This time, it should not render the error.
This article enlightened you about the causes of the “failed to start hostname.service unit hostname.service is masked” error. Moreover, it also shared with you the simplest method through which you can get rid of this error in Linux.
]]>For accessing a remote desktop from your Debian 10 system, you will have to perform the following steps:
First, we have to update our Debian 10 system with the command shown below:
When our Debian 10 system is fully updated, we will install a remote desktop client of our choice on it.
We need to install Remmina remote desktop client on our Debian 10 system. This can be installed with the following command:
During the installation of this remote desktop client, you need to confirm by typing “Y” in your terminal, as highlighted in the image shown below:
It will take a few minutes for the installation of Remmina to complete on your Debian 10 system.
Now, you can easily launch Remmina remote desktop client on your Debian 10 system by searching for it in the Activities search bar. You need to click on the Remmina search result as highlighted in the following image:
The welcome interface of the Remmina remote desktop client is shown in the image below:
For connecting to a remote desktop through Remmina remote desktop client, you need to select the Virtual Network Computing (VNC) protocol from the list of protocols on the Remmina interface as highlighted in the following image:
After selecting the VNC protocol, you need to type in the remote machine’s IP address whose desktop you want to access via Remmina in the provided address bar, e.g., 192.168.10.15.
You need to press the Enter key after typing in the desired IP address so that Remmina can allow you to access the specified remote desktop from your Debian 10 system, as shown in the image below:
For removing Remmina remote desktop client from your Debian 10 system, you need first to run the following command in your Debian 10 terminal:
This command will remove Remmina remote desktop client and its configuration files from your Debian 10 system. After doing this, you need to execute the command shown below for removing all the unused packages and dependencies as well from your Debian 10 system:
In this tutorial, we taught you the method of installing a remote desktop client, i.e., Remmina, on a Debian 10 system and then using it for connecting to a remote desktop. This article concluded with the removal method of this remote desktop client from a Debian 10 system.
]]>Above, we have described what the build-essential packages are. In the rest of the article, we will explain how to install and use build-essentials on Ubuntu systems. All terminal commands we have executed on Ubuntu 20.04 system in this article. Let’s dive into the depths!
The build-essential meta-packages can be installed directly from the Ubuntu official repository. These packages are available in the default Ubuntu 20.04 system repository. Just install meta-packages of build-essential tools through the apt package manager. Open the terminal application through the keyboard shortcut ‘Ctrl + Alt + t’.
Now, you need to update the packages repository before installing the build-essential tools. Type the following command to update the apt repository index:
Install the build-essential packages by running the below-given command:
After executing the above command, the following result will be shown on the terminal:
Once the installation is finished, verify the installation of these packages by checking the GCC version on your system with the following command:
The installed version of GCC to be displayed on the terminal, which is also shown in the following screenshot:
Now, all GCC compiler libraries and tools have been installed on Ubuntu 20.04 system. However, you can run a C program for testing the installation.
Let’s create a C program by using the nano editor as follows:
Now, add the below-mentioned lines of code in this nano file:
Save the above file and make an executable file by using the following command:
Now, execute the following command to run the C program:
The following output is shown on the terminal after running the above C program:
We have explained the installation of build-essential tools in this article. We have explored what is build-essential and how to install and use it on Ubuntu 20.04 system. Now, you should have the proper understanding of the build-essential and how to install it on the Ubuntu system. The above commands can also be applied to the older Ubuntu versions. To learn more about these required packages, must visit their official website for a better understanding.
]]>For listing all the running services in Debian 10, you can select any of the following three methods:
You can use the “systemctl” command with the “list-units” parameter to list down all the running services in Debian 10 in the manner shown below:
When you execute the above-mentioned command, a list of all the running services in Debian 10 will be displayed on your terminal, which is shown in the following image:
You can use the “systemctl” command without the “list-units” parameter to list down all the running services in Debian 10 in the manner shown below:
When you execute the above-mentioned command, a list of all the running services in Debian 10 will be displayed on your terminal, which is shown in the following image:
You can use the “pstree” command to list down all the running services in Debian 10 in the manner shown below:
When you execute the above-mentioned command, a list of all the running services in Debian 10 will be displayed in a nice and clean tree-like structure on your terminal, which is shown in the following image:
The three methods shared with you in this article aimed to demonstrate to you how you can list all the running services in Debian 10. You can employ the very same methods on Ubuntu 20.04 and Linux Mint 20, whereas the commands for CentOS 8 may differ slightly. Nevertheless, you can conveniently pick any method of your choice out of the ones shared with you in this article for listing down all the running services in Debian 10.
]]>Users can create a backup of their current installation in an ISO file format. The ISO file can also be used as an external drive, or you can make a bootable USB. if you have an ISO file, then you can create the installation disc by burning the image to a CD or USB.
This article shows you how to create an ISO file from a currently installed Ubuntu 20.04 system. You can create an ISO file from the current installation of Ubuntu 20.04 using any of the following methods.
The Brasero utility does not come preinstalled on Ubuntu 20.04, so you will need to install this utility manually. Open the ‘Terminal’ window by pressing the ‘Ctrl+Alt+T’ shortcut keys together. Install the Brasero utility using the following command:
Once the installation has been completed, open the Brasero application. To open this application, click the menu icon displayed in the bottom-left corner of your desktop in Ubuntu 20.04.
Now, type ‘Brasero’ in the search bar to search the Brasero application. The Brasero application icon should appear in the search results. Click the icon to open this application.
The following Brasero application window will display on your system. Select the ‘Data project’ option from the menu on the left side of the window.
Add the files to the new data project by clicking the ‘+’ icon.
Now, select the individual backup directories and click the ‘Add’ button.
When all files are included in this project, click ‘Burn.’
Choose the desired location in which you will store the ISO file. Give a suitable name with an .iso extension to your ISO file and click ‘Create Image.’
Once the above process has been completed, you will be notified with an ‘image successfully created’ message, as follows:
You can create an ISO file from a backup of your Ubuntu 20.04 system using the Genisoimage utility. The basic syntax is given below:
Here, we are creating an ISO file with the name ‘backup.iso’ from the backup directory /home/kbuzdar/Documents/Backup. Use the following command to do so:
The above command creates the ISO file ‘backup.iso’ in the current home directory.
You can create a backup of the system’s file and all configurations using the Systemback utility. In this section, you will create a live image of your system, then convert it into an ISO file format.
First, import the signing key of GPG for PPA using the following command:
Now, add PPA to Ubuntu 20.04 by executing the command provided below:
Once the above task has been completed, update the package list and install the Systemback utility, as follows:
Once this application has been installed, search for the app in the search bar, and click on the displaying icon to open the app, as follows:
Here, you will be prompted to enter a password for the admin user.
After that, the following window will display on your system. You can create the system’s restore points, create a copy of the system to another partition, create a live system, and more. Click the ‘Live system create’ option to create a new live system.
Specify the name of your live system and click the ‘Create New’ button, as follows:
It will take time to create a live system. Once the system has been created, you can generate the ISO file using the ‘convert into ISO’ option.
This article showed you three different methods for creating ISO files from your current system. First, you must create a backup of your Ubuntu 20.04 system, then create the ISO file using the above utilities.
]]>Debian and Ubuntu servers are considered quite similar in many respects. Let us dig deep into a comparison of the two servers:
The basic difference between the two server types is the methods in which the two releases are handled. Debian is becoming quite similar to Ubuntu, but both are not totally alike. Rather, each server type has its own distinct set of differences. Debian will not offer the conventional updates that Ubuntu does; rather, Debian offers live streams of the release. An example is the apt-get package manager, which allows users to install updates and software. Users can upgrade their systems to the upcoming stable release without any kind of reboot.
Ubuntu supports its LTS (Long Term Support) version, a version of the distribution that is built upon and supported for roughly five years. On the other hand, Debian offers a total of three years of support with their respective builds. Today, Debian is becoming more and more like Ubuntu, and it has a volunteer support team to help it catch up.
Ubuntu is a more secure system than Debian. Debian is considered a much stabler system and is much easier to manage than Ubuntu. In discussions on several platforms, Debian has a reputation for being more stable. There may also be a few vulnerabilities in an Ubuntu server that will not exist in a Debian server. Still, overall, Ubuntu and Debian are both widely used all over the world.
The two servers also vary in terms of the services offered by each. Ubuntu’s support team can be hired, which can help you with installation, updating, and troubleshooting the system. Debian has no such support team; rather, Debian relies on a team of volunteers. Over time, Debian has gained the status of being a more user-friendly server. Both systems have a detailed installation process, so choosing one of them according to this criterion is an easy decision.
Both server systems are based on Debian, so the software and hardware of both systems are pretty much the same. Most Ubuntu packages can run easily without any external software configurations. Meanwhile, Debian servers look for pre-existing configurations while making system updates, then they will notify the system administrators. This ability facilities users and will stop any upcoming software update errors.
Both servers come free of charge, so the price factor is not the deciding factor of which server to choose. Because both servers are free, users can opt for the operating system that is up to their requirements. You can also switch between the two systems whenever you want, but make sure that all pre-requisites are met before switching.
Debian and Ubuntu servers are equally useful for different purposes. This article compared and contrasted the two servers in detail based on various parameters and characteristics.
]]>To execute all commands, you must have the privileges to run the system administrative commands.
First, check if IPV6 is enabled on your Debian system or not. Open the terminal by typing the “terminal” in the search bar, and then click on the displaying Terminal icon in search results. Use the following command to check your IP address:
The following result will show on your terminal to determine if IPV6 is enabled.
Using the following three commands input, you can disable the IPV6 on your system:
After running the above commands, the IPV6 services will be disabled on your Debian system, but this is only a temporary solution. When you restart your system, it will enable it again. Verify the status by typing the “ip a” command.
To disable these IPV6 connections, you need to use /etc/sysctl.conf file. Open this configuration file in any available editor. Here, we are using a nano editor for modifying this file, as shown in the command below:
Now, paste the following lines in this file and save it:
Paste the below-mentioned line, if you have any specific network interface adopter such as “enp0s3”:
To verify the change settings, type the following command:
Create file in the /etc/sysctl.d directory using the following command:
Paste the following line in this file:
Save and press ‘Ctrl +X’ to exit from this window.
Now, check the effect of the changes using the following command:
Run the following command to verify the results:
As you can see in the above output, IPV6 connections have been disabled on this system.
We have provided you the brief information about how you can disable the IPv6 interface on your Debian 10 system. All these commands can also be executed on the Ubuntu system. If you find this article useful, then let us know with your feedback.
]]>In this article, we will analyze the methods of enabling the automatic login on the Ubuntu 20.04 system.
To enable the automatic login using the graphical user interface, go to the Applications of the system. Then, search Settings in the search bar, it will appear in the available options. Click on it.
Once the Settings modal is opened, scroll down to the Users option available in the sidebar.
Once you have clicked on the Users option, you will see the right pane. The toggle button is right next to the Automatic Login option. It has to be turned on to enable the automatic login.
If you see an Unlock to Change Settings option on the same pane, this means that the change settings option is locked.
To unlock it, click on the Unlock button first.
The system will ask for Authentication. Provide the password in the relevant field to unlock the change settings.
Once the Authentication is completed, you will see that the Automatic Login option is now enabled, and the toggle button is set to ON.
To enable the automatic login using the command line of the system, open up the terminal window using the Ctl+Alt+T shortcut. Alternatively, you can go to the Applications and then search Terminal. Once done, you need to edit the /etc/gdm3/custom.conf file using the appended command below:
Then access the custom.conf using the nano editor (or any other based on your choice). Use the following command below:
The custom.conf file will open up, and you need to access the highlighted section of the file. By default, the following part of the code is commented out, just like the ones shown below:
You need to uncomment these lines just like the one displayed below:
Use the Ctl+O shortcut to save and close the editor. Once done, use the reboot option to reboot the system and reflect the changes.
For Ubuntu 20.04 system, if NVIDIA proprietary driver is installed, then this option of enabling user automatic log in can result in an infinite login loop, which is a gdm3 bug. However, there’s no need to worry about this particular bug since a solution exists. In this section, we will cover the method to resolve this problem.
Open the bootable menu of the Ubuntu system. Then access the Recovery Menu of the system. Scroll down to the root option using the arrow keys from the keyboard.
To edit grub options, run the following command:
The text editor will open up the file, just like the one displayed below. Scroll down to the line that has the “quiet splash” option.
Users need to remove the “splash” keyword from the Linux cmdline. The file will then look like this:
Press Ctl+O to save the changes.
You need to refresh the grub options using the command below:
Then you need to reboot your computer system. This way your issue will be resolved.
In this article, we went through the method of enabling the Automatic Login Option on the Ubuntu 20.04 system. We also explored the method if the automatic login enables option is not working, how to troubleshoot this problem, and get it fixed.
]]>All the people who belong to the networking background know that an IP address acts as a unique identifier of the devices within a network. Therefore, we must know the IP addresses of the devices within a network to enable smooth network communication. Today’s article will focus on the different methods of listing all the IP addresses on the Interface in Linux Mint 20.
For listing all the IP addresses on the Interface in Linux Mint 20, you can pick any of the following four methods.
You can display all the network interfaces and their respective IP addresses in Linux Mint 20 by executing the built-in Command shown below:
The results from the execution of this command are shown in the following image:
If you want to display all the IPv4 addresses on the Interface only in Linux Mint 20, then you can execute the command shown below:
All the IPv4 addresses are shown in the following image:
If you want to display all the IPv6 addresses on the Interface only in Linux Mint 20, then you need to execute the Command shown below:
All the IPv6 addresses are shown in the following image:
You can also display all the IP addresses in the connected network in Linux Mint 20 by following the procedure described below:
First, you need to install the “arp-scan” Command in Linux Mint 20, which will later be used to list all the IP addresses in the connected network. This is not a built-in command in Linux, but it can be installed by executing the following Command:
Once this Command is installed on your Linux Mint 20 system, you will be able to use it for listing down all the IP addresses in the connected network.
Before using the “arp-scan” Command, you need to find your network interface name with the command shown below:
In our case, the network interface name is “enp0s3” as shown in the following image. This network interface name will be used with the “arp-scan” Command in the next step.
Now, you can use the “arp-scan” Command for displaying all the IP addresses in the connected network in Linux Mint 20 in the manner shown below:
Here, it would be best if you replaced NetworkInterfaceName with the name of your particular network interface. In our case, it was “enp0s3” that we found out in step # 2.
The results from the execution of this Command are shown in the following image:
By picking any method (according to your requirements) from the ones that have been presented to you in this article, you can easily list all the IP addresses on the Interface in Linux. All of these methods have been performed on Linux Mint 20 for testing. However, the very same methods can also be employed on Debian 10 and Ubuntu 20.04.
]]>For upgrading your Linux kernel version in Debian 10, you have to perform the following four steps:
First, you should check the current version of the kernel installed on your Debian 10 system to verify if it has been upgraded or not later on. For checking the current kernel version in Debian 10, you will have to execute the command stated below:
The currently installed kernel version on our Debian 10 system is Linux 4.19.0-9-amd64, as shown in the following image:
You also need to update your Debian 10 system before upgrading its kernel version. Your system will look out for the available upgrades for the kernel and mark them for installation by updating them. You can update your Debian 10 system with the command shown below:
When all the necessary packages on your Debian 10 system is updated, this command will finish its execution as shown in the following image:
Now we can finally attempt to upgrade our Linux kernel version in Debian 10 with the help of the command shown below:
We have used the “dist” parameter with the “upgrade” command to smartly manage the up-gradation process by installing the required packages and removing the irrelevant ones at the same time.
During the execution of this command, you will be asked to confirm this action because doing so will occupy some additional space on your system. You can confirm the up-gradation process by pressing the “Y” key and then hitting the Enter key as shown in the following image:
When the up-gradation process finishes, the Linux kernel version on your Debian 10 system will also have been upgraded.
To verify if the kernel version is upgraded on your Debian 10 system or not, you can run the “uname –sr” command once again, and you will be able to notice a change in your kernel version from the previous time. However, in our case, we already had the latest kernel version installed on our Debian 10 system. That is why we could not upgrade it any further and received the same kernel version as the output of the “uname –sr” command that we had received earlier. This is shown in the image below:
By going through the procedure described in this article, you can conveniently upgrade your Linux kernel version in Debian 10 at any time you want. It is highly recommended that you keep repeating this process after regular intervals for your Debian 10 system’s proper functioning.
]]>This article covers the usage of the ss command with some straightforward examples. All the commands shown in this article were executed on the Ubuntu 20.04 distribution to check the statistics of socket and network connections.
You can easily list all network connections present in a system, including TCP, UDP, and UNIX socket connections, using the following ss command. The output is displayed in “less” format so that you can scroll through the output window:
You can also filter out the TCP, UDP, and UNIX socket connections using the following options:
Using only the “t” option displays connections that are ‘Connected’ or ‘Established.’ This option alone does not show you the TCP socket connections that are ‘Listening.’
For TCP, use the ‘-t’ option, along with the ‘-A’ tag.
For UDP connections, use the following command:
The ‘a’ option displays both ‘Connected’ and ‘Listening’ sockets. UDP is a connectionless protocol, so using ‘ss -u’ alone will not display anything. However, the ‘a’ can be used to show all UDP connections.
For Unix socket connections, use the following command:
The “n” option used with ‘t’ prevents socket statistics from resolving IP addresses to hostnames and displays the faster output, as follows:
You can also display only the TCP socket connections that are listening. The “n” option ignores resolving the hostnames of the IP address to display the output more quickly.
For all UDP listening connections, replace the ‘t’ option with the ‘u’ option, as follows:
You can display the process name, along with the pid of each process, using the following ss command with the ‘-ltp’ option:
The use of the ‘s’ option with the ss command displays the complete statistics, as follows:
By using the ‘-o’ option with the ss command, you can display the time information of each connection. The time details inform the user how long this connection has been maintained:
To print the IPv4 socket connections only, use the ‘-4’ option with ‘-f inet,’ as follows:
For IPV6, use the ‘-6’ option or ‘-f inet.’
You can also filter connections by connection state with the ss command. Connections can exist in various states, such as established, syn-recv, syn-sent, fin-wait-1, fin-wait-2, time-wait, close-wait, closed, all, last-ack, closing, connected, bucket, synchronized, and bucket.
So, according to the user requirements, you can use and filter any connection state by running the following command:
In the above example, we filtered all ‘established’ socket connections of TCP.
You can also filter the connection by the port number or by a specified IP address, as follows:
This article explored the various uses of the ss command. The ss command is the best alternative for the netstat command, as you have seen in this tutorial. Using the above examples, you can easily monitor system sockets and network connections.
]]>In Linux platforms, a sudo user is a tool that implies “superuser do” to run various systems’ commands. A sudo user is typically a root user or any other user who has some privileges. To delegate important tasks like server rebooting or restarting the Apache server, or even to create a backup using the sudo command, you can use the sudo without having to enter the password again and again.
By default, sudo user needs to provide some user authentication. At times, user requirements are to run a command with these root privileges, but they do not desire to type a password multiple times, especially while scripting. This is easily doable in Linux systems. In this article, we will check the method to sudo another user without entering their password.
To back up your sudo users, you need to copy the /etc/sudoers file from one place to another. Use the following command to do so:
Now, to edit the /etc/sudoers file, we will be using the visudo command. This will open up the sudoers file.
To edit the /etc/sudoers file, users need to rectify the entries as per your need. Adding another user to sudo will allow users to execute any command without any password. In the file above, append the following command.
Replace the UserName with the name of the user you want to set in the file.
Then, save and exit the file using the Ctl+O shortcut.
For adding a group to sudo without providing a password, use the % character before the name of your group. But first, open up the visudo editor, using the command below:
Once you have opened up the editor window, you need to add the following line in order to add the group and to run all of the commands without a password.
Here, replace the group name with the group you want to adjust the settings for.
To allow a user to run the /bin/kill command using the sudo privileges without providing a password, append the following line in the same editor window:
Replace the UserName with the name of the user you want to adjust the settings for.
In the same way, to enable the members of a group to run the sudo commands /bin/kill, /bin/rm without the need of entering any password, run the appended command:
To test the changes, you can now run the /bin/kill command, which will be used to kill any process whose ID is provided. This time you will not be needing a password:
In this article, we saw the method to run any command without providing the password while using sudo on different Linux platforms. Though it is considered to be risky for security purposes, password-less operations are risky and are an extra feature for secure systems.
]]>The task of removing an installed package from any operating system can surely be a hassle if handled carelessly. It is because whenever you attempt to remove a package, you expect it not to leave any of its traces behind. In other words, you want a clean removal of the desired package. However, such a complete removal cannot be achieved without taking certain measures.
That is why today’s article will be focused on the method of completely removing a package in Linux.
Note: The method that we have attempted and shared with you in this article has been performed on a Linux Mint 20 system. However, the very same steps can also be performed on Ubuntu 20.04 and Debian 10.
For removing a package completely in Linux Mint 20, the following series of steps should be performed in the specified order:
First, you should know which package you want to remove. For that, you can try listing down all the installed packages on your Linux Mint 20 system. Then from this list, you can easily figure out which package you want to remove completely. For listing down all the installed packages in Linux Mint 20, you have to execute the command shown below in the terminal:
The list of all the installed packages on our Linux Mint 20 system is shown in the following image:
From this list, you can conveniently pick any package that you want to remove completely from your Linux Mint 20 system. We will be removing the “tcpreplay” package from our Linux Mint 20 system in the steps shown below.
The first command that we will execute in this regard will simply remove a particular package without its configuration files. For this purpose, the following command is used:
Here, you can replace PackageName with the name of the respective package that you want to remove. In our case, the package that we wanted to remove was “tcpreplay”.
Once you execute this command, you will be prompted to confirm your action by typing “Y” and then hitting the Enter key, as shown in the image below. However, if you want the removal process to go smoothly, without asking for any confirmation, then you can use the “-y” flag after the “remove” command.
When the specified package is removed successfully, you will see the messages resembling the ones shown in the following image on your terminal:
When the specified package has been removed successfully from your Linux Mint 20 system, the next step is to delete its configuration files with the command shown below:
Here, you can replace PackageName with the name of the respective package which configuration files you want to remove. In our case, the package configuration files we wanted to remove was “tcpreplay”.
Once the configuration files of the specified package have been removed from your Linux Mint 20 system, you will see the messages resembling the ones shown in the following image on your terminal.
Finally, the last step is to clean up all the irrelevant and unused packages and dependencies from your Linux Mint 20 system that got installed along with the specified package. After the removal of the package, you will not need those packages and dependencies anymore. To get rid of them, you can execute the command shown below:
When this command successfully attempts to remove all the unused packages and dependencies from your Linux Mint 20 system, you will be able to say that your specified package has been completely removed.
Today’s guide walked you through the procedure of completely removing a package in Linux Mint 20. The same method can also be used on a Debian 10 or Ubuntu 20.04 system.
]]>Traceroute is a very useful utility that is used to track the path that a packet takes to reach a destination within a network. It can also act as a tool to report network congestion.
In today’s article, we will discuss different examples that will demonstrate the usage of Traceroute on Linux Mint 20.
For doing a Traceroute in Linux Mint 20, you first need to install the Traceroute utility with the following command:
Once this utility is installed on your Linux Mint 20 system, these messages will be displayed on the terminal:
Now when the Traceroute utility is successfully installed, you can perform the following examples by making use of this utility in Linux Mint 20.
The Traceroute command can be used to list down the number of hops between your source to a specified destination. All you have to do is to run this command in the manner shown below:
Here, you have to replace the DestinationURL with the exact URL of the web server that you want to reach. For this case, we wanted to reach google.com, as shown in the following image:
When you run this command, it will tell you the number of hops that will be accessed while reaching this destination. In our case, that number is 30, as shown in the image below:
When the specified hop count is completed, the Traceroute will also finish, as shown in the following image:
The example shown above can be modified slightly in the manner shown below:
Here, you have to replace the DestinationIP with the exact IP address of the webserver that you want to reach. We wanted to reach 8.8.8.8, which is the IP address of google.com, as shown in the following image:
Again, this command will tell you the number of hops that will be accessed while reaching this destination. In our case, that number is 30, as shown in the image below:
When the specified hop count is completed, the Traceroute will also finish, as shown in the following image:
The default number of hops to reach any destination is 30. However, you can reduce this number so that the Traceroute can finish as soon as the specified number of hops is reached. You can do this with the command shown below:
Here, you have to replace the DestinationURL with the exact URL of the web server that you want to reach and HopCount with the number of hops that you want to traverse. We wanted to reach google.com, and the number of hops is 10, as shown in the following image:
Now, you will notice that this command will show the maximum hop count as 10, as shown in the image below:
When the 10 hops are traversed, the Traceroute will finish, as shown in the following image:
You can even stop resolving the IP addresses to domain names during the Traceroute with the command shown below:
Here, you have to replace the DestinationURL with the exact URL of the web server that you want to reach. We wanted to reach google.com, as shown in the following image:
When you run this command, it will tell you the number of hops that will be accessed while reaching this destination. In our case, that number is 30, as shown in the image below:
When the specified hop count is completed, the Traceroute will finish, as shown in the following image:
The default timeout value for which Traceroute waits to receive responses from hops is 5 seconds. You can increase or decrease this limit in the manner shown below:
Here, you have to replace the DestinationURL with the exact URL of the web server that you want to reach and TimeoutLimit with a floating-point value of your choice. We wanted to reach google.com, and the TimeoutLimit is 3.0, as shown in the following image:
When you run this command, it will tell you the number of hops that will be accessed while reaching this destination. In our case, that number is 30, as shown in the image below:
When the specified hop count is completed, the Traceroute will finish, as shown in the following image:
For using Traceroute in Linux Mint 20, you can go through the examples shared with you in this article. They will help you a lot in understanding the correct usage of this utility in Linux.
]]>Today, we will show how you can install python-pip packages on the Debian 10 system through the command-line application. All commands of this article have been implemented on the Debian 10 buster environment. Almost all these steps can also be used on Ubuntu and Linux Mint operating environments.
Python has two different versions, python2 and 3. However, you need to separately install python pip-tools for both python versions. Open the terminal from the application menu and then start the installation of a python-pip using the following method:
The following steps are included while you install the pip tool for python2 on Debian 10:
Step 1: Update system packages
Run the following command to update the system package list:
Step 2: Install Pip
First, ensure the installation of python2 on your system by running the following command:
The installed version will be displayed on the terminal. Now, type the following command to install the pip tool for Python2:
The above command will automatically install pip with all its dependencies on your system.
Step 3: Check pip version
Once all packages are installed, issue the following command to check the installed version of the pip tool for python2:
The installed version will be displayed on the terminal after running the above command.
Similarly, the following command you need to implement on the terminal to install pip-tools for python 3 is shown below:
Step 1: Update the Packages list by running the following command:
Step 2: Install pip along with all dependencies for python 3 by executing the following command:
Step 3: verify the pip installation using the following command:
We will also explore the use of pip in this article. By using pip, the user can install python packages from PyPI, local projects, version control, and other project distributions. Usually, the pip would be used inside the virtual environment. Python virtual environment allows you to install python packages inside an isolated space without disturbing the other python project modules.
Let’s discuss some useful pip commands that are mentioned below.
With pip, you can list all packages, as follows:
You can search for a package through pip, using the following command:
With pip, you can install a python package from PyPI, as follows:
For example, we want to install a python package ‘scrapy’ through pip. So, the following command is what you need to enter on the terminal:
You can also display the package information using the following commands:
The command below allows you to remove or uninstall a package through pip3:
To uninstall the scrapy package, run the below-mentioned command:
That’s all about the basic commands of the pip tool. To explore more commands and options about pip, run the following command on the terminal:
All pip commands and option will be displayed on the terminal as follows:
In this article, we have learned how to install the python-pip tool for python 2 and python 3 on the Debian 10 buster system. We have executed various commands to understand the use of pip. Moreover, we have also explained the use of the pip tool.
]]>Note: We will be explaining the commands and procedure on Debian 10 (Buster) system. You should
Firstly, update the system repository index as follows:
Enter the sudo password.
Now install Apache using the below command in Terminal:
We will need to install MariaDB as a database backend for SOGo. Execute the below command to install the MariaDB server on your system:
Now you might be prompted with the Y/n choice to carry on the installation of MariaDB. Press Y to proceed.
Now execute the below command in Terminal to improve the security of your MariaDB installation:
When asked to enter the current password for root, just press Enter. After that, you will be asked to set a new root password so that no one can login as a MariaDB root user without authentication. Press y if you want to set a new password for MariaDB root. Then enter the password twice.
Now press y for all subsequent questions also shown highlighted in the following screenshot.
Sogo can be installed easily via an apt command-line utility. However, we will first need to add its repository to our system’s local repositories. Follow the below steps to do so:
To install SOGo in your Debian system, first, add the SOGo repository to the sources.list file. In the Terminal, execute the below command to edit the sources.list file:
Now to add the SOGo repository, add the below line at the end of the file:
Now save and close the sources.list file.
Add key for SOGo repository using the following command:
After adding a new repository, you will need to update the local repository index. Use the below command to do so:
Once the update is completed, you can install SOGo as follows:
Now you might be prompted with Y/n (yes/no) option for proceeding with the installation. Press Y to proceed.
Once SOGo is installed, start its service using the below command:
To automatically start the SOGo service at boot, execute the below command in Terminal:
Now start MySQL using the below command in Terminal:
Now we will create a database and a user. Issue the following to create a database “sogo”:
Now create a user named “sogo” with the password “password”.
First, connect to the database to run subsequent commands:
Then create a database table to hold user information.
Now add an entry in the table for a user:
Now we will have to enable some of the Apache modules. Execute the below command in Terminal to do so:
After the modules are enabled, restart apache as follows:
Now we will configure SOGo to make it use the MySQL database that we have created in previous steps. We will do configurations under the user “sogo”. For this purpose, issue the following command to change the user:
Then execute the below commands for SOGo configurations. Make sure to replace the Country/Region with your timezone, and domain.com with your actual domain. Also, replace password with the password you have set during database creation.
Now restart SOGo service using the below command:
Now modify the SOGo configuration file for apache to use localhost with no SSL. You can find the SOGo configuration file for Apache at /etc/apache2/conf.d/SOGo.conf.
Edit the file using the below command:
Now find the following lines and replace 443 with 80 and yourhostname with localhost.
It should now look like this:
Then to check for any configuration errors, execute the below command in Terminal:
If you receive the following output, it means configurations are fine.
Now restart the Apache server as follows to apply the configuration changes:
Now access the following address in any web browser from the same system on which SOGO is installed:
You should now see the SOGo login page where you can log in using your admin username and password, which are ‘sim’ and ‘sim123’.
In case you no longer need SOGo Groupwarw, you can easily remove it from your system. Execute the below command in Terminal to uninstall SOGo from your Debian system:
When you install SOGo, some dependencies are also installed with it. To remove those dependencies too, execute the below command in Terminal:
Alternatively, if you want to uninstall SOGo along with all configuration files, execute the below command in Terminal:
Then to remove the dependencies too, execute the below command in Terminal:
That is all there is to it! In this post, you have learned how to install and configure SOGo groupware on Debian OS. For advanced configurations, visit SOGo official documentation. ]]>
Diaspora is a privacy-aware distributed and an open-source, decentralized social network. It comprises a collection of independently owned and deployed nodes that are incorporated to create the social network. This article will show the installation procedure of Diaspora distributed social network on the Debian 10 system.
All commands should run under administrative privileges.
Follow the following procedure to install the diaspora decentralized social media on Debian 10:
Install the required dependencies for diaspora installation such as Redis, PostgreSQL, and Nginx web server.
Enable and start the Redis and PostgreSQL services after completing the installation of required packages. Add all of them to the Debian system boot by using the following commands:
Change the f=default ‘Postgres’ user password and create a PostgreSQL user for the diaspora.
By using the ‘psql’ command, Log in to the PostgreSQL shell.
Now, change the ‘postgres’ default user password by using the following command:
Enter the new password and again re-enter the password for confirmation.
Create a new user named ‘diaspora’ who have certain privileges ‘CREATEDB’:
Type ‘exit’ on the terminal to leave the PostgreSQL shell window.
Once the PostgreSQL user for diaspora is created, you will create a system user named ‘diaspora’ and then include it into the sudo group.
By using the following commands, create a new system user named ‘diaspora’ and assign its password:
Add the above user ‘diaspora’ into the sudo group by running the below-given command:
Now, this user can run all administrative sudo commands on this system.
Log in as a diaspora user on your system by executing the following command:
Enter the password that you have been set above for a diaspora system user.
Now, start the installation of Ruby Version Manager (RVM) and install Ruby packages for the ‘diaspora’ user.
Include the RVM GPG key by running the following command:
Next, install the RVM by executing the following command:
Once the RVM installation is completed, load the script on your system by using the following command:
Now, using the rvm commands, you can install ruby packages on your system. So, use the following command to install Ruby 2.6:
Once the installation of Ruby is completed, check the installed version by executing the following command:
Download the source code of diaspora by using the following git clone command:
Navigate into the diaspora directory and copy or duplicate the database configuration ‘database.yml’ and the diaspora configuration ‘diaspora.yml’.
Open the configuration files in the most friendly nano text editor and edit them.
For database configuration:
Edit the PostgreSQL section with your username and password as follows:
Press ‘Ctrl + O’ to save changes and then press ‘Ctrl +X’ to exit from the nano.
Now, edit the ‘config/diaspora.yml’ file.
Save the configuration exit from the current displaying window by pressing ‘Ctrl+O’.
Now, you need to install the gem and required ruby libraries for the diaspora.
After that, you need to migrate the database by executing the following command:
Combine all rails assets as follows:
Once the diaspora installation is completed, you will set up the Diaspora as a systemd service.
Navigate into ‘/etc/systemd/system’ directory and create a new service file using the nano editor as follows:
Paste the following lines in this file:
Save and exit from the nano editor.
Now, create a new service file named ‘diaspora-web.service’ using the nano command:
Paste the following code in it:
Save and exit from the nano.
Create a new file for monitoring services with named ‘diaspora-sidekiq.service’ using the nano command as follows:
Paste the following configuration code in it:
Save and exit from the current window.
Now, reload the systemd services and enable the following diaspora services on your system:
Now, start all services and get status by using the following commands:
Enter the password and continue the process.
From the above results, you can verify that the Diaspora is running as a systemd service. The basic configuration for Diaspora has been completed now.
To make your domain more secure, generate the SSL Letsencrypt certificate. For this purpose, install the certbot using the following command:
Generate the SSL letsencrypt certificate by replacing the mentioned domain name with your domain as follows:
You can find your SSL certificate in the ‘/etc/letsencrypt/live/yourdomain.com/’ directory in your system. Now, install Nginx as follows:
Configure diaspora with Nginx.
Once you have configured all diaspora services, add your domain name to your browser’s address bar.
That’s all about the Diaspora installation on your Debian 10 system. By using the above steps, you can easily install the Diaspora Decentralized Social Media on your Debian system. Thanks.
]]>This article provides a guide for installing JetBrains IntelliJ IDE on your Debian 10 system.
To install JetBrains IntelliJ IDE on your Debian 10 system, you will need privileged access to run the sudo command or log in as a root user.
IntelliJ IDEA can be installed in Debian 10 using either of the following two methods:
Using this method, you can install IntelliJ IDEA through the snap package manager on your system. If it is not already installed on your system, issue the following command to install snapd:
Enter the following command to start the snapd service on your system:
Use the following command to install the IntelliJ IDEA community edition through the snap.
Depending upon your Internet speed, the installation will take some time to complete.
You can launch the IntelliJ IDEA application via the application search bar. Click the Activities section present in the top-left corner of your Debian 10 system, and type ‘IntelliJ IDEA’ in the search bar. The IntelliJ IDEA icon will appear in the search result. Click the icon to launch this program.
Select the checkbox to accept the terms of the User Agreement and click Continue to proceed.
In the setup wizard, you will decide whether to enable the data sharing policy with anonymous users.
In the next step, you will see that IntelliJ IDEA has been launched on your system.
Some plugins are enabled by default. Here, you can disable the unnecessary tools or plugins, according to your needs and requirements.
To uninstall the IntelliJ IDEA from your Debian system using the snap package manager, issue the following command:
You can download IntelliJ IDEA from its official package repository using the wget command. Issue the following command to download the latest release of IntelliJ IDEA:
The downloaded file will save in the compressed .tar format. To extract the .tar file, issue the following command:
Now, create a new directory and add some permissions to it. Navigate to the directory, and run the following command:
After entering the above command, you will see the following welcome screen appear:
This article showed you how to install IntelliJ IDEA installation on your Debian 10 system. We showed you how to install this application using two different methods, including the snap package and the official package. Please give us your opinion in case of any problems.
]]>GitScrum is a free, open-source task management tool that you can use to manage projects with ease. GitScrum uses the famous Git platform and Scrum software methodology to allow for more effective team management. This software helps users to track time consumed to perform various tasks and keep a record of projects that users are working on. Users can create multiple projects, keep a record of projects assigned to different users, and even chat in real-time. This article shows you how to install GitScrum in Debian 10.
To install GitScrum in Debian 10, first, open the terminal window using the Ctrl+Alt+T shortcut. Then, update the system to the latest available version by issuing the following command:
After that, upgrade the apt package using the command given below:
Now that the system and apt package have been updated, we will begin the installation process.
First, you will need to install an Apache webserver, MariaDB server, and PHP, along with the extensions that are needed for the LAMP server. To install the LAMP server, enter the following command:
Once you have installed the server, open the php.ini file to make some edits:
In the file, change the following values:
Save the modified file using the Ctrl+O shortcut.
Now, start the Apache and MariaDB service. Issue the following command in the terminal to start Apache:
If the system asks for authentication, simply enter the password and click the Authenticate button.
Now, start the MariaDB service using the following command:
Complete the authentication process.
Enable apache to start after system reboot using the command below:
Authenticate the system.
After that, an output will appear that is similar to this one:
Enable MariaDB to start after system reboot using the following command:
Then, authenticate the system.
The MariaDB root password is configured initially, so, you will be required to set a password. Log in to the MariaDB shell using the following command:
After you hit Enter, the output will appear as follows:
Set up the password using the following command:
Provide values for the root user and localhost, then enter the password you want to set.
After that, create the database and a user for GitScrum using the command provided below:
Next, create the GitScrum user using the following command:
The next step is to grant all the rights and privileges of the GitScrum database using the following:
Flush the privileges using the command given below:
And then, exit by issuing the following:
Composer is the supporting manager for the PHP package that is a must-have for our project. Download the composer file using the following command:
To confirm the download and data integrity of the file, issue the command given below:
The phrase Installer Verified in the output shows that everything is running correctly.
To install the composer, run the following command:
After some time, you will see an output like this one:
First, change the directory to your Apache root directory. Then, you can download GitScrum.
To download GitScrum, use the following command:
When you press Enter, the installation will begin. After some time, you will see an output like this:
Update and change the directory to the downloaded directory. Next, update GitScrum with the following command:
Once you are in the directory, enter:
To integrate GitScrum with Github, you will have to create an app in Github. Access this link, and you will see the following screen appear:
Log in to your account or sign up for a new one. Then, you will see the screen to Register a new OAuth application. Provide the Application name, Homepage URL (which must be running and responding to server requests), and Application callback URL.
Then, click Register Application. After that, you will see the following screen appear:
The next step is to use the Client ID and Client Secret from the application registration page and paste them into the .env file. Access the file using the following command:
Here, provide the Client ID and Client Secret, then close the file using the Ctrl+O shortcut.
Run the following command to migrate the database:
Then, enter the following command:
After that, change the permissions using the command given below:
The permissions will begin to change; once they are done, update the other set of permissions using the following command:
To configure the Apache virtual host for GitScrum, access the file using the following command:
Add the following lines of code to the file. Replace ServerAdmin and ServerName with the server you want to configure it with.
Save the file. To check the Apache configuration, use the following command:
The syntax OK means that the output is correct.
Enable the virtual host and Apache rewrite module using the command given below:
Now, rewrite the module using the following command:
Restart the Apache webserver/service to reflect these changes:
Here, provide the authentication to restart the service:
To check the status of the Apache service, use the following command:
The output shows that the server is running properly.
The last step is to access the GitScrum website based on the URL you used in the implementation process. Then, you will authorize your account to use GitScrum in Debian 10.
This article showed you how to install and configure GitScrum on a Debian 10 server. We began with the installation of the LAMP server, then installed Composer and GitScrum, and finally performed the necessary configurations. Feel free to use this method to install and configure GitScrum using Apache and other supporting packages on your Debian 10 server.
]]>To configure the LDAP client on a Debian 10 machine, perform the following fifteen steps. The configurations may vary according to your unique requirements and usage of the LDAP client. The following steps will guide you through some of the more generic LDAP client configurations.
First, install the LDAP client and all the packages necessary for LDAP to work properly in Debian 10 by issuing the command below:
As soon as this command starts its execution, you will be able to see an interactive prompt, in which you can perform the various LDAP configurations explained in the following steps.
Next, set up the URI for your LDAP server. The server format is also shown in the following image. Then, press the Enter key to proceed to the next configuration.
Now, you will set up a distinct name for the LDAP search base. An example is shown in the image below. Then, press the Enter key to go to the next screen.
There are different LDAP protocol versions available to use; however, it is always recommended to use the latest available version, which, in this case, is version 3. After selecting this version, press the Enter key to confirm your choice, as shown in the following image:
Now, specify an account that will be used as the LDAP root user account, after which you will press the Enter key.
Once the LDAP root account has been selected, you will need to set up a password for this account. Type in a password of your choice and then press the Enter key to go to the next screen.
For the basic LDAP services to function properly, it is recommended to remove the default LDAP entries from the configuration file. This can be done simply by pressing the Enter key or the OK button in the prompt, as shown in the image below:
Now, allow the LDAP admin account to behave like a local root account by selecting the Yes option from the dialogue box, as shown in the following image:
You can disable the login for the LDAP database by selecting the No option from the dialogue box, as shown in the image below. This will remove the need for authentication at the time of retrieving the LDAP entries.
Now, enter the name of the LDAP root account that you set up earlier. After that, press the Enter key to continue.
Finally, enter the password for the LDAP root account or administrative account that you set up in Step 6, then press the Enter key, as shown in the image below:
After doing this, the command that you executed in Step 1 will finish its execution while rendering the following messages in your Debian 10 terminal:
Next, configure your Debian 10 system to use LDAP for authentication. To do so, update the PAM configurations by running the following command:
This command will display a dialogue box on your screen from which you can select any desired profiles that you want to be enabled. It is recommended to go with the default profile. Then, to continue, press the Enter key.
You can also choose to allow the automatic creation of the user’s Home directory. To do so, you will edit the Common Session PAM file. This file can be accessed by using the following command:
When this file opens with the nano editor, enter the following line of code at the end of this file:
After adding this line, press Ctrl + X to save your file and exit the nano editor.
Restart the name service cache daemon (nscd) so that it can read the new configurations. The ncsd can be restarted with the following command:
Restarting this service will not display any messages in the terminal.
Finally, re-enable the name service cache daemon (nscd) with the command below:
This command will display the following messages in the terminal upon successful execution:
This step brings us to the end of the LDAP client configurations in a Debian 10 system.
If you no longer feel like using the LDAP client for Debian 10, you can conveniently remove it, as well as its configuration files, with the command below:
When this process is completed, the terminal will show the following messages:
Finally, to remove any extra packages that were installed with the LDAP client, issue the following command:
This command will remove all the packages that are no longer needed after removing the LDAP client from Debian 10.
This article explained how to configure the LDAP client on a Debian 10 system. These configurations are extremely easy to perform and will not take more than 10 minutes to do. Finally, we also showed you how to uninstall the LDAP client from your Debian 10 machine.
]]>For installing the NIS server on a Debian 10 machine, you will have to perform three basic steps:
First, you have to update your system with the following command:
After successfully updating your system, you will receive the messages shown in the image below:
Now, we can install the NIS server with the following command:
During the NIS server’s installation, you will be asked to set up the domain name for it. You can have any name of your choice, or you can either go with the default one and press the Enter key as we did.
After setting up the domain name for your NIS server, you will notice that the installation will finish within a few seconds while displaying the messages shown in the image below on the terminal:
After installing the NIS server on Debian 10, we can now go on with its configuration steps as follows:
First, we need to start the “rpcbind” service on Debian 10 with the command shown below:
Now, we will check whether the “rpcbind” service has been successfully started or not by running the following command:
You can easily see the status of the “rpcbind” service on our Debian 10 system highlighted in the image below:
After that, we will start the “ypserv” service on Debian 10 with the following command:
Now, we will check whether the “ypserv” service has been successfully started or not by running the command shown below:
You can easily see the status of the “ypserv” service on our Debian 10 system highlighted in the following image:
Now we will set the NIS as the master server on Debian 10. For that, we will access the /etc/default/nis file with the command shown below:
This file is shown in the following image:
We will then assign the value “master” to the “NISSERVER” variable, as highlighted in the image shown below. After that, we can save and close our file.
Now, we will set up the IP range to allow access to our NIS server. For that, we will access the /etc/ypserv.securenets file with the following command:
This file is shown in the image below:
Now, we will comment out the line shown in the following image:
Finally, we will add the allowable IP range to the end of this file, as shown in the image below. After that, we can save and close our file.
Now, we can add any desired IP address for our NIS server. For that, we have to access the /etc/hosts file with the command shown below:
We need to locate our NIS server’s name in this file and then assign any desired IP address or even go with the default one as highlighted in the following image. After that, we can save and close this file.
After making all these configurations, we will restart the NIS server with the following command:
Finally, we will update the NIS database with the command shown below:
At this point, we can add any hosts to this database that will be running the NIS servers. Once you have added the hostnames, you can press Ctrl+D.
After that, you have to enter “y” and then press the Enter key as highlighted in the following image:
Once the NIS database is updated, you will get a confirmation message that the selected system has been set up as a NIS master server, as highlighted in the image shown below:
We can also remove the NIS server from our Debian 10 system any time by going through the following two steps:
First, we will run the command shown below to remove the NIS server and its configuration files:
Finally, we will also remove all the unused packages and dependencies with the following command:
This article focused on the methods of installing and configuring the NIS server on Debian 10. The methods might look lengthy, but it only took us a few minutes to complete these configurations. Finally, we wrapped up this article with the removal method of NIS from Debian 10.
]]>This tutorial will be of great help to all Debian users who wish to install Swift on their computers. We will be using Debian 10, but even if you do not have the latest version of Debian installed on your system, feel free to follow the same procedure on your computer.
To install Swift in Debian, open the terminal using the Ctrl + Alt + T shortcut, then follow the
steps listed below:
To update your packages, run the following command in the terminal window:
The above command will begin to update the packages of your Debian server.
To install all the dependencies required to install Swift on a Debian 10 server, issue the following command in the terminal window:
After some time, the system will prompt you to ask you for permission to continue. Press Y to confirm and then press the Enter key to continue.
Using this method, users can install and update all of the required dependencies on their servers.
The next step is to install Swift on the Debian server. Because there is no pre-defined method for installing Swift on a Debian system, we use the following link to install Swift on our Ubuntu 18.04 system. The latest version available at the time of writing this article is 5.1.3. If there is another version available when you are implementing this method, then feel free to opt for that version by using the following command to get the latest archive version of Swift:
After that, the download will be completed, and an archive file will be saved.
Once the download of the Swift package has been completed, extract this newly downloaded archive file. Execute the following command in the terminal window:
Next, move this newly extracted folder to the opt directory using the following command:
You must add the Swift installation path into the PATH environment variable of your system. To do so, issue the following command:
After that, issue the following:
This marks an end to the process of installing and configuring Swift on the Debian 10 server.
To verify the installation of Swift, issue the following command in the terminal window:
The output will display the version of Swift installed on your server. This output indicates a successful installation process.
This article showed you a step-by-step method for installing Swift on a Debian 10 server. After installing Swift, you can also verify the installation using the last step in this tutorial.
]]>This article will give you a complete description of the R programming language installation on the Debian 10 system.
You should have the following prerequisites for R language installation:
Open the terminal command line window. To do this, click the top section ‘Activities’ and type the ‘Terminal’ keyword in the search bar. Click on the ‘Terminal’ icon as follows:
The installation of R is completed into the following different steps, which we are mentioned below in detail:
The R package, which installation from the Debian repository, is usually outdated. Therefore, we will install the latest stable version of R from another repository maintained by CRAN.
Use the following command to install all necessary packages which are required to add a new CRAN repository:
Execute the below-mentioned command to enable the CRAN repository and import the following CRAN GPG key to your system:
Update the packages by running the below-mentioned command:
Use the below command on the terminal to install R on your system as follows:
Now, check the R language installation on your Debian 10 system by using the below-given command:
You will notice that the latest stable version of R is printed on the terminal:
You can find a wide range of R packages through the CRAN, which stands for Comprehensive R Archive Network that is the main reason R language is becoming popular day by day.
Install the following package that contains the required tools for compiling or building R packages:
To install any R package, first, you need to open the R console environment on the terminal by typing the following command with sudo or root privileges:
Now, you can install R packages on your system. Let’s take an example. You want to install the R package ‘Stringr’ for string manipulation. For that purpose, enter the following command in the R console as follows:
Installation of the ‘Stringr’ package will complete in a few seconds. After that, you will load the relevant library by using the following command:
In this program, we will create a character vector with name tutorial as follows:
Now, use the following command to print this on the terminal:
To find the length of the string, type the command as follows:
The following vector length will display on the screen:
You can also install more R packages from CRAN by using the following command:
You have learned how to install R and run R programs on the Debian 10 environment. We have provided in this article how to install R packages by using a simple command from CRAN. You can easily Install any R packages and load its associative library on your system. Now, you can easily install and use R on your Debian system.
]]>For installing SysStat to enable system monitoring on Debian 10, you have to go through the first five steps listed below, whereas the sixth step represents an example use case of SysStat in Debian 10.
The SysStat utility in Debian 10 can be installed by running the following command:
As soon as the SysStat utility is successfully installed on your Debian 10 system, these messages will be displayed on the terminal:
Now you need to tweak the SysStat file a little to enable system monitoring on Debian 10. This can be done by accessing the SysStat file in the manner shown below:
The default SysStat file is shown in the following image:
Now we will enable system monitoring in this file by setting the value of the variable “ENABLED” to “true” instead of “false,” as highlighted in the image shown below:
After modifying the SysStat file, we will simply exit the nano editor after saving the file.
Now we need to re-enable the SysStat service in Debian 10 with the following command:
The successful execution of the above-mentioned command will display the messages shown in the image below:
Once the SysStat service is enabled on Debian 10, we need to restart it with the following command:
The error-free execution of this command will display the messages shown in the image below:
We can also check the status of the SysStat service in Debian 10 with the following command:
The status of the sysstat service on our Debian 10 system is shown in the image below:
By now, the SysStat service will be successfully running on your Debian 10 system. We have shared a sample scenario of viewing the CPU statistics with the SysStat utility in Debian 10 over here. However, the SysStat utility can also be used for viewing other useful system statistics. The CPU statistics can be viewed by running the following command:
The CPU statistics of our Debian 10 system are shown in the image below:
Whenever you want to remove the SysStat utility from your Debian 10 system along with all of its dependencies and configuration files, you can run the following command:
Once all the dependencies and packages that got installed along with the SysStat utility and its configuration files will be removed successfully from your Debian 10 system, you will see these messages on your terminal:
In this article, we talked about installing the SysStat utility to enable system monitoring on Debian 10. We also shared with you an example scenario of using this utility. Finally, we concluded this article by sharing with you the method of removing this utility from your Debian 10 system.
]]>