Solved

installing files from cd

Posted on 2000-02-20
5
178 Views
Last Modified: 2013-11-13
i know this may be a little funny but i am a beginner, i cant seem to figure out how to run exe files from the cdrom,any help would be appreciated!
0
Comment
Question by:giztek
5 Comments
 
LVL 40

Expert Comment

by:jlevie
ID: 2540954
Okay, lets figure out how far you get. Are you looking at the cdrom contents from a GUI tool or a shell inside a terminal window? Some things won't run from a filemanager as thay have to have a controlling tty. The best way is to use a terminal window and, if the file is executable simply type in the command. Whin I mount a CD on my system it shows up as "/cdrom". If I saw something like:

levie> ls -l /cdrom

-rwxrwxr-x   1 levie    staff       61419 Feb 18 13:33 gork*
-rwxrwxr-x   1 levie    staff       11710 Feb 20 13:28 grok*
-

I'd know that "gork" and "grok" were both executable by the "x"s. If I wanted to be sure that there were meant to run under Linux, I'd do:

levie> file /cdrom/gork
gork: ELF 32-bit LSB executable, Intel 80386, version 1, dynamically linked (uses shared libs), not stripped
l

Yep, it's a Linux executable for a 386 or better processor. I can run it by saying:

levie> /cdrom/gork
  --or--
levie> cd /cdrom
levie> ./gork

You asked "how to run exe files". If by that you meant a file that ends in ".exe", that is probably a dos/windows executable and would have to be run in a dos or windows emulator (if it even can run in an emulator). I can check for that case by:

levie> file /cdrom/restorrb.exe
restorrb.exe: MS-DOS executable (EXE)
l

0
 
LVL 3

Expert Comment

by:freesource
ID: 2541035
Just because it is a Linux executable doesn't mean it will run.  In the case of shared libraries, you actually need those shared libraries on your system.  If it runs on an interpreter like Perl, Perl needs to be installed in order for a perl script to work.  

If if is a Windows executable you should try out Wine:

http://www.winehq.com/

If it is a dos executable try out dosemu:

http://www.dosemu.org/
0
 
LVL 2

Expert Comment

by:Reinier
ID: 2541933
Just another thing to check. How do you mount the cdrom? Using the option "user" in /etc/fstab implies the option "noexec". See "man mount". This is for security. You can override it by putting "exec" after the "user" option.
0
 
LVL 2

Expert Comment

by:EatEmAndSmile
ID: 2542679
That's right... Executables won't run from the cdrom by default. That is... If you configured your /etc/fstab from the example in the mount man pages.
0
 
LVL 4

Accepted Solution

by:
rickson earned 100 total points
ID: 2604134
first you must mount the cdrom.
but if it is a windows program ,  u need another program that can run win api in linux. if it is linux program ussualy u need to compile using c,or make if it is *.rpm it is executable file installation for linux just click it will automatically install.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now