Ubuntu 16.04 LXD Configuration

Packages

The following are standard packages I use on my host servers.

  • xrdp
  • tightvncserver (see https://freevps.us/thread-14110.html on tightvncserver vs vnc4server)
  • xfce4 (desktop environment, or lxde/lxqt)
  • zfsutils-linux
  • htop
  • iftop
  • ethtool
  • dstat
  • ufw

xrdp config

My /etc/xrdp/xrdp.ini looks like the following

[globals]
bitmap_cache=yes  
bitmap_compression=yes  
port=3389  
crypt_level=low  
channel_code=1  
max_bpp=24  
#black=000000
#grey=d6d3ce
#dark_grey=808080
#blue=08246b
#dark_blue=08246b
#white=ffffff
#red=ff0000
#green=00ff00
#background=626c72

[xrdp1]
name=sesman-Xvnc  
lib=libvnc.so  
username=ask  
password=ask  
ip=0.0.0.0  
port=-1

[xrdp2]
name=console  
lib=libvnc.so  
ip=0.0.0.0  
port=5900  
username=na  
password=ask

[xrdp3]
name=vnc-any  
lib=libvnc.so  
ip=ask  
port=ask5900  
username=na  
password=ask

[xrdp4]
name=sesman-any  
lib=libvnc.so  
ip=ask  
port=-1  
username=ask  
password=ask

[xrdp5]
name=rdp-any  
lib=librdp.so  
ip=ask  
port=ask3389

[xrdp6]
name=freerdp-any  
lib=libxrdpfreerdp1.so  
ip=ask  
port=ask3389  
username=ask  
password=ask

[xrdp7]
name=sesman-X11rdp  
lib=libxup.so  
username=ask  
password=ask  
ip=0.0.0.0  
port=-1  
xserverbpp=24  

Many of the steps were taken from various google results, below is the attempt to capture the good ones from my browser history.