how to replace hp nc6220 laptop keyboard

- Remove the three screws in the back pointing with kbd sign
- Slide the four hooks out, residing on the front of the kbd
close to the screen positioned between esc,f1 and f4,f5 and
f8,f9 and f12,delete
- Push the kbd towards the screen with your thumbs
- (you are almost done)
- (you should see [...]

How to keep a persistent ssh connection

Create a init script like this
# cat /etc/init.d/autossh
#!/bin/sh
autossh -M8122 -R8022:localhost:22 -l username -fN remote.example.net
And link it your rc script
That is all

How to install CAM on global zone ONLY

Download the cam application from SUN site first. Then extract it. Then go to the utils dir and modify the following files and replace the word pkgadd with pkgadd -G and the word patchadd with patchadd -G
install_csm_pkg.ksh
install_firmware_pkg.ksh
install_pkg.ksh
install_patch.ksh

Then run the following command from app’s dir and that is all
./RunMe.bin -c

How to find cpu cores on a system

kstat -pm cpu_info | grep brand
That will tell you if a system is dual core or not

How to enable remote access to Sun Java Web Console

svccfg -s svc:/system/webconsole setprop options/tcp_listen = true
svcadm refresh svc:/system/webconsole

How to concatenate multiple PDF files into one

You will need Ghostscript installed in your compter. Then just run the following command
gs -q -sPAPERSIZE=letter -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -sOutputFile=out.pdf in1.pdf in2.pdf in3.pdf …

How to fix Secure HTTP between RT and Qmail

This morning I found out that our company mail server, using qmail, is failing to communicate through secure http to ticket system, using RT
So, I logged into out mail server to verify the mail server to ticket server communication setup
cat /var/qmail/alias/.qmail-help
|822field x-spam-status | egrep -iw yes >/dev/null && exit 100 || exit 0
|822field from | [...]

How does NFS mount work

This is a direct quote fromĀ  http://docs.sun.com/app/docs/doc/816-4555/6maoquib7?a=view
The following description applies to NFS version 3 mounts. The NFS version 4 mount process does not include the portmap service nor does it include the MOUNT protocol.
When a client needs to mount a file system from a server, the client must obtain a file handle from the server. [...]