-
Recent Posts
Archives
Links
Category Archives: Linux
[Centos] Change your default rpm query format on multi-lib archs (like x86_64)
http://grokbase.com/t/centos.org/centos/2005/01/centos-change-your-default-rpm-query-format-on-multi-lib-archs-like-x86-64/1277ni5dyifjolxwsmqjhio6j7m4 All, I am now building rpms on, and using a multi-lib arch (x86_64) for the first time … when using the standard command: rpm -qa | grep pkg_name The results might be pkg_name.i386 or pkg_name.x86_64 … or both. But, … Continue reading
Posted in Linux
Leave a comment
how to backup esxi vm images
http://communities.vmware.com/docs/DOC-8760
Posted in Linux
Leave a comment
Rar under linux
Create a rar package with 50M size. rar a -m5 -v50000k -R bigphoto.rar bigphoto/
Posted in Linux
Leave a comment
windows server 2008 terminal server license
zz: http://forums.mydigitallife.info/threads/4077-Windows-Server-2008-Terminal-Server-Licensing Note it .;P
Posted in Linux
Leave a comment
vmrun control vmware server
vmrun -T server -h https://192.168.0.2:8333/sdk -u root -p password start “[standard] vhost-11-win2k3_1/vhost-11-win2k3.vmx” find more help try vmrun -h vmrun version 2.0.2 build-203138 Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS] AUTHENTICATION-FLAGS ——————– These must appear before the command and any command parameters. -h … Continue reading
Install php-fpm 5.2.17 via apt +nginx
1. add apt key apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 19803648C18789EA 2. add the source into /etc/apt/source.list. the source is only avaiable for hardy and lucid version. deb http://ppa.launchpad.net/skettler/php/ubuntu lucid main deb-src http://ppa.launchpad.net/skettler/php/ubuntu lucid main root@ubuntu:~# apt-get update root@ubuntu:~# apt-cache search … Continue reading
Posted in Linux, PHP
Leave a comment
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