Coder Social home page Coder Social logo

Comments (4)

a1ad avatar a1ad commented on July 24, 2024 4

Just for reference, the things I did to make it work:

git clone https://github.com/tailscale/tailscale-android.git
nano tailscale-android/cmd/tailscale/backend.go

change:

func (b *backend) Start(notify func(n ipn.Notify)) error {
	b.backend.SetNotifyCallback(notify)
	return b.backend.Start(ipn.Options{
		StateKey: "ipn-android",
	})
}

to:

func (b *backend) Start(notify func(n ipn.Notify)) error {
    b.backend.SetNotifyCallback(notify)
    prefs := ipn.NewPrefs()
    prefs.ControlURL = "https://myheadscale.example.org"
    opts := ipn.Options{
    StateKey: "ipn-android",
        UpdatePrefs: prefs,
    }
    return b.backend.Start(opts)
}

adjust the Dockerfile:
ARG GO_VERSION=1.17.1
and comment out or change the sha256sum to the 1.17.1 one.
save + exit

make dockershell

in the new docker:

make tailscale-debug.apk

you get the error: compile: version "go1.17.1" does not match go tool version "go1.17.1-ts097d128"
manual run these commands:

go run gioui.org/cmd/gogio -buildmode archive -target android -appid com.tailscale.ipn -o android/libs/ipn.aar github.com/tailscale/tailscale-android/cmd/tailscale

(cd android && ./gradlew assemblePlayDebug)
mv android/build/outputs/apk/play/debug/android-play-debug.apk tailscale-debug.apk

Copy the the apk to your mobile
Sign in with "other" and register the device

Done

from headscale.

kradalby avatar kradalby commented on July 24, 2024

Hi @khartahk we can't help you build the tailscale client, that's out of our ability to support.

The issue tracker is for tracking headscale issues.

from headscale.

chenxudong2020 avatar chenxudong2020 commented on July 24, 2024

可以做个linux的客户端的 项目吗

from headscale.

12nick12 avatar 12nick12 commented on July 24, 2024

This worked for me, thank you so much.

from headscale.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.