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

How to Install GNOME 3 Extensions on Ubuntu 18.04 LTS

Ubuntu 18.04 LTS now by default uses the GNOME 3 desktop environment. The GNOME 3 desktop environment is nice looking,...
28/12/2020

Bash wait for keypress

`read` command is used to take user input in a bash script. We can take input in bash script by using various types of...
29/12/2020

Python BeautifulSoup Tutorial For Beginners

Web scraping is of great importance in today‘s world. Everybody needs data, from different sources including web pages....
28/12/2020
Bài Viết

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

mua Proxy riêng ở đâu, và nó đem lại lợi ích gì cho người sử dụng
22/11/2022

Hướng dẫn sử dụng Proxy Helper Fakeip khi thuê proxy
21/11/2022

PROXY NUÔI TÀI KHOẢN FACEBOOK – KINH NGHIỆM FAKE IP – THUÊ PROXY GIÁ RẺ
14/11/2022

Mua Proxy Nuôi Zalo Giá Rẻ Tại Onet.com.vn
14/11/2022

BẢNG GIÁ MUA PROXY VIỆT NAM và PROXY US Onet.com.vn
14/11/2022