Sunday, October 31, 2021

Error building gotk3 in Msys2 [Golang]


While building Go program that requires Gotk3 under Msys2, this error may appear during the build.

go build github.com/gotk3/gotk3/gdk: invalid flag in pkg-config --libs: -Wl,-luuid

Run this command to fix the misconfiguration in the packaged gdk PC file and rebuild.

bash -c "sed -i -e 's/-Wl,-luuid/-luuid/g' /mingw64/lib/pkgconfig/gdk-3.0.pc"

Saturday, July 31, 2021

Hyper-v integration with Debian: how to get IP address via powershell

For powershell query to obtain network adapter information of the Debian Buster vm I've installed,

I need to install hyper-v daemon 


```sudo apt-get install hyperv-daemon```


Powershell will be able to query the network information  once it's installed in the guest.

get-vm | ?{$_.State -eq "Running"} | select -ExpandProperty networkadapters | select vmname, macaddress, switchname, ipaddresses


VMName   MacAddress   SwitchName     IPAddresses

------   ----------   ----------     -----------

buildVM 00155D7B6A07 Default Switch {172.25.28.124, fe80::215:5df0:f37b:6a07}