zoukankan      html  css  js  c++  java
  • Ubuntu 19.04: Connect to GNOME desktop environment via XRDP

    1 Install XRDP

    Install xrdp.

    #!/bin/sh -e
    
    # Xorg doesn't need TigerVNC.
    sudo apt install -y xrdp
    
    # The new_cursors draws black background around cursor.
    sudo sed -e 's/^new_cursors=true/new_cursors=false/g' 
         -i /etc/xrdp/xrdp.ini
    sudo systemctl restart xrdp
    
    # Load Ubuntu config.
    D=/usr/share/ubuntu:/usr/local/share:/usr/share:/var/lib/snapd/desktop
    cat <<EOF > ~/.xsessionrc
    export GNOME_SHELL_SESSION_MODE=ubuntu
    export XDG_CURRENT_DESKTOP=ubuntu:GNOME
    export XDG_DATA_DIRS=${D}
    export XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/etc/xdg
    EOF
    
    # Avoid Authentication Required dialog.
    cat <<EOF | 
      sudo tee /etc/polkit-1/localauthority/50-local.d/xrdp-color-manager.pkla
    [Netowrkmanager]
    Identity=unix-user:*
    Action=org.freedesktop.color-manager.create-device
    ResultAny=yes
    ResultInactive=no
    ResultActive=yes
    EOF
    sudo systemctl restart polkit
    

    2 Connect to GNOME desktop environment via XRDP

    Use Xorg as a session type.Finish!

  • 相关阅读:
    JS中的constructor与prototype
    HTTP状态码
    CSS HACK 及常见问题
    js常见怪异
    js深拷贝和浅拷贝
    浏览器渲染
    google全球地址大全
    从function前面的!想到的
    2048
    js判定IE
  • 原文地址:https://www.cnblogs.com/jqpy1994/p/13922042.html
Copyright © 2011-2022 走看看