Home » Archive

Articles in the Hacks Category

Featured, Hacks, Maemo 5 »

[19 Jan 2012 | | ]
[How-To] Changing in loading bar at startup

Check out our new page Funny LOL Pictures (click here) – it brings you daily funny pictures that will make you LOL!
Note: The steps we go through this how-to include modifying low-level system files. Changing the loading bar is done at your risk, do not attempt if you think that you might mess something up or if you don’t understand some parts of this how-to.

Want to make your boot sequence more cooler? Maemo allows you to change the loading bar that appears at startup.
First, we want to go root:
sudo gainroot
Next, backup the files we want to change:
cd /usr/share/icons/hicolor/scalable/hildon
mkdir /home/user/MyDocs/Bar_Backup
cp indicator_update* /home/user/MyDocs/Bar_Backup
Now, for the fun part. Create your own loading bar images. You may use the originals as a base, you would want 8 PNG images with a size of 192×48, alpha-channel is optional. You can look at this custom loading bar set, for example. Name them all as indicator_update№.png, with № going from 1 to 8, in the order you want the images to appear.
Drop all the images to /usr/share/icons/hicolor/scalable/hildon
cp -f [your images] /usr/share/icons/hicolor/scalable/hildon/
Once done, try rebooting your phone and checking out if all went smoothly.

Featured, Hacks, Maemo 5, Uncategorized »

[16 Jan 2012 | | ]
[How-to] Custom symbols in X Terminal

Are you in need of special symbols while in X Terminal? Don’t want to bring up the special characters menu all the time? Well, here’s an easy way to customize the special characters  line on the bottom of your X Terminal window.
Open up your XTerm and use those commands to modify the characters line:
Note: Run these commands as a regular user, not root.
Modify the key labels:
gconftool-2 -s /apps/osso/xterm/key_labels -t list –list-type=string “[keylabels]”
Replace keylabels with the set of labels you want to use, separated by colons without any whitespaces. You’re free to use any text, just don’t use labels too long. The maximum safe amount of labels you can use is 7, if you use more, they will all go to a side-menu.  For example, if we are to add pipe, input and tilde symbols you can use this:  Tab,Esc,PgUp,PgDn,|,>,~
Next, set the characters that those labels will correspond to:
gconftool-2 -s /apps/osso/xterm/keys -t list –list-type=string “[character values]”
Replace character values with the corresponding values. You can look up which values respond to which characters by looking at /usr/share/X11/xkb/symbols/nokia_vndr/rx-51 file (do it as a regular user, so you don’t modify it by accident)
If we follow the example for pipe, input and tilde characters, we shall use these values: Tab,Escape,Page_Up,Page_Down,bar,greater,asciitilde
Restart your X Terminal, so the fullscreen button goes where it should go and enjoy!

Featured, Hacks »

[13 Jan 2012 | | ]
[How-To] Customizing your SMS and Chat interface

Getting bored with the old look of your SMS and chat screens? If so, open nature of Maemo allows you to tweak the look to your own preference.

Configuration files for Conversations And Contacts themes reside under the /usr/share/rtcom-messaging-ui/html/ directory. Backup the files if necessary.
First make your own theme with html-css-javascript or find one that suits you made by other enthusiasts on Talk Maemo or here.
In case if you downloaded the theme, unpack the downloaded archive to any directory, for example, ~/MyDocs/theme
cd ~/MyDocs
mkdir theme
Then, copy all files in the archive to the directory mentioned above:
cd ~/MyDocs/theme
sudo gainroot
cp -f * /usr/share/rtcom-messaging-ui/html
Because many downloaded themes include only files for SMS interface, copy them for chat interface:
sudo gainroot
cd /usr/share/rtcom-messaging-ui/html
cp -f MessagingWidgetsSMSConversation.css MessagingWidgetsChatConversation.css
cp -f MessagingWidgetsSMSConversation.js MessagingWidgetsChatConversation.js
cp -f MessagingWidgetsSMSConversation.html MessagingWidgetsChatConversation.html
Finally, reboot your phone,
sudo gainroot
Or kill the process:
sudo gainroot
killall rtcom-messaging-ui
Enjoy your new interface!

Featured, Hacks »

[12 Jan 2012 | | ]
[How-To] Adding a “Reboot” button to your powerkey menu

Ever wanted to have a graphical button to reboot your beloved device? Well, today I’ll show you how to add one to your powerkey menu!
Note: the tips we go through involve editing a low-level system file and imply that readers know what they are doing.
Adding the Reboot button:
First, we would want to go root:
  sudo gainroot
Next, let’s modify the sudoers file to allow us running reboot:
echo “user ALL = NOPASSWD: /sbin/reboot” > /etc/sudoers.d/reboot.sudoers
Update sudoers:
Now, we would want to create a d-bus service.
[editor] /usr/share/dbus-1/services/reboot.service
Replace [editor] with whatever editor you prefer, for example, leafpad.
Paste the following into the file:
  [D-BUS Service]
  Exec=/usr/bin/sudo reboot
Save the file and exit the editor. Change current directory:
cd /etc/systemui
Open up systemui.xml file in your preferred editor:
[editor] systemui.xml
Paste the following anywhere between the <powerkeymenu> and </powerkeymenu> tags:
<menuitem priority=”750″ name=”Reboot”>
   <callback service=”com.misc.reboot” path=”/com/misc/reboot” interface=”com.misc.reboot” method=”reboot” bus=”session”   autostart=”true”>
   <argument type=”boolean”>true</argument>
Note: some of you may notice that a reboot entry is already defined in systemui.xml. However, it utilizes osso-powerup-shutdown and preforms a very brutal shutdown. Rebooting with sudo reboot will gently shutdown all software and sync your filesystems, which is safer. Let’s just say that there  was probably a reason that the default entry was commented out.
Save the file, exit the editor and reboot your N900.
Enjoy your newly added Reboot button which will perform a safe reboot once pressed!


Source: Talk Maemo