Frequently Asked Question

Deploy Ubuntu Linux System with GUI
Last Updated 3 years ago

It may be required to deploy Linux Systems with GUI on Cloud. The following steps enable GUI in an Ubuntu Linux system.

## Setting up display manager (lightdm) and XWindow manager(xfce)
apt update && apt upgrade
apt install lightdm
systemctl start lightdm
apt install xubuntu-core
systemctl set-default graphical.target

## setting up rdp
apt install xrdp
adduser xrdp ssl-cert 

## setting up 2fa for xrdp
apt install libpam-google-authenticator

## edit the pam file as mentioned below
nano /etc/pam.d/common-auth
## Insert the line before pam_unix.so
auth   required pam_google_authenticator.so  forward_pass
## modify the pam_unix line as follows
auth  sufficient pam_unix.so nullok use_first_pass


....ScreenSaver issue may need to be updated

Reference:
https://www.servermania.com/kb/articles/ubuntu-server-gui/

https://github.com/matt335672/xrdp/wiki/Using-Authy-or-Google-Authenticator-for-2FA-with-XRDP

Loading ...