Wednesday, October 27, 2010

Tips and triks Fedora Core

When login forgot root password

  1. Sign in boot loader
  2. In Fedora Core. . . e type
  3. In the module. . . type e, and the end of the sentence type <space> 1, then enter
  4. In the module. . . type b
  5. In single user mode type password and enter a new password, then type exit

When login forgot password eliminated root and Linux single

  1. Sign in boot loader
  2. In Fedora Core. . . e type
  3. In the module. . . type e, and the end of the sentence type <space> init = / bin / bash, then enter
  4. In the module. . . type b
  5. Then delete the root password in the file / etc / passwd, then restart
  6. In Linux edit the file / etc / inittab    root] # vi / etc / inittab


Before changed

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
#l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

after changed

# System initialization.
si::sysinit:/etc/rc.d/rc.sysinit
l0:0:wait:/etc/rc.d/rc 0
l1:1:wait:/etc/rc.d/rc 1
l2:2:wait:/etc/rc.d/rc 2
l3:3:wait:/etc/rc.d/rc 3
l4:4:wait:/etc/rc.d/rc 4
l5:5:wait:/etc/rc.d/rc 5
l6:6:wait:/etc/rc.d/rc 6

After installation, users can not perform
  1. Sign in boot loader
  2. In Fedora Core. . . e type
  3. In the module. . . type e, and the end of the sentence type <space> 3, then enter
  4. In the module. . . type b
  5. Once logged in init 3, type in the root Xorg-configure, it will produce files xorg.conf.new.
  6. # Mv / etc / xorg.conf / etc / xorg.conf.asli
  7. # Mv / etc / xorg.conf.new / etc / xorg.conf
  8. # Vim / etc / xorg.conf (the Monitor and Screen section change such as below)

  Section "Monitor"

  # DisplaySize 370 280 # mm
Identifier "Monitor0"
VendorName "AST"
ModelName "CM-1700"
# # # Comment all HorizSync and VertSync values to use DDC:
HorizSync 31.5 - 57.0
VertRefresh 50.0 - 60.0
Option "DPMS"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
DefaultDepth 16
SubSection "Display"
Viewport 0 0
Depth 16
Modes "800x600" "640x480"
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

   9.# init 5 atau ]# reboot atau ]# init 6

Featured title Mandriva boot loader on Fedora
On this problem is considered first installed Mandriva on that later followed install Fedora. Filr Edit grub.conf under the etc directory
] # Vim / etc / grub.conf
title Fedora Core (2.6.18-1.2798.fc6xen)
root (hd0, 2)
kernel / xen.gz-2.6.18-1.2798.fc6
module / vmlinuz-2.6.18-1.2798.fc6xen ro root = / dev/VolGroup00/LogVol00 rhgb quiet
module / initrd-2.6.18-1.2798.fc6xen.img
title Windows XP
rootnoverify (hd0, 0)
chainloader +1
# Add the following 3 lines
title Mandriva
kernel (hd0, 5) / boot / vmlinuz BOOT_IMAGE = linux root = / dev/hda6 resume = / dev/hda7
splash = silent vga = 788
initrd (hd0, 5) / boot / initrd.img

How to find the three lines above are:

  • Finding where Mandriva system, by using fdisk-l, in this example Mandriva system on / dev/hda6.
  • Mount / dev/hda6, for example: mount / dev/hda6 / mnt / win.
  • Open the menu.lst file under the directory / boot / grub on Mandriva system, here for example:     vim / mnt / win / boot / grub / menu.lst. In this file there are three lines previously mentioned above.

No comments:

Post a Comment