Installing OTP for pass (password-store) on OpenSUSE

I’ve been using password-store utility for saving my passwords in GPG encrypted files. Since I’m also using 2 factor authentication I’ve opted in to use pass-otp as a convenience. As this extension is not in the official OpenSUSE repositories you will need to install it manually. If you’re reading this I guess you already have password-store program installed. If so, you can proceed installing pass-otp extension right away. To do that, use:...

June 7, 2017 · 1 min · Ivan Tomica

Install SVN PHP module from PECL on EasyApache 4

Basically, something is broken while attempting to install SVN module for PHP via “Modules installer” option. To manually install extension follow these steps: Download the SVN PECL package: wget pecl.php.net/get/svn-1.0.3.tgz Extract the package: tar xzf svn-1.0.3.tgz Run phpize for appropriate PHP version: /opt/cpanel/ea-php56/root/usr/bin/phpize Configure with appropriate PHP configuration: ./configure –with-php-config=/opt/cpanel/ea-php56/root/usr/bin/php-config Edit the Makefile to add following CFLAGS: CFLAGS = -g -O2 -std=c99 Compile and install extension: make make install Create configuration for SVN extension: vi /opt/cpanel/ea-php56/root/etc/php....

May 23, 2017 · 1 min · Ivan Tomica

How to enlarge (resize) partition and expand LVM pool on top of it

Day or two ago I encountered a customer that had their server partitioned in a way that there was around 250GB of non-allocated space on disk. There were two partitions (sda1 and sda2) that were set up as /boot and LVM pool containing / mount point respectively. Naturally I’ve replicated that setup locally and simulated how to expand partition and LVM pool on top of it. All without loosing and data OFC....

April 28, 2017 · 2 min · Ivan Tomica

Attach or create new Tmux session

I’ve been in a fight with tmux on how to create new session under certain name, but if it already exists to attach to that current one for a very long time. Reason for that was that when I’m connecting to the remote servers I usually have my own session under certain name there and I’d like to attach to that existing one if it already exists. Connecting to the server then issuing:...

April 4, 2017 · 1 min · Ivan Tomica

Start SSH in Plesk

Recently I’ve had a situation that on one of the servers with Plesk panel installed on it SSH service was not working. Unfortunately there is no way to restart the service via panel for some reason. You can restart other services, but not ssh, probably because service itself is not managed in any way by Plesk panel. Anyhow, interesting way to hack around this was to use cron jobs to execute tasks and restart the service :-)...

April 1, 2017 · 1 min · Ivan Tomica

Nested Tmux

Ever wanted to have tmux session inside of tmux session? Don’t know how to control the one inside of current tmux session? Easily: Ctrl+b Ctrl+b COMMAND So basically, you need to send your prefix twice. You can also use: Ctrl+b+b COMMAND

March 28, 2017 · 1 min · Ivan Tomica

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: Attempt to postMessage on disconnected port...

March 10, 2017 · 1 min · Ivan Tomica