11

After moving to Linux, I miss having Notepad++ with me and I want to bring it along to my new environment.

I have Wine installed and downloaded the npp.5.8.5.Installer.exe. I have no idea what directory or where this .exe exists or if I have to query Wine or what.

How do I install Notepad++ via Wine on Ubuntu Linux?

Robin
  • 119

7 Answers7

8
  1. Install Wine:

    sudo apt-get install wine
    
  2. Configure version (Windows 8 works for me) and drives (Autodetect, ../drive_c points to ~/.wine/drive_c/):

    winecfg
    
  3. Install:

    wine ~/Downloads/npp.7.3.3.Installer.exe
    

    Running directly after install may cause the plugins list not to load. It also appears that Plugin Manager 1.3.5 is the latest supported by Wine, as attempting to update the Plugin Manager broke the plugins list.

  4. Run:

    wine "C:\Program Files\Notepad++\notepad++.exe"
    

    Or via menu if you don't like debug output. Note that 32-bit programs on 64-bit Windows are in Program Files (x86) and that 64-bit Notepad++ doesn't come with the Plugin Manager.

  5. Uninstall:

    wine uninstall
    

    Run again to make sure it's gone.

4

Notepad++ (notepad-plus-plus) is a snap package in the default repositories of all currently supported versions of Ubuntu. To install Notepad++ open the terminal and type:

sudo snap install notepad-plus-plus  

To add Notepad++ navigation to other drives besides the default drive:

sudo snap connect notepad-plus-plus:removable-media

enter image description here

karel
  • 13,706
3

This worked perfectly for me and it later survived an upgrade from Ubuntu 16.4.3 to 18.4.1 no problem. (I since discovered Sublime-text which is pretty good because it highlights reserved words, strings, table names and aliases differently, and it supports a simple code-formatter extension.)
Fri Jun 15 12:35:45 SAST 2018

  1. Enable 32bit on a 64bit environment (more...)

    sudo dpkg --add-architecture i386
    sudo apt-get update
    sudo apt-get dist-upgrade
    
  2. Install the latest version of Wine (more...)

    sudo apt-get install --install-recommends winehq-stable
    wine --version
    

    :~$ wine-3.0.1

  3. Configure version (Windows 8 worked for me) and drives (Autodetect, ../drive_c points to ~/.wine/drive_c/)

    winecfg
    
  4. Add mono .NET interpreter. (more...)

    sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
    sudo apt install apt-transport-https
    echo "deb https://download.mono-project.com/repo/ubuntu stable-xenial main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
    sudo apt update
    
  5. Open win32 applications with wine from Program Files (x86)

    wine "C:\Program Files (x86)\Notepad++\notepad++.exe"
    
  6. FYI: You can explore the wine environment with a dos shell

    wine cmd
    
wwmbes
  • 241
3

Just run the installer with wine.

$ wine npp.5.8.5.Installer.exe

That should just work as long is it is an app that "plays nice".

You should also see an icon in your gnome or KDE menu.

But.... yes, Vim is better. ;-)

Keith
  • 8,293
2

Sadly in my experience Notepad++ does not work well in Ubuntu with Wine. The closest Linux text editor I could find that was somewhat similar to Notepad++ was SciTE.

ubiquibacon
  • 8,244
  • 3
  • 31
  • 37
1

Update you wine installation to latest version.

First enable 32-bit architecture -

sudo dpkg --add-architecture i386

Then add winehq repository key -

sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ <your version of Ubuntu> main'

Update -

sudo apt update

Install wine -

sudo apt install --install-recommends winehq-stable

you can check your wine version using -

wine --version

At the time of writing it is - wine-6.0

Go to - Notepad Plus Plus download site

At the time of writing the latest release is Notepad++ 8.1.9.1

Download 32-bit or 64-bit installer with .exe extension

At the time of writing latest 32-bit installer is - npp.8.1.9.1.Installer.exe and 64-bit installer is npp.8.1.9.1.Installer.x64.exe

Use wine to install it -

For 32-bit -

wine npp.8.1.9.1.Installer.exe

For 64-bit -

wine64 npp.8.1.9.1.Installer.x64.exe

The windows installer dialog menu appears. Follow the instructions to finish the installation.

Once installation is complete open Ubuntu Applications Menu or search for Applications and you will get - Notepad++

Payel Senapati
  • 161
  • 1
  • 2
  • 8
1

I downloaded the zip distribution of Notepad++ 6.4.2 and launched notepad++.exe with wine.

So far it works.

slhck
  • 235,242
Yakov
  • 21