Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 526
  • Last Modified:

Creating a Custom Linux Debian 5 (lenny) installation

Hello Experts.
I am still trying to create a custom Debian 5 Installation which includes my own developed packages, I am very close to make it, actually found this very interesting part that tells pretty much everything, but there is something very important that I cannot figure out in the end, the link in particular is this one:
http://wiki.debian.org/Simple-CDD/Howto
What I can't figure out is the "structure" or what should I put in the "NAME.packages" file that the steps mention, more precisely in the step called "Create a profile named NAME".
Dos anyone have any idea of what should I type in there?

thank you.
0
darwin_roach
Asked:
darwin_roach
  • 2
  • 2
1 Solution
 
torimarCommented:
That's completely at liberty for you to choose; could be your name or debian user name, if you want to give it a personal touch; could be the proposed name of your new sub distro, if you want to distribute it to others; could be a functional descriptor, like DebianMinimal or Multimedia or SecureDebian or whatever.

You only need to be consistent in usage and use only the one name chosen wherever the variable 'NAME' figures in the HowTo.
0
 
chriosCommented:
It seems like the question is what should be in the XYZ.packages file, not what to call XYZ.

From the instructions you linked, it seems like all the file contains is your list of packages to include, one per row.

Instead of using the command "for p in list-of-packages-you-want-installed ; do echo $p >> profiles/NAME.packages ; done", just open NAME.packages (or what you want to call it) in a text editor and add the package names one per row, then continue with the rest of the instructions.

for example:
screen
openssh-server
vim
ctags
bzip2

Open in new window

0
 
torimarCommented:
Chrios is right, I misread the question. Apologies.

But I wonder: why would the authors of the HowTo put these instructions into confusing pseudo-code if it were meaningless?

I guess what they wanted to provide you with is a scripted way of creating the profile package list. The line
$ for p in list-of-packages-you-want-installed ; do echo $p >> profiles/NAME.packages ; done

Open in new window


will read the list of packages from any text file you created containing a list of packages each in a single line, like given in Chrios's example. Then replace "list-of-packages-you-want-installed" by the name of that text file to automatically create a package list in the profile's folder by executing that short single-line script.
0
 
chriosCommented:
Torimar, i'm sorry, but I don't think that is correct.

In the code, "list-of-packages-you-want-installed" is meant to be replaced with one or several names separated by space, such as:
$ for p in screen openssh-server vim ctags bzip2 ; do echo $p >> profiles/NAME.packages ; done

Open in new window

which will  append the text from my example to NAME.packages (or create the file if it didn't exist). I just think that it's easier to edit the file directly using a text editor.

If he wants to add a list of packages from a file (mypackages.txt) into NAME.packages, he could use "cat mypackages.txt >> NAME.packages".
0
 
darwin_roachAuthor Commented:
thanks for the help, I will be reviewing this today.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now