Netgear PS104/105/110 docs
Netcat Source and binaries
arp -s 192.168.111.84 00:C0:02:30:20:23The default user name is on the bottom of the print server. The default password is just a carriage return.
Download the config file with ftp (File Transfer Protocol)
# ftp 192.168.111.84
Connected to 192.168.111.84.
220 Print Server Ready.
User (192.168.111.84:(none)): PS302023
331 Password required for user.
Password:
230 User logged in.
ftp> get config
200 Command OK.
150 Open BINARY Mode Connection.
226 Transfer complete.
ftp: 873 bytes received in 0.93Seconds 0.94Kbytes/sec.
ftp> quit
221 Goodbye.
Edit the config file to look something like the following TCP/IP
section.
4000 IP_ADDR:192.168.111.84
4001 GATEWAY:0.0.0.0
4002 MASK :255.255.0.0
4010 TCP_INT:2
4011 TCP_CNT:254
4012 WINS_IP:0.0.0.0
4020 DHCP_MODE:Disable
Upload the config file back to the PS104 with
# ftp 192.168.111.84For additional detail, see the technical manual under "Printing using DSI". Setting the IP address can also be done with the Windoze "FirstGear" software, but that's no fun.
Connected to 192.168.111.84.
220 Print Server Ready.
User (192.168.111.84:(none)): PS302023
331 Password required for user.
Password:
230 User logged in.
ftp> put config
200 Command OK.
150 Open BINARY Mode Connection.
226 Transfer complete.
ftp: 873 bytes sent in 0.00Seconds 873000.00Kbytes/sec.
ftp> quit
221 Goodbye.
192.168.111.84 hp3The hp3 is now the hostname of the printer (not the printer name).
#printer_name:printer_hostname:port_numberThe various Netgear print servers uses ports
ogre:hp3:4010
4010 First parallel portThe PS104 uses only port 4010 as it only has one parallel port.
4020 2nd parallel port
4030 Serial port
/usr/spool/lp/model/netcatHpand run:
cd /usr/spool/lp/modelRun:
chmod 550 netcatHp
chown bin netcatHp
chgrp lp netcatHp
scoadmin printerAdd a local printer. The setup should look something like:
Name: ogreNote that "ogre" is the printer name and "netcatHP" is the name of the spooler script. Run:
Description: Netgear PS104
Model: netcatHp
Device: /dev/null
/usr/lib/accept ogre
enable ogre
After downloading, run:
mv netcat.elf netcat
chown lp netcat
chgrp lp netcat
chmod 755 netcat
lpstat -t | /usr/lib/lponlcr | netcat -h hp3 -p 4010This will print the print spooler status to the print server. If this doesn't work, don't bother trying the print spooler. The lponlcr adds a carriage return for every linefeed.
lpstat -t | lp -d ogre