Author Archives: nightcat

[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

Posted in Linux | Tagged , | Leave a comment

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

Install php-fpm via yum

http://jk.scanmon.com/en/wp/2010/02/installing-nginx-php-fpm-using-centos-alt-ru-epel-repo-in-centos.html I have create post about installing nginx + php-fpm from source before in here http://adityo.blog.binusian.org/?p=428. In this tutorial i will create a more simple way installing nginx + php-fpm using yum with centos.alt.ru & EPEL repo. Here it’s goes: … Continue reading

Posted in PHP | Leave a comment

install php-fpm 5.3 from apt source

edit /etc/apt/sources.lst deb http://packages.dotdeb.org stable all deb-src http://packages.dotdeb.org stable all deb http://php53.dotdeb.org stable all deb-src http://php53.dotdeb.org stable all apt-key adv –keyserver keyserver.ubuntu.com –recv-keys E9C74FEEA2098A6E wget http://us.archive.ubuntu.com/ubuntu/pool/main/i/icu/libicu38_3.8-6ubuntu0.2_amd64.deb wget  http://us.archive.ubuntu.com/ubuntu/pool/main/k/krb5/libkrb53_1.6.dfsg.4~beta1-5ubuntu2_amd64.deb dpkg -i *.deb Install the latest php 5.3 from apt source apt-get … Continue reading

Posted in PHP | Tagged | 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

Posted in Linux | Tagged | Leave a comment

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

Posted in Linux | Tagged | Leave a comment