Solved

Creating a Custom Linux Debian 5 (lenny) installation

Posted on 2010-11-29
5
511 Views
Last Modified: 2012-05-10
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
Comment
Question by:darwin_roach
  • 2
  • 2
5 Comments
 
LVL 35

Expert Comment

by:torimar
ID: 34230599
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
 
LVL 3

Accepted Solution

by:
chrios earned 500 total points
ID: 34230645
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
 
LVL 35

Expert Comment

by:torimar
ID: 34230785
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
 
LVL 3

Expert Comment

by:chrios
ID: 34236988
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
 

Author Comment

by:darwin_roach
ID: 34239103
thanks for the help, I will be reviewing this today.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS EC2 Linux 1 55
Anti-virus for Linux Server 15 126
Error Message during CentOS 7 Minimal Install 3 34
Penetration Testing home based work 3 54
The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now