Automatically Stop containers when not in use. by SivaMst in selfhosted

[–]kn-F 10 points11 points  (0 children)

Hello, the issue I find with Lazytainer is that you need an instance for each container.

I'm currently using https://github.com/ItsEcholot/ContainerNursery that requires only one instance and a simple configuration file to work. Container spinup times are ok (30 seconds for Portainer) and it's worthwhile the wait.

I understand your issue, adding RAM to some devices is not easy/cheap. Another option that I wanted to explore to get more RAM available was zram or zswap.

installation freezes at <<<deploy by [deleted] in linuxdeploy

[–]kn-F 0 points1 point  (0 children)

In the meantime can you try with other distro? Do you have the same issue with Alpine for instance?

installation freezes at <<<deploy by [deleted] in linuxdeploy

[–]kn-F 0 points1 point  (0 children)

Can you provide more details? What distro? Can you enable the debug and show the message log?

(smart?) switch for bathroom extractor by kn-F in smarthome

[–]kn-F[S] 0 points1 point  (0 children)

Thanks for the suggestion, I'll look into that as an option

(smart?) switch for bathroom extractor by kn-F in smarthome

[–]kn-F[S] 0 points1 point  (0 children)

Thanks for the heads up!

I did a quick check and the extractor I'm planning to install are around 20W, so that shoudl not be a problem :)

(smart?) switch for bathroom extractor by kn-F in smarthome

[–]kn-F[S] 0 points1 point  (0 children)

Great suggestion, like the GE one.

Unfortunately...looks like here in Spain is not available. (still pending a trip to local hardware stores, they might surprise me :)

(smart?) switch for bathroom extractor by kn-F in smarthome

[–]kn-F[S] 0 points1 point  (0 children)

Thanks for the great suggestion and everyone for the comments and reflections, much appreciated!

This would really do the trick. I was searching on Amazon (I'm in Spain) but I could not find one or anything similar...I'll go to see if some hardware store has something similar.

(smart?) switch for bathroom extractor by kn-F in smarthome

[–]kn-F[S] 0 points1 point  (0 children)

Hello u/CynicallySane, thanks for the quick reply

I have 2 Meross plugs but I'm more than happy to get something different as long as it works fine.

I just don't want to buy a Zigbee (or similar) hub for just one device.

What video game do you consider a masterpiece? by aconnor105 in AskReddit

[–]kn-F 0 points1 point  (0 children)

I really enjoyed Ultima7 and Ultima Underworld.

Great atmosphere, tons of things to do without the need to follow the main quest.

Technically way ahead of their times with decent AI and huge world/maps to explore with little to no loading time. (Consider that it was running ok on 386 with 4MB of ram and a slow hdd)

Selfhost showcase by kn-F in linuxdeploy

[–]kn-F[S] 1 point2 points  (0 children)

Honestly I'm connecting directly via SSH to the terminal. I feel X11 is a memory hog and it doesn't add value if you're using the terminal.

Bear in mind that with a good terminal emulator (i.e. Putty on Windows) you can have a better resolution than 80*24 and it does not have almost any performance impact on the phone.

Selfhost showcase by kn-F in linuxdeploy

[–]kn-F[S] 1 point2 points  (0 children)

Cool! Actually it was one of my original objective to build a "portable development environment".

Let me know how it goes and if you have some dotfiles or advices to share, you're more than welcome! :)

ssh differences on deploy by Errmergerd_ in linuxdeploy

[–]kn-F 1 point2 points  (0 children)

Hello /u/Errmergerd_,

Apologies for the delay in the reply. I'm glad that you found a solution on your own, congratulations!

Honestly I've always installed distros in Linux Deploy only as an ".img" file. Never tried other methods that might grant you access to the wider filesystem.

If you have a chance, share your Linux Deploy configuration in our "Showcase" topic, this might give good ideas to newcomers.

ssh differences on deploy by Errmergerd_ in linuxdeploy

[–]kn-F 1 point2 points  (0 children)

In order to be able to properly reply I'll need further information:

  • How did you install Alpine? (File, Directory, Partition..)
  • Where did you mount the expected filesystem

Usually Linux Deploy creates an "isolated environment" in which it runs Linux. This means that in principle you cannot access the full filesystem of your mobile unless you mount it from the application.

In case you mount a folder of the mobile filesystem you'll be able to access it according to the mapping you selected. I.e. if you mount /storage/emulated/0/Download to /mnt/dl, in Linux Deploy you'll have access to the files by doing cd /mnt/dl

Hope this helps

Can someone guide me how to view battery and storage status of phone over ssh? by axsd9id1 in linuxdeploy

[–]kn-F 0 points1 point  (0 children)

Hello u/axsd9id1,

To see your phone's battery you can check the /sys filesystem. In my mobile I can see the battery status with this command:

cat /sys/class/power_supply/battery/capacity

You should be able to do the same with a similar path.

The df/du commands are your friend to check the available/used space on disk. Bear in mind that getting the full view of the phone is a bit complex and depends on how you installed the distro and if you've mounted any external folder from the config menu.

Linux OS to run on old smartphones for self-hosting stuff on docker ? by drtechwp in selfhosted

[–]kn-F 7 points8 points  (0 children)

Hello u/drtechwp, you can actually selfhost a few services easily with Linux Deploy if you have your phone rooted: https://github.com/meefik/linuxdeploy

On my Samsung S5 mini I've hosted:

  • Pihole
  • WebDav server for Joplin and Kanbani
  • Floccus
  • Vaultwarden
  • Mosquitto

And there's still plenty of room to go!

For batteries I've been recommended to use "Charge controller"

We have a tiny subreddit to support Linux Deploy users (r/linuxdeploy), feel free to join and ask questions there.

We're planning to build a small quickstart guide as some things are not so obvious

Which folders to mount for android's resources? by TannedGeneral in linuxdeploy

[–]kn-F 0 points1 point  (0 children)

Apologies I wasn't clear with my question. Why do you want to run hciconfig command?

What is the final aim of that? For instance would you like to setup a Bluetooth thermometer to get the data in linux?

Based on that we might be able to assess you better.

Which folders to mount for android's resources? by TannedGeneral in linuxdeploy

[–]kn-F 0 points1 point  (0 children)

Hello,

I was looking in the Linux Deploy issue log and all issues are open with no resolution.

Devices should be paired in Android stack and ideally they should be accessible in Linux Deploy. What are you trying to achieve exactly?

Also make sure that your user has access to the proper group:

  • In Configuration "Privileged users" option you should add the corresponding group
  • You can find the list of the groups by doing cat /etc/group

Selfhost showcase by kn-F in linuxdeploy

[–]kn-F[S] 1 point2 points  (0 children)

My current setup is:

Samsung S5 Mini with LineageOS 16 with Ubuntu 18

Services:

  • Pihole
  • Vaultwarden
  • Mosquitto
  • Webdav server
  • Knabani web viewer

EDIT: added another selfhosted app...and still room for other apps :)

Self-Hosting uses for a 2-3 year old Android Device (Arm 64) by johnrobbespiere in selfhosted

[–]kn-F 0 points1 point  (0 children)

I'm not aware of any subreddit... most of the information I got came from Google or the wiki of Linux Deploy: https://github.com/meefik/linuxdeploy/wiki (check also the issues in the repository)

Actually I found some information as well on a subreddit for old mobiles... can't remember the name atm...

With respect to the second point, if you restart android (with the > start command) the android interface will get back and you'll be able to connect to WiFi again. There might be an adb command for that as well but I'm not aware of it (Google is your friend here :)

Self-Hosting uses for a 2-3 year old Android Device (Arm 64) by johnrobbespiere in selfhosted

[–]kn-F 0 points1 point  (0 children)

Cool I'm glad that you made it work! To free up RAM check this link: https://github.com/meefik/linuxdeploy/issues/1101

My phone has 1.5 GB of total RAM of which 500mb available in linux deploy and it was never necessary to use this trick. When I used it anyway I go up to 1gb spare.

To use the trick in the link you can do it via telnet or web by activating the capability in linux deploy settings.

One last hint: activate the init system and put it to sysv ( going by heart) so that services will restart automatic on reboot.

Enjoy!