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

Franz Messaging App for WhatsApp, Slack, WeChat, Telegram and more

Franz Messaging app is one of my top best messaging apps for linux platform. It’s a free, simple to use chat app that...
28/12/2020

7 tips on how to secure your Linux Desktop

Arе уоu running Linux juѕt bесаuѕе уоu think it’ѕ ѕаfеr thаn Windоwѕ? Think аgаin. Sесuritу...
28/12/2020

Users and groups administrations from the command line in Linux

Linux offers us a lot of useful tools to keep our environment’s safety and order, assigning or denying permissions to...
29/12/2020
Bài Viết

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

Tìm Hiểu Về Thuê Proxy US – Lợi Ích và Cách Sử Dụng Hiệu Quả
11/12/2024

Mua Proxy V6 Nuôi Facebook Spam Hiệu Quả Tại Onetcomvn
03/06/2024

Hướng dẫn cách sử dụng ProxyDroid để duyệt web ẩn danh
03/06/2024

Mua proxy Onet uy tín tại Onet.com.vn
03/06/2024

Thuê mua IPv4 giá rẻ, tốc độ nhanh, uy tín #1
28/05/2024