How To Install p910nd on Ubuntu 22.04

In this tutorial we learn how to install p910nd on Ubuntu 22.04. p910nd is small printer daemon intended for diskless workstations

Introduction

In this tutorial we learn how to install p910nd on Ubuntu 22.04.

What is p910nd

p910nd is:

p910nd is a small daemon that copies any data received on the port it is listening on to the corresponding printer port.

It is primarily intended for diskless Linux hosts running as printer drivers but there is no reason why it could not be used on diskful hosts.

Port 9100 is copied to /dev/lp0, 9101 to /dev/lp1 and 9102 to /dev/lp2. The default is port 9100 to /dev/lp0.

There are three methods to install p910nd on Ubuntu 22.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 p910nd Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install p910nd

Install p910nd Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install p910nd using apt by running the following command:

sudo apt -y install p910nd

Install p910nd 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 p910nd using aptitude by running the following command:

sudo aptitude -y install p910nd

How To Uninstall p910nd on Ubuntu 22.04

To uninstall only the p910nd package we can use the following command:

sudo apt-get remove p910nd

Uninstall p910nd And Its Dependencies

To uninstall p910nd and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove p910nd

Remove p910nd Configurations and Data

To remove p910nd configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge p910nd

Remove p910nd configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge p910nd

References

Summary

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