Category: Ubuntu

UFW automation

`sudo ufw enable` command asks the user the confirm the action, if SSH protocol is used. For automation, user confirmation needs to be skipped. To do that, use the following command that confirms the action…

sudo ufw --force enable

This needs to be done only once. From here, one could use `sudo ufw reload` to apply the updated firewall rules through UFW.


Setlocale warning on a new installation – en_US.UTF-8

Just do the following and ignore the rest of this post…

dpkg-reconfigure locales
# choose en_US.UTF-8 in the next two screens

When setting up a VPS in Paris data center, in, upon starting the Ubuntu for the first time, I received the following warning message…

-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.



sudo locale-gen en_US.UTF-8

sudo update-locale en_US.UTF-8