-
Recent Posts
Archives
Links
Author Archives: nightcat
grub single boot and kernel panic reboot
ZZ from :http://www.linux-noob.com/forums/index.php?/topic/2928-grub-single-boot-and-kernel-panic-reboot/ 1.) Booting once-only – (same as lilo -R) In reference to http://www.gnu.org/s…g-once_002donly in grub.conf, add the following line to the beginning. default saved If for example your grub.conf looks like the one i have below. This … Continue reading
nginx configure for ubuntu
./configure –prefix=/usr –conf-path=/etc/nginx/nginx.conf \ –error-log-path=/var/log/nginx/error.log –pid-path=/var/run/nginx.pid \ –lock-path=/var/lock/nginx.lock –http-log-path=/var/log/nginx/access.log \ –http-client-body-temp-path=/var/lib/nginx/body –http-proxy-temp-path=/var/lib/nginx/proxy \ –http-fastcgi-temp-path=/var/lib/nginx/fastcgi –with-http_stub_status_module –with-pcre \ –with-http_flv_module –with-http_ssl_module –with-http_gzip_static_module \ –with-http_secure_link_module –with-http_dav_module \ –with-http_realip_module
centos/redhat ppp inital file
[root@localhost network-scripts]# cat ifcfg-ppp0 USERCTL=yes PEERDNS=yes TYPE=xDSL DEVICE=ppp0 BOOTPROTO=dialup ONBOOT=yes PIDFILE=/var/run/pppoe-adsl.pid FIREWALL=NONE PING=. PPPOE_TIMEOUT=80 LCP_FAILURE=3 LCP_INTERVAL=20 CLAMPMSS=1412 CONNECT_POLL=6 CONNECT_TIMEOUT=60 PERSIST=no SYNCHRONOUS=no DEFROUTE=yes USER=200000749076 PROVIDER=pppconfig NAME=pppconfig ETH=eth0
Get china IP
wget http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest grep CN delegated-apnic-latest|grep ipv4 > ipv4 cat ipv4 |awk -F”|” ‘{print $4″ “$5}’ >ipv t.php <?php $c=file_get_contents(“ipv”); $lines=explode(“\n”,$c); foreach($lines as $line){ $line=trim($line); $lp=explode(” “,$line); echo $lp[0].”/”.countmask($lp[1]).”\n”; } function countmask($i){ $p=0; while($i>1){ $i=$i/2; … Continue reading
Installing GRUB on a Hard Disk Image File
zz: http://www.omninerd.com/articles/Installing_GRUB_on_a_Hard_Disk_Image_File
Posted in Linux
Leave a comment
Kdevelop project was broken when going to 8.10
zz:https://bugs.launchpad.net/ubuntu/+source/kdevelop/+bug/253286
Posted in Linux
Leave a comment
Qemu 0.10 version compile from source
how to avoid with this error ” KVM support no – (#error Missing KVM capability KVM_CAP_DESTROY_MEMORY_REGION_WORKS) ” 1. Configure Kernel cd /usr/src/linux-2.6.x make menuconfig CONFIG_PARAVIRT_GUEST=y # CONFIG_XEN is not set CONFIG_KVM_CLOCK=y CONFIG_KVM_GUEST=y CONFIG_PARAVIRT=y CONFIG_PARAVIRT_CLOCK=y CONFIG_HAVE_KVM=y CONFIG_VIRTUALIZATION=y CONFIG_KVM=m CONFIG_KVM_INTEL=m … Continue reading
ubuntu china apt server
http://wiki.ubuntu.org.cn/index.php?title=Template:8.10source&variant=zh-cn that’s great
Posted in Linux
Leave a comment
centos Yum update repositories
http://centos.ustc.edu.cn/centos/ # URL: http://www.centos.org ### CentOS-4 APT older rpms repositories #rpm http://centos.ustc.edu.cn centos/4/apt/i386 os addons updates extras #rpm http://centos.ustc.edu.cn centos/4/apt/i386 contrib centosplus cfgfs ### CentOS-4 APT repomd repositories repomd http://centos.ustc.edu.cn centos/4/os/i386 repomd http://centos.ustc.edu.cn centos/4/addons/i386 repomd http://centos.ustc.edu.cn centos/4/extras/i386 repomd … Continue reading
Posted in Linux
Leave a comment