使用带有lightdm

时间:2018-06-03 18:42:44

标签: chrome-remote-desktop

我按照https://support.google.com/chrome/answer/1649523上的说明尝试设置chrome远程桌面,但

    我机器上不存在
  1. /usr/sbin/lightdm-session(仅限lightdmlightdm-gtk-greeter
  2. 点击启用远程连接,输入我的PIN并进行身份验证后,它暂停了一段时间,然后说“无法启动远程访问服务。”
  3. 对于上下文,我正在运行Debian 9 stretch(amd64),xfce4 4.12.3和lightdm 1.18.3-1。

    我尝试了几种不同的方法:

    1。尝试#1

    ~/.chrome-remote-desktop-session

    /usr/sbin/lightdm 'startxfce4'

    /tmp/chrome_remote_desktop_blablabla

    2018-06-03 10:21:51,065:INFO:Launching X server and X session.
    2018-06-03 10:21:51,069:INFO:Starting Xvfb on display :20
    xdpyinfo:  unable to open display ":20".
    2018-06-03 10:21:51,582:INFO:X server is active.
    2018-06-03 10:21:51,618:INFO:Launching X session: ['/bin/sh', '/home/jub/.chrome-remote-desktop-session']
    2018-06-03 10:21:51,620:INFO:Launching host process
    2018-06-03 10:21:51,620:INFO:['/opt/google/chrome-remote-desktop/chrome-remote-desktop-host', '--host-config=-', '--audio-pipe-name=/home/jub/.config/chrome-remote-desktop/pulseaudio#71144850f4/fifo_output', '--server-supports-exact-resize', '--ssh-auth-sockname=/tmp/chromoting.jub.ssh_auth_sock', '--signal-parent']
    Session output: Only root can run Light Display Manager.  To run as a regular user for testing run with the --test-mode flag.
    2018-06-03 10:21:51,622:INFO:wait() returned (14824,256)
    2018-06-03 10:21:51,622:INFO:Session process terminated
    2018-06-03 10:21:51,625:INFO:Failure count for 'session' is now 2
    2018-06-03 10:21:51,625:INFO:Terminating X server
    2018-06-03 10:21:51,629:INFO:Terminating host
    2018-06-03 10:21:51,629:INFO:Failure count for 'X server' is now 0
    2018-06-03 10:21:51,629:INFO:Failure count for 'host' is now 0
    2018-06-03 10:21:51,629:INFO:Waiting before relaunching
    2018-06-03 10:21:53,632:INFO:wait() returned (14823,256)
    2018-06-03 10:21:53,633:INFO:Waiting before relaunching
    

    2。尝试#2

    ~/.chrome-remote-desktop-session

    /usr/sbin/lightdm-gtk-greeter 'startxfce4'

    /tmp/chrome_remote_desktop_blablabla

    2018-06-03 10:25:35,097:INFO:Launching X server and X session.
    2018-06-03 10:25:35,101:INFO:Starting Xvfb on display :20
    xdpyinfo:  unable to open display ":20".
    2018-06-03 10:25:35,608:INFO:X server is active.
    2018-06-03 10:25:35,634:INFO:Launching X session: ['/bin/sh', '/home/jub/.chrome-remote-desktop-session']
    2018-06-03 10:25:35,635:INFO:Launching host process
    2018-06-03 10:25:35,635:INFO:['/opt/google/chrome-remote-desktop/chrome-remote-desktop-host', '--host-config=-', '--audio-pipe-name=/home/jub/.config/chrome-remote-desktop/pulseaudio#71144850f4/fifo_output', '--server-supports-exact-resize', '--ssh-auth-sockname=/tmp/chromoting.jub.ssh_auth_sock', '--signal-parent']
    Session output: ** Message: Starting lightdm-gtk-greeter 2.0.2 (Nov 16 2016, 20:48:17)
    [0603/102535.644809:INFO:remoting_me2me_host.cc(1706)] Starting host process: version 66.0.3359.12
    Session output: ** Message: [Configuration] Reading file: /usr/share/lightdm/lightdm-gtk-greeter.conf.d/01_debian.conf
    Session output: ** Message: [Configuration] Reading file: /etc/lightdm/lightdm-gtk-greeter.conf
    Session output:
    Session output: ** (lightdm-gtk-greeter:15788): WARNING **: Unable to determine socket to daemon
    Session output:
    Session output: ** (lightdm-gtk-greeter:15788): WARNING **: Unable to determine socket to daemon
    2018-06-03 10:25:35,714:INFO:wait() returned (15786,256)
    2018-06-03 10:25:35,715:INFO:Session process terminated
    2018-06-03 10:25:35,717:INFO:Failure count for 'session' is now 1
    2018-06-03 10:25:35,717:INFO:Terminating X server
    2018-06-03 10:25:35,721:INFO:Terminating host
    2018-06-03 10:25:35,724:INFO:Failure count for 'X server' is now 0
    2018-06-03 10:25:35,724:INFO:Failure count for 'host' is now 0
    2018-06-03 10:25:35,724:INFO:Waiting before relaunching
    2018-06-03 10:25:36,725:INFO:wait() returned (15785,256)
    2018-06-03 10:25:36,725:INFO:Waiting before relaunching
    

    第3。尝试#3

    ~/.chrome-remote-desktop-session

    startxfce4

    /tmp/chrome_remote_desktop_blablabla

    2018-06-03 10:29:14,704:INFO:Launching X server and X session.
    2018-06-03 10:29:14,709:INFO:Starting Xvfb on display :20
    xdpyinfo:  unable to open display ":20".
    2018-06-03 10:29:15,221:INFO:X server is active.
    2018-06-03 10:29:15,258:INFO:Launching X session: ['/bin/sh', '/home/jub/.chrome-remote-desktop-session']
    2018-06-03 10:29:15,260:INFO:Launching host process
    2018-06-03 10:29:15,260:INFO:['/opt/google/chrome-remote-desktop/chrome-remote-desktop-host', '--host-config=-', '--audio-pipe-name=/home/jub/.config/chrome-remote-desktop/pulseaudio#71144850f4/fifo_output', '--server-supports-exact-resize', '--ssh-auth-sockname=/tmp/chromoting.jub.ssh_auth_sock', '--signal-parent']
    Session output: /usr/bin/startxfce4: X server already running on display :20
    [0603/102915.269428:INFO:remoting_me2me_host.cc(1706)] Starting host process: version 66.0.3359.12
    Session output: xfce4-session: Another session manager is already running
    2018-06-03 10:29:15,276:INFO:wait() returned (16901,0)
    2018-06-03 10:29:15,276:INFO:Session process terminated
    2018-06-03 10:29:15,278:INFO:Failure count for 'session' is now 1
    2018-06-03 10:29:15,278:INFO:Terminating X server
    2018-06-03 10:29:15,282:INFO:Terminating host
    2018-06-03 10:29:15,283:INFO:Failure count for 'X server' is now 0
    2018-06-03 10:29:15,283:INFO:Failure count for 'host' is now 0
    2018-06-03 10:29:15,284:INFO:Waiting before relaunching
    2018-06-03 10:29:17,285:INFO:wait() returned (16900,256)
    2018-06-03 10:29:17,285:INFO:Waiting before relaunching
    

    4。尝试#4

    这一次,我刚刚删除了~/.chrome-remote-desktop-session。它似乎成功了!远程连接已成功启用,我可以通过手机连接到它。但是,重新启动计算机后,我发现我无法再通过lightdm登录,但仍然可以通过手机连接。 Lightdm让我输入我的凭据,但只是在打印了一些X服务器启动后返回到登录屏幕。当我尝试通过lightdm登录时,打印了以下日志消息:

    /var/log/lightdm/lightdm.log

    [+368.98s] DEBUG: Continue authentication
    [+368.99s] DEBUG: Session pid=1968: Authentication complete with return value 0: Success
    [+368.99s] DEBUG: Authenticate result for user jub: Success
    [+368.99s] DEBUG: User jub authorized
    [+368.99s] DEBUG: Greeter sets language en_US.utf8
    [+369.00s] DEBUG: Greeter requests session lightdm-xsession
    [+369.00s] DEBUG: Seat seat0: Stopping greeter; display server will be re-used for user session
    [+369.00s] DEBUG: Session pid=1937: Sending SIGTERM
    [+369.01s] DEBUG: Greeter closed communication channel
    [+369.01s] DEBUG: Session pid=1937: Exited with return value 0
    [+369.01s] DEBUG: Seat seat0: Session stopped
    [+369.01s] DEBUG: Seat seat0: Greeter stopped, running session
    [+369.01s] DEBUG: Registering session with bus path /org/freedesktop/DisplayManager/Session2
    [+369.01s] DEBUG: Session pid=1968: Running command /etc/X11/Xsession default
    [+369.01s] DEBUG: Creating shared data directory /var/lib/lightdm/data/jub
    [+369.01s] DEBUG: Session pid=1968: Logging to .xsession-errors
    [+369.02s] DEBUG: Activating VT 7
    [+369.02s] DEBUG: Activating login1 session 7
    [+369.02s] DEBUG: Seat seat0 changes active session to 7
    [+369.02s] DEBUG: Session 7 is already active
    [+369.09s] DEBUG: Session pid=1968: Exited with return value 0
    [+369.09s] DEBUG: Seat seat0: Session stopped
    [+369.09s] DEBUG: Seat seat0: Stopping display server, no sessions require it
    [+369.09s] DEBUG: Sending signal 15 to process 1923
    [+370.84s] DEBUG: Process 1923 exited with return value 0
    [+370.84s] DEBUG: DisplayServer x-0: X server stopped
    [+370.84s] DEBUG: Releasing VT 7
    [+370.84s] DEBUG: DisplayServer x-0: Removing X server authority /var/run/lightdm/root/:0
    [+370.84s] DEBUG: Seat seat0: Display server stopped
    [+370.84s] DEBUG: Seat seat0: Active display server stopped, starting greeter
    [+370.84s] DEBUG: Seat seat0: Creating greeter session
    [+370.84s] DEBUG: Seat seat0: Creating display server of type x
    [+370.84s] DEBUG: Using VT 7
    [+370.84s] DEBUG: Seat seat0: Starting local X display on VT 7
    [+370.84s] DEBUG: DisplayServer x-0: Logging to /var/log/lightdm/x-0.log
    [+370.84s] DEBUG: DisplayServer x-0: Writing X server authority to /var/run/lightdm/root/:0
    [+370.84s] DEBUG: DisplayServer x-0: Launching X Server
    [+370.84s] DEBUG: Launching process 2362: /usr/bin/X :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch
    [+370.84s] DEBUG: DisplayServer x-0: Waiting for ready signal from X server :0
    [+372.21s] DEBUG: Got signal 10 from process 2362
    [+372.21s] DEBUG: DisplayServer x-0: Got signal from X server :0
    [+372.21s] DEBUG: DisplayServer x-0: Connecting to XServer :0
    [+372.30s] DEBUG: Seat seat0: Display server ready, starting session authentication
    [+372.30s] DEBUG: Session pid=2368: Started with service 'lightdm-greeter', username 'lightdm'
    [+372.30s] DEBUG: Session pid=2368: Authentication complete with return value 0: Success
    [+372.30s] DEBUG: Seat seat0: Session authenticated, running command
    [+372.30s] DEBUG: Session pid=2368: Running command /usr/sbin/lightdm-gtk-greeter
    [+372.30s] DEBUG: Creating shared data directory /var/lib/lightdm/data/lightdm
    [+372.30s] DEBUG: Session pid=2368: Logging to /var/log/lightdm/seat0-greeter.log
    [+372.32s] DEBUG: Activating VT 7
    [+372.32s] DEBUG: Activating login1 session c5
    [+372.32s] DEBUG: Seat seat0 changes active session to c5
    [+372.32s] DEBUG: Session c5 is already active
    [+372.37s] DEBUG: Greeter connected version=1.18.3 resettable=false
    [+372.42s] DEBUG: Greeter start authentication for jub
    [+372.42s] DEBUG: Session pid=2399: Started with service 'lightdm', username 'jub'
    [+372.42s] DEBUG: Session pid=2399: Got 1 message(s) from PAM
    [+372.42s] DEBUG: Prompt greeter with 1 message(s)
    

    var/log/Xorg.0.log

    [  1533.109] (II) UnloadModule: "libinput"
    [  1533.109] (II) UnloadModule: "libinput"
    [  1533.109] (II) UnloadModule: "libinput"
    [  1533.109] (II) UnloadModule: "libinput"
    [  1533.109] (II) UnloadModule: "libinput"
    [  1533.109] (II) UnloadModule: "libinput"
    [  1533.109] (II) UnloadModule: "libinput"
    [  1533.110] (II) UnloadModule: "libinput"
    [  1533.110] (II) UnloadModule: "libinput"
    [  1533.110] (II) UnloadModule: "libinput"
    [  1533.110] (II) UnloadModule: "libinput"
    [  1534.487] (II) Server terminated successfully (0). Closing log file.
    

    有什么想法吗?谢谢!

0 个答案:

没有答案
相关问题