this post was submitted on 10 Jan 2025
6 points (80.0% liked)

Selfhosted

60526 readers
1135 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I have an old OnePlus 5T that has LineageOS installed. I don't really do anything with it and I thought it would be cool to host my first ever website (static) on it.

What I've done so far:

  1. Got the HTML file for my website.
  2. Got the CSS style sheet for that site.
  3. Purchased a domain name.

I request help/guidance with:

  1. Minimal install of Debian, nginx, Docker, and Fail2ban. (I feel I need help with the Debian installation because the rest is seems easy enough).
  2. Hosting my website from my home, so like if I should consider subnet or vlan for my home to protect other devices when I expose port 80 (http) and 443 (https) of my router so other servers can access my server phone.

I know this sounds like complicating matters for something I have never done before, but any help would be greatly appreciated. I have hosted stuff at home (pihole, LibreTranslate, etc) but I think this website project may not be straightforward.

you are viewing a single comment's thread
view the rest of the comments
[–] kuneho@lemmy.world 3 points 2 years ago* (last edited 2 years ago)

With Termux on Android, it's possible to install Debian in a proot environment.

More about this here: https://github.com/termux/proot-distro

I guess using this envirinment, it's possible to set up your server to your needs.

One thing I don't know is how to autostart Termux at boot, but there must be a way, "worst-case" a Tasker routine can do it. Also, another thing to considerate with this setup is Android's memory management and to detect if your proot distro gets killed. But then again, maybe Tasker is good for that, too.

Good thing with this proot-distro thing is that it's really easy and straightforward to set up, and basically you have a full Linux environment in your pocket. There are limitations, of course.

As for installing/flashing full Debian on an Android phone, let's say it's not possible. Your closest best bet would be Ubuntu Touch on a supported device.