服务器如何配置XRDP以启动默认桌面会话

分享于 

2分钟阅读

ubuntu

  繁體

http://sigkillit.com/tag/xrdp

为xRDP会话自定义桌面环境

如果不想使用默认的桌面环境,可以通过在主目录中创建一个.Xclients文件(X为大写)来自定义它,以便启动桌面环境,为此,请打开终端,并运行以下命令之一

Gnome 3:


echo"gnome-session" > ~/.Xclients


chmod +x ~/.Xclients


sudo systemctl restart xrdp.service



Gnome Fallback :


echo"gnome-fallback" > ~/.Xclients


chmod +x ~/.Xclients


sudo systemctl restart xrdp.service



KDE:


echo"startkde" > ~/.Xclients


chmod +x ~/.Xclients


sudo systemctl restart xrdp.service



MATE :


echo"mate-session" > ~/.Xclients


chmod +x ~/.Xclients


sudo systemctl restart xrdp.service



Cinnamon :


echo"cinnamon" > ~/.Xclients


chmod +x ~/.Xclients


sudo systemctl restart xrdp.service



Xfce4:


echo"startxfce4" > ~/.Xclients


chmod +x ~/.Xclients


sudo systemctl restart xrdp.service




例如要启动xfce,我使用:


#!/bin/sh


if [ -r /etc/default/locale ]; then


 . /etc/default/locale


 export LANG LANGUAGE


fi



# default (= ubuntu)


#. /etc/X11/Xsession



# unity 2d


#echo"gnome-session --session=ubuntu-2d" > ~/.xsession


#. /etc/X11/Xsession



# xfce


startxfce4



exit(0)




Server  STA  DEF  桌面  ses  Session  
相关文章