Coder Social home page Coder Social logo

Comments (10)

adyanth avatar adyanth commented on May 17, 2024 1

Umm, maybe try copying over the tailscale.state file from another device after performing tailscale up ? I am not sure if it would work because I remember it uses some device unique ID.

from openwrt-tailscale-enabler.

bam80 avatar bam80 commented on May 17, 2024 1

Thanks, this is a bright idea!
Until we didn't test it/have not instructions - should we edit Readme a bit to note about the RAM restrictions?

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 17, 2024

Hey @bam80 I have a device with 128MB RAM and it definitely uses more than 64MB.

Once the tailscale up is run the first time, you can delete the tailscale binary, leaving just the daemon running. It is only needed for configuration.

from openwrt-tailscale-enabler.

bam80 avatar bam80 commented on May 17, 2024

Hey! Unfortunately, it can't even pass the tailscale up phase as the device gets stalled.. :(
So I don't know workaround for this, other than adding more memory by any mean or using remote mount.
If you have better idea please let me know.

from openwrt-tailscale-enabler.

JensKuehnel avatar JensKuehnel commented on May 17, 2024

Hi,
I have tailscale running on two 64MB boxes. And it runs without any problems.
I build my own images with image-builder and running 21.2.1 on a "Netgear WNDR3700" and a "TP-Link CPE210 v3"

This is my PACKAGES list:

diffutils luci-ssl zram-swap diffutils luci-ssl curl vim-full bash -vimi mtr ethtool tcpdump -luci-proto-ppp -ppp -ppp-mod-pppoe block-mount kmod-fs-ext4 kmod-usb-storage kmod-usb-ohci kmod-usb-uhci ca-bundle kmod-tun

No special configuration, it simply works.

@bam80 Have build the you image your self, any extra packages installed? What Version of OpenWRT?

from openwrt-tailscale-enabler.

bam80 avatar bam80 commented on May 17, 2024

Thanks for reply @JensKuehnel!
I run vendor firmware based on OpenWRT 19.07, the Tailscale package was not backported there so I created a request:
openwrt/packages#17088
Meanwhile, do you think I could easily build the package myself? I'm not sure where to start from..

(Also, you probably don't need to build custom image as the package is already there for your OpenWrt version: openwrt/packages#15539)

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 17, 2024

That's a great idea, you could try compiling it yourself and see if it fits then. Also, the package on openwrt installs tailscale to flash rather than RAM, so if you have enough flash (>32MB) and less RAM, definitely go that route.

from openwrt-tailscale-enabler.

bam80 avatar bam80 commented on May 17, 2024

Well, I tried on another router with 128MB RAM/8MB flash so no chances to fit packaged Tailscale there either:
image
Why it so big I wonder? Any chance to rebuild it smaller?

Also, even with 128MB RAM it couldn't run, so I had to install zram-swap package to solve that.
I think it worth to be mentioned in Readme.

from openwrt-tailscale-enabler.

bam80 avatar bam80 commented on May 17, 2024

Also, the package on openwrt installs tailscale to flash rather than RAM

I wish I could force it to install to RAM, as it doesn't fit to flash but packaged version is still smaller..

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 17, 2024

The difference in size between the ipk version and the one this package downloads is shown below. I downloaded the latest version available on both.

IPK Version: 14M after extraction (even though the ipk size is 4.9MB), dynamically linked binary, depends on libc.

❯ file tailscaled
tailscaled: ELF 32-bit MSB executable, MIPS, MIPS32 rel2 version 1 (SYSV), dynamically linked, interpreter /lib/ld-musl-mips-sf.so.1, Go BuildID=1649416067, stripped
❯ ls -alh tailscaled
-rwxr-xr-x@ 1 adyah  staff    14M Dec 20 14:57 tailscaled

This package version: 20MB, statically linked binary with no dependencies.

❯ file tailscaled
tailscaled: ELF 32-bit MSB executable, MIPS, MIPS32 version 1 (SYSV), statically linked, Go BuildID=mQBLllo7XjQZM7G-WI-4/AYM9SvzjrByCuadLpzlE/79z0Ilt18IDEc6vdrteF/UBXBXKqgGyLlaD1Y1XtY, not stripped
❯ ls -alh tailscaled
-rwxr-xr-x  1 adyah  staff    20M Apr 10 11:37 tailscaled

Overall, it is the same size requirements at the end of the day. Installing an ipk to RAM is not something I am familiar with. But there is nothing this package can do to reduce the size IMO. Let me know if you figure something out.

from openwrt-tailscale-enabler.

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.