"x11 error connection refused" or "connection refused" after login with linux #1115

Closed
opened 2026-02-20 23:18:38 -05:00 by deekerman · 12 comments
Owner

Originally created by @hnduomi on GitHub (Dec 6, 2022).

on linux start,rustdesk server start,as no user login in ,so current uid is 127,
log:
[src/platform/linux.rs:179] uid of seat0: 127
[src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority

now,i can connect and input password at gnome login form

after input password of linux,i use root ,so current uid is 0
log:
[src/platform/linux.rs:179] uid of seat0: 0
[src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority

then connection refused alert
i reboot the rustdesk server
log:
[src/platform/linux.rs:208] XAUTHORITY: /run/user/0/gdm/Xauthority

so i guess the "connection refused" is caused by user change or gnome session change

Originally created by @hnduomi on GitHub (Dec 6, 2022). on linux start,rustdesk server start,as no user login in ,so current uid is 127, log: [src/platform/linux.rs:179] uid of seat0: 127 [src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority now,i can connect and input password at gnome login form after input password of linux,i use root ,so current uid is 0 log: [src/platform/linux.rs:179] uid of seat0: 0 [src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority then connection refused alert i reboot the rustdesk server log: [src/platform/linux.rs:208] XAUTHORITY: /run/user/0/gdm/Xauthority so i guess the "connection refused" is caused by user change or gnome session change
Author
Owner

@rustdesk commented on GitHub (Dec 9, 2022):

full log please

@rustdesk commented on GitHub (Dec 9, 2022): full log please
Author
Owner

@rustdesk commented on GitHub (Dec 9, 2022):

and always happen?

@rustdesk commented on GitHub (Dec 9, 2022): and always happen?
Author
Owner

@hnduomi commented on GitHub (Dec 9, 2022):

yes ,always
steps:
1,open computer,do not login
2,use rustdesk control screen and input username,password login
3,login success,rustdesk notice "connection refused"(rustdesk apk 1.2.0),"x11 error connection refused"(rustdesk apk 1.1.9)
4,reboot rustdesk service
5,connect success

env:kali linux,gnome,rustdesk apk(1.2.0 and 1.1.9)

and always happen?

@hnduomi commented on GitHub (Dec 9, 2022): yes ,always steps: 1,open computer,do not login 2,use rustdesk control screen and input username,password login 3,login success,rustdesk notice "connection refused"(rustdesk apk 1.2.0),"x11 error connection refused"(rustdesk apk 1.1.9) 4,reboot rustdesk service 5,connect success env:kali linux,gnome,rustdesk apk(1.2.0 and 1.1.9) > and always happen?
Author
Owner

@hnduomi commented on GitHub (Dec 9, 2022):

this part is login in and not restart rustdesk service

[2022-12-09 12:40:29.019760 +08:00] INFO [src/core_main.rs:172] start --service
[2022-12-09 12:40:29.033022 +08:00] INFO [src/server/uinput.rs:686] start uinput control service
[2022-12-09 12:40:29.033025 +08:00] INFO [src/server/uinput.rs:672] start uinput keyboard service
[2022-12-09 12:40:29.033137 +08:00] INFO [src/server/uinput.rs:679] start uinput mouse service
[2022-12-09 12:40:29.033202 +08:00] DEBUG [src/ipc.rs:547] Os { code: 2, kind: NotFound, message: "No such file or directory" }, librustdesk::ipc:src/ipc.rs:547:5
[2022-12-09 12:40:29.034421 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_control server at path: /tmp/RustDesk/ipc_uinput_control
[2022-12-09 12:40:29.033205 +08:00] DEBUG [src/ipc.rs:547] Os { code: 2, kind: NotFound, message: "No such file or directory" }, librustdesk::ipc:src/ipc.rs:547:5
[2022-12-09 12:40:29.034661 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_keyboard server at path: /tmp/RustDesk/ipc_uinput_keyboard
[2022-12-09 12:40:29.033237 +08:00] DEBUG [src/ipc.rs:547] Os { code: 2, kind: NotFound, message: "No such file or directory" }, librustdesk::ipc:src/ipc.rs:547:5
[2022-12-09 12:40:29.034927 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_mouse server at path: /tmp/RustDesk/ipc_uinput_mouse
[2022-12-09 12:40:29.717915 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 127
[2022-12-09 12:40:29.718015 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 12:40:30.030130 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 12:40:30.343015 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 12:40:30.655852 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 12:40:30.711889 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g'
[2022-12-09 12:40:30.725793 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :0
[2022-12-09 12:40:30.725933 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority
[2022-12-09 12:40:38.693381 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 0
[2022-12-09 12:40:38.693504 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 12:40:38.802941 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g'
[2022-12-09 12:40:38.915880 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :0
[2022-12-09 12:40:38.916032 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority
[2022-12-09 13:40:35.506816 +08:00] INFO [src/platform/linux.rs:250] restart server
[2022-12-09 14:40:36.836110 +08:00] INFO [src/platform/linux.rs:250] restart server
[2022-12-09 15:40:38.018816 +08:00] INFO [src/platform/linux.rs:250] restart server
[2022-12-09 16:40:39.055184 +08:00] INFO [src/platform/linux.rs:250] restart server

this part is restart rustdesk service

[2022-12-09 16:58:53.666892 +08:00] INFO [src/core_main.rs:172] start --service
[2022-12-09 16:58:53.685999 +08:00] INFO [src/server/uinput.rs:672] start uinput keyboard service
[2022-12-09 16:58:53.686042 +08:00] INFO [src/server/uinput.rs:686] start uinput control service
[2022-12-09 16:58:53.686099 +08:00] INFO [src/server/uinput.rs:679] start uinput mouse service
[2022-12-09 16:58:53.854943 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_keyboard server at path: /tmp/RustDesk/ipc_uinput_keyboard
[2022-12-09 16:58:53.854999 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_mouse server at path: /tmp/RustDesk/ipc_uinput_mouse
[2022-12-09 16:58:53.855172 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_control server at path: /tmp/RustDesk/ipc_uinput_control
[2022-12-09 16:58:53.857538 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 0
[2022-12-09 16:58:53.857560 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 16:58:53.995687 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g'
[2022-12-09 16:58:54.134830 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :1
[2022-12-09 16:58:54.135045 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/0/gdm/Xauthority

you can see,XAUTHORITY changed from 127 to 0

@hnduomi commented on GitHub (Dec 9, 2022): **this part is login in and not restart rustdesk service** ``` [2022-12-09 12:40:29.019760 +08:00] INFO [src/core_main.rs:172] start --service [2022-12-09 12:40:29.033022 +08:00] INFO [src/server/uinput.rs:686] start uinput control service [2022-12-09 12:40:29.033025 +08:00] INFO [src/server/uinput.rs:672] start uinput keyboard service [2022-12-09 12:40:29.033137 +08:00] INFO [src/server/uinput.rs:679] start uinput mouse service [2022-12-09 12:40:29.033202 +08:00] DEBUG [src/ipc.rs:547] Os { code: 2, kind: NotFound, message: "No such file or directory" }, librustdesk::ipc:src/ipc.rs:547:5 [2022-12-09 12:40:29.034421 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_control server at path: /tmp/RustDesk/ipc_uinput_control [2022-12-09 12:40:29.033205 +08:00] DEBUG [src/ipc.rs:547] Os { code: 2, kind: NotFound, message: "No such file or directory" }, librustdesk::ipc:src/ipc.rs:547:5 [2022-12-09 12:40:29.034661 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_keyboard server at path: /tmp/RustDesk/ipc_uinput_keyboard [2022-12-09 12:40:29.033237 +08:00] DEBUG [src/ipc.rs:547] Os { code: 2, kind: NotFound, message: "No such file or directory" }, librustdesk::ipc:src/ipc.rs:547:5 [2022-12-09 12:40:29.034927 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_mouse server at path: /tmp/RustDesk/ipc_uinput_mouse [2022-12-09 12:40:29.717915 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 127 [2022-12-09 12:40:29.718015 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 12:40:30.030130 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 12:40:30.343015 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 12:40:30.655852 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 12:40:30.711889 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g' [2022-12-09 12:40:30.725793 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :0 [2022-12-09 12:40:30.725933 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority [2022-12-09 12:40:38.693381 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 0 [2022-12-09 12:40:38.693504 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 12:40:38.802941 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g' [2022-12-09 12:40:38.915880 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :0 [2022-12-09 12:40:38.916032 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority [2022-12-09 13:40:35.506816 +08:00] INFO [src/platform/linux.rs:250] restart server [2022-12-09 14:40:36.836110 +08:00] INFO [src/platform/linux.rs:250] restart server [2022-12-09 15:40:38.018816 +08:00] INFO [src/platform/linux.rs:250] restart server [2022-12-09 16:40:39.055184 +08:00] INFO [src/platform/linux.rs:250] restart server ``` **this part is restart rustdesk service** ``` [2022-12-09 16:58:53.666892 +08:00] INFO [src/core_main.rs:172] start --service [2022-12-09 16:58:53.685999 +08:00] INFO [src/server/uinput.rs:672] start uinput keyboard service [2022-12-09 16:58:53.686042 +08:00] INFO [src/server/uinput.rs:686] start uinput control service [2022-12-09 16:58:53.686099 +08:00] INFO [src/server/uinput.rs:679] start uinput mouse service [2022-12-09 16:58:53.854943 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_keyboard server at path: /tmp/RustDesk/ipc_uinput_keyboard [2022-12-09 16:58:53.854999 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_mouse server at path: /tmp/RustDesk/ipc_uinput_mouse [2022-12-09 16:58:53.855172 +08:00] INFO [src/ipc.rs:255] Started ipc_uinput_control server at path: /tmp/RustDesk/ipc_uinput_control [2022-12-09 16:58:53.857538 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 0 [2022-12-09 16:58:53.857560 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 16:58:53.995687 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g' [2022-12-09 16:58:54.134830 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :1 [2022-12-09 16:58:54.135045 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/0/gdm/Xauthority ``` you can see,XAUTHORITY changed from 127 to 0
Author
Owner

@rustdesk commented on GitHub (Dec 9, 2022):

what time did you input user and password? and which user? root?

@rustdesk commented on GitHub (Dec 9, 2022): what time did you input user and password? and which user? root?
Author
Owner

@hnduomi commented on GitHub (Dec 9, 2022):

1,open local computer, then gnome show login form
2,use rustdesk apk control screen and input username,password login,user is root,
3,login success,rustdesk apk notice "connection refused"(rustdesk apk 1.2.0)

@hnduomi commented on GitHub (Dec 9, 2022): 1,open local computer, then gnome show login form 2,use rustdesk apk control screen and input username,password login,user is root, 3,login success,rustdesk apk notice "connection refused"(rustdesk apk 1.2.0)
Author
Owner

@rustdesk commented on GitHub (Dec 9, 2022):

I wanna test with root, but root UI login is forbidden on Ubuntu. Sorry, hope some guys can help you solve this.

It is very strange

ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g'

returns /run/user/127/gdm/Xauthority

I do not know if changing -u to -U can work.
I have no env to test.

github.com/rustdesk/rustdesk@0bc0d489d6/src/platform/linux.rs (L659)

@rustdesk commented on GitHub (Dec 9, 2022): I wanna test with root, but root UI login is forbidden on Ubuntu. Sorry, hope some guys can help you solve this. It is very strange ``` ps -u 0 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g' ``` returns `/run/user/127/gdm/Xauthority` I do not know if changing `-u` to `-U` can work. I have no env to test. https://github.com/rustdesk/rustdesk/blob/0bc0d489d6db9d30d11da9772199956f0e651101/src/platform/linux.rs#L659
Author
Owner

@hnduomi commented on GitHub (Dec 9, 2022):

i create a test user, not at root permission
rustdesk work well test user
i guess x11 error alert just at root

the log:

[2022-12-09 20:28:58.802286 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 127
[2022-12-09 20:28:58.802459 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 20:28:59.114642 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 20:28:59.427259 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 20:28:59.739838 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 20:28:59.761542 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g'
[2022-12-09 20:28:59.776348 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :0
[2022-12-09 20:28:59.776397 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority
[2022-12-09 20:29:23.373762 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 1001
[2022-12-09 20:29:23.373841 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 1001 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 20:29:23.688723 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 1001 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g'
[2022-12-09 20:29:23.705374 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 1001 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g'
[2022-12-09 20:29:23.722074 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :1
[2022-12-09 20:29:23.722131 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/1001/gdm/Xauthority

low permission user id is 1000
root user id is 0
no user login in id is 127(i guess)

if use root login and rustdesk alert x11 error,restart the rustdesk service,then will work OK

@hnduomi commented on GitHub (Dec 9, 2022): **i create a test user, not at root permission rustdesk work well test user i guess x11 error alert just at root** the log: ``` [2022-12-09 20:28:58.802286 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 127 [2022-12-09 20:28:58.802459 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 20:28:59.114642 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 20:28:59.427259 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 20:28:59.739838 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 20:28:59.761542 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 127 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g' [2022-12-09 20:28:59.776348 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :0 [2022-12-09 20:28:59.776397 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/127/gdm/Xauthority [2022-12-09 20:29:23.373762 +08:00] INFO [src/platform/linux.rs:179] uid of seat0: 1001 [2022-12-09 20:29:23.373841 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 1001 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 20:29:23.688723 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 1001 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^XAUTHORITY=' | tail -1 | sed 's/XAUTHORITY=//g' [2022-12-09 20:29:23.705374 +08:00] DEBUG [src/platform/linux.rs:660] Run: ps -u 1001 -o pid= | xargs -I__ cat /proc/__/environ 2>/dev/null | tr '\0' '\n' | grep '^DISPLAY=' | tail -1 | sed 's/DISPLAY=//g' [2022-12-09 20:29:23.722074 +08:00] INFO [src/platform/linux.rs:207] DISPLAY: :1 [2022-12-09 20:29:23.722131 +08:00] INFO [src/platform/linux.rs:208] XAUTHORITY: /run/user/1001/gdm/Xauthority ``` low permission user id is 1000 root user id is 0 no user login in id is 127(i guess) if use root login and rustdesk alert x11 error,restart the rustdesk service,then will work OK
Author
Owner

@rustdesk commented on GitHub (Dec 10, 2022):

Please try out new build tomorrow.

@rustdesk commented on GitHub (Dec 10, 2022): Please try out new build tomorrow.
Author
Owner

@Rrubidium commented on GitHub (Dec 30, 2022):

I know how to fix it.Just install bless(apt-get install bless) and (bless /usr/bin/rustdesk), and search "geteuid" in text and change it with "getppid" , and save , reopen the rustdesk finally.It's OK to connect! I think it's the root login's problem.

@Rrubidium commented on GitHub (Dec 30, 2022): I know how to fix it.Just install bless(apt-get install bless) and (bless /usr/bin/rustdesk), and search "geteuid" in text and change it with "getppid" , and save , reopen the rustdesk finally.It's OK to connect! I think it's the root login's problem.
Author
Owner

@rustdesk commented on GitHub (Apr 6, 2023):

#440

@rustdesk commented on GitHub (Apr 6, 2023): #440
Author
Owner

@VladimirFomin90 commented on GitHub (Jun 8, 2024):

It is necessary to allow access to audio in Rustdesk, at the computer to which you are connected, it helped me. Hooray!

@VladimirFomin90 commented on GitHub (Jun 8, 2024): It is necessary to allow access to audio in Rustdesk, at the computer to which you are connected, it helped me. Hooray!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#1115
No description provided.