Skip to content

Instantly share code, notes, and snippets.

View oliverkurth's full-sized avatar

Oliver Kurth oliverkurth

View GitHub Profile
@oliverkurth
oliverkurth / VMwareFusion_Export_ovf.txt
Created January 19, 2024 02:14 — forked from TeroKeso/VMwareFusion_Export_ovf.txt
HowTo Export a VM in OVA format in VMware Fusion for OS X
> cd /Applications/VMware\ Fusion\ Tech\ Preview.app/Contents/Library/VMware\ OVF\ Tool
> ./ovftool --acceptAllEulas /Users/$USER/Virtual\ Machines.localized/Windows\ 11\ 64-bit\ Arm\ 2.vmwarevm/Virtual\ Disk.vmx /Users/$USER/export.ova
@oliverkurth
oliverkurth / photon-passwd-reset.md
Last active May 21, 2023 01:50
reset lost password on Photon 4.0

Instructions at https://vmware.github.io/photon/assets/files/html/3.0/photon_troubleshoot/resetting-a-lost-root-password.html work.

In case the web page gets lost:

Restart the Photon OS machine or the virtual machine running Photon OS.

When the Photon OS splash screen appears as it restarts, type the letter e to go to the GNU GRUB edit menu quickly. Because Photon OS reboots so quickly, you won't have much time to type e. Remember that in vSphere and Workstation, you might have to give the console focus by clicking in its window before it will register input from the keyboard.

Second, in the GNU GRUB edit menu, go to the end of the line that starts with linux, add a space, and then add the following code exactly as it appears below:

@oliverkurth
oliverkurth / build-ovt.md
Last active March 22, 2021 23:25
Building open-vm-tools if package does not exist for arch (eg. ARM)

Install docker:

sudo apt install docker.io

Create a working directory:

mkdir ovt-build
cd ovt-build
@oliverkurth
oliverkurth / esxi_on_pi.md
Last active May 3, 2022 11:03
VMware ESXi on Raspberry Pi

Instructions from https://tasmota.github.io/docs/Sonoff-DIY/ , but more unixy. Using additional information from https://github.com/itead/Sonoff_Devices_DIY_Tools/blob/master/other/SONOFF%20DIY%20MODE%20Protocol%20Doc%20v1.4.md , especially for the ota_flash command.

Prerequesites: httpie (apt install httpie), docker. curl instead of httpie probably works too.

  • plug in device to power
  • press button for > 5 seconds (first attempt failed, worked after reconnecting)
  • connect to wifi itead_..., password 12345678 with a phone (remember to turn off cell data)
  • point browser on phone to 10.10.7.1 and configure your wifi
  • find IP address from dhcp leases file (or fing or whatever)
  • echo '{"data": {}}' | http -j post http://192.168.2.238:8081/zeroconf/info , and take note of the deviceid.
@oliverkurth
oliverkurth / multiple-ssids.md
Last active December 23, 2020 00:19
hostapd with multiple SSIDS
@oliverkurth
oliverkurth / gist.md
Last active April 10, 2024 16:08
install DisneyPlus, Netflix, Prime on kodi
@oliverkurth
oliverkurth / gist:4e99aa1225cda5d918519369dea68bf1
Last active December 16, 2020 23:09
wlan clients not able to reach each other

When hostapd iface (ap1) is bridged to eth0, pinging from one client to another that is connected to the same interface won't work until another host on eth0 pings that client. ap_isolate is not set. No issues with non-bridged hostapd interface.

Solution is to set hairpin mode:

echo 1 > /sys/devices/virtual/net/br0/lower_ap1/brport/hairpin_mode

To make it permanent when using systemd-networkd:

@oliverkurth
oliverkurth / pi-ap-managed.md
Last active July 16, 2023 20:49
Simultanous AP and managed mode in a Raspberry Pi 3 or Zero using systemd-networkd