Click to See Complete Forum and Search --> : Installing Binaries (.bin)


kooda
11-25-2003, 06:38 PM
I have just downloaded a .bin & have no idea how to install this guy. I have searched the archives to no avail. Could somebody pls explain this for me or point to a URL.
Thanks.

PS. You have just read my first post, posted from my linux box. :D

ph34r
11-25-2003, 06:42 PM
sh whatever_it_is_called.bin

serz
11-25-2003, 06:59 PM
Or ./file.bin

Hayl
11-25-2003, 07:03 PM
Originally posted by serz
Or ./file.bin

after you chmod +x file.bin (if it does not already have the executable flag)

kooda
11-25-2003, 07:09 PM
Just after I posted I remembered www.google.com/linux (i'll do that first next time) & got it sorted, after I remembered its case sensitive. :o
Thanks all the same.

kooda
11-25-2003, 07:12 PM
Originally posted by serz
Or ./file.bin

For some reason when I tried ./filename.bin I got a error saying I didnt have permission, despite being logged on as root. While sh filename.bin works ok? :confused:

MighMos
11-25-2003, 07:21 PM
because the executable bit was not set....

chmox +x [filename].sh

freakmn
11-25-2003, 07:23 PM
That just means that the file does not have the executable flag. This can be fixed, as Hayl mentioned, by doing a chmod +x file.bin

serz
11-25-2003, 07:45 PM
Originally posted by Hayl
after you chmod +x file.bin (if it does not already have the executable flag)
Thanks about that :D

I didn't know that using sh file you don't need the executable permission.

lukem2
10-09-2004, 09:54 PM
Thanks for the help, I did not know how to install a .bin until I read this thread:) Don't you just love it.

Choozo
10-10-2004, 12:49 PM
Originally posted by serz
I didn't know that using sh file you don't need the executable permission. Taking a wild stab here, since sh itself is executable - and is passed a file to execute - it will work. Like the following example:
#!/bin/sh
# save as hello.sh, and do chmod -x hello.sh
echo "Hello"
Just doing ./hello.sh will give a Permission denied, but sh hello.sh works fine.

Cheers :)

freakmn
10-10-2004, 05:00 PM
Yeah, that's correct. The "#!/bin/sh" part tells the .sh file which shell to use to run, but you can override that using "shellname myfile.sh". The override part doesn't require the shell script to be executable. I'd also like to give a big thank you to
lukem2 for searching the forum instead of posting a new topic. Thanks man!

lukem2
10-10-2004, 09:33 PM
I forget what a great source this for info. Sometimes you have to dig around for a while to find what you're looking for, but it's always interesting reading. I had loaded firefox and needed java. I got that from sun but didn't know what to do with that .bin file. Now if I could just figure out why my PC reboots everytime I turn on the printer.....

Thanks again