dflc.ch

Some sysadmin and DevOps notes

Upgrading Freenas 11.2 to 11

Trying to upgrade my NAS running FreeNAS-11.2.8 to latest FreeNAS-11.3 by using the web UI simply saying almost nothing. So I decided to have a look at the freenas-update command which looks to make the job, but in the end it failed :( root@nas:/mnt/zfs_vol_raidz1 # freenas-update -T FreeNAS-11.3-STABLE -v update with the result below [freenasOS.Configuration:601] TryGetNetworkFile(['https://update-master.ixsystems.com/updates/ix_crl.pem']) [urllib3.connectionpool:824] Starting new HTTPS connection (1): update-master.ixsystems.com [urllib3.connectionpool:396] https://update-master.ixsystems.com:443 "GET /updates/ix_crl.pem HTTP/1.1" 200 1028 [freenasOS....

October 19, 2021 · 4 min · Davide

Deploying Hugo website with AWS Amplify

While trying to deploy one of my Hugo website using AWS Amplify , I had an issue while trying to continously deploy the website as AWS Amplify wasn’t able to detect which Framework I was using in my git repository. The solution I’ve found was to enforce the installation of hugo binary in the build phase of the frontend. Here below a sample of the yaml configuration I’ve used (here using Hugo = v0....

July 24, 2021 · 1 min · Davide

VirtualBox - Fix VMDK inconsistency

If like me, you were running VirtualBox and the volume where virtual machines reached 100% disk capacity, you’ve certainly seen a message like below while trying to start your preferred vm. VMDK: inconsistency between grain table and backup grain table After searching for a solution, I’ve found a quick and easy way to repair the vmdk vm disk(s). First of all, you need to download and install VmWare Workstation Pro from VmWare website....

October 25, 2018 · 1 min · Davide

Get Zimbra Version

If you need to know which version of Zimbra is running on your server, use steps described below Connect to your Zimbra server using ssh $ su - zimbra and run this command $ zimbra@zimbra:~$ zmcontrol -v Release 8.7.11.GA.1854.UBUNTU16.64 UBUNTU16_64 FOSS edition. Hope it helps !

July 18, 2018 · 1 min · Davide

Using dia on OS X

For those who already tried to run Diaon their MacBook, iMac, etc. You should have notice that Dia simply doesn’t work, at least that’s what I saw when I’ve tried to use it 😉 Please find below a quick fix to run it Quick solution Simply run Dia using the terminal as below DISPLAY=:0 /Applications/Dia.app/Contents/Resources/bin/dia Enjoy ! Inspired by http://navkirats.blogspot.ch/2014/10/dia-diagram-mac-osx-yosemite-fix-i-use.html

May 30, 2017 · 1 min · Davide

GitList setup - fixing permissions

Here’s a simple quick tip about GitList setup. Trying to install the latest version of GitList , I faced a problem with the error message below Please, edit the config file and provide your repositories directory My git repositories are located under the directory /home/gituser/public and here’s below what I did to fix it up First, modify groups of Apache user # usermod -G gitusergroup apache Then fix your git home folder permissions like this...

October 29, 2013 · 1 min · Davide

Logwatch - Keep an eye on your system activity

This article shortly explain how to install and configure logwatch on your Centos/RHEL/Fedora server in order to keep an eye on it Requirements working MTA (mail transport agent) like postfix, exim, sendmail, etc. root access (or sudo privileges) on the server Installation Install the logwatch package as usual # yum install logwatch -y Copy the default configuration file # cp -v /usr/share/logwatch/default.conf/logwatch.conf /etc/logwatch/conf/logwatch.conf Then modify with your preferred editor as your need (see the example below)...

October 29, 2013 · 2 min · Davide

Downgrade Grub 2 default option after Xen kernel upgrade

Symptoms After I’ve upgraded the Linux kernel on my Fedora 18 server, I’ve faced a kernel panic on the next reboot. After few investigations, I found out that the new kernel version is buggy 😢 Solution In order to get your system back as it was is to change the grub 2 configuration to point to the previous kernel version. Here’s how I fixed it First, list all menu entries from your Grub 2 configuration (as root)...

October 28, 2013 · 2 min · Davide