< Return Рус Eng

Linux tips & shortcuts I've learned


Just a collection of various things for linux desktop I find worth remembering.


Launching another X11 session in different TTY

Useful when gui hopping (as if distrohopping wasn't enough) or for testing.

$ startx /home/user/Downloads/emwm-src-1.3/start.sh -- vt1

start.sh after startx is a FULL PATH to your gui startup script and vt1 is the ID of tty. vt1 is tty1 (ctrl+alt+f1)


Disabling IPv6 to make system a little more secure

Not a lot of people are using it anyway (chinese goverment is enforcing it though, but that doesn't concern us), why leave it hanging?

Go to /etc/default/grub and slap ipv6.disable=1 to disable the fucker:

GRUB_CMDLINE_LINUX_DEFAULT="quiet otheroptions ipv6.disable=1"

Void Linux maintinence

# clean old packages
$ sudo xbps-remove -Oo

# remove old kernels - they pile up on disk
$ sudo vkpurge rm all

VIM selection to system clipboard

It's not enabled by default but you can make it work by installing:

gvim on Debian and Arch
vim-x11 on Void (you'll have to use only vim-x11 from now on)
Every distro has it's own package, lurk it

In vim, select the text and type "+y

If it still dosen't work, try adding set clipboard=unnamedplus in your ~/.vimrc. Sometimes you also need xclip package (wl-clipboard for Wayland)