View previous topic :: View next topic |
Author |
Message |
TwoSlick Tux's lil' helper
Joined: 22 Apr 2002 Posts: 114 Location: Rolla, MO
|
Posted: Fri Jan 07, 2005 7:39 pm Post subject: Re: kernel options |
|
|
invalid account wrote: | Does anyone know (and can post) the list of kernel options for gentoo-sources and gentoo-dev-sources that are required? |
I just simply booted from a live cd (universal x86), then copied the kernel config file found in:
Or, for example, you could use a default genkernel config file like: Code: | /usr/share/genkernel/x86/kernel-config-2.6 |
TwoSlick |
|
Back to top |
|
|
invalid account Apprentice
Joined: 14 Jan 2004 Posts: 199
|
Posted: Tue Jan 11, 2005 5:21 pm Post subject: |
|
|
Thanks I will try the config from the live cd. I have been using the default genkernel config, but that doesn't seem to work.
Cheers
Neil |
|
Back to top |
|
|
Titan. n00b
Joined: 28 Mar 2004 Posts: 28 Location: Sydney, Australia
|
Posted: Thu Jan 13, 2005 12:28 am Post subject: |
|
|
I will post here seeing as though there are quite a few people with Catalyst experience.
What I would like to do, is create a liveCD which doe the following:
1. Starts an Apache1 server.
2. Starts X.
3. Starts Firefox.
4. Loads a demo of a CMS.
Is this kind of customisation possible? One thing that I'm having trouble with is getting apache1 installed (rather than apache2).
Any tips would be great. Perhaps I could also just create a brand new install of Gentoo (on my own box), customise it so it's fully working, and then put it on a CD somehow?
Thanks. |
|
Back to top |
|
|
Dr Evil n00b
Joined: 25 Jan 2004 Posts: 41
|
Posted: Thu Jan 13, 2005 5:48 pm Post subject: |
|
|
My question is similar to that of Titan's, so I'm basically wondering the same thing. In my case, I want it to start X, start a window manager, and start Firefox, preferably all without user intervention.
Otherwise, any alternatives? |
|
Back to top |
|
|
GotTLoS n00b
Joined: 15 Sep 2002 Posts: 35
|
Posted: Mon Jan 17, 2005 2:38 pm Post subject: |
|
|
I dont know if this is the right way of doing this but i've create an rc script that starts X.
you can add programs to .xinitrc and they wil be load at startx.
in livecd-stage2 spec file you can add the services that will start at boot time.
Quote: |
livecd/rcadd: apache2:default
|
hope it helps |
|
Back to top |
|
|
chickaroo Tux's lil' helper
Joined: 21 Sep 2004 Posts: 102 Location: #!/usr/bin/girl
|
Posted: Sat Jan 29, 2005 1:24 pm Post subject: |
|
|
hmm i'm getting a weird error. i've been investigating it for awhile.
Code: |
if [ -r System.map ]; then /sbin/depmod -ae -F System.map 2.6.11-rc1-vv_e4; fi
* Copying config for successful build to /etc/kernels/kernel-config-x86-2.6.11-rc1-vv_e4
* Gentoo Linux Genkernel; Version 3.1.0g
* ERROR: Could not extract dietlibc source tarball
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
None
None
!!! catalyst: Runscript kernel build failed
Traceback (most recent call last):
File "modules/livecd_stage2_target.py", line 303, in run_local
self.build_kernel()
File "modules/livecd_stage2_target.py", line 288, in build_kernel
"Runscript kernel build failed")
File "/usr/lib/catalyst/modules/catalyst_support.py", line 98, in cmd
raise CatalystError,myexc
CatalystError: <unprintable instance object>
None
!!! catalyst: Runscript aborting due to error.
|
it builds fine inside the chroot but catalyst seems to screw up somehow. i'm still investigating it tho, if anynoe has any ideas lemme know. i'll post my solution whenever i figure it out _________________ Registered Linux user #364515 (Jun, 2004) |
|
Back to top |
|
|
chickaroo Tux's lil' helper
Joined: 21 Sep 2004 Posts: 102 Location: #!/usr/bin/girl
|
Posted: Sun Jan 30, 2005 3:38 am Post subject: |
|
|
*screams in a mad fit* WHY?!?!?!??!?!
_________________ Registered Linux user #364515 (Jun, 2004) |
|
Back to top |
|
|
chickaroo Tux's lil' helper
Joined: 21 Sep 2004 Posts: 102 Location: #!/usr/bin/girl
|
Posted: Mon Jan 31, 2005 3:52 am Post subject: |
|
|
i give up _________________ Registered Linux user #364515 (Jun, 2004) |
|
Back to top |
|
|
jimmywithtorch n00b
Joined: 03 Sep 2004 Posts: 27
|
Posted: Tue Feb 01, 2005 5:02 pm Post subject: |
|
|
after creating livecd-stage 1 and before running livecd-stage2 build, go to /etc/genkernel of livecd-stage1 and modify it to run menuconfig before compiling the kernel. Its something like MENUCONFIG='yes', I'm not sure though, see genkernel.conf
So after that it will run menuconfig for all kernels while building livecd-stage2 and, make changes to your kernel config to get it compile without errors. |
|
Back to top |
|
|
mixandgo n00b
Joined: 05 Apr 2005 Posts: 23
|
Posted: Fri Apr 15, 2005 10:14 am Post subject: |
|
|
I am building my first livecd right now and I noticed that it compiles every pagkage (127 total) and that takes a looooong time. Is there a way to skip that ? How about If later I wanna add a new app to my cd... would it recompile everything again ?
thanks ! |
|
Back to top |
|
|
jimmywithtorch n00b
Joined: 03 Sep 2004 Posts: 27
|
Posted: Fri Apr 15, 2005 5:47 pm Post subject: |
|
|
Catalyst automtically compresses and saves successfully compiled packages. So next time you build a CD, only those packages will be compiled that you added or those who has a new version available than the previously compiled version.
As far as skipping goes, you can remove packages that you don't want to compile from the spec file. I compile basic system only, then after livecd stage 1 is ready chroot into it and install binary packages manually or from a gentoo package CD. After that run live cd stage 2. That would be faster for KDE, Mozilla ect |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Fri Apr 15, 2005 5:49 pm Post subject: |
|
|
mixandgo wrote: | I am building my first livecd right now and I noticed that it compiles every pagkage (127 total) and that takes a looooong time. Is there a way to skip that ? How about If later I wanna add a new app to my cd... would it recompile everything again ?
thanks ! |
I'm not sure if you can skip the compilation process, I think there may be some way to pull the binaries off your current system.
I can anwser part of your quesiton though. Once you build the stage1, if you want to modify it at all the best way is to chroot into the stage1 environment. From there you can modify files and emerge new things. |
|
Back to top |
|
|
mixandgo n00b
Joined: 05 Apr 2005 Posts: 23
|
Posted: Fri Apr 15, 2005 6:27 pm Post subject: |
|
|
I just finnished building catalyst -f xlivecd-stage1 thing ! it resulted in an 880MB bzip file ! I've tryed isogen.sh but it says : mkisofs: Uh, oh, I cant find the boot catalog directory 'isolinux' ! |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Fri Apr 15, 2005 7:57 pm Post subject: |
|
|
mixandgo wrote: | I just finnished building catalyst -f xlivecd-stage1 thing ! it resulted in an 880MB bzip file ! I've tryed isogen.sh but it says : mkisofs: Uh, oh, I cant find the boot catalog directory 'isolinux' ! |
You need to make the stage2 before it's ready for an iso. |
|
Back to top |
|
|
mixandgo n00b
Joined: 05 Apr 2005 Posts: 23
|
Posted: Sat Apr 16, 2005 10:21 am Post subject: |
|
|
catalyst -f stage2 gives me this :
Quote: |
--
CC [M] sound/core/rawmidi.o
CC [M] sound/core/timer.o
CC [M] sound/core/sound.o
CC [M] sound/core/init.o
sound/core/init.c: In function `snd_card_free':
sound/core/init.c:257: warning: `pm_unregister' is deprecated (declared at inclu
de/linux/pm.h:111)
sound/core/init.c: In function `snd_card_set_dev_pm_callback':
sound/core/init.c:772: warning: `pm_register' is deprecated (declared at include
/linux/pm.h:106)
--
For more help try 'emerge --help' or consult the man page.
* <<< Callback exit status: 1
* Gentoo Linux Genkernel; Version 3.1.5
* ERROR: --callback failed!
* -- End log... --
* Please consult /var/log/genkernel.log for more information and any
* errors that were reported above.
* Report any genkernel bugs to bugs.gentoo.org and
* assign your bug to genkernel@gentoo.org. Please include
* as much information as you can in your bug report; attaching
* /var/log/genkernel.log so that your issue can be dealt with effectively.
*
* Please do *not* report compilation failures as genkernel bugs!
*
None
None
!!! catalyst: Runscript kernel build failed
Traceback (most recent call last):
File "modules/livecd_stage2_target.py", line 309, in run_local
self.build_kernel()
File "modules/livecd_stage2_target.py", line 294, in build_kernel
"Runscript kernel build failed")
File "/usr/lib/catalyst/modules/catalyst_support.py", line 98, in cmd
raise CatalystError,myexc
CatalystError: <unprintable instance object>
None
!!! catalyst: Runscript aborting due to error. |
|
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Sat Apr 16, 2005 3:26 pm Post subject: |
|
|
There seems to be an error building your kernel. Which sources are you using? I would recomend gentoo-sources (2.6) for catalyst. Also where did you get your kernel config from? I would recommend the default genkernel configs. |
|
Back to top |
|
|
mixandgo n00b
Joined: 05 Apr 2005 Posts: 23
|
Posted: Sun Apr 17, 2005 6:47 am Post subject: |
|
|
this is what I have in spec file:
boot/kernel/gentoo/sources: sys-kernel/gentoo-sources
boot/kernel/gentoo/config: /usr/share/genkernel/x86/kernel-config-2.6
also, I don't have a kconfig directory... in catalyst |
|
Back to top |
|
|
jimmywithtorch n00b
Joined: 03 Sep 2004 Posts: 27
|
Posted: Sun Apr 17, 2005 10:41 pm Post subject: |
|
|
Try this configuration files,
http://lug.iit.edu/projects/livecd/kernel/
Those files are from my successful livecd stage2 compilation.
Download and put them in your home directory (/root), and specify the path in your spec file.
Here is an example of a portion of livecdstage2 spec file, showing the same.
==================================================
# There *must* be a kernel config specified or else Catalyst will fail the
# build
boot/kernel: gentoo smp
boot/kernel/gentoo/sources: sys-kernel/gentoo-sources
boot/kernel/gentoo/config:/root/kernel24.config
# per-kernel arguments for genkernel
#boot/kernel/gentoo/gk_kernargs: --makeopts=-j2
boot/kernel/smp/sources: sys-kernel/gentoo-dev-sources
boot/kernel/smp/config: /root/kernel26.config
==================================================
Or whatever the name you gave to config files. Also refer to this link for more information.
http://www.gentoo.org/proj/en/releng/catalyst/catalyst-howto.xml
I compiled it a while ago. So you won't have gentoo-dev-sources I guess and gentoo-sources is kernel 2.6 now, so use my 2.6 config file for gentoo-sources instead. |
|
Back to top |
|
|
mixandgo n00b
Joined: 05 Apr 2005 Posts: 23
|
Posted: Mon Apr 18, 2005 12:12 pm Post subject: |
|
|
I am getting exactly the same error messaje ! with your kernel config |
|
Back to top |
|
|
mikegpitt Advocate
Joined: 22 May 2004 Posts: 3224
|
Posted: Mon Apr 18, 2005 3:09 pm Post subject: |
|
|
mixandgo wrote: | I am getting exactly the same error messaje ! with your kernel config |
Maybe there is a problem building catalyst with the latest kernel. You could try another:
boot/kernel/gentoo/sources: =sys-kernel/gentoo-sources-2.6.10 |
|
Back to top |
|
|
jimmywithtorch n00b
Joined: 03 Sep 2004 Posts: 27
|
Posted: Mon Apr 18, 2005 6:06 pm Post subject: |
|
|
Yes, changing kernel may solve the problem.
Also from your error message it seems that its not able to compile one of the sound card modules. Try to find out which module it is and uncheck it in the kernel. My compilation was failing for a wireless card module, then I unchecked that wireless card support and I was able to compile successfully.
If you don't care about sound and you just want a livecd for now, uncheck all the sound support and you should be fine.
Genkernel automatically compiles kernel, you will need change genkernel.conf to get menuconfig and to be able to change kernel configuration.
Mostly genkernel.conf for your livecd should be at /var/tmp/catalyst/tmp/default/livecd-stage1-i586/etc/genkernel.conf
set MENUCONFIG="yes" in genkernel.conf
That configuration will be lost next time you build stage 2, so after successful stage2 compilation, get your configuration file(s) from /var/tmp/catalyst/tmp/default/livecd-stage2-i586/etc/kernels and put them back in /root replacing your previous kernel config files. |
|
Back to top |
|
|
tkole n00b
Joined: 26 Sep 2003 Posts: 21
|
Posted: Thu Apr 21, 2005 9:09 am Post subject: |
|
|
SOLVED. (conflicting catalyst version.)
This is the error i get when i try run catalyst to build a livecd
Any ideas?
Last edited by tkole on Sun Apr 24, 2005 5:30 pm; edited 1 time in total |
|
Back to top |
|
|
tkole n00b
Joined: 26 Sep 2003 Posts: 21
|
Posted: Sun Apr 24, 2005 4:08 pm Post subject: nessus on livecd |
|
|
I'm trying to put nessus on my livecd but i've encountered a number of problems:
1. By default 'nessus-mkcert' is needed to create SSL certs and set up
nessusd.conf and nessusd.rules. 'nessus-mkcert' writes the CA certs to
/usr/com/nessus... which is part of the livecd's READ-ONLY filesystem.
I can fix this either by editing the 'nessus-mkcert' to write to a
writable filesystem such as /etc, or I could use a livecd/root_overlay
and have standard CA certs and conf files copied over to /etc/nessus
when making livecd-stage2. How exactly did you get around this
problem?
2. When starting nessus with '/etc/init.d/nessus start' a whole list
of errors flood the screen as it trys to load the plugins. I'm
guessing this is because its trying to write to a read-only filesystem
again. Has anyone managed to make a work around for this?
Any fsscript or overlay or extra config files are welcome! |
|
Back to top |
|
|
kostodo n00b
Joined: 24 Apr 2005 Posts: 3
|
Posted: Sun Apr 24, 2005 5:25 pm Post subject: livecd to hdd |
|
|
Is it possible to have a feature where the livecd can be installed over to the harddisk?
I've seen a few distro's providing this feature.
Any ideas how this can be achieved? |
|
Back to top |
|
|
Huttu n00b
Joined: 12 May 2005 Posts: 58 Location: Huttwil, Switzerland
|
Posted: Thu May 12, 2005 7:14 pm Post subject: missing /sbin/livecd-functions.sh |
|
|
I can't find /sbin/livecd-functions.sh in the filesystem of my livecd. Could anybody tell me where I can find a replacement for that file? |
|
Back to top |
|
|
|