Linux Knowledge

Disable overscan with AMD Catalyst

With HDMI connections, the image in a screen could be surrounded by a black frame. This is due to a wrong overscan adjustment. This line disables it, it is needed to restart just after entering it.

sudo aticonfig --set-pcs-val=MCIL,DigitalHDTVDefaultUnderscan,0

[Kali Linux] Disable “natural scrolling”

Sometimes, Kali Rolling autoenables “natural scrolling”, and it’s impossible to disable it from the settings panel. These commands get rid of it:

gsettings set org.gnome.desktop.peripherals.mouse natural-scroll false
gsettings set org.gnome.desktop.peripherals.touchpad natural-scroll false

[LXC Containers] Use NFS and autofs (automount) on LXC containers

Edit /etc/apparmor.d/lxc/lxc-default and /etc/apparmor.d/lxc/lxc-default-with-mounting, adding the next lines to the corresponding place:

mount fstype=nfs,
mount fstype=autofs,

Then, reload apparmor service:

service apparmor reload

[LXC Containers] Use FUSE inside containers


Using fuse inside the container is problematic as fuse and the kernel freezer mechanism don’t work together. If you really absolutely need to use fuse mounts inside a container, don’t try to use snapshot backups or lxc-freeze on those containers, or you will end up with hanging containers. A possible alternative would be to establish the fuse mount on the host, and then bind mount it into the container with an mpX entry in the container config, but this is not well tested.

Seen here

Using the following command on the container allows the use of FUSE filesystems without the container to complain about not loading the fuse module:

mknod -m 666 /dev/fuse c 10 229