The Living Thing / Notebooks : Linux hacks

Things I forget how to do in linux.

Some of these commands are supposed to be run sudo root, and each may irremediably fuck up your computer, your life, and everything you have ever loved. Then it might challenge you to a break dance battle, I dunno. It won’t be my fault.

Open a file in the GUI from the command line:

..code-block:

xdg-open filename.ext

Of course! Why did I not realise that “open” is spelled “xdg”. For the curious, xdg stands for “Expect Delays Googling”, which is how you work out these unintuitive and unhelpful command names.

Must secure boot be disabled?

Apparently not. But it is tedious to work with, without Microsoft signing kernel modules for you.

GPU switching

Xiao Guoan, a.k.a Linuxbabe, How To Switch Between Intel and Nvidia Graphics Card on Ubuntu.

For advanced and granular switching on an as-needed basis, try Configuring Ubuntu 16.04 for Optimus Laptops Using the Latest NVidia Proprietary Driver

Talking to windows filesystems

https://askubuntu.com/questions/92863/mount-ntfs-partition-at-startup-with-non-root-user-as-owner/517223#517223 http://manpages.ubuntu.com/manpages/precise/man8/ntfs-3g.8.html http://www.tuxera.com/community/ntfs-3g-advanced/ownership-and-permissions/ http://askubuntu.com/a/74851

LVM

Logical Volume manager has been current for a decade, which means that it is one decade newer than what I’m used to.