I started learning Linux a few days ago, so please forgive my possible illiteracy.I'm trying to run dwm in wsl2 - I installed Xserver, launched VcXsrv and all the necessary packages inside wsl, namely xorg. I set the DISPLAY variable to my ip.I pulled dwm, edited the configuration file for myself, compiled it using sudo make clean install
.However, when I run startx
or startx /usr/local/bin/dwm
, an error occurs. I provide logs from the file /var/log/Xorg.1.log
:
[ 25546.075] _XSERVTransmkdir: Mode of /tmp/.X11-unix should be set to 1777[ 25546.075] _XSERVTransSocketCreateListener: failed to bind listener[ 25546.075] _XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed[ 25546.075] _XSERVTransMakeAllCOTSServerListeners: failed to create listener for unix[ 25546.075] X.Org X Server 1.21.1.4X Protocol Version 11, Revision 0[ 25546.075] Current Operating System: Linux DESKTOP-SJ4DD41 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64[ 25546.075] Kernel command line: initrd=\initrd.img WSL_ROOT_INIT=1 panic=-1 nr_cpus=4 hv_utils.timesync_implicit=1 console=hvc0 debug pty.legacy_count=0 WSL_ENABLE_CRASH_DUMP=1[ 25546.075] xorg-server 2:21.1.4-2ubuntu1.7~22.04.13 (For technical support please see http://www.ubuntu.com/support) [ 25546.075] Current version of pixman: 0.40.0[ 25546.075] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version.[ 25546.075] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown.[ 25546.075] (==) Log file: "/var/log/Xorg.1.log", Time: Thu Mar 13 21:21:04 2025[ 25546.075] (==) Using system config directory "/usr/share/X11/xorg.conf.d"[ 25546.075] (==) No Layout section. Using the first Screen section.[ 25546.075] (==) No screen section available. Using defaults.[ 25546.075] (**) |-->Screen "Default Screen Section" (0)[ 25546.075] (**) | |-->Monitor "<default monitor>"[ 25546.076] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration.[ 25546.076] (==) Automatically adding devices[ 25546.076] (==) Automatically enabling devices[ 25546.076] (==) Automatically adding GPU devices[ 25546.076] (==) Automatically binding GPU devices[ 25546.076] (==) Max clients allowed: 256, resource mask: 0x1fffff[ 25546.076] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.[ 25546.076] Entry deleted from font path.[ 25546.076] (WW) The directory "/usr/share/fonts/X11/100dpi/" does not exist.[ 25546.076] Entry deleted from font path.[ 25546.076] (WW) The directory "/usr/share/fonts/X11/75dpi/" does not exist.[ 25546.076] Entry deleted from font path.[ 25546.076] (WW) The directory "/usr/share/fonts/X11/100dpi" does not exist.[ 25546.076] Entry deleted from font path.[ 25546.076] (WW) The directory "/usr/share/fonts/X11/75dpi" does not exist.[ 25546.076] Entry deleted from font path.[ 25546.076] (==) FontPath set to: /usr/share/fonts/X11/misc, /usr/share/fonts/X11/Type1, built-ins[ 25546.076] (==) ModulePath set to "/usr/lib/xorg/modules"[ 25546.076] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices.[ 25546.076] (II) Loader magic: 0x55de54982020[ 25546.076] (II) Module ABI versions:[ 25546.076] X.Org ANSI C Emulation: 0.4[ 25546.076] X.Org Video Driver: 25.2[ 25546.076] X.Org XInput driver : 24.4[ 25546.076] X.Org Server Extension : 10.0[ 25546.076] (--) using VT number 3[ 25546.076] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration[ 25546.076] (II) xfree86: Adding drm device (/dev/dri/card0)[ 25546.076] (II) Platform probe for /sys/devices/platform/vgem/drm/card0[ 25546.078] (--) PCI:*(0@52340:0:0) 1414:008e:0000:0000 rev 0[ 25546.078] (II) LoadModule: "glx"[ 25546.078] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so[ 25546.078] (II) Module glx: vendor="X.Org Foundation"[ 25546.078] compiled for 1.21.1.4, module version = 1.0.0[ 25546.078] ABI class: X.Org Server Extension, version 10.0[ 25546.078] (==) Matched modesetting as autoconfigured driver 0[ 25546.078] (==) Matched fbdev as autoconfigured driver 1[ 25546.078] (==) Matched vesa as autoconfigured driver 2[ 25546.078] (==) Assigned the driver to the xf86ConfigLayout[ 25546.078] (II) LoadModule: "modesetting"[ 25546.078] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so[ 25546.078] (II) Module modesetting: vendor="X.Org Foundation"[ 25546.078] compiled for 1.21.1.4, module version = 1.21.1[ 25546.078] Module class: X.Org Video Driver[ 25546.078] ABI class: X.Org Video Driver, version 25.2[ 25546.078] (II) LoadModule: "fbdev"[ 25546.078] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so[ 25546.078] (II) Module fbdev: vendor="X.Org Foundation"[ 25546.078] compiled for 1.21.1.3, module version = 0.5.0[ 25546.078] Module class: X.Org Video Driver[ 25546.078] ABI class: X.Org Video Driver, version 25.2[ 25546.078] (II) LoadModule: "vesa"[ 25546.078] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so[ 25546.078] (II) Module vesa: vendor="X.Org Foundation"[ 25546.078] compiled for 1.21.1.3, module version = 2.5.0[ 25546.078] Module class: X.Org Video Driver[ 25546.078] ABI class: X.Org Video Driver, version 25.2[ 25546.079] (II) modesetting: Driver for Modesetting Kernel Drivers: kms[ 25546.079] (II) FBDEV: driver for framebuffer: fbdev[ 25546.079] (II) VESA: driver for VESA chipsets: vesa[ 25546.079] xf86EnableIO: failed to enable I/O ports 0000-03ff (Function not implemented)[ 25546.079] (WW) Falling back to old probe method for modesetting[ 25546.079] (WW) Falling back to old probe method for fbdev[ 25546.079] (II) Loading sub module "fbdevhw"[ 25546.079] (II) LoadModule: "fbdevhw"[ 25546.079] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so[ 25546.079] (II) Module fbdevhw: vendor="X.Org Foundation"[ 25546.079] compiled for 1.21.1.4, module version = 0.0.2[ 25546.079] ABI class: X.Org Video Driver, version 25.2[ 25546.079] (EE) open /dev/fb0: No such file or directory[ 25546.079] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support[ 25546.079] (EE) Screen 0 deleted because of no matching config section.[ 25546.079] (II) UnloadModule: "modesetting"[ 25546.079] (EE) Device(s) detected, but none match those in the config file.[ 25546.079] (==) Matched modesetting as autoconfigured driver 0[ 25546.079] (==) Matched fbdev as autoconfigured driver 1[ 25546.079] (==) Matched vesa as autoconfigured driver 2[ 25546.079] (==) Assigned the driver to the xf86ConfigLayout[ 25546.079] (II) LoadModule: "modesetting"[ 25546.079] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so[ 25546.079] (II) Module modesetting: vendor="X.Org Foundation"[ 25546.079] compiled for 1.21.1.4, module version = 1.21.1[ 25546.079] Module class: X.Org Video Driver[ 25546.079] ABI class: X.Org Video Driver, version 25.2[ 25546.079] (II) UnloadModule: "modesetting"[ 25546.079] (II) Unloading modesetting[ 25546.079] (II) Failed to load module "modesetting" (already loaded, 0)[ 25546.079] (II) LoadModule: "fbdev"[ 25546.079] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so[ 25546.079] (II) Module fbdev: vendor="X.Org Foundation"[ 25546.079] compiled for 1.21.1.3, module version = 0.5.0[ 25546.079] Module class: X.Org Video Driver[ 25546.079] ABI class: X.Org Video Driver, version 25.2[ 25546.079] (II) UnloadModule: "fbdev"[ 25546.079] (II) Unloading fbdev[ 25546.079] (II) Failed to load module "fbdev" (already loaded, 0)[ 25546.079] (II) LoadModule: "vesa"[ 25546.079] (II) Loading /usr/lib/xorg/modules/drivers/vesa_drv.so[ 25546.079] (II) Module vesa: vendor="X.Org Foundation"[ 25546.079] compiled for 1.21.1.3, module version = 2.5.0[ 25546.079] Module class: X.Org Video Driver[ 25546.079] ABI class: X.Org Video Driver, version 25.2[ 25546.079] (II) UnloadModule: "vesa"[ 25546.079] (II) Unloading vesa[ 25546.079] (II) Failed to load module "vesa" (already loaded, 0)[ 25546.079] (II) modesetting: Driver for Modesetting Kernel Drivers: kms[ 25546.079] (II) FBDEV: driver for framebuffer: fbdev[ 25546.079] (II) VESA: driver for VESA chipsets: vesa[ 25546.079] (WW) xf86OpenConsole: setpgid failed: Operation not permitted[ 25546.079] (WW) xf86OpenConsole: setsid failed: Operation not permitted[ 25546.079] xf86EnableIO: failed to enable I/O ports 0000-03ff (Function not implemented)[ 25546.079] (WW) Falling back to old probe method for modesetting[ 25546.079] (WW) Falling back to old probe method for fbdev[ 25546.079] (II) Loading sub module "fbdevhw"[ 25546.079] (II) LoadModule: "fbdevhw"[ 25546.079] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so[ 25546.079] (II) Module fbdevhw: vendor="X.Org Foundation"[ 25546.079] compiled for 1.21.1.4, module version = 0.0.2[ 25546.079] ABI class: X.Org Video Driver, version 25.2[ 25546.079] (EE) open /dev/fb0: No such file or directory[ 25546.079] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support[ 25546.079] (EE) Screen 0 deleted because of no matching config section.[ 25546.079] (II) UnloadModule: "modesetting"[ 25546.079] (EE) Device(s) detected, but none match those in the config file.[ 25546.079] (EE) Fatal server error:[ 25546.079] (EE) no screens found(EE) [ 25546.079] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 25546.079] (EE) Please also check the log file at "/var/log/Xorg.1.log" for additional information.[ 25546.079] (EE) [ 25546.079] (EE) Server terminated with error (1). Closing log file.
I tried googling the individual sections marked as (EE) and (WW). However, the solutions offered there did not help. Please tell me if the information provided is not enough, I will try to provide the missing information. I would be very grateful for help.(Translated using Google Translate)