Posts categorized under: Bookmarks

Useful commands, one-liners, etc.

I decided to record here useful bash fragments, commands, etc. I kept using and forgetting from time to time... I will enrich it as needed. There is no particular order nor specific explanation. Some might be useful to others. Maybe. Who knows.

Arbitrary file binary dump into C array

To …

Force NetworkManager to ignore an interface

Continuing my Bookmarks serie, here is how to tell NetworkManager to not manage an interface, thank you very much:

~# sudo cat >> /etc/NetworkManager/NetworkManager.conf << EOF
plugins+=keyfile
[keyfile]
unmanaged-devices=interface-name:IFNAME
EOF

Where IFNAME is the interface name. For example:

unmanaged-devices=interface-name:eth0

Will prevent NetworkManager to manage eth0 …

X11 forwarding request failed on channel 0

A quick post as a reminder to my future self: if ssh does not want to forward X11 despite using -X or -Y options, it might be because I am missing Xauth installed:

~local# ssh -YC remote
X11 forwarding request failed on channel 0
Last login: Tue Apr 26 09 …