hereforawhile

joined 2 months ago
[–] hereforawhile@lemmy.ml 4 points 2 weeks ago

Haha I like that emote

[–] hereforawhile@lemmy.ml 9 points 2 weeks ago* (last edited 2 weeks ago)

Yes it can. I've been doing it for the past few months. You can also host onion services really easily with no root needed.

Here is a clone of Instagram I made for termux. It's all inclusive and will turn your phone into a social media web server.

I've been testing this with 6 family members over the past 3 weeks it works really well for what it is. We have over 100 private posts. Just follow the usage instructions and you can turn your phone into a little private social media safe haven.

Here is the termux side server manager.

Login

[–] hereforawhile@lemmy.ml 1 points 1 month ago* (last edited 1 month ago)

I've made a cleaned up version found here

Improvements

  • prompt for admin password on boot

  • admin panel that allows control for deleting posts (finiky but functional)

  • pages: 15 posts per page now...this greatly reduces load on server.

  • basic sorting functions

  • cleaned up creating posts and new 'torums' so the home page isn't so messy.

[–] hereforawhile@lemmy.ml 2 points 1 month ago (1 children)

Agreed! Especially if you have an old phone laying around collecting dust

[–] hereforawhile@lemmy.ml 6 points 1 month ago (7 children)
 

Termux side server manager

Homepage Interface

Link to install script/server manager to run in termux here

[–] hereforawhile@lemmy.ml 3 points 2 months ago* (last edited 2 months ago)

Ok,

Here is a more polished version with MIT license.

Improvements

-User counts

-Connection Status Indicator

-Ability to turn on persistent rooms. By default, the server only relays in real time. /persist turns on chat logs. The server then stores encrypted messages and users can chat asynchronously.

-Rotating onion address and keeping existing onion now work correctly. If you rotate a onion address, since encryption keys are partially derived from the onion address, the client will be unable to decrypt messages even if the same password is used.

-filter command can be used to bootstrap private rooms in a scenario where multiple people want to use the same server, yet chat privately. All it does is filter out messages that it can't decrypt because it has the wrong password.

-Got rid of ncurses set up menus to slim down the script a bit.

-Removed redundant server manager commands and now only list two. Quit and Quit and Flush (this deletes everything in the server directory except persistent chat logs if they were turned on)

New UI

Example of Encrypted Chat Logs on Server Side

I noticed some of my devices during testing wouldn't connect without hosting a server in a seperate instance. I'm not sure why this is happening but if you can't connect, try to host a server and then connect to another host. This seemed to fix the issue.

[–] hereforawhile@lemmy.ml 1 points 2 months ago (1 children)

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.

[–] hereforawhile@lemmy.ml 4 points 2 months ago* (last edited 2 months ago)

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.

[–] hereforawhile@lemmy.ml 12 points 2 months ago (2 children)

Thankyou that's really helpful 👍

[–] hereforawhile@lemmy.ml 4 points 2 months ago

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.

[–] hereforawhile@lemmy.ml 7 points 2 months ago

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

[–] hereforawhile@lemmy.ml 1 points 2 months ago (5 children)

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?

 

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!

 

This can be installed with a 15kb install script that compiles all resources and hosts the server right in your pocket.

view more: next ›