
Dhruv Bhutani / Android Authority
It’s truthful to mention that Google Pictures has been the most efficient factor that has ever took place to smartphone pictures control. For years, it has served as without equal set-it-and-forget-it software. And for the longest time, it used to be my go-to advice. It used to be almost loose. It used to be limitless. It used to be best for any individual who didn’t wish to consider how one can retailer their pictures ultimately. Alternatively, it’s been some time because the birthday party ended and the garage limits kicked in. All at once, it’s not the most obvious selection.
Like many others, I’ve additionally long past down the NAS direction and arrange my very own Google Pictures selection. I’ve experimented with quite a lot of self-hosted platforms like Immich and my very own garage server to forgo the Google Pictures tax. However in recent years, I’ve been considering of other answers. Taking a look at an outdated Pixel sitting in my table drawer, I learned that I used to be sitting on a high-performance, battery-powered Linux server that used to be simply looking ahead to a fab weekend undertaking.
An outdated Pixel Fold sitting in my drawer grew to become out to be the easiest high-performance, battery-powered Linux micro server.
I sought after to construct a self-hosted selection that felt fashionable however didn’t require a rack server in my basement or take in area like my NAS does on my table. I used to be curious to peer how some distance I may just push the bounds of what used to be conceivable with a smartphone. Input Lychee, a blank, professional-grade picture control machine that runs superbly on any outdated Android {hardware}, together with the Pixel that used to be sitting on my table. By way of the usage of Termux, I used to be ready to show that outdated telephone into a personal cloud this is out there from any place on the planet. Right here’s what I constructed over the weekend, and why you will have to imagine repurposing your outdated smartphones too.
Would you believe an outdated telephone as your picture backup server?
2 votes
Why an outdated telephone makes the easiest house server

Adamya Sharma / Android Authority
The reality of the subject is that we frequently deal with our outdated telephones as e-waste as soon as the display will get a scratch, the device updates prevent rolling in, or we’re simply in a position to improve to the following giant factor. Discarding those gadgets is, individually, a vital 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 mainly the default for self-hosting inexperienced persons. It has extra persistent, much more garage, sooner wi-fi connectivity, or even a integrated battery to handle uptime throughout persistent outages or intermittent connectivity. It’s mainly the easiest small laptop for self-hosting.
We deal with outdated telephones like e-waste, however maximum of them are way more succesful than the Raspberry Pi folks purchase for self-hosting.
Now, right here at Android Authority, we’ve talked so much about the usage of Immich for development out your personal Google Pictures selection. Immich is superb, however I didn’t wish to cross down the Docker direction, entire with its heavy machine dependencies. So, for this undertaking, I selected Lychee as it moves an excellent steadiness between options and useful resource overhead. Lychee is constructed on PHP and will run natively in a Termux surroundings with out leaping thru primary technical hoops. Additionally, it offers you the Google Pictures revel in, entire with picture galleries and simple sharing, with out the most obvious AI surveillance or the per month invoice. In comparison to Immich, you don’t actually want a robust server so as to maximize its functions. All that to mention that it’s the easiest selection for this undertaking.
Putting in the developer surroundings

Dhruv Bhutani / Android Authority
Step one towards turning my Pixel right into a practical construction surroundings used to be gaining access to a strong terminal emulator. And for that, I skipped the Play Retailer model of Termux fully. As an alternative, I grabbed the most recent construct from F-Droid to make sure I had get admission to to all of the newest repositories. The set up procedure is rather like every other app, however whenever you open it, you’re greeted by means of a command-line interface that may really feel just a bit daunting when you have by no means used Linux or a command terminal sooner than. Recall to mind it as a gateway into your Android telephone’s true attainable.
Termux offers you full-fledged terminal get admission to on your telephone’s functions.
Right here’s the place it begins getting a bit technical. After I had the terminal open, the primary order of commercial used to be granting the app permission to peer my telephone’s exact garage, with out which the remainder of the stairs merely wouldn’t continue. 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 surroundings, the filesystem, and your footage. After a handy guide a rough pkg replace and pkg improve to make sure the whole thing used to be present, I used to be in a position to begin development the stack.
Putting in the Lychee Stack

Dhruv Bhutani / Android Authority
The next move used to be, after all, getting the Lychee app up and operating. Lychee is a Laravel-based app, because of this it wishes a PHP surroundings to paintings. I put in PHP, the Apache internet server, Git, and SQLite. I in particular opted for SQLite for the database as it’s light-weight, handles picture libraries very easily, and avoids the overhead of operating a heavy MySQL example within the background, particularly in case you are the usage of older {hardware} for this undertaking. Holding issues light-weight guarantees the telephone doesn’t overheat or tank functionality throughout heavy indexing.
SQLite saved issues light-weight, instant, and environment friendly, making it best for an outdated telephone server.
Subsequent up, you’re going to be the usage of Composer, the PHP dependency supervisor, to clone the Lychee repository immediately from GitHub and start the true set up. Proper round this time is the place I began operating into a couple of problems. You spot, one of the crucial largest demanding situations of internet hosting footage is producing thumbnails, and a device like Immich handles this superbly. Android, on the other hand, works a bit another way in relation to its inside graphics libraries.
After part an hour of fiddling round with the undertaking and nearly giving up on it, I finished up putting in some PHP extensions like Sodium and ImageMagick in order that the server may just generate thumbnails as a substitute of presenting me with a wall of damaged icons. After putting in the programs, I then ran a unmarried command to inform PHP precisely the place to seek out the vital recordsdata. It seems like a large number of backend configuration, but it surely’s actually simply pointing the device to the precise folder.
With the dependencies looked after, I ran the composer set up command and determined to head snatch a espresso. When you could be used to ultra-fast construct occasions and downloads in your common house server, for those who dabble in self-hosting, a smartphone CPU isn’t slightly on that degree, and a few of these processes take a good bit longer than you could be used to. Regardless, as soon as the construct used to be completed, I ran the database migration the usage of Lychee’s Artisan command-line software, which successfully builds the interior construction of your picture library.
Honest caution, this undertaking is a little more complex that spinning up a Docker container.
When you suppose that we’re completed right here, no longer slightly. There’s nonetheless yet another step to the puzzle, and that’s to present the right kind permissions to the folders. Android is notoriously protecting of its record machine, so you need to explicitly inform the machine that the Lychee folder used to be allowed to write down information to the garage and cache directories. When you’re at it, you may also wish to bump up the PHP add limits as a result of, by means of default, PHP best lets in very small recordsdata of about 2MB in measurement. Since I’m importing high-resolution photographs, I determined to extend the prohibit to about 30MB in order that none of my uploads could be rejected. This small tweak stored me a large number of frustration throughout the preliminary bulk add.
Typing my telephone’s IP right into a browser and seeing a complete picture server load up felt a bit like magic. I anticipated it to paintings, however seeing is believing.
And that’s it. The Lychee server used to be up and operating. All you need to do is cross on your telephone’s IP cope with and append 8083 to the top of it. You are going to be offered with an attractive internet interface. Arrange a username and password, and also you’re excellent to head. At this level, so long as you’re inside your own home Wi-Fi community, you will have to simply be capable to connect with the internet server operating in your smartphone and add photographs to it.

Dhruv Bhutani / Android Authority
However we don’t seem to be slightly completed but; there are nonetheless a couple of extra issues to do to make this revel in higher. You probably have ever used an Android telephone, that the machine likes to kill apps to avoid wasting battery. For a photograph or symbol server, that is merely unacceptable. So as to stay Lychee operating 24/7, you’ll wish to cross into machine settings and toggle off the atmosphere to kill apps if they have got no longer been used for some time. You will have to additionally allow Termux’s wake-lock characteristic to make sure the method by no means sleeps.
And naturally, since operating a server is a slightly power-intensive process, particularly when the telephone creates thumbnails for photographs that you just’ve uploaded, it’s possible you’ll wish to imagine preserving the smartphone plugged right into a wall charger all the time. All in all, the facility draw is negligible in comparison to a standard PC, but it surely is sufficient to drain a battery in a question of hours if it isn’t tethered to a wall outlet.
So… how smartly does a photograph server operating on a telephone paintings?

Dhruv Bhutani / Android Authority
Whilst the majority of my write-up up to now has involved in how one can arrange the server, you could be questioning whether it is any excellent and whether it is definitely worth the bother. Unusually sufficient, it is far better than I anticipated. Lychee comprises all of the very important options that you’d be expecting from a photograph server, together with albums, the facility to megastar highlighted photographs, or even an “On This Day” serve as very similar to Google Pictures, which surfaces outdated pictures that you’ll have shot at the similar day a few years in the past.
Lychee offers you albums, sharing, EXIF information, or even ‘On This Day’ reminiscences — with out the surveillance or value.
Different options come with a timeline view, which organizes your entire pictures by means of time and date in a unique view. There could also be a powerful EXIF viewer that displays you all of the very important main points that it’s possible you’ll wish to see about your pictures. In comparison to Immich, which calls for an entire separate undertaking to create a virtual picture body, the Lychee server has a integrated body view that permits you to see your photographs in complete measurement, identical to a kiosk. This makes it an excellent use case for an outdated pill as smartly.
You lose AI magic like facial reputation, however for a light-weight personal server, that trade-off feels truthful.
Somewhere else, you’ll be able to import photographs from a hyperlink or import them from a separate server as smartly. And naturally, there’s multi-user reinforce, so you’ll be able to if truth be told deploy this for all of your circle of relatives as a light-weight picture server.

Dhruv Bhutani / Android Authority
You’ll additionally to find integrated sharing reinforce, so in case you are within the addiction of sharing photographs from Google Pictures between your members of the family, you’ll be able to do this right here too. What you don’t get are one of the AI improvements from Google Pictures and even the system finding out options of Immich. That suggests you’re lacking out on options like facial reputation and even location-based seek. However for a light-weight server like this, that’s no longer a large omit.
Get admission to your telephone server from any place the usage of Cloudflare Tunnels
In fact, the wonderful thing about the usage of one thing like Google Pictures, and even Immich, is that you’ll be able to kind of get admission to them from any place on the planet. That’s no longer the case with an area setup except making a decision to hold your picture server smartphone with you. However there’s an answer for that, too. If you wish to display your picture gallery whilst you’re out and about along with your circle of relatives for dinner, you don’t wish to hassle with port forwarding or digging into your router’s settings to show your own home web to the open web.
Cloudflare Tunnels permit you to get admission to your little telephone server from any place on the planet.
As an alternative, you’ll be able to bypass all of that by means of the usage of a Cloudflare tunnel. This creates a safe, encrypted bridge between your smartphone and the web with out opening any ports in your router. To do that, simply use the Cloudflare bundle immediately in Termux and authenticate it along with your Cloudflare account. This may occasionally can help you map your native Lychee server to a pro area, and as a substitute of typing out an IP cope with, you’ll be able to merely cross to the customized area from any browser on the planet and get admission to the pictures in your telephone server. It’s magic, frankly, to peer your outdated telephone serving information to a computer a continent away.
Your outdated telephone merits a 2d lifestyles

Dhruv Bhutani / Android Authority
The attraction of putting in place your personal self-hosted picture carrier is simple to know. There aren’t any ordinary prices. Even if Google One best prices a couple of bucks a month, it provides up over the years. Extra importantly, you keep simple get admission to on your photographs in complete decision and will make sure that no corporate is coaching system finding out fashions on them.
Alternatively, operating the sort of carrier on an outdated telephone proves that our older units nonetheless have immense price if we’re prepared to tinker with them. For one, this can be a giant step ahead towards decreasing e-waste. Your outdated telephone would possibly simply be sitting within the junk drawer, however operating a carrier like Lychee offers it a brand new goal. Additionally, the powerful characteristic set, together with a formidable processor, integrated connectivity, and gear backup, makes it a very good micro server.
Operating Lychee on an outdated telephone proves that the day before today’s flagship can nonetheless be helpful nowadays and for future years.
Putting in Lychee at the Pixel took me about 45 mins from begin to end. In alternate for lower than an hour of labor, I now have a fully personal, self-hosted picture backup machine that I personal. There aren’t any wonder worth hikes, no “out of garage” emails, and my information remains on my {hardware}. That freedom is definitely worth the effort by myself.
The functionality at the Pixel is strangely snappy. Surfing thru galleries feels simply as instant as the usage of the professional Google Pictures app, and the hunt capability is strong. Would I change my Immich server for this? Most likely no longer. However for those who’re no longer fascinated with purchasing a NAS or paying the nosebleed costs for laborious drives on this financial system, this undertaking might be simply the trick.
You probably have an outdated software amassing mud, this is likely one of the easiest weekend tasks you’ll be able to adopt. Despite the fact that you’re no longer in a position to surrender Google Pictures simply but, having a secondary backup, simply in case, by no means hurts.
Don’t wish to omit the most efficient from Android Authority?


Thanks for being a part of our neighborhood. Learn our Remark Coverage sooner than posting.


