Categories
Tips and Tricks

Create A Website On Your Mac Without A Webserver

Do you need a Website set up right meow?  Using netcat (nc), you can use your Mac to instantly set up a Webpage without configuring a Web server.  This could be used to quickly share files via a Web browser (by creating a hyperlink with file:///some/filepath/), or it could be used as a temporary Website while maintenance […]

Categories
System Administration Uncategorized

Send Commands To All Installed Printers

Using a simple for  loop, you can send a PJL command to all of the printers installed on your machine.  For instance, if you wanted to change the display message on all your networked HP printers, you could loop through all the IP addresses and send it a command.

Categories
System Administration

Change The Serial Number On HP Printers Using Printer Job Language And netcat (or ftp)

Serial numbers sometimes default to XXXXXXXXXX after having a component replaced or the firmware being updated.  The Web interface does not offer a way to set the serial number, but this can be accomplished with some Terminal commands. For the sake of this walkthrough, it is recommend to use vim to edit the file.  However, […]

Categories
Tips and Tricks Uncategorized

Freak Out Your Friends By Changing The “Ready” Message On HP Printers

How The Trick Works You create a file or enter some Terminal commands, which get sent to the printer.  Instead of printing out what you typed, the printer recognizes that the text is actually a set of instructions, known as the Printer Job Language (PJL), which are then carried out by the printer.  In this case, we tell […]