[–] 3 points 1 hour ago*

For a friend that asks you about installing Linux to their devices, you are already the "IT guy". But you can eliminate 95% of the work by picking a proper distro instead of having to help them with Microslop issues... and the other 5% by configuring it in a way to make maintenance easier for you.

  • source
  • parent
  • context
  • [–] 4 points 2 hours ago*

    Klar, ist es besser geworden.

    Der Durchschnittsdeutsche liest nicht mehr täglich von den Streitereien der völlig unfähigen Regierung, von den irrsinnigen Plänen, ihnen ihre Heizung aus dem Keller zu reißen, die Industrie zu zerstören, ihnen nicht funktionierende Elektroautos und Wärmepumpen aufzuzwingen und ihn aus Ideologiegründen arm zu machen.

    Ach, Moment... du hast die Realität gemeint? Nach der Wählen die meisten nicht...

  • source
  • parent
  • context
  • [–] 19 points 12 hours ago

    Die Begründung hat es in sich: Im Bescheid des Kultusministeriums findet sich ein Hinweis des Verfassungsschutzes, der Begriff „Profitmaximierung“ – von Poettinger verwendet – entstamme dem Kommunismus.

    Praktisch alle Geschäftsführer sind also Kommunisten. Ich glaube Bayern ist das was ganz großem auf der Spur.

  • source
  • [–] 13 points 13 hours ago* (last edited 2 hours ago) (3 children)

    Die Antwort ist ist eigentlich einfach.

    In jeder Krise gibt es diejenigen, die nach realen, differenzierten Lösungen suchen, und die, die einfach nur laut und schrill dumme, aber, wenn man nicht weiter darüber nachdenkt, schlüssige Parolen keifen. Letzteres kommt bei den Menschen gut an, weil sie da nicht denken oder hinterfragen müssen.

    Und Spanier sind da offensichtlich in guter Gesellschaft. Mehrheitlich etwas dümmlich und wunderbar manipulierbar. So wie die Menschen offenbar überall und zu sehr verschiedenen Zeiten.

  • source
  • [–] 9 points 15 hours ago (1 child)

    If the left is in power and there is a bad economy,

    Most countries have not seen "the left in power" for many decades, sometimes never, and it's basically just "if right-wing shit policies din't help, they were probably not extreme enough".

  • source
  • parent
  • context
  • [–] 4 points 15 hours ago*

    Probably because people were more scared when they started. Just like you still find a lot of information how to reduce write/read accesses to your SSD to not kill it quickly while in reality an average user nowadays wouldn't be able to kill an SSD even if he tried.

  • source
  • parent
  • context
  • [–] 9 points 15 hours ago* (last edited 15 hours ago) (4 children)

    Trim can be handled by the system without a dedicated script, either as contunues trim (by just mounting it with the discard option) or periodically via already provided SystemD services and timers (both supported by btrfs). And I think the most common defaults would be doing it once a week or so.

    Scrubbing on the other hand once a week feels excessive to me. And I would definitely not look at the result only at the moment I start the next scrub. Also I like having such stuff happen in the background without noticing much, so again SystemD is your friend by providing you ways to do it on a timer while also limiting the amount of ressources used via slices and ways to only notify you on a failure.

    And then there is balancing which I really do very rarely. If you don't have the habit of littering your disk with dozens and dozens of snapshots until it's getting full, there is not much need.

    (And then there're the SMART self-tests I would definitely not skip... a simple short one daily doesn't hurt, a more extended full one once a week.)

    Long story short. Even if I wanted to do exactly what you plan, I would not put it into one script, because of different intervals (also to spread things out over time).

    Edit: And to keep this whole thing more constructive, here my setup for scrubbing as an example

    background.slice:
    [Slice]
    CPUQuote=20%
    IOReadBandwithMax=10M

    notification_mail@.sevice:
    [Unit] Description=Send Systemd Notification to eMail

    [Service]
    Type=oneshot
    ExecStart=/sbin/sh -c 'echo "Subject: Service %i failed\n\nService %i failed.\n$(systemctl status %i)" | /sbin/msmtp <mail.address>'

    [Install]
    WantedBy=multi-user.target

    monthly_scrub.service:
    [Unit]
    Description=Monthly BTRFS Scrub
    OnFailure=notification_mail@%i.service

    [Service]
    Slice=background.slice
    Type=simple
    ExecStart=/sbin/btrfs scrub start -RBd / >> /var/log/monthly_scrub.log

    monthly_scrub.timer;
    [Unit]
    Description=Monthly BTRFS scrub timer

    [Timer]
    OnCalendar=monthly
    RandomizedDelaySec=1day
    Persistent=true

    [Install]
    WantedBy=timers.target

  • source
  • [–] 1 point 16 hours ago* (last edited 2 hours ago) (1 child)

    Okay, das ist etwas altertümlich, aber zumindest nicht so bescheuert.

    Kessel sind ja grundsätzlich nichts absurdes... und im Englischen kommt noch dazu, dass das auch ein moderner Wasserkocher als "elektrischer Kessel" bezeichnet würde.

    In mir stirb halt nur jedesmal etwas, wenn ich sehe, wie Leute Wasser für Tee erhitzen, indem sie Tasse oder Glas in die Mikrowelle stellen (und dazu kommt dann noch, dass die wenigsten wissen, dass da ein Löffel nicht nur erlaubt ist, sondern während des Erhitzens reingehört).

  • source
  • parent
  • context
  • [–] 1 point 16 hours ago*

    Es gibt zwar deutlich weniger linke Inhalte, aber es gibt sie und sie sind für jeden findbar, der möchte.

    Du gehst von der völlig falschen Annahme aus, dass sie sich informieren wollen. Da hat die Mehrheit aber kein Interesse dran. Also hilft es exakt Null, dass linke Inhalte auffindbar sind, wenn man danach sucht. Denn was die größere Rolle bei der politisch wenig interessierten Wählerschaft spielt, sind die Inhalte, die man nicht suchen muss, sondern mit denen man von allein ständig beschallt wird. Und da sind wird dann durchgehend eben doch wieder bei rechts, rechter, rechtsradikal.

    Dieser Infantilisierung der armen Wähler, die ja quasi nicht anders können als wie Marionetten zu tun was ihnen eingetrichtert wird

    Das hab ich so weder gesagt noch ausdrücken wollen. Natürlich sind die keine völlig unschuldigen Opfer. Aber den propagandainduzierten Hirnschaden werden sich trotzdem die wenigsten bewusst ausgesucht haben.

  • source
  • parent
  • context
  • [–] 3 points 18 hours ago*

    "Sollte"... aber die haben jedes bisschen "liberal" außer Neo- und Marktliberalismus schon vor Ewigkeiten beerdigt. Tatsächlich haben sie in der letzte Regierung mit hirnverbranntem Scheiß wie dem Tankrabatt und ihrem Kampf für technologische Rückständigkeit Technologieoffenheit ja selbst den heiligen freien Markt hinter sich gelassen und sich selbst zur reinen Lobbygruppe obsoleter Industrien degradiert. Das kann halt jede andere korrupte Partei genauso.

  • source
  • parent
  • context
  •  

    As this will -thanks to me being quite clueless- be a very open question I will start with the setup:

    One nginx server on an old Raspi getting ports 80 and 443 routed from the access point and serving several pages as well as some reverse proxies for other sevices.

    So a (very simplified) nginx server-block that looks like this:

    # serve stuff internally (without a hostname) via http
    server {
    	listen 80 default_server;
    	http2 on;
    	server_name _; 
    	location / {
    		proxy_pass http://localhost:5555/;
                    \# that's where all actual stuff is located
    	}
    }
    # reroute http traffic with hostname to https
    server {
    	listen 80;
    	http2 on;
    	server_name server_a.bla;
    	location / {
    		return 301 https://$host$request_uri;
    	}
    }
    server {
    	listen 443 ssl default_server;
    	http2 on;
    	server_name server_a.bla;
       	ssl_certificate     A_fullchain.pem;
        	ssl_certificate_key A_privkey.pem;
    	location / {
    		proxy_pass http://localhost:5555/;
    	}
    }
    #actual content here...
    server {
    	listen 5555;
    	http2 on;
        	root /srv/http;
    	location / {
            	index index.html;
       	} 
        	location = /page1 {
    		return 301 page1.html;
    	}
        	location = /page2 {
    		return 301 page2.html;
    	}
            #reverse proxy for an example webdav server 
    	location /dav/ {
    		proxy_pass        http://localhost:6666/;
    	}
    }
    

    Which works well.

    And intuitively it looked like putting Anubis into the chain should be simple. Just point the proxy_pass (and the required headers) in the "port 443"-section to Anubis and set it to pass along to localhost:5555 again.

    Which really worked just as expected... but only for server_a.bla, server_a.bla/page1 or server_a.bla/page2.

    server_a.bla/dav just hangs and hangs, to then time out, seemingly trying to open server_a.bla:6666/dav.

    So long story short...

    How does proxy_pass actually work that the first setup works, yet the second breaks? How does a call for localhost:6666 (already behind earlier proxy passes in both cases) somehow end up querying the hostname instead?

    And what do I need to configure -or what information/header do I need to pass on- to keep the internal communication intact?

    view more: next ›