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 server logs: Port 10102 Turn off password authentication PermitRootLogin without-password PasswordAuthentication no What additional tweaks do you make to your sshd_config file in order to secure SSH?...

May 3, 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

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

April 21, 2017 · 1 min · Ivan Tomica

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 PHP’s website: fetch Extract and configure it: tar -xzvf geoip-1.1.1.tgz cd geoip-1.1.1/ ./configure Finally, compile and install: make make install To have it loaded by your PHP-FPM (assuming you’re using it) include it in your php....

April 5, 2017 · 1 min · Ivan Tomica

Disable “Recently bookmarked” section in Firefox bookmarks menu

So recently Firefox added section “Recently bookmarked” on top of the list of your bookmarks. It displays 5 most recent bookmarks you’ve added. I pretty much hate it and wanted to disable it. To disable it navigate to about:config and set: browser.bookmarks.showRecentlyBookmarked to false.

April 4, 2017 · 1 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

cPanel updated to version 64

cPanel “CURRENT” release tier just got bumped to version 11.64 which brings few things and resolves few issues and oddities. This is Release Candidate channel so it may take some time to get those features to RELEASE or STABLE update tiers. Features/Fixes that got me excited in this release: Minimum free space available for backups: added a minimum free disk space check to WHM’s Backup Configuration interface (Home » Backup » Backup Configuration)....

March 29, 2017 · 3 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

My Firefox setup

This post is intended to share list of Firefox extensions I use. Maybe you get use of some. It was inspired by this article. Anyhow, my current list goes like: Better reader Helps me adjust behavior of Reader View that is built in into firefox. I can change color scheme, padding, width and much more. It comes really handy when reading long articles. Ctrl + Shift + Q Quit As I try to use keyboard in browser navigation as much as it is feasible I had this issue with constantly closing my browser completely when trying to close one tab only (Ctrl + W and Ctrl + Q are too close on QWERTZ layout ;-) ) This extension resolves that issue for me....

March 28, 2017 · 2 min · Ivan Tomica