How to execute a .bin file in Ubuntu

by admin on April 25, 2009


Now that you have installed Ubuntu, you may like to install some of your preferred programs. Unlike in Windows, you don’t get executable files in Ubuntu. There are different types of executable files in Ubuntu, and one of the most common file extensions is .bin file.

If you download a .bin file and try to straight away execute it, in Ubuntu you won’t be able to do so. You’ll need to tell Ubuntu that this file must be “executed”, and not opened in another program, as in, like .odf files are opened by OpenOffice.

So how do you execute a .bin file in Ubuntu? Save the file somewhere on your Ubuntu desktop. Then right-click the file and click Properties. This brings up this window:

execute-bin-file

Click the Permissions tab and check the “Allow executing file as program” checkbox.

execute-bin-file-1

Press Close and you are ready to execute a .bin file under Ubuntu.

In case it doesn’t work you will have to resort to executing some commands inside the terminal window. Open your Terminal window (Applications > Accessories > Terminal window). In case you have saved the bin files, let’s say executethis.bin file on your Desktop, execute this command first of all:

sudo chmod +x executethis.bin

It will ask for your password. Enter it and hit Enter. Please remember that being Linux, Ubuntu is case sensitive. Now, simply execute the file by executing:

./executethis.bin

It may again ask for the password, but this way, now you can execute your bin file.

  • Stumbleupon
  • Delicious
Share

Related posts

{ 3 comments… read them below or add one }

lucky verma February 21, 2010 at 6:56 am

it doesnt work for ,i have tried so many times but everytime i got the same messege.
koko@ubuntu:~$ sudo chmod +x rp11.bin
chmod: cannot access `rp11.bin’: No such file or directory

what can i do,
howe do i install these bin files

admin February 21, 2010 at 7:09 am

Hello Lucky.

May be you’re not in that directory? The file actually has to be there. Suppose rp11.bin is in the Downloads folder, first you’ll have to do

sudo cd Downloads

You’ll first have to go to that particular folder. HTH

lucky verma February 21, 2010 at 8:09 am

koko@ubuntu:~$ sudo cd Downloads
sudo: cd: command not found
koko@ubuntu:~$

again not working

Leave a Comment

Previous post: How to start learning jQuery from scratch

Next post: How to quickly capture a screen shot in Ubuntu