this post was submitted on 18 Nov 2025
104 points (91.9% liked)

Linux

59794 readers
461 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

cross-posted from: https://lemmy.zip/post/53280903

This won't be a post for people that already have dedicated server hardware, unless they find something theyd like to run off an android phone specifically.

But anyways, more people than ever have and old spare, but relatively powerful, android phone laying about. I'm talking 2-4+ gb of ram and 32gb+ of storage. Usually these devices end up in a drawer, but in an age of dystopian tracking and company overreach, such a device can be an extremely useful and low power draw tool that can improve your security and experience on the web. And it also has its own battery to boot lol.

If you're wanting to do something like this you should definitely consider finding a custom android rom with more care for security and you will need to root your device. But with a rooted device you then get access to a range of tools. You will want to install magisk through the bootloader as well as termux and termux boot from within fdroid (its important you get the two of them from the same source).

USES/SERVICES With all of these theres now a few options that I can confirm all work on android armv8 devices.

0: To set up most of these services to boot on launch you can either use magisk boot scripts in /data/adb/service.d/ iirc, or you can use termuxboot scripts placed in /data/data/com.termux/files/home/.termux/boot/

1: You can run an instance of Adguard Home on your network that will have enough resources to handle quite heavy lists. You will need to import ssl certificates to properly get it working but otherwise the armv8 binary works well. Adguard home can then be set as your network's dns address. Adguard home has lists for threat protection, to malware, to ads etc.

2: Adguard is good for security but you can experience even less tracking and control by pairing it with an instance of Unbound dnsrunning on the same device. Depending on storage you can store larger dns caches which will stop dns providers from tracking every dns lookup you do.

3: This one is more optional dependent on the person but i use and love it. Searxng is a privacy focused metasearch engine that can aggregate a bunch of data from tons of sources, depending on which sources you enable. It can be used to replace your current search engine such as duckduckgo and can gather anything from torrents and apks, to music, videos and pictures, and my favourite which is its equivalent to google scholar. All in one search engine. Its recommended to disabled certain sources for speed and I would recommend disabling brave search as a source for example because they're scummy. For Searxng it will be required to create a virtual environment with the correct python dependencies and I've had to run it through termux rather than the other two which can run even through an adb shell.

4: Memos is a nice note taking webapp and its my personal choice to use but other similar calender or note apps are a good option if you wanna self host something like that. Can be ran through an adb shell or magisk boot script.

5: Others things you wanna try!!! An android phone is just a Linux computer and if theres services you've wanted a pi to run or a server in general then theres a pretty good chance you can get it running on your power efficient android phone thats just already laying around!! Heres some more ideas ive planned to try but not gotten to yet/haven't finished: -Samba drive to sync and back up your boot drive -Aur build server to pre compile different large packages to be installed to my pc without building them on the computer itself -openvpn proxy to run downloads through a protonvpn account for download managers that dont support password authentication (a surprising amount of them tbh) -Invidious instance, a youtube frontend that doesn't count as actual page views. This allows you to boycott YouTube in regards to data they can show advertisers, while still allowing you to privately subscribe and watch creators you like. It also keeps you from being tracked by your YouTube account while giving you access to better/more consistent resolution tools as well as automatically removed ads. Youtube sponsorblock extensions can also be set up to work with invidious so you don't lose much at all switching.

all 30 comments
sorted by: hot top controversial new old
[–] mycodesucks@lemmy.world 30 points 1 week ago (1 children)
[–] Jumpropegazing@lemmy.zip 22 points 1 week ago

and in samsung's case to install israeli spyware while theyre at it

[–] JayleneSlide@lemmy.world 18 points 1 week ago (2 children)

Serious question: what are y'all's methods to prevent/deal with spicy pillows?

[–] randomblock1@lemmy.world 12 points 1 week ago

Use the OS battery charge limiter (or Magisk "ACC" module). Most phones have the capability to bypass the battery and draw from the adapter. Keep it cool and at 60%, and it won't get spicy. Heat, cycles, and high/low voltages kill batteries, so by avoiding all of those they'll stay unspicy.

[–] utopiah@lemmy.ml 4 points 1 week ago (1 children)
[–] JayleneSlide@lemmy.world 17 points 1 week ago
[–] Owl@hexbear.net 16 points 1 week ago (4 children)

I always worry about recycling old phones/laptops this way since it's trusting an aging battery in an always-on device when I won't be home. Idk if I'm being paranoid, but it feels like a fire risk.

[–] umbrella@lemmy.ml 8 points 1 week ago (2 children)

also what's usually a very outdated os and kernel. it's cool to play with but they make it hard to be practical.

[–] F04118F@feddit.nl 3 points 1 week ago (1 children)

PostmarketOS allows you to use upstream Linux

[–] umbrella@lemmy.ml 2 points 1 week ago

if your phone supports it. i'd love that option on mine for sure!

[–] hexagonwin@lemmy.sdf.org 2 points 1 week ago

true, but everything inside termux would still be up to date.

[–] cmnybo@discuss.tchncs.de 2 points 1 week ago

Some people modify phones to run without an internal battery. That's a bit of a pain since the screen will have to be detached and there will be wires hanging out though.

Laptops are easier. Most of them will still boot with the battery disconnected. They will usually show a warning during boot and some of them will require you to press a key to continue booting. Running without a battery may limit the performance, especially if you're not using the highest wattage charger the laptop supports.

[–] Jumpropegazing@lemmy.zip 1 points 1 week ago

yea if ppl have old batteries i would def suggest they replace the battery online i take apart this phone regularly and wld notice issues w it, and it was my daily driver before this so i was less worried about that as it wasnt sitting around, but people should replace their batteries when necessary its not something you wanna fuck around with.

[–] utopiah@lemmy.ml 10 points 1 week ago (1 children)

You can also run kiwix-serve to provide offline Wikipedia, StackOverflow, Project Gutenberg and more. Even on a very basic device search works as indexing is well done.

[–] Jumpropegazing@lemmy.zip 2 points 1 week ago

oh this is fuckin awesome bet

[–] hexagonwin@lemmy.sdf.org 4 points 1 week ago* (last edited 1 week ago)

use acca to control battery charging threshold and lower voltage/current.

[–] buckBelette@jlai.lu 4 points 1 week ago* (last edited 1 week ago)

I recently got my old phone with damaged screen to become an Octoprint server. It can control the 3D printer, already have a camera allowing monitoring. I'm still in the process but this looks promissing. Acording to you guys I should really look into removing the battery...

[–] eldavi@lemmy.ml 3 points 1 week ago (1 children)

my everything server recently died and i've got a bunch of old androids that i was using as security cameras. plus this sounds like fun. lol

[–] Jumpropegazing@lemmy.zip 3 points 1 week ago (1 children)

whats the stuff you ran on it?

[–] eldavi@lemmy.ml 1 points 1 week ago

i did a post on it's networking & storage services on this post a while ago.

tldr:

  • security cameras using an ip webcam apps on old androids combined w the motion project
  • internet accessible backup storage for laptops and internet accounts (eg google)
  • wifi access point & router
  • pfsense firewall
  • ad blocking
  • media server
  • vpn
  • proxy

it's made from old hardware that i had laying around and its 2nd motherboard died a couple of weeks ago. i was investigating how i could use a spare laptop motherboard to run it until i saw this post and now i'm looking into using one of my old androids instead since they're still functional. also: i've been meaning to try my hand at something like graphene on them and this gives me a great impetus to do so since i'm currently using a 20-year old backup router for the time being. thanks for making me aware that's it's a thing!

[–] hereforawhile@lemmy.ml 3 points 1 week ago* (last edited 1 week 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.

[–] polarity_inverter@startrek.website 3 points 1 week ago (1 children)

Maybe check out postmarketOS if you want the chance the run mainline linux

[–] Jumpropegazing@lemmy.zip 1 points 1 week ago

i wouldve if it was supported for this phone this was the second option when it wasnt supported lol

[–] BigHeadMode@lemmy.frozeninferno.xyz 2 points 1 week ago (1 children)

It's great to reduce ewaste, but from a practical perspective I strongly suggest finding a phone that can do postmarketOS. This is becoming more of a trend and postmarket at least has a handful of guides from people who have put servers on PMOS. I suspect all phones lead to pain when self hosting, but postmarket leads to less pain.

[–] Jumpropegazing@lemmy.zip 1 points 5 days ago

yea you're right but this is just the phone i already have sadly, i would really love to see it supported by postmarketos, maybe once i know a bit more programming ill look at what it would take to get the network stack working or just hope someone else does so in the next few years(unlikely since nobody is working on the port rn, i contacted them to make sure)