mbirth 🇬🇧

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

  • 1 Post
  • 180 Comments
Joined 2 years ago
cake
Cake day: June 1st, 2023

help-circle















  • mbirth 🇬🇧@lemmy.mltoSelfhosted@lemmy.worldZabbix in selfhosted env
    link
    fedilink
    English
    arrow-up
    11
    arrow-down
    1
    ·
    1 month ago

    I have this running on a Raspberry Pi 5:

    services:
      db:
        image: postgres:16-alpine
        environment:
          - POSTGRES_USER=zabbix
          - POSTGRES_PASSWORD=zabbix
          - PGDATA=/var/lib/postgresql/data
        volumes:
          - /opt/docker/zabbix7/pgdata/16/data:/var/lib/postgresql/data
        networks:
          - zabbix7
        restart: unless-stopped
    
      # fping needs setsuid
      # Connect to container as "root" and run: chmod +s /usr/sbin/fping
      server:
        image: zabbix/zabbix-server-pgsql:alpine-7.4-latest
        environment:
          - POSTGRES_USER=zabbix
          - POSTGRES_PASSWORD=zabbix
          - PHP_TZ=Europe/London
          - ZBX_SERVER_NAME=zabbix.domain.com
          - ZBX_NODEADDRESS=zabbix-server:10051
        cap_add:
          - NET_RAW
          - NET_ADMIN
        volumes:
          - /opt/docker/zabbix7/zabbix-server/alertscripts:/usr/lib/zabbix/alertscripts
          - /opt/docker/zabbix7/zabbix-server/externalscripts:/usr/lib/zabbix/externalscripts
          - /opt/docker/zabbix7/zabbix-server/mibs:/usr/lib/zabbix/mibs
          - /opt/docker/zabbix7/zabbix-server/modules:/usr/lib/zabbix/modules
          - /opt/docker/zabbix7/zabbix-server/export:/var/lib/zabbix/export
          - /opt/docker/zabbix7/zabbix-server/snmptraps:/var/lib/zabbix/snmptraps
        ports:
          - 10051:10051
        depends_on:
          - db
        links:
          - "db:postgres-server"
        networks:
          - zabbix7
          - traefik-public
        restart: unless-stopped
    
      web:
        image: zabbix/zabbix-web-nginx-pgsql:alpine-7.4-latest
        restart: unless-stopped
        environment:
            - PHP_TZ=Europe/London
            - ZBX_SERVER_NAME=zabbix.domain.com
            - ZBX_SERVER_HOST=zabbix-server
        #ports:
        #  - 10080:8080
        #  - 10081:443
        depends_on:
          - server
          - db
        links:
          - "server:zabbix-server"
          - "db:postgres-server"
        networks:
          - zabbix7
          - traefik-public
        labels:
          traefik.enable: "true"
          traefik.http.routers.zbx.rule: Host(`zabbix.domain.com`)
          traefik.http.routers.zbx.entrypoints: https
          traefik.http.routers.zbx.tls: "true"
          traefik.http.routers.zbx.tls.certresolver: le
          traefik.http.services.zbx.loadbalancer.server.port: "8080"
    
    networks:
      traefik-public:
        external: true
      zabbix7:
        attachable: true
    


  • Midnight Commander (mc) is a classic file manager if you grew up in the 90s with Norton Commander on DOS.

    For my local Git repositories I prefer lazygit now. There’s also a plethora of other lazy* tools for e.g. Docker.

    And you should maybe look at dialog or whiptail to spice up your shell scripts.

    If you do Python, there’s the rich library and there’s also pythondialog. Both pretty easy to use. If you want more, there’s textual.

    EDIT: mutt for emails is nice once you’ve managed to set it up.



  • https://www.douane.gouv.fr/fiche/volume-and-value-based-customs-and-tax-allowances

    Value-based allowances, which apply to goods you’re carrying (purchases or gifts), mean that you don’t have to fill in a customs declaration or pay tax or duty. You don’t have to declare goods (including gifts) so long as their total value or their quantity doesn’t exceed the allowance limits.

    The overall market value of goods cannot exceed the following amounts:
    Arriving by plane or ferry: €430

    Any item whose value exceeds the limit must be declared and you will need to pay the amount of value added tax (VAT) and customs duties that would usually apply. These duties and taxes apply to the full purchase price on the receipt or an agreed-upon estimated value.

    If you are bringing multiple items into the country, each item will count toward your overall limit; once you reach the limit, any surplus goods will be taxed.

    Also note that the Steam Deck contains a Li-Ion battery and thus isn’t allowed in the cargo hold. So you’d have to take this into your carry-on onto the plane.

    EDIT: Oh, and since it has a Li-Ion battery, you’ll have to take it out of its packaging and have it scanned separately during the security check. At least that’s how it usually is when travelling in the EU.