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…
Remove a linux RAID device
1. Find the devices associated with the RAID device mdadm --detail <raid_device> The last lines of output of the above command shows the associated devices (see the example below). 2.…
Setting up software RAID on a running Debian system
If you have a running Debian (or any Debian based distro, like Ubuntu) system and want to configure a RAID1 (mirror) without losing your existing data, this can be accomplished…
share multimedia files with Smart TVs
You can easily share your videos, music and pictures stored in your linux box with your Smart TV, all you have to do is configure a DLNA server in linux.…
Working with ISO images
Convert CUE/BIN images to ISO Use bchunk (Homepage: ; Debian, Ubuntu, etc already have it as a package). bchunk Convert NRG (Nero) images to ISO Use nrg2iso (Homepage: ; already…