Skip to content

Instantly share code, notes, and snippets.

@bindul
Last active January 14, 2021 18:40
Show Gist options
  • Save bindul/ec31e278a6c038396a69 to your computer and use it in GitHub Desktop.
Save bindul/ec31e278a6c038396a69 to your computer and use it in GitHub Desktop.
Linux links and tricks
http://askubuntu.com/questions/419152/install-older-kernel-in-a-server-and-made-it-the-default-boot-option-in-grub
Search for old kernels using
dpkg -l | grep linux
Current version
uname -r
For sub-menu selection, use
cat /boot/grub/grub.cfg
https://help.ubuntu.com/community/Grub2/Submenus
To remove all packages of a type
sudo apt-get remove --purge package-prefix*
sudo apt-get clean
sudo apt-get autoremove
e.g.:
sudo apt-get remove --purge libreoffice*
...
credit: http://askubuntu.com/questions/180403/how-to-uninstall-libreoffice
Java
https://adoptopenjdk.net/installation.html#linux-pkg
NodeJS
https://github.com/nodesource/distributions/blob/master/README.md#debmanual
File Manager
sudo apt install synaptic
Cockpit (System Manager)
sudo apt install cockpit
http://<host>:9090/
VI Settings (~/.vimrc)
set nocompatible
For VirtualBox support, install Dynamic Kernel Module Support - so VBox modules are re-compiles on kernel upgrades
sudo apt install dkms
Disable Suspend (does not work very well)
http://askubuntu.com/questions/452908/how-to-disable-suspend-in-14-04
Manage Services
To add a service to automatic startup system: ```sudo update-rc.d minidlna defaults```
But if you get: ```System start/stop links for /etc/init.d/minidlna already exist.```
Do the command: ```sudo update-rc.d minidlna enable```
http://askubuntu.com/questions/9382/how-can-i-configure-a-service-to-run-at-startup
Hide System Accounts from Login Screen
To hide a user named XXX, create a file named
/var/lib/AccountsService/users/XXX
containing two lines:
[User]
SystemAccount=true
credit: http://askubuntu.com/questions/92349/how-do-i-hide-a-particular-user-from-the-login-screen
Shared Folders (if required)
https://wiki.archlinux.org/index.php/VMware/Installing_Arch_as_a_guest#Shared_Folders_with_vmhgfs-fuse_utility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment