Windows 10: Running Notepadqq under WSL

Discus and support Running Notepadqq under WSL in Windows 10 Gaming to solve the problem; I am trying to run Notepadqq under WSL.I want to edit some webserver data owned by www-data. I can start the editor but when I want to save the file it... Discussion in 'Windows 10 Gaming' started by WimRoffel, Mar 16, 2025.

  1. WimRoffel Win User

    Running Notepadqq under WSL


    I am trying to run Notepadqq under WSL.I want to edit some webserver data owned by www-data. I can start the editor but when I want to save the file it says I have no rights. It offers the option to save as root, but after I enter my password it still fails.I tried to start Notepadqq preceded by "sudo" but then I get the "XDG_RUNTIME_DIR not set" error.How can I get this working?

    :)
     
    WimRoffel, Mar 16, 2025
    #1

  2. WSL is blocked by SAC ?

    Hello,

    I'm reaching out to the community for assistance with a persistent WSL issue. Upon attempting to launch WSL, I'm encountering the following error:

    WslLaunchInteractive failed with error: 0x800711e6 - System Integrity policy has been violated. Explicit denied file.

    Steps Taken:

    1. I have reset the Ubuntu Linux distribution.
    2. I have uninstalled and reinstalled WSL.
    Despite these efforts, the issue persists. I am running Windows 11 build no: 22631.2715 with WSL 2.0.9.0, and the error occurs every time I try to start WSL.

    Has anyone faced a similar issue? Specifically, I'm seeking guidance on navigating the System Integrity policy that's seemingly causing the block. Any insights into how Smart App Control impacts WSL's functionality and possible configurations to mitigate this would be greatly appreciated.

    Thank you in advance for your time and help.
     
    shreesh gupta, Mar 16, 2025
    #2
  3. Error code: Wsl/ERROR_NOT_FOUND

    If you (like me) have this problem and find this thread, a short summary (not a Tutorial) so far ( as of 24.11.2023 ).

    Please read the whole comment before trying any of it!

    • Github Link to the problem is: Wsl/ERROR_NOT_FOUND after installing Windows updates · Issue #10782 · microsoft/WSL
    • Workaround:
      • Start WSL from an Elevated Terminal
      • So in "normal" language: Start your CMD/terminal with Admin Privileges then run the "WSL" command in this Terminal
    • Manual Fix:
      • Type "regedit" in the Windows search and start Windows Registry Editor
      • Search and delete:
      • HKEY_LOCAL_MACHINE\SOFTWARE\Classes\PackagedCom\ClassIndex\{A9B7A1B9-0671-405C-95F1-E0612CB4CE7E}
    • Official Fix:
     
    Julian Oberhofer, Mar 16, 2025
    #3
  4. Brink Win User

    Running Notepadqq under WSL

    Systemd support is now available in WSL

    Many popular distributions run systemd by default, such as Ubuntu, Debian and more. This change means that WSL will be even more similar to using your favorite Linux distros on a bare metal machine, and will let you use software that depends on systemd support. A few examples of Linux applications that depend on systemd are:
    • snap
      • A handy binary that allows you to install and manage software inside Ubuntu.
      • Try running: snap install spotify or snap install postman
    • microk8s
    • systemctl
      • A tool that’s part of systemd, interact with services on your Linux machine
      • Try systemctl list-units --type=service to see which services are available and their status
    How is this change possible in WSL? Supporting systemd required changes to the WSL architecture. As systemd requires PID 1, the WSL init process started within the Linux distribution becomes a child process of the systemd. Because the WSL init process is responsible for providing the infrastructure for communication between the Linux and Windows components, changing this hierarchy required rethinking some of the assumptions made with the WSL init process. Additional modifications had to be made to ensure a clean shutdown (as that shutdown is controlled by systemd now) and to have compatibility with WSLg, It is also important to note that with these change, systemd services will NOT keep your WSL instance alive. Your WSL instance will stay alive in the same way it did before, which you can read more about here. Given that this changes how WSL behaves when booting up, we wanted to be careful about applying this to user’s already existing WSL distros. So currently you need to opt-in to enable systemd for a specific WSL distro, and we will monitor feedback and investigate making this behavior by default in the future. How can you get systemd on your machine? To get started, you will need to do these two things: – Ensure you are running the right version of WSL: Version 0.67.6 and above – Set the systemd flag set in your WSL distro settings Ensuring you are on the right WSL version This change is only available in the Microsoft Store version of WSL version 0.67.6 and higher. You can check your version number by running wsl --version. If that command fails then you are running the in-Windows version of WSL and need to upgrade to the Store version. This version of WSL is now available in the Microsoft Store to users on Windows Insiders build for initial testing, and then after a few weeks we will make it available to all users to ensure quality. You can run wsl --update to check for any WSL updates. If you are not on Windows Insiders and want to use it immediately, you can download the latest release from the WSL release page. Set the systemd flag set in your WSL distro settings You will need to edit the wsl.conf file to ensure systemd starts up on boot. Add these lines to the /etc/wsl.conf (note you will need to run your editor with sudo privileges, e.g: sudo nano /etc/wsl.conf): Code:
    And close out of the nano editor using CTRL+O to save and CTRL+X to exit. Final steps With the above steps done, close your WSL distro Windows and run wsl.exe --shutdown from PowerShell to restart your WSL instances. Upon launch you should have systemd running. You can check this with the command systemctl list-unit-files --type=service which should show your services’ status. Acknowledgements and Feedback! Thank you to the Canonical team for working with us to deliver this feature! Check out Canonical’s blog post here. For any technical issues please file them on the Microsoft/WSL Github repo. You can follow up with WSL team members, or with me on Twitter. Lastly, learn more about WSL, including how to set up common development tools like Git, VS Code, Docker containers, databases, GPU acceleration for machine learning, and more, by visiting the WSL documentation. Source: https://devblogs.microsoft.com/comma...ilable-in-wsl/ Microsoft Store: https://www.elevenforum.com/t/instal...indows-11.377/
     
    Brink, Mar 16, 2025
    #4
Thema:

Running Notepadqq under WSL

Loading...
  1. Running Notepadqq under WSL - Similar Threads - Running Notepadqq under

  2. Running Notepadqq under WSL

    in Windows 10 Software and Apps
    Running Notepadqq under WSL: I am trying to run Notepadqq under WSL.I want to edit some webserver data owned by www-data. I can start the editor but when I want to save the file it says I have no rights. It offers the option to save as root, but after I enter my password it still fails.I tried to start...
  3. Is Service on wsl running on background ?

    in Windows 10 Gaming
    Is Service on wsl running on background ?: Hello I am new on wsl / wsl2 here, currently I am using win 11, if I'm using wsl2 on my windows, let say using ubuntu distro, and I'm running service on my wsl ubuntu like postgre, mongo, mysql, docker, rabbit-mq, will these services run in the background? even if I don't...
  4. Is Service on wsl running on background ?

    in Windows 10 Software and Apps
    Is Service on wsl running on background ?: Hello I am new on wsl / wsl2 here, currently I am using win 11, if I'm using wsl2 on my windows, let say using ubuntu distro, and I'm running service on my wsl ubuntu like postgre, mongo, mysql, docker, rabbit-mq, will these services run in the background? even if I don't...
  5. Static IP for Linux Under WSL?

    in Windows 10 Network and Sharing
    Static IP for Linux Under WSL?: Is it possible to set a static ip for linux distrosManjaro in this case running under WSL? https://answers.microsoft.com/en-us/windows/forum/all/static-ip-for-linux-under-wsl/230b18c8-0725-49ff-9d61-3d36353275d0
  6. Static IP for Linux Under WSL?

    in Windows 10 Network and Sharing
    Static IP for Linux Under WSL?: Is it possible to set a static ip for linux distros(Manjaro in this case) running under WSL? 181339
  7. Run Brasero on WSL?

    in Windows 10 Ask Insider
    Run Brasero on WSL?: So, I am a Linux user right now(actually, I have a Windows PC, but it's old and never gets used), I am thinking about going back to Windows because of the better gaming experience at this time. One program I use, Brasero, is not available on Windows natively. Is it possible...
  8. iperf cannot run in WSL Ubuntu

    in Windows 10 Network and Sharing
    iperf cannot run in WSL Ubuntu: I have installed WSL 2 and Ubuntu. I want to run iperf from this Ubuntu to connect to a linux server on my LAN. I get connection refused error from iperf- $ iperf -c 192.168.2.45 connect failed: Connection refused ssh [email protected] works fine. I suspect port 5001 is...
  9. How to run RHEL 8 under Windows subsystem for linux (WSL)

    in Windows 10 Ask Insider
    How to run RHEL 8 under Windows subsystem for linux (WSL): Problem I do not see RHEL 8 in the Windows 10 Pro store, as a WSL option to buy or use. I see Kali Linux, Ubuntu, Alpine Linux, SUSE 12 Enterprise, Debian, and every other Linux distribution, except for RHEL 8, what may be the most widely used distro in the enterprise,...
  10. Cannot run Ubuntu with WSL

    in Windows 10 Installation and Upgrade
    Cannot run Ubuntu with WSL: I have Windows 10 Education build 18272.rs_prerelease.181026-1425. I have turned on Windows Subsystem for Linux, but I cannot run Ubuntu. I have tried installing the apps "Ubuntu" and later "Ubuntu 18.04 LTS" from the Windows store and running them. Upon installing either app...