Sunday, June 18, 2017

Installing packages by mounting ISO file





[root@rac1 ~]# mkdir /media/cdrom
[root@rac1 ~]# cd /opt
[root@rac1 opt]# ll
total 3634760
drwx------. 2 root root      16384 May  1 15:01 lost+found
-rw-r--r--. 1 root root 3721963520 Apr 22 17:19 OEL_6_4_64.iso
drwxr-xr-x. 2 root root       4096 Dec 21  2012 rh
drwxr-xr-x. 9 root root       4096 May  1 15:54 VBoxGuestAdditions-5.0.14
[root@rac1 opt]# mount -o loop /opt/OEL_6_4_64.iso /media/cdrom/
[root@rac1 opt]# cd /etc/yum.repos.d/
[root@rac1 yum.repos.d]# vi dvd.repo      (add the below lines in dvd.repo file)
***********************************
[dvd]
name=Oracle Linux6 Installation DVD                          ==> contents in dvd.repo
baseurl=file:///media/cdrom
enabled=0
************************************
[root@rac1 yum.repos.d]# rpm --import /media/cdrom/RPM-GPG-KEY
[root@rac1 yum.repos.d]# CD
-bash: CD: command not found
[root@rac1 yum.repos.d]# cd
[root@rac1 ~]# cd -
/etc/yum.repos.d
[root@rac1 yum.repos.d]# yum install --enablerepo=dvd rpm -Uvh binutils-2*x86_64*

Friday, June 16, 2017

No suitable device found: no device found for connection

After the full clone of VM ware, I have changed the ip address and hostname.
From root users i have issued the below command
service network restart

Getting the below error like
No suitable device found: no device found for connection

Solution:
********
ifconfig



copy the HWaddr value i.e  00:0C:29:7F:F8:D8

add the value in /etc/sysconfig/network-scripts/ifcfg-eth0



then save quit  wq!


Now the issue has been resolved. Not getting any error while issuing
service network restart


cheers....😊