- linux. Как установить .run файлы
- How to Execute .bin and .run Files in Ubuntu
- Executing .bin and .run files
- Karim Buzdar
- Как мне установить .run файлы?
- How to Write, Compile and Run a C Program in Ubuntu and Other Linux Distributions [Beginner’s Tip]
- Method 1: How to run C programs in Linux terminal
- Method 2: How to run C programs in Linux using a code editor like Visual Studio Code
- How to Ubuntu
- How to Execute a .Run or .Bin file
- Warnings
- Terminal
- Beginner (easy)
- Before Executing
- Executing
linux. Как установить .run файлы
Установка файлов с расширением «.run».
Для установки данный файл необходимо сделать исполняемым.
Установить такие файлы можно следующими способами:
- Графический способ установки
Найти данный файл. Щелкнуть по нему второй кнопкой мыши и выбрать пункт «Свойства» — («Properties»).
После чего откроется меню, где можно управлять свойствами. Необходимо выбрать вкладку «Права» — («Permissions»).
И отметить галочкой пункт — «Разрешить исполнять как программу» — («Allow executing file as program»).
После проведения перечисленных манипуляций можно запускать «.run» файл и производить установку.
Запуск файла осуществляется двойным щелчком мыши. - Терминальный способ установки
Если по каким-то причинам у вас не получилось установить приложение с помощью графического способа установки или же вас этот способ вас не устраивает, то можно произвести установку из терминала (консоли).
Первоначально нужно запустить терминал (Горячие клавиши ctrl + alt + t).
Далее перейти в каталог с «.run» приложением.
В моем случае приложение лежит в следующей директории:
И делаем файл исполняемым (вместо my_program указывайте название вашего приложения):
И выполняем запуск данного приложения:
Запуск приложения может вызвать сообщение об ошибке «permission denied». Это означает, то что вам не хватает прав доступа для запуска. Для этого данную команду необходимо выполнить под sudo с правами супер пользователя. Будьте осторожны при использовании sudo и запускайте только те приложения, которым вы доверяете, так как sudo дает полные права данному приложению на исполнение.
Источник
How to Execute .bin and .run Files in Ubuntu
Before explaining how to execute .bin and .run files on your Ubuntu, let us first define what exactly these file extensions are:
Bin File: A Binary or BIN file in Ubuntu refers to installation packages that are mostly self-extracting executables for installing software on your system. You can install most software packages through the Ubuntu Software Manager, from .deb packages, and .tar.xz packages. However, there is software that is not available in these formats. These mostly include newer software and newer versions of software, mostly beta, that is not available otherwise. The bin packages are easily executed/run using the Ubuntu command line, the Terminal.
Run File: These are also executable files typically used for Linux program installers. Run Files contain program data and instructions for making the installation; often used for distributing device drivers and software applications. The run packages are easily executed/run using the Ubuntu command line, the Terminal.
In this article, we will explain how to execute/run the file with .run and .bin extensions on Ubuntu Linux.
We have run the commands and procedures mentioned in this article on a Ubuntu 18.04 LTS system. We will be using the Ubuntu command line, the Terminal, in explaining how to run bin and run files. You can open the Terminal application either through the system application launcher search or the Ctrl+Alt+T shortcut.
Note: Please make sure your .run and .bin files come from a reliable source, as executing an insecure file can damage your system and even compromise your system security.
Executing .bin and .run files
The process of running both the run and BIN files is pretty simple and straightforward in Ubuntu.
We are assuming that you have already downloaded your bin/run file in a known location on your Ubuntu.
Open the Terminal application and move to the location where you have saved the executable file.
For example, I would use the following command to move to my Downloads folder:
Now use the following command to make your .bin/.run file executable:
For .bin file: Advertisement
In this example, I will be making a sample .run file named samplefile.run executable.
If your .run/.bin file does not exist in the current location, you can specify the exact file path/location in the above commands.
My file is now marked as executable. The system indicates it by a change in color of the filename when listed through the ls command:
Once your .bin/.run file has become executable, you can use the following command to execute/run it:
You can specify the path of the executable file in the above command if it does not exist in the current folder you are in.
My sample file is pretty much an empty file. In case of a proper installation package, the installation process will begin after you execute the file.
This is the power of the Ubuntu command line. You can install rare software packages available in the .run and .bin formats easily on your system.
Karim Buzdar
About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn
Источник
Как мне установить .run файлы?
На моем компьютере установлены Ubuntu и Windows 7. Я установил все свои драйверы в Windows, такие как графика Nvidia, материнская плата и т. Д. Должен ли я установить их также в Ubuntu?
Я посмотрел в Интернете мои драйверы Nvidia, и я нашел .run файл. Как я могу установить его на свою Ubuntu?
Иногда некоторые приложения и игры (например, некоторые из Humble Indie Bundle) имеют установщики .run. Перед установкой, используя эти, проверьте, если:
- он доступен в Центре программного обеспечения
- он доступен в виде файла .deb, который откроется в Центре программного обеспечения
Вы можете установить .run файлы из графического интерфейса, но использование терминала с большей вероятностью даст вам полезную обратную связь. Чтобы установить файл .run, вам необходимо:
- сделать его исполняемым.
- выполнить это
Это связано с тем, что файлы .run являются просто исполняемыми программами, которые совершают какое-то неизвестное действие при установке программы. Это похоже на то, что делают установщики .exe в Windows, и отличается от обычных методов (в лучшем случае с использованием Центра программного обеспечения, в худшем случае с использованием файлов .deb), в которых приложения устанавливаются стандартным способом и могут быть легко удалены.
Графический метод
- Щелкните правой кнопкой мыши файл в диспетчере файлов и выберите «Свойства». Перейдите на вкладку «Разрешения» и установите флажок «Разрешить выполнение файла как программы».
- Дважды щелкните файл, чтобы выполнить его.
Если этот метод не работает, попробуйте использовать метод терминала.
Терминальный метод
Предположим, что файл называется some-app.run и находится в папке /home/user/Downloads . Вам нужно будет изменить эти инструкции в соответствии с вашей ситуацией.
Откройте терминал (Приложения-> Аксессуары-> Терминал).
Источник
How to Write, Compile and Run a C Program in Ubuntu and Other Linux Distributions [Beginner’s Tip]
Last updated October 7, 2021 By Abhishek Prakash 21 Comments
How do you program in C on Linux? It is indeed very easy and consists of three simple steps.
Step 1: You write your program and save the file with a .c extension. For example, my_program.c.
Step 2: You compile the program and generate the object file using gcc compiler in a terminal like this:
Step 3: You run the generated object file to run your C program in Linux:
This was just the quick summary on how to compile and run C program in Linux. If you are new to either C or Linux, I’ll show these steps in detail so that you feel comfortable coding C program in Linux environment.
In fact, I’ll discuss how to run C programs in Linux terminal as well as in code editor.
Method 1: How to run C programs in Linux terminal
In order to run a C program in Linux, you need to have a C compiler present on your systems. The most popular compiler is gcc (GNU Compiler Collection).
You can install gcc using your distribution’s package manager. In Debian and Ubuntu-based Linux distributions, use the apt command:
Switch to directory where you have kept your C program (or provide the path) and then generate the object file by compiling the program:
Keep in mind that it is optional to provide the output object file (-o my_program). If you won’t do that, an object file named a.out will be automatically generated. But this is not good because it will be overwritten for each C program and you won’t be able to know which program the a.out object file belongs to.
Once you have your object file generated, run it to run the C program. It is already executable. Simple use it like this:
And it will display the desired output, if your program is correct. As you can see, this is not very different from running C++ programs in Linux.
Every time you make a change in your program, you have to compile it first and then run the generated object file to run the C program.
Method 2: How to run C programs in Linux using a code editor like Visual Studio Code
Not everyone is comfortable with command line and terminal and I totally understand that.
You can use a proper C/C++ IDE like Eclipse or Code Blocks but they are often too heavy programs and more suitable for large projects.
I recommend using an open source code editor like Visual Studio Code or Atom. These are basically text editors and you can install add-ons to compile and run programs directly from the graphical code editor.
I am using Visual Studio Code editor in this example. It’s a hugely popular open source code editor from Microsoft.
First thing first, install Visual Studio Code in Ubuntu from the software center. For other distributions, please check your Linux distribution’s package manager or software center. You may also check the official website for more information.
Start Visual Studio Code and open/create a project and create your C program here. I am using a sample Hello World program.
You must ensure that you have gcc compiler installed on your Linux system.
Next thing you would want is to use an extension that allows you to run the C code. Microsoft may prompt you for installing its own extension for C/C++ program but it is complicated to setup and hence I won’t recommend it.
Instead, I suggest using the Code Runner extension. It’s a no-nonsense extension and you can run C and C++ code easily without additional configuration.
Go to the Extensions tab and search for ‘Code Runner’ and install it.
Restart Visual Studio Code. Now, you should be able to run the C code by using one of the following way:
- Using the shortcut Ctrl+Alt+N.
- Press F1 and then select or type Run Code.
- Right click the text editor and the click Run code from context menu.
When you run the program, it is compiled automatically and then run. You can see the output in terminal that is opened at the bottom of the editor. What could be better than this?
Which method do you prefer?
Running a few C programs in Linux command line is okay but using a code editor is much easier and saves time. Won’t you agree?
I let you decide whichever method you want to use.
Like what you read? Please share it with others.
Источник
How to Ubuntu
How to Execute a .Run or .Bin file
.Run or .Bin files are probably the only file types you will ever need to mark as executable in normal use of Ubuntu. There are two ways to execute them (which usually installs something), either in the terminal, or graphically (which usually relies on the terminal somewhat as well). Whichever you choose, read the red warnings below.
Warnings
.Run and .Bin files are fairly easy to execute or install, but can be notoriously difficult to remove. This depends on the developer. They also can be downloaded from anywhere, and made by anyone, so make sure you or other people have experience and therefore trust of the source. You should check any uninstall procedures before proceeding with these instructions.
Some .Run and .Bin files require root permissions to run, using the sudo command. Remember that root access means the file has full access to your system and could potentially damage its stability and security.
Terminal
First, open the Terminal, then mark the file as executable with the chmod command.
chmod +x file-name.run
Now you can execute the file in the terminal.
If an error message including a problem such as ‘permission denied’ appears, use sudo to run it as root (admin). Be careful, sudo allows you to make critical changes to your system. Many software installs will require sudo .
Beginner (easy)
Before Executing
First, move the .Run or .Bin file to your Home folder. This is just precautionary. Second, Right-click on the file and select Properties . Under the Permissions tab, tick the checkbox near the bottom labeled Allow executing file as program . Click Apply Permissions . Then Close the Properties Window.
Executing
Double-click the .Run or .Bin file. If not action appears to be happening, right-click and select Run in Terminal . A purple window with white text will open. This is the terminal. Do not worry if it takes a few seconds to appear, this is normal. Answer any questions using the Tab , Arrow , Space , and Enter keys.
Источник