Pages

Wednesday, July 25, 2012

Creating local directory for yum installation using createrepo @ rhel ,fedora

To create a local directory from which we can install through yum,Mainly we need the "createrepo plugin of yum"

first make the directory

>mkdir pak

then copy the rpms into the directory

then use createrepo to create the repository files inside the folder

>createrepo pak

then it will make repository files and show following on success

Saving Primary metadata
Saving file lists metadata
Saving other metadata

then make a file @ /etc/yum.repos.d/pak.repo

>vim /etc/yum.repo.d/pak.repo

inside that we need name url and enable option
enable should be equal to 1 to make the repository
active all the time.the url will have destination to
the folder

as follows


[pal]
Name=pak $releasever $basearch local repository
baseurl=file:///pak
enabled=1

Sunday, July 22, 2012

fedora 17 and grub2

Fedora 17 and grub2...While installing fedora 17 from the live cd  at the end of finishing the installations i got an error like "installing bootloader failed ..system any not boot properly " the problem was maily with grub2 version .Even though the grub2 is much better than the older one it has some bugs .it shows some problem whiling installing to a system with older grub.

We can try reinstall the grub with the distro dvd rescue mode...

1.chroot  /mnt/sysimage

the root file system will be loaded to /mnt/image

2. grub2-install /dev/sda
installing the grub to ur harddisk ..in normal mode this wont work we should also give --force and --recheck

grub2-install --force --recheck /dev/sda

3.to get all the operating system use

grub2-mkconfig -o /boot/grub2/grub.cfg

the -o will create the config file

 

 

Saturday, July 14, 2012

To create keyboard shortcut for terminal in linux

open the terminal then type

>gnome-keybinding-properties

Then an window will pop up that window can be used to create custom keyboard shortcuts.

Click add and give name for the entry and terminal command which should be activated with shortcut and click Apply

now in the window backward an entry such as custom entry will appear and now click in shortcut then the disabled option changes to New shortcut .now press the needed shortcut it will be set.

command for terminal is gnome-terminal and give needed shortcuts