Last active
August 3, 2020 12:52
-
-
Save zzilch/2733729bdeb3be745411b3075b9eefe2 to your computer and use it in GitHub Desktop.
Remote Desktop
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#################### | |
1. Install Xrdp | |
#################### | |
# x remote desktop protocol: for rdp connection | |
sudo apt install xrdp | |
# now try connect to the server using rdp tools like windows mstsc or mobaxterm | |
# then xrdp will create xrdp.ini and sesman.ini in /etc/xrdp | |
# when we login we will get a blank desktop | |
#################### | |
2. Config Desktop | |
#################### | |
# using gnome desktop with hub when start x session | |
# default config can be found in /usr/share/xsession/xxx.destop Exec= | |
echo "GNOME_SHELL_SESSION_MODE=ubuntu gnome-session" >> ~/.xsession | |
# Other desktop environment: installed frist (such as vanilla-gnome-desktop) | |
# startlxde | |
# startxfce4 | |
# startkde | |
# gnome-session | |
#################### | |
3. Use Xorg | |
#################### | |
# only 1 Xorg session can be established, for the main user | |
# xorg for xrdp: start xorg server for xrdp session | |
sudo apt install xorgxrdp | |
# log in an xorg session will bring you into the ubuntu desktop | |
#################### | |
4. Use XVnc | |
#################### | |
# multiuser | |
# install tigervnc or vnc4server | |
sudo apt install tigervnc-common tigervnc-standalone-server | |
# reboot and connect to the server using Xvnc session | |
#################### | |
4. Use Vino | |
#################### | |
# active ubuntu root vncserver vino | |
gsettings set org.gnome.Vino network-interface lo # only for local | |
gsettings reset org.gnome.Vino network-interface # for anywhere | |
# GUI settings-sharing-screen sharing-on, then set a password | |
# set require-encryption false for some situation | |
gsettings set org.gnome.Vino require-encryption false | |
# edit xrdp.ini | |
sudo nano /etc/xrdp/xrdp.ini | |
# add a session for xrdp | |
[Vino] | |
name=Vino | |
lib=libvnc.so | |
username=na | |
password=ask | |
ip=127.0.0.1 | |
port=5900 | |
#################### | |
5. Xorg + X11Vnc | |
#################### | |
sudo apt install x11vnc | |
# set a password | |
x11vnc -storepasswd | |
# start x11vnc in a x session | |
x11vnc -auth guess -forever -loop -noxdamage -repeat -rfbauth /home/USERNAME/.vnc/passwd -rfbport 5910 -shared | |
# now connect to the 5910 port using vnc-any session in xrdp | |
# config x11vnc automatically start | |
#################### | |
6. Check Xsession | |
#################### | |
ps aux | grep X | |
#################### | |
Reference | |
#################### | |
https://devblogs.nvidia.com/linking-opengl-server-side-rendering/ | |
https://devblogs.nvidia.com/egl-eye-opengl-visualization-without-x-server/ | |
https://wayland.freedesktop.org/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment