maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   [Announce] Updated EasyDebian Images (https://talk.maemo.org/showthread.php?t=72818)

AndrewX192 2011-05-06 03:39

[Announce] Updated EasyDebian Images
 
Hello everyone,

I have decided to begin releasing my easydebian image templates, in the hopes that others will have to spend less time waiting for their devices to chug along installing/upgrading software.

The first one I will be releasing is simply an upgraded version of qole's most recent easydebian image from November 28th.

I have pinned pulseaudio to ensure that audio still works within the chroot.

This image is fully updated, and ready to do your bidding.
Grab it at: http://forge.localcoast.net/clients/....img.ext2.lzma

The only known issue with this release is that the /var/cache/apt/archives/partial directory is missing, and needs to be created. (you can use `mkdir` to create the directory). The following command will fix this issue:
Code:

mkdir /var/cache/apt/archives/partial
If I receive positive feedback on this release, I will roll out some templates for web developers (LAMP server stack), and so on.

Please let me know if you have any ideas for some custom templates.

To install the template to a partition (highly recommended), follow these steps: Note that you need to replace /dev/xxx with the formatted ext2|3 partition on the N900 or microSD card that you intend to use.

Code:

sudo su

mkdir /mnt/ed-img
mkdir /mnt/n900sd

mount -o loop /path/to/image.ext2 /mnt/ed-img
mount /dev/xxx /mnt/n900sd

cd /mnt/ed-img

#this command while take a good long time.. (15 minutes?)
tar cf - . | tar xfp - -C /mnt/n900sd

#un-mount the filesystems.
cd ~
umount /mnt/ed-img
umount /mnt/n900sd

Don't forget to update /home/user/.chroot to point to the correct location.
Eg:
Code:

IMGFILE=/dev/mmcblk1p6
or
Code:

IMGFILE=/media/mmc1/debian-m5-lc-v1a.img.ext2
Notice: I hereby disclaim any damage(s), or issue(s) caused by the use of these/this modfied file(s). Only make these changes if you already have an issue, and are looking to fix it. Be sure to backup all user data before making changes.

UPDATE: A new image was released, aimed at web developers. You can download it at http://forge.localcoast.net/clients/....img.ext2.lzma
This image contains all the package upgrades of the m5-lc-v1a image, but adds apache2, mysql, php, and phpmyadmin.
The mysql root password for this image is "password".

qole 2011-05-06 03:49

Re: Updated EasyDebian Images
 
Hey AndrewX192,

Having a set of EasyDebian "appliance" images is a great idea!

I can host these compressed images for you on my server.

But make sure you address all the bugs (like the missing /partial dir) first. I can then upload it to my server, and even add it to the list of images available from the installer.

AndrewX192 2011-05-06 03:57

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by qole (Post 1000994)
Hey AndrewX192,

Having a set of EasyDebian "appliance" images is a great idea!

I can host these compressed images for you on my server.

But make sure you address all the bugs (like the missing /partial dir) first. I can then upload it to my server, and even add it to the list of images available from the installer.

Yeah. If there is interest in making more of these templates/appliances, I will defiantly go for it.

How much bandwith a month are you using for hosting the current easydebian templates? I should be able to scale my hosting to handle any reasonable amount of demand on those images.

I will probably fix that missing partial directory tonight. The real issue is getting the file uploaded in a sane amount of time. Last round I uploaded over T-Mobile because I was getting better upload speeds on 3G than on my cable Internet. (1.5Mb/s vs 768kb/s).

IcyMoustache 2011-05-06 09:01

Re: Updated EasyDebian Images
 
Could you please list somewhere the changes in this compared to the one released by Master Qole last year??

This will greatly help people download such a big file better.

IcyMoustache 2011-05-06 09:43

Re: Updated EasyDebian Images
 
I am currently downloading the file... slow internet, too slow maybe..

anyways how do u chroot into this (noob alert :P)??

just replace the old image in MyDocs, and put this in that place (with the same name)???

Radicalz38 2011-05-06 10:21

Re: Updated EasyDebian Images
 
Hi! Is flash player fixed on this one? (No i'm not asking for flash 10 but flash 9)

AndrewX192 2011-05-07 03:59

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by IcyMoustache (Post 1001086)
I am currently downloading the file... slow internet, too slow maybe..

anyways how do u chroot into this (noob alert :P)??

just replace the old image in MyDocs, and put this in that place (with the same name)???

You can replace the current file, or you can follow my instructions provided in the first post of this thread.
The file you need to change is /home/user/.chroot

I recommend the latter option so you can switch between images easily.

AndrewX192 2011-05-07 04:00

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by IcyMoustache (Post 1001068)
Could you please list somewhere the changes in this compared to the one released by Master Qole last year??

This will greatly help people download such a big file better.

The only changes to this version was an apt-get update && apt-get upgrade were performed (pulseaudio was not upgraded, however). About 420 packages were updated via apt-get upgrade.

AndrewX192 2011-05-07 04:16

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by Radicalz38 (Post 1001096)
Hi! Is flash player fixed on this one? (No i'm not asking for flash 10 but flash 9)

Not sure what you mean by "fixed", but Adobe's website says flash was detected.

AndrewX192 2011-05-07 05:52

Re: Updated EasyDebian Images
 
I have updated the original post to include a new image, aimed at web developers.

karam 2011-05-07 06:23

Re: Updated EasyDebian Images
 
i have a a darn issu with in installing/upgrading new packages in easy debian using image m5v3d
i couldn't even upgrade open office
so i had to install the packages with dpkg one by one
it took for ever
because at some point of upgrading or installing n900 reboots

i tried to overcloak to reduce the running tasks etc...
i realy need the easy debian with it's installable apps (dsniff gerix-ng fasttrack msf3 hamster ettercap etc...)

so is this a common problem ?
do i have to use sdk in virtule machine ?
and is this new image has the upgraded packages from squeeze repository?

and why not installing it using the old methon i mean is it important to install it to a partition?

Thank you

AndrewX192 2011-05-07 06:29

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1001518)
i have a a darn issu with in installing/upgrading new packages in easy debian using image m5v3d
i couldn't even upgrade open office
so i had to install the packages with dpkg one by one
it took for ever
because at some point of upgrading or installing n900 reboots

i tried to overcloak to reduce the running tasks etc...
i realy need the easy debian with it's installable apps (dsniff gerix-ng fasttrack msf3 hamster ettercap etc...)

so is this a common problem ?
do i have to use sdk in virtule machine ?
and is this new image has the upgraded packages from sqeeze repository?

and why not installing it using the old methon i mean is it impotant to install it to a partition?

Thank you

Not entirely sure why your device is rebooting while performing package management operations in easydebian, however it is poissible that your device is I/O locking, and the watchdog is forcing the device to reboot.

This image has the updated packages from debian squeeze, so some functionality may be unstable.

Also, using a partition for easydebian removes the overhead of two filesystems (the image is a filesystem in its self).

karam 2011-05-07 06:39

Re: Updated EasyDebian Images
 
Thanks for the fast reply
so do you think it is possible to prevent the reboots by installing the image into a partition?
or maybe disabling the self-defence (or something like that) with flasher r&d mode ?

AndrewX192 2011-05-07 06:42

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1001521)
Thanks for the fast reply
so do you think it is possible to prevent the reboots by installing the image into a partition?
or maybe disabling the self-defence (or something like that) with flasher r&d mode ?

I doubt that using a partition will resolve the issue, however, you can give it a try if you want.

I do not recommend disabling any safeguards, as you could get yourself into a lot of trouble.

On a side note, are you using easydebian from a microSD card, or from the internal storage? You may want to try the internal storage if you have been trying a microSD card.

karam 2011-05-07 06:45

Re: Updated EasyDebian Images
 
no i'm using the internal storage
installing it to the partition now :)
i will be extremely happy if it got stable after that

AndrewX192 2011-05-07 23:23

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1001524)
no i'm using the internal storage
installing it to the partition now :)
i will be extremely happy if it got stable after that

You were probably having issues because your swap and easydebian image were on the same storage. Using easydebian on a microSD should improve your results.

karam 2011-05-08 17:54

Re: Updated EasyDebian Images
 
OHH help me please i tried to install the downloaded image to the file system but at the first time i copied the lines changed xxx to ext2 and the path of the image so and pasted them in the terminal so i didn't have a chance to see any errors
but it didn't work + i did something stupid so i had to reflash my n900
anyway it is not a big deal cause i have backupmenu

the second time i tried to install it

with entering the command

mount /dev/ext2 /mnt/n900sd
i had

mount: mounting /dev/ext2 on /mnt/n900sd failed: No such file or directory

every thing before got working fine but if i continued ignoring this error

when enterin the command

tar cf - . | tar xfp - -C /mnt/n900sd

i had after few seconds errors about no space left on the device
then a bunch of unlimited errors

if i checked the rootfs i can see it is 0

so any idias

btw i have kernel-power v47
i have no microsd
please advice me

thanks

karam 2011-05-08 18:14

Re: [Announce] Updated EasyDebian Images
 
i have a clean reflashed n900
so no confilcts or problems may occure but the same still the samething happened as i mentioned above

AndrewX192 2011-05-08 18:16

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002227)
OHH help me please i tried to install the downloaded image to the file system but at the first time i copied the lines changed xxx to ext2 and the path of the image so and pasted them in the terminal so i didn't have a chance to see any errors
but it didn't work + i did something stupid so i had to reflash my n900
anyway it is not a big deal cause i have backupmenu

the second time i tried to install it

with the command

mount /dev/ext2 /mnt/n900sd
i had

mount: mounting /dev/ext2 on /mnt/n900sd failed: No such file or directory

every thing before got working fine but if i continued ignoring this error

when the command

tar cf - . | tar xfp - -C /mnt/n900sd

i had after few seconds errors about no space left on the device
then a bunch of unlimited errors

if i checked the rootfs i can see it is 0

so any idias

btw i have kernel-power v47
i have no microsd
please advice me

thanks

So, you dont't have a partiton to install easydebian to? Then you should have skipped those steps. You just need to decompress the LZMA file, and you will havr a ext2 image to work with. Simply point /home/user/.chroot to the image you extracted and you will be set.

You should never run commands in the terminal without knowing what they will do.

AndrewX192 2011-05-08 18:18

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002239)
i have a clean reflashed n900
so no confilcts or problems may occure but the same still the samething happened as i mentioned above

Don't use the partitoning instructions then. Just extract the image and edit /home/user/.chroot to point to the proper location.

Radicalz38 2011-05-08 18:18

Re: [Announce] Updated EasyDebian Images
 
seriously what's /dev/ext2? It will never exist on n900 at all.

karam 2011-05-08 18:23

Re: [Announce] Updated EasyDebian Images
 
hmm then how where you able to install it to your filesystem
and how can i extract the img format (noob question) with tar?
and how do i efit the .chroot to the location ? just like
IMGFILE=/path/tothe/extractedimage/ ?
it won't be and img anymore
it will be extracted ? am i write?

AndrewX192 2011-05-08 18:27

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by Radicalz38 (Post 1002243)
seriously what's /dev/ext2? It will never exist on n900 at all.

That too. I assume he was doing this on his N900, so when that command failed, /mt/n900sd was left on rootfs, which was quickly filled.

karam 2011-05-08 18:30

Re: [Announce] Updated EasyDebian Images
 
so any suggestions to fix this problem?

the image is super grate just this problem is left :(

AndrewX192 2011-05-08 18:34

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002246)
hmm then how where you able to install it to your filesystem
and how can i extract the img format (noob question) with tar?
and how do i efit the .chroot to the location ? just like
IMGFILE=/path/tothe/extractedimage/ ?
it won't be and img anymore
it will be extracted ? am i write?

It should work like this
Code:

# change directory
cd /home/user/MyDocs/

#decompress the image
lzma debian-*.lzma

Now add something like

IMGFILE=/home/user/MyDocs/debian-????.ext2

to /home/user/.chroot
and add a # before any of the other IMGFILE lines.

karam 2011-05-08 18:35

Re: [Announce] Updated EasyDebian Images
 
ohhh i know this i thought you ment extract the .img
so back to the old fasion way
n900 reboots again :(

AndrewX192 2011-05-08 18:37

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002253)
so any suggestions to fix this problem?

the image is super grate just this problem is left :(

Please see my last post on this issue. I am typing this from my N900, so my typing speed is slowed.

AndrewX192 2011-05-08 18:38

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002258)
ohhh i know this i thought you ment extract the .img
so back to the old fasion way
n900 reboots again :(

It reboots during image extraction? Did it lock up before it rebooted, or did it just reboot out of the blue?

karam 2011-05-08 18:39

Re: [Announce] Updated EasyDebian Images
 
well sometimes reboots within the image extraction if i was extracting and using a lot of apps

but the reboots always happens when installing new packages inide the image it self lots of packages together like upgrading openoffice.org

AndrewX192 2011-05-08 18:42

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002261)
i know that i thought extracting the img file it self

so there is noway to create ext2 or ext3 at dev to install it to file system?

then did it work with you and how? (it must have worked with you unless you wouldn't post it in the thread ) maybe :)

I extracted easydebian to my microSD card, which apparently you do not have?

karam 2011-05-08 18:43

Re: [Announce] Updated EasyDebian Images
 
what do you mean with out of the blue?

AndrewX192 2011-05-08 18:45

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002267)
what do you mean with out of the blue?

Was it responding to user input before it rebooted?

misiak 2011-05-08 18:45

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002227)
mount /dev/ext2 /mnt/n900sd
i had

mount: mounting /dev/ext2 on /mnt/n900sd failed: No such file or directory

every thing before got working fine but if i continued ignoring this error

when enterin the command

tar cf - . | tar xfp - -C /mnt/n900sd

i had after few seconds errors about no space left on the device
then a bunch of unlimited errors

Do you know what it means? The "mount" command tries to mount some partition of your hdd (in this case phone memory) in your filesystem, so it would be accesible via /mnt/n900sd in this case. It's needed to be done for every partition/storage/etc.etc. to read or write files on them. It FAILED. So /mnt/n900sd was not poining to any external partition (as it should), it was just a directory (think of "mount" partition as some magic trick to change a folder into a hard disc ;) ). So when you ran "tar" command, N900 tried to decompress whole 2GB EasyDebian image to small N900's 200MB root file system. That's why you got errors and 0 space left on device - you tried to extract 2GB of files to 200MB of space ;)

Quote:

Originally Posted by karam (Post 1002258)
ohhh i know this i thought you ment extract the .img
so back to the old fasion way
n900 reboots again :(

If you still have problems with extracting (phone reboots while doing that) and you have access to PC, you can connect your phone to PC, transfer lzma file there, extract it on computer and copy the extracted image back to N900. Under linux, instructions are basically the same, but I think you are rather not linux-guy :P Under Windows you can use program called "7-zip" to open and extract it. It's available for free at www.7-zip.org

karam 2011-05-08 18:46

Re: [Announce] Updated EasyDebian Images
 
my question is with command mount /dev/ext2 or /dev/ext3 /mnt/n900sd
what happened with you and where did you get ext2 or 3 in /dev directory there is no ext3 or 2 (maybe created them?)

karam 2011-05-08 18:49

Re: Updated EasyDebian Images
 
Quote:

Originally Posted by misiak (Post 1002270)
Do you know what it means? The "mount" command tries to mount some partition of your hdd (in this case phone memory) in your filesystem, so it would be accesible via /mnt/n900sd in this case. It's needed to be done for every partition/storage/etc.etc. to read or write files on them. It FAILED. So /mnt/n900sd was not poining to any external partition (as it should), it was just a directory (think of "mount" partition as some magic trick to change a folder into a hard disc ;) ). So when you ran "tar" command, N900 tried to decompress whole 2GB EasyDebian image to small N900's 200MB root file system. That's why you got errors and 0 space left on device - you tried to extract 2GB of files to 200MB of space ;)



If you still have problems with extracting (phone reboots while doing that) and you have access to PC, you can connect your phone to PC, transfer lzma file there, extract it on computer and copy the extracted image back to N900. Under linux, instructions are basically the same, but I think you are rather not linux-guy :P Under Windows you can use program called "7-zip" to open and extract it. It's available for free at www.7-zip.org


i have already done that and i used to use v3d image
just want to stop rebooting while installing lots packages in the debian chroot it self
by installing to the filesystem
beleive me i'm not so noob but how to do as andrew says?
thanks for help .)

AndrewX192 2011-05-08 18:49

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002271)
my question is with command mount /dev/ext2 or /dev/ext3 /mnt/n900sd
what happened with you and where did you get ext2 or 3 in /dev directory there is no ext3 or 2 (maybe created them?)

Where did you get the idea of "/dev/ext3" or "/dev/ext2"? It's not valid!

karam 2011-05-08 18:51

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by AndrewX192 (Post 1002274)
Where did you get the idea of "/dev/ext3" or "/dev/ext2"? It's not valid!

OOOOHH i ment with the command mount /dev/ext2 /mnt/n900sd
says
mount: mounting /dev/ext2 on /mnt/n900sd failed: No such file or directory

so no /dev/ext2
any fixes?

misiak 2011-05-08 18:53

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002271)
my question is with command mount /dev/ext2 or /dev/ext3 /mnt/n900sd
what happened with you and where did you get ext2 or 3 in /dev directory there is no ext3 or 2 (maybe created them?)

No no no! You got it all wrong.
Quote:

Note that you need to replace /dev/xxx with the formatted ext2|3 partition on the N900 or microSD card that you intend to use
Menas you have to replace xxx with partition path, not "ext3" or "ext2". Normally, your partitions are:
Quote:

/dev/mmcblk0p1
/dev/mmcblk0p2
/dev/mmcblk0p3
/dev/mmcblk1p1
if you repartition your for example SD card (or EMMC) (while installing NITDroid for example you get extra partition /dev/mmcblk1p2 if you install it on SD card). I think it is rocket science for you anyway, so I won't provide here lots of not needed information about how to do that. Anyway, by default you have (beginning with mmcblk0) swap partition (for extending ram), /opt partition (for installing apps) and normal FAT32-formatted partition (which you can see via file manager or when you connect your phone to PC) and (beginning with mmcblk1) partition on memory card. You could for example format your whole memory card as ext3 (if you have linux pc) and replace /dev/xxx with /dev/mmcblk1p1 in these command then (if you have many memory cards around, you could do that to increase speed of easy debian)

EDIT:
Quote:

Originally Posted by karam (Post 1002273)
beleive me i'm not so noob but how to do as andrew says?

Sorry for the you-may-be-noob part of my post :P

karam 2011-05-08 18:54

Re: [Announce] Updated EasyDebian Images
 
you said at page 1
replace /dev/xx with ext2 or ext3 ( the one partitioned in you r n900 or microsd )

AndrewX192 2011-05-08 18:54

Re: [Announce] Updated EasyDebian Images
 
Quote:

Originally Posted by karam (Post 1002276)
OOOOHH i ment with the command mount /dev/ext2 /mnt/n900sd
says
mount: mounting /dev/ext2 on /mnt/n900sd failed: No such file or directory

so no /dev/ext2
any fixes?

You are after /dev/sd* or /dev/mmc+

You will need to repartion your storage (microSD?)


All times are GMT. The time now is 05:24.

vBulletin® Version 3.8.8