Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

leporel

Members
  • Joined

  • Last visited

Everything posted by leporel

  1. My approach, a simple program in golang. It can be run by a script at Unraid startup. ./vmhook 192.168.1.2:8151 windows10 At http://192.168.1.2:8151 there will be a “start” button, below is the code and the compiled version of the program. You can add other behavior or other buttons and build the program yourself. // Command to build program: // go build -trimpath -ldflags "-s -w" -o vmhook main.go package main import ( "fmt" "net/http" "os" "os/exec" ) func main() { if len(os.Args) < 3 { fmt.Println("Usage: ./vmhook <address>:<port> <VM_name>") return } addr := os.Args[1] vmName := os.Args[2] // Handler for the index page http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { // Serve a simple HTML page with a button html := ` <html> <head> <title>Start Windows10 VM</title> </head> <body> <form action="/start" method="post"> <input type="submit" value="Start"> </form> </body> </html> ` fmt.Fprintf(w, html) }) // Handler for the start button http.HandleFunc("/start", func(w http.ResponseWriter, r *http.Request) { // Execute the command "virsh start windows10" cmd := exec.Command("virsh", "start", vmName) err := cmd.Run() if err != nil { fmt.Fprintf(w, "Error starting VM: %v", err) return } fmt.Fprintf(w, vmName+" VM has been started successfully") }) // Start the HTTP server fmt.Printf("Server is starting on %s\n", addr) err := http.ListenAndServe(addr, nil) if err != nil { fmt.Printf("Server failed to start: %v\n", err) } } vmhook

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.