Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!mucs!zlsiial From: zlsiial@mcc.ac.uk (A.V. Le Blanc) Newsgroups: comp.sys.hp Subject: Re: How to print to a diskless client under hp-ux Message-ID: <1741@m1.cs.man.ac.uk> Date: 25 Sep 90 10:39:16 GMT References: <4009@umbc3.UMBC.EDU> Sender: news@cs.man.ac.uk Reply-To: zlsiial@cms.mcc.ac.uk (A.V. Le Blanc) Organization: Computing Centre, University of Manchester, UK Lines: 48 To setup a printer on a diskless node of an HP9000/300 cluster: 1) Login on the diskless node as root, and create the device with a mknod command. Assuming the device is accessed from the RS232 serial port, you should have, for example mknod /dev/laser c 1 0x090504 chmod 600 /dev/laser chown lp /dev/laser chgrp bin /dev/laser 2) At an appropriate point NOT in /dev -- for example in / -- create a pipe for the printer; e.g., mknod /laser p chmod 600 /laser chown lp /laser chgrp bin /laser 3) In the inittab file for the diskless node, add an entry copying from the pipe to the device: l1:2:respawn:/bin/sh -c "/bin/cat /dev/laser" 4) In the /etc/rc file in the function localrc add code which sets the line parameters as follows: if [ `hostname` = "abclaser" ] then nohup sleep 20000000000 /dev/null & stty 9600 -opost -onlcr -parenb cs8 ixon -istrip clocal tab0