Ivan Tomica

Category: Blog

Total 125 Posts

Setting up timezone in FreeBSD

This one is fairly simple. All of thee zone info files are located in /usr/share/zoneinfo/, divided by region. I’m in Croatia so setting up time to be the same as in Zagreb is done by sym-linking appropriate zone file to /etc/localtime: ln -sf /usr/share/zoneinfo/Europe/Zagreb /etc/localtime As I use jails on

Continue Reading

Using Ansible with FreeBSD

Using Ansible with FreeBSD as a managed node might not be straight forward as using some Linux distribution as, by default, FreeBSD doesn’t have Python interpreter installed which is needed for remote command execution in Ansible. To bootstrap the FreeBSD host you first need to install python and needed dependencies

Continue Reading

GNU Screen tips – Managing regions

Although I use tmux primarily for my “multiplexing needs” I hop into screen from time to time as well. Below are few tips for managing regions inside of GNU screen. Your basic screen window probably looks somewhat like: Ignoring hardstatus settings you basically have one session and one window inside

Continue Reading

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

Continue Reading

Using KDE Wallet Manager and kwallet-query

I’ve been using mutt for reading my emails for some time now. It is simple, fast, configurable, and yeah, did I mentioned it is a command line email client? Anyhow, only thing I have been fighting with was on how to securely store password without putting it to .muttrc file

Continue Reading

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

Continue Reading

SSH configuration

This should be a short article mentioning few options I generally change in sshd_config and recommend that you change them too. Change port number I usually change port number to something random to avoid millions upon millions of failed SSH connection generated by various bots on the interwebz in my

Continue Reading

Disable screen rotation button on Fedora Workstation

Annoyed by that auto-rotation icon on your Fedora desktop when using GNOME? See that area painted red? To disable that icon on your laptop you need to disable iio-sensor-proxy.service: sudo systemctl stop iio-sensor-proxy.service sudo systemctl mask iio-sensor-proxy.service

Enable GeoIP on PHP 7.0 on FreeBSD

Since pecl extension is compiled against PHP 5.6 in official FreeBSD repositories you’ll need to manually compile this PECL extension to have it included in PHP 7.0. Luckily for you process is really simple. Install autoconf so PHP can detect variables: pkg install autoconf Download latest PECL extension version from

Continue Reading