Category / SysAdmin

In order to increase the size of files you can upload in WordPress, we need to adapt the software powering the software. Let’s begin with PHP, I use Nginx + php-fpm to run PHP, so I need to edit /etc/php.ini on line 799, upload_max_filesize determines the maximum allowed size a PHP file will accept for upload. […]

Read More

Some powerful and or useful find commands; As with anything on the web, test before running ! (I forget the syntax so this is mainly self-documenting)     Find all *.tsv larger 1Mb, compress them with the super fast lz4 on high compression and remove the source file after this. find . -name “*.tsv” -size +1M -exec […]

Read More

I could not remove this folder in Windows. It gave an error that is was not there anymore … uh-oh … corruption ? I checked the disk using the windows utility but the disk seemed fine (raid was a-OK). To my surprise the only solution was to go to the windows console / command prompt and remove […]

Read More

This is the tale of caution, when sleep deprived, sysadmin with caution! Let’s be honest who never said : lets finish this game, let’s have another drink, I will sleep when dead, … (enter sleepless night excuse here) ? Last night for me I was on a coding spree, when a thunderstorm broke, I was […]

Read More

A weird bug that crashed the samba server : # service smb status Redirecting to /bin/systemctl status smb.service ● smb.service – Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled; vendor preset: disabled) Active: failed (Result: exit-code) since Fri 2018-05-11 05:27:35 CEST; 4 days ago Main PID: 1130 (code=exited, status=1/FAILURE) May 11 05:27:35 svennd.be systemd[1]: Starting Samba […]

Read More

While compiling minimap 2 on Centos 7, I got his annoying error : fatal error: zlib.h: No such file or directory Missing dependency ! I wish some tool would help out and tell you, what library I was missing, so I could stop making these posts. As to the solution : yum install zlib-devel for […]

Read More

I’m no expert on this, but I had to google everything together so many times, I made a soon-to-be-outdated half-ass guide on how to let users access a samba share on Linux using the windows domain controller “AD” (active directory) or at least how I got it to work. Let me know if it worked […]

Read More

I can’t seem to find apcupsd (a ups monitor, that shutdowns computers, before you run out of ups power) on Centos 6, surprisingly on Centos 7 this package is available from epel, but not so for Centos 6. Here is a condense howto get the source and compile it. (mainly for my personal use) wget […]

Read More

Sometimes you want to have newer software on Centos/Red Hat. But its because that slower adoption, we can actually use Centos for so long, and the support they deliver is amazing. That being said, sometimes there is no getting back and you need newer software. Python 3X is such a package. So let’s go ahead […]

Read More

UUID of hard disk

19 April, 2018

If you ever have been bitten by the changing letters from Linux hard drives, then stop the crying, UUID is here to save the day. Definitely if you fubar’d your installation for the second time and had to reinstall once again, this is a useful tip. Hard disks and virtual raid disks have a UUID, […]

Read More