Improvements to the applications menu

January 13th, 2006

I have added some improvements to my applications menu, to include some tasks I made often.

Do the next steps as root in your Nokia 770 (hint, execute sudo gainroot).

I have added some files to /var/lib/install/etc/others-menu/extra_applications. The file btkbd.desktop contains


[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=Turn on/off BT keyboard
Exec=/root/btkbd_user
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

Next sshd.desktop, it contains


[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Name=SSH server
Exec=/root/sshd_user
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable

I added the following lines to /etc/sudoers to allow that users could execute the scripts from the menu


user ALL = NOPASSWD: /root/kbdd/btkbd
user ALL = NOPASSWD: /root/sshd

Then, I wrote the /root/sshd script


#!/bin/sh
/var/lib/install/etc/init.d/dropbear-server start

And finally I wrote the user scripts. The /root/sshd_user script contains only sudo /root/sshd. The /root/btkbd_user contains only sudo /root/kbdd/btkbd. The file /root/sshd contanis:


#!/bin/sh
/var/lib/install/etc/init.d/dropbear-server start

After these steps you will have some new options in your applications menu. For example, take a look at my applications menu 1 2. I have added the applications marked with a red cross.

Maybe you want to know how to add the swap options, set up your bluetooth keyboard, or install the SSH server and set up an ad-hoc network between your computer and the Nokia 770.

1 Comment Add your own

  • 1. herraiz  |  June 16th, 2006 at 3:17 pm

    I forgot to include as an extra step, just before executing the scripts (or better, to be able to execute the scripts), you should grant permissions to every script, doing as root

    chmod a+x script_whole_path

    For example, chmod a+x /root/sshd

    This have to be executed for all the scripts.

    Thanks to Christine for finding this bug in the post ;-) .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


What's this?

This is a blog about the new Nokia 770. It will show tricks, hacks, reviews, etc about this impressive gadget. Comments and feedback are welcome.

You can contact me at isra _at_ herraiz.org, or just leaving a comment in any post.

Latest comments

Bluetooth keyboards for the Nokia 770  9
jose manuel a.lopez, jose manuel a.lopez, Bill [...]

wxWidgets and wxPython almost hildonized  12
jaremo, cowbot, Peter [...]

Compiling and testing Ekiga  23
Nuno Cruz, shariq, Shariq [...]

wxPython running on Maemo  9
Peter, stan one, stan one [...]

Calendar

September 2008
M T W T F S S
« Jan    
1234567
891011121314
15161718192021
22232425262728
2930  

Most Recent Posts

Valid XHTML
Valid CSS
No-www.org