Adding file or a directory?


Forum: System
Topic: Adding file or a directory?
started by: Martin2

Posted by Martin2 on Jan. 23 2006,04:53
I want to add some compiled binary to the /usr/bin directory
and some directories to the ~dsl (dosprog for dosbox)
and modify shadow in /etc

Is it possible to do it using mkmydsl? If not, how to do it?
How to create new iso file with the above? (I successfully
added dsl extensions to the iso file using mkmydsl)

Thanx
Martin

Posted by mikshaw on Jan. 23 2006,15:22
/etc is already writeable (although space is limited).
If you are already booted into dsl, use the command "sudo /etc/init.d/mkwriteable" to open up /usr, /bin, and /sbin for writing, or load a mydsl package with a "*.dsl" filename.
If you want to boot into a writeable system, use the boot option "dsl write", or auto-load a mydsl packages with a "*.dsl" filename.

Posted by Martin2 on Jan. 23 2006,15:31
> /etc is already writeable (although space is limited).

Is it possible to increase the space?

> If you want to boot into a writeable system,
> use the boot option "dsl write", or auto-load a mydsl
> packages with a "*.dsl" filename.

How do I create a new mydsl package? How do I put files
or directories into it?

How do I add the files/directories to the /home/dsl directory?

Thanx
Martin

Posted by cbagger01 on Jan. 23 2006,17:30
You can manually increase the space for a livecd / usb / frugal install by doing the following:

Move the contents of /etc to a new directory called
/ramdisk/etc

Create a simlink where etc is repointed:

/etc ---->  /ramdisk/etc


You then have as much space available in /etc as there is in the entire ramdisk.

Posted by Martin2 on Jan. 23 2006,18:02
Quote (cbagger01 @ Jan. 23 2006,12:30)
You can manually increase the space for a livecd / usb / frugal install by doing the following:

Move the contents of /etc to a new directory called
/ramdisk/etc

Create a simlink where etc is repointed:

/etc ---->  /ramdisk/etc


You then have as much space available in /etc as there is in the entire ramdisk.

Thanx, but I want to do in the context of creating a new iso file. I did put small binary in /usr/bin (after booting with write option), run mkmydsl but this binary disapeared from iso.

Should I put it in /KNOPPIX file structure (which is read only, I guess I need to remount it with write permissions)?

What I put in /etc is gone too (modified shadow), /etc/skel is write only so I will look into /KNOPPIX to copy a dosprog directory, (should I put it into etc/skel or into etc/skel/dsl ?

Posted by Martin2 on Jan. 23 2006,21:35
I found a type of "solution":

I used shareware Magic ISO Maker to add a folder to iso
with dos files, binaries and /etc files.

After booting DSL I can mount/copy this stuff in the proper places.

Posted by cbagger01 on Jan. 24 2006,17:18
To modify the base iso, you will need to remaster the KNOPPIX file.

Search the forum for the keyword "Remastering" for more help on the subject.

Otherwise, you can turn your small binary file into a MyDSL extension and then add it to the base iso by using the mkmydsl script.

The simplest mydsl extension building for a binary file or others, some of which are stored in writable areas like /usr/bin or /bin is to:

1) Tar up the file or files into a tarball  myextension.tar.gz
MAKE SURE TO NOT INCLUDE DIRECTORIES AND SUBDIRECTORIES IN YOUR TARBALL

2) Rename the file to myextension.dsl

3) Save it somewhere.

4) Run the mymydsl script.  Add the new file to your mymydsl build directory when you are prompted to do so.

5) Burn your new iso.

6) Enjoy

Posted by Martin2 on Jan. 25 2006,02:33
Quote (cbagger01 @ Jan. 24 2006,12:18)
To modify the base iso, you will need to remaster the KNOPPIX file.

Search the forum for the keyword "Remastering" for more help on the subject.

Otherwise, you can turn your small binary file into a MyDSL extension and then add it to the base iso by using the mkmydsl script.

The simplest mydsl extension building for a binary file or others, some of which are stored in writable areas like /usr/bin or /bin is to:

1) Tar up the file or files into a tarball  myextension.tar.gz
MAKE SURE TO NOT INCLUDE DIRECTORIES AND SUBDIRECTORIES IN YOUR TARBALL

2) Rename the file to myextension.dsl

3) Save it somewhere.

4) Run the mymydsl script.  Add the new file to your mymydsl build directory when you are prompted to do so.

5) Burn your new iso.

6) Enjoy

> some of which are stored in writable areas
> like /usr/bin or /bin is to:

> 1) Tar up the file or files into a tarball  myextension.tar.gz
> MAKE SURE TO NOT INCLUDE DIRECTORIES AND
> SUBDIRECTORIES IN YOUR TARBALL

How can I control in which directory it will end up?

Posted by cbagger01 on Jan. 25 2006,18:16
You need to create a similar directory hierarchy for your tarball.  In other words:

./usr/bin/myfile

for example.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.