Clean Start

firewall

apt-get update
apt-get install arno-iptables-firewall

open ports: 80 443 22

fix locale problem

dpkg-reconfigure locales

or

locale-gen zh_CN.UTF-8

add user

add an user for everyday use, and add he to www-data group for publish

adduser john
usermod -a -G www-data ...
more ...

find and chmod only folders or files

If you want to change mode of files and folders to different value, here're the scripts:

Recursive chmod only files within this folder:

find . -type f -exec chmod 0600 {} \;

Recursive chmod only folders within this folder:

find . -type d -exec chmod 0755 {} \;

Maybe you can put these to a ...

more ...

upgrade debian to 6.0 (Squeeze)

linode上的debian一直跑的是5.0 lenny,想做一次apt-get update居然失败,连续换了几个repo都不行,仔细检查,原来2009年发布的lenny已经处于unsupport状态了,一般的repo里面都已经不再有lenny,而需要要archive.debian.org的repo。

改好source.list,想着干脆升级到debian 6(squeeze)算了,于是按照通常思路,apt-get update; apt-get upgrade; apt-get dist-upgrade 期间遇到一个package依赖不对,干脆删除,升级完成后,修改source.list指向 squeeze,重新更新,悲剧了,网络不通,仔细调查,发现是ipv6好好的,ipv4不行,需要手工配置,折腾几下没弄好,干脆恢复升级前的snapshot(备份备份,对系统做重大改变之前一定要备份啊!) , 按照linode文档里面的方法,基本上就是 ...

more ...

linode512 openssl performance

OpenSSL 0.9.8o 01 Jun 2010
built on: Thu Feb 10 20:02:37 UTC 2011
options:bn(64,32) md2(int) rc4(idx,int) des(ptr,risc1,16,long)
aes(partial) blowfish(idx)
compiler: gcc -fPIC -DOPENSSL_PIC -DZLIB -DOPENSSL_THREADS
-D_REENTRANT -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DTERMIO -O3
-march=i686 -Wa ...
more ...

Pages

  • About