Linux ssh locale error | Can’t set locale; make sure $LC_* and $LANG are correct!

If you ssh from a linux machine with non-english locale setting to a server with English locale you will probable will see error like this:

apt-listchanges: Can't set locale; make sure $LC_* and $LANG are correct!
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
	LANGUAGE = "en_US:en",
	LC_ALL = (unset),
	LC_TIME = "bg_BG.UTF-8",
	LC_MONETARY = "bg_BG.UTF-8",
	LC_ADDRESS = "bg_BG.UTF-8",
	LC_TELEPHONE = "bg_BG.UTF-8",
	LC_NAME = "bg_BG.UTF-8",
	LC_MEASUREMENT = "bg_BG.UTF-8",
	LC_IDENTIFICATION = "bg_BG.UTF-8",
	LC_NUMERIC = "bg_BG.UTF-8",
	LC_PAPER = "bg_BG.UTF-8",
	LANG = "en_US.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to a fallback locale ("en_US.UTF-8").
locale: Cannot set LC_ALL to default locale: No such file or directory

I found two ways to fix this:

Continue reading “Linux ssh locale error | Can’t set locale; make sure $LC_* and $LANG are correct!” →

Private Network with NAT for VMs on Proxmox with Single Public IPv4

I have a dedicated server with only 1 Public IPv4, without a router in front to manage the network. So I should use the power of iptables and proxmox to create a private network for the VMs. Virtual machines will communicate with the world through NAT. Long story short:
Internet <-> vmbr0 (default bridge with static IP) <-> vmbr2(second bridge, that I will create) <-> Virtual Machines

Proxmox Firewall, which is just iptables, will take care of network security.
Port forwarding? no worries, iptables will take care too.

network diagram
Continue reading “Private Network with NAT for VMs on Proxmox with Single Public IPv4” →