CS 241 Assignment #16
Most students completed this guided exercise in class
on may 10, 2007 (class #13)
this assignment must be done in class!
*************************************************
**** ****
**** Part 1: configure a network printer ****
**** ****
*************************************************
log in as root
from the gui
start a terminal session
id # should confirm you are root
system-config-printer
(will launch the printer setup gui application)
New Printer
name: 3 char login
description: description
location: location
Forward
wait a while as it tries to auto discover available printers
Select connection
Appsocket/HP Jetdirect
hostname: either ip of printer (10.196.63.15)
or its name in /etc/hosts
or its dns name
port number: leave 9100
forward
select HP
forward
model: Laser jet 4350
forward
click: apply
[root@unix000 ~]# lpstat -t|grep z9z
device for z9z: socket://10.196.63.15:9100
z9z accepting requests since Thu 10 May 2007 08:34:32 PM PDT
printer z9z is idle. enabled since Thu 10 May 2007 08:34:32 PM PDT
[root@unix000 ~]#
lpstat -t | grep z9z | lp -dz9z
to get credit,
show this printout to the instructor.
***************************************************
**** ****
**** Part 2: configure a simple web server ****
**** ****
***************************************************
log in as root
from the gui
start a terminal session
id # should confirm you are root
system-config-httpd
(will launch the web server setup gui application)
red hat fedora uses apache as the http daemon.
Main
no changes
note the help icon
Virtual Hosts
select default
edit
document root dir: leave as /var/www/html
We have reviewed all the default values
and they seem ok.
[root@unix000 ~]# service httpd status
httpd is stopped
[root@unix000 ~]#
[root@unix000 ~]# chkconfig --list httpd
httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@unix000 ~]#
cd /var/www/html
should be an empty dir
vi index.html
insert these 2 lines:
but change z9z to your 3 char login
<h1>z9z website</h1>
<img src=powered_by_fedora.png>
# bring image from icons dir to html dir
cp ../icons/powered_by_fedora.png .
service httpd start
chkconfig httpd on
[root@unix000 html]# chkconfig httpd on
[root@unix000 html]# chkconfig --list httpd
httpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
[root@unix000 html]#
bring up your browser
http://localhost
to get credit for this part 2,
show the instructor your browser
that displays the web page you have just created.