woensdag 14 december 2011

#17 | Printing via my TP-Link router with DD-WRT

  • enable JFFS support via the web interface (like this)
  • enable USB support via the web interface (everything but usb storage)
  • Download and install the server
wget http://downloads.openwrt.org/snapshots/trunk/atheros/packages/p910nd_0.95-2_atheros.ipk
ipkg install p910nd_0.95-2_atheros.ipk
  • put this watch script in /jffs/
wget http://wl520gu.googlepages.com/watchprinter
chmod +x watchprinter
  • Add these commands to the startup script via the web interface (administration - commands - save startup)
/bin/mkdir -m 755 -p /dev/usb
/bin/mknod -m 660 /dev/usb/lp0 c 180 0
  • Add the watch script to crontab via the web interface (administration - cron)