1 / 69

CIS 191 - Lesson 10

CIS 191 - Lesson 10. Printers. CIS 191 - Lesson 10. CIS 191 - Lesson 10. Two predominate types of printers Thermal inkjet technology Laser, drum, toner technology. CIS 191 - Lesson 10. So many ways to hook them up … Now: Network USB Wireless (Bluetooth, IR)

taffy
Download Presentation

CIS 191 - Lesson 10

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CIS 191 - Lesson 10 Printers

  2. CIS 191 - Lesson 10

  3. CIS 191 - Lesson 10 • Two predominate types of printers • Thermal inkjet technology • Laser, drum, toner technology

  4. CIS 191 - Lesson 10 • So many ways to hook them up … • Now: • Network • USB • Wireless (Bluetooth, IR) • PictBridge (USB based) • Back then: • Serial cable • Parallel printer cable

  5. CIS 191 - Lesson 10 Printer Configuration

  6. CIS 191 - Lesson 10 Printing • System V based print subsystem • lp (to print) • lpstat (queue management) • cancel (to remove jobs) • BSD based print subsystem • lpr (to print) • lpq (queue management) • lprm (to remove jobs) • CUPS • Provides both System V and Berkeley based command-line interfaces • Supports new Internet Printing Protocol • Works with Samba We will be just looking at CUPS

  7. CIS 191 - Lesson 10 CUPS The service command will check the status and start up the service. CUPS has a web based administration tool which can be reached on port 631.

  8. CIS 191 - Lesson 10 Service Configuration

  9. CIS 191 - Lesson 10 Sidetrack – Service command [root@benji ~]# service cups status cupsd (pid 4958) is running... [root@benji ~]# service cups restart Stopping cups: [ OK ] Starting cups: [ OK ] [root@benji ~]# service cups status cupsd (pid 5261) is running... [root@benji ~]# service cups stop Stopping cups: [ OK ] [root@benji ~]# service cups start Starting cups: [ OK ] [root@benji ~]# Not: the effects of the service command changes will last until the next shutdown . They are not permanent.

  10. CIS 191 - Lesson 10 Sidetrack – Service command [root@benji ~]# type service service is hashed (/sbin/service) [root@benji ~]# file /sbin/service /sbin/service: Bourne shell script text executable [root@benji ~]# cat /sbin/service #!/bin/sh . /etc/init.d/functions VERSION="`basename $0` ver. 0.91" USAGE="Usage: `basename $0` < option > | --status-all | \ [ service_name [ command | --full-restart ] ]" SERVICE= SERVICEDIR="/etc/init.d" OPTIONS= if [ $# -eq 0 ]; then echo "${USAGE}" >&2 exit 1 fi cd / while [ $# -gt 0 ]; do case "${1}" in --help | -h | --h* ) echo "${USAGE}" >&2 exit 0 ;; --version | -V ) echo "${VERSION}" >&2 exit 0 ;; *) if [ -z "${SERVICE}" -a $# -eq 1 -a "${1}" = "--status-all" ]; then cd ${SERVICEDIR} for SERVICE in * ; do case "${SERVICE}" in functions | halt | killall | single| linuxconf| kudzu) ;; *) if ! is_ignored_file "${SERVICE}" \ && [ -x "${SERVICEDIR}/${SERVICE}" ]; then env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" status fi ;; esac done exit 0 elif [ $# -eq 2 -a "${2}" = "--full-restart" ]; then SERVICE="${1}" if [ -x "${SERVICEDIR}/${SERVICE}" ]; then env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" stop env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" start exit $? fi elif [ -z "${SERVICE}" ]; then SERVICE="${1}" else OPTIONS="${OPTIONS} ${1}" fi shift ;; esac done if [ -x "${SERVICEDIR}/${SERVICE}" ]; then env -i LANG="$LANG" PATH="$PATH" TERM="$TERM" "${SERVICEDIR}/${SERVICE}" ${OPTIONS} else echo $"${SERVICE}: unrecognized service" >&2 exit 1 fi [root@benji ~]# Use the type and file commands to find the location and type of commands The service command is a viewable shell script (reduced type size here so it will fit)

  11. CIS 191 - Lesson 10 CUPS CUPS is managed by a web-based configuration utility on port 631 Local access only by default

  12. CIS 191 - Lesson 10 CUPS To enable remote access click on Administration tab …

  13. CIS 191 - Lesson 10 CUPS … and scroll down to allow remote administration

  14. CIS 191 - Lesson 10 CUPS Authenticate yourself as root to confirm change to allow remote administration CUPS service will restart

  15. CIS 191 - Lesson 10 CUPS Browse to http://xxx.xxx.xxx.xxx:631/ from another system You may now manage the CUPS service on Benji remotely from another system.

  16. CIS 191 - Lesson 10 CUPS Next step is to add printers Printer: HP LaserJet 1320n Connection: LAN

  17. CIS 191 - Lesson 10 CUPS The LaserJets also have a web-based management utility IP Address for this 1320n is 192.168.0.12

  18. CIS 191 - Lesson 10 CUPS This example will show how to add the HP 1320n as a networked printer. benji 192.168.0.25 hp1320n 192.168.0.12

  19. CIS 191 - Lesson 10 CUPS To add in HP 1320N printer … … the first step is to click the Add Printer button

  20. CIS 191 - Lesson 10 CUPS You may get this error if your are browsing in remotely because no certificates have been set up for https protocol. Not a problem if you are browsing locally

  21. CIS 191 - Lesson 10 CUPS One way to address the certificate problem is to add an exception.

  22. CIS 191 - Lesson 10 CUPS This adds the exception

  23. CIS 191 - Lesson 10 CUPS Add an exception only when you do trust the site. In this case we built and setup the Benji VM so we trust it.

  24. CIS 191 - Lesson 10 CUPS Click Confirm Security Exception button

  25. CIS 191 - Lesson 10 CUPS Now we can add the LaserJet

  26. CIS 191 - Lesson 10 CUPS Fill in basic information

  27. CIS 191 - Lesson 10 CUPS We will use JetDirect. JetDirect is a small printer server built into some of HP's printers.

  28. CIS 191 - Lesson 10 CUPS Hmmm …. lets click on Network Printers link to figure this one out.

  29. CIS 191 - Lesson 10 CUPS Scroll down to HP printers

  30. CIS 191 - Lesson 10 CUPS We will use the JetDirect w/o IPP for the HP 1320n IPP is Internet Printing Protocol for send print jobs over the Internet via the http protocol HP JetDirect cards use port 9100 A socket is the combination of an IP address and a port number.

  31. CIS 191 - Lesson 10 CUPS socket://192.168.0.12/9100 This defines how to communicate with the printer

  32. CIS 191 - Lesson 10 CUPS (you will need to enter root's password) Service will restart

  33. CIS 191 - Lesson 10 CUPS Must select printer from long list

  34. CIS 191 - Lesson 10 CUPS We will choose hp LaserJet 1320 series Postscript (recommended) (en)

  35. CIS 191 - Lesson 10 CUPS Lets double check the printer supports PostScript … it does

  36. CIS 191 - Lesson 10 CUPS To finally add the printer it will be necessary authenticate as root

  37. CIS 191 - Lesson 10 CUPS Printer has been added

  38. CIS 191 - Lesson 10 CUPS View of newly added printer from Printer tab

  39. CIS 191 - Lesson 10 CUPS Lets test the printer by printing this CUPS web page to it … and it works.

  40. CIS 191 - Lesson 10 CUPS Lets add second printer Printer: hp photosmart 7550 (color inkjet technology) Connection: USB

  41. CIS 191 - Lesson 10 Sidetrack – The previous 7550 "Hot Lips" 6 G's of acceleration 8-pen turret Grit wheel technology from HP Labs

  42. CIS 191 - Lesson 10 CUPS The second printer is connected by USB to a Windows notebook computer benji 192.168.0.25 hpdv2000 192.168.0.27

  43. CIS 191 - Lesson 10 CUPS First step is the same which is to fill out basic information on printer

  44. CIS 191 - Lesson 10 CUPS For this connection we will use Samba. Samba implements Windows file and print services sharing on Linux. Note Windows uses SMB (Server Message Block) protocol to implement these services

  45. CIS 191 - Lesson 10 CUPS Will need to specify the Windows print share

  46. CIS 191 - Lesson 10 CUPS Will need to specify the Windows print share as //hostname/printsharename

  47. CIS 191 - Lesson 10 CUPS Ways to specify a Windows share

  48. CIS 191 - Lesson 10 CUPS Select make of printer

  49. CIS 191 - Lesson 10 CUPS Select model of printer HP PhotoSmart 7550 Foomatic/hpijs (recommended) (en)

  50. CIS 191 - Lesson 10 CUPS Printer has been added

More Related