The Following 2 Users Say Thank You to tomei.ningen For This Useful Post: | ||
|
2007-10-09
, 20:10
|
|
Posts: 1,137 |
Thanked: 402 times |
Joined on Sep 2007
@ Catalunya
|
#2
|
|
2007-10-10
, 10:03
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#3
|
|
2007-10-10
, 10:49
|
Posts: 2,152 |
Thanked: 1,490 times |
Joined on Jan 2006
@ Czech Republic
|
#4
|
|
2007-10-10
, 11:13
|
Posts: 3,841 |
Thanked: 1,079 times |
Joined on Nov 2006
|
#5
|
|
2007-10-10
, 16:28
|
Posts: 2 |
Thanked: 2 times |
Joined on Oct 2007
|
#6
|
I just received a new N800 device so I proceeded to install xterm and SSH on it so that I can get root access.
However, my company prohibits WiFi, so I needed to download the packages into the internal flash memory, and then install the .deb files manually using Application Manager. For my N800, I figured the following sequence of .deb files should be installed (in the order listed below)
http://repository.maemo.org/pool/bor...sso1_armel.deb
http://repository.maemo.org/pool/bor...sso1_armel.deb
http://repository.maemo.org/pool/bor...3osso2_all.deb
http://repository.maemo.org/pool/bor...sso2_armel.deb
http://repository.maemo.org/pool/bor...0.13_armel.deb
http://repository.maemo.org/pool/bor...sso7_armel.deb
However, when I try to install any of these .deb files, Application Manager simply gives a cryptic error message: "Incompatible Package" and refuses to install it. After poking around for a while, I found the Log screen of the Application Manager shows the output of "dpkg -i xxx.deb", which says something like:
Package must have "Section: user/FOO" to be considered compatible.
Not sure why dpkg complains this way -- I have another N800 already configured by someone else, and if I log in as root, I can run "dpkg -i" to install these deb files without any issues. Probably it had something to do with the fact that on my "virgin" N800, I am running Application Manager not as root.
Anyway, I wrote a script to fix the .deb files:
#-------------------------------------------------
rm -rf tmp
mkdir tmp
cd tmp
ar x ../$1
mkdir con
cd con
tar zxf ../control.tar.gz
sed -e 's/Section: .*/Section: user\/Foo/g' < control > control.tmp
mv control.tmp control
tar zcf ../control.tar.gz .
cd ..
X=`echo $1 | sed -e 's/.deb/.fixed.deb/g'`
rm -f ../$X
ar cq ../$X debian-binary control.tar.gz data.tar.gz
cd ..
ls -l $1 $X
#--------------------------------------------------------------
Just save it as fix.sh and run "sh fix.sh foo.deb", and it will generate a file called foo.fixed.deb
After that, install the .fixed.deb files in the order specified about, then, launch xterm, and run
ssh root@localhost <-- password = rootme
Then you will have root!
Enjoy!