Thursday, 2 September 2021

perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = (unset), LC_ALL = (unset),


apt-get install multipath-tools
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8 
locale-gen en_US.UTF-8
dpkg-reconfigure locales 
edit /etc/profile
add this lines to this file
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8 

can't set the locale; make sure $LC_* and $LANG are correct




run locale-gen as root



Monday, 14 June 2021

Virtualbox: two network interfaces

 I had to add the following lines in Debian virtual machine's /etc/network/interfaces file:

allow-hotplug eth1
iface eth1 inet dhcp

The second line instructs the interface to obtain an IP via DHCP. The first line loads the interface at boot time.

To apply the changes to a running system, invoke:

ifup eth1

The name for the eth1 interface may vary, use ifconfig -a to list all available interfaces.

EDIT: full /etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

allow-hotplug eth1
iface eth1 inet dhcp

Sunday, 25 April 2021

Uninstall flatpak

1. sudo apt install flatpak 

2. flatpak uninstall --all 

3. sudo apt purge --autoremove flatpak

4. Check directory /var/lib/flatpak should be everything removed.

Monday, 22 February 2021

Ubuntu 20.04 problem with headphone?


Step 1. pulseaudio --kill
Step 2. pulseaudio --start
Step 3. Settings->Sound->Output devices->Headphones

Thursday, 18 February 2021

How to burn a Windows .iso to a USB device in Ubuntu?

 Step 1.   Download Windows10

Step 2.   Check where is mounted your usb stick.

sudo    fdisk -l

Step 3. Run command:

sudo dd bs=4M if=[path to windows iso] of=/dev/sd[that 1 letter]