LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-21-2010, 02:01 AM   #1
shihao
Member
 
Registered: Aug 2009
Posts: 33

Rep: Reputation: 15
Embed linux, yum upgrade and program in a CD.


Dear all,

I will bore to install Centos, yum upgrade and install my own program every time. Is there anywhere to embed the CentOS, yum upgrade and my own software in a CD so that I don't need to do it over and over again?

Thanks and Regards
Shi Hao
 
Old 01-22-2010, 11:35 AM   #2
wakkadoo
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
you could create a kickstart file and do a kickstart everytime. If you want to have dvd, use mkisofs.

Something like this should work. This is my 4.5 image. Graft whatever else you want in there. Like the 'build' locating i use.

Make ISO Image
mkisofs -o /somepath/isos/name.iso -b isolinux/isolinux.bin -c isolinux/boot. cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -m TRANS.TBL -graft-points /mnt/disc1 build/=/mnt/build RedHat/RPMS/=/mnt/disc2/RedHat/RPMS RedHat/RPMS/=/mnt/disc3/RedHat/RPMS RedHat/RPMS/=/mnt/disc4/RedHat/RPMS RedHat/RPMS/=/mnt/disc5/RedHat/RPMS


Burn iso image to dvd to install on Server
growisofs -Z /dev/cdwriter=/somepath/isos/nameof.iso -speed=4
or:
cdrecord -scanbus (to find where cd device is)
cdrecord -v speed=4 -dao dev=3,0,0 /somepath/isos/nameof.iso

Last edited by wakkadoo; 01-22-2010 at 11:36 AM.
 
Old 01-25-2010, 03:47 AM   #3
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Dear Wakkado,

Thanks for the reply. I am still wonder which files I should grab from Centos system?

What I want is burn the CentOS 5.4 together with the yum upgrade package.

Anyone who know please help!!!

Appreciated

Thanks and regards
Shi Hao
 
Old 01-25-2010, 05:24 AM   #4
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Look at these diagram, the left hand side is Centos, the right hand side is Trixbox(another iepbx system with asterisk).

I would like to compile my own asterisk configuration and iepbx(php code) into something likes trixbox as well. But I dunno what need to compile, and I also dunno how to compile all the package into rpm package.

Anyone who know please help!!!

Thanks
Attached Thumbnails
Click image for larger version

Name:	CD directory.JPG
Views:	10
Size:	192.6 KB
ID:	2570  
 
Old 01-25-2010, 11:41 PM   #5
wakkadoo
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
only thing I can think of is trying to create an iso image or using kickstart and automating the yum update into that.
 
Old 01-26-2010, 06:02 AM   #6
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Dear wakkadoo,

Can you a bit slow. I am just a beginner and still is a noob.
ok, I will be using mkisofs,

If I want to burn a direcory into DVD I use:
mkisofs -o my.iso /var/www/html/orderform

there is a lot of things that I need to put , Can you tell me how to burn 2 directories?

And I wonder how to "automating the yum update into that"?

Thanks in advance.
 
Old 01-26-2010, 06:22 AM   #7
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Another question is how to convert the files into rpm??
 
Old 01-26-2010, 07:14 AM   #8
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Guys, this is a urgent issues, can anybody direct me a clue? I able to burn any directory into disc, but it is not the point right? Because what I want is the rpm files that allow user install the files on the PC!!
 
Old 01-27-2010, 12:16 AM   #9
wakkadoo
LQ Newbie
 
Registered: Sep 2009
Posts: 3

Rep: Reputation: 0
Quote:
Originally Posted by shihao View Post
Guys, this is a urgent issues, can anybody direct me a clue? I able to burn any directory into disc, but it is not the point right? Because what I want is the rpm files that allow user install the files on the PC!!
the mkisofs command i put in my first post will build you a dvd and you can 'graft' in what you want, like /somedir

if you're wanting to setup installs for users, try placing the iso image, even cent0S5 dvd.iso on nfs share. write kickstart script to run yum update after install. call kickstart script during install.

Sorry i can't help with building iso once packages are all updated. I'm pretty sure there is a way to mkiso of your whole system though, i'm not sure how to make it install.

I think you can build a centos livecd, search the centos forum for building a live cd and i think you'll find your answer.

edit: did a quick search and found this:
https://projects.centos.org/trac/livecd/

should help you build a live cd which you can install

Last edited by wakkadoo; 01-27-2010 at 12:18 AM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg0000 Fedora 8 04-13-2011 11:25 AM
How to embed squid to linux sherif2k3 Linux - Newbie 1 04-05-2009 01:24 PM
how would i embed linux in _________? tommytomthms5 Linux - Newbie 1 05-18-2008 08:58 PM
LXer: Asus to embed Linux into all motherboards LXer Syndicated Linux News 0 05-17-2008 09:50 AM
Yum and upgrade.... hlinux Fedora 2 06-23-2005 04:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration