2010年5月26日 星期三

sslvpn

tun module in ubuntu 10.04

sudo apt-get install build-essential linux-headers-`uname -r`
mkdir faketun
cd faketun
echo -e "#include <linux/module.h>\nstatic int start__module(void) {return 0;}\nstatic void end__module(void){return;}\nmodule_init(start__module);\nmodule_exit(end__module);">tun.c
echo -e "obj-m += tun.o\nall:\n\tmake -C /lib/modules/\$(shell uname -r)/build/ M=\$(PWD) modules\nclean:\n\tmake -C /lib/modules/\$(shell uname -r)/build/ M=\$(PWD) clean\nclean-files := Module.symvers">Makefile
make
sudo install tun.ko /lib/modules/`uname -r`/kernel/net/tun.ko
sudo depmod -a
sudo modprobe tun



http://mad-scientist.net/juniper.html

2010年5月19日 星期三

lxr for uboot and linux

git repo with uboot and linux
http://mohammadthalif.wordpress.com/2010/05/09/how-to-setup-lxr/

plain repo
http://royc10000.blogspot.com/2009/10/debian-lxr.html

2010年5月3日 星期一

VPN

http://www.douhua.im/2010/01/06/ubuntu-server-install-openvpn-server/

2010年4月28日 星期三

ssd tunes on Linux

http://thunk.org/tytso/blog/2009/02/20/aligning-filesystems-to-an-ssds-erase-block-size/

http://www.nuclex.org/blog/personal/80-aligning-an-ssd-on-linux

http://ubuntuforums.org/showthread.php?t=1178209

http://www.brighthub.com/computing/linux/articles/9170.aspx

http://en.dogeno.us/2010/01/karmic-with-solid-state-disk-how-to-optimize-ubuntu-for-ssd/

http://ubuntuforums.org/showthread.php?t=1441374

http://aspireonezg5.wordpress.com/2009/10/16/karmic-howto/

tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
none /var/tmp aufs noatime,br:/tmp=rw:/var/tmp=ro 0 0
none /var/log aufs noatime,br:/tmp=rw:/var/log=ro 0 0
none /var/cache aufs noatime,br:/tmp=rw:/var/cache=ro 0 0
tmpfs /var/log/apache2 tmpfs defaults,noatime,mode=1777 0 0
none /home/<user>/.cache aufs noatime,br:/tmp=rw:/home/<user>/.cache=ro 0 0

2010年4月16日 星期五

windows xp migration

http://drbl.nchc.org.tw/advanced/fine-print.php?path=./01_DRBL/08-drbl-sanboot.faq

http://drbl.nchc.org.tw/drbl-winroll/

2010年4月12日 星期一

softraid

http://ericbbs.blogspot.com/2009/05/mdadm-raid.html

http://blog.orz101.net/node/169

gdb

link

link