This is another implementation of what's possible inside of termux for all you self hosters.
from hereforawhile@lemmy.ml to selfhosted@lemmy.world on 04 Oct 22:23
https://lemmy.ml/post/37090900

Find chess here on limewire. Link expires in one week.

Building upon the principles of my chat application, this is another implementation to push the limits of what’s possible inside the termux environment.

This script includes all the pieces needed to run a world wide accessable chess game from your pocket. While the implementation of chess isn’t perfect by any means, it has been a great learning expirence to figure out all the little parts of what makes a interactive webserver tick.

For testing, I did implement cloudflared within the script just to see if I can host to the clearnet as well. It worked!

#selfhosted

threaded - newest

hereforawhile@lemmy.ml on 04 Oct 22:23 next collapse

Here is the server manager in termux.

<img alt="" src="https://lemmy.ml/pictrs/image/84c4aeb9-57dc-4175-b593-47239c99dd26.jpeg">

BootLoop@sh.itjust.works on 04 Oct 23:11 next collapse

I just pulled an old Android phone out of the closet and messing around with Termux and I’m seriously impressed. I had a file server up in my network within a minute. All without root too!

hereforawhile@lemmy.ml on 05 Oct 01:13 collapse

This is exactly why I started tinkering with termux…lots of old devices that I want to put to use that just collect dust.

rtxn@lemmy.world on 04 Oct 23:18 next collapse

on limewire

Not only has this made me realize how fucking old I am, but I also got curious about how Limewire is doing, and…

In September 2025, LimeWire acquired the Fyre Festival brand, including its intellectual property, trademarks, online domains, and social media assets, from Billy McFarland via an auction held on eBay.

…according to Wikipedia. At this point, my 2025 bingo card would serve better as kindling.

frongt@lemmy.zip on 05 Oct 00:28 next collapse

Yeah, but someone bought the brand itself a while back. It’s not the same limewire.

hereforawhile@lemmy.ml on 05 Oct 01:51 collapse

What a weird turn of events this is the festival that scammed everyone?

I stumbled upon it by by accident when trying to share. I remembered file.io was a quick account free way to share a files but now when you upload limewire takes over.

solrize@lemmy.ml on 04 Oct 23:41 next collapse

I’m confused, you implemented the graphical chess game in the terminal? Or you implemented a web server and pointed a non-termux browser at it?

I didn’t know about cloudflared, pretty cool. I just use a VPS and (if applicable) an ssh reverse proxy for that.

hereforawhile@lemmy.ml on 05 Oct 01:35 collapse

Yes termux is the webserver here and the client is the web browser now. This simplifies the use case scenario alot since most devices have a browser.

darkan15@lemmy.world on 05 Oct 00:21 next collapse

Just wondering, as this is the second post I see you do like this, why not use git and a forge (codeberg, gitlab, github), to publish these projects, with proper file separation, a nice README with descriptions and instructions and a proper OSS license?

hereforawhile@lemmy.ml on 05 Oct 01:11 collapse

I thought about it but it’s not worth tieing accounts together to me and I don’t wanna make throwaway accounts just to share.

To small of scale I’m just messing around is the short answer.

Usage is commented at the start of the script. Just save it, chmod, run it and it spins it self right up.

What are the downsides of sharing code with no license?

darkan15@lemmy.world on 05 Oct 01:33 next collapse

The TL, DR version of sharing with No License, is that technically speaking you are not explicitly permitting others to use your code in any way, just allowing them to look, a license is a formal way to give permissions to others to copy, modify, or use your code.

You don’t need an extra file for the license, you can embed it on a section at the top of your file, as you did with the description, just add a # License section at the very top, if you want the most permissive one you can just use MIT, just need to replace the year of publication of the code, and you can use a pseudonym/username like ‘hereforawhile@lemmy.ml’ if you don’t want to use something like email, username on another site or real name, that can be used to identify you, if that’s a concern

hereforawhile@lemmy.ml on 05 Oct 01:46 collapse

Thankyou that’s really helpful 👍

ki9@lemmy.gf4.pw on 05 Oct 03:46 collapse

It didn’t used to be this way. You used to apply for copyright like a patent. Rich people stole content from poor artists that didn’t have the lawyers to file copyright. This broken system has been reformed. Nowadays, if you create something, you automatically own the copyright. You now have to “opt out” of copyright with an explicit license to “release” the rights. Much better system.

mat@linux.community on 05 Oct 08:49 collapse

Yet enforcing your copyright is exclusive to the rich. I had to move off of GitHub because of Microsoft infringing my code licenses and selling them as “GitHub Copilot”, and I have no way of fighting back/recover my losses.

possiblylinux127@lemmy.zip on 05 Oct 05:20 collapse

I think you are legally liable for damages

somerandomperson@lemmy.dbzer0.com on 05 Oct 15:41 collapse

Sure, Chess and IRC is cool; but what else can you even do with termux, considering it’s really sandboxed?

hereforawhile@lemmy.ml on 05 Oct 17:37 collapse

That’s a pretty big sandbox if you can host a web application from it though. It’s really not that restricted but there are compatibility issues so you find your self rebuilding primitives to make things work.

I think the next think I want to make is a notes/word processing web app. There is a pretty good use case to be to able to connect and process documents from a private server on any machine.

somerandomperson@lemmy.dbzer0.com on 05 Oct 17:58 collapse

interesting…

sadly the androids i have are potatoes :(

and if i use my main phone for selfhosting, the battery will commit die