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.
Notices
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.
Distribution: Suse (10.2, 10.3), CentOS, and Ubuntu
Posts: 1,794
Rep:
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).
Which distributions support automounting and live pollin?
And what can I do with distributions that don't support this? It would be nice if a document with instructions and links to programs would open when DVD is inserted.
Distribution: Suse (10.2, 10.3), CentOS, and Ubuntu
Posts: 1,794
Rep:
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
Posts: 213
Rep:
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.
So it should work under newer versions of gnome... what about KDE?
theYinYeti: but every client should install (or have installed) CDDE to run the start page automagically when a DVD is inserted, right?
At this point I'll probably go with autorun.sh, I guess Linux users are used to mounting the disc manually in reading the docs for instructions and dont really need a startup HTML hello page.
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.
Thanks!
System: x86 Running under RedHat 9 w/ kernel 2.4.20-8
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.