Posts

run tiger (mac os x 10.4.1) in vmware or virtualbox

I found this article and found it useful, so write it down before I forget. http://www.aegisryan.com/2005/09/11/simplest-installation-of-mac-osx86-in-vmware/ The guide above is very simple , use p2p to download the vmware image , extract it and launch with vmware , then you will get a running tiger (mac os x 10.4.1). But I try it with vmware player 3.0, the performance is very bad. And also the network card is not working. Then after google around , I found that virtualbox had better support , so I try it with Virtualbox 3.1.4 Open source edition, the performance much more better and consider usable. Without much more modification , I can start browsing. One trick is you have to press F8 during boot menu and enter : platform=x86pc , otherwise the boot process will hang at acpi detection. Now have another problem is wanted to update it from version 10.4.1 to 10.4.11 seem no possible , because tiger support intel chip only start from 10.4.4 , so officially there is no updater which can u...

Postfix restricting users to send mails to certain domains or their own domain

Follow the steps suggested in postfix wiki will be able to restrict a list of users for sending emails to limited domains. http://postfix.wiki.xs4all.nl/index.php?title=Client_sender_recipient_restrictions To add on on the wiki , we can replace the ip address with the user email address. For example : Instead of #/etc/postfix/restricted_clients #Add the list of IP addresses which cannot send emails outside 192.168.0.11 local_only 192.168.0.12 local_only change it to #/etc/postfix/restricted_clients user@yourdomain.com local_only user2@yourdomain.com local_only The rest is the same , just try to restrict by user account instead of ip address. Zimbra is using postfix as it smtp daemon , so these two guides might help us to have better understanding : http://wiki.zimbra.com/index.php?title=Restrict_users_to_certain_domain http://wiki.zimbra.com/index.php?title=Restrict_sending_to_certain_domains ---

Checking root LVM partition

If one day you are facing the problem that I am having now , the following information might be very useful. I am using Fedora 12 and I suspect the root partition some how corrupted or facing bad sector issue power failure. Here is my solution: 1. Boot from Fedora 12 installation CD or DVD , select rescue installed system option. 2. Skip the mount volume step. You can't check file system when a volume is mounted. 3. When you are at the shell prompt, issue the following command. It will activate the LVM volume. lvm vgchange --ignorelockingfailure -P -a y 4. If you don't know the volume name , you can use the following command to list all the LVM volume. lvm lvs 5. then you can issue the following command to check for bad sector. I assume you are using ext4 file system for root partition. fsck.ext4 -c /dev/VolGroup/logVol00 Hope this will help. ---

Flash Aztech dsl600ew firmware with Router Tech

I just successfully flash my Aztech DSL600EW router's firmware with Router Tech Firmware. First upgrade firmware to official firmware 66.53.2-002 , if you need to download one , you might be able to find it at modem help web site. Then download the Router Tech firmware - routertech-ar7wrd-adam2-firmware-4ports-20100105.zip , I tested with this version and it is working. Using the web interface to upgrade the gateway reboot and run. The LED configuration might not correct by default , so telnet into the router , issue command : setenv led_conf led.sar600 && /sbin/reboot , the led colour should be back to normal. In case if you flash the firmware wrongly, you can refer to this URL : http://www.techarp.com/showarticle.aspx?artno=374&pgno=2 to restore the router back to official firmware. ---

How to convert avi to flv in Linux.

I did a couple of tests and these are the results that I've come up with. Needless to say that I am no expert, they are personal opinions, see them as a starting point. In the examples we will convert ".avi" to ".flv", and simply copy the sound. avi properties: codec: mpeg4 (lavc) DX50 bitrate: I think its VBR (variable bit rate) resolution: 640x480 frames per second: 30fps video size: 5.4MB sound: mp3 sound size: 1MB total SIZE: 6.4MB The tool we will be using is called ffmpeg. It's a command line application, but very simple to use. Probably already installed in your computer We use the cd command to guide the terminal to the folder where the "input.avi" file is. example: cd /home/username/Video A typical command, then, would be: explanation: ffmpeg the program -i input.avi the input file -b 1024k the output bitrate -s 320x240 the output resolution -r 25 the output frames per second -acodec copy the output audio codec movie_1024_320_25_.flv the o...

VMware Player 3 crash on Fedora 12

If you have the same issue like me , VMware Player 3 crash upon launching in Fedora 12, all you need is execute the following command with root privilege : cd /usr/lib/vmware/lib mv libcurl.so.4 libcurl.so.4.old Found the solution from : http://blog.adl.pl/fixing-vmware-player-crash-upon-start-in-fedora-12/455 http://communities.vmware.com/message/1444574#1444574 ---

Manually compile php at centos with default installation

If you plan to manually compile php at cents with the default installation , you might need to use the following command to install additional packages before you start the compilation . yum install gcc httpd-devel libxml2-devel openssl-devel bzip2-devel curl-devel libpng-devel gmp-devel libc-client-devel mysql-devel aspell-devel Here is the list of error that you might get when you try to compile php yourself at the Cent OS 5.4 server. 1. Configure: error: xml2-config not found. Please check your libxml2 installation. # yum install libxml2-devel 2. Checking for pkg-config... /usr/bin/pkg-config configure: error: Cannot find OpenSSL's # yum install openssl-devel 3. Configure: error: Please reinstall the BZip2 distribution # yum install bzip2-devel 4. Configure: error: Please reinstall the libcurl distribution - easy.h should be in /include/curl/ # yum install curl-devel 5. Configure: error: libjpeg.(a|so) not found. # yum install libjpeg-devel 6. Configure: error: libpng.(a|so) not...