Blog
053692nd since April 04, 2007
R
Apr 28, 2009 ( Tuesday )
( 297 )
Printing Linux man page
 The quick answer is using: man -k and ps2pdf. i.e., to export "man lsof" into a PDF file for printing, just run:
man -k lsof | ps2pdf - lsof.pdf

This command will generate lsof.pdf under the current directory. wrap this method into a bash function:
pdfman()
{
    man -t ${1?Usage: $0 command} | ps2pdf - $1.pdf
}


then printing any Linux man page is just easy, i.e. for lsof, type:

padman lsof


Enjoy
...More
Add tags: Linux manual ps2pdf

by xicheng
09:13:27 | Add a comment | Read article
Dec 6, 2008 ( Saturday )
( 958 )
NX Client on Ubuntu 8.10 keyboard not working correctly
 Problem: keyboard not working properly, i.e. Upper-Arrow key activates the screen-shot window.
    Client-side: Ubuntu 8.10
    Server-side: RHEL-5.0
Solution: upgrade the server-side nxserver to 3.3.0
check this link.

on server-side:
(1) service nxserver stop
(2) install the newest nxserver and nxnode
(3) service nxserver start

that's it.
...More
Add tags: 8.10 keyboard NoMachine Ubuntu

by xicheng
21:05:38 | Add a comment | Read article
Oct 29, 2008 ( Wednesday )
( 643 )
Some commands for Linux system administration
Some of my favorate Linux tools at work:

(1) use `watch -d` whenever you want to monitor the change of some shell commands' output, i.e. use the following command to monitor the disk-sizes:

watch -d df -k


(2) `sar -d`: used to monitor the disk read/write

 
watch -d sar -dp 3


Pay attention to the following fields: rd_sec/s, wr_sec/s, await, %util. small await and %util tends to be good. [%util below %10 is a sign of in-memory I/O]

(3) top: after entering the `top` interface, press 'c', 'b', 'x', '1'(if you have multiple CPUs). your `top` screen will be very 'active' when your shell is running multi-process programs. you can split the resulting windows by using 'A', 'G', '-'.. read the man page..
...More
Add tags: Linux sar top watch

by xicheng
14:11:06 | Add a comment | Read article and comments(2)
Sep 25, 2008 ( Thursday )
( 493 )
Building bootable USB drive for Linux distributions
Making a bootable USB drive for a Linux box is rather easy with UNetbootin, check it out...
Add tags: bootable

by xicheng
11:35:54 | Add a comment | Read comment(1) | Ask xicheng
More entries: 1 2 3 4 5 6 7 8 9 10 Next » End