Elvis Woo

To whom be glory forever and ever. Amen.

Skip to: Content | Sidebar | Footer



Category: Linux

Close SELINUX (Needn’t reboot Linux)

17 December, 2009 (14:53) | Linux

Edit /etc/sysconfig/selinux
………….
#SELINUX=enforcing
SELINUX=disabled
…..
:wq
Then run commont "setenforce 0"

Batch download FTP files

9 October, 2009 (17:03) | Linux

ftp>prompt
ftp>mget *.*
or 
lftp ftp://xxxx.xx
mirror

Apache IndexesDirectory Charset

9 October, 2009 (16:59) | Application System, Linux

Create a .htaccess file at the root directory of website
Add "IndexOptions Charset=GB2312"  and save it.
Finished.

Installed ImageVue on CentOS 5

18 July, 2009 (21:03) | Application System, Linux


Kill User Connections

30 March, 2009 (11:52) | Linux

pkill -kill -t (user’s pts)

Hushlogin

1 March, 2009 (12:33) | Linux

touch .hushlogin

Clear History “Last” Command (CentOS 5)

1 March, 2009 (12:15) | Linux

# echo >.bash_history
# vim /etc/profile
    ……
    HOSTNAME=`/bin/hostname`
    HISTSIZE=0
    if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
        INPUTRC=/etc/inputrc
   ……
  :wq
# exit
If you want to keep the history when before you logout. You can keep the HISTSIZE=1000 and add "history -c" in the file .bash_logout.

Pinging Broadcast Address

4 March, 2008 (20:03) | Linux, Network

For example: 
[user@linuxos ~]# ping 172.30.30.0 -b
WARNING: pinging broadcast address
PING 172.30.30.0 (172.30.30.0) 56(84) bytes of data.
64 bytes from 172.30.30.123: icmp_seq=1 ttl=255 time=0.805 ms
64 bytes from 172.30.30.2: icmp_seq=1 ttl=255 time=1.30 ms (DUP!)
64 bytes from 172.30.30.15: icmp_seq=1 ttl=64 time=33.0 ms (DUP!)
64 bytes from 172.30.30.11: icmp_seq=1 ttl=64 time=35.0 ms (DUP!)
64 bytes from 172.30.30.14: icmp_seq=1 ttl=64 time=37.2 ms (DUP!)
64 bytes [...]

Fix Incorrect GMT time in Proftpd

2 March, 2008 (11:09) | Application System, Linux

Edit proftpd.conf
Add TimesGMT off 

Then save & quit and create a softlink
ln -s /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/CST
restart proftpd
************************************************

Remove “Apache 2 Test Page”

28 February, 2008 (16:53) | Application System, Linux

Edit or Replace /var/www/error/noindex.html
*****************************************