Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
catalyst - livecd creation tool
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 9, 10, 11, 12  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
TwoSlick
Tux's lil' helper
Tux's lil' helper


Joined: 22 Apr 2002
Posts: 114
Location: Rolla, MO

PostPosted: Fri Jan 07, 2005 7:39 pm    Post subject: Re: kernel options Reply with quote

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:
Code:
/proc/config.gz

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
View user's profile Send private message
invalid account
Apprentice
Apprentice


Joined: 14 Jan 2004
Posts: 199

PostPosted: Tue Jan 11, 2005 5:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
Titan.
n00b
n00b


Joined: 28 Mar 2004
Posts: 28
Location: Sydney, Australia

PostPosted: Thu Jan 13, 2005 12:28 am    Post subject: Reply with quote

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
View user's profile Send private message
Dr Evil
n00b
n00b


Joined: 25 Jan 2004
Posts: 41

PostPosted: Thu Jan 13, 2005 5:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
GotTLoS
n00b
n00b


Joined: 15 Sep 2002
Posts: 35

PostPosted: Mon Jan 17, 2005 2:38 pm    Post subject: Reply with quote

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
View user's profile Send private message
chickaroo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2004
Posts: 102
Location: #!/usr/bin/girl

PostPosted: Sat Jan 29, 2005 1:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
chickaroo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2004
Posts: 102
Location: #!/usr/bin/girl

PostPosted: Sun Jan 30, 2005 3:38 am    Post subject: Reply with quote

*screams in a mad fit* WHY?!?!?!??!?!
:|
_________________
Registered Linux user #364515 (Jun, 2004)
Back to top
View user's profile Send private message
chickaroo
Tux's lil' helper
Tux's lil' helper


Joined: 21 Sep 2004
Posts: 102
Location: #!/usr/bin/girl

PostPosted: Mon Jan 31, 2005 3:52 am    Post subject: Reply with quote

i give up
_________________
Registered Linux user #364515 (Jun, 2004)
Back to top
View user's profile Send private message
jimmywithtorch
n00b
n00b


Joined: 03 Sep 2004
Posts: 27

PostPosted: Tue Feb 01, 2005 5:02 pm    Post subject: Reply with quote

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
View user's profile Send private message
mixandgo
n00b
n00b


Joined: 05 Apr 2005
Posts: 23

PostPosted: Fri Apr 15, 2005 10:14 am    Post subject: Reply with quote

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
View user's profile Send private message
jimmywithtorch
n00b
n00b


Joined: 03 Sep 2004
Posts: 27

PostPosted: Fri Apr 15, 2005 5:47 pm    Post subject: Reply with quote

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
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Fri Apr 15, 2005 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
mixandgo
n00b
n00b


Joined: 05 Apr 2005
Posts: 23

PostPosted: Fri Apr 15, 2005 6:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Fri Apr 15, 2005 7:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
mixandgo
n00b
n00b


Joined: 05 Apr 2005
Posts: 23

PostPosted: Sat Apr 16, 2005 10:21 am    Post subject: Reply with quote

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
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Sat Apr 16, 2005 3:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
mixandgo
n00b
n00b


Joined: 05 Apr 2005
Posts: 23

PostPosted: Sun Apr 17, 2005 6:47 am    Post subject: Reply with quote

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
View user's profile Send private message
jimmywithtorch
n00b
n00b


Joined: 03 Sep 2004
Posts: 27

PostPosted: Sun Apr 17, 2005 10:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
mixandgo
n00b
n00b


Joined: 05 Apr 2005
Posts: 23

PostPosted: Mon Apr 18, 2005 12:12 pm    Post subject: Reply with quote

I am getting exactly the same error messaje ! with your kernel config
Back to top
View user's profile Send private message
mikegpitt
Advocate
Advocate


Joined: 22 May 2004
Posts: 3224

PostPosted: Mon Apr 18, 2005 3:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
jimmywithtorch
n00b
n00b


Joined: 03 Sep 2004
Posts: 27

PostPosted: Mon Apr 18, 2005 6:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
tkole
n00b
n00b


Joined: 26 Sep 2003
Posts: 21

PostPosted: Thu Apr 21, 2005 9:09 am    Post subject: Reply with quote

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
View user's profile Send private message
tkole
n00b
n00b


Joined: 26 Sep 2003
Posts: 21

PostPosted: Sun Apr 24, 2005 4:08 pm    Post subject: nessus on livecd Reply with quote

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
View user's profile Send private message
kostodo
n00b
n00b


Joined: 24 Apr 2005
Posts: 3

PostPosted: Sun Apr 24, 2005 5:25 pm    Post subject: livecd to hdd Reply with quote

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
View user's profile Send private message
Huttu
n00b
n00b


Joined: 12 May 2005
Posts: 58
Location: Huttwil, Switzerland

PostPosted: Thu May 12, 2005 7:14 pm    Post subject: missing /sbin/livecd-functions.sh Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3 ... 9, 10, 11, 12  Next
Page 10 of 12

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum