Final thoughts Payday loan Top Advantages of our payday loans

Creating your own themes for Sony Ericsson K300i in Linux

First of all, Get some funny tux pictures from http://tux.crystalxp.net/en.cat.16.3.12.html.

Now get the tux.thm(or any other theme) from http://www.esato.com/logos/colour/k300themes.php?p=42

Ok , let’s check the theme file.

file tux.thm
tux.thm: POSIX tar archive
Oh.. It’s just a tar file ..Now Let’s untar it:

tar xvf tux.thm

background.png highlightSmall.png softkeys.png tabUnselected.png
desktop.png popupHighlight.png standby.png Theme.xml
doubleTitle.png popup.png status.png titleSmall.png
highlight.png popupTitle.png tabSelected.png

These files has a pre-defined sizes . It will be better to keep the size of
each image files as it will look good in the mobile.

Let’s peek into the Theme.xml file and see it’s structure.

<?xml version=”1.0″?>

<Sony_Ericsson_theme version=”3.0″>

<Author_firstname value=”Maxin”/>

<Author_url value=”153EE6″/>

<Background Color=”0xbbf7fb”/>

<Background_image Source=”background.png”/>

<Desktop Color=”0x153ee6″/>

<Desktop_image Source=”desktop.png”/>

<Desktop_title_text Color=”0xbbf7fb”/>

<Highlight_text Color=”0xbbf7fb”/>

<Highlight Color=”0x153ee6″/>

<Highlight_image Source=”highlight.png”/>

<Highlight_small_image Source=”highlightSmall.png”/>

<Popup_text Color=”0xbbf7fb”/>

<Popup Color=”0x153ee6″/>

<Popup_frame Color=”0xbbf7fb”/>

<Popup_highlight_text Color=”0×000040″/>

<Popup_highlight Color=”0xbbf7fb”/>

<Popup_highlight_image Source=”popupHighlight.png”/>

<Popup_image Source=”popup.png”/>

<Popup_scrollbar_background Color=”0x3cacff”/>

<Popup_scrollbar_slider Color=”0xbbf7fb”/>

<Popup_title_text Color=”0×000040″/>

<Popup_title Color=”0xbbf7fb”/>

<Popup_title_image Source=”popupTitle.png”/>

<Scrollbar_background Color=”0xbbf7fb”/>

<Scrollbar_slider Color=”0x0018b1″/>

<Softkeys_text Color=”0xbbf7fb”/>

<Softkeys Color=”0x153ee6″/>

<Softkeys_image Source=”softkeys.png”/>

<Standby_image Source=”standby.png”/>

<Standby_operatorname_text Color=”0xffffff”/>

<Standby_operatorname_outline Color=”0×000040″/>

<Standby_softkey_image Source=”softkeys.png”/>

<Standby_time Color=”0xffffff”/>

<Standby_time_outline Color=”0×000040″/>

<Standby_statusbar_image Source=”status.png”/>

<Tab_text Color=”0xbbf7fb”/>

<Tab Color=”0x153ee6″/>

<Tab_image Source=”doubleTitle.png”/>

<Tab_selected_image Source=”tabSelected.png”/>

<Tab_unselected_image Source=”tabUnselected.png”/>

<Text Color=”0×000040″/>

<Title_image Source=”doubleTitle.png”/>

<Title_small_image Source=”titleSmall.png”/>

<Title_text Color=”0xbbf7fb”/>

<Title Color=”0x153ee6″/>

<Wapbrowser_underline Color=”0x0000ff”/>

<Wapbrowser_tableborder Color=”0x0000ff”/>

</Sony_Ericsson_theme>

If you need to rename some of your files, then never forget to make change in this XML file too.. Otherwise, just replace the required files and don’t touch the XML file.. that’s safe if you are new to XML format :)

Now open the png image in GIMP and resize the image as that of the equivalent image in the theme.

Here the desktop.png file should be of size 128×110. You can resize your image in gimp by..

Image -> Scale Image ->
Then give Width as 128 and Height as 110

or just use the convert file if you want to write a shell script for the theme creation

convert -resize 128×110 source.png destination.png

This will take care of your resizing requirements :)

After that save that image as desktop.png .. Go on modifying these files till
you are satisfied.

Now create your theme by issuing this command.

tar cvf tux.thm *

Now let’s transfer the theme to K300i using the USB cable connected to our Gnu/Linux Machine.

obexftp –tty /dev/ttyUSB0 -p ./tux.thm Themes/tux.thm
Connecting…done
Sending “./tux.thm”…|done
Sending “Themes/tux.thm”… failed: Themes/tux.thm
(Don’t care the failed message.. )

Disconnecting…done

Save the theme in your mobile and apply it.. Now you have the cool tux theme in your mobile.

Readmore

Sending Linus.mp3 to K300i from Linux – The obexftp way

One of the most difficult things that I faced when connecting my Sony Ericsson K300i to the Gnu/Linux box was the difficulty in sending and receiving data from Linux to Mobile and vice versa. Today, I have managed to overcome that difficulty too.. Now my mobile is completely useful… (Atleast from the Gnu/Linux side :) )

First I need the obex installation in my system (Fedora core 6)
For that
yum install openobex

After the installation, connect the mobile phone using usb cable. Now dmesg shows that we have a new device called ‘/dev/ttyUSB0′.

Here are the following steps:

obexftp –tty /dev/ttyUSB0 -c . -l

This gives the following output..

Connecting…done
Sending “.”… failed: .
Receiving “(null)”… <?xml version=”1.0″ encoding=”UTF-8″?>
<!DOCTYPE folder-listing SYSTEM “obex-folder-listing.dtd”>
<!–
XML Coder, May 24 2005, 21:06:32, (C) 2001 Sony Ericsson Mobile Communications AB
–>
<folder-listing version=”1.0″><folder name=”Pictures”/>
<folder name=”Sounds”/>
<folder name=”Themes”/>
<folder name=”Videos”/>
<folder name=”Other”/>
</folder-listing>
done
Disconnecting…done

Then download the Linus torvald’s voice

wget http://www.paul.sladen.org/pronunciation/torvalds-says-linux.mp3

Now push the mp3 to the mobile phone

obexftp –tty /dev/ttyUSB0 -p ./torvalds-says-linux.mp3 Sounds/linux.mp3

After about 5 seconds, your phone will prompt you to save the mp3 to phone memory. Now play the torvalds-says-linux.mp3
 
Now you have the voice of Linus in your mobile….. Cheers.. Wink

Readmore