Hard Drive Archive

You do have backups, do you?

Let’s say you want to override systemd unit. You typical way to do it will be copying original unit from /lib/systemd/system/unit.service to /etc/systemd/system/, editing unit and reloading systemctl with systemctl daemon-reload. And you will be very surprised, that your previous jobs or users still use /lib/systemd/system/unit.service. So you need to do systemctl reenable unit@job for every connection/user/job. And simple unit editing became a way longer task…

Read More

I had a little trouble connecting to hidden wpa2 psk with network/interfaces. First of all since network name is empty, you can’t use wpa_passphrase to has with your real hidden name.
And this a configuration I ended with:

auto wlan0
iface wlan0 inet dhcp
wpa-ssid NETNAME
wpa-scan-ssid 1
wpa-psk password
Read More

July 14, 2017


I had idea to write this small post, quite a log time ago, but was busy.
Some people think that salt is difficult, but I can say one thing its easy in use. Yes, salt is easy in use, just hard to master. Main problem is, documentation point you at formulas but in reality pre-made formulas could be over complexed, and that pillar thing may not work for you from the start.

Just copy the file in the right location

And I prefer different approach. When you already have production configuration, you just need to install software, move files in the right location, and to reload/restart daemon/service.
For example, this how my postfix configuration(init.sls) looks like:

Read More