Category Archives: Linux

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

Posted in Linux | Tagged | Leave a comment

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

Posted in Linux, PHP | Tagged | Leave a comment

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

Redhat 7.3 binary package site

http://packages.sw.be

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

Posted in Linux | Tagged | Leave a comment

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

sniffer portable 4.9

eval version   http://www.networkgeneral.com/registered/SnifferEval/SnifferPro_4_90_105.exe

Posted in Linux | Leave a comment

How To Resize (expand) QEMU qcow/qcow2/raw Disk Images

http://tjworld.net/wiki/Howto/ResizeQemuDiskImages

Posted in Linux | Leave a comment