book
  • README
  • cheatsheet
    • bash
      • builtin
      • syntactic sugar
      • cmd
      • havefun
    • text-processing
      • awk
      • sed
      • html
      • json
      • regex
      • unicode
    • osx
    • curl
    • tricky
    • widget
    • proxy
    • colors
    • math
    • media
    • ssl
      • keystore
      • verification
      • server
      • client
      • tricky
    • windows
      • powershell
      • choco
      • wsl
      • wt
      • shortcut
      • clsid
      • env
      • shell:folder
  • vim
    • nvim
    • install
    • color
    • plugins
      • usage
      • other plugins
      • deprecated
    • tricky
    • viml
    • windows
    • troubleshooting
  • devops
    • admin tools
    • ssh
    • git
      • config
      • alias
      • submodule
      • eol
      • example
      • gerrit
        • gerrit API
      • github
      • troubleshooting
      • tricky
      • statistics
    • pre-commit
    • release-tools
    • tmux
      • cheatsheet
    • ansible
    • vault
    • artifactory
      • api
      • cli
      • aql
      • nginx cert
    • klocwork
      • kwadmin
      • kwserver
      • api
      • q&a
    • elk
    • mongodb
    • android
    • mobile
  • jenkins
    • config
      • windows
    • appearance
    • troubleshooting
    • jenkinsfile
      • utility
      • parallel
      • build
      • envvar
      • properties
      • trigger
      • node
    • script
      • job
      • build
      • stage
      • agent
      • security & authorization
      • exception
      • monitor
      • tricky
    • api
      • blueocean
    • cli
    • plugins
      • kubernetes
      • docker
      • shared-libs
      • lockable-resource
      • ansicolor
      • badge
      • groovy-postbuild
      • simple-theme
      • customizable-header
      • artifactory
      • jira-steps
      • job-dsl
      • build-timeline
      • crumbIssuer
      • coverage
      • uno-choice
      • tricky
  • virtualization
    • kubernetes
      • init
        • kubespray
        • kubeadm
          • environment
          • crio v1.30.4
          • docker v1.15.3
          • HA
        • addons
        • etcd
      • kubectl
        • pod
        • deploy
        • replicasets
        • namespace
        • secrets
      • node
      • certificates
      • events
      • kubeconfig
      • kubelet
      • troubleshooting
      • cheatsheet
      • auth
      • api
      • tools
        • monitor
        • helm
        • network
        • minikube
    • docker
      • run & exec
      • voume
      • remove
      • show info
      • dockerfile
      • dockerd
      • tricky
      • troubleshooting
      • windows
    • crio
    • podman
  • ai
    • prompt
  • osx
    • apps
      • init
      • brew
    • defaults
    • system
    • network
    • script
    • tricky
  • linux
    • devenv
    • util
      • time & date
      • output formatting
      • params
      • tricky
    • nutshell
    • disk
    • network
    • troubleshooting
    • system
      • apt/yum/snap
      • authorization
      • apps
      • x11
    • ubuntu
      • systemctl
      • x
    • rpi
  • programming
    • groovy
    • python
      • config
      • basic
      • list
      • pip
      • q&a
    • others
    • archive
      • angular
      • maven
      • mysql
        • installation
        • logs
      • ruby
        • rubyInstallationQ&A
  • tools
    • fonts
    • html & css
    • Jira & Confluence
    • node & npm
      • gitbook
      • hexo
      • github.page
      • code themes
    • app
      • microsoft office
      • vscode
      • virtualbox
      • iterm2
      • browser
      • skype
      • teamviewer
      • others
  • quotes
  • english
Powered by GitBook
On this page

Was this helpful?

  1. linux
  2. system

x11

PreviousappsNextubuntu

Last updated 6 months ago

Was this helpful?

xrdp

[!NOTE|label:references:]

  • centos

  • ubuntu

  • install

    # centos
    $ sudo yum clean all
    $ sudo yum makecache fast
    # optinal
    $ sudo yum -y update
    $ sudo yum install epel-release
    $ sudo yum groupinstall -y "Server with GUI"
    $ sudo yum groupinstall -y "Xfce"
    $ sudo sudo yum install -y xrdp tigervnc-server
    
    # ubuntu
    $ sudo apt update
    $ sudo apt install xfce4 xfce4-goodies -y
    $ sudo apt install xrdp -y
  • service

    $ sudo systemctl enable xrdp --now
    $ sudo systemctl start xrdp.service
    $ sudo firewall-cmd --add-port=3389/tcp --permanent
    $ sudo firewall-cmd --reload
    
    # centos
    $ sudo reboot
    $ echo "xfce4-session" > ~/.Xclients
    $ chmod a+x ~/.Xclients
    
    # ubuntu
    $ echo "xfce4-session" | tee ~/.xsession
    $ sudo systemctl restart xrdp
  • xrdp.ini

    $ cat /etc/xrdp/xrdp.ini | sed -r '/(^[;#].*)|(^\s*)$/d'
    
    # or
    $ cat /etc/xrdp/xrdp.ini | sed -e '/^[;#]/ d' -e '/^$/ d'
    
    # or
    $ cat /etc/xrdp/xrdp.ini | sed -e '/^[;#]/ d' | sed '/^$/ d'
    [Globals]
    ini_version=1
    fork=true
    port=3389
    use_vsock=false
    tcp_nodelay=true
    tcp_keepalive=true
    security_layer=negotiate
    crypt_level=high
    certificate=
    key_file=
    ssl_protocols=TLSv1.2, TLSv1.3
    autorun=
    allow_channels=true
    allow_multimon=true
    bitmap_cache=true
    bitmap_compression=true
    bulk_compression=true
    max_bpp=32
    new_cursors=true
    use_fastpath=both
    blue=009cb5
    grey=dedede
    ls_top_window_bg_color=009cb5
    ls_width=350
    ls_height=430
    ls_bg_color=dedede
    ls_logo_filename=
    ls_logo_x_pos=55
    ls_logo_y_pos=50
    ls_label_x_pos=30
    ls_label_width=65
    ls_input_x_pos=110
    ls_input_width=210
    ls_input_y_pos=220
    ls_btn_ok_x_pos=142
    ls_btn_ok_y_pos=370
    ls_btn_ok_width=85
    ls_btn_ok_height=30
    ls_btn_cancel_x_pos=237
    ls_btn_cancel_y_pos=370
    ls_btn_cancel_width=85
    ls_btn_cancel_height=30
    
    [Logging]
    LogFile=xrdp.log
    LogLevel=INFO
    EnableSyslog=true
    
    [LoggingPerLogger]
    
    [Channels]
    rdpdr=true
    rdpsnd=true
    drdynvc=true
    cliprdr=true
    rail=true
    xrdpvr=true
    tcutils=true
    
    [Xvnc]
    name=Xvnc
    lib=libvnc.so
    username=ask
    password=ask
    ip=127.0.0.1
    port=-1
How to Install XRDP on CentOS and RedHat Linux 8/7
How to Install Xrdp Server (Remote Desktop) on CentOS 8
How to Install Xrdp Server on CentOS 8
How to Enable Remote Desktop on CentOS 8/RHEL8.x
How To Enable Remote Desktop Protocol Using xrdp on Ubuntu 22.04
xRDP – Easy install xRDP on Ubuntu 20.04,22.04,23.XX (Script Version 1.4.8)
Access a remote desktop from Ubuntu
xrdp