Skip to main content


Pixelfed federation

Hello !The Lazy Admin Club ,
is anyone successfully running a #Pixelfed instance? I've installed one yesterday but federation doesn't work. I cannot follow my Pixelfed account from Friendica, Mastodon and Pleroma. The contact request stays in 'waiting for approval' mode and there's no indication on Pixelfed that someone is trying to follow me.

Also, I don't know how to find and follow a remote user from another instance on Pixelfed itself.

The config of Pixelfed seems to be ok. When I probe my Pixelfed account from Friendica the result looks good, too. I'm lost. :-)

Issue on Github:

Pixelfed 0.9.0
Installed via composer
PHP 7.2.15
Apache2 2.4.29 PHP-FPM
MariaDB 10.3.14 (with support for json fields)
Redis 4.0.9

Any idea?


About your initial question - no I'm not. But for the 1st time this morning I got some photos posted to my account at delivered to my Friendica account :-) The Friendica account is also not stuck anymore in the "waiting for approval".

Neat, there is a PAM module to secure ssh logins with google authentificator compatible 2FA (e.g. my NitroKey works fine) libpam-google-authenticator. See e.g. this article for a description on how to set it up.

If you already have public key authentication set up, this module seems not to add the 2nd factor as the 2nd factor is only used to harden the response authentication (entering a password).

!The Lazy Admin Club

I have mine set up with both public key and 2fa. It uses both... I have my instructions somewhere....


Updating software that was installed using Make Install

!The Lazy Admin Club

If I've installed something using make install (in this case libmodsecurity) and I wish to update at a later date... do I need to do a make uninstall first? And then download the latest source files and go through the process again? Or can I just do another make install - will it just overwrite and update any files previously installed? What's best practice?

#linux #makeinstall #ubuntu #modsecurity

@Mark I dunno, I used to use it a few years ago, nowadays I use the simple method I presented to build proper packages by hand. :)

If you're using Debian it's in the stable main repo, so it works. Then on different distros YMMV.

@The Lazy Admin Club

Imagine this scenario:

I have a php driven website (eg wordpresss). The webserver runs as user www-root and a php-fpm pool is set up that runs under user:group site1:site1.

Does www-data still need access to the files or can I set my file permissions for the website directory based purely on user site1?

It depends - is the webserver going to be accessing any of the files directly? In many cases you'll still have some kind of static file access that the webserver is going to need access to.

I was thinking from a security perspective. It doesn't seem good practice to have multiple sites all writable by the same user. So if the webserver still needs read access then maybe a chown site1:www-data and a chmod 640 would be most suitable (unless it needs to be public readable)?

or alternatively, chown site1:site1, chmod 640, and add www-data to the site1 group. I've just read that if it's an upload directory, then the webserver will also need write access. But surely if it's a php driven site, uploads are going to be performed via a php script so its the pool user that requires write permissions?

I would generally try to have as little writable as possible by either the FPM user or the web server. I was going to suggest exactly what you mentioned in your last comment about adding the web server user to the user's group. You could also add the FPM user to the user's group, too.

And I say this in the 'general' sense because in the case of my friendica node, for example, that's the only purpose of the server, so the FPM instance runs as the user who owns all of the Friendica code. nginx doesn't have any special permission or group access, so things have to be world readable for it.

!The Lazy Admin Club

I'm going to be moving to a dedicated server in the next month or so and am currently planning my setup with regards to PHP-FPM.

As I'll be running various PHP driven sites, I thought it best from a security point of view to use FPM pools properly this time, and having a seperate owner for each website.

This still leaves the potential security issue of the opcache and apcu cache being shared by all sites as it's controlled by the PHP master process.

I've read that the solution is to have multiple PHP master processes - one for each site, which means that each site will have it's own seperate opcache and apcu cache. I'm just wondering if this is still the correct approach as the articles I can find advising this all tend to be a few years old.

Those that are using FPM and are hosting multiple sites, have any of you taken this approach?

This is an example of one of the articles I've been reading:

#php7 #php #fpm #opcache

!The Lazy Admin Club

A shell script to display the status of all your fail2ban jails at once (works fine for me on Ubuntu): #fail2ban #serveradmin #linux #bash


/dev/null Saves the Day

Admittedly, the lazy admin I am, I ignored the email warnings of a rather frequently set cron job. Now my relay provider recommends a special deal for my email log spam on industrial scale...


The moral of the story, my dear fellow admins, always redirect your cron jobs' stdout to somewhere, preferably a log or /dev/null 2>&1.

With that in mind, all that remains to be said: Have a Happy Holiday!

!The Lazy Admin Club


Tweaking Two-Factor Authentication for SSH


I'm using two-factor authentication for remote SSH access.

This also means accessing the SSH server from the local network requires two-factor authentication.

Is there a way to exude specific users from two-factor authentication and than grant them only local access?

At the moment all users seem to require two-factor authentication, regardless whether they have set a second validation level.

!The Lazy Admin Club

Finally, got it working properly!This is right the pam configuration. Plus Rebeka 's ssh settings.

auth [success=1 default=ignore] accessfile=/etc/security/access.conf
auth sufficient
auth required


Unusual high disk IO on one disk

!The Lazy Admin Club


When looking at my Munin monitoring I see something strange:


All four disks (sda to sdd) are members of the same RAID10 setup, but for some unknown reasons sda has twice as high disk utilization than the other three disks. The same also counts for disk I/O stats:


Does someone has an idea what might cause this?

#debian #server #linux #raid #raid10 #lvm #xen

Yes, all the same Supermicro X9SRE/X9SRE-3F/X9SRi/X9SRi-3F board, sda & sdb are connected to 6 Gb SATA, sdc & sdd to 3 Gb SATA. (sde is a small USB thumb dongle not in use).
Model Family:     Western Digital Red
Device Model:     WDC WD20EFRX-68AX9N0
Serial Number:    WD-WMC301414725
LU WWN Device Id: 5 0014ee 65887fe2c
Firmware Version: 80.00A80
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri Nov 16 19:02:17 2018 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

Model Family:     Western Digital Red
Device Model:     WDC WD20EFRX-68AX9N0
Serial Number:    WD-WMC301414372
LU WWN Device Id: 5 0014ee 65887f374
Firmware Version: 80.00A80
User C
... show more



Hi, I’m the admin of my own Pleroma instance, which no one else uses it.

Hallo zusammen, ich beschäftige mich gerade mit dem Thema #Monitoring. Dazu habe ich mir jetzt mal in einer #Proxmox #VM ein #Icinga2 aufgesetzt. Dank dem super #Tutorial hat dies wunderbar funktioniert.
Jetzt die #Frage: Gibt es empfehlenswerte #Tutorials #HowTo s zu dem Thema #Icinga2? Speziell wenn es um das überwachen von #Servern #Dienste #Netzwerke geht.
Wäre um #Tipps echt dankbar.

!The Lazy Admin Club #Admin #Server #Frage #Schwarminteligenz #followerpower


Coming Soon!

!The Lazy Admin Club

OK, I've neglected this for too long! But I'm currently busy documenting my entire adventure of creating my own corner of the internet so there'll be lot's of bits and pieces coming soon... :)

@The Lazy Admin Club @Deutschsprachige Nutzer @Friendica Admins

Hallo Leute, am Wochenende hatte ich meinem Webserver PHP7.2 spendiert und die gesamte Konfig angepasst.
Heute habe ich nun mpm_prefork abgeschaltet und fpm und damit http2 eingeschaltet.

Weil ich gerade dabei war, habe ich die Konfig von LetsEncrypt auch gleich auf RSA=4096 hochgeschraubt.

Das SSL-Lab vergab dafür ein A+ und sowie sausen nun gefühlt doppelt so schnell ;-)


Prosody and file/photo sharing

@The Lazy Admin Club

I have a working Prosody server but nobody using it is able to send files using the conversations client. I'm guessing that it's because I haven't set up the necessary modules. Does anyone know of a clear guide on the net to setting this up? I'm struggling to find anything.

#serveradmin #prosody #xmpp

I don't think you actually need a "real" subdomain for muc, its just something that prosody uses to differentiate the muc in the configs (according to somebody else, so YMMV) personally I created the sub just to be sure, but I didnt create a cert for that and it seems to work just using the cert for the base domain..

Not only that, but you will also need appropriate DNS entries to redirect towards your server. I think the compliance tester is a bit fussy on this point, as it will not accept a wildcard in the DNS (but the specs probably require explicit entries).
As per certificates, note that letsencrypt now allows wildcard certificates, although the drawback is that autorenewal does not work for those...

I guess I could add an extra domain to the list and reissue. Its only a 2 minute job after all :)

This entry was edited (1 year ago)