Saturday, June 28, 2008

Running Linux on imate pda2k (blueangel)

Hi this post has nothing to nokia, but i have an ole imate pda2k where i dont use allot
i found on the internet how to make it run linux
the main idea is to add linux on memory card and run form it
the main link is handheld website
but i have to search allot to find solution for errors and to how connect to it by ssh from my ubuntu laptop

the red font is the configuration on my laptop that need to be changed by your configuration

- STEP 0 Backup all of your data (including sd card).

- STEP 1 Download the Kernel, etc.

zImage
initrd
haret.exe
GPE BlueAngel Image
startup.txt
autorun


- STEP 2 Format SD-Card

Become root and create 2 partitions on the SD-Card

The first partition is for the kernel, startup scripts and bootloader.
The second is for the GPE image.
One of 30MB (for kernel and bootloader) and another (or rest of SD) for the GPE image.
sudo fdisk /dev/mmcblk0
This exmaple assumes that /dev/sda is your sd card on your host.
If you only found /dev/sda1 insted of sda, that means that the card is already formated and contains a partition, in this case you need to delete this partition and create new ones
fdisk /dev/sda1
Press p to list the partitions and its numbers
Press d to delete a partition
Press w to save and exit
Then start creating the partitons on /dev/sda1
Press n to create new partition
Press p to choose type primary
Press enter to default to create partition starting from first cylinder for the first one, or right after it for the second one
Enter size of the new partiton ex: +30M
The first partition you crete (for kernel and bootloader) must be of type that windows understands, like FAT16 or FAT32, or else the card would not be read by the device at all
Press t to change the partition type from "83 Linux" to "c FAT32"
Press w to save and exit
Format the Partitions
mkfs.vfat /dev/mmcblk0p1
mkfs.ext3 /dev/mmcblk0p2
Now mount those partitions.
mount -t vfat /dev/mmcblk0p1 /mnt/sd0
mount -t ext3 /dev/mmcblk0p2 /mnt/sd1

- STEP 3 Copy kernel, etc onto first partition

Create a new directory in /mnt/sd0 called 'linux'.
Copy zImage, initrd, startup and haret into the 'linux directory'
Create another directory in /mnt/sd0 called '2577'.
Copy autorun.exe into '2577'

- STEP 4 Extract GPE into the EXT3 Partition

Change to /mnt/sd1 'cd /mnt/sd1'
Execute tar xjvpf /gpe-ba.tar.bz2
DO NOT, as many intelligent people have done, just copy the archive onto the partition!

- STEP 5 Change to /root and unmount
cd /
sync
umount
/dev/mmcblk0p1
umount /dev/mmcblk0p2

- STEP 6 Now boot linux by inserting the SD-Card into the BlueAngel. DONE!-

If linux didn't load, and instead you get haret.exe program running and asking to enter a filename to load or you get a tux image and a progress bar and it stuck on that.
Remove the card and reset the device then re-insert the card and try again until it loads

if every thing went ok, now we need to allow ubuntu to access the device through ssh

is you are like me have ubuntu 8.04 and cannot connect to the device, do the follwoing

- create a file called /etc/apm/scripts.d/usbnet
add this to it

#!/bin/sh
# Unloads/loads usb0 so it always works

. /etc/default/usbd

if [ "$1" = suspend ]; then
ifconfig usb0 down
rmmod g_ether
rmmod pxa2xx_udc
elif [ "$1" = resume ] && [ "$2" != standby ]; then
modprobe g_ether
modprobe -r $usbdmodule
modprobe $usbdmodule
fi


now you can

ssh root@192.168.0.206

the password is rootme

to access the ineternet from the device using the usb connection do the follwoing (enable nating)

- apt-get install dnsmasq ipmasq
- iptables -t nat -A POSTROUTING -o usb0 -j MASQUERADE
- echo 1 > /proc/sys/net/ipv4/ip_forward
- /etc/init.d/dnsmasq restart
- dpkg-reconfigure ipmasq
Reconfigure ipmasq to start after networking has been started

and enjoy internet in the pda2k from the usb cable

Next, i'll try to find how to add android on it

Sunday, June 22, 2008

Running Google’s Android On A N95






This one hit me completely out of the blue. Apparently a chap named Jovan has managed to get Android up and running on a Nokia N95. Yes, the same Nokia N95 that runs the S60 operating system. He claims to now have a dual boot between Andriod and S60. He backs up this claim by the video above and another one below, with which he demoes Google Maps and the Dialer. After playing with this setup he says, “My impressions after using it are all positive, its much faster than Symbian, looks better, thought some functions still dont work, and the 3D engine is slow and lags”.



Saturday, June 21, 2008

using 3G usb modem with linux (ubuntu 8.04)

Today i have a hand on a 3G usb modem and i was sad that it only has drivers for both windows and Apple
so i connect it to windows to see how it works
it install the driver automatically and then a software is installed that allow it to dial by just clicking Connect (easy windows)
after i successfully use it under windows i start searching for how to make it work with linux

and i was surprised that ubuntu has the driver for it

this is what i did to make my 3G USB modem (Huawei E220)

1- sudo apt-get install wvdial gnome-ppp
to install wvdial, a PPP dial-in command line software, and a GNOME frontend to it

2- wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyUSB0<*1>: ATQ0 V1 E1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB0<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB0<*1>: Speed 9600: AT -- OK
ttyUSB0<*1>: Max speed is 9600; that should be safe.
ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
WvModem<*1>: Cannot get information for serial port.
ttyUSB1<*1>: ATQ0 V1 E1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 Z -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB1<*1>: Modem Identifier: ATI -- Manufacturer: huawei
ttyUSB1<*1>: Speed 9600: AT -- OK
ttyUSB1<*1>: Max speed is 9600; that should be safe.
ttyUSB1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found a modem on /dev/ttyUSB0.
Modem configuration written to /etc/wvdial.conf.
/etc/wvdial.conf: Can't write '/etc/wvdial.conf.tmp13605': Permission denied
/etc/wvdial.conf: Can't write '/etc/wvdial.conf' ('/etc/wvdial.conf'): Bad file descriptor
ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB1: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

it cannot write to /etc/wvdial, i should have been run it inside sudo

3- sudo vi /etc/wvdial.conf
[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = username
Password = password
Stupid Mode = 1

i only changed the name of the modem

4- wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Jun 21 21:52:03 2008
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 13733
--> Using interface ppp0
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> local IP address 10.70.34.143
--> pppd: h�[06][08] �[06][08]
--> remote IP address 10.64.64.64
--> pppd: h�[06][08] �[06][08]
--> primary DNS address 212.103.160.26
--> pppd: h�[06][08] �[06][08]
--> secondary DNS address 4.2.2.2
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> Connect time 0.5 minutes.
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> Disconnecting at Sat Jun 21 21:52:34 2008
--> The PPP daemon has died: A modem hung up the phone (exit code = 16)
--> man pppd explains pppd error codes in more detail.
--> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
--> Auto Reconnect will be attempted in 5 seconds
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory

and her it works and i can surf the internet

enjoy it and try it for different operators and tell me about your test

Using nokia n95 as modem for linux (ubuntu 8.04)

Today i had problems with my internet connection again
so i decided to give a try for using Nokia N95 as a modem for my ubuntu laptop
i had write about it before and i failed Read here
Today i succeeded and this is what i did

1- connect the Nokia to the laptop using usb cable
2- select pcsuite when asked in nokia
3- open terminal and do the following
lsusb
you got something similar to this
Bus 005 Device 002: ID 0c45:62c0 Microdia
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 002: ID 0421:04f0 Nokia Mobile Phones
Bus 001 Device 001: ID 0000:0000

5- sudo modprobe cdc_acm
6- sudo /sbin/modprobe usbserial vendor=0x0421 product=0x04f0
7- sudo vi /etc/wvdial.conf
delete everything in it and add the following (this is what worked for me)

[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = username
Password = password
Stupid Mode = 1

8- wvdialconf create
you get something similar to this

Editing `create'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 Z -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyACM0<*1>: Modem Identifier: ATI -- Nokia
ttyACM0<*1>: Speed 4800: AT -- OK
ttyACM0<*1>: Speed 9600: AT -- OK
ttyACM0<*1>: Speed 19200: AT -- OK
ttyACM0<*1>: Speed 38400: AT -- OK
ttyACM0<*1>: Speed 57600: AT -- OK
ttyACM0<*1>: Speed 115200: AT -- OK
ttyACM0<*1>: Speed 230400: AT -- OK
ttyACM0<*1>: Speed 460800: AT -- OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK

Found an USB modem on /dev/ttyACM0.
Modem configuration written to create.
ttyACM0: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

9- wvdial
you got

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Sat Jun 21 13:31:29 2008
--> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
--> --> PAP (Password Authentication Protocol) may be flaky.
--> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
--> --> CHAP (Challenge Handshake) may be flaky.
--> Pid of pppd: 4551
--> Using interface ppp0
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> local IP address 10.70.15.96
--> pppd: h�[06][08] �[06][08]
--> remote IP address 10.6.6.6
--> pppd: h�[06][08] �[06][08]
--> primary DNS address 212.103.160.26
--> pppd: h�[06][08] �[06][08]
--> secondary DNS address 4.2.2.2
--> pppd: h�[06][08] �[06][08]
Caught signal 2: Attempting to exit gracefully...
--> Terminating on signal 15
--> pppd: h�[06][08] �[06][08]
--> Connect time 0.4 minutes.
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]
--> pppd: h�[06][08] �[06][08]

to stop click CTRL+C

no enjoy the internet with the speed of your mobile data connection

this is how it's for my mobile (using etisalat egypt 3.75G)

Sunday, June 15, 2008

Tips for speeding up the N95 OS

while surfing the internet looking for news about N95
I found these tips

1. Set your log duration to 1 day. Works wonders! Normally, the call log list defaults to 30 days, but that's completely unnecessary, at least from our speed point of view.

The method: Open up the Log application, hit options (left softkey), and select the Settings option. Change the Log duration to (optimally) 1 day, or you can try 10 days. Either way, it should give you a noticeable speed increase.
Enter the Log application's Options menu.

Select the Settings option..

Change the log duration to 1 day.


2. Use the Edit key to select multiple entries. Here's a little known tip that I found out quite accidentally: when browsing a list of markable items, hold down the Edit key and use the directional keys to mark (check) multiple items quick and easily. Really handy when you want to delete a lot of text messages, for example, or when you want to add pictures to an album. Unfortunately, due to the way it was programmed, the Edit key doesn't individually mark an item when pressed once - you need to keep it held down and just use the arrow keys to select items.

Use the Edit Key to select multiple items in a list.

3. Use keypad shortcuts when browsing the Menu. Whether your Menu is in grid or list mode, you can use the numerical keypad to quickly jump to an item. It's easy to see with the grid option enabled - each key corresponds to the item that's on the menu (12 items, 12 keys). So if you wanted to open the application in the bottom right corner, just hit the # (pound) key. Note that accessing menu items with this method actually executes the application or folder, instead of just selecting the item.

On a similar note, some phones have Icon Animation on by default - this adds a 3D "twisting" effect to your Theme icons. It doesn't work with custom application icons, and is generally pretty useless. Turn it off by hitting the menu key -> Options -> Icon Animation.
Turn off Icon Animations in menus for a little speed-up.

4. Go through text messages faster with Nokia Conversation. Conversation is an interface extension cooked up in Nokia's Beta labs that lets you read text messages by sender, instead of some huge jumbo list of texts. Another benefit: you can also delete by sender, which is great for cutting people out of your life!

Once you've installed the Nokia Contacts Support Services Package and Nokia Conversation, you can access the extension by going to Contacts and hitting the
right arrow key.

Download Nokia Conversation

5. Keypad shortcuts work on the Clock application too. This will probably save you a grand total of one, maybe two keystrokes. In the pre-installed Clock application, typing in a number key at the default screen creates a new Alarm with the hour already filled in.

6. The multimedia menu: disable everything. There's a wealth of useless options when it comes to the Multimedia Menu. Custom background images, imgae effects, "menu sounds", and start-up animation. Shut everything off for maximum speed. The background image option should be set to Graphics -> Themes, which should just display the current theme's default background instead of loading another one.

Honestly though, the multimedia menu always seems to be one of the slowest things ever.
Turn off all the options relating to the Multimedia Menu.

7. Finally, keep your phone's firmware updated! All right, that was a cheap one. But seriously, sometimes Nokia actually improves the user interface a bit - take the latest N95 firmware, for example, which speeds up the Gallery by removing the mean bug that caused the gallery menu to appear for a second or two before (slowly) sliding off the screen.


thanks for www.n95users.com for this information

Joikuspot is a Must Have S60 App

Joikuspot is a must-have application for our S60-powered Nokia phones. This free download turns the phone into a wireless access point for other devices like laptop, internet tablet, iPod touch, or iPhone. this video shows you how simple it is to use.



thanks to Vlog for these information

Free push email solution for Symbian S60 devices

BlueWhaleMail app launches offering free mobile push email and push Facebook service initially available for Nokia Series 60 and SonyEricsson feature phones.

Michael Maguire, who previously worked in the BlackBerry Applications team at Research In Motion, founded Blue Whale Systems Ltd: its BlueWhaleMail application offers a free mobile push email and push Facebook service. On launch, the service will initially be available for Nokia Series 60 and SonyEricsson feature phones.

"My team and I think there are some great dedicated mobile email devices out there - but we're biased, because half of us helped build one of them," said Michael Maguire. "Unfortunately the rest of the world's 1.1 billion email users have phones with unusable, hard to configure in-built email that few people can be bothered to set-up. With BlueWhaleMail, we've gone back to the drawing board so that people can keep the phone they like and still stay in touch on the go."

BlueWhaleMail doesn't just allow you to securely send and receive email messages from services such as Yahoo! and Google Mail*, it also notifies you of your friends' status updates and news items on Facebook, and allows you to send them a message or write on their wall in response. Messages and notifications are displayed as soon as they are received without requiring users to manually connect to their inbox.

"We're trying to make social networking -- messaging, news feeds and status updates -- as much a part of mobile life as Text Messaging. People who are unwilling to pay for or use a dedicated mobile email device still deserve a great mobile email service and that's exactly what BlueWhaleMail offers," said Richard Seward, founder and CEO of Blue Whale Systems Ltd. "Our service is the simplest choice for those wishing to stay on top of their social life while they're away from their computer".

"The complexity of setting up mobile applications on many phones is a great obstacle for most people so we've worked hard to make BlueWhaleMail child's play to setup" continued Michael Maguire. BlueWhaleMail can be interactively test-driven and pre-configured for download at www.bluewhalemail.com - most people will only need to know their email address and password. Alternatively browse to m.bluewhale.net on your mobile.

Donwnload here

Python for the S60 Platform eLearning

I've just found a great online tutorial (available as stand-alone for offline learning) over at Forum Nokia website that will teach you about Python, the open source programming language optimized for rapid application prototyping.

It is an object-oriented scripting language that is easy to learn and use and supported on many platforms.

This module gives students an idea of where and how the language can be used, and show how to write Python programs that run on the S60 platform. The module assumes some familiarity with object-oriented programming languages.

Python is a dynamic object-oriented programming language that can be used for many kinds of software development. It offers strong support for integration with other languages and tools, comes with extensive standard libraries, and can be learned in a few days.

Many Python programmers report substantial productivity gains and feel the language encourages the development of higher quality, more maintainable code.

PyS60 is the Nokia's port of the Python language to the S60 smartphone platform. In addition to the standard features of the Python language, PyS60 provides access to many of uniquely Smartphone functions, such as camera, contacts, calendar, audio recording and playing, TCP/IP and Bluetooth communications and simple telephony.

Download Here

NeuTouch - MultiTouch Engine using Nokia N95

I found this amazing video describing this new technology
check it



this is how to do it




How to Get faster GPS locks and Get more from Navigation with Nokia Maps

* First and foremost, make sure that your device has the latest firmware. In many cases, new firmware means support for Assisted GPS, a way of vastly speeding up GPS acquisition time - see my piece on this on AAS.

* Make 100% sure that 'Settings | General | Positioning | Positioning server' has the right access point - it should be set to your main 3G data provider, e.g. 'Vodafone live' or 'Orange Internet'. If this is wrong, then GPS locks will be several minutes at least on many S60 phones.

* Make sure you're in an area of data coverage - being stuck in the wilds or in a valley will mean no data, which in turn means no Assisted GPS.

* Don't try and get a GPS lock while moving, unless there's absolutely no alternative. It's hard enough as it is for your phone to lock onto half a dozen satellites whizzing overhead at thousands of miles per hour - adding in extra complications by moving the device itself just slows down lock times considerably.

* Be realistic if you are moving or if there are tall buildings around, or if you're in a vehicle with an incomplete view of the sky - locks may take several minutes. The reason why dedicated sat-navs can acquire GPS locks more quickly in these challenging circumstances is that they have higher power, more sensitive receivers on board - the GPS inside most smartphones tends to be of lower power, to save battery life.

* Don't cover up the GPS antenna. On the N95, this is at the bottom of the keypad, so extend the slide. Find out where the GPS antenna is on your device and don't cover it with your hand during use - human flesh is reasonably good at blocking radio waves.

Accelerometer based music player

hake your music with Python

ScaladoThis motion powered music player for accelerometer equipped S60 phones is probably simplest sensor based application that I have seen so far.

It provides the very basic functionality and allows you to change the music tracks with two different gestures.

Application lacks any kind of the user interface in this phase but author promised that application and interface will be improved before the official release.

This little application is created by Daniel Rocha just to show what you can do with Python for S60 and it took less than two hours to develop this minimalistic music player with sensor support.

Speaking of the functionality, shaking the phone to left advances one track in the playlist while shaking it to the right goes back one track, and putting it face down shuts down the application which is the coolest part actually ;)




Location Tagger



With Nokia Location Tagger, you can automatically tag your location data to your pictures. As you take a picture, your GPS coordinates are saved to the EXIF header of the JPEG file. You can use this data later, for example, to locate your pictures on a map.

Location tagging functionality has now been productized, and Nokia Location Tagger will not be further developed as standalone application

Download it here

Wednesday, June 4, 2008

Nokia barcode reader

I wondered many times what the Barcode application used for
and i usually try to use it but failed
and after i read this article
Google Android Will Chane your shopping Experience
i start to search about it
open your Nokia bar code reader application and try to read this

what you got
this is a way to use it
you can create you own Barcode from
Nokia Barcode generator
I'll dig a little about it and what we can use it for
for now enjoy hiding data to your friends in your signature ;)