Solved

Creating a Custom Linux Debian 5 (lenny) installation

Posted on 2010-11-29
5
507 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
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.

747 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

13 Experts available now in Live!

Get 1:1 Help Now