Checking disk activity with ZFS – iostat

Pretty neat little command that I wasn’t aware before, but quick check of the manpage would bring it to my attention. :-) To check current disk activity stats on your zpool you can use: zpool iostat -v POOLNAME You can of course omit pool name, without it it’ll show statistics for all pools. Command output example: $ zpool iostat -v capacity operations bandwidth pool alloc free read write read write ---------- ----- ----- ----- ----- ----- ----- storage 838G 554G 1 40 54....

March 28, 2017 · 1 min · Ivan Tomica

Deploying Let’sEncrypt on R1Soft Server Backup Manager (CDP)

Securing R1Soft Server Backup Manager (CDP) with SSL/TLS encryption sounds like a good idea. Using Let’s Encrypt to accomplish that sounds even better! Unfortunately, there’s no way to automatically install SSL certificates to Server Backup manager as its web interface is being run by Apache Tomcat, which parses those certificates from its keystore, so yeah, there’s a bit of hacking involved. Naturally, I wrote a script to resolve that :-)...

March 27, 2017 · 3 min · Ivan Tomica

Installing cPanel on low memory system

This is more of an reminder for myself when trying to install cPanel system on cheap, low memory system, just to test something out. On CentOS 7 cPanel requires at least 1024MB of RAM, while on CentOS 6 it requires 768MB of RAM. If you have less than that install will straight out fail. I understand that this are recommended requirements, and that is not good idea to run anything serious on less memory than that....

March 24, 2017 · 2 min · Ivan Tomica

Firefox 52 Gnome shell integration on Fedora 25

After update to newest Firefox version on Fedora 25 my gnome shell integration stopped working. When visiting extensions.gnome.org website I was greeted with following message: To control GNOME Shell extensions using this site you must install GNOME Shell integration that consists of two parts: browser extension and native host messaging application. When I followed the link and installed gnome shell integration Firefox plugin I was getting following error:...

March 10, 2017 · 1 min · Ivan Tomica

My Tmux configuration

I’ve spent some time tweaking and playing around with my .tmux.conf. If you’re interested in how I did it or search for some inspiration you can find my configuration at the bottom of this post. I’ll briefly explain and showcase some of the options throughout the article. To reload config without closing and re-opening Tmux again I’ve mapped Prefix + r as key combination to source ~/.tmux.conf: # Reload config bind r source-file ~/....

March 4, 2017 · 3 min · Ivan Tomica

How to configure Bind with IPv6 on cPanel

This one is pretty simple, and if you properly set up your network settings when installing server it should work automatically, if not go to the Basic setup window: Navigate to the IPv6 settings section and enter your server main IPv6 address. Save settings and WHM should automatically rebuild your named.conf to listen on IPv6 address.

February 28, 2017 · 1 min · Ivan Tomica

Checking “Cloudbleeded” passwords in password-store (pass)

So, there’s this CloudFlare HTTPS traffic memory leak that happened and it is good idea to change passwords for all of your sites that are using cloudflare. Full list of sites using cloudflare is available on above mentioned Github page. I’m using pass, simple password manager that stores all of the credentials in gpg encrypted files. I’m not going on explaining what it is in more details since if you’re reading this blog you probably at least know of it....

February 25, 2017 · 2 min · Ivan Tomica

Installing Let’sEncrypt SSL on cPanel DNSOnly

If you’re using cPanel DNS only you probably know that AutoSSL feature isn’t available on it. Reason for that is because DNSOnly cPanel installation doesn’t have web server running as classic version does. To circumvent this you may use certbot standalone mode to issue a Let’s encrypt certificate. Command you would use is: certbot certonly --standalone -d HOSTNAME -n -m CONTACT@EMAIL.EXAMPLE --agree-tos Ok, if domain resolves to the correct server certbot will launch its built-in web server and perform verification and hopefully certificate should be issued....

February 21, 2017 · 2 min · Ivan Tomica

Installing PostgreSQL in FreeBSD jail

To install and run PostgreSQL in FreeBSD jail you’ll need to enable allow.sysvipc system tuneable on that specific jail: List jails: jls Note jail ID and use following command to enable it for that running jail: jail -m jid=JAILID allow.sysvipc=1 This can also be accomplished by changing ezjail jail configuration file /usr/local/etc/ezjail/JAILNAME, ensure it contains: export jail_JAILNAME_parameters="allow.sysvipc=1" Install appropriate version of PostgreSQL. There are many different versions but I’ll use 9....

February 19, 2017 · 1 min · Ivan Tomica

Redis as PHP session handler on FreeBSD

This one is quite simple to be honest. Assuming you have Redis already installed and set up correctly you can just change your php-fpm pool definition to include: php_value[session.save_handler] = redis php_value[session.save_path] = "tcp://127.0.0.1:6379" If you’re using password for logging into redis you would specify it like: php_value[session.save_path] = "tcp://127.0.0.1:6379?auth=PASSWORD" Restart php-fpm after that: service php-fpm restart and you should now see PHP saving sessions within Redis service:...

February 14, 2017 · 1 min · Ivan Tomica