How to install Notepad++ on Linux Mint

Photo by Portable Free apps

Using Wine

I like the Windows version of Notepad++ so I thought I would at least share with you my current shell script, I usually call it install_notepad++.sh but you can call it anything you would like to use for the shell script. If you want to understand shell scripting on my site, please visit my other pages.  You’ll need to make sure to allow execution of the shell script before you can use it.

install_notepad++.sh

echo y|sudo apt-get install wine-stable
echo y|sudo apt-get install winehq-stable
xdg-open https://notepad-plus-plus.org
Echo "What's the current Version of notepad-plus-plus? (example Current version 7.9.2)" |Read Version_number
wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$Version_number/npp.$Version_number.Installer.exe
wine npp.$Version_number.Installer.exe
echo y|rm npp.$Version_number.Installer.exe

You can easily remove

Echo "What's the current Version of notepad-plus-plus? (example Current version 7.9.2)" |Read Version_number

if you want to use the shell without that could, You can add:

"$1" = $Version_number in the first line of the shell script.
echo y|sudo apt-get install wine-stable
echo y|sudo apt-get install winehq-stable
xdg-open https://notepad-plus-plus.org
Echo "What's the current Version of notepad-plus-plus? (example Current version 7.9.2)" |Read Version_number
wget https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v$Version_number/npp.$Version_number.Installer.exe
wine npp.$Version_number.Installer.exe
echo y|rm npp.$Version_number.Installer.exe

then to use the shell script you can type:
install_notepad++.sh (insert the version numbers you are wanting to use)

Once you launch this, notepad++ will be installed. It will be under the Wine menu but can be launched like any other Linux GUI program.

Notepadqq

The next one is notpadqq which is a really good version of notepad++ but I like the look for Notepad++ better and can be used just like everything else.   To install notepadqq

sudo add-apt-repository ppa:notepadqq-team/notepadqq
sudo apt-get update |sudo apt-get install notepadqq

Then it will be installed in the Linux.  You can also create a shell also or just copy and paste this one into the terminal.   Each one of these are really useful with programming and writing scripts of many different programs.

What is your favorite program in Linux to edit or code with and why?  why not leave a comment and tell people what you’re favorite editor is.

How to install Windows 11 on a given system.

Windows 11

Install Windows 11

It’s not as easy as it seems. Ever since Microsoft has told us what the requirements will be for Windows 11, there will be more than that for you to use Windows 11.   Some of the issues some users are having is going from non-secure boot to changing the partition to secure boot.   The problems associated has been far a wide for the people who are in the Preview program.   So what do you really need to do to install Windows 11.   I am will talk about some of the things you will probably need to do to get it to work on your system.

Gigabyte Motherboards

I currently have a B460M DS3H AC and finding Secure boot for my motherboard isn’t as easy as it seems.  I had to first update my bios from factory default to the latest.   You can download the bios for this motherboard and flash the motherboard with the latest bios updates.   It seems the latest bios F5B bios update has secure boot automatically enabled but for those who do not want to update their bios to the latest version.   In order to get secure to work on your motherboard you have to go to Advanced settings > Boot Menu.   Once there, you will need to scroll down to CSM and I needed to disable that to get secure boot to work.  Once that is down you can now have access to secure boot.

Converting your Partition

If you are like me have a MBR(Master Boot Record) partition than you will need to convert to GPT(GUID Partition Table) partition, in order to be able to run in secure boot.  There is a tool that can do that for you call MBR2GPT offered by Microsoft to be able to convert your partition to GPT.  Once you do this, than you can enable secure boot and have it ready for Windows 11.   Since we are talking about the preview build and not the actual build I can only sumeize that it will be required with Windows 11 when it is finally active.   It will be a long and hard process for many because there are several reasons why someone won’t want to go to GPT partition.   I haven’t decided if I will or not but I wanted to show you how to install Windows 11 preview if you are one of those who wanted to try Windows 11 but didn’t have the necessary system setup the right to be able to install it.

Still not Compatible

WhynotWin11 Capability Tool

If you are still having problems figuring out why you can’t install Windows.   There is a Great little tool that will tell you what you have or don’t have enabled or what hardware you are missing to be able to install Windows 11 and what you might need to do to get all the requirements for Windows 11.   In the end, this will at least help those who want to install Windows 11.   I’m still not sure if I will but at least you can now know what you need to do to be able to install Windows 11.

 

 

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.