How to install new printer in IBM AIX box
Step I:
To add hostname add by doing
#vi /etc/hosts
add the ipaddress and hostname there:
for example 172.16.0.157 26-75
Step II:
The file set is: printers.hpJetDirect.attach.
We need to install it from the AIX Base Media cd's volume 3.
Only need to re-install that one fileset.
Will not lose any settings.
#smitty install_all
select input device of cdrom drive or hit f4 to bring up a list and select cdrom for software to install.
Type in: printers.hpJetDirect.attach <--- dont forget the capital J and D.
Press "ESC 0" to get out.
Step III
To add printq:
#smitty mkpq
hpJetDirect Network Printer
IBM
Other
Generic
select number 2 (Do NOT make this system a BOOTP/TFTP server )
PCL Emulation--> enter any name (26-75)
then enter the HostName of the Jet card. --> enter the host name (26-75)
hit enter, the printq should be created.
run lpstat--> to make sure that printq in the ready state.
or lpstat -a26-75
To print:
#qprt -P q_name file_name_to_print
Thursday, April 24, 2008
Monday, April 21, 2008
FTP is evil. Use SSH. Lock down user that uses sudo
FTP is evil. Involves leaving passwords for the root user lying around
and ports sniffers see clear text passwords; root user in this case.
You need to use SSH keys, and a locked down user that uses sudo and
the shutdown command. sudo is your friend for allowing specific root
permissions for users and commands. It's free to download the AIX
version from IBM.
http://www-03.ibm.com/systems/p/os/aix/linux/download.html
so, first thing, make sure you have SSH installed on both your Windows
and AIX environments, and sudo installed on AIX.
you then need to create a SSH Type-2 (DSA) key
there is plenty of information on the Net about sudo, SSH keys and how
to create a secure way for remote executions using a SSH key that only
allows the shutdown from a specific IP address and a Shell wrapper for
the sudo permissions
Scripting should be unnecessary but good documentation means those who
follow after you won't come hunting for your with sharp objects.
This won't be quick and dirty to do right.
and ports sniffers see clear text passwords; root user in this case.
You need to use SSH keys, and a locked down user that uses sudo and
the shutdown command. sudo is your friend for allowing specific root
permissions for users and commands. It's free to download the AIX
version from IBM.
http://www-03.ibm.com/systems/p/os/aix/linux/download.html
so, first thing, make sure you have SSH installed on both your Windows
and AIX environments, and sudo installed on AIX.
you then need to create a SSH Type-2 (DSA) key
there is plenty of information on the Net about sudo, SSH keys and how
to create a secure way for remote executions using a SSH key that only
allows the shutdown from a specific IP address and a Shell wrapper for
the sudo permissions
Scripting should be unnecessary but good documentation means those who
follow after you won't come hunting for your with sharp objects.
This won't be quick and dirty to do right.
Subscribe to:
Posts (Atom)