Upload
samnang-leap
View
21
Download
0
Embed Size (px)
Citation preview
0
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
Managing Printer On Linux
Network Diagram
Class: SNA2017-B
1
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
Table of Contents:
1) Assign IP address and Hostname:..................................................................22) Install Service “cups”.....................................................................................33) Add printer by yast with the IP address of printer (192.168.42.2).................44) Test the result on web browser which printer that we created:......................65) Add a printer via web-interface with:.............................................................76) Allow access to service cups by IP address of print server..........................107) Allow any host can access to cups service through IP print-server:............118) Allow client can connect print by:...............................................................149) Only print-server and client with IP address 192.168.42.254/24 can access to admin page:.....................................................................................................1710) Allow user root and samnang.leap can edit configuration and save:........1811) Only User “Root, Owner and you” can cancel print job:..........................2112) Managing on the printer HPLaser5200 with the following below:...........22
Class: SNA2017-B
2
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
1) Assign IP address and Hostname:o IP address (192.168.42.1) o Hostname (print-server)
=> Type yast lan >> Add IP and Hostname
=> Check IP address
Class: SNA2017-B
3
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Check Hostname
2) Install Service “cups”
=> yast –I cups to install service cups
=> It is installing
=> /etc/init.d/cups start to start service & rccups restart to restart service
3) Add printer by yast with the IP address of printer (192.168.42.2)
Class: SNA2017-B
4
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Press key Alt + A to add printer
=> Press key Alt + W
Class: SNA2017-B
5
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Choose TCP Port >> Add IP address of printer (192.168.42.2) & Choose name of printer (HP)
=> Select driver of printer (HP LaserJet 5200LX Postscript) and rename printer name (HPLaser5200 >> Press key Alt + O
=> This is the printer that we already added (HPLaser5200)
Class: SNA2017-B
6
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
4) Test the result on web browser which printer that we created:
=> Open firefox and type localhost:631 to access to printer and see the printer that we added
(HPLaser5200)
Class: SNA2017-B
7
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
5) Add a printer via web-interface with:o Name: HPLaser4100o Driver HP Laser Jet 4100
=> Access to printer via localhost:631 >> Select tab Administration >> Add printer name >> Click Continue
=> Select printer (HP Printer) >> Click Continue
Class: SNA2017-B
8
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Add URL for printer (http://localhost:631/printers/HPLaser4100) >> Click Continue
=> Click on browse to find file driver
Class: SNA2017-B
9
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Go to usr > share > cups > model > HP >> select driver of printer (LaserJet_4100)
=> The result is successfully added
6) Allow access to service cups by IP address of print server
Class: SNA2017-B
10
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Backup file cupsd.conf >> vim cupsd.conf
=> Add listen with 192.168.42.1; Allow with any IP can access (192.168.42.*) & Allow restrict access to the admin pages (Allow 192.168.42.1)
=> Now, accessing by IP of print-server is succeeded.
Class: SNA2017-B
11
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
7) Allow any host can access to cups service through IP print-server:
=> vim /etc/cupsd.conf
Class: SNA2017-B
12
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Assign IP address to windows 7 (192.168.42.10/24)
=> Ping to print-server
Class: SNA2017-B
13
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Access by IP address on windows 7 client
8) Allow client can connect print by: A. Adding printer via control panel
=> Run > control panel >> click on Devices and Printers
=> Click on Add printer
Class: SNA2017-B
14
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Copy URL of printer and paste to Browse >> click Next
=> Choose printer >> Click OK
Class: SNA2017-B
15
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> The printer is already added
B. Connecting printer by sharing from samba:
=> yast –I samba to install service samba
Class: SNA2017-B
16
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> It is progressing
=> rcsmb restart & rcnmb restart to restart service
=> Access to printer through IP address (Access on file explorer)
9) Only print-server and client with IP address 192.168.42.254/24 can access to admin page:
Class: SNA2017-B
17
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> vim cupsd.conf >> Add IP address (192.168.42.254)
10) Allow user root and samnang.leap can edit configuration and save:
=> Create a user >> vim cupsd.conf to configure file
Class: SNA2017-B
18
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Add username samnang.leap to require to access to configuration files.
=> Access to print-server by IP address >> Click tab Administrator >> Click on Edi Configuration File
Class: SNA2017-B
19
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
=> Edit file below >> Click Save Changes
=> Type username and password (samnang.leap)
Class: SNA2017-B
20
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
11) Only User “Root, Owner and you” can cancel print job:
=> vim cupsd.conf
=> Add Owner (@OWNER)
Class: SNA2017-B
21
Passerelles Numériques Teacher: Duk Outdom Student: Leap Samnang
12) Managing on the printer HPLaser5200 with the following below:
A. Limit the file size for printer (maximum 2 MB)
B. Limit the period for printing with 5 days per week
C. Limit page number (20 pages/printing)
Class: SNA2017-B
The End
Good Luck!