Difference between revisions of "Talk:HowTo add a PrintServer to the LSPro"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
Line 2: Line 2:
  
 
<pre>
 
<pre>
 
 
#! /bin/bash
 
#! /bin/bash
 
#
 
#
Line 22: Line 21:
 
chmod 777 /var/spool/*
 
chmod 777 /var/spool/*
 
chmod 777 /dev/null
 
chmod 777 /dev/null
 
 
</pre>
 
</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