LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 03-29-2005, 11:25 AM   #1
nikkilynn
LQ Newbie
 
Registered: Mar 2005
Location: alabama
Posts: 3

Rep: Reputation: 0
Angry why cant I install .bin or .exe files ?????


Hi I am trying to install some files I have downloaded onto my comp into root folder.I have no way of getting them open.These are either .exe or.bin files.I have tried to go to the terminal and the only command I have is rpm . Also, Am I suppose to change the name of the file when downloading it before it goes into the folder?
 
Old 03-29-2005, 11:28 AM   #2
tangle
Senior Member
 
Registered: Apr 2002
Location: Smithville, TN
Distribution: Slackware
Posts: 1,744

Rep: Reputation: 70
If you are in the same directory, you need to put ./ in front of the file name.
 
Old 03-29-2005, 11:31 AM   #3
c--
Member
 
Registered: Sep 2004
Location: Oregon, USA
Distribution: Ubuntu/Debian
Posts: 82

Rep: Reputation: 15
ok, when you say the root folder, I'm not sure what you mean, as in / ? usualy in linux you save stuff to your home directory or to /root for administrative things. first of all, in linux, you cannot run windows executables. there is a program called wine, and derivatives of that called winex/cedega and tricks like that, but those are tricky to get working and I wouldn't recomend them to a newbie. So, .exe files are just out, you can't use them at all on linux without some sort of non-emulation like wine.

With that said, there are equivilant (often better) apps for linux for just about anything you want to do one windows. Let us know what these exes are and we can recomend some linux programs to try and get you started on the right foot.

as for the .bin, that sounds like part of a .bin/.cue file, a disk image. I've only used these in linux a few times. I first converted them to an iso using some utility (sorry, forget the name) and then mounted it using
mount -d /dev/loop -t iso9660 blahblahblah.iso /media/image/

also, what distro are you using? thats important for us to know to be able to help you.
 
Old 03-29-2005, 01:17 PM   #4
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
Quote:
Originally posted by c--

as for the .bin, that sounds like part of a .bin/.cue file, a disk image. I've only used these in linux a few times. I first converted them to an iso using some utility (sorry, forget the name) and then mounted it using
mount -d /dev/loop -t iso9660 blahblahblah.iso /media/image/
.bin is just the extension given to some binary files. They can be cd images but mostly they're just executables. It's extremely unlikely that he's downloaded a .bin disk image.
 
Old 03-29-2005, 04:22 PM   #5
c--
Member
 
Registered: Sep 2004
Location: Oregon, USA
Distribution: Ubuntu/Debian
Posts: 82

Rep: Reputation: 15
hmm... hardly ever see bins, what other binary data do people package in them?
 
Old 03-29-2005, 04:27 PM   #6
awdac
LQ Newbie
 
Registered: Mar 2005
Posts: 21

Rep: Reputation: 15
Quote:
Originally posted by c--
hmm... hardly ever see bins, what other binary data do people package in them?
In Linux, I've most often seen that extension used for wrappers around installation files that require you to confirm some EULA. IBM and Sun have done this for drivers and such that I've had to install from time to time.
 
Old 03-29-2005, 10:52 PM   #7
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Milwaukee, WI
Distribution: Mint
Posts: 6,642

Rep: Reputation: 69
nikkilynn - Most likely, if a file has a .exe extension, it's for Windows and would be unusable under Linux. You would need to d/l the Linux package.

Is there a specific program you're trying to install? If you indicate what it is, I can almost guarantee that if there is a version for Linux, someone here will know about it and can steer you in the right direction. -- J.W.

Welcome to LQ!
 
Old 03-30-2005, 01:47 AM   #8
taxtropel
Member
 
Registered: Mar 2005
Location: Cascade Mountains WA USA
Distribution: Linux From Scratch (LFS)
Posts: 149

Rep: Reputation: 16
.exe files are usually windows (microsoft) programs, and cannot be run under linux.
*however* for some reason, some programs distribute files that end in .exe, which are nothing more than shell scripts
.bin files are also usually shell scripts (w/ encoded binary data stuck on the end), but they can also be ELF files as well
(such as the java development kit file (jdk-1_5_0_01-nb-4_0-bin-linux.bin)
(well really they can be any file they want, I'm just talking "normal" stuff here)

an easy way to find out what exactly a file type is, is to use the 'file' command.

example :

[root@gadzook ~]# file xmms-1.2.10.tar.bz2
xmms-1.2.10.tar.bz2: bzip2 compressed data, block size = 900k

check out 'man file' for more information.

if you figure out that you have a shell script. or other executable
'file' will say something like
ELF 32-bit LSB executable
or
Bourne shell script text executable
about the file.

then you will want to tell bash that the file is executable.

to do this you type
chmod +x filename.bin

now you have an executable file, which is now given permission to be an executable file.
how do you run this file you ask?
easy by adding a "dot forward-slash" or
./ (<- note the period before the slash!!!!)
to the beginning of the file name

example
./filename.bin

this tells the shell to run the program from the current directory.
if the current directory was your home then

/home/username/filename.bin
~/filename.bin
./filename.bin

are all the same command

what you are really doing here is specifying the complete path for the program
' ./ ' is just a shortcut which means current directory.
( typing ./glfile beats the hell out of typing /usr/local/code/projects/SDL/OpenGL/GL-File-2/glfile )

the reason for this is: the shell (aka bash) will not run programs outside of the $PATH variable
to find out what your path is type
echo $PATH

so in order to run programs outside the $PATH variable we would either need to add the directory to the path, or
prepend the full path to the filename ( or a shortcut such as ' ./ ' )

if you wanted to add the current directory to the path type

export PATH=$PATH:$(pwd)

however this is considered to be a bad idea in general, as it can be a HUGE security risk.
but for home systems, w/ an unprivilaged user, this is not generaly a problem
 
Old 03-30-2005, 10:48 AM   #9
ylts
Member
 
Registered: Feb 2005
Location: Estonia, Tartu
Distribution: Gentoo linux
Posts: 101

Rep: Reputation: 15
If you are trying to install java, (it can be downloaded as .bin file) read their instructions http://www.java.com/en/download/help...10500.xml#self extracting Good reading also if attempting to install some other .bin file. Java example is

Install

# Linux self extracting binary file
# Linux RPM package

Note: The instructions below are for installing JRE 5.0. If you're installing another version, make sure you change the version number appropriately when you type the commands at the terminal.


To install the Linux (self-extracting) file

Follow these instructions:

1. At the terminal: Type:
su
2. Enter the root password.
3. Change to the directory in which you want to install. Type:
cd <directory path name>
For example, to install the software in the /usr/java/ directory, Type:
cd /usr/java/

Note about root access: To install the JRE in a system-wide location such as /usr/local, you must login as the root user to gain the necessary permissions. If you do not have root access, install the JRE in your home directory or a subdirectory for which you have write permissions.
4. Change the permission of the file you downloaded to be executable. Type:
chmod a+x jre-1_5_0-linux-i586.bin
5. Verify that you have permission to execute the file. Type:
ls -l

Make sure the installation file has executable permission

6. Start the installation process.Type:
./jre-1_5_0-linux-i586.bin

it should be easy
 
Old 04-01-2005, 08:33 AM   #10
nikkilynn
LQ Newbie
 
Registered: Mar 2005
Location: alabama
Posts: 3

Original Poster
Rep: Reputation: 0
When I am in root account in the terminal,
I type the command chmod 755 to change permissions and then when I try to install ./ <ANYTHING> I get Bash: ./ is a directory.The files Im trying to install is java and they are all highlighted green.It still wont install.Thank you

$./ jre-1_5_02-linux-i586-rpm.bin
This is the command I have been using to install but still nothing.
 
Old 04-01-2005, 09:33 AM   #11
Padma
Member
 
Registered: Aug 2003
Location: Omaha, NE, USA
Distribution: PCLinuxOS 2007
Posts: 808

Rep: Reputation: 30
Make sure there is no space between the "./" and the filename. They are all part of a single path.
 
Old 04-01-2005, 11:48 AM   #12
ylts
Member
 
Registered: Feb 2005
Location: Estonia, Tartu
Distribution: Gentoo linux
Posts: 101

Rep: Reputation: 15
Padma is right. I have been using linux 4 months and would say: while following howtos use copy/paste if possible and then just change version numbers and paths in command. It worked for me and sometimes i still use it. Helps against spelling errors.
 
Old 04-01-2005, 02:14 PM   #13
nikkilynn
LQ Newbie
 
Registered: Mar 2005
Location: alabama
Posts: 3

Original Poster
Rep: Reputation: 0
It finally worked. Thank you everyone for the help.
 
  


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
Where does Wine install my .exe files? KidMW14 Linux - Newbie 5 03-11-2004 10:20 AM
Cant install exe and bin files DutchMarshall Linux - Software 9 02-18-2004 04:34 PM
installing .exe and .bin files Andrea40 Linux - Newbie 6 11-09-2003 08:08 PM
cant install .bin files, tar.gz files or anyother format!!! madskillz Linux - Newbie 4 10-05-2003 10:28 AM
Can I install .exe files in linux 9?? DavitTaylor LQ Suggestions & Feedback 0 07-31-2003 12:45 AM


All times are GMT -5. The time now is 06:21 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration