run server like linux with UT?
-
Hey everyone. Having a rpi4 and knowing my Poco F1 is better equipped I'm looking into creating a linux server with the F1.
My question is really about how UT fits this bill? Can I install apache/nginx/databases? Does apt install work? Is there a more appropriate option to this particular scenario besides UT?
What do you guys think?
Thanks.
-
@dncpax if you look around the forum you'll find this has already been asked. I don't remember exactly but in a nutshell : yes it's possible, but also you'd be better off with your rpi4. By default UT system partition is r/o and if you make it r/w all the changes you made will evaporate with next OTA. That is: you can use apt, and probably can setup nginx ( not sure about that, UT network stack is not usual) but it won't last. There's also a thread on this forum about someone who managed to somehow link everything he installs to a writable conf file, making the changes effective even after an update, but it doesn't work with everything. Finally you have libertine containers, which may be the way to go.
-
@emphrath Thanks for helping out. I did search the forum but wasn't clear to me what the answer was. I also looked into libertine since I'm used to docker and lxd, but couldn't figure out if it would work for "console" apps.
-
@dncpax Libertine works fine with console apps. But not with services like webservers, databases and such.
Ubuntu Touch is primarily a phone OS. And as such there is a strict application lifetime management. This means that applications are suspended when not in focus.
There are some privileged applications that can run in the background, but that won't really help you.
If you are looking for a server OS to run on your device, maybe you should look a Postmarket OS for instance
-
@arubislander yes, postmarket os, or mobian
-
@emphrath said in run server like linux with UT?:
There's also a thread on this forum about someone who managed to somehow link everything he installs to a writable conf file, making the changes effective even after an update, but it doesn't work with everything. Finally you have libertine containers, which may be the way to go.
Yes, that's Crackle, by Fuseteam : https://forums.ubports.com/topic/6283/snap-crackle-and-pop-readwrite-rootfs-is-overrated?_=1641778296135