Hello All,
I'm trying to get the iSeries Access for Linux client (IBM 5250 emulator) working on a CentOS 4.4 system. The client is mostly working - it connects to the remote AS/400, the custom keymap I created is recognized, etc. The only problem is printing to a local printer.
The docs for the client state that it reads the default printer environment variable to figure out which printer to print to on the local side. What's the default printer environment variable? $PRINTER? I'm lost on this one since I've never had to set it before.
I know that I can create a ~/.lpoptions file and put the default printer in there, but that's not going to work with this IBM 5250 emulator.
Any tips/help appreciated.
Regards,
Ranbir
On Thu, 2007-04-26 at 16:27 -0400, Kanwar Ranbir Sandhu wrote:
The docs for the client state that it reads the default printer environment variable to figure out which printer to print to on the local side. What's the default printer environment variable? $PRINTER? I'm lost on this one since I've never had to set it before.
I know that I can create a ~/.lpoptions file and put the default printer in there, but that's not going to work with this IBM 5250 emulator.
Does anyone know what the "default printer environment variable" is on Red Hat based systems? Is there such a thing?
Regards,
Ranbir
Kanwar Ranbir Sandhu wrote:
Hello All,
I'm trying to get the iSeries Access for Linux client (IBM 5250 emulator) working on a CentOS 4.4 system. The client is mostly working - it connects to the remote AS/400, the custom keymap I created is recognized, etc. The only problem is printing to a local printer.
The docs for the client state that it reads the default printer environment variable to figure out which printer to print to on the local side. What's the default printer environment variable? $PRINTER? I'm lost on this one since I've never had to set it before.
Yes, it's PRINTER. Set it to the name of the printer you want to use. If your printer is named foo, then do
export PRINTER=foo
If all users will use the same printer, you can create shell scripts in /etc/profile.d to set this variable for all users at login time.