LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-15-2005, 07:31 AM   #1
manticor
LQ Newbie
 
Registered: Jan 2005
Distribution: Red Hat 9
Posts: 4

Rep: Reputation: 0
Unhappy Self extracting .bin files


Hi, guys... This is my first post here, so um... HI!

Anyway, to the issue in hand:

I recently installed RedHat 9 on my laptop. As far as it goes, it works absolutely perfectly. The problem is this: I'm trying to install things, and downloads keep coming up as "self extracting .bin files" on the site i download from (namely Sun Java). Well, i'm not that familiar with Linux, so i download the file and double click. The problem is this: All i get come up on the screen is text. It looks like a script of some kind, but the problem is that it dosnt do anything: It simply displays the text!

Arg, can someone please help me with this problem - im trying desperately to install stuff (including the JaveRE files) but I can't!!!


Thanks in advance
 
Old 01-15-2005, 07:33 AM   #2
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
Open a terminal.

Code:
chmod +x name_of_self_extracting.bin
./name_of_self_extracting.bin
Then report back if this still doesn't work.
 
Old 01-15-2005, 07:39 AM   #3
manticor
LQ Newbie
 
Registered: Jan 2005
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
OK, the first line seemed to work fine... Then, when I put in the second line, I got this redurn:

Quote:
./ is a directory
When I tried it without the "./" on the start, it simply did the whole command not recognised thing...

Thanks for the help so far, and thanks for any more help!

Edit: Ah, I typed it wrong! All works fine, thanks very much for your help!

Last edited by manticor; 01-15-2005 at 07:40 AM.
 
Old 01-15-2005, 08:00 AM   #4
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
lol, glad to hear you got it working.

the ./ is used to tell the shell to look in the current directory for the file. That way it would see it even if it wasn't in a place you would normally look for an executable file.
 
Old 01-16-2005, 12:25 PM   #5
manticor
LQ Newbie
 
Registered: Jan 2005
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Yeah, thanks again...

Just out of interest, where does it normally look then, if not in the current directory? (my only real experience with using command lines is when I used to use DOS to try to get past the security in school )
 
Old 01-16-2005, 02:09 PM   #6
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 814

Rep: Reputation: 43
Path

DOS and Windows first look in the current directory, then in the directories listed in the PATH variable. To see this, in a console window, enter the command:

echo $PATH

*nix systems do not look in the current directory. This seems to be a "philosophical" thing. You shouldn't normally be in the program directories but somewhere in your home tree.
 
Old 01-16-2005, 03:39 PM   #7
frob23
Senior Member
 
Registered: Jan 2004
Location: Roughly 29.467N / 81.206W
Distribution: OpenBSD, Ubuntu, FreeBSD
Posts: 1,449

Rep: Reputation: 48
It is more than just philosophical. It is security related. Remember that any file can be executable on *nix and that many common commands are programs and not build into the shell. If some malicious person put the following into a file named /home/eviluser/private/ls
Code:
#!/bin/sh
rm -rvf ~/
And clueless_user wandered into their directory, saw private and entered it, then decided to list the files it contained (before possible looking at the contents of some)... they would unwittingly execute the /home/eviluser/private/ls and not the /bin/ls they intended. Now everything in their home directory has been silently wiped out. Some would say they shouldn't be snooping... but they would be the buttholes with no sympathy.

You shouldn't even have ./ as the END of your path because if you mistype a command and there is a bad executable there, you don't want it to run. Keep the current directory out of your path. If you want to run your own private programs... add them to ~/bin and add that to your path... you can execute them from anywhere and since you are the only one who can put files there, you will know they are trusted.

Last edited by frob23; 01-16-2005 at 03:41 PM.
 
Old 01-17-2005, 12:52 AM   #8
davcefai
Member
 
Registered: Dec 2004
Location: Malta
Distribution: Debian Sid
Posts: 814

Rep: Reputation: 43
Good Point

I never considered the evil_user scenario. (Nor do I have ./ in my path!)
 
Old 01-17-2005, 12:12 PM   #9
manticor
LQ Newbie
 
Registered: Jan 2005
Distribution: Red Hat 9
Posts: 4

Original Poster
Rep: Reputation: 0
Cheers, guys... Help much appreciated.
 
  


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
Extracting Bin and Que files. zozoman Linux - General 2 11-26-2005 11:49 AM
Extracting bin files julienroger Linux - Newbie 16 09-14-2004 06:51 PM
extracting bin files shyam_d_sundar Linux - Software 3 07-12-2004 12:01 PM
Extracting files from a .bin LinuxBAH Linux - Software 1 06-25-2003 07:43 PM
Extracting .sh.bin files SS_King Linux - Newbie 3 06-11-2003 11:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:52 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