This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
user:jbrant:hpc2 [2010/11/19 15:32] – jbrant | user:jbrant:hpc2 [2010/11/19 18:52] (current) – jbrant | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | My Printer serever project. | ||
+ | |||
+ | First I started by bulding a debian server: | ||
+ | This was done using my documentation from last samester. | ||
+ | fould at http:// | ||
+ | |||
+ | 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 / | ||
+ | |||
+ | 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 / | ||
+ | |||
+ | < | ||
+ | |||
+ | # Only listen for connections from the local machine. | ||
+ | **Listen localhost: | ||
+ | Listen 10.80.1.18 | ||
+ | Listen / | ||
+ | ** | ||
+ | |||
+ | **# Restrict access to the server... | ||
+ | < | ||
+ | Order allow,deny | ||
+ | Allow localhost | ||
+ | Allow 10.80.1.* | ||
+ | Allow 10.80.2.* | ||
+ | Allow 10.80.3.* | ||
+ | </ | ||
+ | ** | ||
+ | ** # Restrict access to the admin pages... | ||
+ | < | ||
+ | Order allow,deny | ||
+ | Allow localhost | ||
+ | Allow 10.80.1.99 | ||
+ | allow 10.80.2.* | ||
+ | allow 10.80.3.* | ||
+ | </ | ||
+ | |||
+ | ** # Restrict access to configuration files... | ||
+ | < | ||
+ | # AuthType Default | ||
+ | Require user @SYSTEM | ||
+ | Order allow,deny | ||
+ | Allow localhost | ||
+ | Allow 10.80.1.18 | ||
+ | </ | ||
+ | |||
+ | </ | ||
+ | |||
+ | After getting the config file set need to install a web browser to host the cups web page. | ||
+ | |||
+ | wget http:// | ||
+ | |||
+ | next unpack the file. | ||
+ | tar -xvvzf lighttpd-1.4.27.tar.gz | ||
+ | |||
+ | Then I need a library: | ||
+ | apt-get install libpcre3 | ||
+ | |||
+ | Next I needed | ||
+ | |||
+ | |||
+ | | ||
+ | |||
+ | 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 | ||
+ | |||
+ | ## bind to localhost only (default: all interfaces) | ||
+ | | ||
+ | |||
+ | Now we are ready to bring the print services up | ||
+ | |||
+ | first bring up the web server: | ||
+ | / | ||
+ | |||
+ | Next bring up the printer server: | ||
+ | / | ||
+ | |||
+ | Inorder to get coomand line printing to work need to edit a file called: / | ||
+ | |||
+ | # 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:// | ||
+ | State Idle | ||
+ | StateTime 1288981329 | ||
+ | Accepting Yes | ||
+ | Shared Yes | ||
+ | JobSheets none none | ||
+ | QuotaPeriod 0 | ||
+ | PageLimit 0 | ||
+ | KLimit 0 | ||
+ | OpPolicy default | ||
+ | ErrorPolicy stop-printer | ||
+ | </ | ||
+ | |||
+ | bring up | ||
+ | |||
+ | Fienly we need to do some testing | ||
+ | login to you favaret browser and enter | ||
+ | lpoptions -d printer | ||
+ | |||
+ | |||