run mydsl-load when starting dsl


Forum: Apps
Topic: run mydsl-load when starting dsl
started by: RigasW

Posted by RigasW on May 28 2007,12:23
Hello,

I succeeded in remastering and added the application "git" to my "my.iso". I also removed dillo and change the path for user dsl.

In a second step, I remastered in that way that i added the mydsl application jre1_5_0, because "git" needs java.

When I boot the image from CD, everything works fine ... it boots, installs java, and starts the application "git" (I configured that in .xinitrc).

And now to my problem.

I tried to convert that installation  to a PXE booting image.

It boots, the application "git" is there, the changes in xinitrc and the modified PATH are there ...

What is missing is the mydsl-java!!

I put the file "jre1_5_0.tar.gz in the / level and tried to start it with

mydsl-load jre1_5_0.tar.gz

This produces the following message when booting:

"please mount media containing optional dir and try angain"

any ideas?

Rigas

Posted by mikshaw on May 28 2007,13:55
Your mydsl file may have become corrupted. Shuffling a lot of files around, particularly very large files, on an ext2 filesystem can quickly cause fragmentation (assuming that's the correct term to use in this case?).  You should fsck your ext2 partition(s) on a regular basis (every couple of months at least), and run md5 check on your mydsl file.
Posted by roberts on May 28 2007,15:38
PXE-packed DSL is similar to using toram option. The entire image is in the initial ramdisk. This prevents the need to search for the KNOPPIX image. Which also means no way to auto search for mydsl directory as the cdrom or other boot device is not mounted. That is why you are seeing that message. Recall that PXE-packing ( loaded in the intital ramdisk ) was done to prevent the need for nfs for the typiclal module search and attempting mounting of the remote boot device. You might try booting the PXE server with sshd and then mounting the remote boot device (PXE server) from the booted client, then use fuse/sshfs and then try to mydsl-load your extension.
Posted by RigasW on May 28 2007,15:59
Hello,

thanks for your answers.

I understand that the auto search for mydsl archives does not work in the pxe environment.

For this reason I copied the jre1_5_0.tar.gz file into / and tried to install it using

mydsl-load jre1_5_0.tar.gz

using a script, that is started automatically at boot-time with .xinitrc.

I DO have a working pxe image, in which I can - as user dsl - start a script manually, that

installs the java mydsl-package (lying in dir /)
extends the path for java/bin
starts application git.

The only thing I want achieve is that this happens automatically after the start of the system. (I try to built a music box for the living room ... the rest of the family does not want to start a script in a linux command shell ....)

What is the difference between starting a script as user dsl or starting the script via .xinitrc?

Any ideas?

Rigas

Posted by ^thehatsrule^ on May 28 2007,16:47
.xinitrc is executed when startx is issued. In other words, this is used when the X starts (for fluxbox, the gui, etc.).  As such, this file should be used only for X specific apps... but if you don't care it doesn't matter :P
Posted by RigasW on May 28 2007,18:41
When I start the following script manually as user dsl from within my PXE booted DSL, java is installed and my application git is started:

[CODE]
cd /
mydsl-load jre1_5_0.tar.gz &
sleep 20
export PATH="${PATH}:/ramdisk/opt/jre1_5_0/bin"
cd git
sh git.sh
[CODE]

The only thing that I still want is to execute those steps automatically when booting.

So I remastered an succeded with:

- extending PATH via .bashrc
- suppressing dillo in .xinitrc

But calling mydsl-load via .xinitrc leads to the error message, stated in the beginning.

Any ideas ???

Rigas

Posted by mikshaw on May 28 2007,20:23
.xinitrc runs from within /home/dsl. Unless you use the absolute path to jre1_5_0.tar.gz, mydsl-load won't find it:

mydsl-load /jre1_5_0.tar.gz

or

cd / && mydsl-load jre1_5_0.tar.gz

I don't recommend the cd method, though, unless you cd back to /home/dsl after mydsl-load. It will cause problems for you later, since the window manager will also start from / and some things in DSL rely on paths relative to /home/dsl

Posted by RigasW on May 29 2007,06:49
Hi Mikshaw,

you did it!
I now use the absolute path ... and it works.
So I have a way to use mydsl-extensions within a PXE booted DSL installation.

Now we take a break and go to Paris for week ....

Thanks

Rigas

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