332
submitted 4 days ago* (last edited 3 days ago) by tradicije@lemmy.zip to c/selfhosted@lemmy.world

We did it boys! Battery is no more: https://lemmy.zip/post/72181546

This post is a follow-up to my original post: https://lemmy.zip/post/71885626

Surprisingly, it wasn’t that tough to set up.

My original plan was to install postmarketOS and turn the phone into a proper tiny Linux server. Unfortunately, my Moto E5 Play is the pettyl variant, while the available postmarketOS port is for james. I decided that turning the phone into a brick probably wasn’t an essential part of the project.

So I went with Termux instead.

It’s now running nginx, PHP, MariaDB, WordPress, SSH and cloudflared directly on the phone. Everything starts automatically on boot, and I even made a tiny WordPress plugin for anonymous Today / Total / Online visitor stats.

And yes, the website is being served by the exact phone in the photo.

1 GB of RAM. Somehow this thing is now a production server.

I named it Pettyl, after the device codename.

You can actually visit it at https://moto.dimitrium.org/.

The website is barebones, I plan to push it to the limits. Also, this project will soon be available on my GitHub page https://github.com/tradicije

Next problem: figuring out how long an old Motorola can tolerate my bullshit.

you are viewing a single comment's thread
view the rest of the comments
[-] Valmond@lemmy.dbzer0.com 13 points 4 days ago

Well done!

How did you connect it to the internet?

[-] tradicije@lemmy.zip 16 points 4 days ago* (last edited 4 days ago)

Cloudflare Tunnel. cloudflared is running directly on the phone, so I didn’t need to open any ports on my router.

Also, if you meant how I connected the phone to the internet, not the website — just Wi-Fi. :)

[-] Valmond@lemmy.dbzer0.com 2 points 2 days ago

Thanks! So do you get a public IP or similar?

Ha ha no I'm only curious about how you went "public" 😁

[-] Telorand@reddthat.com 7 points 4 days ago

Boo Cloudflare, but I still love the idea. Given that I'm not planning to turn in this current phone for a few dollars of "credit" when I need to replace it, this seems like a cool weekend project!

Can always use your own tunnel, like wireguard or even just SSH. You are then responsible for where the tunnel terminates, of course.

[-] jaybone@lemmy.zip 2 points 3 days ago

Does Tailscale offer public IPs on your “tailnet” or whatever it’s called?

I haven’t used tailscale in a while, but afaik no, it’s strictly p2p besides their NAT punching hardware and (heavily throttled) backup relay servers.

this post was submitted on 25 Sep 2026
332 points (99.7% liked)

Selfhosted

62392 readers
1194 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. Tags [CBH] or [AIP] are required, see the links in Rule 8 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, and find example disclosures here.

Resources:

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

Questions? DM the mods!

founded 3 years ago
MODERATORS