Get variables, configure tzdata, set hostname and hosts.