View Single Post
Posts: 7 | Thanked: 8 times | Joined on Jul 2010
#1
Hi guys, I got this N900 for a few months. And I was totally impressed by its power and the freeness of open source. Its the best smart phone ever.

But there was only one thing from this phone annoyed me at that time. It's that there were no option to make a custom folder in the menu. And on the first night with the phone, by reading and searching all the information on Maemo.org, I have concluded this guide for a total newbier to start making his own folder.

The instruction is safe and easy. I have tested it on my phone quite an amount of times. Enjoy the guide!

Preparations:

Note: You will need a Wireless LAN at home to be able to connect your N900 and PC through SSH.

1. Get the 'root' of the phone and ready it to be used in the future.

Visit thread: http://maemo.org/downloads/product/Maemo5/rootsh/ and download the application.
Recommended for everyone if you have not got it on your N900

2. Now we got the root, but we need a connection between the phone's root folder and our PC. We will use SSH. And why?

With the USB cable connected, you only can access to some user folders which are pretty useless for this case:


And here is what you can access with a SSH connection:


Visit thread: http://maemo.org/downloads/product/Maemo5/openssh/ download and install the application. While setting up, the app will ask for some password. Set it to 'root' or whatever but you need to remember it.

And now your fone is ready to be connected through SSH. But not yet with your PC.

Get the Tunnelier SSH application from : http://www.bitvise.com/tunnelier for your PC. Use it because its free, its great and its easy to use. I have been using for about 4 years.

3. Now before turning on the Tunnelier, you need to connect both of your PC and your N900 to one same Wireless network. After done, you need to know your N900 IP address.

Visit thread: http://maemo.org/downloads/product/M...al-ip-address/ Its the easiest way to find out your phone's IP address. No need spending time on the Terminal.

Getting The Folder:

4. Open Tunnelier. Type your N900 IP address to Host. Username 'root' Password as you defined. Press login. It will ask you to save something for the session, just agree.



And if you never seen what really inside your N900, you will be surprised




The left side is what is on you PC. And the right side is everything inside your N900. Press the up button on the Remote Files to see the / folder. The cmd windows is a kind of XTerminal for you to execute comand lines directly to your N900.

5. The folder you expect will appear after this step. Download configFiles.zip I have attached and unzip it. There are 3 files and you will need to use Tunnelier to upload them to the N900.

games.directory and applications.directory go for: /usr/share/applications/hildon

hildon.menu goes for: /etc/xdg/menus. Just overwrite the default file in your N900.

Now you will get what you ve been waiting for



Customize Your Folder

These steps are intended to guide you to change the appearance of the folders you have just created. Of course if you want to do so And it also guides you to arrange the icons into the folder as you want and change the look of all other icons.

6. Come here: /opt/usr/share/icons/hicolor/48x48 and download this folder to your PC. Have a look at all the icons. This folder contains the options for your directories' appearance.

Now lets understanding the code of the file 'games.directory' by opening it with NotePad:
Code:
[Desktop Entry]
Type=Directory
Name=Games
Icon=general_folder
X-Osso-User-Position=16
X-Maemo-Category=Main
X-Text-Domain=maemo-af-desktop
Name: Indicates the name that your folder will appear within the menu
Icon: The name of .png file that defines the folder's appearance.

Now lets create more .directory files if you want some more folders. Copy the code and define its name and look Or open Illustrator, make your own .png icon in 48x48 pixels size and use it for your own N900

7. All the new applications you install in the feature will be automatically listed in 'Applications' directory. But not with all the games you will install Here is how to make it work properly.

Lets look at the code of the file hildon.menu:
Code:
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
 "http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">

<Menu>

  <Name>Main</Name>

  <!-- Search the default locations -->
  <AppDir>/usr/share/applications/hildon</AppDir>
  <DirectoryDir>/usr/share/applications/hildon</DirectoryDir>

  <Include>
    <Filename>osso-xterm.desktop</Filename>
    <Filename>browser.desktop</Filename>
    <Filename>mediaplayer.desktop</Filename>
    <Filename>filemanager.desktop</Filename>
    <Filename>calendar.desktop</Filename>
    <Filename>image-viewer.desktop</Filename>
    <Filename>osso-addressbook.desktop</Filename>
    <Filename>rtcom-call-ui.desktop</Filename>
    <Filename>nokia-maps.desktop</Filename>
    <Filename>modest.desktop</Filename>
    <Filename>rtcom-messaging-ui.desktop</Filename>
    <Filename>hildon-control-panel.desktop</Filename>
    <Filename>hildon-application-manager.desktop</Filename>
  </Include>

  <Menu>
    <Name>Games</Name>
    <Directory>games.directory</Directory>
    <Include>
	<Filename>nspeed.desktop</Filename>
	<Filename>bounce.desktop</Filename>
	<Filename>drnoksnes.desktop</Filename>
	<Filename>flobopuyo.desktop</Filename>
	<Filename>osso_lmarbles.desktop</Filename>
	<Filename>angrybirds.desktop</Filename>
	<Filename>vgba.desktop</Filename>
	<Filename>givemefive.desktop</Filename>
	<Filename>mahjong_startup.desktop</Filename>
	<Filename>chess_startup.desktop</Filename>
	<Filename>maemoblocks.desktop</Filename>
	<Filename>duke3dsw.desktop</Filename>
	<Filename>offscr-airport.desktop</Filename>
	<Filename>offscr-xploder.desktop</Filename>
	<Filename>offscr-labyrinth-lite.desktop</Filename>
	<Filename>stratagus.desktop</Filename>
	<Filename>wormux.desktop</Filename>
    </Include>
  </Menu>

  <Menu>
    <Name>Applications</Name>
    <Directory>applications.directory</Directory>
    <OnlyUnallocated/>
    <Include>
      <All/>
    </Include>
  </Menu>
</Menu>

Within the first <include> tag are the icons will stay on your menu screen.

The next <include> tag are the icons will stay on your Games directory.

The last <include> tag, as it says "OnlyUnallocated" so all other icons will be listed in the Applications directory.

So next time when you setup a new game and want the icon to be listed in the Games folder, you need to go to /usr/share/applications/hildon to find its name and make a new entry on your hildon.menu, accordingly.

If you have a new folder, for instance: whitehousestuff.directory just make a new entry in your hildon.menu like this:
Code:
<Menu>
    <Name>Whitehousestuff</Name>
    <Directory>whitehousestuff.directory</Directory>
    <Include></Include>
And put everything you want within the <include> tag.

Thats about everything I know of teawking around with Directories in N900. I hope this guide also provides to who doesn't yet know about SSH and getting into root folder some ideas of how to do it.

My first ugly work for Nokia community and Meamo.org. Looking forward to see your replies. Thank you guys!
Attached Files
File Type: zip configFiles.zip (1.1 KB, 406 views)

Last edited by AyzKeys; 2010-09-25 at 08:18.
 

The Following 8 Users Say Thank You to AyzKeys For This Useful Post: