change console resolution in linux
Do the following to change the console resolution: 1. Determine available resolutions To do this, at the GRUB menu, press 'c' At the GRUB prompt type: grub> set pager=1 grub>…
how to shrink a linux partition used by LVM
To shrink a linux partition, any common tool like gparted can be used. In case the partition is currently being used by LVM, some previous steps should be performed. Assuming…
upgrade Ubuntu from the command line
To upgrade Ubuntu to the latest version using the command line, follow these steps: 1. Install the package update-manager-core # apt-get install update-manager-core 2. Execute do-release-upgrade # do-release-upgrade NOTES: -…
administering user passwords in linux
Change a user's password # passwd username Force password change at next login # passwd -e username Lock a user's password # passwd -l username NOTE: this option does not…
Disable IPv6 in linux
When some devices of your network don't support IPv6 (like your ISP routers!), then it's probably better to disable IPv6 on your linux hosts. It's worth noting that some applications…
Change the size of reserved space on ext4 partitions
By default, when formatting a partition with ext4 (it also applies to ext3 and ext2), a percentage (usually 5%) of the total disk size is set aside and reserved for…
Enable Ctrl-Alt-Backspace to kill the X server in Ubuntu
It's been awhile since Ubuntu disable the possibility of using Ctrl-Alt-Backspace to kill the X Server. Here's what you need to do to get that functionality back: UBUNTU (and newer)…
RPM commands
These are some useful rpm commands: NOTE: All example commands use , replace it with the package name of your choice INSTALLATION/UNINSTALLATION Install a package # rpm -ivh Reinstall a…
Setup a local Debian/Ubuntu package repository
If you have some specific packages that you just want to share in your LAN. then you can easily create a local repository with your packages. Here's how to do…
Play encrypted DVD on linux
Because of license restrictions, the library libdvdcss (needed for play CSS encrypted DVDs) is not available on the main repositories of linux distributions. Here's the installation procedure of libdvdcss for…