Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,207,565 members, 7,999,455 topics. Date: Monday, 11 November 2024 at 07:58 AM

Creating Autorun Cds For Linux - Computers - Nairaland

Nairaland Forum / Science/Technology / Computers / Creating Autorun Cds For Linux (2671 Views)

How To Delete Autorun.inf From Pen Drive / Is Autorun A Virus? / Virus: Autorun Virus Terrorizing My School (2) (3) (4)

(1) (Reply)

Creating Autorun Cds For Linux by tomX1(m): 11:35am On Sep 15, 2008
Hi Linux gurus,
can anyone of you tell me how to create a cd that autoruns a contained program on Linux OS. I can do this in Windows but I'm not quite familiar with Linux.
Thanks a lot.
Re: Creating Autorun Cds For Linux by quadrillio(m): 11:22am On Sep 25, 2008
Name

autorun - automatically mounts/unmounts CDROMs and executes /path_to_cdrom/autorun after mounting
Synopsis

autorun [-lmqv?V] [-a EXEC] [-c CDPLAYER] [-e STRING] [-i MILLISEC] [-n STRING] [-t STRING] [--autorun=EXEC] [--cdplayer=CDPLAYER] [--interval=MILLISEC] [--lock] [--mountonly] [--notify=STRING] [--notify-insert=STRING] [--notify-eject=STRING] [--quiet] [--verbose] [--help] [--usage] [--version] [cdromdevices, ]
Description

autorun automagically recognises all available CDROMs in your system, mounts them upon insertion and executes a possible 'autorun' executable on the CD. To allow an ordinary user to do this you have to add the options user,exec in /etc/fstab to the CDROMs you want to use.

You may also use Autorun.desktop for KDE. Just place it in your Autostart folder.

Command strings are parsed and %P% is replaced by the mountpoint path. %D% is replaced by the device path. After that the command string will be executed using /bin/sh -c "command string";
Options

-a, --autorun=EXEC

Execute EXEC, if the CD changes. This executable must be located on the CD. I.e. if you specify "--autorun=myprogram", and your CD is mounted under /mnt/cdrom, after the CD is changed, autorun will attempt to run "/mnt/cdrom/myprogram". (default "/autorun"wink
-c, --cdplayer=CDPLAYER
Run CDPLAYER, if an audio CD is inserted (default "/usr/bin/kscd"wink
-i, --interval=MILLISEC
The time to wait in MILLISEC between checks (default 1000)
-l, --lock
Lock the mounted media (unmount by hand)
-m, --mountonly
mount/unmount only (do not execute anything)
-n, --notify=STRING
Command STRING that will executed if the CD changes (default "/usr/bin/kfmclient configureDesktop"wink
-t, --notify-insert=STRING
Command STRING that will executed if a CD was inserted and the autorun executable "/autorun" or the one specified with --autorun was NOT executed. (default "/usr/bin/kfmclient openURL %P%"wink
-e, --notify-eject=STRING
Command STRING that will executed if a CD was ejected (default ""wink
-q, --quiet
Don't produce any output
-v, --verbose
Produce verbose output
-?, --help
Give this help list
--usage
Give a short usage message
-V, --version
Print program version
Mandatory or optional arguments to long options are also mandatory or optional for any corresponding short options.
Re: Creating Autorun Cds For Linux by tomX1(m): 10:09am On Sep 26, 2008
Thanks a lot @quadrillio,
You'd need to break it down for me a little though. Let's use the following practice scenerio:

Lets say I have a file "GoodFile.htm" on a CD ROM now how will I get that file to autorun on Linux?

(1) (Reply)

Clean Uk Used Asus Ux31a - Thin, Full Metal Body, Core I5, 5hrs+ Battery, *sold / Do You Have A Laptop:The Keyboard Is Not Working Or Malfunctioning? Here's A Fix / Which Wireless Router Has The Best Wi-fi Range?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 14
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.