Posts

Showing posts from November, 2007

Linux - display hardware info

wget http://nchc.dl.sourceforge.net/sourceforge/ezix/lshw-B.02.08.01.tar.gz tar zxvf lshw-B.02.08.01.tar.gz cd lshw-B.02.08.01 make src/lshw lsvr02 description: Desktop Computer product: iPAQ Desktop vendor: Compaq serial: E115JDVZ0050 width: 32 bits capabilities: smbios-2.3 dmi-2.3 configuration: boot=normal chassis=desktop uuid=3BDDC651-7513-D511-9699-2A7200A22A19 *-core description: Motherboard product: 06F0h vendor: Compaq physical id: 0 ....

Linux - display application memory usage

pmap -x 9114 9114: top Address Kbytes RSS Anon Locked Mode Mapping 0018e000 100 - - - r-x-- ld-2.5.so 001a7000 4 - - - r-x-- ld-2.5.so 001a8000 4 - - - rwx-- ld-2.5.so ... ... b7f0f000 8 - - - rw--- [ anon ] b7f17000 4 - - - rw--- [ anon ] bfbcd000 84 - - - rw--- [ stack ] -------- ------- ------- ------- ------- total kB 2156 - - -

Linux - CentOS PPTP VPN

Reference sites: http://poptop.sourceforge.net/dox/redhat-howto.phtml http://poptop.sourceforge.net/yum/beta/packages/ SERVER: Environment : CentOS 5 Kernnel: 2.6.18-8.1.8.el5 modprobe ppp-compress-18 wget http://poptop.sourceforge.net/yum/beta/packages/pptpd-1.3.4-1.rhel5.1.i386.rpm rpm -ivh pptpd-1.3.4-1.rhel5.1.i386.rpm vi /etc/pptpd.conf ppp /usr/sbin/pppd option /etc/ppp/options.pptpd debug stimeout 30 logwtmp localip 192.168.1.5 # Server assigned to clients remoteip 192.168.1.201-203 # IP assigned to clients vi /etc/ppp/options.pptpd name My-VPN # VPN service name refuse-pap refuse-chap refuse-mschap require-mschap-v2 require-mppe-128 ms-dns 202.106.46.151 # DNS assigned to clients ms-dns 192.168.1.1 # DNS assigned to clients proxyarp debug lock nobsdcomp novj novjccomp nologfd vi /etc/ppp/chap-secrets # username server_name password ip service pptpd start netstat -nlp # port 1723 listening # Firewall allows port 47, 1723 CLIENT (Windows) Control Panel > Network Connections ...

Linux - Redhat / CentOS GUI network configuration

Image
> neat-tui > netconfig

Translation

http://translator.live.com/

Linux - Check rpm package info

Check rpm package info: > rpm -q --qf '%{NAME}-%{VERSION}-%{RELEASE} (%{ARCH})\n' libaio libaio-0.3.105-2 (i386)

Backup PuTTY

> Start > run regedit /e c:\PuTTY_backup.reg HKEY_CURRENT_USER\Software\SimonTatham