How To Install conserver-server on Ubuntu 18.04

In this tutorial we learn how to install conserver-server on Ubuntu 18.04. conserver-server is connect multiple user to a serial console with logging

Introduction

In this tutorial we learn how to install conserver-server on Ubuntu 18.04.

What is conserver-server

conserver-server is:

Conserver is an application that allows multiple users to watch a serial console at the same time. It can log the data, allows users to take write-access of a console (one at a time), and has a variety of bells and whistles to accentuate that basic functionality. The idea is that conserver will log all your serial traffic so you can go back and review why something crashed, look at changes (if done on the console), or tie the console logs into a monitoring system (just watch the logfiles it creates). With multi-user capabilities you can work on equipment with others, mentor, train, etc. It also does all that client-server stuff so that, assuming you have a network connection, you can interact with any of the equipment from home or wherever.

This is the server part of the conserver system.

There are three methods to install conserver-server on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install conserver-server Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install conserver-server using apt-get by running the following command:

sudo apt-get -y install conserver-server

Install conserver-server Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install conserver-server using apt by running the following command:

sudo apt -y install conserver-server

Install conserver-server Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install conserver-server using aptitude by running the following command:

sudo aptitude -y install conserver-server

How To Uninstall conserver-server on Ubuntu 18.04

To uninstall only the conserver-server package we can use the following command:

sudo apt-get remove conserver-server

Uninstall conserver-server And Its Dependencies

To uninstall conserver-server and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove conserver-server

Remove conserver-server Configurations and Data

To remove conserver-server configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge conserver-server

Remove conserver-server configuration, data, and all of its dependencies

We can use the following command to remove conserver-server configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge conserver-server

References

Summary

In this tutorial we learn how to install conserver-server package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.