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. Click "New"
  3. Type in the root password when/if it asks for it
    • New Printer:Window
    • click on >Network Printer
      and choose "AppSocket/HP JetDirect
    • Under "Location of the Network Printer"
      enter 192.168.209.221 for the Hostname (for BA9W) and leave port 9100, click [Forward]
    • If the printer is on and connected, it will try to detect it, if so an [Installable Options] window pops up, just hit forward
    • [Describe Printer] will have HP-Laserjet-4250 for our room already listed. For location add "ba9w"
    • Then click on [Apply] and type the root password when prompted.
    • Note: it will automatically set the first printer configured as your default printer. You can only set it yourself if you have more than one printer
    • New Printer:Window
    • click on >Network Printer
      and choose "AppSocket/HP JetDirect
    • Under "Location of the Network Printer"
      enter 192.168.206.221 for the Hostname (for BA6W) and leave port 9100, click [Forward]
    • If the printer is on and connected, it will try to detect it, if so an [Installable Options] window pops up, just hit forward
    • [Describe Printer] will have HP-Laserjet-4250 for our room already listed. For location add "ba6w"
    • Then click on [Apply] and type the root password when prompted.
    • Note: it will automatically set the first printer configured as your default printer. You can only set it yourself if you have more than one printer
    You can either remember to use lp -Pprintername or you can just reset the default printer whenever you switch rooms.
  4. Note, while in BA3E 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