Ubuntu Autorun

Asked by Robert

Can the CD Autorun feature be enabled in Ububtu 6.10? I am wanting it to start up a html file upon insertion.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
dorphichinfa
Solved:
Last query:
Last reply:
Revision history for this message
Best dorphichinfa (dorphichinfa-deactivatedaccount) said :
#1

Most likely not, as that usually comes in the form of an autorun.bat, autorun.inf or autorun.exe file built for Windows.

Ubuntu could however, do its best to open an autorun file that it understands, such as autorun.html or an autorun.inf that points to such a file, but I have not seen it implemented.

Revision history for this message
Robert (robert-martz) said :
#2

Step 1:
System --> Preferences --> Removable Drives and Media --> Storage tab --> Autorun programs on new drives and media (Thanks Buck)

Step 2:
create a text file with gedit or the like called autorun (or .autorun or autorun.sh)

In this text file, I had to remove the first line that every other version of linux seemed to need: #!/bin/sh Don't use it. Don't let temptation take you. It will not work. After 30 plus CD burns, I know. (I was using a CD-RW so don't flame me for filling up the local landfill.

To start up a html file, all I had to do was have one line in the file:

firefox Page.html

Save the file

Step 3:
Right click on the autorun file you saved then click Properties.
Click the Permissions Tab.
Check the "Execute: Allow executing file as program
Click Close

Step 4:
Burn this and the html file you stated in the autorun file.

Step 5:
Open then close the CD drawer. (If you use the button in the CD burner instead of right clicking on the CD icon on the desktop, you will get griped at for doing a very unsafe thing. I would love to find a way to shut off that warning.)

Step 6:
Once the CD spins up, it should show up on the desktop. A few seconds afterwards, you should get a little box that states there is an autorun file and you have an option of "Ignore" or "Auto-run".

Step 7:
Click Auto-run!!!