technology Technology YouTube on TVs is cramming ads down your throat even when pausing videos
Jump
technology Technology YouTube on TVs is cramming ads down your throat even when pausing videos
Jump
docker Docker Volume empty after mounting
Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 weeks ago 100%

    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

    2
  • docker Docker Volume empty after mounting
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 weeks ago 100%

    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

    1
  • docker Docker Volume empty after mounting
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 weeks ago 100%

    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

    1
  • docker Docker Volume empty after mounting
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    3 weeks ago 100%

    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?

    1
  • docker Docker Volume empty after mounting
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    3 weeks ago 100%

    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

    1
  • docker
    Docker k2helix 3 weeks ago 100%
    Volume empty after mounting

    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?

    7
    12
    technology Technology YouTube is Losing The War Against Adblockers
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    4 weeks ago 100%

    Not that you should return to Twitch but if you ever need to there's this TTV LOL PRO add-on for Firefox/Chromium or you can just use a client such as Streamlink (with GUI and ttv lol support) for desktop or Xtra/Twire for Android with a custom proxy

    5
  • cat cats Cat ownership in Europe
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    1 month ago 100%

    I mean we love cats too. There are many stray cats but usually someone takes care of them in an altruistic way. For instance every time (and I mean every single time) I walk to uni I see the same woman feeding the same cats in the same place. Or in my town depending on the street, if you watch carefully you can see food bowls and water for cats.

    Don't know why ownership percentage is so low though. I'd say dogs are more popular, and birds probably for children.

    2
  • linux Linux Cloning encrypted linux install
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 months ago 100%

    Here's what I ended up doing:

    When the SSD arrived, I put it in the 2nd slot. Then, I booted Ubuntu in a Live USB and created the same partition layout in the new disk with parted.

    1. Create the EFI partition and give it the same size
    2. Do the same for the ext4 boot partition
    3. Create a btrfs partition and give it the remaining size.
    4. Encrypt this new partition with cryptsetup and mount it with the option luksOpen of cryptsetup.

    Next thing was mounting the partitions of the old drive. And now, to clone the disk I first tried with brtfs-clone but as the size of what first were 220 GB increased to 260 GB, I tried just using btrfs send from the old disk and piping it to btrfs receive to the new disk. However the size didn't change and still was 260GB, no idea why. I didn't use dd because some comments recommended btrfs send/receive as it doesn't copy the whole partition including empty space.

    Once that was done I copied the /boot/efi and /boot partitions using cp and changed the uuids in /etc/fstab and /etc/crypttab to match the new partitions UUIDs (to know which UUID was each partition, I just used blkid and grep'ed the type of partition. For instance if I was looking for the new partition to replace the one with UUID a1b2c3, I would just use blkid | grep a1b2c3 and if it said it was a crypto partition, then blkid | grep crypto). Finally I deleted the Microsoft folder from /boot/efi as I would only use that disk for Linux.

    So then I tried booting from that disk (and removed the other) but Grub was a mess - it just showed the command line. After some (stressful) hours, I found out that it was because Grub itself when first installed saves the UUID of the disk where the config is and searches for it there - so it was not using the config in the new drive.

    Again, booted Ubuntu and mounted the new drive partitions. There I tried to just reinstall Grub in the boot partition but it seemed impossible because of some weird errors. So I just changed the UUIDs in Grub related files such as /boot/grub/grub.cfg and /etc/default/grub.

    Tried booting again but as noticed earlier Grub was not loading the config file I edited, it was still trying to use the old one in the old drive which was removed and had the original UUIDs. Maybe just changing the UUIDs there would have done the trick but I didn't try.

    It was in that moment that I discovered the existence of configfile - a command that can be used from Grub's shell to boot with the specified config file. Then I used configfile disk_and_path_to_grubcfg and bang! The OS selection screen appeared. At that time I had already put the old disk in the other slot as I thought everything was solved.

    To my surprise, when I selected to boot fedora and typed my password to decrypt the drive, I booted to Fedora in the old drive! How could that be, if I really made sure that I was booting Grub from the new disk? So now the problem was that I was booting Grub (manually with configfile) from the new disk but the OS I was booting was in the old one.

    After some time researching, the culprit was that while I changed the UUIDs in the grub.cfg config file, Fedora doesn't add its kernel entries to that file but to the /boot/loader/entries directory. And there were the files I had to modify (just replacing the old UUIDs). One reboot (maybe also update-grub to update Grub config) and that was it, solved.

    However there was one more thing to do. As I didn't want to use the configfile command every time I boot, I just reinstalled grub.

    So that was it. Hope it is useful for anyone who needs to do the same. Although the story doesn't end there, because the new drive turned out to be defective and I had to order a new one to which I dd'ed (not going through all that again). You live and you learn!

    1
  • english English usage and grammar Need some fancy words
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 months ago 100%

    I used it! I needed to write a proposal for an open day in my company with suggestions for advertising and ideas to recruit the best graduates.

    After putting forward my points, I said something among the lines of "It behoves us to make the company successful"

    Pretty happy with how the writing went, can't say so of the speaking - it was really hard!

    2
  • english
    English usage and grammar k2helix 2 months ago 91%
    Need some fancy words

    I'll be sitting a CAE exam this Friday and I'd enjoy learning some vocabulary I can use when doing it. Some idiomatic expressions, collocations or just some fancy adjectives or adverbs that you think could be useful. Something that if the examiner saw would make them say wow. There is an speaking part where it's mostly informal language that I'm going to use and a more formal writing part. Thanks for your help.

    10
    7
    asklemmy Asklemmy For those who struggle with dating, what do you consider to be your biggest hurdle?
    Jump
    linux Linux Cloning encrypted linux install
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 months ago 100%

    I think I'll take a backup then try to clone the disk with btrfs send/receive and keep that as a solution in case something goes wrong. Thanks for answering!

    2
  • linux Linux Cloning encrypted linux install
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 months ago 100%

    I see, I like this approach. However as Fedora installs Grub (and I don't want to have a headache), I think I'll stick with it. Thanks for sharing all your knowledge!

    1
  • linux Linux Cloning encrypted linux install
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 months ago 100%

    This is the first thing I thought. However I'm concerned about grub not recognising my partitions and causing my laptop to basically not boot. Did you have any problem with this? Also, if you copied the encrypted drive and kept it encrypted, was there any change you had to do?

    1
  • linux Linux Cloning encrypted linux install
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    2 months ago 100%

    Thanks for your answer. Would Grub still see everything as usual or is any change needed too? Also how would I go about having the same exact layout? Use the Fedora Installer on the new drive and put the same password for encryption, creating the same partitions and giving them the same size?

    big time NO on clonezilla and friends.

    Can you explain? Another comment recommended clonezilla. I remember reading something like this, but knowing more would be nice.

    1
  • linux
    Linux k2helix 2 months ago 100%
    Cloning encrypted linux install

    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.

    37
    18
    memes Memes its true tho
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    5 months ago 100%

    GrapheneOS lets you choose whether you want to have a sandboxed google play installation. This way apps such as Maps work. Basically you are in control (except for Google Pay).

    4
  • technology Technology More and more people are ditching carrier roaming in favor of travel eSIMs
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    5 months ago 100%

    I have never used an eSIM, but I'd like to know about them. Can anyone explain what are some reasons to use it?

    3
  • linux Linux Do you daily drive Wayland, if so since when, if not when will you?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    6 months ago 100%

    May I ask how you solved the screen sharing problems? Also do you use keybinds for apps such as discord? When I tried Hyprland none of them were working.

    1
  • technology Technology So many resources could be saved...
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    8 months ago 100%

    I've searched your phone on xda and it has some ROMs which support it. Not official LineageOS though 🥲

    1
  • technology Technology Google witness accidentally blurts out that Apple gets 36% cut of Safari deal
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    10 months ago 83%

    Aren't almost all (at least photo editing ones) new Pixel 8 & Pixel 8 Pro features in the cloud? What things do you mean when you say Google is moving to local processing?

    4
  • googlepixel Google Pixel Should I buy with a 22% discount or wait until Black Friday?
    Jump
    googlepixel
    Google Pixel k2helix 10 months ago 100%
    Should I buy with a 22% discount or wait until Black Friday?

    I want to get a Pixel 8. Here it costs 800€, and only today because it is 11/11 a popular provider offers a 22% off, being 623 the end price. Do you know if they get a bigger discount on Black Friday or is this a very good offer? Thanks.

    13
    5
    linux Linux What feature are you dying for to come to your DE - Linux?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    11 months ago 100%

    You can install touchegg to customise touchpad gestures, I learnt it because I also needed it!

    2
  • privacy Privacy Please, do not use Brave.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    11 months ago 100%

    Bad thing that I don't use Windows that much, wish it had a Linux version. However I'll check it out when I use Windows to see how it goes. Thanks!

    2
  • privacy Privacy Please, do not use Brave.
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    11 months ago 100%

    Oh I see! I didn't know Cromite had a desktop version! Thanks for sharing your thoughts :)

    2
  • googlepixel Google Pixel Should I pre-order or wait?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    12 months ago 100%

    The prices are really high, I hope it gets better when Black Friday arrives. Else I guess I'll have to get the 7.

    7
  • 196 196 Well yes, but actually no
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    1 year ago 100%

    The times I've done a form and it asks for the gender, the option is "No binario". Probably because gender is masculine in Spanish. You can say a person is "No binaria" because person itself is feminine.

    1
  • lemmyshitpost Lemmy Shitpost How could we have let this happen?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    1 year ago 100%

    yup I knew that (isn't it where Macon and Atlanta are?) but I didn't realise that it and the country have the same name. Thanks anyway!

    1
  • lemmyshitpost Lemmy Shitpost How could we have let this happen?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    1 year ago 100%

    Oh I didn't think about it and the US state having the same name but now I imagine why OP said it 😂

    1
  • linux Linux State of gaming on linux?
    Jump
  • "Initials" by "Florian Körner", licensed under "CC0 1.0". / Remix of the original. - Created with dicebear.comInitialsFlorian Körnerhttps://github.com/dicebear/dicebearK2
    k2helix
    1 year ago 100%

    You can just check on protondb if any game you want to play works with Proton or doesn't at all. But generally almost anything that doesn't require an anticheat will work.

    2