Ubuntu desktop:修订间差异
跳到导航
跳到搜索
无编辑摘要 |
(→Error) |
||
(未显示同一用户的14个中间版本) | |||
第1行: | 第1行: | ||
=== Remote(Windows) === | === Remote(Windows) === | ||
==== Install ==== | |||
Port: 3389, 3350 | Port: 3389, 3350 | ||
# apt install ubuntu-desktop | # apt install ubuntu-desktop | ||
# apt install xrdp | # apt install xrdp | ||
# systemctl restart xrdp | # systemctl restart xrdp # 下面变更配置后,需要重启 | ||
重安装可解决忽然连接不上/黑屏等问题。 | |||
==== Error ==== | |||
===== 可连接,但黑屏 ===== | |||
# kill 掉用户的所有进程 | |||
pkill -u bi | |||
===== 需要将相应用户加入组 ===== | |||
# root 可登录,其他用户黑屏 | |||
adduser xrdp ssl-cert | |||
adduser bi ssl-cert | |||
#--- | |||
/var/log/xrdp.log | |||
[ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied | |||
-rw-r----- 1 root ssl-cert 1704 Nov 18 05:58 /etc/ssl/private/ssl-cert-snakeoil.key | |||
< | ===== /etc/xrdp/startwm.sh ===== | ||
unset DBUS_SESSION_BUS_ADDRESS | |||
unset XDG_RUNTIME_DIR | |||
<small>''test -x /etc/X11/Xsession && exec /etc/X11/Xsession''</small> | |||
<small>''exec /bin/sh /etc/X11/Xsession''</small> | |||
# 需要重启服务 | |||
===== kill firefox 进程 ===== | |||
Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile. | |||
窗口打开 firefox 时,提示已打开 | |||
kill -9 `ps -ef|grep firefox|awk '{print $2}'|xargs` | |||
===== SSL_accept: I/O error ===== | |||
systemctl status xrdp | |||
[ERROR] SSL_accept: I/O error | |||
[ERROR] trans_set_tls_mode: ssl_tls_accept failed | |||
... | |||
# 以上错误并未影响使用 | |||
=== VNC === | === VNC === | ||
apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils | apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils | ||
apt install tigervnc-standalone-server tigervnc-common | |||
* INIT: vncserver | |||
* Run : vncserver :1 -localhost no -geometry 1280x800 -depth 32 | |||
no 允许远程机器连接,默认不允许 | |||
* List: vncserver -list | |||
* Exit: vncserver -kill :1 | |||
[[分类:Linux]] | [[分类:Linux]] | ||
[[分类:Ubuntu]] |
2024年10月18日 (五) 10:25的最新版本
Remote(Windows)
Install
Port: 3389, 3350
- apt install ubuntu-desktop
- apt install xrdp
- systemctl restart xrdp # 下面变更配置后,需要重启
重安装可解决忽然连接不上/黑屏等问题。
Error
可连接,但黑屏
# kill 掉用户的所有进程 pkill -u bi
需要将相应用户加入组
# root 可登录,其他用户黑屏 adduser xrdp ssl-cert adduser bi ssl-cert #--- /var/log/xrdp.log [ERROR] Cannot read private key file /etc/xrdp/key.pem: Permission denied -rw-r----- 1 root ssl-cert 1704 Nov 18 05:58 /etc/ssl/private/ssl-cert-snakeoil.key
/etc/xrdp/startwm.sh
unset DBUS_SESSION_BUS_ADDRESS unset XDG_RUNTIME_DIR test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession # 需要重启服务
kill firefox 进程
Firefox is already running, but is not responding. To use Firefox, you must first close the existing Firefox process, restart your device, or use a different profile.
窗口打开 firefox 时,提示已打开
kill -9 `ps -ef|grep firefox|awk '{print $2}'|xargs`
SSL_accept: I/O error
systemctl status xrdp [ERROR] SSL_accept: I/O error [ERROR] trans_set_tls_mode: ssl_tls_accept failed ... # 以上错误并未影响使用
VNC
apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils apt install tigervnc-standalone-server tigervnc-common
- INIT: vncserver
- Run : vncserver :1 -localhost no -geometry 1280x800 -depth 32
no 允许远程机器连接,默认不允许
- List: vncserver -list
- Exit: vncserver -kill :1