captive-browser
captive-browser copied to clipboard
Maybe a bit help for us n00bies?
I run just today first time into the problem of captive portal not showing up on Debian like it does on Win, MacOS and IOS. Searching for a solution I bumped into this. I'm sure the provided instructions are quite clear if you're a (Go?) coder, but I've got no idea how to get this working. I've downloaded Go and Google Chrome and installed the ubuntu .toml file into .config, but what next?
Maybe someone could spend a bit of time to write a clear step-by-step for us regular users?
+1 Install instructions seem to be incorrect:
$ go get -u github.com/FiloSottile/captive-browser
go get: installing executables with 'go get' in module mode is deprecated.
Use 'go install pkg@version' instead.
For more information, see https://golang.org/doc/go-get-install-deprecation
or run 'go help get' or 'go help install'.
It's because gopkg is deprecated and does not work with the newer golang compiler releases. If you use the code from https://github.com/FiloSottile/captive-browser/pull/26 you can run go build and it will compile captive-browser locally.
Works great for me. Here is how I did it. Please add it to the installation instructions. Make sure you have installed golang
cd ~
go install github.com/FiloSottile/captive-browser@latest
# Check if it installed
cd go/bin
ls captive-browser -lsa
# copy toml config file from package path to your local ~/.config. Yours may be different
cd ~/go/pkg/mod/github.com/\!filo\!sottile/[email protected]
cp captive-browser-ubuntu-chrome.toml ~/.config/captive-browser.toml
cd ~
# run it. If you are already connected, you are just going to get an Example page.
# If not you will be redirected to the hotspots signin page
$(go env GOPATH)/bin/captive-browser