LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 08-08-2005, 12:15 PM   #1
cpraveen84
LQ Newbie
 
Registered: Aug 2005
Location: India, Hyderabad
Posts: 2

Rep: Reputation: 0
CD autorun scripts for FC3 or any other new linux distros


Hello group,

I have a problem creating a CD autorun script for linux. I have created a sample autorun file and placed it on the CD for testing. The contents of the file are as follows :

#!/bin/sh
dir=$(echo $0 |sed 's/autorun//')
cd $dir
fullpath=$(pwd)
exec konqueror $fullpath/default.html

But this script is not exectuted once i insert a CD into the drive. However, if i run the script from the terminal it works just fine.

I need to tackle this situation and need help.

Thank All of You.
 
Old 09-30-2005, 10:00 AM   #2
xxfunkxx
LQ Newbie
 
Registered: Jul 2004
Location: Vienna
Distribution: Debian Sid
Posts: 26

Rep: Reputation: 15
you need to edit /etc/fstab.
Change the line with the cdrom entr to exec. I am using debian so in FC3 it looks maybe different.
/dev/hdc /media/cdrom0 udf,iso9660 ro,user,noauto,exec 0 0

This should solve your problem.
xxfunkxx
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
autorun in lInux mili Linux - Newbie 5 10-10-2012 05:59 AM
autorun for linux mili Linux - Newbie 4 09-24-2005 11:11 PM
Need two Linux distros to install but partition problem in FC3 anindyanuri Linux - Software 15 05-01-2005 12:17 AM
FC3: NFS Server and Startup Scripts General_Tso Fedora 13 03-20-2005 12:08 AM
Linux burnt cd doesn't autorun in windows TelemachusMPH Linux - Newbie 1 08-19-2003 06:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 06:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration