logo © 1996 Phil Waclawski
Felitaur Site
Offerings
About Me
Crafts
Services
ftp files
Help Files
What's New?
Home Page
Other Links
Anatomy &
Physiology
Arthropods
Biology
Computers
Ferrets
Fun Links
Internet
Linux
S.C.A.
Win 95/NT
Comments or
Suggestions
webmaster@ felitaur.com
   
Printing, Cron, Backups and Installs
Lecture Overview Index | Linux SysAdmin Homepage
Overview
Week 4 for CIS126DL Linux Administration Course

Additional Administrative Tasks (printing, cron, backups

You should be familiar with the methods to schedule tasks
You should be able to configure the printer in BA1W and one in BA1S for printing
Should know the basic backup programs
How to alter shell variables

The following commands/programs will be used/discussed this week:

lpr
lpq
lprm
/usr/sbin/lpc status vs.
lpget list (on solaris)
crontab -e
/etc/crontab
/etc/cron.daily (weekly, hourly, monthly)
/var/spool/cron/*
/var/log/cron
/etc/bashrc and /etc/profile.d
.bashrc, alias, echo $PATH
set
tar (also -P)
gzip, gunzip, unzip, zip, bzip
cpio
file

Questions
In the following crontab file, what does the following do?
0,15,30,45 0-23 * * 0-6 finger mcunix.mc.maricopa.edu
(check man 5 crontab to answer that one)
What option with crontab lets you edit your crontab file?
How do you restart the crond daemon?
What would tar -czvf pwaclaws.tar.gz ~/* do?
How would you untar pwaclaws.tar.gz ? how about pwaclaws.tgz?
What command would you use for finding out what type of a file you have?
What command would you use to check the status of printing?
How about to cancel a print job?
How do you restart cups? (Note, it's just another service)
How do you create an alias for your shell? (see .bashrc in /root for examples)
What does echo $PATH tell you?
Activities & Assignments
Read Chapter 8 of "Running Linux"

Now, to configure Printing

  1. Click on "system" then "administration" then "printing"
  2. Type in the root password when/if it asks for it
  3. Click "New Printer"
    • New Printer:Window
      Put in the printer name (ba1w) Description and Location are optional, hit [Forward]
    • Select Connection
    • Under "Devices" choose AppSocket/HP JetDirect
    • Under "Location of the Network Printer"
    • enter 140.198.77.23 for the Hostname (for BA1W) and leave port 9100 [Forward]
    • Select Printer from Database
    • Scroll Down the Menu to Select "HP" then [Forward]
    • in the list that shows up on the next screen, scroll down that menu and select "Lasjet 5M" (leave it at PostScript for printer driver) [Forward]
    • Then Apply
    • Then in the Printer configuration screen, select the printer ba1w and click the "Make Default Printer" button and then click the "refresh" button on the top menu.
  4. Click "New Printer" again
    • Do the same steps as above, except change the following
    • set Printer Name to ba1s or lab or whatever you want
    • Hostaname enter 140.198.76.28 (for ba1s)
    • Under "Select Printer From Database" Select "HP" then "Laserjet 5M" from the list
  5. Click New Printer Again (If you want to configure the color printer)
      Do the same steps as above, except change the following:
    • printer name: color or whatever you want
    • Hostname: use 140.198.77.24
    • Under "printer driver" select HP and then Business Inkjet 2600)
  6. When done, highlight one printer, click "Make default Printer" then "refresh" and that will restart cups and set your default printer. You can either remember to use lp -Pprintername or you can just reset the default printer whenever you switch rooms.
  7. Click on "refresh" which will restart the cups daemon for you (you should also know where to go to stop and restart daemons by now)
  8. Note, while in BA1S you need to use lpr -Plp0 filename (or whatever you called the second printer, and in Netscape just add -Plp0 ) to print (unless you switch default printers).
Resources
  • Check out Printing for Users for a list of printing resources at the bottom.
  • man 5 crontab