
Dhruv Bhutani / Android Authority
It’s truthful to say that Google Photos has been the most effective factor that has ever occurred to smartphone images administration. For years, it has served as the last word set-it-and-forget-it software. And for the longest time, it was my go-to suggestion. It was virtually free. It was limitless. It was good for anybody who didn’t wish to take into consideration retailer their pictures in the long term. Nonetheless, it’s been a whereas for the reason that get together ended and the storage limits kicked in. Abruptly, it’s not the plain alternative.
Like many others, I’ve additionally gone down the NAS route and arrange my personal Google Photos alternative. I’ve experimented with varied self-hosted platforms like Immich and my personal storage server to forgo the Google Photos tax. However recently, I’ve been considering of alternative options. Taking a look at an old Pixel sitting in my desk drawer, I all of a sudden realized that I used to be sitting on a high-performance, battery-powered Linux server that was simply ready for a cool weekend challenge.
An old Pixel Fold sitting in my drawer turned out to be the right high-performance, battery-powered Linux micro server.
I needed to construct a self-hosted alternative that felt trendy however didn’t require a rack server in my basement or take up house like my NAS does on my desk. I used to be curious to see how far I may push the bounds of what was doable with a smartphone. Enter Lychee, a clear, professional-grade picture administration system that runs superbly on any old Android {hardware}, together with the Pixel that was sitting on my desk. Through the use of Termux, I used to be capable of flip that old cellphone into a personal cloud that’s accessible from wherever on the planet. Right here’s what I constructed over the weekend, and why it is best to take into account repurposing your old smartphones too.
Would you belief an old cellphone as your picture backup server?
161 votes
Why an old cellphone makes the right residence server

Adamya Sharma / Android Authority
The reality of the matter is that we regularly deal with our old telephones as e-waste as soon as the display will get a scratch, the software program updates cease rolling in, or we’re simply able to improve to the following massive factor. Discarding these gadgets is, in my opinion, a important mistake. Even a three-year-old or older smartphone has a processor that may run circles round a Raspberry Pi — which is especially notable since a Raspberry Pi is principally the default for self-hosting inexperienced persons. It has extra energy, a lot extra storage, quicker wi-fi connectivity, and even a built-in battery to take care of uptime throughout energy outages or intermittent connectivity. It’s principally the right small laptop for self-hosting.
We deal with old telephones like e-waste, however most of them are way more succesful than the Raspberry Pi folks purchase for self-hosting.
Now, right here at Android Authority, we’ve talked a lot about utilizing Immich for constructing out your personal Google Photos alternative. Immich is nice, however I didn’t wish to go down the Docker route, full with its heavy system dependencies. So, for this challenge, I selected Lychee as a result of it strikes a good stability between options and useful resource overhead. Lychee is constructed on PHP and may run natively in a Termux setting with out leaping via main technical hoops. Furthermore, it provides you the Google Photos expertise, full with picture galleries and simple sharing, with out the plain AI surveillance or the month-to-month invoice. In comparison with Immich, you don’t really want a highly effective server to have the ability to maximize its capabilities. All that to say that it’s the right alternative for this challenge.
Establishing the developer setting

Dhruv Bhutani / Android Authority
Step one towards turning my Pixel into a purposeful improvement setting was having access to a steady terminal emulator. And for that, I skipped the Play Retailer model of Termux completely. As an alternative, I grabbed the most recent construct from F-Droid to make sure I had entry to all the most recent repositories. The set up course of is rather like another app, however when you open it, you’re greeted by a command-line interface that may really feel simply a little daunting if in case you have by no means used Linux or a command terminal earlier than. Consider it as a gateway into your Android cellphone’s true potential.
Termux provides you full-fledged terminal entry to your cellphone’s capabilities.
Right here’s the place it begins getting a little technical. As soon as I had the terminal open, the primary order of enterprise was granting the app permission to see my cellphone’s precise storage, with out which the remainder of the steps merely wouldn’t proceed. I used the termux-setup-storage command, which is a crucial first step as a result of, with out it, your picture server is basically trapped throughout the Android sandbox. This command acts because the bridge between the Linux setting, the filesystem, and your photographs. After a fast pkg replace and pkg improve to make sure every little thing was present, I used to be prepared to begin constructing the stack.
Putting in the Lychee Stack

Dhruv Bhutani / Android Authority
The following step was, after all, getting the Lychee app up and working. Lychee is a Laravel-based app, which implies it wants a PHP setting to work. I put in PHP, the Apache internet server, Git, and SQLite. I particularly opted for SQLite for the database as a result of it’s light-weight, handles picture libraries with ease, and avoids the overhead of working a heavy MySQL occasion within the background, particularly in case you are utilizing older {hardware} for this challenge. Conserving issues light-weight ensures the cellphone doesn’t overheat or tank efficiency throughout heavy indexing.
SQLite saved issues light-weight, quick, and environment friendly, making it good for an old cellphone server.
Subsequent up, you can be utilizing Composer, the PHP dependency supervisor, to clone the Lychee repository immediately from GitHub and start the precise set up. Proper round this time is the place I began working into a few points. You see, one of many greatest challenges of internet hosting photographs is producing thumbnails, and a software like Immich handles this superbly. Android, nonetheless, works a little otherwise in terms of its inner graphics libraries.
After half an hour of fiddling round with the challenge and nearly giving up on it, I ended up putting in some PHP extensions like Sodium and ImageMagick in order that the server may generate thumbnails as a substitute of presenting me with a wall of damaged icons. After putting in the packages, I then ran a single command to inform PHP precisely the place to seek out the mandatory information. It feels like a lot of backend configuration, but it surely’s actually simply pointing the software program to the proper folder.
With the dependencies sorted, I ran the composer set up command and determined to go seize a espresso. Whilst you may be used to ultra-fast construct instances and downloads on your common residence server, in the event you dabble in self-hosting, a smartphone CPU isn’t fairly on that degree, and a few of these processes take a good bit longer than you may be used to. Regardless, as soon as the construct was completed, I ran the database migration utilizing Lychee’s Artisan command-line software, which successfully builds the interior construction of your picture library.
Honest warning, this challenge is a bit extra superior that spinning up a Docker container.
In case you assume that we’re executed right here, not fairly. There’s nonetheless another step to the puzzle, and that’s to provide the proper permissions to the folders. Android is notoriously protecting of its file system, so you need to explicitly inform the system that the Lychee folder was allowed to put in writing information to the storage and cache directories. Whilst you’re at it, you may also wish to bump up the PHP add limits as a result of, by default, PHP solely permits very small information of about 2MB in dimension. Since I’m importing high-resolution pictures, I made a decision to extend the restrict to about 30MB in order that none of my uploads can be rejected. This small tweak saved me a lot of frustration through the preliminary bulk add.
Typing my cellphone’s IP into a browser and seeing a full picture server load up felt a little like magic. I anticipated it to work, however seeing is believing.
And that’s it. The Lychee server was up and working. All you need to do is go to your cellphone’s IP handle and append 8083 to the top of it. You can be introduced with a stunning internet interface. Arrange a username and password, and also you’re good to go. At this level, so long as you’re inside your private home Wi-Fi community, it is best to simply be capable to connect with the net server working on your smartphone and add pictures to it.

Dhruv Bhutani / Android Authority
However we aren’t fairly executed but; there are nonetheless a few extra issues to do to make this expertise higher. When you’ve got ever used an Android cellphone, you realize that the system likes to kill apps to save lots of battery. For a picture or picture server, that is merely unacceptable. So to maintain Lychee working 24/7, you’ll wish to go into system settings and toggle off the setting to kill apps in the event that they haven’t been used for a whereas. You also needs to allow Termux’s wake-lock function to make sure the method by no means sleeps.
And naturally, since working a server is a pretty power-intensive activity, particularly when the cellphone creates thumbnails for pictures that you just’ve uploaded, you may wish to take into account maintaining the smartphone plugged into a wall charger always. All in all, the ability draw is negligible in comparison with a conventional PC, but it surely is sufficient to drain a battery in a matter of hours if it isn’t tethered to a wall outlet.
So… how properly does a picture server working on a cellphone work?

Dhruv Bhutani / Android Authority
Whereas the majority of my write-up to date has centered on arrange the server, you may be questioning whether it is any good and whether it is definitely worth the problem. Surprisingly sufficient, it’s a lot better than I anticipated. Lychee consists of all of the important options that you’d anticipate from a picture server, together with albums, the power to star highlighted pictures, and even an “On This Day” operate just like Google Photos, which surfaces old pictures that you just might need shot on the identical day a couple of years in the past.
Lychee provides you albums, sharing, EXIF information, and even ‘On This Day’ recollections — with out the surveillance or value.
Different options embody a timeline view, which organizes all of your pictures by time and date in a singular view. There’s additionally a sturdy EXIF viewer that exhibits you all of the important particulars that you just may wish to see about your pictures. In comparison with Immich, which requires a complete separate challenge to create a digital picture body, the Lychee server has a built-in body view that permits you to see your pictures in full dimension, identical to a kiosk. This makes it a good use case for an old pill as properly.
You lose AI magic like facial recognition, however for a light-weight personal server, that trade-off feels truthful.
Elsewhere, you possibly can import pictures from a hyperlink or import them from a separate server as properly. And naturally, there’s multi-user help, so you possibly can truly deploy this in your total household as a light-weight picture server.

Dhruv Bhutani / Android Authority
You’ll additionally discover built-in sharing help, so in case you are within the behavior of sharing pictures from Google Photos between your loved ones members, you are able to do that right here too. What you don’t get are a few of the AI enhancements from Google Photos and even the machine studying options of Immich. Which means you’re lacking out on options like facial recognition and even location-based search. However for a light-weight server like this, that’s not a huge miss.
Entry your cellphone server from wherever utilizing Cloudflare Tunnels
After all, the great thing about utilizing one thing like Google Photos, and even Immich, is you could kind of entry them from wherever on the planet. That’s not the case with a native setup until you determine to hold your picture server smartphone with you. However there’s a answer for that, too. If you wish to present your picture gallery whilst you’re out and about with your loved ones for dinner, you don’t must hassle with port forwarding or digging into your router’s settings to show your private home web to the open web.
Cloudflare Tunnels allow you to entry your little cellphone server from wherever on the planet.
As an alternative, you possibly can bypass all of that through the use of a Cloudflare tunnel. This creates a safe, encrypted bridge between your smartphone and the web with out opening any ports on your router. To do that, simply use the Cloudflare bundle immediately in Termux and authenticate it together with your Cloudflare account. It will can help you map your native Lychee server to a skilled area, and as a substitute of typing out an IP handle, you possibly can merely go to the customized area from any browser on the planet and entry the images on your cellphone server. It’s magic, frankly, to see your old cellphone serving information to a laptop computer a continent away.
Your old cellphone deserves a second life

Dhruv Bhutani / Android Authority
The enchantment of establishing your personal self-hosted picture service is simple to know. There aren’t any recurring prices. Though Google One solely prices a few {dollars} a month, it provides up over time. Extra importantly, you keep easy accessibility to your pictures in full decision and may ensure that no firm is coaching machine studying fashions on them.
Nonetheless, working such a service on an old cellphone proves that our older devices nonetheless have immense worth if we’re keen to tinker with them. For one, it’s a massive step ahead towards decreasing e-waste. Your old cellphone may simply be sitting within the junk drawer, however working a service like Lychee provides it a new function. Furthermore, the sturdy function set, together with a highly effective processor, built-in connectivity, and energy backup, makes it a wonderful micro server.
Operating Lychee on an old cellphone proves that yesterday’s flagship can nonetheless be helpful at this time and for years to return.
Establishing Lychee on the Pixel took me about 45 minutes from begin to end. In trade for lower than an hour of labor, I now have a utterly personal, self-hosted picture backup system that I personal. There aren’t any shock value hikes, no “out of storage” emails, and my information stays on my {hardware}. That freedom is definitely worth the effort alone.
The efficiency on the Pixel is surprisingly snappy. Looking via galleries feels simply as quick as utilizing the official Google Photos app, and the search performance is powerful. Would I change my Immich server for this? Maybe not. However in the event you’re not curious about shopping for a NAS or paying the nosebleed costs for arduous drives on this economic system, this challenge might be simply the trick.
When you’ve got an old gadget gathering mud, this is among the finest weekend tasks you possibly can undertake. Even in the event you’re not prepared to surrender Google Photos simply but, having a secondary backup, simply in case, by no means hurts.
Don’t wish to miss the most effective from Android Authority?


Thanks for being a part of our neighborhood. Learn our Remark Coverage earlier than posting.
Source link
#selfhosting #Google #Photos #alternative #Pixel


