LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-09-2009, 04:24 PM   #1
duncanlinux
LQ Newbie
 
Registered: Feb 2008
Location: Troy, Alabama
Distribution: Fedora or Debian
Posts: 7

Rep: Reputation: 0
Smile How can I make my current debian install into a distribution?


Ok, I have just installed the current Debian release on one machine. I used apt-get to update it with the packages that I want. Now I want to be able to duplicate it to other machines? Can I just turn my current install into a distro and burn it to a cd? Is that hard for a noob? How do I do this?

Last edited by XavierP; 12-09-2009 at 04:48 PM. Reason: Moved to Linux-General
 
Old 12-09-2009, 05:58 PM   #2
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid/RPIOS
Posts: 4,889
Blog Entries: 28

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
One method of cloning debian installs is to take a current debian machine that is setup with the packages you want.

Run the command

dpkg --get-selections > ~/selectionfile

Then, after the base install on other machines use that file and do:

dpkg --set-selections < ./selectionfile && apt-get dselect-upgrade
 
Old 12-09-2009, 06:00 PM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
Is the hardware the same on the other machines? If it is (or at least is similar enough), then the simplest way would be to use a disk-imaging tool such as Clonezilla.
 
Old 12-09-2009, 07:07 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
if you wanna make a livecd/usb of your install use remastersys
specifically remastersys backup
http://geekconnection.org/remastersys/debian.html

I think it only works with lenny and maybe squeeze
 
Old 12-11-2009, 01:18 AM   #5
resetreset
Senior Member
 
Registered: Mar 2008
Location: Cyberspace
Distribution: Dynebolic, Ubuntu 10.10
Posts: 1,340

Rep: Reputation: 62
Can't he just use dd? What does everyone think?
 
Old 12-12-2009, 02:56 PM   #6
MikeP
LQ Newbie
 
Registered: Oct 2002
Location: In the Bay of Plenty, North Island, New Zealand
Distribution: Mepis8, AntiX, Sidux
Posts: 26

Rep: Reputation: 18
It may be a little late now, but for any onlookers, and possibly for your existing installation,provided you kept your package cache, if you want to be assured of the absolute cleanest possible installations across multiple different hardware types, you could use aptitude to not only take care of the initial package management post first install, but to also package up all downloaded .deb files, package lists, specific binaries and all other required files to duplicate your existing installation.

install aptitude, then run as root
Code:
aptitude-create-state-bundle
to
Code:
produces a compressed archive storing the files that are required to replicate the current package archive state. The following files and directories are included in the bundle: 

 •$HOME/.aptitude 
 •/var/lib/aptitude 
 •/var/lib/apt 
 •/var/cache/apt/*.bin 
 •/etc/apt 
 •/var/lib/dpkg/status
You then copy the bundle to a removable medium, install the base Debian on another machine, install aptitude, copy the bundle to the other machine and run
Code:
aptitude-run-state-bundle
This unpacks the given aptitude state bundle created by aptitude-create-state-bundle(1) to a temporary directory, invokes <program> on it with the supplied <arguments>, and removes the temporary directory afterwards. If <program> is not supplied, it defaults to aptitude(8)

If the hardware is all mostly the same, you can simply use clonezilla or another "imaging" utility.
My favorite is ddrescue combined with pv, running from a live-CD, if the hard disk sizes are identical or the source is smaller than the destination.

Post back if you need more info.

Mike P
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian Live - How to make a Small Distribution taan05 Debian 1 08-01-2009 06:29 AM
lottanzb dependency problems Debian current stable install tlcstat Debian 1 01-03-2009 11:15 AM
How to install debian current (sid or sarge)? VertX Debian 1 08-10-2006 06:52 AM
How to make Debian based distribution? chrisstooss Debian 6 05-24-2005 12:11 PM
How to Install Debian 3 r2 woody current with reiserfs jimdaworm Debian 2 09-28-2004 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:08 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