Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

1 votes
1 answers
1880 views
Render Linux VM applications on Windows Host Xserver
I have a Ubuntu VM on VirtualBox running in headless mode. Host is a Windows 10 machine. I want to be able to render Ubuntu's applications on Windows using XServer. Currently, I tried this: - Installed X410 XServer on Windows. - ssh into Virtual Machine with a `-X` option so that X forwarding is ena...
I have a Ubuntu VM on VirtualBox running in headless mode. Host is a Windows 10 machine. I want to be able to render Ubuntu's applications on Windows using XServer. Currently, I tried this: - Installed X410 XServer on Windows. - ssh into Virtual Machine with a -X option so that X forwarding is enabled. - If I run a graphical application from command line now, it complains that cannot connect XServer. My DISPLAY env variable is localhost:10.0. Below is error I get on launching the graphical application: connect /tmp/.X11-unix/X0: No such file or directory Unable to init server: Could not connect: Connection refused Failed to parse arguments: Cannot open display:
Bhopesh Bassi (11 rep)
Feb 14, 2019, 08:25 AM • Last activity: Jul 1, 2025, 02:02 PM
2 votes
1 answers
3392 views
How do I correctly transfer xrandr settings to xorg.conf?
I have run multiple `xrandr` commands to set all my monitors settings as I want them. Then I used `autorandr` to save the state to a config file printed here: ``` hanke@debian ~ » cat .config/autorandr/3-displays/config output DP-1 off output DP-2 off output DP-3 off output DP-4 off output DP-5...
I have run multiple xrandr commands to set all my monitors settings as I want them. Then I used autorandr to save the state to a config file printed here:
hanke@debian ~ » cat .config/autorandr/3-displays/config 
output DP-1
off
output DP-2
off
output DP-3
off
output DP-4
off
output DP-5
off
output DVI-D-0
crtc 1
mode 1600x900
pos 3840x0
rate 59.98
rotate left
output DP-0
crtc 0
mode 1920x1080
pos 1920x191
primary
rate 144.00
output HDMI-0
crtc 2
mode 1920x1080
pos 0x260
rate 60.00
I have been using autorandr --change 3-displays in my window managers startup script to configure the displays, but I run into problems with this approach if I enable lightdm to get the greeter/login screen, which is run before my window manager, and in extension before my monitors are configured correctly. Because of this, the login screen is displayed on the wrong monitors in the wrong resolutions and orientations. Because of this I now wish to transfer these settings to the /etc/X11/xorg.conf config file. Here is my attempt so far:
Section "Monitor"
        Identifier      "DP-0"
        Option          "Position"      "1920 191"
        Option          "Primary"       "true"
        Option          "PreferredMode" "1920x1080_144.00"
        Option          "Enable"        "true"
EndSection

Section "Monitor"
        Identifier      "HDMI-0"
        Option          "Position"      "0 260"
        Option          "PreferredMode" "1920x1080_60.00"
        Option          "Enable"        "true"
EndSection

Section "Monitor"
        Identifier      "DVI D-0"
        Option          "Rotate"        "left"
        Option          "Position"      "3840 900"
        Option          "PreferredMode" "1600x900_59.98"
        Option          "Enable"        "true"
EndSection

Section "Monitor"
        Identifier      "DP-1"
        Option          "Enable"        "false"
EndSection

Section "Monitor"
        Identifier      "DP-2"
        Option          "Enable"        "false"
EndSection

Section "Monitor"
        Identifier      "DP-3"
        Option          "Enable"        "false"
EndSection

Section "Monitor"
        Identifier      "DP-4"
        Option          "Enable"        "false"
EndSection

Section "Monitor"
        Identifier      "DP-5"
        Option          "Enable"        "false"
EndSection
Sadly, this does not seem to work. My gaming display is not getting set to 144 Hz refresh rate, the orientation on my DVI screen is all wrong and the positions seem to be ignored as well. I have previously had startx fail because of bad xorg.conf values, but using this config it starts without crashing. Am I missing something here? I just want my screens to be correctly configured in a nice and declarative way. Running a bunch of xrandr commands in scripts feels hacky. The xorg.conf file seems like the correct way to do it, but I am failing to get it to work correctly. Any help is appreciated.
Hannes Knutsson (33 rep)
Feb 6, 2022, 05:34 PM • Last activity: Jun 21, 2025, 10:02 AM
3 votes
1 answers
2299 views
BLFS Xorg: Fatal server error no screens found
I'm trying to build the Xorg X Window System Environment as outlined in Beyond Linux From Scratch Version 8.0. My BLFS system resides in a Virtual Machine using VirtualBox Version 5.0.10 r104061. I followed the steps as outlined in Chapter 24. X Window System Environment. However, when I finished my...
I'm trying to build the Xorg X Window System Environment as outlined in Beyond Linux From Scratch Version 8.0. My BLFS system resides in a Virtual Machine using VirtualBox Version 5.0.10 r104061. I followed the steps as outlined in Chapter 24. X Window System Environment. However, when I finished my installation and tried startx, I got the output below:- Release Date: 2017-01-11 X Protocol Version 11, Revision 0 Build Operating System: Linux 4.9.5 x86_64 Current Operating System: Linux LFS 4.9.5 #1 SMP Thu Feb 23 22:59:41 GMT 2017 x86_64 Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.5-lfs-SVN-20170122 root=/dev/sda1 ro Build Date: 01 March 2017 10:04:52PM Current version of pixman: 0.34.0 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 Mar 22 21:42:24 2017 (==) 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. xinit: giving up xinit: unable to connect to X server: Connection refused xinit: server error And I see the following log in /var/log/Xorg.0.log 57.972] X.Org X Server 1.19.1 Release Date: 2017-01-11 [ 57.974] X Protocol Version 11, Revision 0 [ 57.974] Build Operating System: Linux 4.9.5 x86_64 [ 57.975] Current Operating System: Linux LFS 4.9.5 #1 SMP Thu Feb 23 22:59:41 GMT 2017 x86_64 [ 57.975] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.5-lfs-SVN-20170122 root=/dev/sda1 ro [ 57.975] Build Date: 01 March 2017 10:04:52PM [ 57.975] [ 57.975] Current version of pixman: 0.34.0 [ 57.975] Before reporting problems, check http://wiki.x.org to make sure that you have the latest version. [ 57.975] Markers: (--) probed, (**) from config file, (==) default setting, (++) from command line, (!!) notice, (II) informational, (WW) warning, (EE) error, (NI) not implemented, (??) unknown. [ 57.978] (==) Log file: "/var/log/Xorg.0.log", Time: Wed Mar 22 21:42:24 2017 [ 57.990] (==) Using system config directory "/usr/share/X11/xorg.conf.d" [ 57.992] (==) No Layout section. Using the first Screen section. [ 57.992] (==) No screen section available. Using defaults. [ 57.992] (**) |-->Screen "Default Screen Section" (0) [ 57.992] (**) | |-->Monitor "" [ 57.992] (==) No device specified for screen "Default Screen Section". Using the first device section listed. [ 57.992] (**) | |-->Device "radeon" [ 57.992] (==) No monitor specified for screen "Default Screen Section". Using a default monitor configuration. [ 57.992] (==) Automatically adding devices [ 57.992] (==) Automatically enabling devices [ 57.992] (==) Automatically adding GPU devices [ 57.994] (==) Max clients allowed: 256, resource mask: 0x1fffff [ 57.999] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/misc/". [ 57.999] Entry deleted from font path. [ 57.999] (Run 'mkfontdir' on "/usr/share/fonts/X11/misc/"). [ 58.002] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/100dpi/". [ 58.002] Entry deleted from font path. [ 58.002] (Run 'mkfontdir' on "/usr/share/fonts/X11/100dpi/"). [ 58.003] (WW) `fonts.dir' not found (or not valid) in "/usr/share/fonts/X11/75dpi/". [ 58.003] Entry deleted from font path. [ 58.003] (Run 'mkfontdir' on "/usr/share/fonts/X11/75dpi/"). [ 58.003] (==) FontPath set to: /usr/share/fonts/X11/TTF/, /usr/share/fonts/X11/OTF/, /usr/share/fonts/X11/Type1/ [ 58.003] (==) ModulePath set to "/usr/lib/xorg/modules" [ 58.003] (II) The server relies on udev to provide the list of input devices. If no devices become available, reconfigure udev or disable AutoAddDevices. [ 58.003] (II) Loader magic: 0x810c40 [ 58.003] (II) Module ABI versions: [ 58.003] X.Org ANSI C Emulation: 0.4 [ 58.003] X.Org Video Driver: 23.0 [ 58.003] X.Org XInput driver : 24.1 [ 58.003] X.Org Server Extension : 10.0 [ 58.007] (--) PCI:*(0:0:2:0) 80ee:beef:0000:0000 rev 0, Mem @ 0xe0000000/16777216, BIOS @ 0x????????/131072 [ 58.007] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory) [ 58.007] (II) LoadModule: "glx" [ 58.008] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so [ 58.040] (II) Module glx: vendor="X.Org Foundation" [ 58.040] compiled for 1.19.1, module version = 1.0.0 [ 58.040] ABI class: X.Org Server Extension, version 10.0 [ 58.040] (II) LoadModule: "ati" [ 58.041] (II) Loading /usr/lib/xorg/modules/drivers/ati_drv.so [ 58.042] (II) Module ati: vendor="X.Org Foundation" [ 58.042] compiled for 1.19.1, module version = 7.8.0 [ 58.042] Module class: X.Org Video Driver [ 58.042] ABI class: X.Org Video Driver, version 23.0 [ 58.042] (EE) No drivers available. [ 58.042] (EE) Fatal server error: [ 58.044] (EE) no screens found(EE) [ 58.045] (EE) Please consult the The X.Org Foundation support at http://wiki.x.org for help. [ 58.046] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information. [ 58.046] (EE) [ 58.046] (EE) Server terminated with error (1). Closing log file. I've tried rebuilding the kernel with Device Drivers ---> Graphics support ---> Direct Rendering Manager (XFree86 ... support) ---> [CONFIG_DRM] DRM driver for VMware Virtual GPU [CONFIG_DRM_VMWGFX] [*] Enable framebuffer console under vmwgfx by default [CONFIG_DRM_VMWGFX_FBCON] and Device Drivers ---> Graphics support ---> Direct Rendering Manager (XFree86 ... support) ---> [CONFIG_DRM] and in both cases got the same error message. This is the output of lspci for the graphics adapter 00:02.0 VGA compatible controller: InnoTek Systemberatung GmbH VirtualBox Graphics Adapter Any idea why the screens are failing to load?
Youssif Saeed (141 rep)
Mar 22, 2017, 10:00 PM • Last activity: Jun 11, 2025, 02:06 PM
0 votes
1 answers
4943 views
radeon failed vce resume after upgrade to newest Linux kernel
I have upgraded my Debian to latest version on the kernel version 3.16.0-4-amd64. Update went fine. After that I decided to upgrade linux kernel version to the latest one supported by Debian 10 - 4.19.0-5-amd64. After reboot my X-server didn't get up and in logs when system starting I see an error l...
I have upgraded my Debian to latest version on the kernel version 3.16.0-4-amd64. Update went fine. After that I decided to upgrade linux kernel version to the latest one supported by Debian 10 - 4.19.0-5-amd64. After reboot my X-server didn't get up and in logs when system starting I see an error like that radeon 0000:01:00.0 failed VCE resume (-110) Laptom model: Samsung 300E5V/300E4EV/270E5EV/270E4EV/2470EV/2470EE After sysmtem start I get in command line interface. When try to execute startx I see then same error about radeon and message from x-server: enter image description here
$lspci | grep VGA

radeon failed VCE resume (-110)
VGA compatible controller: Intel Corporation 3rd Gen Core processor Graphics Controller(rev 09)
Here is ls -pci [log](https://pastebin.com/3SUh0zXM) and [log](https://pastebin.com/jS66q0GC) from Xorg.0.log file. Could you help me please fix an issue and get my desktop up again?
slesh (121 rep)
Aug 4, 2019, 05:34 PM • Last activity: May 30, 2025, 06:10 AM
2 votes
1 answers
2144 views
Configure Chromium Browser in linux and open in windows using xserver via ssh
I am trying to install chromium browser in linux and start apache on linux. After that I have to open an ubuntu web page in Chromium on my windows machine via ssh using Putty or Mobarterm. Chromium is installed on linux but when I run command: chromium:browser on linux via Putty it throws error: > E...
I am trying to install chromium browser in linux and start apache on linux. After that I have to open an ubuntu web page in Chromium on my windows machine via ssh using Putty or Mobarterm. Chromium is installed on linux but when I run command: chromium:browser on linux via Putty it throws error: > ERROR:browser_main_loop.cc(261)] Gtk: cannot open display
user2323168 (21 rep)
Apr 10, 2017, 05:47 AM • Last activity: Apr 9, 2025, 02:09 AM
0 votes
1 answers
68 views
How to turn off the display when pressing the power off button on Linux Mint
I would like to turn the display off (without locking the session) when I press the power button on my machine in Linux Mint. How do I do that?
I would like to turn the display off (without locking the session) when I press the power button on my machine in Linux Mint. How do I do that?
Martin Braun (287 rep)
Mar 30, 2025, 07:30 PM
11 votes
4 answers
13080 views
How does X-server calculate DPI?
From [Xfce Docs][1]: > In case you want to override the DPI (dots per inch) value *calculated > by the X-server*, you can select the checkbox and use the spin box to > specify the resolution to use when your screen renders fonts. [1]: http://docs.xfce.org/xfce/xfce4-settings/appearance#dpi But *how*...
From Xfce Docs : > In case you want to override the DPI (dots per inch) value *calculated > by the X-server*, you can select the checkbox and use the spin box to > specify the resolution to use when your screen renders fonts. But *how* does X-server do its calculation? What assumptions are made in the process and can some of the parameters be overridden? It may know how many pixels I have on my display, but is that enough?
Alois Mahdal (4598 rep)
May 10, 2013, 12:04 PM • Last activity: Nov 1, 2024, 12:47 AM
8 votes
1 answers
2242 views
How do command line clipboard tools like "xclip" and "xsel" persist the clipboard - in a X windows environment that doesn't?
After reading this question about [the X clipboard getting cleared when vim is exited](https://vi.stackexchange.com/questions/3769/can-vim-add-to-the-x11-clipboard-or-primary-buffers-without-an-external-utility) I learned that the X window clipboard only exists while the program - from which the sel...
After reading this question about [the X clipboard getting cleared when vim is exited](https://vi.stackexchange.com/questions/3769/can-vim-add-to-the-x11-clipboard-or-primary-buffers-without-an-external-utility) I learned that the X window clipboard only exists while the program - from which the selection was obtained - remains open. It is because of this behaviour that programs like "glipper" and "parcellite" exist. If the X clipboard is cleared every time a program is exited, how do programs like xclip and xsel work? And what are the security implications of using programs like this? For example, if a password was copied to the clipboard, could this password be saved into some temp file that could be accessed by programs or users?
the_velour_fog (12760 rep)
Jun 2, 2017, 10:55 AM • Last activity: Oct 14, 2024, 05:43 PM
1 votes
1 answers
3094 views
Understanding DISPLAY and Xservers on Ubuntu
I have been having a rough time trying to fix a once working WSL2 system that could display the GUI of linux apps on windows. Previously I was using a third party app/xserver called GWSL, but one fine day I uninstalled Docker Desktop on Windows for some unrelated reason, and that somehow broke every...
I have been having a rough time trying to fix a once working WSL2 system that could display the GUI of linux apps on windows. Previously I was using a third party app/xserver called GWSL, but one fine day I uninstalled Docker Desktop on Windows for some unrelated reason, and that somehow broke everything. I have since learned that the current version of WSL comes with its own graphics support, (WSLG) from Microsoft themselves, and I have been able to launch any app installed on Ubuntu like google-chrome etc, with one initial step required. I'm still utterly confused about all of this x server and DISPLAY stuff in general, and the only thing I care about is getting Playwright to launch a browser to test some web stuff, but it keeps giving me this error
Looks like you launched a headed browser without having a XServer running.                    
Set either 'headless: true' or use 'xvfb-run
So I'm not looking for help with Playwright, but rather trying to understand what is going on. When I boot up Ubuntu on WSL2 and run ps e | grep -Po " DISPLAY=[\.0-9A-Za-z:]* " | sort -u I get
DISPLAY=10.255.255.254:0.0
 DISPLAY=:0
Does this mean I have two displays? I guess so. When I run echo $DISPLAY I get 10.255.255.254:0.0 When I then run google-chrome I get Missing X server or $DISPLAY When I then run export DISPLAY=:0 I can then successfully run not only google-chrome but Playwrights version of chromium (found me\.cache\ms-playwright\chromium-1134\chrome-linux\chrome) without issue. Yet, when I try to run Playwright tests again, it's still telling me I have no XServer running. So at this point, I am trying to understand what state I am in. Do I really have no XServer running if I can actually launch chrome et al through Ubuntu and see it on my Windows desktop? Do I have the wrong or too many DISPLAYs? Do we think Playwright only works on a specific DISPLAY or XServer (port? ip?). I am a bit clueless here and am not sure what else to debug. I've installed and run about 1000 linux commands and have tried various windows 3rd party xservers. It seems like it's kind of working, just not for Playwright.
Big Biggums (13 rep)
Sep 12, 2024, 05:16 PM • Last activity: Sep 12, 2024, 08:59 PM
2 votes
1 answers
5058 views
Debian (Bookworm) - Non-Root Users Unable To Start Xrdp Session
I can connect to server with sudo user but not non-sudo user. /var/log/xrdp-sesman.log indicates X server is not starting up. Failed Login: xrdp-sesman.log [20231018-13:08:12] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 45494 [20231018-13:08:13] [INFO ] ++ created session (access g...
I can connect to server with sudo user but not non-sudo user. /var/log/xrdp-sesman.log indicates X server is not starting up. Failed Login: xrdp-sesman.log
[20231018-13:08:12] [INFO ] Socket 12: AF_INET6 connection received from ::1 port 45494
[20231018-13:08:13] [INFO ] ++ created session (access granted): username testuser, ip ::ffff:192.168.1.146:49982 - socket: 12
[20231018-13:08:13] [INFO ] starting Xorg session...
[20231018-13:08:13] [INFO ] Starting session: session_pid 2557, display :11.0, width 1920, height 1080, bpp 24, client ip ::ffff:192.168.1.146:49982 - socket: 12, user name testuser
[20231018-13:08:13] [INFO ] [session start] (display 11): calling auth_start_session from pid 2557
[20231018-13:08:13] [ERROR] sesman_data_in: scp_process_msg failed
[20231018-13:08:13] [ERROR] sesman_main_loop: trans_check_wait_objs failed, removing trans
[20231018-13:08:13] [INFO ] Starting X server on display 11: /usr/lib/xorg/Xorg :11 -auth .Xauthority -config xrdp/xorg.conf -noreset -nolisten tcp -logfile .xorgxrdp.%s.log
[20231018-13:08:23] [WARN ] Timed out waiting for X server on display 11 to startup
[20231018-13:08:23] [INFO ] Session started successfully for user testuser on display 11
[20231018-13:08:23] [INFO ] Starting the xrdp channel server for display 11
[20231018-13:08:23] [INFO ] Session in progress on display 11, waiting until the window manager (pid 2614) exits to end the session
[20231018-13:08:23] [WARN ] Timed out waiting for X server on display 11 to startup
[20231018-13:08:23] [ERROR] There is no X server active on display 11
[20231018-13:08:23] [ERROR] A fatal error has occurred attempting to start the window manager on display 11, aborting connection
[20231018-13:08:23] [WARN ] Window manager (pid 2614, display 11) exited quickly (0 secs). This could indicate a window manager config problem
[20231018-13:08:23] [INFO ] Calling auth_stop_session and auth_end from pid 2557
[20231018-13:08:23] [INFO ] Terminating X server (pid 2615) on display 11
[20231018-13:08:23] [INFO ] Terminating the xrdp channel server (pid 2820) on display 11
[20231018-13:08:23] [INFO ] X server on display 11 (pid 2615) returned exit code 1 and signal number 0
[20231018-13:08:23] [INFO ] xrdp channel server for display 11 (pid 2820) exit code 1 and signal number 0
[20231018-13:08:23] [INFO ] cleanup_sockets:
[20231018-13:08:23] [INFO ] Process 2557 has exited
[20231018-13:08:23] [INFO ] ++ terminated session:  username testuser, display :11.0, session_pid 2557, ip ::ffff:192.168.1.146:49982 - socket: 12
xrdp.log
[20231018-13:08:10] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.1.146 port 49981
[20231018-13:08:10] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20231018-13:08:10] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20231018-13:08:10] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20231018-13:08:10] [WARN ] Cannot accept TLS connections because certificate or private key file is not readable. certificate file: [/etc/xrdp/cert.pem], private key file: [/etc/xrdp/key.pem]
[20231018-13:08:10] [INFO ] Security protocol: configured [RDP], requested [SSL|HYBRID|HYBRID_EX|RDP], selected [RDP]
[20231018-13:08:10] [ERROR] libxrdp_force_read: header read error
[20231018-13:08:10] [ERROR] Processing [ITU-T T.125] Connect-Initial failed
[20231018-13:08:10] [ERROR] [MCS Connection Sequence] receive connection request failed
[20231018-13:08:10] [INFO ] Socket 12: AF_INET6 connection received from ::ffff:192.168.1.146 port 49982
[20231018-13:08:10] [ERROR] xrdp_sec_incoming: xrdp_mcs_incoming failed
[20231018-13:08:10] [INFO ] Using default X.509 certificate: /etc/xrdp/cert.pem
[20231018-13:08:10] [ERROR] xrdp_rdp_incoming: xrdp_sec_incoming failed
[20231018-13:08:10] [INFO ] Using default X.509 key file: /etc/xrdp/key.pem
[20231018-13:08:10] [ERROR] xrdp_process_main_loop: libxrdp_process_incoming failed
[20231018-13:08:10] [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied
[20231018-13:08:10] [ERROR] xrdp_iso_send: trans_write_copy_s failed
[20231018-13:08:10] [WARN ] Cannot accept TLS connections because certificate or private key file is not readable. certificate file: [/etc/xrdp/cert.pem], private key file: [/etc/xrdp/key.pem]
[20231018-13:08:10] [ERROR] Sending [ITU T.125] DisconnectProviderUltimatum failed
[20231018-13:08:10] [INFO ] Security protocol: configured [RDP], requested [RDP], selected [RDP]
[20231018-13:08:10] [INFO ] Connected client computer name: L60P05S2
[20231018-13:08:10] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc006 is unknown (ignored)
[20231018-13:08:10] [WARN ] Received [MS-RDPBCGR] TS_UD_HEADER type 0xc00a is unknown (ignored)
[20231018-13:08:10] [INFO ] xrdp_load_keyboard_layout: Keyboard information sent by the RDP client, keyboard_type:[0x04], keyboard_subtype:[0x00], keylayout:[0x00000409]
[20231018-13:08:10] [INFO ] xrdp_load_keyboard_layout: model [] variant [] layout [us] options []
[20231018-13:08:10] [INFO ] Non-TLS connection established from ::ffff:192.168.1.146 port 49982: with security level : high
[20231018-13:08:10] [INFO ] xrdp_caps_process_pointer: client supports new(color) cursor
[20231018-13:08:10] [INFO ] xrdp_process_offscreen_bmpcache: support level 1 cache size 5242880 MB cache entries 100
[20231018-13:08:10] [INFO ] xrdp_caps_process_codecs: nscodec, codec id 1, properties len 3
[20231018-13:08:10] [WARN ] xrdp_caps_process_codecs: unknown codec id 5
[20231018-13:08:10] [INFO ] xrdp_caps_process_codecs: RemoteFX, codec id 3, properties len 49
[20231018-13:08:10] [INFO ] Loading keymap file /etc/xrdp/km-00000409.ini
[20231018-13:08:10] [WARN ] local keymap file for 0x00000409 found and doesn't match built in keymap, using local keymap file
[20231018-13:08:12] [INFO ] connecting to sesman on 127.0.0.1:3350
[20231018-13:08:13] [INFO ] xrdp_wm_log_msg: sesman connect ok
[20231018-13:08:13] [INFO ] sesman connect ok
[20231018-13:08:13] [INFO ] sending login info to session manager. Please wait...
[20231018-13:08:13] [INFO ] xrdp_wm_log_msg: login successful for user testuser on display 11
[20231018-13:08:13] [INFO ] login successful for user testuser on display 11
[20231018-13:08:13] [INFO ] loaded module 'libxup.so' ok, interface size 10296, version 4
[20231018-13:08:13] [INFO ] started connecting
[20231018-13:08:13] [INFO ] lib_mod_connect: connecting via UNIX socket
[20231018-13:09:55] [INFO ] connection problem, giving up
[20231018-13:09:55] [INFO ] some problem
[20231018-13:09:55] [ERROR] xrdp_sec_send_fastpath: xrdp_fastpath_send failed
[20231018-13:09:55] [ERROR] xrdp_rdp_send_fastpath: xrdp_sec_send_fastpath failed
[20231018-13:09:55] [ERROR] xrdp_orders_send: xrdp_rdp_send_fastpath failed
[20231018-13:09:55] [ERROR] xrdp_sec_send_fastpath: xrdp_fastpath_send failed
[20231018-13:09:55] [ERROR] xrdp_rdp_send_fastpath: xrdp_sec_send_fastpath failed
[20231018-13:09:55] [ERROR] xrdp_orders_send: xrdp_rdp_send_fastpath failed
[20231018-13:09:55] [ERROR] xrdp_sec_send_fastpath: xrdp_fastpath_send failed
[20231018-13:09:55] [ERROR] xrdp_rdp_send_fastpath: xrdp_sec_send_fastpath failed
[20231018-13:09:55] [ERROR] xrdp_orders_send: xrdp_rdp_send_fastpath failed
[20231018-13:09:55] [ERROR] xrdp_wm_log_msg: Error connecting to user session
[20231018-13:09:55] [INFO ] Error connecting to user session
sesman.ini
Globals]
ListenAddress=127.0.0.1
ListenPort=3350
EnableUserWindowManager=true
; Give in relative path to user's home directory
UserWindowManager=startwm.sh
; Give in full path or relative path to /etc/xrdp
DefaultWindowManager=startwm.sh
; Give in full path or relative path to /etc/xrdp
ReconnectScript=reconnectwm.sh

[Security]
AllowRootLogin=false
MaxLoginRetry=4
#TerminalServerUsers=tsusers
TerminalServerUsers=TerminalServerUsers
TerminalServerAdmins=tsadmins
; When AlwaysGroupCheck=false access will be permitted
; if the group TerminalServerUsers is not defined.
AlwaysGroupCheck=true
; When RestrictOutboundClipboard=all clipboard from the
; server is not pushed to the client.
; In addition, you can control text/file/image transfer restrictions
; respectively. It also accepts comma separated list such as text,file,image.
; To keep compatibility, some aliases are also available:
;   true: an alias of all
;   false: an alias of none
;   yes: an alias of all
RestrictOutboundClipboard=none
; When RestrictInboundClipboard=all clipboard from the
; client is not pushed to the server.
; In addition, you can control text/file/image transfer restrictions
; respectively. It also accepts comma separated list such as text,file,image.
; To keep compatibility, some aliases are also available:
;   true: an alias of all
;   false: an alias of none
;   yes: an alias of all
RestrictInboundClipboard=none

[Sessions]
;; X11DisplayOffset - x11 display number offset
; Type: integer
; Default: 10
X11DisplayOffset=10

;; MaxSessions - maximum number of connections to an xrdp server
; Type: integer
; Default: 0
MaxSessions=50

;; KillDisconnected - kill disconnected sessions
; Type: boolean
; Default: false
; if 1, true, or yes, every session will be killed within DisconnectedTimeLimit
; seconds after the user disconnects
KillDisconnected=false

;; DisconnectedTimeLimit (seconds) - wait before kill disconnected sessions
; Type: integer
; Default: 0
; if KillDisconnected is set to false, this value is ignored
DisconnectedTimeLimit=0

;; IdleTimeLimit (seconds) - wait before disconnect idle sessions
; Type: integer
; Default: 0
; Set to 0 to disable idle disconnection.
IdleTimeLimit=0

;; Policy - session allocation policy
; Type: enum [ "Default" | "UBD" | "UBI" | "UBC" | "UBDI" | "UBDC" ]
; "Default" session per 
; "UBD" session per 
; "UBI" session per 
; "UBC" session per 
; "UBDI" session per 
; "UBDC" session per 
Policy=Default

[Logging]
; Note: Log levels can be any of: core, error, warning, info, debug, or trace
LogFile=xrdp-sesman.log
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false

[LoggingPerLogger]
; Note: per logger configuration is only used if xrdp is built with
; --enable-devel-logging
#sesman.c=INFO
#main()=INFO

;
; Session definitions - startup command-line parameters for each session type
;

[Xorg]
; Specify the path of non-suid Xorg executable. It might differ depending
; on your distribution and version. Find out the appropriate path for your
; environment. The typical path is known as follows:
;
; Fedora 26 or later    :  param=/usr/libexec/Xorg
; Debian 9 or later     :  param=/usr/lib/xorg/Xorg
; Ubuntu 16.04 or later :  param=/usr/lib/xorg/Xorg
; Arch Linux            :  param=/usr/lib/Xorg
; CentOS 7              :  param=/usr/bin/Xorg or param=Xorg
; CentOS 8              :  param=/usr/libexec/Xorg
; FreeBSD (from 2022Q4) :  param=/usr/local/libexec/Xorg
;
param=/usr/lib/xorg/Xorg
; Leave the rest parameters as-is unless you understand what will happen.
param=-config
param=xrdp/xorg.conf
param=-noreset
param=-nolisten
param=tcp
param=-logfile
param=.xorgxrdp.%s.log

[Xvnc]
param=Xvnc
param=-bs
param=-nolisten
param=tcp
param=-localhost
param=-dpi
param=96

[Chansrv]
; drive redirection
; See sesman.ini(5) for the format of this parameter
#FuseMountName=/run/user/%u/thinclient_drives
#FuseMountName=/media/thinclient_drives/%U/thinclient_drives
FuseMountName=thinclient_drives
; this value allows only the user to access their own mapped drives.
; Make this more permissive (e.g. 022) if required.
FileUmask=077
; Can be used to disable FUSE functionality - see sesman.ini(5)
#EnableFuseMount=false
; Uncomment this line only if you are using GNOME 3 versions 3.29.92
; and up, and you wish to cut-paste files between Nautilus and Windows. Do
; not use this setting for GNOME 4, or other file managers
#UseNautilus3FlistFormat=true

[ChansrvLogging]
; Note: one log file is created per display and the LogFile config value
; is ignored. The channel server log file names follow the naming convention:
; xrdp-chansrv.${DISPLAY}.log
;
; Note: Log levels can be any of: core, error, warning, info, debug, or trace
LogLevel=INFO
EnableSyslog=true
#SyslogLevel=INFO
#EnableConsole=false
#ConsoleLevel=INFO
#EnableProcessId=false

[ChansrvLoggingPerLogger]
; Note: per logger configuration is only used if xrdp is built with
; --enable-devel-logging
#chansrv.c=INFO
#main()=INFO

[SessionVariables]
PULSE_SCRIPT=/etc/xrdp/pulse/default.pa
phazexxi (21 rep)
Oct 18, 2023, 07:22 PM • Last activity: Aug 12, 2024, 11:05 AM
13 votes
2 answers
21402 views
How to detect global key presses
I have an Asus laptop that has a special key that can be configured to launch any software (at least on Windows). > ![][1] The general question is: how can I detect any key press (globally)? Then, how can I detect when the user press this key? [1]: https://i.sstatic.net/bDzMA.png
I have an Asus laptop that has a special key that can be configured to launch any software (at least on Windows). > Image The general question is: how can I detect any key press (globally)? Then, how can I detect when the user press this key?
Ionică Bizău (3481 rep)
Mar 18, 2014, 11:57 AM • Last activity: Jul 23, 2024, 05:11 AM
10 votes
3 answers
74447 views
Xvfb -screen --> Cannot establish any listening sockets - Make sure an X server isn't already running
I wonder, why isn't this working? $ screen $ Xvfb -screen :1 1024x768x16 & [1] 17540 $ _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running (EE) Fatal server error: (EE) Cannot establish any listening sockets - Make sure...
I wonder, why isn't this working? $ screen $ Xvfb -screen :1 1024x768x16 & Referenced image 17540 $ _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed _XSERVTransMakeAllCOTSServerListeners: server already running (EE) Fatal server error: (EE) Cannot establish any listening sockets - Make sure an X server isn't already running(EE) And then after Ctrl+C or +D I run this: $ ps -C Xorg PID TTY TIME CMD And, indeed, the X server isn't running. Why the error then? $ uname -a Linux ip-123456-generic #102-Ubuntu SMP Tue Aug 11 14:29:36 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux update: enter image description here
Incerteza (2791 rep)
Sep 29, 2015, 12:06 PM • Last activity: Jul 22, 2024, 09:14 AM
10 votes
3 answers
22778 views
xsel: Can't open display: (null)
I want to copy a long file into clipboard with xsel,in my local pc ,just input: cat /usr/bin/mysql_secure_installation|xsel -b The file `mysql_secure_installation` located in my local os was copied into clipboard. Now login to my vps with ssh command,then input DISPLAY=:0 cat /usr/bin/mysql_secure_i...
I want to copy a long file into clipboard with xsel,in my local pc ,just input: cat /usr/bin/mysql_secure_installation|xsel -b The file mysql_secure_installation located in my local os was copied into clipboard. Now login to my vps with ssh command,then input DISPLAY=:0 cat /usr/bin/mysql_secure_installation|xsel -b I come across the error info: xsel: Can't open display: (null) : Inappropriate ioctl for device I know that the proper way to get remote file is scp command: scp -P port username@tohostname:/remotefile /newlocalfile I just wonder how to get file content copied into clipboard after loginning my vps,copy file from remote machine to the clipboard of my local computer. Same error: DISPLAY=:0 xsel -b < /usr/bin/mysql_secure_installation xsel: Can't open display: (null) : Connection refused
showkey (499 rep)
Feb 6, 2020, 09:53 AM • Last activity: Apr 26, 2024, 11:37 PM
1 votes
0 answers
491 views
How to configure X server to fill the screen over VNC/noVNC?
I am running an Xfce desktop environment in Docker from [here](https://github.com/ConSol/docker-headless-vnc-container) and connected to it using a VNC client and a browser (backed by noVNC) but in both cases the output doesn't fill the screen - or at least the dimensions of the output don't change...
I am running an Xfce desktop environment in Docker from [here](https://github.com/ConSol/docker-headless-vnc-container) and connected to it using a VNC client and a browser (backed by noVNC) but in both cases the output doesn't fill the screen - or at least the dimensions of the output don't change so that when the output hits the edge of my local screen there are gaps. Is there a way I can get the output to fill my local screen by dynamically adjusting the dimensions/resolution? Or would I need to work out my local dimensions manually first and reload X/VNC? (quite new to how GUIs work in Linux work so not too sure if this is something that'd be configured in VNC server or in X server)
dippynark (337 rep)
May 5, 2020, 10:58 PM • Last activity: Apr 13, 2024, 05:13 PM
9 votes
5 answers
29570 views
cannot run in framebuffer mode. Please specify busIDs
from my previous question [https://unix.stackexchange.com/questions/615080/empty-screen-after-booting-from-live-persistent-usb?noredirect=1#comment1150102_615080][1], I am able after boot to access all files and folders, but the X-server is unable to load (so I get only to tty1). From the previous q...
from my previous question https://unix.stackexchange.com/questions/615080/empty-screen-after-booting-from-live-persistent-usb?noredirect=1#comment1150102_615080 , I am able after boot to access all files and folders, but the X-server is unable to load (so I get only to tty1). From the previous question I was able to get to /var/log/Xorg.0.log and took a photo of it : /var/log/Xorg.0.log Now I have to somehow specify "busIDs for all framebuffer devices" (as from the file error). So how can I do that? What config file should I edit? I get the very same error from startx (the fatal error of unable to run framebuffer mode). How to connect to X-server?
milanHrabos (401 rep)
Oct 19, 2020, 02:53 PM • Last activity: Apr 9, 2024, 11:51 AM
6 votes
3 answers
4140 views
Maximize Window without Window Manager?
If I want to run GUI software on my Linux machine, I can do it without a window manager, but I can not discover a way to maximize the window. Is there a reliable way to maximize a window in an x server without a window manager?
If I want to run GUI software on my Linux machine, I can do it without a window manager, but I can not discover a way to maximize the window. Is there a reliable way to maximize a window in an x server without a window manager?
motoku (218 rep)
Feb 21, 2016, 03:47 AM • Last activity: Mar 16, 2024, 09:59 PM
2 votes
2 answers
4599 views
FTP: get the latest file in server
I have an ftp server running, and it irregularly generates the latest file. The file is store as: `Home`->`T22:30:10`->`new.txt`, and the latest one would be (a new folder) `Home`->`T23:10:25`->`new.txt` (note that this is a new folder with latest time) I need to implement something (it could be any...
I have an ftp server running, and it irregularly generates the latest file. The file is store as: Home->T22:30:10->new.txt, and the latest one would be (a new folder) Home->T23:10:25->new.txt (note that this is a new folder with latest time) I need to implement something (it could be anything, C code, Bash script, etc.) in a Linux machine that pulls the latest file over. I have looked into two options: 1. Use libcurl, pass the directory listing, and select the latest file. This is really annoying ass and time-consuming, and I still can't find a easy way to do this. 2. Use lftp, at initiazation, remove all the files in the server, so that each time when I call lftp to download something, it would be the latest one. (This method is only conceptual and I haven't tried it in real life). Is there any easier option?
andy_ttse (707 rep)
Mar 25, 2015, 04:21 PM • Last activity: Jan 30, 2024, 11:28 PM
0 votes
0 answers
207 views
gnome apps very slow to start on on remote X server, other apps ok
I'm using [meld][1] to compare some files, on a machine running SLES 15 SP 1, and with the X server running on a Windows desktop; it's [MobaXTerm][2]'s embedded X server, which I believe is Cygwin'ish. For some reason, meld takes ~30 seconds create its window on the X server - even if no files are b...
I'm using meld to compare some files, on a machine running SLES 15 SP 1, and with the X server running on a Windows desktop; it's MobaXTerm 's embedded X server, which I believe is Cygwin'ish. For some reason, meld takes ~30 seconds create its window on the X server - even if no files are being compared and it's just the empty window. The same is true for gedit, for example. However, for apps like xclock, xterm or even say kile - the delay is very small - less than half a second. After coming up, the apps are pretty responsive, and this is all on a LAN, so it's not as though it's a communications problem (I'm pretty sure anyway). What could cause such delays, and what can I do to avoid or at least mitigate them? Naturally, I'll provide any additional information which might be useful to figure this out.
einpoklum (10753 rep)
Nov 30, 2023, 04:49 PM • Last activity: Nov 30, 2023, 10:18 PM
2 votes
1 answers
1714 views
AMD Radeon Software Crimson Edition on xserver 1.20
I have Dell Latitude E6540 which has Radeon HD8790M and it runs Debian 10. I wanted to install newest drivers for said video card (becuase games didn't recognize it and I couldn't see it's usage (```radeontop``` says ```"radeon unknown"``` and shows 0% usage on everything)). So I downloaded [AMD Rad...
I have Dell Latitude E6540 which has Radeon HD8790M and it runs Debian 10. I wanted to install newest drivers for said video card (becuase games didn't recognize it and I couldn't see it's usage (
says
"radeon unknown"
and shows 0% usage on everything)). So I downloaded [AMD Radeon Software Crimson Edition 15.12 Proprietary Linux x86 Display Driver](https://www.amd.com/en/support/graphics/amd-radeon-hd/amd-radeon-hd-8000m-series/amd-radeon-hd-8790m-series-gpu) but when installing it says: error: Detected X Server version 'XServer 1.20.4_64a' is not supported. Supported versions are X.Org 6.9 or later, up to XServer 1.10 (default:v2:x86_64:lib32:XServer 1.20.4_64a:none:4.19.0-5-amd64:) Should I:
  • install xserver 1.10
  • install other driver
  • do something else
  • ? I can provide more information if required.
    LoipesMas (41 rep)
    Jul 27, 2019, 03:18 PM • Last activity: Nov 27, 2023, 01:04 PM
    1 votes
    2 answers
    856 views
    X Server implementation vs Linux distributions
    Linux has a lot of distribution - [here][1] is the popularity ranking. Do all Linux distributions share the same X Server implementation ? [1]: https://distrowatch.com/dwres.php?resource=popularity
    Linux has a lot of distribution - here is the popularity ranking. Do all Linux distributions share the same X Server implementation ?
    Irbis (239 rep)
    Nov 2, 2023, 09:32 AM • Last activity: Nov 3, 2023, 12:39 AM
    Showing page 1 of 20 total questions