Ipcop in VMware

I recently installed an IPcop 1.4 in vmware to replace my old firewall at home. I also need to filter some unwanted website for my kids. === Time/Clock problem === Due to the well known time sync problem of all virtual machine, the clock in my Ipcop often running slow. IPcop use fcrontab, so I […]

Read More…

ssh using keys (avoid password)

use public keys to authenticate 2 servers ”’Server1”’ and ”’Server2”’ === on Server1 === generate keys * do not input a password * this will generate 2 files: ”id_rsa” (p[rivate key) and ”id_rsa.pub” (public key) cd $HOME/.ssh ssh-keygen -t rsa add the public key to remote server ssh-copy-id -i id_rsa.pub username@server2.local === on Server2 === […]

Read More…

Setup Putty for Linux

Software used: Putty 0.60 (from http://www.chiark.greenend.org.uk/~sgtatham/putty) CentOS 5.2 Here is how I setup Putty to connect to CentOS, fix the problem of full screen tools (such as system-admin-network). start Putty Terminal > Keyboard > The Function keys and keypad : select Linux Windows : set lines of scrollback to 2000 (or more) Windows > Translation : […]

Read More…

Install FreeNX on Centos 5.2

Software Used Server: CentOS 5.2 i386 Client: NoMachine NX Client for Windows 3.2.0-13 On the linux box, install X Windows and Gnome first (if not installed yet) su – yum groupinstall “X Window System” “GNOME Desktop Environment” and then issue these commands to install freenx yum install nx freenx nxsetup –install –setup-nomachine-key On the client, download […]

Read More…

又牛一

一年過去又牛一 三張幾野老屎弗 半世碌勞搏命做 銀行存款得個吉 又煙又酒成日咳 秋雨飄來惹風濕 年老色衰成事實 美女見狀只說不 經濟忽然又告急 生意傾掂又告甩 幾舊水都要講價 搵食艱難慘過乞 d客姓賴又姓屈 明明攪惦話未得 仆你個街扮晒野 殺你易過殺隻蝨 食過鮑魚啃過骨 唔好當我一六七 做事只求做實事 性格依然未變質 […]

Read More…

Linux filesystem hierarchy

As a Linux beginner, it is always hard to understand what all these directory names means. Here is a list of the directory hierarchy of CentOS 5. / the root of everything /bin common linux commands. such as ls, cp, gzip, etc /boot boot codes of Linux – not to touch it unless you are […]

Read More…

WordPress Mandigo theme blockquote

To have the WordPress Mandigo theme display blockquotes like below, insert the following code in the header area of the theme: (Dashboard > Design > HTML Inserts > Right before </head>) <style type=”text/css”> body {font-family: Verdana, Arial, Sans-Serif;} h1,h2,h3,h4,h5 {margin-top: 0.5cm; margin-bottom: 0.5cm} blockquote {line-height:110%; background-color:#ffffcc; font-style:normal; font-size:small; font-family: Lucida Console, Monaco5, monospace; text-align:left;margin-bottom:0.5cm;} blockquote […]

Read More…

WordPress – disable AutoCorrect

WordPress has a feature similiar to the AutoCorrect in MS Word. For example, it replace double hyphen (–) to a single hyphen (-). It think it is a nice feature for most people, but It is also the worst thing for people who blog about programming or linux commands. This is how to disable this feature: […]

Read More…

Linux commands – chmod

chmod is used to change permissions on files and directories on a linux system. An example file listing ls -l -rw-r–r– 1 derek managers    0 Oct 10 19:11 myfile drwxr-xr-x 2 derek managers 4096 Oct 10 19:11 myfolder -rw-r–r– 1 derek managers    0 Oct 10 19:11 myprogram The permissions are indicated in the first […]

Read More…