Archive for January 13th, 2006

Improvements to the applications menu

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 January 13th, 2006


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.

Calendar

January 2006
M T W T F S S
« Dec   Feb »
 1
2345678
9101112131415
16171819202122
23242526272829
3031  

Posts by Month

Posts by Category

Valid XHTML
Valid CSS
No-www.org