Nginx – Configuring reverse proxy + caching

Published on Author gryzliLeave a comment

Here are some useful steps, how to configure nginx reverse proxy + caching.      1) How does Nginx  proxy cache works ?        In the scheme above we are considering that we have Apache upstream/origin server and in front of it Nginx which does reverse proxying + caching of Apache response.   … Continue reading Nginx – Configuring reverse proxy + caching

Protect from CVE-2016-5195 (DirtyCow) on Centos 7/RHEL7/cPanel/CloudLinux

Published on Author gryzli2 Comments

On october 19 2016, the Dirty Cow vulnerability went public (which is kernel privilege escalation vulnerability) . From what I have read and test, the exploit is working only on Centos 7/ RHEL7 / Cloudlinux 7 distros . I don’t know for other distros, because I’m not interested in them. How to protect yourself from… Continue reading Protect from CVE-2016-5195 (DirtyCow) on Centos 7/RHEL7/cPanel/CloudLinux

Centos 5 Yum Is Throwing [Errno -3] Error performing checksum

Published on Author gryzliLeave a comment

If you happen to encounter this problem, you could try the following fixes:   1| If you are using “custom” repository If you are using custom repository, which is made by newer version of “createrepo” , there is a big chance that you repodata checksums are generated with sha256. Centos 5’s yum doesn’t support sha256… Continue reading Centos 5 Yum Is Throwing [Errno -3] Error performing checksum

Installing perlbrew on Centos/Rhel/Fedora

Published on Author gryzliLeave a comment
Installing perlbrew

Why you may need perlbrew ? Perlbrew gives you the ability to maintain multiple perl versions, each having different set of install perl modules. The concept is not any new, we have already seen such things in Python (virtualenv) or Ruby (rvm). Basically you get the following benefits (as state in the perlbrew site also):… Continue reading Installing perlbrew on Centos/Rhel/Fedora

Centos/RHEL/Fedora Create Your Own YUM Repository

Published on Author gryzliLeave a comment

If you have learned how to build your own rpm packages (or want to use custom already built ones) , you maybe want to use your own yum repository for installing these packages. In the following how-to I will show you how to easily setup a yum repository. Prerequisites 1| Install createrepo First you need… Continue reading Centos/RHEL/Fedora Create Your Own YUM Repository

Centos/RHEL/Fedora Build RPM Package From Scratch

Published on Author gryzliLeave a comment
Build custom RPM on centos/rhel/fedora

Why to create your own RPM Package ? In the following post, I will explain how one could easily build RPM package from a custom files. Let say you have added some custom scripts or files and you want to create RPM of them, here is how to do it.   How to build your own… Continue reading Centos/RHEL/Fedora Build RPM Package From Scratch

Systemd – systemctl list-unit-files timeouts

Published on Author gryzliLeave a comment

The problem Recently I’ve started to occasionally see systemctl to timeout, while executing “list-unit-files”. The problem itself looks very annoying and the first thought I had was: “systemd is bugged out, the server must be restarted” In my current case, the problem is observed on a Centos 7 box. If you “restart” the server you… Continue reading Systemd – systemctl list-unit-files timeouts

Centos 6 – Curl , SSL and Illegal Instruction error

Published on Author gryzli8 Comments

The “Illeagal Instruction” problem If you recently started to see errors like “illegal instruction” while trying to execute different web accessing scripts/binaries (like curl httpS://example.com), then most probably your Centos 6  NSS package was just updated.   The impact of this bug is enormous, because every single HTTP library which uses nss,openssl for maintaining HTTPS… Continue reading Centos 6 – Curl , SSL and Illegal Instruction error

Centos 6 – Recompile Apache Suexec

Published on Author gryzli1 Comment

By default Centos 6 has Apache (2.2.x) which comes with suexec preinstalled. The suexec module itself could be found here: /etc/httpd/modules/mod_suexec.so There is also a suexec wrapper binary, which is by default installed here: /usr/sbin/suexec   0. What is the problem with default suexec ? Imagine you want to activate Suexec for some of your… Continue reading Centos 6 – Recompile Apache Suexec

(Fedora) Lenovo Thinkpad T440 T450 T460 – Fix Trackpoint Scrolling And Left Button

Published on Author gryzliLeave a comment

The Problem I was using Fedora 23 happily with my old Thinkpad T520 and all of my trackpoint “stuff” was working just fine. After buying a new T460, suddenly I faced some trackpoint-related problems: First: The middle trackpoint button stopped scrolling anything Second: The left trackpoint button stopped working for marking text (only double-clicks were… Continue reading (Fedora) Lenovo Thinkpad T440 T450 T460 – Fix Trackpoint Scrolling And Left Button