Ubuntu 安装 Xfce4+Xrdp+Chrome 远程桌面

 
1、安装xrdp
apt-get install -y xrdp

2、安装xfce4
apt-get install -y xfce4

3、配置xfce4
echo "xfce4-session" >~/.xsession
创建.xsession文件并写入内容。

4、继续配置xfce4
vi /etc/xrdp/startwm.sh
在. /etc/X11/Xsession前一行插入
xfce4-session

5、重启xrdp
service xrdp restart

7、使用远程桌面连接mstsc.exe,连接之后类型选择sesman-xvnc
填写用户名和密码之后就好了

8. 安装中文字体
apt-get install fonts-droid-fallback ttf-wqy-zenhei ttf-wqy-microhei fonts-arphic-ukai fonts-arphic-uming

9.安装谷歌浏览器 下面保存为 chrome.sh

wget -q -O – https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
echo ‘deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main’ | sudo tee /etc/apt/sources.list.d/google-chrome.list
sudo apt-get update
sudo apt-get install google-chrome-stable

10.桌面创建 谷歌浏览器的快捷方式
桌面右键 ->Create Launcher -> Name 输入 google 会弹出 谷歌浏览器图标,选中它
Command 替换为 /usr/bin/google-chrome-stable –no-sandbox

11. 色深问题
3389 连接 点 显示选项 -> 显示 -> 颜色 选 增强色(16位)

 

I'd faced the same issue in my local server Ubuntu 20.04 (Installed xubuntu-desktop) and I had fixed it by executing the following command.

# echo "startxfce4" > ~/.Xsession
# chmod +x ~/.xsession
# sudo systemctl restart xrdp.service

If you get a Warning Message [Authentication is required to create a color managed device] while connecting to the Ubuntu server through Xrdp, you need to execute the following commands to ignore it:

# cd /usr/share/polkit-1/actions/

# vi org.freedesktop.color.policy

Modify <allow_any> settings from auth_admin to yes.

<defaults> 
      <allow_any>yes</allow_any>
      <allow_inactive>no</allow_inactive>
      <allow_active>yes</allow_active>
</defaults>

# reboot 

 

  • 2
    点赞
  • 13
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
Ubuntu 20.04上安装XRDP服务器(远程桌面)可以让用户通过远程连接访问Ubuntu桌面。以下是详细的安装步骤: 1. 打开终端,使用以下命令更新软件包列表: ```shell sudo apt update ``` 2. 接着安装xrdp软件包: ```shell sudo apt install xrdp ``` 3. 安装完毕后,XRDP会自动启动并运行,无需手动启动。你可以通过以下命令检查XRDP的运行状态: ```shell systemctl status xrdp ``` 4. Ubuntu默认情况下使用GDM3作为桌面环境管理器。为了使xrdp正常工作,你需要编辑`/etc/xrdp/startwm.sh`文件。使用以下命令打开该文件: ```shell sudo nano /etc/xrdp/startwm.sh ``` 5. 在文件末尾,找到`unset DBUS_SESSION_BUS_ADDRESS`这一行,将其注释掉(在行首添加`#`号): ```shell # unset DBUS_SESSION_BUS_ADDRESS ``` 6. 保存并关闭文件,然后重新启动xrdp服务: ```shell sudo systemctl restart xrdp ``` 7. 如果你使用的是默认的GDM3桌面环境管理器,则完成上述步骤后,你应该可以通过远程连接访问Ubuntu桌面了。 8. 如果你使用的是其他桌面环境(比如Xfce),你还需要编辑`/etc/xrdp/startwm.sh`文件,并在文件末尾添加以下内容(以支持Xfce桌面环境): ```shell startxfce4 ``` 9. 保存并关闭文件,然后重新启动xrdp服务: ```shell sudo systemctl restart xrdp ``` 10. 现在,你应该可以通过远程连接访问Ubuntu上的Xfce桌面了。 希望以上步骤对你有所帮助!

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Sunday_ding

一分钱也是爱

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值