|
#1
|
|||
|
Howto: Get linux and the Maemo SDK w/ emulator running!
I posted about the maemo SDK a month or two ago, but I really didn't post a tutorial on how to get it running, there is one on wiki.maemo.org but it's not for those who are new to linux. So here's a step by step tutorial on how to install linux with the SDK.
First of all, you need linux, there are many distributions of linux, most of which are free. Linux is mostly based on two types: -Debian (Maemo is based on this) -RedHat-based (Fedora and the like, these use RPM packages for installs and are a bit more complicated, however they are the base of linux and debian would've never been what it is now) For Desktops there are two major desktop managers: Gnome and KDE. Gnome is the best in my opinion but KDE provides a windows-like appearance at the expense of performance. For this tutorial, you need to install a Debian based OS. Ubuntu is the easiest one to use (kUbuntu uses KDE but as I said it needs a higher spec-ed PC to run) Ok, so installing an OS needs a partition, some of you might think of this as being complicated BUT Ubuntu now offers a one click install option, with WUBI (Windows Ubuntu Installer) Wubi installs Ubuntu "inside" Windows, what this does is create a virtual hard disk in X:/Ubuntu (X being your Windows drive) and puts all the needed files there, what you need to do to run ubuntu is to restart your PC and select Ubuntu, to get back, just restart again and select your current OS. To get wubi go to Wubi - Ubuntu Installer for Windows and hit download, it will ask you to input some things for the installation but once you've done that, it's all automated. Here's a screenshot of wubi ![]() It's the 8.04 version but it looks the same as the new 9.10 one. Select your language, the installation size, select Ubuntu as the desktop environment, input your username and pass (this can't be blank) and hit install. It will download the 9.10 ISO, extract it to X:/Ubuntu and ask you to restart your PC. Once you've done that, select Ubuntu and it will complete the installation. Your computer will restart again, select ubuntu again, hit enter and enter again, Ubuntu will now boot up ![]() First of all, if you have ethernet, you're ready to go, if not then you have to connect to a wireless AP by clicking the icon next to the volume icon (or bluetooth if you have it) and selecting an AP. Now to install the scratchbox and the SDK Open Applications > Accessories > Terminal Paste this code in it (note: to paste in terminal you have to press CTRL+SHIFT+V, extra shift there) Code:
sudo apt-get install xserver-xephyr sudo gives you root privileges (much like Run as administrator in Vista/7) apt-get is the application responsible for managing updates and application installs (Synaptics Package Manager) install instructs apt-get to install the package following 'install' Once you have typed the command into terminal, you will need to enter your password (to gain root priv.) This will install the app that outputs the display of the Maemo5 emulator. Now you will have to download the two scripts that will auto install the SDK Type into terminal Code:
wget http://repository.maemo.org/stable/5.0/maemo-scratchbox-install_5.0.sh http://repository.maemo.org/stable/5.0/maemo-sdk-install_5.0.sh To allow the scripts to be executed, you need to change their attributes, to do that, just paste this into terminal Code:
chmod a+x ./maemo-scratchbox-install_5.0.sh ./maemo-sdk-install_5.0.sh Type into terminal (Chagne the USER to your linux username, it doesn't actually have to be your linux username but I prefer you do that to reduce confusion) Code:
sudo ./maemo-scratchbox-install_5.0.sh -u USER This will take some time depending on your network connection, you might also see an error depending on how your system is set up. If you see an error it will say something like type echo 0 > /proc/sys/vm/vdso_enabled as root To do that, type Code:
sudo su Code:
echo 0 > /proc/sys/vm/vdso_enabled Code:
exit Quote:
Leave your PC for a while or explore Ubuntu, you can use it normally but you can't install other applications while scratchbox or any other app is installing (one APT instance at a time) When scratchbox is done installing, type Code:
newgrp sbox Type: Code:
./maemo-sdk-install_5.0.sh It will use wget to download some files (this will take time) and it will install most of the SDK. Leave your PC again for a while as this will take time. When the SDK is done installing, you will get the message "Happy Hacking" (this made me lol :p) Now type Code:
/scratchbox/login Code:
newgrp sbox You have to install some files which Maemo depends on (the homescreen, themes, the basic apps which the N900 has, etc...) To do that, you HAVE to accept the EULA, I can't give you a direct link as every person gets a unique link EULA link: Maemo 5.0 (Fremantle) SDK EULA Linux newbs, outside scratchbox means you will not see [sbox-FREMANTLE_X86: ~] > in terminal, inside scratchbox means you will see it Inside the scratchbox type Code:
nano /etc/apt/sources.list Be sure to have the terminal window maximized when you do this as it might split the line into two lines. Press CTRL+O, then hit enter to save, and click CTRL+X to exit Now type inside scratchbox Code:
apt-get update Code:
fakeroot apt-get install nokia-binaries nokia-apps It will download about ~40MBs of files and install them. You are now ready to run the SDK For programmers you have to run one more step since all of the above was run in X86 mode, and the N900 itself is an ARMEL device. so type (I included what you see in terminal, you have to type what's after the >, I have also bolded what you have to paste) Code:
[sbox-FREMANTLE_X86: ~] > sb-conf select FREMANTLE_ARMEL [sbox-FREMANTLE_ARMEL: ~] > nano /etc/apt/sources.list Code:
[sbox-FREMANTLE_ARMEL: ~] > apt-get update [sbox-FREMANTLE_ARMEL: ~] > fakeroot apt-get install nokia-binaries nokia-apps Type Code:
sb-conf select FREMANTLE_X86 Type Code:
logout Congratulations, if you're reading this then you have installed the SDK, if not, well, I guess something went wrong :p To start the SDK, open another terminal window and type Code:
Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb & While it's showing you some stuff about the status, start typing Code:
/scratchbox/login Code:
export DISPLAY=:2 Code:
af-sb-init.sh start ![]() ![]() To stop the SDK (do you even want to do that :p) type Code:
af-sb-init.sh stop Code:
af-sb-init.sh restart Quote:
Grub2 is installed by wubi and ubuntu.com warn.. Quote:
I hope this tutorial helps you install the SDK w/ the emulator so that you get to know the software of the N900 :)
__________________
Follow me @MohammadAG Got a PS3? Add me to get your a** pwned online! :p MohammadAG Last edited by MohammadAG; 11-15-2009 at 10:29 AM. |
| The Following 14 Users Say Thank You to MohammadAG For This Useful Post: | ||
bendonahue (06-13-2010), BoBiDiGiTaL (07-07-2010), Brandon (11-09-2009), buxz777 (11-07-2009), Canterbury (11-08-2009), Dr_Nick (01-31-2010), gavinguinness (11-08-2009), Micky (11-15-2009), nirave (11-15-2009), rezalsani (05-14-2010), Sp00k (11-07-2009), spyda (11-07-2009), step11angelo (02-14-2010), Venomrush (11-07-2009) | ||
| Sponsored links |
|
|
|
#2
|
||||
|
||||
|
Jeez, not for the faint hearted then? ;-)
Cracking guide, thanks for that. There's hope for those of us not likely to see our N900's for some time yet! |
|
#3
|
|
|
Quote:
It's actually a bit useful, I've been trying to get Xchat on it but libc6 is old, but XChat is working on the N900 (seen it on the RDA device) If you have any problems, just shout out :)
__________________
Follow me @MohammadAG Got a PS3? Add me to get your a** pwned online! :p MohammadAG |
|
#4
|
|||
|
|||
|
Thanks a lot for this! :) I'm a total noob with linux and desperate to learn it.
|
|
#5
|
||||
|
||||
|
Ye Gods! What was Linux like to use before it was 'simplified' ?
By comparison, DIY trepanning seems considerably less painful !
__________________
Some members, after receiving valuable help, aren't clicking on the 'THANKS' button, please remember to do so, it would be much appreciated! This is a 'Family-Friendly' forum and we ask that you help to ensure that it remains so. Behave in a sociable manner and you will be welcome here, heated arguments are a
|
|
#6
|
|
|
Quote:
__________________
Follow me @MohammadAG Got a PS3? Add me to get your a** pwned online! :p MohammadAG |
|
#7
|
|||
|
|||
|
i'm just trying to follow this guide and i'm having problems when i get to
Quote:
PS, i'm far from a expert in linux!! thanks |
|
#8
|
||||
|
||||
|
Quote:
But I have to add that having the explainations for each command is very useful and should be commended - I've followed similar tutorials minus the explainations in years gone by not fully understanding what I've actually done. LOL So thumbs up TWICE from me!
__________________
Motorolla S9, Sony MEX-5000, Proporta, Hollux GPSlim, Brodit Mount, Scoshe bluelife, Gear4 BlackBox, Plug-IT charm It's Broke? Did you know that your Nokia comes with a 2 year warranty? Did you know that Carphone Warehouse are Nokia Repair Centres? Damage from normal use: wobbly slider, broken keys, quiet earpiece etc... will be repaired for free, and usually the same day if you take it to a big store!
Last edited by gavinguinness; 11-08-2009 at 07:27 PM. |
|
#9
|
||||
|
||||
|
I finished the installation.
Having some problems getting the SDK to start! Quote:
|
|
#10
|
|
Try using display no. 4 for it
Code:
Xephyr :4 -host-cursor -screen 800x480x16 -dpi 96 -ac -kb & Code:
export DISPLAY=:4 Code:
af-sb-init.sh start
__________________
Follow me @MohammadAG Got a PS3? Add me to get your a** pwned online! :p MohammadAG |
![]() |
| Tags |
| n900 maemo |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| OTA Syncing with a Mac and Google - A Howto | the_accidental | Nokia N97 | 1 | 08-28-2009 09:07 AM |
| Custom (MIDI) ringtones on N97, howto? | JCC | Nokia N97 | 3 | 07-10-2009 06:27 AM |
| Howto convert avi to n95 compatible avi with embedded subtitle on Linux | Sabutay | Downloads | 7 | 04-26-2009 11:54 AM |
| Howto Change Language? | mlrtime3 | Nokia N82 | 4 | 04-25-2008 12:56 PM |
| HowTo copy and past from almost everywhere | user98765 | Symbian S60v3 | 3 | 03-19-2008 06:42 AM |