Installing Notepad++ on Ubuntu Server
Notepad++ is a Windows program. Run it on Ubuntu with Wine or a snap if you have a desktop, or edit the server's files from Notepad++ on your own PC.
2 min readBy Daniel
Reviewed by the AmazingRDP technical team

Need a Linux server to work on? A Linux VPS comes with root access. See Linux VPS from $6.99
Notepad++ is written for Windows, and it needs a graphical desktop. Ubuntu Server has neither Windows nor, normally, a desktop. So there are two honest answers to "how do I get Notepad++ on my Ubuntu server", and the first is usually the better one.
Option 1: keep Notepad++ on your PC and open the server's files
You do not need the editor on the server to edit files that are on the server. Notepad++ on your Windows PC can open them over SFTP, the file service every SSH server already provides.
- In Notepad++, open Plugins, Plugins Admin, tick NppFTP and click Install.
- Open Plugins, NppFTP, Show NppFTP Window.
- Click the gear icon, Profile settings, Add new.
- Enter the server's address, choose connection type SFTP, port 22, and your user name and password (or key file on the Authentication tab).
- Connect. The server's folders appear in the side window; double-click a file to edit it, and saving writes it back.
Nothing is installed on the server, and it works on a server without a desktop.
Option 2: run Notepad++ on Ubuntu with a desktop
If the machine has a desktop (Ubuntu Desktop, or a server with a desktop and VNC), Notepad++ runs through Wine, a layer that lets Windows programs run on Linux.
The short way, as a snap. A community-made snap packs Notepad++ together with Wine:
sudo snap install notepad-plus-plus
Start it from the application menu. The snap is not made by the Notepad++ author; check its page in the Snap Store before you install.
The manual way, with Wine.
sudo dpkg --add-architecture i386
sudo apt update
sudo apt install wine
Download the current 64-bit installer from the official site, notepad-plus-plus.org, then run it:
wine npp.Installer.x64.exe
Follow the setup window. Afterwards start the editor with:
wine ~/.wine/drive_c/Program\ Files/Notepad++/notepad++.exe
Run these as your normal user, not with sudo; Wine keeps its files in your home folder.
On a server without a desktop
Wine can be installed there, but the editor has no screen to open on and stops with an error about a missing display. Use Option 1, or one of the editors made for the terminal:
| Editor | Install | Good for |
|---|---|---|
| nano | already installed | Quick edits; keys are shown at the bottom |
| micro | sudo apt install micro | Feels like a desktop editor: Ctrl+S, Ctrl+C, mouse support |
| vim | sudo apt install vim | Fast once learned; available everywhere |
Programmers often use Visual Studio Code on their own computer with its Remote SSH extension, which edits server files in the same way as Option 1.
Which should you choose?
- You like Notepad++ and have a Windows PC: Option 1.
- You use Ubuntu as your desktop: the snap, or a native editor such as Kate or gedit.
- You are in an SSH session and need to change one line: nano.
For a server to practise on, see our Linux VPS plans. Related guides: copy and paste in Ubuntu Server, install a VNC server on CentOS and fix "sudo: command not found" in Linux.
Questions
Can Notepad++ run on Ubuntu?
Yes, on a machine with a desktop, through Wine or a community snap. It is a Windows program and has no Linux version.
Can I use Notepad++ on a server without a desktop?
Not on the server itself. Edit the server's files from Notepad++ on your PC with the NppFTP plugin over SFTP.
What is a good Notepad++ alternative for the Linux terminal?
micro is the closest in feel. nano is already installed on Ubuntu.
Is the Notepad++ snap official?
No. It is made by a community member and bundles Wine.