Archive

Archive for July, 2009

Setup Netgear PS101 Print Server on Linux

July 6th, 2009

I followed the same procedure as detailed in my post Setup Netgear PS101 Print Server on Mac OS X  for setting up the Netgear PS101 print server on my Fedora 10 box. The same instructions worked perfectly.

Linux

Setup Netgear PS101 Print Server on Mac OS X

July 5th, 2009

I have a HP Deskjet 882C printer connected to a Netgear PS101 Print Server. In the past, I had not been successful in connecting to the printer on Mac or Linux, but I finally got it to work in Mac OS 10.4.

  1. Connect to the CUPS interface by opening a web browser and going to localhost:631.
  2. Click Manage Printers.
  3. Click Add Printer.
  4. Enter a name, and optionally a description and location. Click Continue.
  5. Select LPD/LPR Host or Printer from the Device drop-down. Click Continue.
  6. For the Device URI, enter: lpd://[Hostname or IP]/[Default Name]_PS1. Replace [Hostname or IP] with the hostname or IP address of the print server. Replace [Default Name] with the Default Name value that appears on the Server Status page for the Netgear print server. (You can get to the Server Status page by entering the hostname or IP address of the print server into your web browser.) The URI for my setup is, for example: lpd://192.168.5.101/PS363325_PS1. Click Continue.
  7. For make select HP (or the vendor of your printer). Click Continue.
  8. For model select HP DeskJet Series CUPS v1.1 (en) (or the model of your printer). Click Continue.
  9. Print a test page to ensure everything is working correctly.

Uncategorized

User Avatar in KDM & GDM

July 2nd, 2009

You can set a user avatar to show up in the login screen in KDM or GDM by putting a .face file in your home directory. The file must be a square JPEG image and must be world readable. Your home directory must also be world readable and executable.

Linux , ,

Conditions in LaTeX

July 1st, 2009

You can use the ifthen LaTeX package to add conditions to your LaTeX document that affect the generated output. I used it to achieve behavior similar to the C preprocessor macros #define and #ifdef. Below is an example.

I wanted something that worked like (in psuedocode):

#define var
#ifdef var
\section{Included Section}
#else
\section{Excluded Section}
#endif

The actual LaTeX is:

\newboolean{var}
\setboolean{var}{true}
\ifthenelse{\boolean{var}}
{ \section{Included Section} }
{ \section{Excluded Section} }

Uncategorized