Ivan Tomica

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 FreeBSD, to avoid setting this up on every single jail, I have flavor within ezjail defined which has default settings that I usually have on all jails. Time zone is one of those things and can be defined with:

cd /usr/jails/flavours/YOURFLAVOUR/etc
ln -s /usr/share/zoneinfo/Europe/Zagreb localtime
Tagged in:,
About 
Sysadmin on the everlasting journey of learning. Always in search for an opportunity to prove myself and to learn something new. My addiction is learning and my main goal is to excel in every aspect of Linux/Unix system administration.

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *