Debian 10 Gnome desktop RDP pripojenie
Pre pripojenie na ubuntu alebo debian dekstop s prostredim gnome je potrebne nainstalovat baliky xrdp a VNC .
Instalacia VNC :
apt install tigervnc-standalone-server tigervnc-xorg-extension tigervnc-viewer gnome-session-flashback
Instalacia XRDP
apt install xrdp
Pripojenie pomocou VNC servera:
Vytvorenie pristupoveho hesla pre VNC server
vncpasswd
Pridanie podpory gnome pre VNC
nano ~/.vnc/xstartup
Vytvorit konfiguracny subor:
#!/bin/sh
# Start Gnome 3 Desktop
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
vncconfig -iconic &
dbus-launch --exit-with-session gnome-session &
chmod +x ~/.vnc/xstartup
Zapnutie vnc servera
vncserver
Aktivovanie autostart cez systemd
nano /etc/systemd/system/vncserver@.service
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target
[Service]
Type=forking
User=sammy
Group=sammy
WorkingDirectory=/home/sammy
PIDFile=/home/sammy/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 1280x800 :%i
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
systemctl daemon-reload
systemctl enable vncserver@1.service
systemctl enable xrdp
Pripojenie pomocou XORG:
sudo sed -i 's/allowed_users=console/allowed_users=anybody/' /etc/X11/Xwrapper.config
nano /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf
polkit.addRule(function(action, subject) {
if ((action.id == "org.freedesktop.color-manager.create-device" ||
action.id == "org.freedesktop.color-manager.create-profile" ||
action.id == "org.freedesktop.color-manager.delete-device" ||
action.id == "org.freedesktop.color-manager.delete-profile" ||
action.id == "org.freedesktop.color-manager.modify-device" ||
action.id == "org.freedesktop.color-manager.modify-profile") &&
subject.isInGroup("{group}")) {
return polkit.Result.YES;
}
});
apt-get install gnome-tweak-tool -y