this post was submitted on 10 Jan 2025
5 points (85.7% liked)

Selfhosted

40980 readers
1052 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 2 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
[–] just_another_person@lemmy.world 3 points 10 hours ago (1 children)

First things first: you may be misunderstanding how phones run Linux. A stock Debian install certainly will not work for a number of reasons, but mainly drivers. Storage is second. Phones are flashed with specific images created to work with the storage in each specific phone.

Second: you'd need to make sure the bootloader on your phone is unlocked and able to be used for such a thing. Quick search shows that Ubuntu Touch did work on it at some point, but was deprecated long ago.

Third: if you just want practice, you can probably find packages to install on the phone that will run an HTTP server. That might be a simpler path.

I'm not saying don't try, but you'd be starting from scratch, and if you aren't familiar with these things already, I'm not sure this is a forum to get enough help on the VERY involved process of bootstrapping just a basic running kernel on your phone model. It probably can be done, but you'd be doing it from scratch it seems.

[–] Jumuta@sh.itjust.works 1 points 6 hours ago* (last edited 6 hours ago)

if they got lineageos on the device it's already unlocked right?

anyway it seems supported decently enough by postmarketos, which is currently the best distro (imo) for Linux mobile

their site has install instructions (on the OnePlus 5 page that is linked)

anyway I wouldn't use docker or anything, using nginx on bare metal to host a website is easy and extremely lightweight