User Tools

Site Tools


user:jbrant:hpc2

My Printer serever project.

First I started by bulding a debian server: This was done using my documentation from last samester. fould at http://lab46.corning-cc.edu/user/jbrant/csit1320/project2

After the server was bult I then added typescript and configured it to document my change so that I would have refereace material for the paper.

Step 1 in installing Cups: apt-get instlall cupsys cupsys-driver-gutenprint foomatic-db-gutenprint foomatcic-ffilters fontconfig libtiff4 libfreeype6type6

with this the following packages where added:

avahi-daemon avahi-utils bind9-host cups cups-client cups-common
cups-driver-gutenprint dbus dbus-x11 defoma file fontconfig-config foomatic-db
foomatic-db-engine ghostscript ghostscript-x gs-common gs-esp gsfonts ijsgutenprint
libavahi-client3 libavahi-common-data libavahi-common3 libavahi-compat-libdnssd1
libavahi-core5 libbind9-50 libcap2 libcups2 libcupsimage2 libdaemon0 libdb4.5
libdbus-1-3 libdns55 libexpat1 libfontconfig1 libgs8 libgutenprint2 libice6
libijs-0.35 libisc52 libisccc50 libisccfg50 libjpeg62 libldap-2.4-2 liblwres50
libmagic1 libnss-mdns libpaper-utils libpaper1 libpng12-0 libpoppler3 libslp1 libsm6
libsqlite3-0 libtalloc1 libwbclient0 libxml2 libxt6 mime-support openssl
openssl-blacklist perl perl-modules poppler-utils psfontmgr python python-minimal
python2.5 python2.5-minimal samba-common sgml-base smbclient ssl-cert ttf-dejavu
ttf-dejavu-core ttf-dejavu-extra ucf xml-core

After all the pack where installed I configured the /etc/cups/cupsd.conf file:

This was done by making a back up copy of the conf file called cupsd.conf.bak.

Then editing the original file:

Making changes to the sections shown below.

view /etc/cups/cupsd.conf

# Only listen for connections from the local machine.
**Listen localhost:631
Listen 10.80.1.18
Listen /var/run/cups/cups.sock
**

**# Restrict access to the server...
<Location />
  Order allow,deny
Allow localhost
Allow 10.80.1.*
Allow 10.80.2.*
Allow 10.80.3.*
</Location>
**
** # Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow localhost
  Allow 10.80.1.99
  allow 10.80.2.*
  allow 10.80.3.*
</Location> **

** # Restrict access to configuration files...
<Location /admin/conf>
#  AuthType Default
  Require user @SYSTEM
  Order allow,deny
Allow localhost
Allow 10.80.1.18
</Location> **
 

After getting the config file set need to install a web browser to host the cups web page.

wget http://download.lighttpd.net/lighttpd/lighttpd-1.4.28.tar.gz

next unpack the file. tar -xvvzf lighttpd-1.4.27.tar.gz

Then I need a library: apt-get install libpcre3

Next I needed to install sql packages:

apt-get install mysql-common libmysqlclient12 libmysqlclient15-dev

The following extra packages will be installed:

binutils cpp cpp-4.3 gcc gcc-4.3 libc6-dev libgmp3c2 libgomp1 libmpfr1ldbl
libmysqlclient15off linux-libc-dev zlib1g-dev

Ater geting everthing installed I need to configer the web browser There are only 2 lines that needed to be changed they are:

## bind to port (default: 80) server.port =80

## bind to localhost only (default: all interfaces) server.bind = “localhost”

Now we are ready to bring the print services up

first bring up the web server:

       /etc/init.d/lighttpd restart
       

Next bring up the printer server: /etc/init.d/cups restart

Inorder to get coomand line printing to work need to edit a file called: /etc/cups/printers.conf

# Printer configuration file for CUPS v1.3.8 # Written by cupsd on 2010-11-05 14:26 <Printer lair_cp1518ni> Info HP Color LaserJet CP1518ni Location Lair DeviceURI socket:10.80.1.50 State Idle StateTime 1288981329 Accepting Yes Shared Yes JobSheets none none QuotaPeriod 0 PageLimit 0 KLimit 0 OpPolicy default ErrorPolicy stop-printer </Printer> bring up Fienly we need to do some testing login to you favaret browser and enter lpoptions -d printer

user/jbrant/hpc2.txt · Last modified: 2010/11/19 13:52 by jbrant