config/livecd-fedora-kde.ks
by Sebastian Vahl
config/livecd-fedora-kde.ks | 27 ++++++++++++++++-----------
1 file changed, 16 insertions(+), 11 deletions(-)
New commits:
commit 8846d303c335551ec6f48a9a5c2a502cb5823681
Author: Sebastian Vahl <fedora(a)deadbabylon.de>
Date: Mon Jul 14 08:28:53 2008 +0200
remove koffice, kaffeine and ktorrent for space issues; make liveinst.desktop visible on desktop
diff --git a/config/livecd-fedora-kde.ks b/config/livecd-fedora-kde.ks
index 8cefa08..eb8c119 100644
--- a/config/livecd-fedora-kde.ks
+++ b/config/livecd-fedora-kde.ks
@@ -3,26 +3,26 @@
%packages
@kde-desktop
-# include nm-applet directly
-NetworkManager-gnome
-
# unwanted packages from @kde-desktop
# don't include these for now to fit on a cd
# digikam (~11 megs), ktorrent (~3 megs), amarok (~14 megs),
-# kdegames (~23 megs)
+# kdegames (~31 megs), koffice-* (~51 megs), kftpgrabber (~1 megs)
+# kaffeine-* (~3 megs)
-amarok
-digikam
-kdeedu
-scribus
-#-ktorrent
+-ktorrent
#-kdegames
#-kftpgrabber*
-
-# KDE 3
-koffice-kword
-koffice-kspread
-koffice-kpresenter
-koffice-filters
+-kaffeine*
+
+-koffice-*
+# KDE 3
+#koffice-kword
+#koffice-kspread
+#koffice-kpresenter
+#koffice-filters
k3b
filelight
# twinkle (~10 megs)
@@ -91,4 +91,9 @@ FavoriteURLs=/usr/share/applications/kde4/konqbrowser.desktop,/usr/share/applica
MENU_EOF
chown -R fedora:fedora /home/fedora/.kde/
+# show liveinst.desktop on and in menu
+sed -i 's/NoDisplay=true/NoDisplay=false/' /usr/share/applications/liveinst.desktop
+
+EOF
+
%end
15 years, 9 months
kernel panic on base-desktop
by DON.RAIKES@ORACLE.COM
Hi,
I have fedora 9 installed on my desktop, and I used yum to install livecd-tools.
Just as a baseline before doing any changes, I tried creating a livecd based on the default
livecd-fedora-base-desktop.ks that ships with the livecd-tools.
$ livecd-creator -c livecd-fedora-base-desktop.ks -f mydesktop
The iso was created just fine, so I used wodim to burn it to a cd.
$ wodim -dao dev=0,0,0 mydesktop.iso
I rebooted with the cd in the drive and the results:
kernel panic!
While I am not a linux newbie per ce, I am not sure where to start debugging this kind of situation.
Could something be broken in rawhide causing this, or is it something I did wrong?
15 years, 9 months
Add firstaidkit to base desktop install
by Joel Andres Granados
This change will pull in all the current plugins currently in devel, the gui, backend and all the related documentation. It will not bring in the devel package that is used to actually make plugins.
15 years, 9 months
making livecd for another similar distro
by Larry Brigman
Is there a way to force the program to generate an iso when pointing
at a yum repository for
another distro. I have tried this but get 'package not found'. I
know the package is there because I had created
the repository locally from the install CDs. This is for Oracle Linux 5.1.
15 years, 9 months
enabling login on livecd
by Don Raikes
Hello,
I am attempting to create a fedora 9 livecd based on the livecd-fedora-minimal.ks file.
I understand that as is there is no login capabilities for this livecd. I have been successful in running livecd-creator and creatiing and burning the iso image.
When I boot from it i get the login prompt no problem.
Now my question is how do I enable logging in to the cd.
I added the following lines to the .ks file:
#!/bin/sh
/usr/sbin/useradd -d /home/fedora fedora
/usr/bin/passwd -d fedora
My understanding was that this would create a fedora user with no password.
I tried it on my regular fedora 9 system, and it created the user properly and I can login with no password.
When I recreated the livecd, I drilled down and looked at the ext3fs.img and found that the fedora user was indeed created
However, when I boot from the livecd, and put in fedora as the user, it prompts me for a password, and no matter what I enter, it won't let me log in.
Is there something else I need to do to enable loggin into the livecd?
15 years, 9 months
using a specific kernel
by Don Raikes
Hello,
I recently installed fedora 9, and have built a custom kernel for it.
I now want to create a livecd using my custom kernel, but when I create the livecd based on the livecd-fedora-minimial.ks file, it picks up the latest kernel from the development repository.
JHow can I force livecd-creator to pull my custom kernel?
15 years, 9 months
Issue with SELinux and /mnt/live on Fedora Live CD
by Todd N
Hello,
I'm trying to use openvpn on a Fedora Live CD built using livecd-creator. I'd like to have openvpn grab the required certificates and keys from somewhere other than /etc/openvpn - specifically a directory under /mnt/live. However, on configuring such a VPN connection, when trying to actually connect to it, SELinux balks, returning the following error:
SELinux is preventing openvpn (openvpn_t) "search" to ./mnt (mnt_t).
What can I do within SELinux to allow openvpn to access an external file system? Is there a specific policy change that I can make to allow this type of access?
Thanks for any help that can be offered. If you need any more information, please let me know.
Todd
15 years, 9 months
2 commits - imgcreate/kickstart.py imgcreate/live.py
by Jeremy Katz
imgcreate/kickstart.py | 7 +++++++
imgcreate/live.py | 4 +++-
2 files changed, 10 insertions(+), 1 deletion(-)
New commits:
commit 856a05d2d69dde3df25849970fa0d6c200f03b5c
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Mon Jul 7 17:36:46 2008 -0400
plymouth should imply rhgb now as well
diff --git a/imgcreate/live.py b/imgcreate/live.py
index bd7f3e4..0bf50f2 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -97,6 +97,8 @@ class LiveImageCreatorBase(LoopImageCreator):
r = kickstart.get_kernel_args(self.ks)
if os.path.exists(self._instroot + "/usr/bin/rhgb"):
r += " rhgb"
+ if os.path.exists(self._instroot + "/usr/bin/plymouth"):
+ r += " rhgb"
return r
def _get_mkisofs_options(self, isodir):
commit 32575fd38289cb6777c2e2f9fd9ccc53b0bc8d55
Author: Jeremy Katz <katzj(a)redhat.com>
Date: Mon Jul 7 17:30:27 2008 -0400
Listen to bootloader --append
We lost support for using 'bootloader --append=foo' to add arguments to the
kernel command-line at some point. Add back support for this
diff --git a/imgcreate/kickstart.py b/imgcreate/kickstart.py
index 39756b2..0f797b8 100644
--- a/imgcreate/kickstart.py
+++ b/imgcreate/kickstart.py
@@ -444,6 +444,13 @@ def get_timeout(ks, default = None):
return default
return int(ks.handler.bootloader.timeout)
+def get_kernel_args(ks, default = "ro liveimg quiet"):
+ if not hasattr(ks.handler.bootloader, "appendLine"):
+ return default
+ if ks.handler.bootloader.appendLine is None:
+ return default
+ return "%s %s" %(default, ks.handler.bootloader.appendLine)
+
def get_default_kernel(ks, default = None):
if not hasattr(ks.handler.bootloader, "default"):
return default
diff --git a/imgcreate/live.py b/imgcreate/live.py
index 1c54cf6..bd7f3e4 100644
--- a/imgcreate/live.py
+++ b/imgcreate/live.py
@@ -94,7 +94,7 @@ class LiveImageCreatorBase(LoopImageCreator):
A sensible default implementation is provided.
"""
- r = "ro quiet liveimg"
+ r = kickstart.get_kernel_args(self.ks)
if os.path.exists(self._instroot + "/usr/bin/rhgb"):
r += " rhgb"
return r
15 years, 9 months
Modifying ISO to include per-user files
by Todd N
Hello,
After creating a LiveCD ISO image, I'd like to be able to make CDs that are essentially identical, but have a small set of unique per-user files. I have tried mounting the ISO, copying its contents to a regular directory, making my changes on the Live CD file system (not the internal squashfs file system) and recreating the ISO using mkisofs. However, this new ISO (when burned to a CD) refuses to boot.
Is there a way I can modify the ISO image to include my per-user files on the /mnt/live file system for each user (and have the resulting ISO be bootable), rather than running the whole livecd-creator process each time I want a new CD?
Thanks,
Todd
15 years, 9 months
Modifying the original Fedora Live CD
by Sean Godsell
Hello to everyone who is interested,
How to replace the kernel on a Fedora livecd
By Sean Godsell
The reason I wrote this was I wanted to have a live cd with more stuff on it. I wanted more wifi, skype, and Adobe flash as well as shockwave, wine (for the games). So the first task on the list was a kernel that supported all the webcam drivers, ntfs, ndiswrapper, madwifi, and squashfs with lzma support. So I decided to go with the latest stable kernel at this time. Which is kernel 2.6.25.9 from kernel.org . I could have chosen the kernel source from fedora and built it the rpm way, but I started back in the days with slackware. So I am use to building the kernel the original way. Also this way of building works with other distros as well. And I get to control the patches that I want to apply. (I know you can edit the kernel.spec file, but I will leave that up to someone else ;-) ). I could also go into every detail of how to manipulate a kickstart file, and how to use livecd-creator, but I didn't, so stop reading then ;-). Once you have obtained the kernel source code, extracted, modified and built and tested it to your needs. Then its time to roll your own fedora livecd.
To start with I obtained the original Fedora-9-i686-Live.iso file and saved it to /home/images (For the duration of this document I will be using a folder /home/images). Before we do anything else I am going to create a few mount points, using type in the following commands:
mkdir /mnt/iso; mkdir /mnt/squashfs; mkdir /mnt/ext3fs; mkdir /mnt/next3fs
Now we need to mount the Fedora-9-i686-Live.iso file. Type in the following command:
mount -o loop /home/images/Fedora-9-i686-Live.iso /mnt/iso
The next step I created a directory to put all the file into:
mkdir /home/images/isoimage
Next we have to copy all the files to the /home/images/isoimage directory with:
cp -dpR /mnt/iso/* /home/images/isoimage
So now we have extracted the fedora iso image to a directory. Next I created a directory called initrd
mkdir /home/images/initrd
Then I extracted the initrd0.img file using the following commands:
cd /home/images/initrd
cat /home/images/isoimage/isolinux/initrd0.img | gunzip - | cpio -i
You should have an extracted initrd image now inside the /home/imgaes/initrd folder. Okay now comes the fun stuff. Copy the following lines to a file called copymodules in the /home/images folder. Start copying everything in between the equals symbols (======)
==================
#!/bin/bash
# Copy files from a modules.dep to a directory , by Sean Godsell
# $1 - the modules.dep file to use
# $2 - the directory of where to get the kernel modules to copy from
# $3 - the directory to copy the modules into
mods=`cat $1`
for i in $mods; do
name=`echo $i|awk '{print $1}'|awk -F / '{print $(NF)}'|awk -F : '{print $1}'`
find $2 -iname $name -exec cp -dpf {} $3 \;
done
===================
Okay once the copymodules file is created. Next we have to create a directory for our new with the exact same name of the kernel you are going to copy from. In my case I am using 2.6.25.9. So I will create a directory in /home/images/initrd/lib/modules using the following command:
mkdir /home/images/initrd/lib/modules/2.6.25.9
Next I want to use fedora livecds module files so I copied from the original /home/images/initrd/lib/modules/2.6.25-14.fc9.i686/ using the following command:
cp /home/images/initrd/lib/modules/2.6.25-14.fc9.i686/module* /home/images/initrd/lib/modules/2.6.25.9/
Next I modified modules.dep and added the squashfs + lzma modules. To do this I looked at my installed 2.6.25.9 kernel from /lib/modules/2.6.25.9/modules.dep and replaced the one line with squashfs.ko: in /home/images/initrd/lib/modules/2.6.25.9/modules.dep with the following 3 lines:
/lib/modules/2.6.25.9/extras/sqlzma.ko: /lib/modules/2.6.25.9/extras/unlzma.ko
/lib/modules/2.6.25.9/extras/unlzma.ko:
/lib/modules/2.6.25.9/extras/squashfs.ko: /lib/modules/2.6.25.9/extras/sqlzma.ko /lib/modules/2.6.25.9/extras/unlzma.ko
I also edited out ALL of the /extras so you will end up with /lib/modules/2.6.25.9/unlzma.ko: . Next I did a global replace for 2.6.25-14.fc9.i686 to 2.6.25.9 .
Now save the changes back to /home/images/initrd/lib/modules/2.6.25.9/modules.dep. We still don't have any modules in the folder, but that is about to change. Type in the following command:
source /home/images/copymodules /home/images/initrd/lib/modules/2.6.25.9/modules.dep /lib/modules/2.6.25.9/ /home/images/initrd/lib/modules/2.6.25.9/
This should populate the /home/images/initrd/lib/modules/2.6.25.9 with all the necessary modules, including the squashfs and the lzma modules. Next we need to delete the old 2.6.25-14.fc9.i686 folder with the following command:
rm -fr /home/images/initrd/lib/modules/2.6.25-14.fc9.i686
Once that is complete it is time to replace the original initrd0.img file. Type in the following commands:
cd /home/images/initrd
find . | cpio -H newc -o | gzip -9> /home/images/isoimage/isolinux/initrd0.img
We now have replace the original initrd0.img. Next we need to replace the original kernel image with the following commnad:
cp /boot/bzImage-2.6.25.9 /home/images/isoimage/isolinux/vmlinuz0
So now if we were to burn an iso image at this point it would boot up with the kernel 2.6.25.9 and mount a normal squashfs or a squashfs with lzma. But the rest of the livecd would not work. We need to replace the existing /lib/modules/2.6.25-14.fc9.i686 directory with the /lib/modules/2.6.25.9. These files reside inside the /home/images/isoimage/LiveOS/squashfs.img file. Enter in the following commands:
mkdir /home/images/squashfs_image/
modprobe squashfs
mount -o loop -t squashfs /home/images/isoimage/LiveOS/squashfs.img /mnt/squashfs
cp -dpR /mnt/squashfs/* /home/images/squashfs_image/
umount /mnt/squashfs
mount -o loop /home/images/squashfs_image/LiveOS/ext3fs.img /mnt/ext3fs
rm -fr /mnt/ext3fs/lib/modules/2.6.25-14.fc9.i686
cp -dpR /lib/modules/2.6.25.9 /mnt/ext3fs/lib/modules/
Now you can put what ever you want on the ext3fs image. I put skype, wine packages and my wine enviroment with a windows version of firefox. Now some of you are probably thinking there is a firefox already on the fedora live cd. That is true. I already know this, but the only way that I know of getting shockwave to work is through wine or a VM with windows. The last option is just a little too big to get on a livecd image. So I opted to installing wine and my .wine environment. I also updated the firefox beta that was on the live image to the released version (Not to mention I updated a few more things). At this point you are ready to do 1 of 2 things. 1) you can re squash the ext3fs.img. 2) create a clean ext3fs.img and copy everything from /mnt/ext3fs/ to the clean ext3fs.img. You are probably wondering why would you copy everything from one ext3fs.img to another ext3fs.img, well the answer is quite simple. If you delete a bunch of things off the ext3fs.img, and then decide to squash it. You might get roughly the same size image after wards, even if you remove a lot of files. With ext3 file system it doesn't zero out all the files. It only removes entries, so the data is still there. So when squashing the ext3 image, if the data is still there, then it has to compress it. In other words if you transfer everything over from one image to a brand new clean image then when it comes time to compress the ext3 image, the end result can be a smaller image. If you don't care and want to just squash the ext3fs.img, then skip to the squashfs section. Okay to copy everything type in the following commands:
dd if=/dev/zero of=/home/images/ext3fs.img bs=1MB count=4096
mkfs.ext3 /home/images/ext3fs.img
mount -o loop /home/images/ext3fs.img /mnt/next3fs
cp -dpR /mnt/ext3fs/* /mnt/next3fs/
Now to use the squashfs file system. First we most umount the ext3 file system. So type in:
umount /mnt/next3fs
umount /mnt/ext3fs
Next replace the new image in squashfs_image/LiveOS
cp -f /home/images/ext3fs.img /home/images/squashfs_image/LiveOS/
Then to compress type in (If you replaced the original command, then just remove the .lzma):
mksquashfs.lzma squashfs_image/ /home/images/isoimage/LiveOS/squashfs.img
This takes some time. So have a drink, hey why not have a couple of drinks ;-)
Okay once that is done the final step is create an iso image with the following command:
mkisofs -J -r -hide-rr-moved -hide-joliet-trans-tbl -V Fedora-9-Live-i686 -o Seans.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-info-table -boot-load-size 4 isoimage
With the exact same fedora image. I was able to save almost 110 megabytes. Wow, what a savings.
Not to mention saving on download time. I don't know why fedora didn't take the time to use squashfs+lzma, but it is worth it. I hope they put it in the next release.
_________________________________________________________________
Express yourself with free Messenger emoticons. Get them today!
http://www.freemessengeremoticons.ca/?icid=EMENCA122
15 years, 9 months