I'm fed up looking up Linux set up instructions on the internet... Time to make my own reference.
$ gsettings set org.gnome.gnome-screenshot auto-save-directory "[complete-path-to-new-directory]"
$ sudo vim /etc/apparmor.d/local/usr.bin.evince
then add to end of file
owner /tmp/{,.}gnome-desktop-thumbnailer.* w,
finally rm -rf ~/.cache/thumbnails/
for good measure and reboot.
First kill everything (ideally you'd do this from a different user or superuser account)
$ sudo pkill -u [old-username]
$ sudo pkill -9 -u [old-username]
$ sudo usermod -l [new-username] [old-username]
Change the Home directory name
$ sudo usermode -d /home/[new-username] -m [new-username]
Change the groupname
$ sudo groupmod -n [new-username] [old-username]
$ sudo hostnamectl set-hostname [new-hostname]
As superuser (sudo won't work, need to do su
or on Ubuntu sudo -i
then type that):
# echo 1 > /proc/sys/vm/drop_caches
$ cat /proc/sys/vm/swappiness
$ sysctl vm.swappiness=[0-100, most recommend 10 (default is 60)]
$ cat /proc/sys/vm/vfs_cache_pressure
$ sysctl vm.vfs_cache_pressure=50 (default is 100)
Using your favorite text editor (in my case vim)
$ sudo vim /etc/sysctl.conf
at the bottom add the following lines:
vm.swappiness=10
vm.vfs_cache_pressure=50
then run this line:
$ sudo sysctl -p
Fix for not waking up after suspend (monitor black but computer running): /usr/bin/nvidia-sleep.sh
needs to be disabled by setting exit 0
at the top of the file.
OS version + Ubuntu version for Ubuntu based systems:
$ cat /etc/os-release
Debian version in Ubuntu based systems:
$ cat /etc/debian_version