Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
if you have a distribution which supports automounting, live polling, and autorun.sh (e.g., Suse), you can just name the file autorun.sh and put it in the root directory of the CD. It "should" work (I haven't actually tried that yet though).
If a distribution doesn't support those features, there's nothing you can do, really. It's like asking "if an operating system won't run a Windows application, how can my user run the Application?" - in that case, you need to switch operating system.
The user would have to either find and add the required modules/daemons to add the necessary functionality, or switch distributions. As far as which distributions support autorun.sh, I know for a fact that Suse does, but I don't know which other ones do.
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
I know that Fedora Core 3 supports autorun.sh as does the latest SuSE. Actually, any distro with a newer version of gnome should work provided gnome is the window manager. Under preferences and removable storage, you will see the option for autorun.sh on removable storage.
You're right. With the cdde solution, this product has to be installed on each computer using your DVD.
If autorun.sh is now standard-use (I never tried), then use it, of course.
And you know, many users use automount/supermount these days, or at least a "mount-aware" file-manager, so many don't really know the mount thing.
BTW, opening a "startup HTML hello page" from a autorun.sh script is easy!
I tried creating an autorun.sh file with the sample script you provided (providing my own HTML page, of course). I then burned the CD-ROM with Read and Execute privileges.
When I insert the CD into the drive, it does automount and I am prompted to run the autorun.sh script. However, when I select to run the script or try to execute it through Gnome, the terminal window appears briefly and the closes. It appears as if either the script has not been executed or that the process for the script has been terminated. If I run the script directly from the Terminal, however, it executes as expected.
Does anyone have any ideas what might be happening and what I can do to get it working as desired (i.e. selecting Yes to the autorun prompt actually opens the HTML page in Mozilla)?
I appreciate any help anyone can provide.
System: x86 Running under RedHat 9 w/ kernel 2.4.20-8