Since 2016 · 50,000+ customers · ★ 5.0 on Google Live chatWhatsAppTelegramOpen a ticket
Get started
Linux

How to Install Notepad++ on Linux (and the Best Native Alternatives)

How to install Notepad++ on Linux guide by 99RDP

Notepad++ is one of the most popular text editors on Windows, and many people want the same tool after moving to Linux or a Linux VPS. There's no native Linux version, but you can run the real Notepad++ through Wine, either with a ready-made snap package or manually, and there are native Linux editors that feel very similar. This guide covers both routes, plus how to "open Notepad" on Linux from the terminal.

Quick answerOn Ubuntu with snap support, run

sudo snap install notepad-plus-plus

That installs the Windows version of Notepad++ bundled with Wine. If you'd rather use a native app, install Geany or Kate (sudo apt install geany).

Before you start: you need a desktop

Notepad++ and the alternatives below are graphical apps. On a desktop Linux PC that's fine. On a Linux VPS, which usually has no screen, install a lightweight desktop and connect with remote desktop first, for example XFCE with xrdp:

sudo apt update
sudo apt install xfce4 xfce4-goodies xrdp
echo "startxfce4" > ~/.xsession
sudo systemctl enable --now xrdp
sudo ufw allow 3389/tcp

Then connect with Remote Desktop Connection (mstsc) or any RDP client. If you only need to edit files over SSH, a terminal editor such as nano or vim is simpler.

Diagram of how Notepad++ runs on Linux: the snap package bundles Wine to run the Windows app
How Notepad++ runs on Linux
Diagram of the ways to run Notepad++ on Linux: snap package or Wine, both on a desktop reached by xrdp on a VPS
Ways to run Notepad++ on Linux

Method 1: Install Notepad++ with snap

The notepad-plus-plus snap is community-maintained and packages the Windows program together with Wine, so you don't have to configure Wine yourself.

  1. Make sure snapd is available (it is by default on Ubuntu):
    sudo apt install snapd
  2. Install Notepad++:
    sudo snap install notepad-plus-plus
  3. Start it from the applications menu, or from a terminal:
    notepad-plus-plus

The first launch takes a little longer while the Wine environment is prepared. Your Linux home folder appears as a drive inside the file dialogs.

Method 2: Install Notepad++ with Wine

Use this if you don't want snap or need the latest Notepad++ release.

  1. Install Wine:
    sudo dpkg --add-architecture i386
    sudo apt update
    sudo apt install wine
  2. Download the 64-bit Notepad++ installer (npp.x.x.x.Installer.x64.exe) from the official site, notepad-plus-plus.org.
  3. Run the installer through Wine:
    wine ~/Downloads/npp.*.Installer.x64.exe
  4. Follow the normal Windows setup. Afterwards, start Notepad++ from the menu (Wine → Programs) or with:
    wine "$HOME/.wine/drive_c/Program Files/Notepad++/notepad++.exe"

Most Notepad++ features work under Wine, including plugins, but some plugins that depend on Windows components may not.

Native alternatives that feel like Notepad++

EditorWhy it's a good substituteInstall (Ubuntu/Debian)
GeanyLight and fast, tabs, syntax highlighting, plugins; the closest feel to Notepad++sudo apt install geany
KatePowerful KDE editor with split views, sessions, LSP support and a built-in terminalsudo apt install kate
GNOME Text Editor / MousepadSimple "Notepad"-style editors for quick notessudo apt install gnome-text-editor / mousepad
VSCodium / VS CodeFull code editor with extensions, Git and remote editingFrom the project's apt repository or Flathub
NotepadqqLooks like Notepad++, but no longer actively developedNot recommended for new installs

Geany and Kate are native, start instantly and integrate properly with the Linux desktop, so they're usually a better long-term choice than running Notepad++ through Wine.

How to open a "Notepad" in Linux

Linux has no app called Notepad, but every desktop has a simple text editor. From a terminal you can open a file in the default one with:

xdg-open notes.txt

Or name the editor directly: gnome-text-editor notes.txt, mousepad notes.txt, kate notes.txt or geany notes.txt. In a terminal-only session, use nano notes.txt.

Uninstall Notepad++

sudo snap remove notepad-plus-plus          # snap install
wine uninstaller                           # Wine install: pick Notepad++ in the list
Comparison of installing Notepad++ on Linux with snap or with Wine
Snap or Wine?

Frequently asked questions

Is there a Notepad++ for Linux?

Not natively. You can run the Windows version through Wine, most easily with sudo snap install notepad-plus-plus, or use a similar native editor such as Geany or Kate.

What is the Linux equivalent of Notepad?

GNOME Text Editor on Ubuntu, Mousepad on XFCE and KWrite or Kate on KDE. In the terminal, nano is the simplest.

Can I use Notepad++ on a Linux VPS?

Yes, after installing a desktop such as XFCE and connecting with RDP through xrdp. For quick edits over SSH, nano or vim is easier.

Which is better on Linux, Notepad++ via Wine or Geany?

Geany. It's native, faster and fits the Linux desktop. Use Notepad++ through Wine only if you need a specific plugin or workflow.

Nishant Kumar, Sr. Server Engineer at 99RDP
Written byNishant KumarSr. Server Engineer, 99RDP. Part of the team that runs our servers and answers support.
Keep reading

More Linux guides

All Linux guides

Need a server for this?

✓ Setup in minutes✓ Full admin access✓ 7-day refund on new services