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…
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…
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…
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…
Create PDF files in Linux
CONVERT IMAGE FILES INTO A SINGLE PDF FILE Use convert (an utility that is part of the ImageMagick package) to convert a bunch of images into a single pdf file:…
Restoring and/or repairing GRUB
After reinstalling Windows in a dual boot machine, the GRUB boot manager usually stops working. To restore it, use the following procedure: 1. Boot from a Linux Live CD 2.…
Rename the label of a USB drive in Linux
To change the label of external USB drives (like flash memory cards) in Linux, follow these steps (use root user to perform these commands): 1. Install the package mtools: #…