Install KDE Plasma and XRDP on Ubuntu Server

简介: Install KDE Plasma and XRDP on Ubuntu Server

Install KDE Plasma and XRDP on Ubuntu Server


Install KDE Plasma

sudo apt-get install kde-plasma-desktop

Choose sddm.


Install XRDP

sudo apt-get install xrdp
sudo sed -e 's/^new_cursors=true/new_cursors=false/g' \
           -i /etc/xrdp/xrdp.ini
sudo adduser xrdp ssl-cert
echo "/usr/bin/startplasma-x11" > ~/.xsession
D=/usr/share/plasma:/usr/local/share:/usr/share:/var/lib/snapd/desktop
C=/etc/xdg/xdg-plasma:/etc/xdg
C=${C}:/usr/share/kubuntu-default-settings/kf5-settings
cat <<EOF > ~/.xsessionrc
export XDG_SESSION_DESKTOP=KDE
export XDG_DATA_DIRS=${D}
export XDG_CONFIG_DIRS=${C}
EOF
sudo systemctl enable xrdp
sudo systemctl restart xrdp

Quit immediately after credentials

Stop xrdp with sudo service xrdp stop.

Edit the xrdp start script: sudo nano /etc/xrdp/startwm.sh.

In this file, replace the lines

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

with

#(@obsolete)startxfce4
/usr/bin/startplasma-x11

Restart xrdp with sudo service xrdp start.


Strange KDE bug: can’t resize or move windows

#(@obsolete)killall kwin
killall kwin_x11
#(@obsolete)kwrapper kwin -replace &
kwrapper5 kwin_x11 --replace &

The desktop is black (No desktop)

#(@Obsolete)killall plasma-desktop
#(@Obsolete)kstart plasma-desktop
#(@Obsolete)killall plasmashell #to stop it
#(@Obsolete)kstart plasmashell #to restart it
kquitapp5 plasmashell
kstart5 plasmashell
目录
相关文章
|
11月前
|
Ubuntu 安全 Linux
百度搜索:蓝易云【Ubuntu 20.04 安装VNC Server的教程。】
请注意,VNC连接是以明文形式传输数据的,因此建议在安全的网络环境中使用VNC,并设置强密码以确保安全性。
224 1
|
30天前
|
Ubuntu 网络安全 数据安全/隐私保护
ubuntu server连接wifi教程
本文提供了一个简化Ubuntu Server在Raspberry Pi系统上配置过程的脚本"config_ubuntu_server",包括自动和手动两种方法来设置root权限、SSH配置,并连接WiFi,同时支持无密码SSH访问,适合初学者和高级用户。
48 3
|
30天前
|
Ubuntu 网络协议 开发工具
在 Ubuntu Server 上配置静态 IP 地址
在 Ubuntu Server 上配置静态 IP 地址
109 0
|
10月前
|
存储 缓存 NoSQL
如何解决Ubuntu server 下 Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”.
如何解决Ubuntu server 下 Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”.
339 0
|
4月前
|
存储 Ubuntu 网络安全
|
4月前
|
Ubuntu 网络安全 虚拟化
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
207 1
【Ubuntu】Win11 VmWare虚拟机安装Ubuntu 22.04.1-server
|
4月前
|
NoSQL MongoDB Docker
Ubuntu18 Install MongoDB
Ubuntu18 Install MongoDB
52 0
|
12月前
|
消息中间件 网络协议 Ubuntu
Ubuntu安装RabbitMQ server - 在外远程访问【内网穿透】
通过在ubuntu+cpolar+rabbitMQ环境下,实现mq服务端远程访问。
Ubuntu安装RabbitMQ server - 在外远程访问【内网穿透】
|
Ubuntu
树莓派 ubuntu server 22.x 连接无线网络
树莓派 ubuntu server 22.x 连接无线网络
145 0
|
Ubuntu 前端开发 JavaScript
在一个裸的Ubuntu server中我做了哪些
在一个裸的Ubuntu server中我做了哪些
106 1