Google Cloud VM: How to install Ubuntu 18.04 (desktop environment) with teamviewer remote access
- Login to your google cloud console
- Click on Resources - Computer Engine
- Click on Create Instance
- Click on SSH button to remote into the ubuntu instance
- change the default user password by typing :
sudo passwd username (your username)
(we will need password to login to GUI later)
- type:
sudo su -
to become root
- change the root user password as well type:
passwd
- enable password for SSH login by edit the file: (not sure if this needed, but i just do that)
nano /etc/ssh/sshd_config
change PasswordAuthentication no
to PasswordAuthentication yes
add: PermitRootLogin yes
service ssh restart
- type following command 1 by 1:
apt update
apt-get upgrade
apt-get install ubuntu-desktop ( require some time, please wait )
apt-get install xserver-xorg-video-dummy
- edit the xorg conf:
nano /etc/X11/xorg.conf
add following:
Section "Device"
Identifier "Configured Video Device"
Driver "dummy"
EndSection
Section "Monitor"
Identifier "Configured Monitor"
HorizSync 31.5-48.5
VertRefresh 50-70
EndSection
Section "Screen"
Identifier "Default Screen"
Monitor "Configured Monitor"
Device "Configured Video Device"
DefaultDepth 24
SubSection "Display"
Depth 24
Modes "1600x900"
EndSubSection
EndSection
- reboot the server:
reboot
- login as root again using:
sudo su -
- install teamviewer:
apt install gdebi -y
cd /tmp
wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb
gdebi teamviewer_amd64.deb
teamviewer license accept
teamviewer daemon enable
teamviewer daemon start
teamviewer passwd thenewpassword
teamviewer info
on the teamviewer info you should able to get the teamviewer ID and password use the password you set above.
View Recorded video at:
Enjoy, dont forget to Like my video on Youtube :))