Help - Search - Members - Calendar
Full Version: LiveCD - Problem with sudo
MandrivaUsers.org > Advanced Topics > WorkBench
Frederick
I finally have a working livecd (MDK10 Official, xfc4.0.3-2, kernel 2.4.25).

I have written three scripts (Install-flash-7, Install-RealPlayer-10 and Install-Swiss-PDB-Viewer-3.7) so that the CD provides support for the major commercial programs and also one of particular interest to me.

The flash install script works great since it does not include sudo.

Note that all three scripts worked on the desktop i use for development of the cd.

The last two scripts make use of sudo in the following way:

QUOTE
sudo rpm -ivh package.rpm


I get the following message when running the two scripts:

QUOTE
sudo: timestamp too far in the future Jun 25 16:27:41 2004
Installers/./Install-Real-Player-10: line 10: 6302 Broken pipe sudo rpm -ivh RealPlayer-0.4.0.186-20040615.i586.rpm


I will release the scripts on this forum as soon as I worked out this bug. Any help in solving it would be welcome.

Cheers.

PS: I am writing this from the CD tongue.gif

[moved from Software by spinynorman]
tyme
sounds like there's a clock problem...is your live cd displaying the correct time/date?
Frederick
Ok, i have somewhat progressed,

I added my default user as a sudoer instead of the group.

Now here is the error i get:

QUOTE
error: cannot open lock file ///var/lib/rpm/RPMLOCK in exclusive mode
error: cannot open Packages database in /var/lib/rpm



I am doing this experiment on the cd, I will try on the desktop.

I thought, maybe change the permissions on the folder so that it is always writable.

Another solution could be to just use sources instead of rpm.

Any ideas?
Frederick
I solved the problem by forgetting about rpm. I used the binary installer for real player and checked the license for openmotif (which was needed for one of the programs i wanted to install) and installed it via rpm directly in the system.

I think that for anyone that is interested in doing such scripts, it is good to keep in mind that rpm will not work since the filesystem is write only for the CD.

I will package the scripts with a readme and post them here.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.