Last active
December 15, 2022 18:11
-
-
Save teslamint/4c045de778d1d070bd15a2effa021aaf to your computer and use it in GitHub Desktop.
Install cloudflared into Turris Omnia(OpenWrt 19.07)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
opkg update | |
opkg install golang gcc | |
# ref: https://forum.openwrt.org/t/usr-bin-ld-cannot-find-lpthread/18404/10 | |
ar -rc /usr/lib/libpthread.a | |
ar -rc /usr/lib/libl.a | |
ar -rc /usr/lib/libdl.a | |
go get github.com/cloudflare/cloudflared/cmd/cloudflared | |
mv go/bin/cloudflared /usr/bin/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
go get github.com/cloudflare/cloudflared/cmd/cloudflared - Does not seem to work as get the message below:
Instead try the following?
go install github.com/cloudflare/cloudflared/cmd/cloudflared@latest