Giter VIP home page Giter VIP logo

xwsl's Introduction

Script to internet-deploy Ubuntu 22.04 or 24.04, Xfce 4.18 and enable xRDP packages on WSL1 or WSL2
Other distributions are available - See KDE Neon (kWSL) and Kali Linux (Kali-xRDP) for details.

  • Enabled H.264 RDP codec.
  • Audio playback enabled (YouTube playback in browser works well with no audio/video desync)
  • Runs on Windows Server 2019 or Windows 10 Version 1809 (or newer, including Hyper-V Core)

xWSL Desktop

The xWSL instance is accessible anywhere on your network via the MS Remote Desktop Client (mstsc.exe) or over the Internet using Chrome Remote Desktop see wiki

You will see best performance connecting from the local machine or over gigabit ethernet.

INSTRUCTIONS: From an elevated prompt, change to your desired install directory and type/paste the following command:

PowerShell -executionpolicy bypass -command "Invoke-WebRequest https://github.com/DesktopECHO/xWSL/raw/master/xWSL.cmd -UseBasicParsing -OutFile xWSL.cmd ; .\xWSL.cmd"

You will be asked a few questions. The installer script finds the current DPI scaling in Windows, you can set your own value if preferred:

 [xWSL Installer 20210601]

 Enter a unique name for your xWSL distro or hit Enter to use default.
 Keep this name simple, no space or underscore characters [xWSL]: XFCE416
 Port number for xRDP traffic or hit Enter to use default [3399]: 13399
 Port number for SSHd traffic or hit Enter to use default [3322]: 13322
 Set a custom DPI scale, or hit Enter for Windows default [1.5]: 1.25
 [Not recommended!] Type X to eXclude from Windows Defender:

 Installing xWSL Distro [XFCE416] to "C:\WSL Distros\XFCE416"
 This will take a few minutes, please wait...

The installer will download and install the LxRunOffline distro manager and Windows Store Ubuntu image. Reference times will vary depending on system performance and the presence of antivirus software. A fast system with good Internet can finish in under 10 minutes.

 [11:14:57] Installing Ubuntu 20.04 LTS (~1m00s)
 [11:15:43] Git clone and update repositories (~1m15s)
 [11:16:37] Remove un-needed packages (~1m00s)
 [11:17:13] Configure apt-fast Downloader (~0m15s)
 [11:17:24] Remote Desktop Components (~4m45s)
 [11:21:43] XFCE 4.16 (~2m00s)
 [11:23:06] Install Mozilla Seamonkey and media playback (~1m30s)
 [11:23:53] Post-install clean-up (~0m45s)

At the end of the script you will be prompted to create a non-root user which will automatically be added to sudo'ers.

 Enter name of primary user for XFCE416: zero
 Enter password for zero: ********

 Open Windows Firewall Ports for xRDP, SSH, mDNS...
 Building RDP Connection file, Console link, Init system...
 Building Scheduled Task...
 SUCCESS: The scheduled task "XFCE416" has successfully been created.
 
       Start: Mon 06/01/2021 @ 11:14
         End: Mon 06/01/2021 @ 11:24
    Packages: 1100

   - xRDP Server listening on port 13399 and SSHd on port 13322.

   - Links for GUI and Console sessions have been placed on your desktop.

   - (Re)launch init from the Task Scheduler or by running the following command:
     schtasks /run /tn XFCE416
 
  XFCE416 Installation Complete!  GUI will start in a few seconds...

A fullscreen XFCE session will launch using your stored credentials.

Configure xWSL to start at boot (like a service, no console window)

  • Right-click the task in Task Scheduler, click properties
  • Click the checkbox for Run whether user is logged on or not and click OK
  • Enter your Windows credentials when prompted

Reboot your PC when complete and xWSL will startup automatically.

Start/Stop Operation

  • Reboot the instance (example with default distro name of 'xWSL'): schtasks /run /tn xWSL
  • Terminate the instance: wslconfig /t xWSL

xWSL leverages Multicast DNS to lookup WSL2 instances

If your computer has virtualization support you can convert it to WSL2. xWSL is faster on WSL1, but WSL2 has additional capabilities.

Example of conversion to WSL2 on machine name "COMPY":

  • Stop WSL on COMPY: wsl --shutdown
  • Convert the instance to WSL2: wsl --set-version xWSL 2
  • Restart xWSL Instance: schtasks /run /tn xWSL
  • Edit the .RDP file to point at the WSL2 instance by adding -xWSL.local to the hostname, so for COMPY it would be: COMPY-xWSL.local:3399

Make it your own:

From a security standpoint, it would be best to fork this project so you (and only you) control the packages and files in the repository.

  • Sign into GitHub and fork this project
  • Edit xWSL.cmd. On line 2 you will see SET GITORG=DesktopECHO - Change DesktopECHO to the name of your own repository.
  • Customize the script any way you like.
  • Launch the script using your repository name: PowerShell -executionpolicy bypass -command "wget https://github.com/YOUR-REPO-NAME/xWSL/raw/master/xWSL.cmd -UseBasicParsing -OutFile xWSL.cmd ; .\xWSL.cmd"

Quirks / Limitations / Additional Info:

  • RDP Sessions can be disconnected and will resume at your next login.
  • When you log out of a desktop session, the entire xWSL instance is restarted, the equivalent of an instant clean-boot at every login.
  • xWSL should work fine with an X Server instead of xRDP. The file /etc/profile.d/xWSL.sh contains WSL-centric environment variables that may need adjustment, such as LIBGL_ALWAYS_INDIRECT.
  • WSL1 Doesn't work with PolicyKit. Enabled gksu for apps needing elevated rights (Synaptic, root console)
  • Apt-fast added to improve download speed and reliability.
  • Mozilla Seamonkey and Falkon (Chromium-based) browsers included. Current versions of Chrome / Firefox do not work in WSL1.
  • Installed image consumes approximately 2.6 GB of disk space
  • XFCE uses the Plata theme, Papirus icon theme and Windows fonts (Segoe UI / Cascadia Code)
  • Uninstaller is located in the root of xWSL folder, 'Uninstall xWSL.cmd' - Make sure you 'Run As Administrator' to ensure removal of the scheduled task and firewall rules

Screenshots:

xWSL Install CompletexWSL Install Complete

xWSL Install FolderxWSL Install Folder

WSL1 and WSL2 Instances of xWSL running alongside Pi-hole for WindowsxWSL Instances

xwsl's People

Contributors

crramirez avatar desktopecho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

xwsl's Issues

High cpu usage from python script

This python script from xWSL runs almost daily and consumes a large amount of the CPU. Although I haven't used anything WSL-related in a long time and I don't have it on startup. I'm not sure why it's running but it's using up a lot of power (CPU fan runs stronger the entire time).

wigs6rv5302d1
ste54hka302d1

Converted to WSL2 - Can't connect with RDP

I converted to WSL2 and it's confirmed in with wsl -l -v. VERSION = 2. I also can connect to xWSL with a terminal in Windows Terminal Preview. Can you tell me how to update my rdp file to connect? My hostname is ASGARD and my wsl container is called xWSL. I tried following this closed issue, but didn't have any luck. Went to CMD and typed hostname and got ASGARD (I'm old school ;P ). Any ideas for me to try?

user cannot be added: file not found at end of install script

Looks really nice. After running install script, xfce starts up, but the selected username/password is not accepted.
At the end of script just after username/password prompt, there was (not very helpful) pair of warning messages "File not found".
Is there a default username/password to login as root?

This is on windows 10x64 that is up to date as of 18.10.2020 with WSL2 installed.
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19041 N/A Build 19041

WSL Ubuntu 18.0-4 was already installed.

Pulseaudio not working with VcXSrv

Okay so I don't know if you have any support for this but I will ask here.
So RDC has a lot of lag for me and VcXSrv is a lot smoother and easier to work on I converted it to WSL2 with minimal issues which I fixed but after I got VcXSrv to work it had no audio coming from PulseAudio while RDC still did I have tried the guide's online but they all need to run a executable wsl application (default is ubuntu.exe but its interchangable for all distros) and I can't find xWSL's exe so I could do the same and passthrough audio , anyone have the same issue? Using RDP is a pain and its very laggy
I have attached the script to the pulseaudio bat file.
startWSLVcXsrv.txt

(also i looked at the script and saw it was running 20.04 and changed it to ubuntu 2004 but it still did not work)

please upgrade to WSL2

not working with WSL2 and the package is old and conflicted

Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
  xrdp
1 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 0 B/428 kB of archives.
After this operation, 65.5 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libc6:amd64 (2.31-0ubuntu9) ...
sleep: cannot read realtime clock: Invalid argument
dpkg: error processing package libc6:amd64 (--configure):
 installed libc6:amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

abdelilah@HMIDANI:/mnt/c/WINDOWS/system32$ sudo aptitude upgrade
The following packages will be upgraded:
  xrdp
The following partially installed packages will be configured:
  libc-bin libc6
1 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/428 kB of archives. After unpacking 65.5 kB will be used.
Do you want to continue? [Y/n/?] y
Setting up libc6:amd64 (2.31-0ubuntu9) ...
sleep: cannot read realtime clock: Invalid argument
dpkg: error processing package libc6:amd64 (--configure):
 installed libc6:amd64 package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 libc6:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)
Setting up libc6:amd64 (2.31-0ubuntu9) ...
sleep: cannot read realtime clock: Invalid argument
dpkg: error processing package libc6:amd64 (--configure):
 installed libc6:amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent processing triggers for libc-bin:
 libc-bin depends on libc6 (>> 2.31); however:
  Package libc6:amd64 is not configured yet.
 libc-bin depends on libc6 (<< 2.32); however:
  Package libc6:amd64 is not configured yet.

dpkg: error processing package libc-bin (--configure):
 dependency problems - leaving triggers unprocessed
Errors were encountered while processing:
 libc6:amd64
 libc-bin


Script error in xWSL.CMD

ECHO Creating Scheduled Task for InitSystem and PulseAudio SCHtasks /create /RU %USERNAME% /RL HIGHEST /SC ONSTART /TN %DISTRO%-InitSystem /TR "%DISTROFULL%\xWSLres\LxRunOffline.exe run -w -n %DISTRO% -c 'initWSL 2'" SCHtasks /create /RU %USERNAME% /RL HIGHEST /SC ONSTART /TN %DISTRO%-PulseAudio /TR "%DISTROFULL%\xWSLres\xWSLpa.exe" CD .. ECHO @SCHtasks /run /TN %DISTRO%-InitSystem > %DISTRO%.CMD ECHO @SCHtasks /run /TN %DISTRO%-PulseAudio >> %DISTRO%.CMD START /MIN %DISTRO%.CMD START /WAIT /MIN "Bad Wait Loop" "PING" "-n" 7 "127.0.0.1" %DISTROFULL%\xWSLres\WFreeRDP.exe /bpp:24 /h:600 /w:1000 /v:LOCALHOST:%RDPPRT% /u:%xu% /p:%password%

The script error-ed: below is the out put

Creating Scheduled Task for InitSystem and PulseAudio
ERROR: The parameter is incorrect.
(16,8):UserId:ERROR: The parameter is incorrect.
(16,8):UserId:
C:\WSL\xwsl>
InstallLog.txt

convert to WSL2 option confusing

README.md states that installation "could be converted to a WSL2 VM if required". This is confusing for newbies who just get WSL2 by default and install e.g. Ubuntu 18.04 and who don't know about WSL1/2, even if they are experienced windows/linux users.

Is xWSL a WSL2 VM like the stock Ubuntu VM?

Does xWSL constitute a new Ubuntu installation to WSL2?

Why should the xWSL be converted to a VM? Isn't it already a VM? Or is xWSL a WSL1 installation?

If I want to covert to WSL2 (not clear if needed), in "wsl --set-version [DistroName] 2", what is the DistroName? Is this my existing Ubuntu 18 distro name? Is there a way to find it out?

As of now, I see this wsl list of distros:
wsl --list
Windows Subsystem for Linux Distributions:
xWSL (Default)
Ubuntu-20.04
Ubuntu-18.04

Sorry for newbie questions about xWSL.

Multiple monitors with different resolutions

Hi,

first I'd like to thank you for your hard work. It helped me a lot. One thing bothers me though. I have a monitor with a resolution of 3840x2160, scale 250% and another one 1920x1080, scale 100%. My host is a Windows 10 and I'm using the standard Remote Desktop client with "Use all my monitors for the remote session" on. The problem is when I log into ubuntu the scaling remains 1 on the 4K display resulting tiny fonts, icons etc. Do you have an idea for that?

Feature Request: automatic setup google-chrome

Feature Request: install google-chrome

there are some wierid things you have to do to get google-chrome to work with wsl.

I tried a few links / pages / sites / etc to get it setup and can't. Would be nice if your configuration script would do this for me automatically / automagically.

  • jack

consistently crashes

really cool project as setting this up is a real pia and i was able to see a graphical linux desktop. unfortunately it would only stay open for a few mins before crashing.

win11 16gb ram wsl2

sorry i don't have any more useful info, might be sophos security blocking services idk

"sed: can't read" and "Copy-Item ... does not exist" errors

My first install attempt.

OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.19045 N/A Build 19045

[xWSL Installer 20240425]

Enter '2' for Ubuntu 22.04 (Jammy) or '4' for Ubuntu 24.04 (Noble) [4]: 4

Enter a unique name for your distro or hit Enter for default.
Keep this name simple, no space or underscore characters [xWSL]:

Port number for xRDP traffic or hit Enter to use default [3399]:
Port number for SSHd traffic or hit Enter to use default [3322]:
Set a custom display scale or hit Enter for Windows default [1.25]:
Not recommended!  Hit X to eXclude distro from Windows Defender:

Installing xWSL Distro [xWSL] to "D:\vols\xWSL\xWSL"
This will take a few minutes, please wait...

[14:46:03] Installing Ubuntu             (~0m45s)
[14:46:51] Setup apt-fast and clone repo (~1m00s)
[14:47:01] Prerequisite components       (~1m45s)
[14:47:02] Xfce desktop environment      (~2m00s)
sed: can't read /tmp/xWSL/dist/usr/local/bin/restartwsl: No such file or directory
sed: can't read /tmp/xWSL/dist/usr/local/bin/restartwsl: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml: No such file or directory sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfwm4.xml: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.config/xfce4/panel/whiskermenu-1.rc: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/xrdp/xrdp.ini: No such file or directory
sed: can't read /tmp/xWSL/dist/etc/skel/.bashrc: No such file or directory
sed: can't read /etc/ssh/sshd_config: No such file or directory
sed: can't read /etc/ssh/sshd_config: No such file or directory
sed: can't read /tmp/xWSL/dist/usr/local/bin/initwsl: No such file or directory
fatal: The user `xrdp' does not exist.
chmod: cannot access '/tmp/xWSL/dist/etc/wsl.conf': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/profile.d/xWSL.sh': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/usr/local/bin/restartwsl': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/usr/local/bin/initwsl': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/init.d/xrdp': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/skel/.config': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/skel/.local': No such file or directory
chmod: cannot access '/tmp/xWSL/dist/etc/skel/.mozilla': No such file or directory
cp: cannot stat '/tmp/xWSL/dist/*': No such file or directory
cp: cannot stat '/tmp/xWSL/dist/etc/skel/.config': No such file or directory
cp: cannot stat '/tmp/xWSL/dist/etc/skel/.local': No such file or directory
chown: invalid user: โ€˜xrdp:rootโ€™
update-rc.d: error: unable to read /etc/init.d/xrdp

Enter name of primary user for xWSL: matt
Enter password for matt: ********
sed: can't read /tmp/xWSL/xWSL.rdp: No such file or directory
sed: can't read /tmp/xWSL/xWSL.rdp: No such file or directory
sed: can't read /tmp/xWSL/xWSL.rdp: No such file or directory
cp: cannot stat '/tmp/xWSL/xWSL.rdp': No such file or directory
bash: line 1: gconftool-2: command not found
bash: line 1: gconftool-2: command not found

Open Windows Firewall Ports for xRDP, SSH, mDNS...
Building RDP Connection file, Console link, Init system...
Copy-Item : Cannot find path 'D:\vols\xWSL\xWSL\xWSL (matt) Desktop.rdp' because it does not exist.
At line:1 char:1
+ Copy-Item 'D:\vols\xWSL\xWSL\xWSL (matt) Desktop.rdp' ([Environment]: ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\vols\xWSL\xW...tt) Desktop.rdp:String) [Copy-Item], ItemNotFoundExceptio
   n
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Building Scheduled Task...
Get-Content : Cannot find path 'D:\vols\xWSL\xWSL\rootfs\tmp\xWSL\xWSL.xml' because it does not exist.
At line:1 char:20
+ $WAI = (whoami) ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('A ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\vols\xWSL\xW...p\xWSL\xWSL.xml:String) [Get-Content], ItemNotFoundExcept
   ion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

You cannot call a method on a null-valued expression.
At line:1 char:19
+ ...  (whoami) ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('AAAA',  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : Cannot find path 'D:\vols\xWSL\xWSL\rootfs\tmp\xWSL\xWSL.xml' because it does not exist.
At line:1 char:20
+ $WAC = (pwd)    ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('Q ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (D:\vols\xWSL\xW...p\xWSL\xWSL.xml:String) [Get-Content], ItemNotFoundExcept
   ion
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

You cannot call a method on a null-valued expression.
At line:1 char:19
+ ...  (pwd)    ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('QQQQ',  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

ERROR: The system cannot find the path specified.

      Start: 2024-07-09 @ 14:27
        End: 2024-07-09 @ 14:47
   Packages: 1111

  - xRDP Server listening on port 3399 and SSHd on port 3322.

  - Links for GUI and Console sessions have been placed on your desktop.

  - (Re)launch init from the Task Scheduler or by running the following command:
    schtasks /run /tn xWSL

 xWSL Installation Complete!  GUI will start in a few seconds...

needless to say, the GUI does not start. ;-)

Script Broken - (WSL2 Installed on Win10 Edu - 2004. )

Hi @DesktopECHO !

I Saw your script on Reddit and decided to give it a try.

This is a freshly installed Win10 Edu 2004 with Hyper-V and WSL2 Setup.

I have set WSL to --set-default 2, if that helps?

While I am aware your script is using WSL1 , I wanted to try it out anyway.

When running the script, there was a ton of Network device not available, and the WSL instance refuses to launch. I set the default to wsl1 and ran it again after having a cleanup, and it does not work there either :(

Would you put out a WSL2 version?

error occured when opening rdp

Remote desktop connecttion says that "an error occured while loading from file C:\Users<username>\Ubuntu\rootfs\tmp\xWSL\xWSL.rdp

I dont know what to do

Screenshot (106)

What is needed to uninstall xWSL?

Installed xWSL on a test computer, played around with it and installed it on my main computer. What all do I need to do to essentially uninstall xWSL from the system?

Doesn't work, black screen, doesn't start

Latest Windows 10... WSL2, latest.
Followed the instructions, and when it came time to fire up RDP, black screen, nothing. SSH worked, albeit with error messages about permission denied reading /etc/profile

Tried rebooting, it didn't seem to start automatically as advertised. xwsl and ssh both fail to connect.

Tried to follow the gloriously informative instructions to "right click in task manager" (where??), but could not find anywhere interesting enough to click. There seemed no reference in there to xWSL.

The confidence you have that xWSL "just works" is commendable, but the lack of documentation about what on earth this thing is and how to debug it when it fails... not so much.

As far as I see, this project, even if working... would achieve very little that 5 minutes at the terminal, or a well crafted apt package could not, with the exception that I can't find any pre built xrdp audio plugin that works, and building it yourself isn't that easy. If you'd direct your attention to making that a downloadable apt, it would be better.

Converting to WSL2 - See Wiki Page

Hi,

i installed regarding your script.

Installation succeeded and xrdp was possible on wsl 1.

After that i converted to wsl 2.

I changed the .rdp connection, as you discribed in you documentation.

So similar from :3333 to -.local.

But -.local is an unknown hostname.

Every time the distro is started, it gets a new ip address.

From windows host i can ping the ip.

But even the rdp connection directly using this ip does not work.

ping requires sudo privileges, ssh does not?

$ ping
ping: socket: Operation not permitted
$ sudo !ping
sudo ping
PING () 56(84) bytes of data.
64 bytes from (): icmp_seq=1 ttl=63 time=30.1 ms
...
^C
--- ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 30.143/56.413/108.356/31.514 ms
$ ssh
The authenticity of host ' ()' can't be established.
ECDSA key fingerprint is SHA256:.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ',' (ECDSA) to the list of known hosts.
@'s password:
Last login: Wed May 27 16:25:49 2020 from
[@ ~]$

Completely Broken?

Ran the script as instructed, resulting in pages of errors and seeming failure:

Enter a unique name for your xWSL distro or hit Enter to use default.                                                   Keep this name simple, no space or underscore characters [UbuntuWSL]: xlinux                                            Port number for xRDP traffic or hit Enter to use default [3399]:                                                        Port number for SSHd traffic or hit Enter to use default [3322]:
Set a custom DPI scale, or hit Enter for Windows default [1.25]:                                                        [Not recommended!] Type X to eXclude from Windows Defender: X                                                           Start-BitsTransfer : The resource loader cache doesn't have loaded MUI entry. (Exception from HRESULT: 0x80073B01)      At line:1 char:1
+ Start-BitsTransfer -source https://github.com/DesktopECHO/wsl-images/ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Start-BitsTransfer], COMException
    + FullyQualifiedErrorId : System.Runtime.InteropServices.COMException,Microsoft.BackgroundIntelligentTransfer.Mana
   gement.NewBitsTransferCommand


Installing xWSL Distro [xlinux] to "C:\Users\chris\xlinux"
This will take a few minutes, please wait...

[ 0:07:31] Installing Ubuntu 22.04   (~0m30s)
[ 0:07:32] APT update and clone repo (~3m00s)
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (7) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (9) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (11) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (11) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (11) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (11) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (13) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (13) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (13) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (13) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
[ 0:07:34] Remote Desktop Components (~1m45s)
[ 0:07:34] Xfce4 Desktop Environment (~2m30s)
[ 0:07:35] Post-install clean-up     (~0m45s)
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (33) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (33) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (33) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (33) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (35) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (35) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (35) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (35) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (37) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (37) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (37) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (37) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (39) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (39) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (39) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (39) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (41) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (41) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (41) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (41) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (43) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (43) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (43) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (43) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (45) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (45) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (45) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (45) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (47) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (47) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (47) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (47) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (49) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (49) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (49) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (49) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (51) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (51) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (51) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (51) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (53) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (53) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (53) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (53) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (55) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (55) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (55) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (55) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (57) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (57) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (57) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (57) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (59) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (59) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (59) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (59) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (61) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (61) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (61) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (61) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (63) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (63) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (63) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (63) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (65) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (65) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (65) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (65) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (67) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (67) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (67) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (67) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (69) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (69) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (69) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (69) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (71) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (71) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (71) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (71) ERROR: CreateProcessEntryCommon:586: Create process not expected to return

Enter name of primary user for xlinux: chris
Enter password for chris: ****
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (7) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (7) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (9) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (9) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (11) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (11) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (11) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (11) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (13) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (13) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (13) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (13) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (15) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (15) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (15) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (15) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (17) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (17) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (17) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (17) ERROR: CreateProcessEntryCommon:586: Create process not expected to return
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (19) ERROR: CreateProcessEntryCommon:370: getpwuid(0) failed 2
<3>WSL (19) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (19) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (19) ERROR: CreateProcessEntryCommon:586: Create process not expected to return

Open Windows Firewall Ports for xRDP, SSH, mDNS...
Building RDP Connection file, Console link, Init system...
Copy-Item : Cannot find path 'C:\Users\chris\xlinux\xlinux (chris) Desktop.rdp' because it does not exist.
At line:1 char:1
+ Copy-Item 'C:\Users\chris\xlinux\xlinux (chris) Desktop.rdp' ([Enviro ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\chris\...is) Desktop.rdp:String) [Copy-Item], ItemNotFoundExce
   ption
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Building Scheduled Task...
Get-Content : Cannot find path 'C:\Users\chris\xlinux\rootfs\tmp\xWSL\xWSL.xml' because it does not exist.
At line:1 char:20
+ $WAI = (whoami) ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('A ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\chris\...p\xWSL\xWSL.xml:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

You cannot call a method on a null-valued expression.
At line:1 char:19
+ ...  (whoami) ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('AAAA',  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : Cannot find path 'C:\Users\chris\xlinux\rootfs\tmp\xWSL\xWSL.xml' because it does not exist.
At line:1 char:20
+ $WAC = (pwd)    ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('Q ...
+                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (C:\Users\chris\...p\xWSL\xWSL.xml:String) [Get-Content], ItemNotFoundEx
   ception
    + FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetContentCommand

You cannot call a method on a null-valued expression.
At line:1 char:19
+ ...  (pwd)    ; (Get-Content .\rootfs\tmp\xWSL\xWSL.xml).replace('QQQQ',  ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

ERROR: The system cannot find the path specified.

      Start: Sun 20/08/2023 @ 23:59
        End: Mon 21/08/2023 @  0:07
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount G:\, see dmesg for more details.

<3>WSL (23) ERROR: CreateProcessEntryCommon:370: getpwuid(1000) failed 2
<3>WSL (23) ERROR: CreateProcessEntryCommon:374: getpwuid(0) failed 2
<3>WSL (23) ERROR: CreateProcessEntryCommon:577: execvpe /bin/sh failed 2
<3>WSL (23) ERROR: CreateProcessEntryCommon:586: Create process not expected to return

  - xRDP Server listening on port 3399 and SSHd on port 3322.

  - Links for GUI and Console sessions have been placed on your desktop.

  - (Re)launch init from the Task Scheduler or by running the following command:
    schtasks /run /tn xlinux

 xlinux Installation Complete!  GUI will start in a few seconds...

Cannot RDP in a second time

I already have a WSL 2 dev environment set up. I forked your repo and edited xWSL.cmd as recommended. Setup took forever but it all worked and was glorious. I then converted my xWSL machine to WSL 2 and went looking for the .rdp file, finally finding it buried down a couple layers. I opened it for edit and added "-xWSL.local" before the port. Tried to connect and it couldn't find it. I started the machine in terminal and tried again. Same thing. I reverted to WSL 1 and tried again with the same results. So I've never gotten it to work a second time. Here's my error from mstsc:
image
Can you help, please?
Jerry Rubin

GPG keys not found

Tried today to make it work, also needed to add proxy capability. But gpg keys are not found when using apt-key for all 3 scripted keys.

uninstall instructions

Not that I want to uninstall... but how would you uninstall this after it has been installed?

  • jack

Fails after image setup

I was able to create image successfully after few times, but rdp and firewall creation fails, can you include command, just to add / update rdp, ssh ports and firewall. E.g. reinit-port.cmd

btw can I have two instances one KDENeon and another Ubuntu ? may be thats why it fails, because your Neon works perfectly, it was configured initially and uses default port, for Ubuntu I chose 3499 for rdp, and 3422 for ssh, only ssh works

Access denied

Hi,
I have tried a few times to install xWSL but I always get the message: "Access Denied".
I have tried always in powershell with administrative rights.
immagine
immagine

This is my wsl version:
PS C:\Users\fabio> wsl --version Versione WSL: 0.70.0.0 Versione kernel: 5.15.68.1 Versione WSLg: 1.0.45 Versione MSRDC: 1.2.3575 Versione Direct3D: 1.606.4 Versione DXCore: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp versione Windows: 10.0.22621.674

I'm on Windows 11 22H2 build 22621.674 all the available windows updates applied.

Thanks

Question: How can i run i3?

I can't figure out how to solve this problem, I'm trying to run i3 but I get the famous No Screens found(EE). I've tried everything I could/understand but without much success. When i run startx i get this:
X.Org X Server 1.20.9 X Protocol Version 11, Revision 0 Build Operating System: Linux 4.15.0-140-generic x86_64 Ubuntu Current Operating System: Linux DESKTOP-H68FIVC 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 Kernel command line: initrd=\initrd.img panic=-1 pty.legacy_count=0 nr_cpus=8 Build Date: 08 April 2021 12:29:22PM xorg-server 2:1.20.9-2ubuntu1.2~20.04.2 (For technical support please see http://www.ubuntu.com/support) Current version of pixman: 0.38.4 Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. (==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 28 05:28:25 2021 (==) Using system config directory "/usr/share/X11/xorg.conf.d" (EE) Fatal server error: (EE) no screens found(EE) (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. (EE) (EE) Server terminated with error (1). Closing log file. ^Cxinit: giving up xinit: unable to connect to X server: Connection refused xinit: unexpected signal 2 Couldn't get a file descriptor referring to the console

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.