LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 06-05-2006, 02:27 AM   #1
indraveni
LQ Newbie
 
Registered: May 2006
Posts: 28

Rep: Reputation: 15
Create an autorunning CD


Hi,

Can anyone tell me How to create an autorunning CD in Linux or Debian Linux.

That is : Once we insert the CD it should start running CD just like what happens in Windows OS installable CD. Once we insert the CD the installable packages will be listed out of which we select the pacakges to be installed. How this can be done in Linux.

we are working for a distro and we created installable CD also. Now we are tring to create a second CD which will have extra pacakges to be installed later. so when we insert the CD it shd list out the pacakges list out of Which the user will select the pacakges to be installed. So this CD should start running once we insert the CD.

So can any one tell me how we can create an autorunning CD..

HELP NEEDED PLEASE

Thankyou
 
Old 06-05-2006, 08:12 PM   #2
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,426

Rep: Reputation: 268Reputation: 268Reputation: 268
As for Debian or GNU/Linux in general, you can't (...and even if you could, you really shouldn't).
Whetter a system will auto-mount your CD relies entirely on the way the OS is configured (and the software it uses).

Quote:
we are working for a distro and we created installable CD also. Now we are tring to create a second CD which will have extra pacakges to be installed later. so when we insert the CD it shd list out the pacakges list out of Which the user will select the pacakges to be installed. So this CD should start running once we insert the CD.
If the default setup for this disro allows auto-mounting, your CD will pop up anyway.

So it all depends on the distro and way it's configured.

Last edited by jens; 06-05-2006 at 08:14 PM.
 
Old 06-06-2006, 02:48 AM   #3
indraveni
LQ Newbie
 
Registered: May 2006
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by jens
As for Debian or GNU/Linux in general, you can't (...and even if you could, you really shouldn't).
Whetter a system will auto-mount your CD relies entirely on the way the OS is configured (and the software it uses).
Our OS detects the CD automatically. If we insert a CD while our distro is running then the CD is opened in a window automatocally

Quote:
Originally Posted by jens

If the default setup for this disro allows auto-mounting, your CD will pop up anyway.
What is the default setup that our distro should support. Can you give me any steps regading this that that how we can make a file to run immediately.
 
Old 06-06-2006, 11:30 AM   #4
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,426

Rep: Reputation: 268Reputation: 268Reputation: 268
Quote:
Originally Posted by indraveni
What is the default setup that our distro should support. Can you give me any steps regading this that that how we can make a file to run immediately.
If it can do automatic mounting (as you said it does) that should be enough.
Making "a file to run immediately" without the users permission is by all means a horrible idea and would require you to nuke your system's security.

As for your addon cd, take a look at the Ubuntu addon cd.
It basically pops up an installer using it's Automatics script(also used by other projects like "DebCentral Config").

Automatics:
http://ubuntuforums.org/showthread.php?t=177646

Automatics addon cd:
http://ubuntuforums.org/showthread.php?t=145889

DebCentral Config (Automatics clone for Debian Etch).
http://debcentral.org/modules/news/a...hp?storyid=235

Last edited by jens; 06-06-2006 at 12:16 PM.
 
Old 06-07-2006, 05:17 AM   #5
indraveni
LQ Newbie
 
Registered: May 2006
Posts: 28

Original Poster
Rep: Reputation: 15
I have seen the links that u specified. But no where it is given how to create the Add On CD. I have seen the link where Ubuntu explained about their AddOn CD ..
http://ubuntuforums.org/showpost.php?p=150088

But I dint understand how to create such CD. They mentioned about some script called ug-install.sh which is resposnsible for creating an auto installing CD .

What does that script contain. Where can I get some more information about this.??

Help Please..

Indraveni
 
Old 06-07-2006, 05:25 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
That's a very nice feature for getting root access if you have physical access.
Insert a cd that autoruns an exploit, give you root access and shut down the screensaver.
 
Old 06-07-2006, 05:29 AM   #7
indraveni
LQ Newbie
 
Registered: May 2006
Posts: 28

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by nx5000
That's a very nice feature for getting root access if you have physical access.
Insert a cd that autoruns an exploit, give you root access and shut down the screensaver.
What is this?? What does this mean?
 
Old 06-07-2006, 05:36 AM   #8
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Quote:
Originally Posted by indraveni
What is this?? What does this mean?
Means that depending on how you will configure your autorun, you are considerably lowering the security FOR PHYSICAL ACCESS ONLY.

Imagine: the screensaver for user ploum is running. The machine is phisically secure. I insert a CD which has one nasty binary, say a virus.
Your autorun executes it.
Game over.

Take it in consideration.
 
Old 06-07-2006, 05:38 AM   #9
indraveni
LQ Newbie
 
Registered: May 2006
Posts: 28

Original Poster
Rep: Reputation: 15
I am not going to make all the CD's autorun. I want to make only my CD which will have packages list and that list to be popped out as soon as we insert the CD.

Then where is the point of Virus??
 
Old 06-07-2006, 08:47 AM   #10
betrayed
LQ Newbie
 
Registered: Jul 2005
Location: Denver
Distribution: Debian testing/unstable
Posts: 17

Rep: Reputation: 0
idraveni, the point they are trying to drive across is how are you going to decided which cd's are auto run or not. You would have to modify how secure the system is for physicall access and once you lower that security a person inserting the wrong cd could cause major issues for the OS. I don't think auto run cd's have a place, if the user is placing the cd in the tray they know what they want to do and if your distro is all ready auto mounting it I don't think you need to do anything else/
 
Old 06-07-2006, 03:46 PM   #11
jens
Senior Member
 
Registered: May 2004
Location: Belgium
Distribution: Debian, Slackware, Fedora
Posts: 1,426

Rep: Reputation: 268Reputation: 268Reputation: 268
Quote:
Originally Posted by betrayed
idraveni, the point they are trying to drive across is how are you going to decided which cd's are auto run or not. You would have to modify how secure the system is for physicall access and once you lower that security a person inserting the wrong cd could cause major issues for the OS. I don't think auto run cd's have a place, if the user is placing the cd in the tray they know what they want to do and if your distro is all ready auto mounting it I don't think you need to do anything else/
Well, it all depends on what you mean by "auto run" cds. If his OS is setup as he said, every CD with a valid file system will auto run. Configuring your OS to allow auto running any app from the CD without asking for a password is indeed insane (I also don't see any benefit in this).
However, I don't see what it has to do with fhysical access and security. An addon CD is(or make that "should be") no different from any other CD. In Ubuntu's case, it just pops up an installer instead of an other file. It will still ask you for a password. As for fhysical access and security, it doesn't exist (A live CD/floppy will be enough to get full access on any system with "fhysical acces").

Quote:
I have seen the links that u specified. But no where it is given how to create the Add On CD. I have seen the link where Ubuntu explained about their AddOn CD ..
http://ubuntuforums.org/showpost.php?p=150088

But I dint understand how to create such CD. They mentioned about some script called ug-install.sh which is resposnsible for creating an auto installing CD .

What does that script contain. Where can I get some more information about this.??

Help Please..

Indraveni
They have their own forum:
http://www.getautomatix.com/
(and also an IRC channel)

Apart from a script it also includes a GUI (can be easily modified for your needs).

It's IMO the easiest way do this (also cause it only depends on apt and has a nice configurable GUI to use it without depending on other apt fronts).

Last edited by jens; 06-07-2006 at 03:54 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to create an autorunning CD indraveni Linux - Software 1 06-05-2006 12:26 AM
How To Create My Own ld snowing Programming 1 07-06-2005 12:13 AM
Create software RAID partitions first, then create filesystem partitions on top of th stefanlasiewski Linux - Software 1 04-28-2004 04:12 PM
Linux, Create Dirs=no, Create files=yes. Possible? tisource Linux - General 4 01-12-2004 10:05 PM
Automounting, autoloading, autorunning... Thymox Linux - General 2 01-11-2002 07:14 AM

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

All times are GMT -5. The time now is 01:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration