Howto: create a local repository for Fedora.

Creating a local Fedora repository is a great way to conserve bandwidth. You can update all of the computers on your local network from one repository.

1)  Install a web server.  I use apache.
su -c yum install httpd -y

2)  Create the directories that become the local repository.
su -c mkdir -p /var/www/html/yum/F15/releases
su -c mkdir -p /var/www/html/yum/F15/updates

3) Install the remote synchronization tool rsync.
su -c yum install rsync -y

4) Use rsync to populate your repository.
/usr/bin/rsync -avrt rsync:// –exclude=debug/ /var/www/html/yum/F15/updates
/usr/bin/rsync -avrt rsync:// /var/www/html/yum/F15/everything

I create a cron job for the rsync process. The following synchronizes daily.
su -c touch /etc/cron.daily/rsyncfedora15.cron
su – gedit /etc/cron.daily/rsyncfedora15.cron

Paste the 3 lines of code below into the rsyncfedora15.cron file.
/usr/bin/rsync -avrt rsync:// --exclude=debug/ /var/www/html/yum/F15/updates >> /var/log/rsync15updates.log
/usr/bin/rsync -avrt rsync:// /var/www/html/yum/F15/everything >> /var/log/rsync15.log

Then save the file.
This also creates and appends two log files rsync15update.log and rsync15.log in the /var/log directory.

The first time the repository synchronizes it may take considerable time and bandwidth.  Be patient for the process to complete.

If you do NOT plan to make a full mirror of an existing Fedora repository you should use the createrepo tool to create and populate the data files and directories correctly.
su -c yum install createrepo

createrepo -v -p -d –deltas /var/www/html/yum/F15/everything

Now you have created the repository for Fedora 15.

Next I create files in my  /etc/yum.repos.d/  called local.repo and localupdates.repo

local.repo has the following in it:

name=Fedora $releasever – $basearch


name=Fedora $releasever – $basearch – Updates

Then I copy those two files to all of my systems.

Howto: fix Gconf error from Firefox

An error occurred while loading or saving configuration information for firefox. Some of your configuration settings may not work properly.

If you click on details of that error you may see:

Failed to contact configuration server; some possible causes are that you need to enable TCP/IP networking for ORBit, or you have stale NFS locks due to a system crash. See for information. (Details –  1: Server ping error:
The fix for this issue may be:

1.  CTRL+ALT+Backspace to log out of the current desktop session.

2. Open a terminal. CTRL+ALT+F1

3. login as root

4.  cd to /tmp/

5. rm -rf  X0-lock

The cause may be that you deleted the contents, or some program or installer deleted the contents of your system’s tmp folder.