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-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!


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

vBulletin® Version 3.8.8