--Mounting the CD/DVD-- #mount -t iso9660 /dev/cdrom /media/cdrom (adapt this to your environement) --Mounting the ISO image-- #mount -o loop /path/to/file.iso /path/to/isodest (adapt this to your environement) -- Using the command 'createrepo' to create the repository -- Note : You will need to download the package 'createrepo' in order to be able to create the repository (look at http://dag.wieers.com/rpm/packages/createrepo/). Change to directory where you can list the content of the DVD : #cd /media/cdrom #createrepo . (it should take some time) #yum clean all --Create a new .repo file-- #cd /etc/yum.repo.d/ In this directory using your prefered text editor create a new file .repo : #vim rhel5_dvd.repo And the file should look like this : [rhel5_dvd] name=DVD Redhat Enterprise Linux 5 baseurl=file:///media/cdrom/ enabled=1 gpgcheck=0
If you have the boot loader Grub : 1. Start the machine and wait until the bootloader screen appears 2. Select the operating system and type E for edit 3. Select kernel and type E for edit 4. Select boot and add runlevel 1 to the end of the line 5. Press Enter and then B for boot 6. After booting the kernel, use passwd to change the password 7. Reboot the PC and use the new root password If you have the boot loader lilo : 1. Start the machine and wait until the bootloader screen appears 2. Type linux single to enter single user mode 3. After booting the kernel, use passwd to change the password 4. Reboot the PC and use the new root password
First / Previous / Next / Last / Page 1 of 1 (3 posteets)