Thursday, January 28, 2010

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.



---

Wednesday, January 27, 2010

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 output file

A) For minimum decent results (updated 19-01-2008)
(poor quality, but not disturbing)
(resulted file size: less than 6.9MB)

ffmpeg -i input.avi -b 600k -s 320x240 -r 25 -acodec copy movie_600_320_25_.flv



B) For medium results (NOTE: this is temporary)
(resulted file size: 8MB)

ffmpeg -i input.avi -b 1024k -s 352x264 -r 25 -acodec copy movie_1024_352_25_.flv



C) For best results (file too big, maybe?)
(resulted file size: 22MB)

ffmpeg -i input.avi -b 2028k -s 640x480 -r 30 -acodec copy movie_2028_640_30_.flv



Further reading:
http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html
http://flowplayer.org/documentation/encoding

I found these steps from : http://forums.liveleak.com/showthread.php?t=1716 .



---

Wednesday, January 20, 2010

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



---

Friday, January 15, 2010

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 found.
# yum install libpng-devel

7. Configure: error: freetype.h not found.
# yum install freetype-devel

8. Configure: error: Unable to locate gmp.h
# yum install gmp-devel

9. Configure: error: Cannot find MySQL header files under /usr.
Note that the MySQL client library is not bundled anymore!
# yum install mysql-devel

10. Configure: error: Please reinstall the ncurses distribution
# yum install ncurses-devel

11. Checking for unixODBC support... configure: error: ODBC header file '/usr/include/sqlext.h' not found!
# yum install unixODBC-devel

12. Configure: error: Cannot find pspell
# yum install pspell-devel

13. Configure: error: snmp.h not found. Check your SNMP installation.
# yum install net-snmp-devel

14. Configure: error: utf8_mime2text() has new signature, but U8T_CANONICAL is missing. This should not happen. Check config.log for additional information.
# yum install libc-client-devel



---

Thursday, January 14, 2010

ping sweep bash script

I found this simple bash script which does it job - ping sweep.

for i in {1..255}; do ping 10.0.0.$i -c 1 | grep "time=";done

Remember to change to change 10.0.0 to your network subnet accordingly.

I found this script from : http://www.markmmanning.com/blog/2008/12/ping-sweep-with-bash.html .



---