Skip to content
mrseanryan edited this page Jan 8, 2019 · 16 revisions

Home

notes

Config of the Ubuntu Hyper-V VM on Windows

  • Created 'manually' not using the Quick option, so can configure hard drive size

    • Network Adapter: Default Switch
    • [after VM created] Secure Boot disabled (so Ubuntu ISO can boot)
  • memory:

    • basic VM: 3 Gb seems enough
    • with large site and containers: 10 Gb so docker containers in Ubuntu don't cause VM to freeze up
      • (maybe less memory would work, but 4 Gb also froze)
    • dynamic memory OFF as tends to grow too much
  • CPU:

    • set 4 virtual processors (I think total on my laptop was 8 physical cores)
  • Hard drive:

    • basic VM: 10 Gb is fine (5 Gb free)
    • large site and containers: 20 Gb in size
    • Hosted on SSD

Getting Fullscreen on Windows 10

[worked] RDP into Ubuntu running xrdp

summary:

  1. Install xrdp
sudo apt install xrdp
sudo systemctl enable xrdp
  1. logout (or reboot)
  2. do NOT login again
  3. Windows box: run mstsc
  4. Type in the IP address
  5. Connect
  6. enter Ubuntu user credentials
  7. connect using Xorg session
  • Make sure you’re not already logged on to the Ubuntu desktop… best thing is to restart and don’t logon
  • If you try Xorg session and it quickly disconnect… select the X11rdp from the drop-down list.. it will hang and not fully logon… close the session and try the Xorg session again… that time it will work… but keep prompting you to authenticate (about 'color')… you can cancel the prompt windows…
  • Restart again if step two doesn’t work right away.

https://websiteforstudents.com/connect-to-ubuntu-16-04-17-10-18-04-desktop-via-remote-desktop-connection-rdp-with-xrdp/

[failed] Stackoverflow about setting up a VNC server so can RDP from Windows (or Unix)

https://askubuntu.com/questions/234856/unable-to-do-remote-desktop-using-xrdp

Article about using the docker on the HOST machine

(I could not get this to connect)

Article about using (NOT running) docker inside a VM hosted on Windows:

https://medium.com/@sebagomez/installing-the-docker-client-on-ubuntus-windows-subsystem-for-linux-612b392a44c4

Also has another way of installing docker, that could avoid issue with hard-coding docker-compose version ?

references

similar project

https://github.com/snwh/ubuntu-post-install

preseeding Ubuntu install

https://www.google.com/url?sa=t&source=web&rct=j&url=https://help.ubuntu.com/lts/installation-guide/example-preseed.txt&ved=2ahUKEwjgkInxks7fAhVFYlAKHcXOCTMQFjADegQIChAB&usg=AOvVaw2hMxoDlC6bBQNpChX_ySHd

Terraform or Ansible or puppet or chef

Clone this wiki locally