Lately many of the Windows newbies who I have talked to and who have tried Linux, keep crying about how hard it is to install a program, when the process involves commands for terminal. So here I'm gonna show all of them how to easily install any program with just a single click. Or a double click, if they haven't set up their file manager.
This can be done for every single program out there that requires terminal commands to be installed.
I'm gonna use Wine for this example and it's up to you to make the proper replacements to match your program.
So, you found your program and the instructions on the website tell you to enter these commands in terminal. Which can be tedious, I agree. Here's what you do: open any text editor your Linux has (mine is GEdit). Copy the first command, paste it in the file, leave one space after it and add &&, then leave one more space. Copy the second command and do the same. Do the same with the rest of the commands. This is what the text file should look like at the end:
The last command tells the apt applicaiton to install all the recommended libraries as well as the stable version of Wine - all that AS ROOT. Which is something similar to the Windows function "Run as Administrator". But note the '-y' command at the end of the line. When you run such a command, terminal asks you whether you want to continue and waits until you actually pres the "Y" key and then press enter. The '-y' actually confirms in advance that action, so you don't have to do it when asked.
Now that you have pasted all the commands, save the file somewhere - in a folder with the desired program name and the file itself should be named "install" - no other words, no extension! Then right click that file, choose "properties", go to "rights" or whatever it is called in your language and click the option "make this file executable". Close the properties window and double click it. A small question dialog should appear asking you what you want to do with it. The options may vary but the one you need is "execute in terminal". The terminal will ask you for your password (type it and press enter). You won't see your password or any other symbols while you type it - Linux standard. From that point all you have to do is wait. When the installation is completed, the terminal will disappear from the screen, thus you will know the program you wanted is installed. Now just find your program in the menu and enhoy.
This can be done for every single program out there that requires terminal commands to be installed.
I'm gonna use Wine for this example and it's up to you to make the proper replacements to match your program.
So, you found your program and the instructions on the website tell you to enter these commands in terminal. Which can be tedious, I agree. Here's what you do: open any text editor your Linux has (mine is GEdit). Copy the first command, paste it in the file, leave one space after it and add &&, then leave one more space. Copy the second command and do the same. Do the same with the rest of the commands. This is what the text file should look like at the end:
Code:
sudo dpkg --add-architecture i386 && sudo apt-get -y install wget && wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add - && sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main' && sudo apt-get update && sudo apt install --install-recommends winehq-stable -y
The last command tells the apt applicaiton to install all the recommended libraries as well as the stable version of Wine - all that AS ROOT. Which is something similar to the Windows function "Run as Administrator". But note the '-y' command at the end of the line. When you run such a command, terminal asks you whether you want to continue and waits until you actually pres the "Y" key and then press enter. The '-y' actually confirms in advance that action, so you don't have to do it when asked.
Now that you have pasted all the commands, save the file somewhere - in a folder with the desired program name and the file itself should be named "install" - no other words, no extension! Then right click that file, choose "properties", go to "rights" or whatever it is called in your language and click the option "make this file executable". Close the properties window and double click it. A small question dialog should appear asking you what you want to do with it. The options may vary but the one you need is "execute in terminal". The terminal will ask you for your password (type it and press enter). You won't see your password or any other symbols while you type it - Linux standard. From that point all you have to do is wait. When the installation is completed, the terminal will disappear from the screen, thus you will know the program you wanted is installed. Now just find your program in the menu and enhoy.