xrdp设置默认的连接桌面

前言

在Debian中有时候安装了多个桌面,比如lxqt、kde等,启动xrdp时会有一个默认的连接桌面,默认的可能不是kde。

环境:
Debian12 + xrdp

# 编辑 sudo cat /etc/xrdp/startwm.sh ,打开类似如下内容

#!/bin/sh
# xrdp X session start script (c) 2015, 2017, 2021 mirabilos
# published under The MirOS Licence

# Rely on /etc/pam.d/xrdp-sesman using pam_env to load both
# /etc/environment and /etc/default/locale to initialise the
# locale and the user environment properly.

if test -r /etc/profile; then
        . /etc/profile
fi

if test -r ~/.profile; then
        . ~/.profile
fi

#test -x /etc/X11/Xsession && exec /etc/X11/Xsession
#exec /bin/sh /etc/X11/Xsession

注释掉其中的test和exec两行,添加一行设置默认桌面为kde,

exec startplasma-x11
posted @   journeyerxxx  阅读(67)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 分享一个免费、快速、无限量使用的满血 DeepSeek R1 模型,支持深度思考和联网搜索!
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· ollama系列01:轻松3步本地部署deepseek,普通电脑可用
· 25岁的心里话
· 按钮权限的设计及实现
历史上的今天:
2022-12-09 vscode 远程连接问题
返回顶部
点击右上角即可分享
微信分享提示