Jump to content

LiveCD - Problem with sudo


Frederick
 Share

Recommended Posts

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:

 

sudo rpm -ivh package.rpm

 

I get the following message when running the two scripts:

 

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 :P

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

Ok, i have somewhat progressed,

 

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

 

Now here is the error i get:

 

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?

Edited by Frederick
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...