k2helix

joined 2 years ago
[–] k2helix@lemmy.world 3 points 7 months ago

No pressure! Time keeps going, so I hope you'll eventually find the time to reflect. It doesn't have to be now, either. But I understand you, sometimes you need to stop and think, and it feels bad when you can't. Although sometimes I'd prefer not having enough time to think, I tend to overthink a lot. Take care and stay strong ✌️

[–] k2helix@lemmy.world 5 points 7 months ago* (last edited 7 months ago) (2 children)

Stay strong friend! I know I'm just a stranger but I'm here if you need someone to talk to.

[–] k2helix@lemmy.world 1 points 1 year ago* (last edited 1 year ago)

iirc you don't, at least I remember to have installed some apps via adb from my phone and I didn't use a cable.

[–] k2helix@lemmy.world 1 points 1 year ago

Yes I was, that's how I did it initially on my Chromecast with Google TV. No wires involved, just adb.

[–] k2helix@lemmy.world 3 points 1 year ago (5 children)

You can just do it wirelessly, just like you would with any other phone

[–] k2helix@lemmy.world 1 points 2 years ago

yup that's what I'm using. Wanted to know about this alternative too :)

[–] k2helix@lemmy.world 1 points 2 years ago* (last edited 2 years ago) (4 children)

Is its UI adapted to Android TV? Or does it look like on mobile?

[–] k2helix@lemmy.world 2 points 2 years ago

I managed to solve it by automatically restarting the container once the drive is mounted, as the mount is done by a systemd service. Guess there were no permission issues

[–] k2helix@lemmy.world 1 points 2 years ago

Nevermind, what I ended up doing is restarting the container just after the drive has been mounted. Which is easy because it's a systemd service so I could use ExecStartPost

[–] k2helix@lemmy.world 1 points 2 years ago

Thanks for your answer. I tried mounting it to a folder inside the one I'm using in the compose file but strangely it didn't work. So I thought that the only way that wouldn't need to delay docker start is to restart the container just after the drive has been mounted.

And that's what I ended up doing as the drive mount is a systemd service and therefore I can use ExecStartPost to restart the container. That way this doesn't affect other containers and also lets this one start even if the drive has not been mounted which I want in case there's no internet connection

[–] k2helix@lemmy.world 1 points 2 years ago (2 children)

Thanks for your suggestion. That's what I first thought but there are some issues.

I have other containers that do not require this drive to be mounted. Main problem is that if for some reason the drive cannot be mounted (e.g. no internet connection), then docker would not start any of those containers.

That's why I need a particular solution. While writing this it has come my mind that I've got a container which mounts / as a read-only volume in its /mnt and it seems to work fine there. Maybe if I set the volume to mount /media/user instead of the drive it would work?

[–] k2helix@lemmy.world 1 points 2 years ago (2 children)

Don't think it has to do with permissions as if I manually start the container after the drive gets mounted then everything goes as expected and the container has the files at /mnt

 

I have a docker compose file with a bind volume. It basically mounts /media/user/drive/media to the container's /mnt.

It works as expected when /media/user/drive/ is mounted and its media folder has the files I want the container to see.

However, as it's a network drive, the container usually tries to start before it is mounted, so it would throw the error that /media/user/drive/media doesn't exist. So I created an empty folder in /media/user/drive called media while the drive was not mounted so that at least the container starts with the volume /mnt being empty until the network drive gets mounted and all the files appear at /media/user/drive/media.

To my surprise, when the drive gets mounted, even though if I do ls /media/user/drive/media it lists the drive contents correctly, the container still sees /mnt empty.

How would I go about getting the drive files inside the docker container when it automatically starts?

 

I have Fedora and Windows installed in the same drive in my laptop. The drive has 512GB and it's divided so that each OS has 256GB. Fedora's partition is encrypted using the option it shows in its installer.

Problem is I'm running out of space. I'm considering getting a 1TB drive on which I would move Fedora and then giving Windows the other drive, so on the whole the laptop would run Windows on the 512GB drive and Fedora on the 1TB one. I've already read lots of forums but am still unsure on how to do this without losing any data and messing with Grub (I've had some bad experiences previously). So any help would be appreciated.

view more: next ›