Run installation file linux

Install & Execute BIN files in Linux: Ubuntu, CentOS & More

This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.

The wikiHow Tech Team also followed the article’s instructions and verified that they work.

This article has been viewed 286,525 times.

Do you need to install a program from a BIN file on your Linux system? Files ending with the .bin extension are typically installation binaries that you can execute to install a program. Before you can run a BIN install file, you’ll need to make it executable using the chmod command or by changing its permissions in your desktop environment’s file manager. This wikiHow article will teach you two simple ways to install a BIN file on any Linux distribution, including Ubuntu, Debian, CentOS, & Redhat.

  • If you’re using a desktop environment like GNOME, KDE, or Cinnamon, you can make the BIN file executable in your file manager.
  • Use chmod + x at the prompt to make a .bin file executable.
  • Once the BIN file is executable, you can run it using the command ./ or by double-clicking the file in your file manager.

From the Command Line

Image titled Install Bin Files in Linux Step 1

  • Check the installation directions for any files you download from the internet. Depending on the file, you may need to install it in a certain way—for example, some BIN installers must be run by specifying an installation directory.
  • If you downloaded a compressed file (such as a .tgz, .zip, or .tar.gz file), look for a «README» or «INSTALL» file after decompressing the file. Use the more command to open the file (e.g., more README ) to look for specific instructions or dependencies.

Image titled Install Bin Files in Linux Step 2

Open a terminal window. You can do this on most Linux distributions by pressing Ctrl + Alt + T at the same time. Otherwise, click the Terminal icon in your app list.

Image titled Install Bin Files in Linux Step 3

Image titled Install Bin Files in Linux Step 4

Type chmod +x filename.bin to make the file executable. Replace filename with the name of the BIN file you downloaded, then press Enter to run the command. This changes the file’s permissions so you can run it like a program.

Image titled Install Bin Files in Linux Step 5

  • If you need to install the program in a directory that requires root permissions (or you get a permissions error during installation), use su before the command. For example, su ./j2re-1_4_0-linux-i386.bin .

Image titled Install Bin Files in Linux Step 6

Follow the on-screen instructions to install. Depending on the installer, you might see a graphical wizard that walks you through the installation, or an installation script may execute in the terminal window. Follow any on-screen prompts to install the software.

From the GUI / Desktop Environment

Image titled Install Bin Files in Linux Step 7

  • Check the installation directions for any files you download from the internet. Depending on the file, you may need to install it at the command line instead of your desktop environment so you can specify an installation directory.
Читайте также:  Dir cmd in linux

Image titled Install Bin Files in Linux Step 8

Right-click the BIN file and select Properties . You’ll see this option on the right-click menu.

Image titled Install Bin Files in Linux Step 9

Click the Permissions tab. Depending on your window manager, you may already be on this tab. If not, click Permissions to get there.

Image titled Install Bin Files in Linux Step 10

  • When you’re finished, click Close or the X to close the window and save your changes.

Image titled Install Bin Files in Linux Step 11

  • If you get an error, try running the bin file in a terminal window instead by typing ./filename.bin , replacing «filename» with the name of your bin file.

Expert Q&A

If the file you want to install is available as a package, it’ll be easier to install through the Ubuntu Software Center, Apt, or RPM.

You Might Also Like

Install Java on Linux

Unrar Files in Linux

How to Unrar Files in Linux: Open .RAR Files Easily

Install Google Chrome Using Terminal on Linux

Can Linux Run Exe

Can Linux Run .exe Files? How to Run Windows Software on Linux

Add or Change the Default Gateway in Linux

Become Root in Linux

Open Ports in Linux Server Firewall

How to Open Linux Firewall Ports: Ubuntu, Debian, & More

Take a Screenshot in Linux

Execute INSTALL.sh Files in Linux Using Terminal

How to Run an INSTALL.sh Script on Linux in 4 Easy Steps

Ping in Linux

Use Ping in Linux: Tutorial, Examples, & Interpreting Results

Boot Linux from a USB on Windows 10

Delete Read Only Files in Linux

How to Delete Read-Only Files in Linux

Источник

linux. Как установить .run файлы

Данный материал предоставлен сайтом PacificSky.Ru исключительно в ознакомительных целях. Администрация не несет ответственности за его содержимое.

Установка файлов с расширением «.run».

Для установки данный файл необходимо сделать исполняемым.
Установить такие файлы можно следующими способами:

  1. Графический способ установки
    Найти данный файл. Щелкнуть по нему второй кнопкой мыши и выбрать пункт «Свойства» — («Properties»).
    После чего откроется меню, где можно управлять свойствами. Необходимо выбрать вкладку «Права» — («Permissions»).
    И отметить галочкой пункт — «Разрешить исполнять как программу» — («Allow executing file as program»).
    После проведения перечисленных манипуляций можно запускать «.run» файл и производить установку.
    Запуск файла осуществляется двойным щелчком мыши.
  2. Терминальный способ установки
    Если по каким-то причинам у вас не получилось установить приложение с помощью графического способа установки или же вас этот способ вас не устраивает, то можно произвести установку из терминала (консоли).

Первоначально нужно запустить терминал (Горячие клавиши ctrl + alt + t).
Далее перейти в каталог с «.run» приложением.
В моем случае приложение лежит в следующей директории:

cd /home/мой_пользователь/Загрузки
sudo chmod +x my_program.run

Запуск приложения может вызвать сообщение об ошибке «permission denied». Это означает, то что вам не хватает прав доступа для запуска. Для этого данную команду необходимо выполнить под sudo с правами супер пользователя. Будьте осторожны при использовании sudo и запускайте только те приложения, которым вы доверяете, так как sudo дает полные права данному приложению на исполнение.

Источник

Installing .run Packages

Careful consideration must be put into place whenever installing anything outside of the official repositories. Run files install software into the system via a script rather than a package manager. Verify that the run file you obtained came from a source that you trust before executing it.

Installation

Follow the procedures below to install software packaged in a .run file:

GUI

  1. Find the .run file in the File Browser.
  2. Right-click the file and select Properties.
  3. Under the Permissions tab, make sure that Allow executing file as program is ticked and press Close.
  4. Double-click the .run file to open it. A dialog box should appear.
  5. Press Run in Terminal to run the installer.
  6. A Terminal window will open. Follow any instructions on-screen to install the program.

Command-Line

  1. Open a terminal and navigate to the directory where the file is located.
  2. Execute chmod +x .run
  3. Now that the execute permission has been set, simply run ./.run

InstallingRunPackage (последним исправлял пользователь 162-192-67-10 2014-04-18 13:53:28)

The material on this wiki is available under a free license, see Copyright / License for details
You can contribute to this wiki, see Wiki Guide for details

Источник

How to Run an INSTALL.sh Script on Linux in 4 Easy Steps

This article was co-authored by wikiHow staff writer, Nicole Levine, MFA. Nicole Levine is a Technology Writer and Editor for wikiHow. She has more than 20 years of experience creating technical documentation and leading support teams at major web hosting and software companies. Nicole also holds an MFA in Creative Writing from Portland State University and teaches composition, fiction-writing, and zine-making at various institutions.

The wikiHow Tech Team also followed the article’s instructions and verified that they work.

This article has been viewed 457,413 times.

Did you download Linux software that came with an install.sh file? Install.sh is a simple text-based shell script that makes it easy to install software. To use an install.sh script, you’ll first need to make it executable using chmod +x install.sh. Then, you can execute the script in a terminal with the command ./install.sh or sudo ./install.sh. This wikiHow guide will walk you through executing an install.sh file from the Linux command line using Ubuntu, Debian, and any other version of Linux.

  • To make install.sh file executable, use the command chmod +x install.sh.
  • To execute the script, run the command ./install.sh.
  • Depending on permissions, you may need to start each command with sudo to gain superuser (root) access.

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 4

  • Before installing software, make sure to check the README or INSTALL file that came in your download for specific instructions and installation options.

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 5

  • If the file you downloaded is compressed into a TGZ or TAR.GZ archive, be sure to unpack the files first.
  • You can extract a TGZ or TAR.GZ file using the command tar -xzvf filename.tgz .
  • To make sure you’re in the right directory, type ls -a and press Enter. You should see your install.sh file, as well as all other files in the directory.

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 6

  • If you’re unable to change the permissions, you’ll need root access. Instead, run sudo chmod +x install.sh and press Enter.
  • If you don’t see an error, you’ll know the install script is now executable.

Image titled Execute INSTALL.sh Files in Linux Using Terminal Step 4

  • You can also use the command sudo bash install.sh or sudo sh install.sh to run the script.
  • If you’re just installing the software in your own home directory and don’t need root permissions, you can use omit sudo and use ./install.sh instead.
  • Depending on the script and app you’re installing, you may be prompted to complete additional steps to install the software.

Community Q&A

Enter these commands into the terminal: cd /location of file/. For example, /home/username/Documents./name_of_file.extension. Replace these with the name of the file/program and the extension (commonly .desktop in Linux or .exe (executable) or .sh (script). Make sure the file/program is marked as executable in its properties.

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

I typed: chmod +x install.sh but the output is chmod: cannot access ‘install.sh’: No such file or directory.

This means that there is no install.sh file. Linux is case-sensitive, so if you type the file name as install.sh, it won’t find a file that is named, for example, INSTALL.sh. Also check for typos, like typing isntall.sh instead of install.sh. Try typing ls to list all files in the current directory. If the install.sh file is not in the current directory, you need to change into the directory with that file using the cd command.

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

I want my (.sh) files to be executable by 1 word like «test» without commanding «./test.sh | bash test.sh». How to do that?

If that’s a program that someone else wrote, you can usually run «sudo make install» to install it, and then it will be possible to just type the program name. If it is a script that you wrote yourself, do the following: Add the line «#!/bin/bash» (without the quotation marks) to the beginning of the script file. Rename the file to not have «.sh» at the end, for example «test.sh» to just «test». Finally, move your file to the «/usr/bin» directory. Then, you can just type the word (in this example, «test») to execute the script. Also, when working from the Linux bash shell, you don’t need to type the » | bash test.sh» part, you can just write «./test.sh».

Thanks! We’re glad this was helpful.
Thank you for your feedback.
As a small thank you, we’d like to offer you a $30 gift card (valid at GoNift.com). Use it to try out great new products and services nationwide without paying full price—wine, food delivery, clothing and more. Enjoy! Claim Your Gift If wikiHow has helped you, please consider a small contribution to support us in helping more readers like you. We’re committed to providing the world with free how-to resources, and even $1 helps us in our mission. Support wikiHow

Источник

Оцените статью
Adblock
detector