{"id":16735535,"url":"https://github.com/392781/linux-hints","last_synced_at":"2026-05-17T18:01:42.464Z","repository":{"id":173733266,"uuid":"288755165","full_name":"392781/linux-hints","owner":"392781","description":"I'm fed up looking up Linux set up instructions on the internet... Time to make my own reference.","archived":false,"fork":false,"pushed_at":"2022-01-05T08:04:02.000Z","size":31,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-15T21:14:28.318Z","etag":null,"topics":["bash","linux","settings","ubuntu"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/392781.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-19T14:32:21.000Z","updated_at":"2022-01-05T08:04:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"09f6d3b1-0004-4cb2-8281-46c2dd557a31","html_url":"https://github.com/392781/linux-hints","commit_stats":null,"previous_names":["392781/linux-hints"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/392781/linux-hints","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Flinux-hints","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Flinux-hints/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Flinux-hints/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Flinux-hints/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/392781","download_url":"https://codeload.github.com/392781/linux-hints/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/392781%2Flinux-hints/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265751496,"owners_count":23822775,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bash","linux","settings","ubuntu"],"created_at":"2024-10-13T00:06:23.339Z","updated_at":"2026-05-17T18:01:42.352Z","avatar_url":"https://github.com/392781.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# linux-hints\nI'm fed up looking up Linux set up instructions on the internet... Time to make my own reference.\n\n## Image stuff\n\n### Change screenshot default folder\n```\n$ gsettings set org.gnome.gnome-screenshot auto-save-directory \"[complete-path-to-new-directory]\"\n```\n\n### Fix PDF thumbnails\n```\n$ sudo vim /etc/apparmor.d/local/usr.bin.evince\n```\nthen add to end of file\n```\nowner /tmp/{,.}gnome-desktop-thumbnailer.* w,\n```\nfinally `rm -rf ~/.cache/thumbnails/` for good measure and reboot.\n\n## Name adjustments\n\n### Change username, groupname, and ~$ dir\nFirst kill everything (ideally you'd do this from a different user or superuser account)\n```\n$ sudo pkill -u [old-username]\n$ sudo pkill -9 -u [old-username]\n$ sudo usermod -l [new-username] [old-username]\n```\nChange the Home directory name\n```\n$ sudo usermode -d /home/[new-username] -m [new-username]\n```\nChange the groupname\n```\n$ sudo groupmod -n [new-username] [old-username]\n```\n\n### Change hostname\n```\n$ sudo hostnamectl set-hostname [new-hostname]\n```\n\n## Memory adjustments\n\n### Clear cache\n\nAs superuser (sudo won't work, need to do `su` or on Ubuntu `sudo -i` then type that):\n\n```\n# echo 1 \u003e /proc/sys/vm/drop_caches\n```\n\n### See and adjust swappiness\n```\n$ cat /proc/sys/vm/swappiness\n$ sysctl vm.swappiness=[0-100, most recommend 10 (default is 60)]\n```\n\n### See and adjust inode cache\n```\n$ cat /proc/sys/vm/vfs_cache_pressure\n$ sysctl vm.vfs_cache_pressure=50 (default is 100)\n```\n\n### Do both of the above permanently\nUsing your favorite text editor (in my case vim)\n```\n$ sudo vim /etc/sysctl.conf\n```\nat the bottom add the following lines:\n```\nvm.swappiness=10\nvm.vfs_cache_pressure=50\n```\nthen run this line:\n```\n$ sudo sysctl -p\n```\n\n## GPU\n\nFix for not waking up after suspend (monitor black but computer running): [`/usr/bin/nvidia-sleep.sh`](https://forums.linuxmint.com/viewtopic.php?f=49\u0026t=361973\u0026p=2099605\u0026hilit=cannot+wake+from+suspend#p2099605) needs to be disabled by setting `exit 0` at the top of the file.\n\n## Versions\nOS version + Ubuntu version for Ubuntu based systems:\n```\n$ cat /etc/os-release\n```\nDebian version in Ubuntu based systems:\n```\n$ cat /etc/debian_version\n```\n\n## Audio\n\n### [Noise Cancellation](https://askubuntu.com/questions/18958/realtime-noise-removal-with-pulseaudio)\n\n## Websites\n* [Speed up Linux Mint](https://easylinuxtipsproject.blogspot.com/p/speed-mint.html#ID1.1)\n* [Disable USB webcam microphone](https://rietta.com/blog/block-webcam-audio-ubuntu-linux/)\n* [Fix home directory icons](https://www.linuxquestions.org/questions/ubuntu-63/how-to-restore-default-folder-icons-4175645246/)\n* [Fix suspend issue while using NVIDIA drivers](https://forums.linuxmint.com/viewtopic.php?p=1728952\u0026sid=d2f654dfa1082400eeea98c9fbf01918#p1728952)\n* [Enable persistance mode for NVIDIA](https://forums.developer.nvidia.com/t/setting-up-nvidia-persistenced/47986/11)\n* [bashrc Generator](https://bashrcgenerator.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F392781%2Flinux-hints","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F392781%2Flinux-hints","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F392781%2Flinux-hints/lists"}