How to create a (personal) virtual PC in Metacentrum Cloud for your project (thesis)
How to Get Access:
https://cloud.gitlab-pages.ics.muni.cz/documentation/cloud/register/
To request group project (ONLY if required, by default use personal project and skip this):
https://projects.cloud.muni.cz/
Configure access and security for virtual instances (allow port 22 for SSH)
https://docs.openstack.org/horizon/latest/user/configure-access-and-security-for-instances.html
Where to store the certificate from Openstack in local PC:
copy to ~/.ssh/
change permissions to:
chmod 400 ~/.ssh/yourprivatekey
or chmod 600 ~/.ssh/yourprivatekey
Remote Desktop Access
Ubuntu instance (gnome desktop and vnc installation):
$ sudo apt-get install --no-install-recommends ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal gnome-core
sudo apt-get install ubuntu-desktop gnome-panel gnome-settings-daemon metacity nautilus gnome-terminal gnome-core
$ sudo apt-get install vnc4server
If package vnc4server not found add deb source
deb https://apache.bintray.com/couchdb-deb bionic main
to sources list:
sudo nano /etc/apt/sources.list
VNC connection
Run VNC server on the remote PC:
vncserver -localhost :#
where #
is a number from 1-9
Create tunnel, for example for the above command used vncserver -localhost :4 :
Command on a local PC:
ssh ubuntu@<public_ip_cloud> -L 5904:localhost:5904
The authentication is with the certificate provided, stored in ~/.ssh/yourprivatekey
To stop or kill vnc server:
$ ps -x | grep vnc
$ kill /process number/0
or
$ vncserver :# -kill
More info about the openstack can be found on:
https://docs.openstack.org/horizon/latest/
How to tunnel over VNC using SSH for Windows:
https://helpdeskgeek.com/how-to/tunnel-vnc-over-ssh/
RDP connection
Configure access and security for virtual instances (allow port TCP 3389)
Follow this with:
sudo apt install xrdp
sudo systemctl enable xrdp