Posts

Showing posts from November, 2021

Installing Ubuntu 20.04 on old intel macbookpro

Image
After gettting a new last of the intel macbook air, I decided to install ubuntu on my older mac. The setup was fairly simple after downloading the lastest iso from ubuntu and using a windows machine to create the bootable USB drive. On rebooting, hold down on the option button and select the USB icon partition. Oddly, mine said "windows". After a few clicks and ubuntu was installed. I realised that wireless wasn't available because it's a proprietary driver and you need internet to enable it. kinda like a catch 22. But bluetooth works, so I paired my android phone and used my android phone as a bluetooth modem which gets it's internet from the wireless network. It was a bit confusing to keep trying to use mac shortcut keys and the right click didn't work. apt install server-xorg-input-synaptics Go to startup applications and add add the command synclient RightButtonAreaLeft=1 To update the graphics driver apt search nvidia-driver sudo apt install ...

Hyper-V NAT network setup using the default switch

This was the easiest guide to use the default virtual switch to enable NAT for the VMs to download patches from the internet without adding more IP addresses to your network. https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/user-guide/setup-nat-network Basically steps are: 1. Start Powershell as administrator 2. PS C:\WINDOWS\system32> Get-NetAdapter 3. "Extract the ifIndex for the Hyper-V Virtual Ethernet Adapter. In my case it was 28" 4. PS C:\WINDOWS\system32> New-NetIPAddress -IPAddress 172.16.0.1 -PrefixLength 24 -InterfaceIndex 28 5. PS C:\WINDOWS\system32>New-NetNat -Name NAT -InternalIPInterfaceAddressPrefix 172.16.0.0/24 6. After that, go to the VM and assign a static IP address to the VM as 172.16.0.2 with subnet mask as 255.255.255.0 and gateway as 172.16.0.1. DNS settings can be 8.8.8.8