How to run install.sh on Linux via Terminal

Table of contents:

How to run install.sh on Linux via Terminal
How to run install.sh on Linux via Terminal
Anonim

You can install a new program on Linux in the following ways: through the Ubuntu Software Center or the Synaptic Package Manager. However, some programs have to be installed using more sophisticated methods, such as through the terminal. In this article, you will walk through the step-by-step process of installing software using the file

INSTALL.sh

… The article will show you how to install the Rockhopper VPN client as an example.

Steps

Execute INSTALL.sh Files in Linux Using Terminal Step 1
Execute INSTALL.sh Files in Linux Using Terminal Step 1

Step 1. Download the program you want to install

Installation files are usually compressed into a Tar or zip archive.

Execute INSTALL.sh Files in Linux Using Terminal Step 2
Execute INSTALL.sh Files in Linux Using Terminal Step 2

Step 2. Extract the contents of the archive to your desktop

Execute INSTALL.sh Files in Linux Using Terminal Step 3
Execute INSTALL.sh Files in Linux Using Terminal Step 3

Step 3. Open a terminal using the keyboard shortcut Ctrl + Alt + T

Enter the following command: cd ~ / Deskop / rockhopper-0.2.b1-020. Replace rockhopper-0.2.b1-020 with your desktop folder name. Press ↵ Enter.

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

Step 4. Make the file

.sh

executable.

To make the file executable, enter the following command in the terminal: chmod + x install.sh. Replace install.sh with the name of the.sh file. Press ↵ Enter.

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

Step 5. Run the file

.sh

.

Enter this command: sudo./install.sh. Replace install.sh with the name of the.sh file again. Press ↵ Enter Note: If that doesn't work, try sudo bash install.sh without the "./" (this worked on Ubuntu 16). To do this, you will have to enter your administrator password.

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

Step 6. Complete the installation of the application

Installing through the terminal can include additional steps, such as verifying the installation.

Popular by topic