• 0 Posts
  • 25 Comments
Joined 10 months ago
cake
Cake day: August 26th, 2023

help-circle




  • Set image tag in pictrs section to 0.5 and change to the new ENV format described in the docs of pictrs. At last start only the pictrs container docker compose up -d pictrs

    Here is my example in the new formaz. Be aware it is just an example ☝🏻

    
    pictrs:
        image: asonix/pictrs:0.5
        container_name: lemmy-pictrs
        # this needs to match the pictrs url in lemmy.hjson
        hostname: pictrs
        # we can set options to pictrs like this, here we set max. image size and forced format for conversion
        # entrypoint: /sbin/tini -- /usr/local/bin/pict-rs -p /mnt -m 4 --image-format webp
        environment:
          - PICTRS_OPENTELEMETRY_URL=http://otel:4137
          - PICTRS__SERVER__API_KEY=redacted
          - RUST_LOG=info
          - RUST_BACKTRACE=full
          - PICTRS__MEDIA__VIDEO__VIDEO_CODEC=vp9
          - PICTRS__MEDIA__ANIMATION__MAX_WIDTH=256
          - PICTRS__MEDIA__ANIMATION__MAX_HEIGHT=256
          - PICTRS__MEDIA__ANIMATION__MAX_AREA=65536
          - PICTRS__MEDIA__ANIMATION__MAX_FRAME_COUNT=400
        user: 991:991
        volumes:
          - ./volumes/pictrs:/mnt:Z
        restart: always
        logging: *default-logging
        deploy:
          resources:
            limits:
              memory: 690m
    
    








  • Did you use the option users in your fstab? If not only root can unmount your drive, thats why safely removing did not work. If you add a drive to fstab, why did you try to unmount it?

    If you want to use your drive as a removeable drive, then you should mount via dolphin when needed and not with fstab

    Comment out your line in fstab and reboot. Then plugin again








  • I use Fedora KDE as my homeserver, because it is my media center too. That’s the reason for the desktop.

    Cons for me:

    First I struggled with firewalld, it is more challenging than UFW. I removed it, because my router does the job.

    Second SELinux is very annoying at the beginning. You install samba and vsftp and it will not work until you set permissions for SELinux.

    SELinux is complicated for the start. Documentation is not very helpful for this imo. It works now. If you want to have an easy way, you can set it to permissive mode. I kept it running.

    Pros for Fedora has actual software and I really love DNF 🥰