Active Topics

 


Reply
Thread Tools
Posts: 30 | Thanked: 66 times | Joined on Jun 2008
#11
Oh, duh - I should've just done that. In any case, I went the long road. Here are the steps I undertook to get gnu tar, in case others have the same difficulties:
0. Download GNU tar from http://www.gnu.org/software/tar/#downloading
1. browsed the repos at http://repository.maemo.org/pool/chinook/ (adding the repository itself just made apt give me tons of errors) to find the .debs I needed to get a working gcc environment (I can list the .debs I used if anyone's interested, it's actually not too big when installed - maybe 25~35mb?)
2. Grabbed the 'make' from that same repository
3. Attempting to ./configure GNU-tar errored out on 'grep' (and, have you noticed how much our n810's 'grep' sucks? It literally doesn't even work as expected sometimes ), so I got GNU-grep (also from gnu.org), ./configure'd and 'make'd it, then copied it to /usr/local/bin/
4. Successfully ./configure'd and 'make'd GNU-tar and copied that into /usr/local/bin/
5. Exit and re-enter the shell (why is this? 'which tar' shows the new one I'm pointing at - I shouldn't have to re-enter the shell, should I?)
6. SUCCESS! I can tar xzf my .tar.gz files on the N810!

Maybe that was ridiculously overdone, but, on the plus side, I got my gcc and make set up along the way I also noted the tar I built is about 6x as big as the one in the .deb... I'm just going to assume that means it's 6 times better too Thanks for the assistance - I'll do my best to report my findings as well.
 
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#12
Hi;

Benson,thanks for this tip:
That's a filesystem issue; you'll need to use a UNIX-like filesystem (like ext2) instead of VFAT. One option is to use GeraldKo's cloning stuff, but only go partway; that's the easy way to get all the drivers, partitioning tools, etc. at once...
And thanks for being gentle - what was I thinking, trying to set *nix bits of a file on a non-*nix partition? (I'm a 'tard, again ...)

I've been reading that cloning thread, but it is at a high-altitude compared to my linux skills. I'd hate to screw up my N810 so early in the game.

This is not a big priority for me right now (I'm hot on the trail of my WPA problem) , but as I start to run out of memory on the internal card, it will be more urgent.

I know this is simplistic, but if I can somehow reformat the removable cart with ext2, and perhaps make some gentle changes in a config somewhere, can I then start to put bin files on the card and run then from there?

You mentioned "don't go all the way" ... heh - that reminds me of back seat of my Camaro years ago. If I get the cloning stuff into the back seat, will I be able to easily stop? A bit more detail would be wonderful.

TIA as always,

Steve
 
Posts: 425 | Thanked: 132 times | Joined on Mar 2008 @ California
#13
I've been reading that cloning thread, but it is at a high-altitude compared to my linux skills. I'd hate to screw up my N810 so early in the game.
If you're worried about that, then Penguinbait put up a easy-install deb that will do the cloning for you It's over in this thread: http://www.internettablettalk.com/fo...ad.php?t=19639

or you can format a partition on your external card as ext2/ext3 and then symlink part of your internal filesystem to it. Which part this would be, I have no idea, although I did find this (old, it refers to the 770 but it should suit) wiki page:
http://maemo.org/community/wiki/Exte...ecbd162943b60e

I would recommend cloning to SD though, that's a lot easier and probably safer

PS: That wiki page is discussed here

Hope this helps!
__________________
Promises are like babies. Fun to make, but hard to deliver.

Warning: dates on calendar are closer than they appear.
 

The Following User Says Thank You to josiahg777 For This Useful Post:
Posts: 30 | Thanked: 66 times | Joined on Jun 2008
#14
Originally Posted by stevecrye View Post
Hi;
I know this is simplistic, but if I can somehow reformat the removable cart with ext2, and perhaps make some gentle changes in a config somewhere, can I then start to put bin files on the card and run then from there?
Hey Steve... I posted in the thread back that you can (again, using the power of linux) mount the SD card with different permissions, effectively 'blanket-setting' those ext2-ey bits on any card you pop in.

In a terminal, do: vi /usr/sbin/mmc-mount (or however you like to edit text), then remove the comma-delimited settings in the mount line saying 'noexec' as well as the two settings regarding 'umask' and 'dmask'. This is safe because it falls back to default settings (full permission umask/dmask and 'exec' instead of 'noexec')

Try that if you're still unwilling to dive into the deep end
 

The Following User Says Thank You to Pebby For This Useful Post:
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#15
Originally Posted by stevecrye View Post
Hi;

Benson,thanks for this tip:


And thanks for being gentle - what was I thinking, trying to set *nix bits of a file on a non-*nix partition? (I'm a 'tard, again ...)

I've been reading that cloning thread, but it is at a high-altitude compared to my linux skills. I'd hate to screw up my N810 so early in the game.

This is not a big priority for me right now (I'm hot on the trail of my WPA problem) , but as I start to run out of memory on the internal card, it will be more urgent.

I know this is simplistic, but if I can somehow reformat the removable cart with ext2, and perhaps make some gentle changes in a config somewhere, can I then start to put bin files on the card and run then from there?

You mentioned "don't go all the way" ... heh - that reminds me of back seat of my Camaro years ago. If I get the cloning stuff into the back seat, will I be able to easily stop? A bit more detail would be wonderful.

TIA as always,

Steve
Absolutely; you can leave the card partitioned as-is, and do a mke2fs to "format" it ext2. Then you probably need to pull the "noexec" option out; that forbids executing things regardless, and is often set on removable media; maybe also "nosuid" if you need setuid things, etc.

As for the cloning stuff; I really don't remember the details of how much I used the scripts, but the benefit is you get gainroot, kernel modules, e2fstools, everything, all bundled up in one place; then you sort through and do exactly what you want with it. I knew what I wanted, so it worked out great . I think that running the main script with some numeric options is more or less right for putting a blank e2fs on, but I don't remember for sure. It's probably easier to run the stuff manually, anyway, if that's all you want.
 

The Following User Says Thank You to Benson For This Useful Post:
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#16
Ok; I'm standing on the diving board and looking down at the still, deep, blue, water...

From josiahg777:
I would recommend cloning to SD though, that's a lot easier and probably safer
The clone thing seems really tempting. Questions: I get a 128 mb vfat, in addition to the ext2, so I can still connect to Windoze and copy files via USB? And, with the bootmenu, can I still boot to the original, internal partition (my life-preserver) ? While booted to the internal, will the n810 act the same way it does now - new apps get installed to the internal, etc. ? And conversely, while booted to the clone on the external card, will the N810 look and fell the same, but with more cool tools available, and new apps get installed to the external? (If the answer is yes to these, I think I'll go buy an 8 Gig card)

From Peeby:
In a terminal, do: vi /usr/sbin/mmc-mount (or however you like to edit text), then remove the comma-delimited settings in the mount line saying 'noexec' as well as the two settings regarding 'umask' and 'dmask'. This is safe because it falls back to default settings (full permission umask/dmask and 'exec' instead of 'noexec')

Try that if you're still unwilling to dive into the deep end
This is really silly - will this work on the vfat filesystem, or will I need to do what Benson suggsted first:
Absolutely; you can leave the card partitioned as-is, and do a mke2fs to "format" it ext2.
Thanks (as he takes deep breaths)

Steve
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#17
Yes, what Pebby says to do works with FAT.
 

The Following User Says Thank You to Benson For This Useful Post:
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#18
OK;

I tried to follow Peeby's suggestions, but there was no umask parameter, only dmask=000. So, the only edits I did were to remove the noexec and the dmask.

Here's my results - the modified mmc-mount ( I saved a copy of the original), and the results after powering off/on the n810:

Nokia-N810-51-3:/usr/sbin# cat mmc-mount
#!/bin/sh
#set -e
#dosfsck -n "$1" 2> /dev/null
mount -t vfat -o rw,noauto,nodev,nosuid,utf8,uid=29999,shortname=mi xed,fmask=0133 "$1" "$2" > /dev/null

Nokia-N810-51-3:/media/mmc1/Apps/nmap-4.50/bin# ls -l
-rw-r--r-- 1 user root 963095 Dec 21 02:25 nmap
Nokia-N810-51-3:/media/mmc1/Apps/nmap-4.50/bin# chmod 777 nmap
Nokia-N810-51-3:/media/mmc1/Apps/nmap-4.50/bin# ls -l
-rw-r--r-- 1 user root 963095 Dec 21 02:25 nmap
Nokia-N810-51-3:/media/mmc1/Apps/nmap-4.50/bin# ./nmap
-sh: ./nmap: Permission denied
Do I need to do something special to get it to mount after modifying the mmc-mount script? What about that fmask parameter?

I've also been a bit puzzled why my removable card is mmc1, and the internal card is mmc2.

BTW, the apparent space in "mix ed" is an artifact of the quote box in the forum.


Thanks,

Steve
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#19
Well, try taking the fmask out... that'll fix it.
 
stevecrye's Avatar
Posts: 226 | Thanked: 38 times | Joined on May 2008 @ Texas/Earth/Sol System/Milky Way/Local Group/Hubble Bubble/Infinity
#20
Slowly this stuff is sinking into my impermiable skull...

Sucess after removing fmask!
Nokia-N810-51-3:/media/mmc1/apps/nmap-4.50/bin# ls -l
-rwxr-xr-x 1 user root 963095 Dec 21 02:25 nmap
Nokia-N810-51-3:/media/mmc1/apps/nmap-4.50/bin# ./nmap -v -sS 192.168.100.1 > nmaptest
Nokia-N810-51-3:/media/mmc1/apps/nmap-4.50/bin# cat nmaptest

Starting Nmap 4.50 ( http://insecure.org ) at 2008-06-09 20:23 MDT
I
PORT STATE SERVICE
80/tcp open www
135/tcp filtered loc-srv
136/tcp filtered unknown
137/tcp filtered netbios-ns
138/tcp filtered netbios-dgm
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
Regarding running gui-apps as root;

I *think* it does not matter exactly how one assumes root - easyroot, sudo gainroot, ssh - the important tthing is that the application is launched as root:

~ $ root
BusyBox v1.6.1 (2007-09-27 18:08:59 EEST) Built-in shell (ash)
Enter 'help' for a list of built-in commands.
Nokia-N810-51-3:~# gconf-editor &
Nokia-N810-51-3:~# ps -ef | grep gconf
772 messagebus 3324 SW /usr/lib/gconf2/gconfd-2
1512 root 21596 SW gconf-editor
1514 root 1888 RW grep gconf
After launching it from the gui app-launcher:
Nokia-N810-51-3:~#
Nokia-N810-51-3:~# ps -ef | grep gconf-editor
1546 user 21596 SW /usr/bin/gconf-editor
1550 root 1888 RW grep gconf-editor
Nokia-N810-51-3:~#
Question: is there something magical about gainroot, that easy root is lacking? I saw some highly technical posts where the different camps argued the merits, but for Steve The Newbie, is easyroot ok?

BTW, the odd problem with gconf-editor is the same when running it as root. Still have to cancel instead of ok at the second ok after changing a value.

Thanks,
Steve
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:15.