maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   anyone else want "easy fedora" (https://talk.maemo.org/showthread.php?t=60117)

extendedping 2010-08-10 20:31

anyone else want "easy fedora"
 
I do really like easy debian and wish there was a similar easy fedora. seems to me there are enough differences between debian and a redhat style systems to actually warrent learning both seperately (rpm based, different locations for many files etc).

I am pretty much a noob and it took me 2 days to get arm based fedora running in chroot. even then yum/rpm did not work and upon unmounting the chroot a df was populated by tons of missing file or directory output till I rebooted.

anyway thanks for listening. and please don't think I am not loving easy debian. It's just as I said that working on that is making me forget the little fedora (actually centos) that I have learned.

extendedping 2010-08-11 03:50

Re: anyone else want "easy fedora"
 
wow no thoughts whatsoever. but bye bye nokia has 165 posts (mostly from people whining about how whiners should not take up their important time).

I guess perhaps talent (of which I certainly am not a part) really is leaving in droves.

fatalsaint 2010-08-11 04:04

Re: anyone else want "easy fedora"
 
Now now.. don't get all sensitive here ;).

http://talk.maemo.org/showthread.php?t=38987

http://wiki.maemo.org/User:Jebba/Fedora

kingoddball 2010-08-11 04:51

Re: anyone else want "easy fedora"
 
Nope not me. Easy Debian is great! We can't run a heavy gui anyhow... Lag's and get too slow.

SimonGie 2010-08-11 06:56

Re: anyone else want "easy fedora"
 
XFCE runs very well on Fedora with no lag.

extendedping 2010-08-11 18:05

Re: anyone else want "easy fedora"
 
I read those threads, unless I did not get something, they were mostly about a dual boot. but to hack a good working fedora chroot I did not find much. like I said I did get it working but with no yum/rpm and tons of missing file/folder messages after an umount (I had to mount with qumount but unmount with umount) it did not really seem functinal to me. oh well easy debian is great I'll try not to be greedy and be happy without a fedora counterpart. sigh..

fatalsaint 2010-08-11 18:29

Re: anyone else want "easy fedora"
 
Quote:

Originally Posted by extendedping (Post 783286)
I read those threads, unless I did not get something, they were mostly about a dual boot. but to hack a good working fedora chroot I did not find much. like I said I did get it working but with no yum/rpm and tons of missing file/folder messages after an umount (I had to mount with qumount but unmount with umount) it did not really seem functinal to me. oh well easy debian is great I'll try not to be greedy and be happy without a fedora counterpart. sigh..

I dont understand.

The broken yum/rpm thing sounds like something went wrong in the building of your Fedora root package, regardless of dual boot or chroot..

As far as Chroot vs Dual Boot there isn't much of a difference. You can follow the steps in the Dual Boot.. get a full Fedora Root onto your SD card partition or even inside an image file.. whatever you want.. then you simple "chroot" into it from a terminal in Maemo.

Now, if you want the integration and such from qole's easy debian scripts.. thats still doable.. with likely minimal changes to his scripts.

Did you download the rootfs from Jebba?

http://wiki.maemo.org/User:Jebba/Fedora#rootfs

That's seriously all you should need. Download the rootfs, untar it to a partition.. don't mess with bootmenus or kernels as you dont need them in a chroot.

The freemoe-fedora-install on Jebba's pretty much shows you everything you need to do. It even has the chroot command in the end of it.

extendedping 2010-08-11 19:07

Re: anyone else want "easy fedora"
 
thanks I will try again tonight. I am pretty sure that was the image I took. when I do it this time I will document in detail each step of what I do and post it here for feedback if that is ok...

fatalsaint 2010-08-11 19:11

Re: anyone else want "easy fedora"
 
Quote:

Originally Posted by extendedping (Post 783333)
thanks I will try again tonight. I am pretty sure that was the image I took. when I do it this time I will document in detail each step of what I do and post it here for feedback if that is ok...

Sure. If I get a chance I'll try and get it setup too so that I can help troubleshoot better.

SimonGie 2010-08-11 19:21

Re: anyone else want "easy fedora"
 
Follow Jebba's guide up to where you extrat the rootfs. the chroot into it. to get yum working, you need to rebuild the rpm database.

Do this by:
Code:

cd /var/lib
rm __db*
rpm --rebuilddb

let it do its thing and then run
Code:

yum update --skip-broken
I did this and got yum working.

extendedping 2010-08-11 19:35

Re: anyone else want "easy fedora"
 
thanks all I dont even care about x or desktop, I just want a redhat style server on my phone...btw I did try the command to rebuild rpm and it did not work...again, I will take it from the top documenting my steps.

SimonGie 2010-08-11 19:51

Re: anyone else want "easy fedora"
 
I had issues with yum, I also had to change my repos.
you need to edit your fedora.repo and fedora-updates.repo to use different repositories. the standard ones were dead for me.

Im on the train now but will post them when I get home.

extendedping 2010-08-11 20:04

Re: anyone else want "easy fedora"
 
see if everyone chips in there 2 cents...perhaps the knowledge could be turned into easy fedora?!?!?

btw if I buy an sd card then can I setup fedora as a dual boot and still retain the option of chrooting into it from maemo? if so I will go out today and buy an 8gb sd card...

fatalsaint 2010-08-11 20:42

Re: anyone else want "easy fedora"
 
Quote:

Originally Posted by extendedping (Post 783422)
see if everyone chips in there 2 cents...perhaps the knowledge could be turned into easy fedora?!?!?

btw if I buy an sd card then can I setup fedora as a dual boot and still retain the option of chrooting into it from maemo? if so I will go out today and buy an 8gb sd card...

Yes.

Chroot will work from a bootable rootfs.

Booting does not necessarily work from a chroot-specific image though.

(case in point: easy-debians rootfs is not a complete rootfs of debian, just what you need to get a stable chroot, so booting wouldn't work. OTOH: Mer, and other full bootable debians, were a full rootfs that you could boot too, and also chroot into if you wanted.)

SimonGie 2010-08-11 21:16

Re: anyone else want "easy fedora"
 
Edit your fedora.repo to look like this
You may as well delete the file and remake it it and just copy this into it.

Code:

[fedora]
name=Fedora $releasever - $basearch
#mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=fedora-$releasever&arch=$basearch
baseurl=ftp://ftp.linux.org.uk/pub/linux/arm/fedora/pub/fedora/linux/releases/12/Everything/arm/os/Packages/
enabled=1
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[fedora-source]
name=Fedora $releasever - Source
failovermethod=priority
baseurl=http://download.fedoraproject.org/pub/fedora/linux/releases/$releasever/Everything/source/SRPMS/
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-primary

[fedora-arm-source]
name=Fedora ARM $releasever - Source
mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=fedora-source-$releasever&arch=$basearch
enabled=0
metadata_expire=7d
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

And the same goes for your fedora-updates.repo

Code:

[updates]
name=Fedora $releasever - $basearch - Updates
#mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=updates-released-f$releasever&arch=$basearch
baseurl=ftp://ftp.linux.org.uk/pub/linux/arm/fedora/pub/fedora/linux/updates/12/arm/
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-source]
name=Fedora $releasever - Updates Source
failovermethod=priority
#baseurl=http://download.fedoraproject.org/pub/fedora/linux/updates/$releasever/SRPMS/
mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

[updates-arm-source]
name=Fedora ARM $releasever - Updates Source
mirrorlist=http://mirrorlist.fedora-arm.wantstofly.org/?repo=updates-released-source-f$releasever&arch=$basearch
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch

This should provide you with a working yum, after you rebuild the database.

extendedping 2010-08-12 18:21

Re: anyone else want "easy fedora"
 
ok stage one: downloaded via jebber link
extracted into /home/user/MyDocs/Fedora.

got lots of "cannot change file to uid gid 0" (or something to that effect) which cannot be good during the 1 1/2 hour extract. did a simple /usr/sbin/chroot and told not permitted. Will now start reading jebber info.

fatalsaint 2010-08-12 18:23

Re: anyone else want "easy fedora"
 
Quote:

Originally Posted by extendedping (Post 784478)
ok stage one: downloaded via jebber link
extracted into /home/user/MyDocs/Fedora.

got lots of "cannot change file to uid gid 0" (or something to that effect) which cannot be good during the 1 1/2 hour extract. did a simple /usr/sbin/chroot and told not permitted. Will now start reading jebber info.

You cant use /home/user/MyDocs

That's a FAT formatted filesystem (Unless you've changed it yourself) and doesn't support several of the necessary modes (executables, permissions) and file-types (soft links) required by a rootfs.

You need to extract that to an ext3 formatted area somewhere.

extendedping 2010-08-12 18:28

Re: anyone else want "easy fedora"
 
ok it's sd card time...thanks

Magik 2010-08-12 19:53

Re: anyone else want "easy fedora"
 
Quote:

anyone else want "easy fedora"
Me, me :D
RPM's aren't my thing, but why the hell not :) I love to have many options.

kingoddball 2010-08-13 07:03

Re: anyone else want "easy fedora"
 
Ok.. Maybe I am now up for this idea... Ignore my first post!
LETS DO IT!
Has anyone created a 2GB ext3 loop back?

(Taken and adapted from Meego)

Creating a loopback image from a tarball
Code:

Create 2GB image file
dd if=/dev/zero of=/home/user/MyDocs/fedora-image bs=1024 count=2097152

Create filesystem on image file
mkfs.ext3 /home/user/MyDocs/fedora-image

Create mount point and loopback mount the image
export FEDORA_ROOT="/mnt/fedora_root"
mkdir $FEDORA_ROOT
mount -o loop /home/user/MyDocs/fedora-image $FEDORA_ROOT

Code:

apt-get install tar-gnu

gtar -tzf <fedora-image>

gtar -xzf <fedora-image> -C $FEDORA_ROOT

umount $FEDORA_ROOT

None of the above may actually work. It's just an idea, Qole would be the best for this....

But!! I want to help! FEDORA!

extendedping 2010-08-13 13:39

Re: anyone else want "easy fedora"
 
Quote:

Originally Posted by kingoddball (Post 784986)
Ok.. Maybe I am now up for this idea... Ignore my first post!
LETS DO IT!
Has anyone created a 2GB ext3 loop back?

(Taken and adapted from Meego)

Creating a loopback image from a tarball
Code:

Create 2GB image file
dd if=/dev/zero of=/home/user/MyDocs/fedora-image bs=1024 count=2097152

Create filesystem on image file
mkfs.ext3 /home/user/MyDocs/fedora-image

Create mount point and loopback mount the image
export FEDORA_ROOT="/mnt/fedora_root"
mkdir $FEDORA_ROOT
mount -o loop /home/user/MyDocs/fedora-image $FEDORA_ROOT

Code:

apt-get install tar-gnu

gtar -tzf <fedora-image>

gtar -xzf <fedora-image> -C $FEDORA_ROOT

umount $FEDORA_ROOT

None of the above may actually work. It's just an idea, Qole would be the best for this....

But!! I want to help! FEDORA!

As close as I got. funny I still can't even get it chroot on my sd card. as noted below yum/rpm not working and after exit of chroot a df in maemo shows lots of "hanging" (looking for nonexistant?) mountpoints.

chroot fedora
remember to use gnu tools (ie gtar and gdd) not the busybox stuff
get bzip image
make a final destination folder (I made /.fedora)
make a loopable 2gb ext2 image file to do this do (in /home/user/MyDocs)

* gdd if=/dev/zero of=/home/user/MyDocs/fedora.img bs=1024 count=2097152
* mkfs.ext2 /home/user/MyDocs/fedora.img


now you have an empty 2G loopable ext2 file called fedora.img
mount the file (I made a directory called /mnt/fedmount). remember the process is mount the file as a loop device and copy the contents of the downloaded fedora file system directory to this. once unmounted you will have transferred the root file system to the /home/user/MyDocs/fedora.img file from the downloaded file using the /mnt/fedmount (or whatever) as your middleman.

* qmount /home/user/MyDocs/fedora.img /mnt/fedmount ----- please note this is qmount not mount

* cp /home/user/MyDocs/rootfs-f12.tar.bz2 /mnt/fedmount
* cd /mnt/fedmount
* gtar -xjf rootfs-f12.tar.bz2


now you cd into rootfs-f12 and copy everything there (cp -ar * ../) up one directory, then rm -rf both rootfs-f12 and rootfs-f12.tar.bz2 (you need to get rid of the tar file and the top level dir holding the file system).

* umount /mnt/fedmount (please not this is regular umount now qumount
* qchroot /home/user/MyDocs/fedora.img /.fedora


then you are chrooted in.
umount (or was it qumount?) leaves things hanging in df... (ie looking for mountpoints that are not there and the only way to clear the output is to reboot phone).

extendedping 2010-08-13 14:45

Re: anyone else want "easy fedora"
 
obviously I am too noob for now and still need help. ok I took a 4gb sd card out of my old phone. I plug n900 into the pc (ubuntu). I see the 4gb partition as /dev/sdc1. I do fdisk /dev/sdc1 and create 3 partitions. 1 (cause jebber says put fat to shut up maemo) is type fat32 type c 100m . 2 is linux type 83 3gb. 3 is type swap apx 1gb.

root@ubnuntu:~# fdisk /dev/sdc1

WARNING: DOS-compatible mode is deprecated. It's strongly recommended to
switch off the mode (command 'c') and change display units to
sectors (command 'u').

Command (m for help): p

Disk /dev/sdc1: 3959 MB, 3959456256 bytes
4 heads, 16 sectors/track, 120833 cylinders
Units = cylinders of 64 * 512 = 32768 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x69737369

Device Boot Start End Blocks Id System
/dev/sdc1p1 1 3201 102424 c W95 FAT32 (LBA)
/dev/sdc1p2 3202 101506 3145760 83 Linux
/dev/sdc1p3 101507 120833 618464 82 Linux swap / Solaris


Command (m for help):

next (this confuses me) I do a regular fdisk -l and I think I will see all those partitions but I just see the sdc1 listed as such.

Disk /dev/sdc: 3965 MB, 3965190144 bytes
128 heads, 63 sectors/track, 960 cylinders
Units = cylinders of 8064 * 512 = 4128768 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 959 3866656+ b W95 FAT32
Partition 1 has different physical/logical endings:
phys=(959, 127, 63) logical=(958, 127, 63)


so at this point, before I get to copying the or untarring the fedora file system....I am confused. shouldn't fdisk -l show me 3 partitions now? one fat one ext3 and one swap?

I have tried to make a file system on /dev/sdc1p2 but it says "device does not exist".

fatalsaint 2010-08-13 15:32

Re: anyone else want "easy fedora"
 
Nono.. you did that wrong.

Using fdisk you don't pass it a partition.. you pass it a device.

Code:

fdisk /dev/sdc
NOT

Code:

fdisk /dev/sdc1
... I don't even know what that second one would do or how you would use any of those partitions. Maybe it automatically made them extended partitions instead of primary....

Anyway. Do it the first way above.

qole 2010-08-13 15:52

Re: anyone else want "easy fedora"
 
Sorry for not chipping in earlier on this.

I haven't been around a whole lot the past few weeks.

I have tried the Fedora 12 chroot but I couldn't see any advantages over Debian. They have compiled far fewer packages and there doesn't seem to be anything in Fedora that isn't also available for Debian. So I've never offered an Easy Fedora package, even though it wouldn't be very hard to make.

If you make a Fedora image file like in kingoddball's instructions, you can just point your Easy Debian to the image file (change the IMGFILE= line in your /home/user/.chroot) and then use Easy Debian to access Fedora. You can even copy some of the N900 specific stuff from the Debian image to your Fedora image and get it doing all the same stuff...

(EDIT: Yes, you can also put Fedora in a partition on your SD card and use it with Easy Debian)

But honestly, other than a preference for Red Hat, what is the advantage of running Fedora instead of Debian?

fatalsaint 2010-08-13 15:58

Re: anyone else want "easy fedora"
 
Quote:

Originally Posted by qole (Post 785437)
But honestly, other than a preference for Red Hat, what is the advantage of running Fedora instead of Debian?

Like he mentioned earlier the management styles and tools are different.

Having an RPM based Distro to play with as well as a Deb-based system allows you to keep up on the quirks that are different between Red Hat and.... the rest of the planet. :D

extendedping 2010-08-13 16:43

Re: anyone else want "easy fedora"
 
exactly. for instance I am not saying redhat/centos/fedora is better. Actually it may be worse. but like it or not if I want to study say networking services for a job interview, there is like a 99% chance the will ask me about redhat style quirks not debian style quirks. For example I have a book called "pro linux system administration" I am reading. each chapter details both the debian/ubuntu way of doing things and the redhat/fedora way. take apache for example. the way things are layed out and enabled are totally different between the two.

I personally love the stuff easy debian makes possible like iceweasel etc and dont need that dujplicated. I just would love to have the ability to work with core linux services with a foot in both major camps...the debian and the redhat.

thanks for listening. off to repartition my sd card thanks fatalsaint.

extendedping 2010-08-13 19:55

Re: anyone else want "easy fedora"
 
well thanks guys I am into crippled fedora

quole get on you white horse

please :)

kingoddball 2010-08-13 23:52

Re: anyone else want "easy fedora"
 
Why not take another route... Easy Ubuntu - Using MuhammadAG's build?

Qole: are you able to install two instances of easy debian? i dont want to mess with easy debian, flawless how it is. if we can make another start program or install a second easy debian, we could get both running :D

qole 2010-08-14 00:12

Re: anyone else want "easy fedora"
 
yeah, you can even have multiple chroots open simultaneously. I currently am working on a Meego chroot and using Easy Debian to do it.

If you want a second system (Ubuntu, Fedora, Meego) open at the same time as Easy Debian, use a command line like this one to chroot into Meego Handset:

Code:

sudo qchroot /home/user/MyDocs/meego-handset.img.ext3 /.meego su user

extendedping 2010-08-14 00:19

Re: anyone else want "easy fedora"
 
why open ubuntu when it is based off deban?

kingoddball 2010-08-14 08:18

Re: anyone else want "easy fedora"
 
Qole: Will you add the "Easy Meego" you're making up on your repo, so we can all download it? :D I would love to be the first!
i would love to try out some new OS's Easy Debian style!! :D

Edit:
I'm going to TRY and build an "easy" Fedora tonight. I just don't really know anything more than the loopback part :(
But I'll give it a shot. Most likely another failure, but using Qole's help and advice above, I'm sure we could get one running!

Edit Again: No Go. Could not get it going correctly.
I guess we will wait, or just enough Easy Debian! (Although!! Qole: "Easy" Meego would be great!!!! :D Hint Hint, Buddy! MATE! PAL!)

extendedping 2010-08-14 13:07

Re: anyone else want "easy fedora"
 
if I recall correctly there is a linux distro called "easy peasy". why not make an easy easy peasy just for the heck of it.

seriously though, the more I read about redhat/centos/fedora vs debian the more I am convinced one needs to know both, and that the differences are great enough that an easy fedora would really be a great thing.

rebhana 2010-08-15 17:24

Re: anyone else want "easy fedora"
 
Quote:

Originally Posted by qole (Post 785894)
yeah, you can even have multiple chroots open simultaneously. I currently am working on a Meego chroot and using Easy Debian to do it.

Wow - Easy Debian is really the single most powerful app on the N900. I'm not sure I would now be buying another N900 after I lost it to a pickpocket during my vacation in Paris three weeks ago if there was no Easy Debian. In particular after seeing qwerty12 leave this community in disgust and with more than disgusting statements that I fail to find hilarious. But you, qole, make me look forward to having an N900 again soon.

EDIT (albeit coming too late): Happy birthday, qole!

extendedping 2010-08-15 19:15

Re: anyone else want "easy fedora"
 
so I really hope it could be done. in that case I could leave easy debian as the os I dont break (I am trying to learn perl on it) and use fedora as my learn stuff dont care if I have to reinstall os. I have beeen looking at a netbook to dig into fedora but if we had easy fedora could do it all from my phone. hpoe the answer is yes. heck it may even run calibre which easy debian cannot. sorry typing on kindle.

extendedping 2010-08-16 15:37

Re: anyone else want "easy fedora"
 
Quote:

Originally Posted by SimonGie (Post 783351)
Follow Jebba's guide up to where you extrat the rootfs. the chroot into it. to get yum working, you need to rebuild the rpm database.

Do this by:
Code:

cd /var/lib
rm __db*
rpm --rebuilddb

let it do its thing and then run
Code:

yum update --skip-broken
I did this and got yum working.

ok I don't see any _db files in the /var/lib directory, I went to the /var/lib/rpm and removed any _db files there (don't know if that was correct). then rpm --rebuilddb gives this...

Nokia-N900:/var/lib/rpm# rpm --rebuilddb
error: cannot open Packages index using db3 - No such file or directory (2)

I copied the stuff to make new yum repos as per your later post but I am pretty sure that can't work till I can get past this initial stage.

I'm a bout ready to just give up and use the easy debian as it is flawless. :(

extendedping 2010-08-16 22:59

Re: anyone else want "easy fedora"
 
worthless unless I can get yum going

any suggestions?

extendedping 2010-08-17 13:55

Re: anyone else want "easy fedora"
 
ok I can take a hint, I did try to get fedora working but following the instructions given to me I could not get rmp/yum working. I will start shopping for a netbook for this, but I'd just like to know for certain first that easy fedora will not be created for the n900...

gsever 2010-08-18 16:25

Re: anyone else want "easy fedora"
 
Up to the irons!!!

One more vote for Easy Fedora on Maemo 5.

extendedping 2010-08-18 16:41

Re: anyone else want "easy fedora"
 
see there are like 4 of us now who want easy fedora. Given 4 users is apx 1/3 of the overall user base, I have a feeling we may get it after all...:)

gsever 2010-08-18 16:59

Re: anyone else want "easy fedora"
 
So far only fully working OS is Easy Debian, ehh? Any idea about the status of other Easy OS'es?

Hehe 1/3 of all :D


All times are GMT. The time now is 12:23.

vBulletin® Version 3.8.8