User:Jebba: Difference between revisions

From Maemo Wiki
Jump to navigationJump to search
imported>jebba
Set up ssh server & keys
Undo revision 43821 by 49.201.160.205 (Talk)
 
(351 intermediate revisions by 8 users not shown)
Line 1: Line 1:
Name: Jeff Moe
* Name: Jeff Moe


Email: moe@blagblagblag.org
* Email: moe@blagblagblag.org


Nick: jebba, jebbajeb, jebba900, etc...
* Nick: jebba, jebbajeb, jebba900, etc...


[http://jebba.blagblagblag.org Long Neglected Blog...]


Usually I dot my laptop with READMEs in various ~/devel/ subdirs, but in this case I decided to write up some notes here. These are mostly for my own reference, but perhaps they will be of use to you.
I have stopped development on Meego/Maemo, so these pages are getting quickly dated. Ciao!


=Debrick=


==Too mucha programmaz==
* [http://maemo.org/profile/view/jebba/ Maemo profile]
I bricked my N900 by adding the extras-testing + extras-devel repos and then installing lots of applications. I hit 100% on / (root filesystem) and on reboot the system hung at the "dots" part, ala:


  * (*) * * *
* [https://bugs.maemo.org/buglist.cgi?query_format=advanced&short_desc_type=allwordssubstr&short_desc=&long_desc_type=substring&long_desc=&bug_file_loc_type=allwordssubstr&bug_file_loc=&status_whiteboard_type=allwordssubstr&status_whiteboard=&keywords_type=allwords&keywords=&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_status=RESOLVED&bug_status=VERIFIED&bug_status=CLOSED&emailassigned_to1=1&emailreporter1=1&emailqa_contact1=1&emailcc1=1&emaillongdesc1=1&emailtype1=exact&email1=moe%40blagblagblag.org&emailtype2=substring&email2=&bugidtype=include&bug_id=&votes=&chfieldfrom=&chfieldto=Now&chfieldvalue=&cmdtype=doit&order=Bug+Number&field0-0-0=noop&type0-0-0=noop&value0-0-0= "My" bugs]


I had filled up to 100% a number of times before and rebooting the phone had '''cleared''' up space (e.g. 100% full before reboot, 96% full after reboot). This is likely because 5% or so is reserved for root. Anyway, the most recent time it didn't come back alive...
[[Image:Jebba-oldfone.jpg|left|thumb|alt=My old nokia|My old Nokia phone, replaced by N900. Makes a nice background :)]]


==Flashing N900 with 0xFFFF==
Many parts of the N900 are Free Software, but lamentably, many parts are still closed proprietary shit. Nokia's maemo_flasher program is an example of a closed application that Nokia makes for use with the N900. I understand why some parts of their suite are still closed (e.g. pre-ofono GSM stack), but why the flasher has to be closed I have no idea. Gar.


Thankfully, there is [http://www.nopcode.org/0xFFFF/ The 0pen Free Fiasco Firmware Flasher], which is designed for flashing Nokia tablets and is [http://www.gnu.org/philosophy/free-sw.html Free Software] (GPLv3). Unfortunately, 0xFFFF doesn't work with the N900. There is [http://www.mail-archive.com/0xffff@lists.nopcode.org/msg00072.html some progress to support the device]. You can grab the most recent code from the mercurial repository thusly:
* Usually I dot my laptop with READMEs in various ~/devel/ subdirs, but in this case I decided to write up some notes here. These are mostly for my own reference, but perhaps they will be of use to you.
hg clone http://hg.youterm.com/0xFFFF


I sent the author of 0xFFFF the output of my crash. Hopefully it will soon be a usable tool for flashing the N900. I built RPMs for Fedora 12 x86_64 running the latest mercurial code--the ones in the Fedora repo aren't even the lastest tarball release (0.3.9 vs. 0.4.0).
* Feel free to take any of these pages and copy them over to the main wiki namespace (here or in any other wiki, for that matter).


==Flashing with Nokia's Proprietary maemo_flasher==
=Package Building HOWTO=
I [http://wiki.blagblagblag.org/Roadmap now] have ONE non-free program installed on my computer  :(  It's the only way I know how to debrick the phone.


See also: [[Updating_the_tablet_firmware | Updating tablet firmware]] on this wiki.
The [[User:Jebba/Package Building HOWTO|Package Building HOWTO]] now has its own page. :)


* To get the most recent image from Nokia, go here: http://tablets-dev.nokia.com/nokia_N900.php
=Kernel=
* Enter product ID inside the phone (without "/"s)
The new [[User:Jebba/Kernel|kernel page]]
* Grab RX-51_2009SE_1.2009.42-11_PR_COMBINED_MR0_ARM.bin or whatever is current.
* To get the proprietary stinking pile of poo, go here: http://tablets-dev.nokia.com/maemo-dev-env-downloads.php
* Grab maemo_flasher-3.5_2.5.2.2.tar.gz or most recent.
* In Fedora 12 x86_64 I had to install some i686 libraries since my system is 64-bit. So:
yum -y install glibc.i686 libusb.i686
* Untar the files....
* Power off phone and unplug USB.
* Hold down "u" on N900 keyboard and plug in USB cable between computer and N900. A USB icon will appear in the upper right corner--you can let go of "u" on the keyboard at this point.
* Run this as root:
./flasher-3.5 -F ~/devel/maemo/FLASH/RX-51_2009SE_1.2009.42-11_PR_COMBINED_MR0_ARM.bin -f -R
* Done.


=Post debrick setup=
=Freemoe git=
Now that the device is debricked, I can use the thing again and "all" my data is there, but the repository setup is back to default and the applications I want are gone, amongst other things. To re-setup:
* [http://gitorious.org/freemoe freemoe git repo at gitorious.org]


git clone git://gitorious.org/freemoe/freemoe.git


==Set up ssh server & keys==
=SDK=
* Enable [[Extras]] [http://repository.maemo.org/ repository]: tap, tap, tap...
 
* Install openssh client/server package
[[User:Jebba/SDK| The SDK page]].
* Install rootsh package
 
* Set up keys and such for easy access (my device hostname is burger):
=Repositories=
* On laptop, ssh into the sucker:
 
ssh root@burger
* [[User:Jebba/Repositories|Info about repositories]]
* As root on N900, ssh to localhost as a quick/dirty way to setup /root/.ssh:
 
ssh localhost
* [[User:Jebba/Etch]] - The Debian Etch rebuild.
* On laptop, copy over ssh key and log back in:
 
scp -p ~/.ssh/id_rsa.pub root@burger:.ssh/authorized_keys
=Flashing=
ssh root@burger
 
*To allow ssh access for user "user", the passwd file needs to be edited.
Separate [[User:Jebba/Flash| page about flashing]], for your perusal.
vi /etc/passwd
 
* Change
Note, the [[User:Jebba/Flash|flash]] page has the info about "debricking" easily.
user:!:
 
to
=Wifi Hotspot=
user:*:
How to set up your N900 as a [[User:Jebba/NAT|wifi hotspot]] to share it's connection with other computers. :)
* Set a password for user "user" (I couldn't ssh in without doing this, but someone on IRC said it wasn't necessary):
 
passwd user
=Mer=
* Switch user to "user" and blow out the old known_hosts (or at least edit it) to remove the now bogus "localhost" entry:
 
su - user
[[User:Jebba/Mer| Jebba Mer]]
rm .ssh/known_hosts
 
* Quick/dirty way to set up /home/user/.ssh:
=Fedora=
ssh localhost
 
* Then GTFO:
[[User:Jebba/Fedora| Fedora 12 on Nokia N900]] (!!)
exit
 
exit
 
* This should work happily
=VNC=
ssh user@burger
 
Over at [[User:Jebba/VNC]].
 
=Backups=
 
See [[User:Jebba/Backups]]
 
=Video=
 
More space for talking about [[User:Jebba/Video|video]] at the new page.
 
=Mirrors=
I have shut down my mirrors.
 
A [[User:Jebba/Mirror| mini-HOWTO set up mirroring maemo repository content]]
 
=DBUS=
 
Now at [[User:Jebba/DBUS]].
 
=Gripes=
 
I [[User:Jebba/Gripes| gripe over here now]].
 
 
=Freemoe=
I have a server co-located at [http://www.netdepot.com NetDepot] with a SDK installed. If you would like an account on there send me an email at moe@blagblagblag.org.
 
* [[User:Jebba/Freemoe|Freemoe wiki]]
 
* [http://www.freemoe.org/ Freemoe web server]
 
=Bugs=
 
[[User:Jebba/Bugs|Bugs]] now has its own page.
 
=My Packages=
 
There is now a separate [[User:Jebba/Packages by Jebba|Packages by Jebba]] page.
 
 
=VoIP=
 
See: [[User:Jebba/VoIP]].
 
=ofono=
[[User:Jebba/Ofono]]
 
=Cryptsetup=
[[User:Jebba/Cryptsetup]] - HOWTO use crypto filesystem on N900.
 
=Setup=
 
I have [[User:Jebba/Setup| move setup]] to its own page. A bit antiquated already!
 
=sbdmock=
 
My [[User:Jebba/Sbdmock|sbdmock page]].
 
=Tweaklets=
 
* [[User:Jebba/Tweaks|Simple changes that make everything better.]]
 
* [[User:Jebba/Keymap|Keymap]]
 
=Random=
 
Punted over to [[User:Jebba/Random| the new Random page]].

Latest revision as of 14:50, 1 May 2012

  • Name: Jeff Moe
  • Email: moe@blagblagblag.org
  • Nick: jebba, jebbajeb, jebba900, etc...


I have stopped development on Meego/Maemo, so these pages are getting quickly dated. Ciao!


My old nokia
My old Nokia phone, replaced by N900. Makes a nice background :)


  • Usually I dot my laptop with READMEs in various ~/devel/ subdirs, but in this case I decided to write up some notes here. These are mostly for my own reference, but perhaps they will be of use to you.
  • Feel free to take any of these pages and copy them over to the main wiki namespace (here or in any other wiki, for that matter).

Package Building HOWTO

The Package Building HOWTO now has its own page. :)

Kernel

The new kernel page

Freemoe git

git clone git://gitorious.org/freemoe/freemoe.git

SDK

The SDK page.

Repositories

Flashing

Separate page about flashing, for your perusal.

Note, the flash page has the info about "debricking" easily.

Wifi Hotspot

How to set up your N900 as a wifi hotspot to share it's connection with other computers. :)

Mer

Jebba Mer

Fedora

Fedora 12 on Nokia N900 (!!)


VNC

Over at User:Jebba/VNC.

Backups

See User:Jebba/Backups

Video

More space for talking about video at the new page.

Mirrors

I have shut down my mirrors.

A mini-HOWTO set up mirroring maemo repository content

DBUS

Now at User:Jebba/DBUS.

Gripes

I gripe over here now.


Freemoe

I have a server co-located at NetDepot with a SDK installed. If you would like an account on there send me an email at moe@blagblagblag.org.

Bugs

Bugs now has its own page.

My Packages

There is now a separate Packages by Jebba page.


VoIP

See: User:Jebba/VoIP.

ofono

User:Jebba/Ofono

Cryptsetup

User:Jebba/Cryptsetup - HOWTO use crypto filesystem on N900.

Setup

I have move setup to its own page. A bit antiquated already!

sbdmock

My sbdmock page.

Tweaklets

Random

Punted over to the new Random page.