在Debian虚拟机中使用VirtualBox实现远程桌面连接,可以采用以下几种方法:
sudo apt-get update
sudo apt-get install tightvncserver
.vnc
目录并设置 VNC 配置文件:mkdir /.vnc
vim /.vnc/xstartup
xstartup
文件中添加以下内容(使用 GNOME 桌面环境为例,如需使用 XFCE,请替换):#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
gnome-session &
vncpasswd
vncserver :1
sudo apt-get update
sudo apt-get install xrdp
/etc/xrdp/xrdp.ini
文件:[General]
name=Debian VM
description=Remote desktop service
listen_port=3389
sudo systemctl enable xrdp
sudo systemctl start xrdp
以上就是在Debian虚拟机中使用VirtualBox实现远程桌面连接的方法,你可以根据自己的需求选择适合的方法。