mitanshu7 / tailscale_kual

KUAL Extension for jailbreaked kindles to run Tailscale VPN
1 stars 1 forks source link

How to login? #1

Open kangruixiang opened 3 months ago

kangruixiang commented 3 months ago

Could you expand on your last bullet under the instruction?

Login using the url and connect to your kindle using a static ip!

Do I login on my computer after I grab the URL? I tried using the Experimental Browser but couldn't get very far with the login process. When I try on my computer, I was able to login and register the Kindle. But when I start tailscaled and tailscale, it doesn't look like I'm connected on the tailscale machine page.

What do you mean connect to the kindle using a static ip?

mitanshu7 commented 3 months ago

Hello @kangruixiang,

I apologise for the lack of instructions. Frankly I never expected this to be under anyone's radar and hence the resulting barebones project.

Do I login on my computer after I grab the URL?

Yes, you would need to copy paste the url to a browser you use daily to connect. I haven't learned how to print output on the kindle screen yet. :sweat_smile:

But when I start tailscaled and tailscale, it doesn't look like I'm connected on the tailscale machine page.

Oh. Did you keep the kindle awake while checking on the machines page?

What do you mean connect to the kindle using a static ip?

Sorry for the very vague language. I meant that tailscale assigns an IP address, generally of the form 100.xxx.xxx.xxx, which is fairly static since it only changes if you remove and reconnect the device from your tailscale account.

I would also suggest setting up ssh keys for ease of use.

I have updated the readme, please let me know if you have any further questions.

kangruixiang commented 3 months ago

@mitanshu7 So I tried this for a long time last night without success. I removed the kindle device from the tailscale admin page so that I could redo the whole process again. The original auth url would not work after that. And tailscale_start_log.txt file ended up being blank without a new authorization url. I even added a delete.sh file to delete /var/lib/tailscale folder to see if that would reset and was not successful.

Oh. Did you keep the kindle awake while checking on the machines page? Yeah I kept it on the Kual launcher page. I was never able to get it connected for some reason.

Any thoughts? Thanks and I appreciate the help.

mitanshu7 commented 3 months ago

Hello @kangruixiang,

So I tried this for a long time last night without success.

:skull: I really hope I didn't have wasted your time.

The original auth url would not work after that.

Yes, they are one timers. You would need to stop and then re-start tailscale(d) again for a new url to come.

I even added a delete.sh file to delete /var/lib/tailscale folder to see if that would reset and was not successful.

This exists? I'll play with it and get back to you.

Yeah I kept it on the Kual launcher page. I was never able to get it connected for some reason.

This is interesting, please let me experiment a lil more and get back

kangruixiang commented 3 months ago

@mitanshu7 Thanks, I hope I also didn't take up too much of your time. It's a bug with one person so might not be the same for others.

I'll take a break and come back to this eventually sometimes.

mitanshu7 commented 3 months ago

@kangruixiang thank you for taking the time to test this out!

jonaolden commented 2 weeks ago

Hey! Love this idea, great work! I've been eyeing this repo for a while now. I initially got stuck with authentication by URL, but I managed to get it to work by generating an auth key and modifying the 'start_tailscale.sh' to

#!/bin/sh
/mnt/us/extensions/tailscale/bin/tailscale up --auth-key=<your-tailscale-auth-key>> tailscale_start_log.txt 2>&1
kh_msg "$(cat tailscale_start_log.txt)"

I hope it can be helpful if you're still struggling

I also managed to send files via Taildrop (to my amazement) , might clone your repo and PR if you're interested!

mitanshu7 commented 2 weeks ago

Hello @jonaolden,

This is amazing!

Apologies for not testing it out properly when things ran fine for my kindle.

I was wondering how to refactor the code to make it more user friendly.

For instance, people could enter the auth code, on the kindle itself without having to need a computer, if the code isn't too long.

And yes, a PR would be great!

Till then I will try to get the login url to display on the screen.