Ubuntu & Windows

Windows sub system style (LINUX in WINDOWS)

Where you get terminal of entire linux

step 1

https://docs.microsoft.com/en-us/windows/wsl/install-win10

step 2

https://ubuntu.com/tutorials/tutorial-ubuntu-on-windows#1-overview

Multiple styles to enable same

https://www.windowscentral.com/install-windows-subsystem-linux-windows-10

Note: we only get full terminal, no UI like GNOME..etc (In parallel - can use windows + Linux terminal)

Linux as virtual OS using Hyper-V (LINUX in WINDOWS)

https://www.windowscentral.com/how-run-linux-distros-windows-10-using-hyper-v

Note : Available on Windows 10 Pro, Enterprise, and Education. We allocate specific/ limited hardware resources like 2GB RAM..etc (In parallel - can use windows + Linux)

Dual OS (LINUX with WINDOWS)

https://www.linuxtechi.com/dual-boot-ubuntu-18-04-lts-with-windows-10/

https://itsfoss.com/install-ubuntu-1404-dual-boot-mode-windows-8-81-uefi/

Note:

Worked

  • From live USB -> try ubuntu without installing -> Use boot repair
  • Also use particular laptop/ desktop choose boot pop up option

Shared storage

https://helpdeskgeek.com/how-to/how-to-create-a-shared-storage-drive-for-dual-boot-systems/

Note: we only get full UI + terminal, also leverage full hardware power. (One at a time - either use windows or Linux)

Virtual box (WINDOWS in LINUX)

Install it from software center or

sudo apt install virtualbox
  • Choose virtual box software (currently in ubuntu) 01

  • Creating virtual env for windows (Just naming & hardware allocation process) 02

  • RAM allocation 03

  • Hard drive 04

  • Virtual box disk image (so cross compatible with other OS virtual box) 05

06

  • After hardware allocation 07

  • Installing actual OS, go to settings of that item 08

  • Choose image (.iso) file of windows 10 09

10

  • Click on start of that item 11

  • First time installation process will be prompted, next time onwards actual OS with the state left 12

  • Say multiple items are added in virtual box (here windows 10 & ubuntu server edition) 13

Virtual box Folder sharing

  • say ubuntu host (where Virtual box exists) to ubuntu client

  • UI Ref, in virtual boxUI, select machine -> settings -> shared -> add folder to be shared

  • In client machine

sudo apt install virtualbox-guest-utils
//add that machine user to vboxsf group
sudo adduser $USER vboxsf
  • Now in other locations, can see shared folder mounted

  • For windows, In virtual box menu window for that OS,

    • click "Devices -> InsertGuestAddition CD Image", it will prompt to download for first time
    • cd drive will be added in windows box, just install that software to see shared folder added
    • ref

Virtual Box Static IP assignment

  • Ref

  • File -> Host Network Manager, create network address say vboxnet0 (some auto ip series - say 192.168.56.1/24)

  • Select any virtual box os, settings-> Network -> select adapter 2, Attached to -> Host only Adapter -> select vboxnet0

  • Login into Virtual box OS, check "ip a", find ethernet name & configure same in netplan for sattic ip

  • Check install-server.md, to assign static ip (netplan) to server

//example in '/etc/netplan/99_config.yaml' file
network:
version: 2
renderer: networkd
ethernets:
enp0s8: //add from here ***
addresses: [192.168.56.101/24]
dhcp4: false
//later
sudo netplan apply

Virtualbox screen resolution (server)

  • for desktop, from ui can change screen resolution

  • for server ref

  • Supported resolutions can be identified from within grub. Hit 'c' at the grub prompt, then type:

vbeinfo
  • after checking, type reboot command
  • change in etc/default/grub file
GRUB_GFXMODE=1280x1024 # respective
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset"
GRUB_GFXPAYLOAD_LINUX=keep
  • close the file & run following
sudo update-grub
sudo reboot