Search This Blog

Friday, October 23, 2009

yum installation related problems

this problem has really disturbed me for quite a while.
#the problem
#yum update

Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again

so here is he solution

first u need to make some changes in these two files
/etc/yum.repos.d/fedora.repo and
/etc/yum.repos.d/fedora-updates.repo

Now un-comment all the lines that start with the term baseurl and place a comment before all lines that start with mirrorlist. Do this for both the above files.then
edit your /etc/hosts file and append the following to it’s contents:

80.239.156.215          mirrors.fedoraproject.org
213.129.242.84 mirrors.rpmfusion.org


Now try updating your system or installing any software via Yum. You will see, the error is now resolved and the error message is not shown anymore.

Enjoi :)


FEDORA 11 leonidas related problems

hi,all
just installed fedora 11.
If u got any problem post it here.

Sunday, August 9, 2009

Display problem

Display problem

1.log into root by typing
#su
#password
2.go to this directory
# cd /etc/X11
3.edit this file
# vi xorg.conf
then look for the section "screen"
mine look like this :

Section "Screen"
Identifier "Screen0"
Device "Videocard0"
DefaultDepth 24
SubSection "Display"
Viewport 0 0
Depth 24
Modes "1024x768" "640x480"
EndSubSection

edit the line containing Modes to the desired screen resolution

4.save the file and exit

5.find the pid of X server by
# ps -e | grep X

6.then kill it by
# kill -9 pid

(note: pid is what u get after step 5.)

you will then get logon prompt .

and your problem is solved

DONE :)

NOTE : But there is one catch in this as far as i'm concerned resolution greater than 1024x768 doesn't work on fedora 9.i will update this when i get this problem solved.
Enjoi :)


Saturday, April 4, 2009

SOME EXTRAS

SOME EXTRAS:)

NOTE : if u forgot then ,u need to be root to install any application.:D

FOR Permanently Accessing Windows Partitions

#'yum install ntfs-config

You can find it in System -> Administration -> NTFS Configuration Tool

====================================================:) enjoy

For Google Earth

Go to this page http://earth.google.com/download-earth.html and download GoogleEarthLinux.bin. Next open a terminal and go to the folder you have saved it, Install it by typing:

# GoogleEarthLinux.bin

you can find it under Applications -> Internet -> Google Earth. Note that in order it to run ok you must have installed drivers for your video card.

================================================:)Enjoi


FOR linuxdcpp (linuxdc++)

# yum install linuxdcpp

*FOR Partition Editor

For GNOME users gtk based partition manipulation program

# install gparted
For KDE users Qt based partition manipulation program

# yum install qtparted
===============================================:)

FOR unrar

# yum install unrar


================

FOR Bittorrent

# yum install bittorrent bittorrent-gui

==================================

FOR k3b

One of the best Linux CD/DVD burning program. It comes along with a lot KDE dependencies if you are using GNOME.

# yum install k3b
To enable all encoding features and programs for k3b type:

# yum install k3b-extras-nonfree vcdimager normalize transcode lame

====================================================



Adding the RPM Fusion repositories during install

FOR Adding the RPM Fusion repositories during install do this:)
Note:Before you start installing Fedora making sure you have a supported network card and over which a connection to the internet can be established. Start the install and move through the different anaconda screens where you select language, keyboard layout, root password and target volume until you get to the Additional Tasks screen:
then click on
add additional software repositories

Then follow these steps to enable the RPM Fusion free repository:

  1. In the Additional Repositories section, click the Add additional software repositories button.

  2. In the Edit Repository dialog, set the Repository name: 'RPM Fusion Free'
  3. Set Repository type: HTTP/FTP

  4. Set Repository URL depending distribution version and the architecture. For Fedora 10 on i386 use
    http://mirrors.rpmfusion.org/free/fedora/x/i386  note:where x is version of fedora
  5. Click URL is a mirror list

  6. Click OK

Notes:

  • For other architectures like x86_64 or PPC/PPC64, change i386 to x86_64, ppc, or ppc64 in the repository URL.

  • Packages in the nonfree repository require packages from the free repository to be available, hence you must enable the free repository if you want to enable the nonfree repository.

  • If you enable the Fedora Updates repository during install then you have to activate the RPM Fusion Updates repositories during install in addition to the RPM Fusion Release repositories. The URLs for the Updates repositories are similar to the ones for the release repositories. Some examples:

    Repository

    URL for i386

    RPM Fusion Free Release for F10

    http://mirrors.rpmfusion.org/free/fedora/10/i386

    RPM Fusion Nonfree Release for F10

    http://mirrors.rpmfusion.org/nonfree/fedora/10/i386

    RPM Fusion Free Update for F10

    http://mirrors.rpmfusion.org/free/fedora/updates/10/i386

    RPM Fusion Nonfree Updates for F10

    http://mirrors.rpmfusion.org/nonfree/fedora/updates/10/i386


To install compiz fusion and all reated themes

COMPIZ FUSION:

these are for official packages:)

#yum install compiz-fusion compiz-fusion-gnome compiz-fusion-extras compiz-fusion-extras-gnome compiz-manager gnome-compiz-manager ccsm fusion-icon fusion-icon-gtk emerald emerald-themes

these are for unofficial packages:(

#yum install compiz-all fusion-icon-all compiz-fusion-plugins-unsupported compiz-fusion-plugins-extra compiz-bcop ccsm emerald-themes compizconfig-backend-gconf compizconfig-backend-kconfig


FOR Auto start

GNOME:

Go to System -> Preferences -> Personal -> Sessions and click Add. Then type

name : Fusion Icon
command : fusion-icon
Comment : Compiz Fusion panel applet

then make a symbolic link by typing this terminal
#ln -s /usr/bin/fusion-icon

Logout and then back in. Now you should see a blue icon in your tray. Right click on it and go to Select Window Manager -> Compiz. You can leave the default Window Decorator or select emerald through Select Window Decorator -> Emerald. If you click on Settings Manager, ccsm will run and you can configure compiz fusion as you like. Enjoy! :)

Sunday, March 22, 2009

Back up your MBR

Backup MBR with dd command

Backing up partition is nothing but actually backing up MBR (master boot record). The

command is as follows for backing up MBR stored on /dev/sdX or /dev/hdX :
# dd if=/dev/sdX of=/tmp/sda-mbr.bin bs=512 count=1

Replace X with actual device name such as /dev/sda.

Now to restore partition table to disk, all you need to do is use dd command:
# dd if= sda-mbr.bin of=/dev/sdX bs=1 count=64 skip=446 seek=446

NJOI:)

Thursday, January 8, 2009

Recovery problems

Bootrec.exe tool in the Windows Recovery

It repairs the following items in Windows Vista:
• A master boot record (MBR)
• A boot sector


To run the Bootrec.exe tool, you must start Windows RE(recovery environment). To do this, follow these steps:
1. Put the Windows Vista installation disc in the disc drive, and then start the computer.
2. Press a key when you are prompted.
3. Select a language, a time, a currency, a keyboard or an input method, and then click Next.
4. Click Repair your computer.
5. Click the operating system that you want to repair, and then click Next.
6. In the System Recovery Options dialog box, click Command Prompt.
7. Type Bootrec.exe, and then press ENTER.

Note: This is only possible with windows vista recovery cd which you can get with vista installation cd/dvd or from

net you can download it.

Bootrec.exe options
The Bootrec.exe tool supports the following options. Use the option that is appropriate for your situation.

Note: If rebuilding the BCD does not resolve the startup issue, you can export and delete the BCD, and then run

this option again. By doing this, you make sure that the BCD is completely rebuilt. To do this, type the following

commands at the Windows RE command prompt:
• bcdedit /export C:\BCD_Backup
• c:
• cd boot
• attrib bcd -s -h -r
• ren c:\boot\bcd bcd.old
• bootrec /RebuildBcd
/FixMbr
The /FixMbr option writes a Windows Vista-compatible MBR to the system partition. This option does not overwrite

the existing partition table. Use this option when you must resolve MBR corruption issues, or when you have to

remove non-standard code from the MBR.
/FixBoot
The /FixBoot option writes a new boot sector to the system partition by using a boot sector that is compatible with

Windows Vista. Use this option if one of the following conditions is true:
• The boot sector has been replaced with a non-standard Windows Vista boot sector.
• The boot sector is damaged.
• An earlier Windows operating system has been installed after Windows Vista was installed. In this scenario,

the computer starts by using Windows NT Loader (NTLDR) instead of Windows Boot Manager (Bootmgr.exe).
/ScanOs
The /ScanOs option scans all disks for installations that are compatible with Windows Vista. Additionally, this

option displays the entries that are currently not in the BCD store. Use this option when there are Windows Vista

installations that the Boot Manager menu does not list.
/RebuildBcd
The /RebuildBcd option scans all disks for installations that are compatible with Windows Vista. Additionally, this

option lets you select the installations that you want to add to the BCD store. Use this option when you must

completely rebuild the BCD

Reinstalling Grub boot loader
BY
COMMANDS @ TERMINAL
COMMANDS TO REINSTALL GRUB:
U just need to enter the terminal using the installation CD/DVD of your GNU/Linux operating system.

Once you are at the terminal. type this:
$ grub
If it says that you don’t have the permission. Type this command at the terminal:
$ sudo grub
You will get the grub-shell prompt:
grub>

Now, you need to find out in which partition Grub had been installed before, so that you reinstall in that

partition only. Give this command at the terminal:
grub> find /boot/grub/stage1
(returns value)
It returns the number of the partition in which Grub i.e your GNU/Linux had been installed.
e.g.,

grub> find /boot/grub/stage1
(hd0,2)


NOTE:
Sometimes, when Grub has not been installed properly, the file “/boot/grub/stage1″ may not exist. So, the output

will be “Error 15: File not found”. In such a case, come out of the grub-shell by pressing “Ctrl+c”. Then, at the

shell prompt, give this command at the terminal:
$ fdisk -l
Again, if you are not logged in as root, give this command at the terminal:
$ sudo fdisk -l
The output will list all the partitions and it’s properties, including the file system type.
e.g.,
Device Boot Start End Blocks Id System
/dev/sda1 1 654 5253223+ b FAT32
/dev/sda2 * 655 1962 10506510 7 HPFS/NTFS
/dev/sda3 1963 3924 15759765 83 Linux
The “System” attribute of your GNU/Linux operating system will be “Linux”. So note down that partition number.
e.g., sda3
Since it’s array numbering, sdaN is mapped to (hd0,N-1).
Just (hd0) will be the Master Boot Record(MBR).
sda1 will be (hd0,0) and so on.
So, sda3 will be (hd0,2)
Now, log into the grub-shell prompt again.

Before reinstalling Grub, you will have to notify the partition that your Grub i.e. GNU/Linux is resided in. So,

give this command at the terminal:
grub> root (returned value)
e.g.,
grub> root (hd0,2)

Now, reinstall grub in the MBR i.e. the returned value without number part.
e.g., (hd0)
So, give this command at the terminal:
grub> setup (returned value without number part)
e.g.,
grub> setup (hd0)

Exit the grub-shell prompt using “Ctrl+c”.
Exit the shell prompt using “Ctrl+d”.

NOTE :

You can also reinstall Grub in your GNU/Linux partition, only if this GNU/Linux partition is “primary” and you have

another boot loader installed at the MBR(in case of more than one GNU/Linux operating systems) through which you

can boot this primary partition. To do that, give this command at the terminal:
grub> setup (returned value)
e.g.,
grub> setup (hd0,2)