Archive for the ‘nss’ Category

how to use pk12util

January 19, 2007

an post that describes how to use pk12util(a utility of libnss3-tools package in Ubuntu or Debian):
http://www.mail-archive.com/mozilla-crypto@mozilla.org/msg03792.html
AFAIU, pkcs12 file will contains certificate and private key, and you can export/import the pkcs12 file certificate database created by certutil. More details, visit wikipedia.org

[Linux] how to setup printer under linux

October 23, 2006

The following is the steps that make linux start to print files:
1. install cups (Common Unix Print System?)
2. use command “lpstat -h print.exoweb.net -p ” to get the status of all printers on server print.exoweb.net
3. generate a test.ps file to get with command “a2ps hello.txt -o hello.ps”
4. use command “lp -h print.exoweb.net -d LaserJet hello.ps ” to print file hello.ps.(TODO: command lpr can also print files, what’s the difference between lp and lpr? )
5. open /etc/cups/client.conf file, and put “ServerName print.exoweb.net” into this file to avoid type “-h print.exoweb.net” again and again.

NOTE: if you want to print something, then try a2ps, most of time, it works very well. For more details, run “info a2ps”.