How to install Adobe Reader on Centos 6
yum localinstall http://linuxdownload.adobe.com/linux/i386/AdbeRdr9.5.5-1_i486linux_enu.rpm
or
yum localinstall http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm
or
yum localinstall http://linuxdownload.adobe.com/linux/x86_64/adobe-release-x86_64-1.0-1.noarch.rpm
cannot create key change index database disk image is malformed
#yum clean all
#yum clean metadata
#yum clean dbcache
or
#yum history new
then
#yum makecache
#yum clean metadata
#yum clean dbcache
or
#yum history new
then
#yum makecache
Yum segmentation fault ( core dumped )
#rm -rf /var/lib/rpm/__db.*
#rpm --rebuilddb
#yum clean all
#yum makecache
Error : cannot retreive metalink for repository : epel. Please verify its path and try again
#sed -i "s/mirrorlist=https/mirrorlist=http/" /etc/yum.repos.d/epel.repo
#yum check-update
Running these commands will update the repo to use HTTP rather than HTTPS
#yum check-update
Running these commands will update the repo to use HTTP rather than HTTPS
ftp issue 500: oops : cannot change directory
#getenforce ( Selinux status )
enforcing ( if output)
#getsebool -a | grep ftp
check for ftp_home_dir ---- off
if it is in off state then
#setsebool -P ftp_home_dir 1 ( or on )
hence problem solved
enforcing ( if output)
#getsebool -a | grep ftp
check for ftp_home_dir ---- off
if it is in off state then
#setsebool -P ftp_home_dir 1 ( or on )
hence problem solved
Reinstall a corrupted or destroyed boot partition.
deleted mistakenly. Even though I could not boot the system, I did not want to reinstall the whole
system and recover the data from backups.
1. Boot the computer into rescue mode with the relevant CD/DVD by typing "linux rescue" at the boot prompt.
2. Mount the / partition of the system. On CentOS this is automatically done and the / is mounted on /mnt/sysimage.
Otherwise just do (assuming the root partition is on /dev/sda2)
mount /dev/sda2 /mnt/sysimage |
chroot /mnt/sysimage |
e2label /dev/sda1 /boot |
mount /dev/sda1 /boot |
mkdir /media/cdrom mount -o loop,ro /dev/hdc /media/cdrom |
cd /media/cdrom/CentOS (this will vary depending on the distro) rpm -ivh --force kernel-2.6.18-164.el5.i686.rpm rpm -Uvh --force grub-0.97-13.5.i386.rpm rpm -Uvh --force redhat-logos-4.9.99-11.el5.centos.noarch.rpm |
grub-install /dev/sda1 (or whichever partition boot is mounted on) |
vim /boot/grub/grub.conf
default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title CentOS root (hd0,0) kernel /vmlinuz-6.18-164.el5 ro root=/dev/VolGroup00/LogVol00 initrd /initrd-2.6.18-164.el5.img |
cd /boot/grub ln -s grub.conf menu.lst |