Installing network printers under Linux

29/12/2020
Chưa phân loại
In a previous tutorial we published on LinuxHint how to join a Windows network with your Debian/Ubuntu based linux device.  This tutorial will explain how to add printers from the network on Debian/Ubuntu based Linux Distributions only since we’ll use the system settings and cups (apt). This article can be considered as the continuation of the mentioned above since we’ll use Samba, below i’ll briefly repeat the steps to join a Windows network, for explanation on each step please check the previous article.

Joining the network:

Step 1. Check for the IP range and Gateway from a Windows device by running “ipconfig” (the DOS command equivalent to ifconfig)

I apologize but the network belongs to a Latin American company and all workstation are in Spanish. Where “Direcciòn” means “address” and “Puerta de enlace determinada” means “gateway”.

Step 2.
Then we assign an ip address and the gateway (ping IP addresses to find a free one). Run:

ifconfig enp2s0 x.x.x.x
route add default gw x.x.x.x

Replace enp2s0 for your network device and write the proper IP addresses instead.

Edit the file nano /etc/samba/smb.conf adding the correct Workgroup. Run:

nano /etc/samba/smb.conf

Installing a printer on Debian/Ubuntu Linux based distributions (graphical way):

On  Debian/Ubuntu Linux based distribution click on Settings>Printers

On the emerging window click on Add Printer (probably you’ll need to click the Unlock button and complete your root credentials before).


Note: On some Debian/Ubuntu versions the icon may be called “Network Printers

Your device will scan for available printers and will list them

Select your printing device and click on “Add”, your printer will be listed and ready to print

Installing a printer on Debian/Ubuntu Linux based distributions (cups):

Run as root or using sudo

apt install cups cups-client cups-filters system-config-printer

And press Y when asked.

Start the cups service by running “service cups start” or “/etc/init.d/cups start

Cups has an intuitive and user friendly web interface to manage printers, open in your browser http://localhost:631/admin

Click on “Add Printer” , it will ask for your root credentials, fill it and cups will list the available printers

Select your devices and press “Continue”, as you see cups allows to install both local and network printers. Next fill the requested information (descriptive information) and press Continue.

Next, select your printer type and press “Continue

Select your printer model and press on Add Printer.

Now your printer is added, and you can determine the default settings for printing.

Now if you open your Open office and click on File>Print you’ll see the printers you just installed.

I hope this tutorial helped you to deal with printers under Linux, keep following LinuxHInt for more tips and resources on Linux.

ONET IDC thành lập vào năm 2012, là công ty chuyên nghiệp tại Việt Nam trong lĩnh vực cung cấp dịch vụ Hosting, VPS, máy chủ vật lý, dịch vụ Firewall Anti DDoS, SSL… Với 10 năm xây dựng và phát triển, ứng dụng nhiều công nghệ hiện đại, ONET IDC đã giúp hàng ngàn khách hàng tin tưởng lựa chọn, mang lại sự ổn định tuyệt đối cho website của khách hàng để thúc đẩy việc kinh doanh đạt được hiệu quả và thành công.
Bài viết liên quan

Arch Linux Install By Example

Arch Linux is a rolling release Linux distribution. What that means is, you get the most up to date packages on Arch Linux....
28/12/2020

How to join a Windows network with your Linux device

In this tutorial you’ll learn how join a wired Windows based network with your Linux device. The network used for this...
29/12/2020

Installing Node.js on Debian 10

Node.js is a server side JavaScript runtime. Node.js is open source and cross platform. Node.js runs on Linux, Windows...
29/12/2020
Bài Viết

Bài Viết Mới Cập Nhật

VPS treo game là gì? Thuê VPS treo game giá rẻ, không lo giật lag
02/06/2025

 BitBrowser – Best Anti-Detect Browser!
26/05/2025

Dịch Vụ Xây Dựng Hệ Thống Peering Với Internet Exchange (IXP)
04/04/2025

Dịch Vụ Triển Khai VPN Site-to-Site & Remote Access
04/04/2025

Dịch Vụ Thiết Lập Hệ Thống Tường Lửa (Firewall)
04/04/2025