Skip to the content.

Initialise VM with all basic required packages used by developer

For virtualization we are using Proxmox Virtual Environment. You can VM create VM with any Operating system you may like. Here we are using ubuntu for regular development uses. So we have wrote script to install necessory packages & configure ubuntu to be used remotely.

Automated installations

Use install script to initialise your ubuntu VM. Just copy & paste below line in terminal. Then hit enter & sit relax untill script finished its work.

wget -qO init-vm https://raw.githubusercontent.com/tycheventures/vm-automations/main/init-vm/install.sh && sudo chmod +x init-vm && sudo bash init-vm

Manually installation

You can go with manual approach, if you want to modify packages.

XRDP configuration Commands:

  sudo apt-get update
  sudo apt-get upgrade
  sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils OR sudo apt install xubuntu-desktop
  sudo apt install xrdp 
  sudo systemctl status xrdp (for testing)
  sudo adduser xrdp ssl-cert 
  sudo systemctl restart xrdp
  sudo apt install samba	

XRDP fixes:

#### Xrdp popup showing

XRDP – New “AxRDP – New “Authentication Required…” Popup showing up in Ubuntu 19uthentication Required…” Popup showing up in Ubuntu 19.04 ##### Issue: Always ask for authentication * Switch to administrator mode. Sudo -s * Go to directy cd /etc/polkit-1/localauthority/50-local.d/ * Create file * cat > 45-allow-colord.pkla * Edit file * nano 45-allow-colord.pkla * Paste below code

  ```
  [Allow Colord all Users]
  Identity=unix-user:*
  Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile
  ResultAny=no
  ResultInactive=no
  ResultActive=yes   

  [Allow Package Management all Users]
  Identity=unix-user:*
  Action=org.debian.apt.*;io.snapcraft.*;org.freedesktop.packagekit.*;com.ubuntu.update-notifier.*
  ResultAny=no
  ResultInactive=no
  ResultActive=yes
  ```    #### XRDP Dock not showing:    ##### issue:
While you are connected remotely ubuntu dock is not showing.
Install following softwares and perform commands:    * Genome-shell extension
 `sudo apt install gnome-shell-extensions`
  
  After that change settings using:
   ```
   gnome-extensions enable ubuntu-dock@ubuntu.com
   gsettings set org.gnome.shell.extensions.dash-to-dock autohide true
   gsettings set org.gnome.shell.extensions.dash-to-dock dock-fixed true
   gsettings set org.gnome.shell.extensions.dash-to-dock intellihide true
   gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
   ```    * Dconf-editor
  `sudo apt-get install dconf-editor`
  
  After that change settings using: 
  ```
  dconf write /org/gnome/shell/extensions/dash-to-dock/extend-height true
  dconf write /org/gnome/shell/extensions/dash-to-dock/custom-theme-shrink true
  dconf write /org/gnome/shell/extensions/dash-to-dock/force-straight-corner true
  dconf write /org/gnome/shell/extensions/dash-to-dock/autohide true
  ```   

Manually installation of software.

Virtualization Server reference