Author:
Sara Rhodes
Date Of Creation:
18 February 2021
Update Date:
1 July 2024
![How to install .bin file in linux/ubuntu](https://i.ytimg.com/vi/iurpZ6Y6l38/hqdefault.jpg)
Content
There are two types of binaries (.bin) files - self-extracting archives and programs that you run.
Steps
1 If the binary is an installer / self-extracting archive, download it to a safe folder (so it won't get lost).
2 Open a terminal.
3 Get superuser rights. To do this, enter su - (a hyphen is required) and then enter the password.
4 If necessary, copy the binary file to the folder with the program for which you downloaded it. (For example, in the case of the Java Runtime Environment, this is required.)
5 Change to the directory with the BIN file: cd / topmost / folder or cd / usr / share
6 Give the BIN file execute permission: chmod + x thefile.bin
7 Execute it: ./thefile.bin (forward slash and period are required).
8 If the BIN file is a program, then most likely it is archived; unzip it.(For example, Firefox is distributed as a binary file.)
9 Copy the archive and unpack it in a separate folder.
10 Open the folder, find the program (BIN file) and, if necessary, give the BIN file permission to execute (see. step 6).
11 Create a shortcut to launch the program: right-click on the desktop, select the desired option and specify the path to the BIN file.
Warnings
- Be careful when unpacking a binary file, as files that you need may be overwritten.
- If the program will be managed by the entire system, place such a program in / usr / share.
- If you are a system administrator, do not allow users to work with BIN files - this can lead to a system crash.
- Use the described process as a last resort; try to install programs from the repository for your distribution (if possible).