Bob's Notes
Linux Setup

Set External IP Address

These notes describe various things you need to do after setting up a Fedora Core 3 or 4 or 6 machine to get Firefox, mplayer, and other things working.

Livna and Dag Repositories for YUM

The Livna and Dag repositories have versions of several tools with MP3 support which is removed from the base Fedora destributions because of potential licening issues. You can make a lot more things work by including them in the YUM repo list. For example Livna's xmms-mp3 package is xmms with mp3 support.

To add the Livna repository to the repos. run:

rpm -Uvh  

for FC6:
rpm -Uvh

This will install both the repo (/etc/yum.repos.d/livna.repo) annd the gpg key.

For the dag repository create /etc/yum.repos.d/dag.repo with the following content:

name=Dag for Fedora Core $releasever - $basearch - Base
Then run:
rpm --import
The above technique came from the net and seemed to work, but does not look right to me. I redid the dag repository as follows:

  1. wget -O /tmp/dag.txt
  2. Edit /tmp/dag.txt and remove everything up to but not including the line:
  3. mv /tmp/dat.txt /etc/pki/rpm-gpg/RPM-GPG-KEY-dag
  4. rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-dag
  5. Change /etc/yum.repos.d/dag.repo to read:
    name=Dag for Fedora Core $releasever - $basearch - Base

This also worked and looks cleaner.

rpmforge-release repo for YUM

I have tried the rpmforge-release repo and have currently diabled it (/etc/yum.repos.d/rpmforge.norepo). The rpmforge.repo, dries.repo, and freshrpms.repo give me package conflicts with packages from the livna repo. As I use the mp3 processing from the livna repo and I cannot identify things I absolutely need from these other repos, I have left them disabled by changing the .repo to .norepo. There may be a way of making these repos play nicely with livna, but I am currently not motivated to figure it out. (suggestions are always welcome.)

rpm -Uvh

$: cat dries.norepo
name=Extra Fedora rpms dries - $releasever - $basearch

$: cat freshrpms.norepo 
#name=Fedora Linux $releasever - $basearch - extras
#name=Fedora Linux $releasever - $basearch - alternatives

$: cat rpmforge.norepo
# Name: RPMforge RPM Repository for Fedora Core 4 - i386
# URL:
name = Fedora Core 4 - i386 - - dries
#baseurl =$basearch/dries/RPMS
mirrorlist =
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dries
gpgcheck = 1

Java in Firefox

  1. First download the Sun Java RPM.bin file from sun. Do a google search on:
    jdk linux rpm download
    and you should get a link to the Sun Java Download center.
  2. Install the JDK or JRE as per the instructions from Sun.
  3. Use the locate command to determine the installation directory for firefox and the location of the java plugins. See the samples in the next step. In the sample, the firefox install location is /usr/lib/firefox-1.0.7.
  4. Firefox will find plugins in /usr/lib/mozilla/plugins in addition to the firefox plugin directory. Try these links first and make sure they work they work. If not use the links into the firefox directory.
    ln -s /usr/java/jre1.6.0_02/lib/plugin/i386/ns7/  /usr/lib/mozilla/plugins/
    ln -s /usr/java/jre1.6.0_02/lib/i386/             /usr/lib/mozilla/plugins/
    ln -s /usr/java/jre1.6.0_02/lib/i386/            /usr/lib/mozilla/plugins/

    If these links work, you will not have to update the plugins directory every time firefox changes. When java changes, the links will still have to be updated.
    NOTE: After you download and install the java runtime, go into /usr/java and see what the current release of java is called. Update the left side of the above links accordingly. Then verify that the paths work. These files occationally move around between releases. If the file is not where you expect, run the commands:
    cd /usr/java
    find . -name  -print
    find . -name  -print
    find . -name  -print

  5. Create soft link from the plugin modules in the Java directory to the firefox directory. Note that you will have to do this again when a new release of Java and/or firefox is installed.
    ln -s /usr/java/jdk1.5.0_04/jre/plugin/i386/ns7/ /usr/lib/firefox-1.0.7/plugins/
    ln -s /usr/java/jdk1.5.0_04/jre/lib/i386/        /usr/lib/firefox-1.0.7/plugins/
    ln -s /usr/java/jdk1.5.0_04/jre/lib/i386/       /usr/lib/firefox-1.0.7/plugins/

    When you see that yum is downloading a new version of firefox, you can save yourself some effort by going to the existing firefox plugin parent directory and tar'ing up the plugin directory.
    cd /usr/lib/firefox-1.0.6;tar cf /usr/tmp/firefoxplugins plugins
    You can then untar it later into the new plugin parent directory (/usr/lib/firefox-1.0.7) - be careful not to replace

Acrobat Reader in Firefox and Nautilus

  1. Go to and download the rpm for acrobat reader for Linux.. Install this rpm. It will create /usr/share/applications/AdobeReader.desktop You can activate it in Nautilus by updating /usr/share/applications/mimeinfo.cache and /usr/share/applications/defaults.list; finding the entries for pdf; and changing them to use the AdobeReader.desktop as the first choice.
  2. Enable Acrobat in firefox with:
    ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/  /usr/lib/mozilla/plugins/
    ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/  /usr/lib/firefox-1.0.7/plugins/  
    Note that the exact firefox release will need to be adjusted. That is, the firefox-1.0.7 part of the path will change. You can ls /usr/lib to find the most current directory to use. As with Java, this link will need to be updated if new releases of firefox or Acrobat reader come out. Try setting the /usr/lib/mozilla/plugins link first. If that works, you can skip the firefox-1.0.7 link.
  3. You will have to fiddle with Nautulus to make acroread the default program to open .pdf files. Look at the section on making mplayer the default program for opening movie files. You can use the same technique for adobe and acrobat files.

Macromedia Flash Player

  1. Go to and go into the downloads section. Download Flash Player. RPM and YUM versions are available.
  2. Unpack the tar file and run the install script.

Watching DVD's with Xine

  1. Make sure there is a DVD player on the machine.
  2. Make sure xine in loaded (yum install xine).
  3. Run the command:
    yum install xine\* libdvd\*
    The xine player gives an interface similar to Power DVD on windows, which is a very nice interface.
  4. There were dependency errors which prevented yum from working on one run of this procedure. I had to use rpm -e to remove the offending packages and allow yum to install the livna versions of the packages.

Local install RPM's

The command:

yum localinstall abc.rpm
Is usefuall for installing an rpm and having yum track down the dependencies for you.

Toolbar Panels

I figured out how to convert from two small bars at the bottom to one big one.

  1. In the toolbar with the applications and preferences and such, right click in the empty area to get the pop-up menu. Click on properties.
  2. Change the size from 24 pixels to 48 pixels and close the window.
  3. Delete the other toolbar by right clicking in an unused area and selecting delete panel.
  4. You may have to add the workspace switcher and the window list. In the remaining toolbar panel, right click in an area not covered by an icon and select "Add to panel" to from the popup. The bottom windows are Workspace Switcher and window list. Add each of them one at a time.
  5. You can move icons on the toolbar panel around by right clicking the icon and selecting move. Then drag it where you want it.

Turning Off Graphical Boot

To turn off the graphical boot screen that covers up what is going on during boot, go into /boot/grub and edit grub.conf. Remove the symbol rhgb from the line(s) starting with kernel.

Turning on echo and daytime

In FC4 the echo and daytime had disable = yes set in their /etc/xinetd.d files. This was even after they were checked and saved in system-config-services. The /etc/xinetd.d/echo and /etc/xinetd.d/daytime files should look as follows:

stymar-/etc/xinetd.d:cat echo
# default: off
# description: An xinetd internal service which echo's characters back to clients. \
# This is the tcp version.
service echo
	disable	= no
	type		= INTERNAL
	id		= echo-stream
	socket_type	= stream
	protocol	= tcp
	user		= root
	wait		= no
	log_on_success =
stymar-/etc/xinetd.d:cat daytime
# default: off
# description: An internal xinetd service which gets the current system time \
# then prints it out in a format like this: "Wed Nov 13 22:30:27 EST 2002". \
# This is the tcp version.
service daytime
	disable	= no
	type		= INTERNAL
	id		= daytime-stream
	socket_type	= stream
	protocol	= tcp
	user		= root
	wait		= no
	log_on_success =

Making mplayer the default for wmv files


Creating the desktop file
If it is not already existing, create the file "/usr/share/applications/mplayer.desktop" like this:

[Desktop Entry]
Name=Movie Player
Comment=Play multimedia files and media
Exec=gmplayer %f

The mime types for asf and wmv already exist and are stored in the mime type database (/usr/share/mime/packages/

Modify defaults.list
This file will init our DEFAULT application. It ONLY contains ONE desktop file for EACH mime type:


Modify mimeinfo.cache
To take effect as default application and init the double-click feature, we need to modify the mimeinfo.cache also:


This file can use MORE then ONE desktop file. If you want to be able to handle - for example - WMV files with different players, a line like this is also acceptable:


This will change the right-click-menu and insert Helix-Player, while mplayer is still default (with double-click)

After modification, log out from gnome and log in again...

You may need to make a change to mplayer to get wmv files to play. You can try the following steps:

  1. rpm -qa | grep mplayer
    If this command shows that your mplayer comes from the fr repositiory or someplace besides livna do the next two steps after making sure LIVNA is in your list of REPOS as shown above.
  2. rpm -e mplayer
    The above command will uninstall mplayer.
  3. yum install mplayer
    The above command should install the livna version of mplayer.
  4. yum install mpeg2dec
    yum install mpg321
    These should come from livna.
  5. Try mplayer from a terminal window on a wmv file.
    mplayer somefile.wmv
    If you still get no picture, you may see an error message about wmvdmod.dll being missing. In this case try the next step.
  6. Download the "essential codecs" at and untar the file. Move the files in the created directory to /usr/lib/win32. You can get these files via a slower link at download usr-lib-win32.tgz and untar this file into /usr/lib/win32. Since the files are DLL's I suspect you must have a valid Microsoft OS License to use them. This got the wmv files to play for me.
    You can also download these codes in RPM format. Download mplayer-codecs-win32-2.0-1.i386.rpm or mplayer-codecs-win32-20040704-1.i386.rpm from RPMFIND or RPMSEEK or PBONE or fr.prmfind. There are other places to pull this from which you can find by using Google on the rpm name.
    If you use the RPM solution, you may get warnings about this rpm requiring a level of mplayer whose name does not match the layout of the current mplayer. You can get the RPM's to install via
    rpm --nodeps mplayer-codecs-win32-2.0-1.i386.rpm
    When updates to mplayer show up, you may have to uninstall the win32 codecs, allow the mplayer update to go in, and reinstall the codecs.

Roll Your Own VPN from work to home and back

Up to home
Last Maintained: Saturday, 08-Sep-2007 16:22:09 EDT
For any questions or concerns regarding this page contact Bob Styma (623)-582-7323.
this page via Lucent web server
this page via external web server