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



