Hylafax/FaxMail with unicode encoding

It is pretty hard to get unicode works with fax ..
here are some scripts that i used to get the unicode done for incoming html/text faxes.

vi /etc/hylafax/faxmail/text/html
cp -pf $1 /tmp/email.html
/usr/bin/lynx -dump -display_charset=utf-8 /tmp/email.html > /tmp/html_txt
/usr/bin/uniprint -font /etc/hylafax/faxmail/Cyberbit.ttf -in /tmp/html_txt -out /tmp/html_txt.uni
cat /tmp/html_txt.uni|/etc/hylafax/faxmail/filter.pl
rm /tmp/email.html
rm /tmp/html_txt
rm /tmp/html_txt.uni

plain text

vi /etc/hylafax/faxmail/text/plain
/usr/bin/uniprint -font /etc/hylafax/faxmail/Cyberbit.ttf -in $1 -out /tmp/plain_txt
# echo " "
# echo "showpage"
cat /tmp/plain_txt | /etc/hylafax/faxmail/filter.pl
$rm /tmp/plain_txt

# Read from the standard input
# Count the number of "showpage"
for($i=0;$i<=$size;$i++){if($text[$i] =~ /showpage/){$count++;}}
# Discard the last line that contain "showpage"
if($text[$i] =~ /showpage/){
print $text[$i];

Browse internet from Mac with android

At last i managed to get browsing working through 3G connection in android (donut 1.6).

– Enable root in android
– install android-wifi-tether (http://code.google.com/p/android-wifi-tether/)
– configure it either with bluetooth or wireless
– connect your laptop with the android using wireless or bluetooth
– there we go now you should be able to browse internet, if you have netfilter module properly working in wireless tether
– since my kernel doesnt have netfilter module, the natting was not working – I was able to resolve domains from my laptop , but was not able to get the data
– Installed proxoid, and started
– Configured my webbrowser to use proxoid as proxy, it works … charm!!!!


get the root access back on android development phone ADP1

It seems that after upgrading ADP1 with 1.6 , the root access gone.

It can be recovered with adb tool:

Connect your mobile with the computer,

do adb to the phone
$adb shell
$mount -o remount,rw -t yaffs2 /dev/block/mtdblock3 /system
$cd /system/bin
$cat sh > su
$chmod 4755 su

Worked Great!!!

Ref: http://phandroid.com/2009/04/29/adp-15-initial-thoughts/

Fix for Postfix X-Authentication Warning

X-Authentication-Warning can appear on the mail header , when the user sending email is not trusted by the mail server. There is a chance that email are considered as spam because of this.

To fix it you can add the user to /etc/mail/trusted-users

If your system has forms that used to send email as apache user, you can add “apache” user to the trusted-users file.

Work with Android SDK on MAC OS X

It is wonderful experiance to work with android sdk and it is straight forward to get it working.
– Install Eclipse : http://www.eclipse.org/downloads/ (A Java or RCP version of Eclipse is recommended.)
– Download android SDK to a particular location
– Create a .bash_profile under your home directory (if not existing) with :
– Start eclipse and go to Help > Software Updates > Add Site
Enter the url : https://dl-ssl.google.com/android/eclipse/
and click finish. now you will be able to see the Developer tool listed
– Select and install the Developer tools from the same window.
– Restart eclipse.
– Connect your phone and test running your application.


Got HTC G1 Android working with Airtel Kerala

It was sad to just keep watching a phone without even switching it on, It took long for me to get HTC G1 development phone shopped to India, and once i got it after long waiting and excitement i was not able to get in to the home screen or basically cant do anyting with it.  G1 needs to have a data connection with the provider to start using, basically we need to login or register new account with google to start working with the phone. I was keep on trying with a BSNL connection with GPRS enabled to get the Android based G1 working. Anyway Atlast i got it working with Airtel connection (Kerala, Kollam) . Here is the APN configuration Information i used. Change the MNC value according to the location you are in.

Name : Airtel (it can be anything, just a name)
APN : airtelgprs.com
Proxy :
Port : 8080
Username : <Not Set>
Password : <Not Set>
Server : <Not Set>
MMSC : <Not Set>
MMS Proxy : <Not Set>
MMS Port : <Not Set>
MCC : 404
MNC : 95
APN Type: <Not Set>

That is it, once you have the APN settings entered correctly you will see data connection symbol on the top status bar.
It was hassle for me to get it working. So hope this help someone !!!