Talk:HowTo add a PrintServer to the LSPro
From NAS-Central Buffalo - The Linkstation Wiki
(Difference between revisions)
| Line 1: | Line 1: | ||
Here's the lprng-enable.sh script, that is part of the lprng-withweb_2.04.tgz: | Here's the lprng-enable.sh script, that is part of the lprng-withweb_2.04.tgz: | ||
| + | |||
| + | <pre> | ||
#! /bin/bash | #! /bin/bash | ||
| Line 20: | Line 22: | ||
chmod 777 /var/spool/* | chmod 777 /var/spool/* | ||
chmod 777 /dev/null | chmod 777 /dev/null | ||
| + | |||
| + | </pre> | ||
Revision as of 19:31, 26 March 2007
Here's the lprng-enable.sh script, that is part of the lprng-withweb_2.04.tgz:
#! /bin/bash # ############################################ # lprng-enable.sh # # # # This scripts creates the lp0 node, # # sets the permission, creates the spool # # directories and changes the permission # # for /dev/null, as this is restricted # # # ############################################ mknod /dev/usb/lp0 c 180 0 chmod a+w /dev/usb/lp0 mkdir /var/spool/win mkdir /var/spool/tmp mkdir /var/spool/samba chmod 777 /var/spool/* chmod 777 /dev/null

