The right way to Set up Notepad++ on Linux

Notepad ++ is a popular source code editor among Windows users. It supports nearly 78 different programming language syntaxes and includes a variety of features to improve text editing.

One limitation of Notepad ++, however, is that it is only limited to Windows. So if you've been a Notepad ++ user for a long time and recently switched the operating system to Linux, you are likely to feel the emptiness of Notepad ++ very much.

Fortunately, however, there are several ways you can get Notepad ++ installed and working on a Linux computer. In this guide, we will discuss these methods in detail.

Install Notepad ++ on Linux with Wine

One of the preferred methods of installing Notepad ++ and other Windows programs on Linux is by using Wine. This method works well with Debian and its derivatives. However, if you're using a different Linux distribution, then using Snap (shown below) is probably a better way to install Wine on your computer.

For the uninitiated, Wine (an acronym for Wine is not an emulator) is a compatibility layer that allows you to run Windows programs on Unix-like operating systems.

MAKEUSEO VIDEO OF THE DAY

Download and set up wine

First, open the Terminal app and add a WineHQ signature key using the following command:

wget -qo- https://dl.winehq.org/wine-builds/Release.key | sudo add apt-key –

If this command returns an error, you can split it into two parts. This is what it would look like:

wget -qo- https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key

Next, run the following command to add the Wine official repository to your system's repository list:

sudo apt-add-repository & # 39; deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main & # 39;

Update your system's package list by running:

sudo apt-get update

Finally, install Wine on your computer using the following command:

sudo apt-get install –install-recommends winehq-stable

When prompted, enter Yes/Yes sir and hit Enter keep going.

Once Wine is installed, you'll need to set the architecture and prefix to indicate whether you have a 32-bit or 64-bit system. For better compatibility, we set both the architecture and the prefix to 32-bit.

To do this, run the following two commands in a terminal window:

export WINEARCH = win32
export WINEPREFIX = ~ / .wine32

Install Notepad ++ with Wine

After you've installed and set up Wine, it's time to download and install Notepad ++ in Wine.

To do this, download the installation package from the official website.

Download: Notepad ++

After the download is complete, go to the Downloads Directory (or the directory where you downloaded the program) on your computer. Right click on the Notepad ++ setup file and select Open in another application> Wine Windows Program Loader to load it into Wine.

Wine now runs the Notepad ++ installer. The first thing you will be asked to do is choose your preferred language.

By doing Installer language Command prompt, select a language and press OK.

You will now be welcomed to the initial setup screen. Blow Next keep going.

Accept the license terms by clicking on I agree Button on the License agreement Page.

Now choose a destination folder to install Notepad ++ and click on Next.

On the component selection screen, choose between Minimalistic or Custom Packages and tap Next. Minimalist gives you only the basic components needed to run Notepad ++, while Custom lets you choose components that you (like plugins) want to install individually.

If you want a shortcut for Notepad ++ on your desktop for easy access, check the box next to Create a shortcut on the desktop on the next screen.

Then click on To install to install Notepad ++ with the selected settings.

Install Notepad ++ on Linux with Snap

Installing Notepad ++ or any other program through Snap is the easiest, and you can use this method for pretty much any Linux distribution that doesn't officially contain the package you want to install in their package manager.

Similar to the stand-alone Wine approach, installing Notepad ++ over Snap uses Wine: it's based on an embedded version of Wine, but saves you the hassle of installing Wine separately.

To install Notepad ++ with Snap, first make sure that Snap is installed on your Linux computer. To do this, open the Terminal and do the following:

snap

When it prints the snap description, it indicates that the snap is present. If it doesn't, you will need to install Snap on your system before proceeding.

After installing Snap, install Notepad ++ with the following command:

sudo snap install notepad-plus-plus

If at some point in the future you want to uninstall Notepad ++ from your computer, you can do so using:

sudo snap remove notepad-plus-plus

Start Notepad ++

If you installed Notepad ++ with Wine, you must have had the opportunity to create a shortcut for Notepad ++ on your desktop. If you have it selected, you can now double-click the shortcut to run Notepad ++. If not, you can find Notepad ++ in the application menu.

Alternatively, you can also run Notepad ++ from the terminal with:

wine start & # 39; installation path for Notepad ++ & # 39;

For example, if you installed Notepad ++ under Program Files (x86), do the following:

wine start & # 39; C: Program Files (x86) Notepad ++ ⁠notepad ++. exe & # 39;

Similarly, if you installed Notepad ++ through Snap, you can launch the program by finding it in the Applications menu or by using the Notepad-plus-plus Command in a terminal window.

If you choose the latter route and are unable to run Notepad ++, it may be because the PATH environment is not set up for it. In this case you can either set the PATH variable for Notepad ++ on your system or run the program by prefixing it with the installation path.

To do this, run first which notepad-plus-plus in a terminal window to find out the installation path for Notepad ++. Next, copy that path and paste it on a new line followed by Notepad-plus-plus.

For example if Notepad ++ is installed under / snap / container /, you can run it from any directory with:

/ snap / bin / notepad-plus-plus

Be up to date with Notepad ++

If you've been a long-time Notepad ++ user, but have had to use other text editors after switching to Linux, these instructions should help you to install Notepad ++ on your Linux computer and get it up and running.

Now that you're finally united with your favorite text editor, you can use Notepad ++ on Linux in almost the same way as you can on Windows. And since it runs on Wine, you should also be able to install the Notepad ++ Plugin Manager to further expand its capabilities.

How to install the Notepad ++ plugin manager to manage plugins

Notepad ++ is a powerful text editor. With the Notepad ++ Plugin Manager you can expand its functions further!

Continue reading

About the author

Yash Wate
(33 published articles)

Yash is Staff Writer at MUO for DIY, Linux, programming and security. Before he discovered his passion for writing, he developed for the web and iOS. You can also find his writing on TechPP where he covers other industries. In addition to technology, he likes to talk about astronomy, Formula 1 and clocks.

More
By Yash Wate

Subscribe to our newsletter

Subscribe to our newsletter for tech tips, reviews, free e-books, and exclusive deals!

Click here to subscribe

Leave a Reply

Your email address will not be published. Required fields are marked *