The Ultimate Gaming Shell for Linux Mint and Ubuntu!

Flickr API shell script

My Gaming Shell script!

I created this a few years ago because of my son who at the time wanted a system but we couldn’t’ afford Windows 10. So I installed Linux Mint.  I’ve found that this script should allow you to play almost any game that doesn’t require anti-cheat or the new DRM games.   Anything would run without much of a problem at least with stuff like Call of Duty and other games like that, I didn’t have much problem running them with this little shell script.   I am sure you’ve seen my Notepad++ shell script to install on your Linux system.  This is something similar and I thought it was high time to share with my readers.  If you haven’t already, you should go over and find out about shell scripting and learn some cool shell scripts yourself.   This however isn’t going to be very educational for some because it isn’t very complicated.

echo "Installing Wine"
echo y|sudo apt-get install wine-stable
echo y|sudo apt-get install winehq-stable

echo "Installing Playonlinux"
echo y|sudo apt-get install playonlinux

echo "Installing steam"
echo y|sudo apt-get install steam

echo "Installing Minecraft"
echo y|sudo apt-get install minecraft-launcher

echo "Installing Lutris"
sudo add-apt-repository ppa:lutris-team/lutris
sudo apt update
echo y|sudo apt install lutris

read -p "Do you want to uninstall Firefox? (y/n)? " answer
case ${answer:0:1} in
y|Y )
echo y|sudo apt-get uninstall firefox
;;
* )
echo No
;;
esac
read -p "Do you want to install Chrome? (y/n)? " answer
case ${answer:0:1} in
y|Y )
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt update
echo y|sudo apt install -y google-chrome-stable
;;
* )
echo No
;;
esac
done

You can download it here along with the Notepad++ Script!

Explaining the script

So let’s first explain the top of the script and work our way down.   As you can see these are just installing the Wine and other utilities around on the internet to be able to play the games or maybe install the stuff you are wanting to install.  It doesn’t have to be games but I am sure it can be almost anything.   My son was always playing Minecraft on his Linux machine.  That game is so easy to install on Linux and runs without much o a problem, so that is why I included it here.  The Next one is obviously Lutris which can be installed on any Ubuntu and Linux Mint system without much problems and allows you to play all sorts of games that might be online games.   I’ve not tried it lately but I am sure these will work just as well as the next.

Finally the last part, I really like Chrome and I hate it that Firefox get’s installed most of the time.   So I put in a script to remove Firefox and install Chrome.   As you can see this one asks you the questions so if you like Firefox, then you need not worry and if you like Chrome you can install that and keep Firefox or remove it.   To each there own.

As you can see this isn’t going to be a big post but I did want to share with you my ultimate gaming script for Linux and even Windows 11 can’t hold me back if I ever do decide to do that.  After all, I did get Microsoft Flight Simulator to run on Linux Mint!  Are you going to use Linux more to play games on or are you going to stay with Windows?  Why not let me know and thank me for an awesome script that you can use anytime with your Linux system.

How to Install your Favorite Apps on Linux OS.

Photo by Markus Spiske temporausch.com from Pexels

Command Line Rocks

I simply love using command in Linux.   I currently using Linux Mint because I didn’t want to upgrade my laptop to Windows 10.   If you know anything about Linux, they seldom install the necessary apps for Laptops or Desktops.   You’d have to install them separately and some of the apps do some really useful things on Linux.   Such as the touch pad inidcator which will disable the touch pad when you are typing or when you are using a mouse.   I hate to use the Graphical User Interface to find and install these apps.  So I decided to create a shell script to install the needed laptop apps for any installation of Linux on a Laptop.  I do like to install programs from the GUI but that is when I am looking to install one program or just curious what they’ve added to the Synaptic Package Manager.   Since most of these apps are open sourced, I thought it would be nice to show you how to create a shell script that you might want to use from time to time.  The nice thing this helps if you are re-installing Linux or installing Linux on a new laptop Linux.

Creating a Shell Script

Before you begin this process, you’ll want to wrap your head around how to create the Linux script.  Once you learn about the process of creating the script.  You will understand more about the next process but you should at least get the basics so you can know what you can and can’t do in a script.   A shell script is almost like a batch file in Windows and you can do a lot of things in it.  Some things you can do are If/then or Echo, or Sudo commands.   If you want to make a complicated menu then that is fine also. I believe simplistic is best.   So I created my own little simple script to install the laptop apps that will help me on my laptop.

Laptop-linuxinstall.sh

echo Installing Touchpad Inidcator
sudo add-apt-repository ppa:atareao/atareao
sudo apt update
sudo apt install touchpad-indicator

echo installing cpu frequency Inidcator
sudo add-apt-repository ppa:artfwo/ppa
sudo apt update
sudo apt-get indicator-cpufreq

echo Installing Battery Optimization
sudo add-apt-repository ppa:linrunner/tlp
sudo apt-get update
sudo apt-get install tlp tlp-rdw
sudo tlp start

echo Installing Laptop Mode Tools
sudo add-apt-repository ppa:ubuntuhandbook1/apps
sudo apt-get update
sudo apt-get install laptop-mode-tools

You could easily copy this and paste it into a text editor and start using it right away but I hope you at least learn about scripting.   This script will work with Linux Mint or Ubuntu, but I am unclear if it will work with other Linux OS.  This is why you will want to learn the create your own script because you might have to modify or add new lines into the script.  If you decide to use Laptop Mode tools, I suggest you read about how to configure the tools once you installed it.

Changing Permission in Linux

Changing Permissions

Once you have created the script and saved it to a file you will need to change the permissions of the file so Linux can run it from command line or if you decide to run it from the GUI.   You can either right click the file > Properties then go into permissions (See above for example) and check mark “Allow executing file as a program” or go into terminal mode.

Go to where the file is located and type “sudo chmod +x filename.sh”  and enter your Password.  Once this is done you can now either use the GUI or type “./locationoffile/file.sh” in the terminal.

All is Good!

After you have done all that, You now should keep the shell script on several locations so you can always use it if you need it.   I occasionally like to reinstall Linux to keep the system running smoothly so that is why I created shell scripts to install my favorite programs or stuff I might want to use on my laptop.   Do you have a favorite application or a suggestion please feel free to leave a comment below.   I’d love to hear what you install on your Linux OS and why.