Changes between Version 4 and Version 5 of SettingUpDevelopmentEnvironmentForN9


Ignore:
Timestamp:
Jan 29, 2012 3:47:38 PM (9 years ago)
Author:
zarvai@inf.u-szeged.hu
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SettingUpDevelopmentEnvironmentForN9

    v4 v5  
    135135{{{
    136136  $ cd ~/swork
    137   $ browser-scripts/create-icecc-env.sh > icecc-env.sh
    138 }}}
    139 
    140 The resulted icecc-env.sh file will be similar to this:
     137  $ browser-scripts/create-icecc-env.sh
     138}}}
     139
     140Save the printed output to a file called icecc-env.sh:
    141141{{{
    142142#!html
     
    261261== 2.1. Turn on developer mode ==
    262262
     263There is a tutorial for this at http://paazio.nanbudo.fi/tutorials/qt-quick/developer-mode-in-nokia-n9
     264
     265Enable developer mode: Settings / Security / Developer mode. After installation the device will do a reboot.
     266
     267Change usb connection mode: Settings / Accessories / USB to "SDK" or "Always ask".
     268
     269Set up wifi internet connection. Connect usb cable.
     270
     271
    263272== 2.2. Enable root access over ssh ==
    264273
     274Login as 'developer' (run@host):
     275{{{
     276  $ ssh developer@192.168.2.15
     277developer@192.168.2.15's password: ****** (getting this from N9 usb connection)
     278}}}
     279
     280Switch to root (run@n9):
     281{{{
     282  /home/developer $ devel-su
     283Password: rootme
     284}}}
     285
     286You can create permanent password for default user 'user' (run@n9):
     287{{{
     288  ~ # passwd user
     289New password: password
     290Re-enter new password: password
     291}}}
     292
     293Enable root login on ssh (run@n9):
     294{{{
     295  ~ #vi /etc/ssh/sshd_config
     296
     297PermitRootLogin yes
     298}}}
     299
     300After saving sshd_config, modify default ssh options (run@n9):
     301{{{
     302  ~ #echo -e 'mkdir -m 0755 -p /var/run/sshd\nexec /usr/sbin/sshd $SSHD_OPTS' >> /etc/default/ssh
     303  ~ #pkill -9 /usr/sbin/sshd
     304}}}
     305
     306Now you can access your N9 as root over ssh. '''Be careful: it is a huge security risc.''' (run@host)
     307{{{
     308  $ ssh -X root@192.168.2.15
     309Password: rootme
     310}}}
     311Maybe you should change default root password, too.
     312
     313
    265314== 2.3. Install missing packages ==
    266315
     316Resworb scripts has a solution for this.
     317
     318This script uses name 'device' for N9. You can add this to your /etc/hosts file (run@host):
     319{{{
     320  $ sudo su
     321  $ echo -e '192.168.2.15\tdevice' >> /etc/hosts
     322  $ exit
     323}}}
     324
     325Scrachbox should be configured to armel target befor running this script (run@host):
     326
     327Run
     328{{{
     329  $ cd ~/swork
     330  $ browser-scripts/device-install-packages-n9.sh
     331}}}
    267332
    268333= 3. How you get things running on the N9 =