Re4son / WSL-Kali-X

Tweaks to run Kali Linux desktop panels and gui apps on Windows 10
GNU General Public License v3.0
126 stars 36 forks source link

xrdb connection refused #10

Open danbulant opened 4 years ago

danbulant commented 4 years ago

Installed on new kali linux in WSL 2. Full console log:

SUCCESS: The process with PID 9568 (child process of PID 14580) has been terminated.
Welcome to the VcXsrv X Server
Vendor: The VcXsrv Project
Release: 1.20.5.1

OS: Windows NT 6.2 build 9200 (64-bit)
Contact: marha@users.sourceforge.net

LoadPreferences: C:\Users\Dan\AppData\Roaming\.XWinrc not found
LoadPreferences: Loading C:\Program Files\VcXsrv\system.XWinrc
Warning: Locale not supported by X, falling back to 'C' locale.
(II) AIGLX: Testing pixelFormatIndex 1
(II) GLX: enabled GLX_SGI_make_current_read
(II) GLX: enabled GLX_SGI_swap_control
(II) GLX: enabled GLX_MESA_swap_control
(II) GLX: enabled GLX_SGIX_pbuffer
(II) GLX: enabled GLX_ARB_multisample
(II) GLX: enabled GLX_SGIS_multisample
(II) GLX: enabled GLX_ARB_fbconfig_float
(II) GLX: enabled GLX_EXT_fbconfig_packed_float
(II) GLX: enabled GLX_ARB_create_context
(II) GLX: enabled GLX_ARB_create_context_profile
(II) GLX: enabled GLX_ARB_create_context_robustness
(II) GLX: enabled GLX_EXT_create_context_es2_profile
(II) GLX: enabled GLX_ARB_framebuffer_sRGB
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) 92 pixel formats reported by wglGetPixelFormatAttribivARB
(II) GLX: Initialized Win32 native WGL GL provider for screen 0
winClipboardThreadProc - DISPLAY=127.0.0.1:0.0
Using Composite redirection
OS maintains clipboard viewer chain: yes
[sudo] password for danbulant:
Stopping system message bus: dbus.
Starting system message bus: dbus.
dbus[207]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/home/danbulant/runtime" not available: No such file or directory
esd: no process found
xrdb: Connection refused
xrdb: Can't open display ':0'
session_init(): Can't open display.
/usr/bin/startxfce4: X server already running on display :0
xrdb: Connection refused
xrdb: Can't open display ':0'
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
Stopping system message bus: dbus.
danbulant@DAN-PC:~$ sudo /etc/init.d/xrdp start
Starting Remote Desktop Protocol server: xrdp-sesman xrdp[20191124-17:41:19] [DEBUG] Testing if xrdp can listen on 0.0.0.0 port 3390.
[20191124-17:41:19] [DEBUG] Closed socket 6 (AF_INET6 :: port 3390)
.
danbulant@DAN-PC:~$ ~/start-xfce
SUCCESS: The process with PID 11364 (child process of PID 4380) has been terminated.
Welcome to the VcXsrv X Server
Vendor: The VcXsrv Project
Release: 1.20.5.1

OS: Windows NT 6.2 build 9200 (64-bit)
Contact: marha@users.sourceforge.net

LoadPreferences: C:\Users\Dan\AppData\Roaming\.XWinrc not found
LoadPreferences: Loading C:\Program Files\VcXsrv\system.XWinrc
Warning: Locale not supported by X, falling back to 'C' locale.
(II) AIGLX: Testing pixelFormatIndex 1
(II) GLX: enabled GLX_SGI_make_current_read
(II) GLX: enabled GLX_SGI_swap_control
(II) GLX: enabled GLX_MESA_swap_control
(II) GLX: enabled GLX_SGIX_pbuffer
(II) GLX: enabled GLX_ARB_multisample
(II) GLX: enabled GLX_SGIS_multisample
(II) GLX: enabled GLX_ARB_fbconfig_float
(II) GLX: enabled GLX_EXT_fbconfig_packed_float
(II) GLX: enabled GLX_ARB_create_context
(II) GLX: enabled GLX_ARB_create_context_profile
(II) GLX: enabled GLX_ARB_create_context_robustness
(II) GLX: enabled GLX_EXT_create_context_es2_profile
(II) GLX: enabled GLX_ARB_framebuffer_sRGB
(II) AIGLX: enabled GLX_MESA_copy_sub_buffer
(II) 92 pixel formats reported by wglGetPixelFormatAttribivARB
(II) GLX: Initialized Win32 native WGL GL provider for screen 0
winClipboardThreadProc - DISPLAY=127.0.0.1:0.0
Using Composite redirection
OS maintains clipboard viewer chain: yes
Stopping system message bus: dbus.
Starting system message bus: dbus.
dbus[285]: Unable to set up transient service directory: XDG_RUNTIME_DIR "/home/danbulant/runtime" not available: No such file or directory
esd: no process found
xrdb: Connection refused
xrdb: Can't open display ':0'
session_init(): Can't open display.
/usr/bin/startxfce4: X server already running on display :0
xrdb: Connection refused
xrdb: Can't open display ':0'
Unable to init server: Could not connect: Connection refused
xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.
Stopping system message bus: dbus.

Followed the README.md

danbulant commented 4 years ago

I'd like to add that connecting to remote display works fine