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” →

Dedicated server from OneProvider – first impressions

It is time to replace my old boy – Fujitsu rx300 s6.
It worked for 3 years in my basement, with regular loss of electricity, a lot of dust and no air conditioner – what a champ. Unfortunately, there is no place for my noisy fella anymore. I was thinking of placing it in some data center, but the prices are too high – 300 euros per month for a server with 2 power supplies ~ 2000W and one public IPv4 (100mbps). It was used only for personal, small projects and testing purposes. So I need something cheap to rent, with:

  • 2 x 240 GB SSDs for RAID1
  • 12 CPU threads
  • 32 GB of RAM
  • Gigabit internet connection
  • Data Center must be in Europe
Continue reading “Dedicated server from OneProvider – first impressions” →

Hello world!

Welcome to my blog!

Here I post things, that I find useful in my daily sysadmin life.

I am planing to write about:

Linux

  • Ubuntu
  • Arch
  • Debian

Cloud computing

  • AWS
  • Linode
  • Scaleway

Networking

  • Mikrotik
  • Cisco

I.T certification

  • CompTIA

Virtualization

  • Proxmox
  • VMware

hf:)