Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th October 2008, 11:01 PM
metaylor Offline
Registered User
 
Join Date: Dec 2007
Posts: 208
Question Including custom tools when creating LiveCD

I am creating images using LiveCD. I am using the following command

livecd-creator \
--config=/usr/share/livecd-tools/livecd-fedora-desktop.ks --fslabel=Fedora-LiveCD

I want to include some C++ custom tools in the image so that these tools are available when the LiveCD is used.

Any ideas on how to I can do this?
Reply With Quote
  #2  
Old 31st October 2008, 12:55 AM
ryptyde Offline
Registered User
 
Join Date: May 2005
Location: Tragic City, Michigan USA
Posts: 1,605
You can edit the "livecd-fedora-desktop.ks" file and add your extras under the %packages heading also look at the "livecd-fedora-developer.ks" file and see how the packages are setup there or maybe just use that .ks file.
Reply With Quote
  #3  
Old 31st October 2008, 07:03 PM
metaylor Offline
Registered User
 
Join Date: Dec 2007
Posts: 208
Thanks for the reply. I have an additional questions for clarification. The tools that I want to add are not packages or located in a repository. They are executables I have in a local directory.

Does this matter? Do I just add them to the kickstart file or do I have to set up a repository and put them there?
Reply With Quote
  #4  
Old 31st October 2008, 11:55 PM
ryptyde Offline
Registered User
 
Join Date: May 2005
Location: Tragic City, Michigan USA
Posts: 1,605
I have made livecds using the regular fedora repos some third party and local repo using rpms only so I can't be of much help on how to get your executables included. By "executables" would that be something used in Windows?
Reply With Quote
  #5  
Old 1st November 2008, 02:55 AM
metaylor Offline
Registered User
 
Join Date: Dec 2007
Posts: 208
No, by executables I am referring to the output of a successfully compilation of C++ program or project on Fedora 9 Linux.

And thanks for the support.
Reply With Quote
  #6  
Old 1st November 2008, 05:45 AM
NoEffex Offline
Registered User
 
Join Date: Oct 2008
Posts: 299
If you mean binaries, assuming it uses squashfs, you would extract the squashfs, then edit the filesystem with the files you want to have, and where. Then you would recompress the filesystem.

Although this is a Ubuntu guide, it still applies to squashfs, and I've used it before.

EDIT: I just found another seemingly simpler one
Code:
# mount /some/file.sqfs /mnt -o loop  
# rsync -aP /mnt/ /somewhere/big  
# umount /mnt  
(do edits to /somewhere/big)  
# mksquashfs /somewhere/big /some/new-file.sqfs
__________________
Intel Core 2 Quad Q8400 CPU (2.66 GHz)
3gb RAM
500GB HD
Debian Lenny x86_64 & Windows 7 Ultimate x64
NVIDIA GeForce 9800 GTX+ Superclocked - Fattypack

Second(Server) PC:
512mb RAM
80gb TiVO HD(Lololol, took it from TiVO, old one broke)
PC-BSD 7.1.1 x86
Ossom router decked out with DD-WRT as a bridge providing net
Sign the Online Petition to bring Crysis 2 to Linux/Mac!

Last edited by NoEffex; 1st November 2008 at 05:47 AM.
Reply With Quote
  #7  
Old 4th November 2008, 08:02 PM
metaylor Offline
Registered User
 
Join Date: Dec 2007
Posts: 208
ok thanks for the support
Reply With Quote
  #8  
Old 4th November 2008, 08:14 PM
Dangermouse's Avatar
Dangermouse Offline
Administrator
 
Join Date: Aug 2007
Location: London Postbox (the red one)
Age: 47
Posts: 3,848
Hi just a suggestion, but what i do usually is make any extra stuff like files and scripts i want to add into a rpm first, i found that was the easiest way for me.
Reply With Quote
  #9  
Old 4th November 2008, 11:58 PM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
you can add any custom files in the %post section of the kickstart file

http://forums.fedoraforum.org/showthread.php?t=202290

I've used this to include an entire (compressed) backup of my fedora install on a livedvd
Reply With Quote
  #10  
Old 21st November 2008, 09:19 PM
metaylor Offline
Registered User
 
Join Date: Dec 2007
Posts: 208
Question

I have added the following line to the %post section of livecd-fedora-8-desktop.ks file

cp /home/metaylor/main $INSTALL_ROOT/fedora

I created a liveCD and booted using it. When I logged on as I did not see the file named main in the /home/fedora directory.

Should this have worked?
Reply With Quote
  #11  
Old 22nd November 2008, 12:44 AM
sideways's Avatar
sideways Offline
Retired User
 
Join Date: Oct 2004
Location: London, UK
Posts: 4,999
Quote:
Originally Posted by metaylor View Post
I have added the following line to the %post section of livecd-fedora-8-desktop.ks file

cp /home/metaylor/main $INSTALL_ROOT/fedora

I created a liveCD and booted using it. When I logged on as I did not see the file named main in the /home/fedora directory.

Should this have worked?
Yes, but it will be /fedora not /home/fedora

use $INSTALL_ROOT/home/fedora if the latter was the intention
Reply With Quote
  #12  
Old 24th November 2008, 11:17 PM
metaylor Offline
Registered User
 
Join Date: Dec 2007
Posts: 208
I tried both with no success. I have attached the kickstart file I used. Perhaps you can take a quick review of it.
Reply With Quote
  #13  
Old 8th December 2008, 06:24 PM
metaylor Offline
Registered User
 
Join Date: Dec 2007
Posts: 208
I was able to get this to work using the following commands

%post --nochroot
cp -r /home/metaylor/diagnostics $LIVE_ROOT/opt
cp -r /home/metaylor/diagnostics $INSTALL_ROOT/opt
%end

It appears that I misunderstood which $INSTALL_ROOT and $LIVE_ROOT.
Reply With Quote
Reply

Tags
creating, custom, including, livecd, tools

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
missing livecd-tools in Fedora 11 metaylor Installation and Live Media 3 22nd September 2009 09:28 PM
Just a comment about LiveCD-Tools tkoco Fedora Focus 0 10th April 2008 03:24 AM
installling unsigned rpm with livecd-tools gala_dragos Using Fedora 1 29th February 2008 06:30 AM
Creating LiveCD help. lucky21 Using Fedora 7 6th December 2007 07:11 PM
Where are the tools for creating a custom Fedora? wutbox Using Fedora 1 7th August 2007 03:56 PM


Current GMT-time: 23:10 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat