Skip Navigation

User banner
InitialsDiceBearhttps://github.com/dicebear/dicebearhttps://creativecommons.org/publicdomain/zero/1.0/„Initials” (https://github.com/dicebear/dicebear) by „DiceBear”, licensed under „CC0 1.0” (https://creativecommons.org/publicdomain/zero/1.0/)M

mbirth 🇬🇧

@ mbirth @lemmy.ml

Posts
1
Comments
301
Joined
3 yr. ago

Collector of social media accounts. Speaks 🇬🇧 and 🇩🇪.

🦣 @mbirth@mbirth.uk

  • Or just something as simple as using a SMB/CIFS share for your data. Instead of mounting the share before running your container, you can make Docker do it by specifying it like this:

     yaml
        
    services:
      my-service:
        ...
        volumes:
          - my-smb-share:/data:rw
    
    volumes:
      my-smb-share:
        driver_opts:
          type: "smb3"
          device: "//mynas/share"
          o: "rw,vers=3.1.1,addr=192.168.1.20,username=mbirth,password=supersecret,cache=loose,iocharset=utf8,noperm,hard"
    
      

    For type you can use anything you have a mount.<type> tool available, e.g. on my Raspberry this would be:

     shell
        
    $ ls /usr/sbin/mount.*
    /usr/sbin/mount.cifs*  /usr/sbin/mount.fuse3*       /usr/sbin/mount.nilfs2*  /usr/sbin/mount.ntfs-3g@  /usr/sbin/mount.ubifs*
    /usr/sbin/mount.fuse@  /usr/sbin/mount.lowntfs-3g@  /usr/sbin/mount.ntfs@    /usr/sbin/mount.smb3@
    
      

    And the o parameter is everything you would put as options to the mount command (e.g. in the 4th column in /etc/fstab). In the case of smb3, you can run mount.smb3 --help to see a list of available options.

    Doing it this way, Docker will make sure the share is mounted before running the container. Also, if you move the compose file to a different host, it'll just work if the share is reachable from that new location.

  • I’m a long time Pushover user and recently set it up with CrowdSec.

    If a curl is sufficient for ntfy as well, you should be able to adapt the http-plugin.

  • Does the data change a lot? Does it need to be a block-based backup (e.g. bootable)? Otherwise, you could go with rsync or restic or borg to only refresh your backup copy with the changed files. This should be far quicker than taking a complete backup of the whole SSD.

  • On the mobile website, you have to go to the menu and select “Feeds”. However, there’s no direct link to it.

    What I don’t like about using the mobile browser is that FB doesn’t behave like a PWA but opens as a normal webpage instead. Which means the cookies can be used to track the other pages I visit (that use FB login or other components from FB).

  • I’ve setup an automatic redirect from the FB start page to:

    https://www.facebook.com/?filter=all&sk=h_chr

    This is the feed from followed people only - sorted by date, most recent first.

    That’s the only sane way of using FB. Sadly, there doesn’t seem to be a similar option in their mobile apps.

  • I’m using News Explorer for my RSS feeds which also supports subscribing to YouTube channels. In the newer versions it even pulls the comments from YT.

  • The power-on hours are shown directly on the Health Info page, no need to click through to the SMART attributes.

  • According to my Synology:

    • WD40EFRX-68WT0N0 - 86,272 hours
    • WD40EFRX-68WT0N0 - 86,207 hours
    • WD40EFRX-68N32N0 - 34,417 hours
    • ST4000VN006-3CW104 - 10,054 hours
  • You mean “Two printers and one CUPS”?

  • These variable names are dynamically parsed and used for generating the smb.conf.

    And if you need a way to support underscores AND spaces (which are not allowed in a variable name), you have to get creative.

    I like the solution as it allows me to encode any possible configuration value (even the most obscure one) in the compose file.

  • Yes, it’s explained in the documentation.

    E.g.:

     
            SAMBA_GLOBAL_CONFIG_bind_SPACE_interfaces_SPACE_only: yes
    
    
      

    maps to:

     
            [global]
        bind interfaces only = yes
    
    
      

    This way you don’t need to provide any extra configuration file.

  • If you want to keep up with friends/family, you can do a chat group on any of the many messengers. Or even use an RCS/iMessage group. You don't need a full-blown social media thingy for this.

  • They just get rid of a bunch of so-called "fact checkers" deciding for you which posts you're allowed to see and which get banned/hidden/deleted. It's not the end of the world. You can still block people. You can still decide NOT to read posts.

  • There's dockurr/samba which is also pretty easy to setup, but doesn't allow much deviation from the defaults.

  • You'll find it a much more encouraging and rewarding experience if you connect with people instead

    And you’ll find that a lot of your so-called “friends” won’t include you in any activities if it means they have to contact you separately via other means.

  •  
        
    # https://github.com/ServerContainers/samba
    
    services:
      server:
        image: ghcr.io/servercontainers/samba:latest
        restart: unless-stopped
        network_mode: host
        environment:
          TZ: Europe/London
          MODEL: MacSamba
          SAMBA_GLOBAL_STANZA: "vfs objects = acl_xattr catia fruit streams_xattr; fruit:nfs_aces = no; inherit permissions = yes; fruit:model = MacSamba; fruit:posix_rename = yes; fruit:veto_appledouble = no; fruit:wipe_intentionally_left_blank_rfork = yes; fruit:delete_empty_adfiles = yes; fruit:metadata = stream"
          SAMBA_GLOBAL_CONFIG_load_SPACE_printers: no
          SAMBA_GLOBAL_CONFIG_printing: bsd
          SAMBA_GLOBAL_CONFIG_printcap_SPACE_name: /dev/null
          SAMBA_GLOBAL_CONFIG_disable_SPACE_spoolss: yes
          SAMBA_GLOBAL_CONFIG_min_SPACE_protocol: SMB2
          SAMBA_GLOBAL_CONFIG_bind_SPACE_interfaces_SPACE_only: yes
          SAMBA_GLOBAL_CONFIG_interfaces: lo eth0
          SAMBA_CONF_SERVER_STRING: Docker Host Samba
          #SAMBA_CONF_LOG_LEVEL: 3
          ACCOUNT_shareuser: mypassword
          UID_shareuser: 1000
          # avahi seems to introduce issues with the share
          # "The operation can't be completed because the original item for "xxx" can't be found."
          AVAHI_DISABLE: true
          WSDD2_DISABLE: true
          #NETBIOS_DISABLE: true
          SAMBA_VOLUME_CONFIG_myshare: "[myshare]; path=/shares/myshare; valid users = shareuser; guest ok = no; read only = no; browseable = yes"
        volumes:
          - /path/to/myshare:/shares/myshare
    
      

    Just make sure you don’t have any local SMB server running on the host. And if you need multiple different shares, these all need to go into the same container or you need to define different ports if you use multiple containers.

  • why bother with the aliases

    Because once some service “loses” (or sells) your email and you start getting spam, it’s pretty easy to burn that specific email address and change it to something else with that specific service and the spam will stop.

  • I thought the thing will lower your phone into the box so that the battery doesn’t take your whole room with it when it eventually explodes during charging…