It is no longer necessary to become an expert practitioner of the arcane dark arts of the Unix command line in order to get a complete Linux distribution working on your PC including all of the productivity, multimedia, and entertainment applications you will need on your desktop and a fully functional web server as well.
This web page began as some notes to myself as I installed Fedora Core and
has evolved into a popular guide for the new Linux user. Enjoy.
Stan Finley
These instructions assume an i386 to i686 system (32 bit) with, an "always on" LAN or broadband connection configured "DHCP" and at least 10 GB of free disk space for the Fedora partition. Instructions for dual booting Windows and Fedora are included.
For x86_64 processors (64-bit AMD64, EM64T) you should probably get FC4-x86_64-disc1.iso, FC4-x86_64-disc2.iso, FC4-x86_64-disc3.iso, and FC4-x86_64-disc4.iso. These instructions will not strictly apply for 64 bit computers using the 64 bit isos. 64 bit capable processors like Athlon 64, Opteron and Xeon are supposed to be backwardly compatible with 32 bit instruction sets and are known to run 32 bit editions of Linux. Therefore the i386 isos may work with these. I understand that Fedora Core for 64 bit processors still has some unresolved issues. Your mileage may vary.
gedit /boot/grub/grub.conf
# grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd0,1) # kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00 # initrd /initrd-version.img #boot=/dev/hda default=0 timeout=5 splashimage=(hd0,1)/grub/splash.xpm.gz #hiddenmenu title Fedora Core 4 (2.6.11-1.1369_FC4) root (hd0,0) kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/VolGroup00/LogVol00 vga=771 initrd /initrd-2.6.11-1.1369_FC4.img title Windows rootnoverify (hd0,0) chainloader +1Disabling the "hiddenmenu" with the "#" comment and removing "rhgb quiet" from the kernel line will cause the operating system selection menu to display immediately upon boot and will also disable the graphical boot screens so that you will see the boot sequence scroll by in text. Click on the "save" icon in gedit and close it. Close the terminal.
gedit /etc/hostsHit enter and gedit will open. Place your cursor after "localhost" and hit tab. Then type in the characters that appear on your root terminal screen after "root@" up to but not including the space and tilde (~). When you are finished, your hosts file should look something like this:
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost x1-6-00-04-5a-5e-ac-83Click on the "save" icon in gedit and close it. This will eliminate the Gnome error message that appears on boot-up on some systems.
gedit /etc/X11/xorg.confHit enter and gedit will open. Scroll down to the "Monitor" section. Find the "HorizSync" line and enter your monitor's supported horizontal frequency range. The line should look something like "HorizSync 30.0 - 70.0". Enter your monitor's supported vertical frequency range opposite "VertRefresh". The line should look something like "VertRefresh 50.0 - 160.0". Scroll down to the "Screen" section and opposite each instance of "modes" enter you monitor's supported pixel resolution, starting with the highest. The line should look something like "Modes "1024x768" "800x600" "640x480"". You should be able to get these values from your monitor's manual or from a search for your monitor by manufacturer and model number on the Internet. Use caution when entering these values and be sure that they conform to your monitor's published specifications or you could be left with a non-working graphical environment. Hit the "save" button in gedit and exit gedit. Log out and log back in.
As you continue please keep the following in mind: You should not use the livna.org repository in conjunction with the dag/freshrpms/dries/newrpms (RPMforge) collection of rpms in your configuration files for automatic updates. Use one group or the other but not both. These two groups are mutually incompatible and can cause errors in your installation if used together for automatic updates. Regardless of which group you choose you should also avoid using the ATrpms repository in your yum or apt configuration files for these reasons. Some additional information can be found here. (If the center of that page comes up empty reload the page.)
With this being said please note that it is nonetheless possible to obtain single RPM packaged applications from incompatible third party repositories in cases where such packages do not create errors when installed with yum. More specifically it is possible to configure other repositories with their enable flags set to "0" (off) so that the yum "--enablerepo" command must be used when one of those packages is desired. We will do this to obtain the totem-xine package by configuring the livna.org stable repository with its enable flag set to "0" and then enabling it for one download and rpm installation as described in the totem-xine section below.
I myself subscribe to the RPMforge collection as you can see in my yum and apt repository selection instructions below. The dag/freshrpms/dries/newrpms/PlanetCCRMA (RPMforge) repositories have provided me with all of the programs I have needed as additions to the Fedora base.
Note that up2date looks in /etc/yum.repos.d/ by default for its repositories so that if you change your yum configuration you will have changed your up2date configuration at the same time.
To configure your Fedora Core 4 yum and apt repositories to use the RPMForge repositories proceed as follows:
wget http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/fc4/i386/RPMS.dries/rpmforge-release-0.2-2.2.fc4.rf.i386.rpmHit enter. Wait for the download to complete. Type:
suHit enter. Type your root password. Hit enter. Type:
rpm -Uvh *.rpmHit enter. wait for the installation to complete. Type:
rm *.rpmType "y". Hit enter. Type:
su -Hit enter. Type:
gedit /etc/yum.repos.d/freshrpms.repoHit enter and gedit will open. Type the following in gedit:
[core] name=FreshRPMS-Core baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/core http://ayo.us5.freshrpms.net/fedora/linux/$releasever/$basearch/core failovermethod=priority enabled=1 gpgcheck=1 [updates] name=FreshRPMS-Updates baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/updates http://ayo.us5.freshrpms.net/fedora/linux/$releasever/$basearch/updates failovermethod=priority enabled=1 gpgcheck=1 [freshrpms] name=FreshRPMS-Fresh baseurl=http://ayo.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms http://ayo.us5.freshrpms.net/fedora/linux/$releasever/$basearch/freshrpms failovermethod=priority enabled=1 gpgcheck=1Be sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit. Type the following in the root terminal:
gedit /etc/yum.repos.d/dries.repoHit enter and gedit will open. Type the following in gedit:
[dries] name=Extra Fedora rpms dries - $releasever - $basearch baseurl=http://ftp.belnet.be/packages/dries.ulyssis.org/fedora/linux/$releasever/$basearch/dries/RPMS/ http://apt.sw.be/dries/fedora/fc4/$basearch/dries/RPMS/ failovermethod=priority enabled=1 gpgcheck=1Be sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit. Type the following in the root terminal:
gedit /etc/yum.repos.d/newrpms.repoHit enter and gedit will open. Type the following in gedit:
[newrpms.sunsite.dk] name=Fedora Core 4 i386 NewRPMS.sunsite.dk baseurl=http://newrpms.sunsite.dk/apt/redhat/en/$basearch/fc$releasever http://newrpms.atrpms.net/apt/redhat/en/$basearch/fc$releasever failovermethod=priority enabled=1 gpgcheck=1Be sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit.
rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txtHit enter. Type:
rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txtHit enter. Type:
rpm --import http://newrpms.sunsite.dk/gpg-pubkey-newrpms.txtHit enter. Type:
rpm --import /usr/share/doc/fedora-release-*/*GPG-KEY*Hit enter. You have just imported the GPG keys for your yum repositories. Type:
yum updateHit enter. Your system will be updated. Answer "y" for "yes" in the appropriate places. Reboot.
su -Hit enter. Type your root password. Hit enter. Type:
yum -y install aptHit enter. Wait for the installation to complete. Type:
yum -y install synapticHit enter. Wait for the installation to complete. Type:
gedit /etc/apt/sources.list.d/dag.listHit enter and gedit will open. If there is nothing in this file (blank page), type the following in gedit:
# Name: Dag RPM Repository # URL: http://dag.wieers.com/apt/ ### Dag RPM Repository for Fedora Core rpm http://apt.sw.be fedora/4/en/i386 dagBe sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit. While still in the root terminal, type:
gedit /etc/apt/sources.list.d/freshrpms.listHit enter and gedit will open. If there is nothing in this file (blank page), type the following in gedit:
# Name: FreshRPMS # URL: http://ayo.freshrpms.net/ ### Fedora Core rpm http://ayo.freshrpms.net fedora/linux/4/i386 freshrpmsBe sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit. While still in the root terminal, type:
gedit /etc/apt/sources.list.d/dries.listHit enter and gedit will open. If there is nothing in this file (blank page), type the following in gedit:
# Name: Dries RPM Repository # URL: http://dries.studentenweb.org/apt/ ### Fedora Core rpm http://apt.sw.be dries/fedora/fc4/i386 driesBe sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit. While still in the root terminal, type:
rpm --import http://dries.ulyssis.org/rpm/RPM-GPG-KEY.dries.txtHit enter. Type:
rpm --import http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txtHit enter. Type:
rpm --import http://freshrpms.net/packages/RPM-GPG-KEY.txtHit enter. You have just imported the GPG keys for your apt repositories. Type:
apt-get updateYour apt repository package list will be updated. Close the terminal. Log out and log back in.
suHit enter, type your root password and hit enter. (This gives you root privileges in the terminal even though you are still in the default user's home directory.) Type:
lsHit enter. This will list the contents of your home directory so you can see if the file you just saved is there. Type:
rpm -ivh *.rpmHit enter. Wait for the installation to complete. Type:
rm *.rpmHit enter. Type "y" and hit enter. (This deletes the downloaded RPM file in your home directory, however the program is already installed into your system.) Close the terminal. Log out and log back in.
su -Hit enter, type your root password and hit enter. Type:
yum -y install grip gtk-gnutella numlockx xscreensaver-extras xscreensaver-gl-extras xscreensaver-baseHit enter. Wait for the installation to complete. Log out and log back in. Grip will now appear in "Applications" > "Sound & Video" as "Grip" and gtk-gnutella will be in "Applications" > "Internet" as "Gtk-Gnutella.
su -Hit enter, type your root password and hit enter. Type:
yum -y install yumexHit enter. Wait for the installation to complete. Log out and log back in. Yum Extender will now appear in "Applications" > "System Tools".
suHit enter. Type your root password. Hit enter. Type:
mv *.bin /optHit enter. Type:
cd /optHit enter. Type:
chmod +x *-linux-i586.binHit enter. Type:
./*.binHit enter. Hold the enter key down until the yes/no line appears to allow you to agree to the license agreement. Type "yes" and hit enter. Wait for the installation to complete. Type:
rm *.binHit enter. Type "y" and hit enter. Type:
su -Hit enter. This gives you root privileges and also puts you in the /root directory. Type:
ln -s /opt/jre1.5.0_06/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/libjavaplugin_oji.so(Note that by default Firefox looks in /usr/lib/mozilla/plugins for its plugins. If you have trouble with your plugins in Firefox you could substitute "firefox-1.0.7" or your most recent firefox directory name in place of "mozilla" in the above command.) Hit enter. Close the terminal. Restart Firefox to enable the java plugin. You could go to http://www.dslreports.com/stest?loc=97 and click the start button to test your java plugin installation. (We are not done with Java quite yet, even though your browser plugin is working. Please proceed to the next step.)
su -Hit enter. Type your root password. Hit enter. Type:
gedit /etc/profile.d/java.shHit enter. In gedit type these lines:
export J2RE_HOME=/opt/jre1.5.0_06 export PATH=$J2RE_HOME/bin:$PATHBe sure to enter a carriage return after these lines. Click on the "save" icon in gedit and exit gedit. In the terminal (which should still be open) type:
source /etc/profile.d/java.shHit enter. Type:
which javaHit enter. You should see:
/opt/jre1.5.0_06/bin/javaType:
/usr/sbin/alternatives --install /usr/bin/java java /opt/jre1.5.0_06/bin/java 2Hit enter. Type:
/usr/sbin/alternatives --config javaHit enter. You should see:
There are 2 programs which provide 'java'. Selection Command ----------------------------------------------- *+ 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java 2 /opt/jre1.5.0_06/bin/java Enter to keep the current selection[+], or type selection number:Type:
2Hit enter. Type:
/usr/sbin/alternatives --display javaHit enter. You should see:
java - status is manual. link currently points to /opt/jre1.5.0_06/bin/java ...You should now be able to install and run Java applications.
suHit enter. Type your root password. Hit enter. Type:
rpm -ivh *.rpmHit enter. Click "accept" in the license agreement windows that appears. Wait for the installation to complete. Type:
rm *.rpmHit enter. Type "y" and hit enter. Close the terminal. Reboot your machine. You could go to http://www.studiocleo.com/ to test your flash plugin installation.
suHit enter. Type your root password. Hit enter. If you have not already done so type:
yum -y install compat-libstdc++-33Hit enter. Wait for compat-libstdc++-33 to be installed. Type:
rpm -ivh *.rpmHit enter. Wait for the installation to complete. Type:
rm *.rpmHit enter. Type "y" and hit enter. Because HelixPlayer interferes with the browser plug-in function of RealPlayer we will remove it. Type:
yum remove HelixPlayerHit enter. Type "y" and hit enter. Close the terminal. Close and restart Firefox to enable the RealPlayer plugin, go to http://www.npr.org/, click on "NPR Program Stream", select "Listen to NPR audio with the Real player" and complete the RealPlayer Setup Assistant to test your RealPlayer plugin installation. (If the RealPlayer option does not initially appear in the dialog box click the radio button "open with" and click the checkbox "Do this automatically for files like this form now on", then click the "browse" button in the dialog box and in the file system browse to /usr/bin/realplay. Click "open". Click "OK".)
wget ftp://ftp.adobe.com/pub/adobe/reader/unix/7x/7.0/enu/AdobeReader_enu-7.0.1-1.i386.rpmHit enter. After the download completes type:
suHit enter. Type your root password. Hit enter. If you have not already done so type:
yum -y install compat-libstdc++-33Hit enter. Wait for compat-libstdc++-33 to be installed. Type:
rpm -Uvh *.rpmHit enter. After the installation completes type:
rm *.rpmHit enter. Type "y" and hit enter. Type:
acroreadHit enter. Adobe Reader will open. Click the "accept" button to accept the licence agreement. Close Adobe Reader. Type:
gedit /etc/mozpluggerrcHit enter. (If you don't already have mozplugger the file /etc/mozpluggerrc will be blank. In that case close it without saving it, open a terminal and do a "yum install mozplugger" as root. Then repeat the above command.) In /etc/mozpluggerrc comment out the pdf section with "#"s so that it looks like this:
####################### ###application/pdf: pdf: PDF file ###application/x-pdf: pdf: PDF file ###text/pdf: pdf: PDF file ###text/x-pdf: pdf: PDF file ### repeat swallow(documentShell) fill: acroread -geometry +9000+9000 +useFrontEndProgram "$file" ### repeat noisy swallow(Xpdf) fill: xpdf -g +9000+9000 "$file" ### repeat noisy swallow(gv) fill: gv -safer -quiet -antialias -geometry +9000+9000 "$file" #######################Click the "save" button in gedit and close gedit. Type:
cd /usr/lib/mozilla/plugins(Note that by default Firefox looks in /usr/lib/mozilla/plugins for its plugins. If you have trouble with your plugins in Firefox you could substitute "firefox-1.0.7" or your most recent firefox directory name in place of "mozilla" in the above command.) Hit enter. Type:
ln -s /usr/local/Adobe/Acrobat7.0/Browser/intellinux/nppdf.so .(Be sure to include the period at the end of the line.) Hit enter. Close the terminal. Open a terminal as your regular user (not root). Type:
cd .mozilla/firefoxHit enter. Type:
rm pluginreg.datHit enter. Close the terminal. Restart Firefox. Adobe Reader is installed. You could go to http://stanton-finley.net/fedora_core_4_installation_notes.pdf to test your Adobe Reader installation. (I notice that this does not work if there is more than one tab open in Firefox or that it works sometimes if there is more than one tab open and the page is reloaded.) If you wish to open Adobe Reader outside of Firefox the command is "acroread".
su -Hit enter. Type your root password. Hit enter. Type:
yum -y install xine xine-lib xine-skinsHit enter. Wait for the installation to complete. Close the terminal. You should now install the codecs as described below.
suHit enter. Type your root password. Hit enter. Type:
mkdir tempHit enter. Type:
mv *.bz2 tempHit enter. Type:
cd tempHit enter. Type:
tar xvfj *.tar.bz2Hit enter. Type:
cd all-20050412Hit enter. Type:
mkdir /usr/local/lib/codecs/Hit enter. Type:
cp *.* /usr/local/lib/codecs/Hit enter. Type:
cd /usr/local/lib/codecs/Hit enter. Type:
chmod 755 /usr/local/lib/codecs/*Hit enter. Type:
mkdir /usr/lib/win32Hit enter. Type:
cp /usr/local/lib/codecs/* /usr/lib/win32Hit enter. Type:
rm -rf /home/your_user_name/temp(Substitute the name of your home directory for "your_user_name".) Hit enter. Close the terminal. The additional codecs are now installed. Log out and log back in.
su -Hit enter. Type your root password. Hit enter. Type:
gedit /etc/yum.repos.d/livna.repoHit enter and gedit will open. Type the following in gedit:
[livna-stable] name=Livna.org Fedora Compatible Packages (stable) baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/RPMS.lvn enabled=0 gpgcheck=1(Note that we have the "enabled" bit set to "0" (off) in this file so that the livna-stable repository will not conflict with our RPMForge repositories for automatic updates.) Be sure there is a carriage return (blank line) at the bottom of the file. Click the "save" icon in gedit and then close gedit. Type the following in the root terminal:
rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEYHit enter. Type:
yum remove totemHit enter. Type "y" and hit enter. Type:
yum --enablerepo=livna-stable install totem-xineHit enter. Type "y" and hit enter. Wait for the installation to complete. Log out and back in. Totem-xine should now be available in "Applications" > "Sound & Video" as "Totem Movie Player".
su -Hit enter. Type your root password. Hit enter. Type:
yum -y install mplayer mplayer-skins mplayer-fontsHit enter and wait for the installation to complete, then close the terminal. Open a terminal as your regular user (not root). Type:
gmplayerHit enter. Mplayer will open. Close it. Type:
gedit ~/.mplayer/configIn gedit add these lines:
# Write your default config options here! vo=xv ao=alsaBe sure to add a carriage return at the end of the file. Click the "save" button in gedit and close gedit. Close the terminal.
suHit enter. Type your root password. Hit enter. Type:
rpm -Uvh *.rpmHit enter. Wait for the installation to complete. Type:
rm *.rpmHit enter. Type "y" and hit enter. Close the terminal. Close and restart Firefox to enable the plugin. (Note that by default the mplayerplug-in files are installed in /usr/lib/mozilla/plugins. Normally Firefox looks in /usr/lib/mozilla/plugins for its plugins by default. If you have trouble with the mplayerplug-in in Firefox log in as root and do a "cd /usr/lib/mozilla/plugins", hit enter, then do a "cp mplayerplug-in* /usr/lib/firefox-1.0.7/plugins" and hit enter. This will copy the appropriate mplayerplug-in files into your current Firefox installation's plugin directory. If your current Firefox installation directory is not /usr/lib/firefox-1.0.7 substitute the correct directory name in the above command.) In order to keep yum from overwriting this special version of mplayerplug-in after you install it you should do a "yum --exclude mplayerplug-in update" when you do your updates with yum. (Or for a permanent fix add the line "exclude=mplayerplug-in" to your /etc/yum.conf file. Be sure there is a new line/carriage return at the end of the file.) You could go to http://www.apple.com/trailers/ to test your MPlayer plugin installation.
su -Hit enter. Type your root password. Hit enter. Type:
yum -y install xmms xmms-mp3Hit enter. Wait for the installation to complete. Close the terminal. Log out and back in. XMMS will be available in "Applications" > "Sound & Video" as "Audio Player". You could go to http://wholewheatradio.org/ to test your XMMS mp3 installation. (The executable is /usr/bin/xmms. When the "open with" dialog box appears click in the window opposite the "open with" radio button, select "other" and in "File system" browse to and select /usr/bin/xmms.)
su -Hit enter. Type your root password. Hit enter. Type:
yum -y install bmp bmp-mp3Hit enter. Wait for the installation to complete. Close the terminal. Log out and back in. Beep will be available in "Applications" > "Sound & Video". You could go to http://wholewheatradio.org/ to test your Beep mp3 installation. (The executable is /usr/bin/beep-media-player. When the "open with" dialog box appears click in the window opposite the "open with" radio button, select "other" and in "File system" browse to and select /usr/bin/beep-media-player.)
su -Hit enter. Type your root password. Hit enter. Type:
yum -y install videolan-clientHit enter. Wait for the installation to complete. Close the terminal. Log out and back in. VLC will be available in "Applications" > "Sound & Video" as "VideoLAN Client".
su -Hit enter. Type your root password. Hit enter. Type:
yum install amarokHit enter. Type "y" and hit enter. Wait for the installation to complete. Close the terminal. Log out and back in. Amarok will be available in "Applications" > "Sound & Video" as "amaroK". When you first open Amarok select your music directory and drag songs from it out onto the "playlist" panel. Then go to "Settings" > "Configure amaroK" > "Engine" and make sure that the "GStreamer Engine" is selected. You should now be able to play your MP3 and other format music playlists with Amarok.
suHit enter. Type your root password. Hit enter. Type:
uname -rmThis will output your kernel version and processor type.
rpm -ivh *.rpmHit enter. Wait for the installation to complete. Type:
rm *.rpmHit enter. Type "y" and hit enter. Type:
su -Hit enter. Type:
mkdir /mnt/windowsHit enter. Type:
/sbin/fdisk -lHit enter. This will output your HPFS/NTFS partition identifier. Type:
gedit /etc/fstabHit enter and gedit will open. Type the following in gedit:
/dev/hda1 /mnt/windows ntfs ro,defaults,umask=0222 0 0If your partition identifier is not "/dev/hda1" substitute the correct characters. (For example it might be "/dev/sda1" if you have a SATA drive.) Click the "save" icon in gedit and exit gedit. Close the terminal. Log out and log back in. Your Windows partition should now be available in the file browser under "/mnt/windows".
su -Hit enter. Type your root password. Hit enter. Type:
yum install bittorrentHit enter. Type "y" and hit enter when you see "Is this ok [y/N]:". Wait for the installation to complete. Type:
yum install bittorrent-guiHit enter. Type "y" and hit enter when you see "Is this ok [y/N]:". Wait for the installation to complete. Type:
/sbin/iptables -I INPUT -p tcp --destination-port 6881:6999 -j ACCEPTHit enter. This adds a rule to open TCP ports 6881 through 6999 in your firewall. These ports are required by Bittorent. Type:
/sbin/iptables-save > /etc/sysconfig/iptablesHit enter. This saves the rule. Type:
/sbin/iptables -LHit enter. This will output your iptables file so you can see if the rule was saved. Type:
gedit /etc/mailcapHit enter and gedit will open. Add these lines (and a carriage return) to /etc/mailcap:
# bittorrent application/x-bittorrent; /usr/bin/bittorrent %s; test=test -n "$DISPLAY"Log out and log back in. Now you can download ".torrent" files with Firefox.
su -Hit enter. Type your root password. Hit enter. Type:
/sbin/iptables -I INPUT -p tcp --destination-port 6881:6999 -j ACCEPTHit enter. This adds a rule to open TCP ports 6881 through 6999 in your firewall. These ports are required by bittorent and/or Azureus. Type:
/sbin/iptables-save > /etc/sysconfig/iptablesHit enter. This saves the rule. You must also open udp port 6881 for Azureus. Type:
/sbin/iptables -I INPUT -p udp --destination-port 6881:6881 -j ACCEPTHit enter. This adds a rule to open UDP port 6881 in your firewall. Type:
/sbin/iptables-save > /etc/sysconfig/iptablesHit enter. This saves the rule. Type:
/sbin/iptables -LHit enter. This will output your iptables file so you can see if the rule was saved. Type:
cd /home/your_user_nameHit enter. Type:
tar xvfj *.tar.bz2Hit enter. Type:
rm *.bz2Hit enter. Type "y" and hit enter. Type:
cd azureusHit enter. Type:
./azureusHit enter. Azureus will open. Configure your preferences in the dialog box presented and update the plugin if asked. (If you get an error later when auto-updating you may have to log in as root (type "su -" in a terminal, hit enter, type your root password, hit enter), change to your home directory (cd /home/your_user_name), and run azureus as root temporarily to successfully update.) When you click on a ".torrent" file in Firefox you will be presented with a dialog box. Click the radio button "open with" and click the checkbox "Do this automatically for files like this form now on", then click the "browse" button in the dialog box (or the down arrow on the left side of the text window and select "other") and browse to "home" > "azureus", double click on "azureus" and select "azureus". Click "open". Click "OK". This will allow you to download ".torrent" files from within Firefox. Note: If you choose to download your files into a hidden directory such as the /home/your_user_name/.Azureus/shares folder you will have to click on "View" > "Show hidden files" in "Places" > "Home Folder" to get to them in the file browser.
suHit enter. Type your root password. Hit enter. Type:
unzip -u LimeWireOther.zip -d /opt/Hit enter. Type:
chown -R root:root /opt/LimeWire/Hit enter. Type:
gedit /usr/bin/limewire.shHit enter. In gedit type these lines:
cd /opt/LimeWire/ ./runLime.shBe sure to enter a carriage return after these lines. Click on the "save" icon in gedit and exit gedit. In the terminal (which should still be open) type:
chmod +x /usr/bin/limewire.shHit enter. Type:
gedit /usr/share/applications/LimeWire.desktopHit enter. In gedit type these lines:
[Desktop Entry] Name=LimeWire Comment=LimeWire Exec=limewire.sh Icon=/opt/LimeWire/LimeWire.ico Terminal=false Type=Application Categories=Application;Network;Be sure to enter a carriage return after these lines. Click on the "save" icon in gedit and exit gedit. Limewire should now be available in "Applications" > "Internet" as "LimeWire".
su -Hit enter. Type your root password. Hit enter. Type "ifconfig". Hit enter. This will output the IP address of your machine (the numbers after "inet addr:") or if you are behind a router or gateway go to http://checkip.dyndns.org/ or http://myipaddress.com/ to determine the IP address that the outside world sees for your machine and use that as your IP address in the following. Type:
gedit /etc/hostsHit enter. In gedit edit your /etc/hosts file to include a line containing your IP address, your domain name, and your short domain name (the characters before the dot). Be sure to include a carriage return after this line. When you are finished your hosts file should look something like this:
# Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost 67.172.236.37 stantonfinley.org stantonfinleyClick on the "save" icon in gedit and exit gedit. Type:
gedit /etc/sysconfig/networkHit enter. In gedit edit your /etc/sysconfig/network file and replace "localhost.localdomain" with your domain name. When you are finished your network file should look something like this:
NETWORKING=yes HOSTNAME=stantonfinley.orgClick on the "save" icon in gedit and exit gedit. Type:
gedit /etc/httpd/conf/httpd.confHit enter. Go to "File" > "Save As...", type "httpd.conf.original" in the "Save As..." box and click "Save". This creates a backup of your httpd.conf file. Type:
gedit /etc/httpd/conf/httpd.confHit enter. (You are about to edit your Apache web server configuration file. Please see http://httpd.apache.org/docs/2.0/ for important information about what the configuration lines we are about to edit do.) In gedit scroll down to the "ServerAdmin" section and enter your email address instead of "root@localhost". Scroll down to the "#ServerName" section and uncomment it (take out the "#"). Then enter the registered DNS name of your web site ("whatever.com") or your server's IP address instead of "www.example.com". (If you don't know your IP address type "ifconfig" at the root prompt.) Scroll down and change "UseCanonicalName Off" to "UseCanonicalName On". Scroll down to the "Options" line and change "Options Indexes FollowSymLinks" to "Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews". Change "AllowOverride None" to "AllowOverride Options FileInfo AuthConfig Limit" in case you want to use .htaccess files in any of your web subdirectories. Change "DirectoryIndex index.html index.html.var" to "DirectoryIndex index.html index.html.var index.shtml index.cgi index.php index.phtml index.php3 index.htm home.html welcome.html". Under the "AddType application/x-compress .Z" and "AddType application/x-gzip .gz .tgz" lines add the line: "AddType application/x-httpd-php .php .phps .php3 .phtml .html .htm .shtml .fds". Uncomment the line "#AddHandler cgi-script .cgi" and add ".pl" so that it reads "AddHandler cgi-script .cgi .pl". If you wish to enable support to serve web pages from user's home directories as well comment (add a "#" in front of) "UserDir disable" so that it reads "#UserDir disable" and uncomment "#UserDir public_html" so that it reads "UserDir public_html". Then uncomment and edit the control access stanza for user directories below it so that it looks something like this:
<Directory /home/*/public_html> AllowOverride Options FileInfo AuthConfig Limit Options Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews <Limit GET POST OPTIONS> Order allow,deny Allow from all </Limit> <LimitExcept GET POST OPTIONS> Order deny,allow Allow from all </LimitExcept> </Directory>Click on the "save" icon in gedit to save your httpd.conf file and exit gedit. Close the terminal.
mkdir public_htmlHit enter. Type:
chmod -R 755 public_htmlHit enter. Close the terminal.
su -Hit enter. Type your root password. Hit enter. Type:
cd /homeHit enter. Type:
chmod 711 your_user_nameHit enter. Type:
chcon -R -t httpd_user_content_t /home/your_user_name/public_html/(Use the name of the user's home directory you are working with in place of "your_user_name".) Hit enter. Close the terminal.
su -Hit enter. Type:
gedit /etc/vsftpd/vsftpd.confHit enter. In gedit change "anonymous_enable=YES" to "anonymous_enable=NO". Also add a line that reads "chroot_local_user=YES" just under the line that reads "#chroot_list_file=/etc/vsftpd/chroot_list". Also uncomment (remove the "#" from) the ascii_ lines so that they read "ascii_upload_enable=YES" and "ascii_download_enable=YES". Click on the "save" icon in gedit to save your vsftpd.conf file and exit gedit. Close the terminal.
su -Hit enter. Type your root password. Hit enter. Type:
gedit /var/www/html/phpinfo.phpHit enter and gedit will open. In gedit type:
<?php phpinfo();?>Click the "save" icon in gedit and close gedit. While still in the root terminal type:
gedit /var/www/html/printenv.plHit enter and gedit will open. In gedit type:
#!/usr/bin/perl ## ## printenv -- demo CGI program which just prints its environment ## print "Content-type: text/plain\n\n"; foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\\n|g; $val =~ s|"|\\"|g; print "${var}=\"${val}\"\n"; }Click the "save" icon in gedit and close gedit. Type:
chmod 755 /var/www/html/printenv.plHit enter. Then type:
chmod 755 /var/www/html/phpinfo.phpHit enter. Now when you open these files from your web server (http://whatever.com/phpinfo.php and http://whatever.com/printenv.pl) you will be able to prove the functionality of your PHP and Perl installations. (In order to allow cgi scripts to execute outside of the cgi-bin directory configure your httpd.conf as described in the web server section above.)
su -Hit enter. Type your root password. Hit enter. Type:
gedit /etc/my.cnfHit enter. In the mysqld section of my.cnf add the line:
skip-innodbYour my.cnf should now look something like this:
[mysqld] datadir=/var/lib/mysql socket=/var/lib/mysql/mysql.sock # Default to using old password format for compatibility with mysql 3.x # clients (those using the mysqlclient10 compatibility package). old_passwords=1 skip-innodb [mysql.server] user=mysql basedir=/var/lib [mysqld_safe] err-log=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pidClick the "save" icon in gedit and close gedit. While still in the root terminal type:
mysql -u rootHit enter. You will see the mysql> query prompt. Type:
select user, host, password, select_priv, update_priv, delete_priv, insert_priv from mysql.user;Hit enter. You will see something like this:
+------+------------------------+----------+-------------+-------------+-------------+-------------+ | user | host | password | select_priv | update_priv | delete_priv | insert_priv | +------+------------------------+----------+-------------+-------------+-------------+-------------+ | root | localhost | | Y | Y | Y | Y | | root | stantonfinley.org | | Y | Y | Y | Y | | | localhost | | N | N | N | N | | | stantonfinley.org | | N | N | N | N | +------+------------------------+----------+-------------+-------------+-------------+-------------+ 4 rows in set (0.17 sec) mysql>Type:
set password for 'root'@'localhost' = password ('newpassword');where "newpassword" is the password that you want to use for the root MySQL super user. Hit enter. Type:
set password for 'root'@'host' = password ('newpassword');where "host" is the name of your host as reported in the "host" column above and "newpassword" is the password that you want to use for the root MySQL super user. Hit enter. Type:
select user, host, password, select_priv, update_priv, delete_priv, insert_priv from mysql.user;Hit enter. You will see something like this with your password hash-encrypted in the "password" column:
+------+------------------------+------------------+-------------+-------------+-------------+-------------+ | user | host | password | select_priv | update_priv | delete_priv | insert_priv | +------+------------------------+------------------+-------------+-------------+-------------+-------------+ | root | localhost | 1e36745e3c0f99b0 | Y | Y | Y | Y | | root | stantonfinley.org | 1e36745e3c0f99b0 | Y | Y | Y | Y | | | localhost | | N | N | N | N | | | stantonfinley.org | | N | N | N | N | +------+------------------------+------------------+-------------+-------------+-------------+-------------+ 4 rows in set (0.00 sec) mysql>Type:
exitClose the terminal. Reboot your machine. Open a terminal. Type:
su -Hit enter. Type your root password. Hit enter. Type:
mysql -u root -pHit enter. MySQL should ask for your MySQL super user password. Type it in. Hit enter. Type:
exitYou have successfully set up MySQL.
suHit enter. Type your root password. Hit enter. Type:
mv *.tar.bz2 /var/www/htmlHit enter. Type:
cd /var/www/htmlHit enter. Type:
bzip2 -dc *.tar.bz2 | tar -xvf -Hit enter. Type:
mv phpMyAdmin-2.7.0-pl2 phpmyadminHit enter. Close the terminal. Open the terminal again. Type:
su -Hit enter. Type:
gedit /var/www/html/phpmyadmin/config.default.phpHit enter and gedit will open. In /var/www/html/phpmyadmin/config.default.php change "$cfg['PmaAbsoluteUri'] = '';" to "$cfg['PmaAbsoluteUri'] = ' http://whatever.com/phpmyadmin/';", change "$cfg['blowfish_secret'] = ''; to "$cfg['blowfish_secret'] = 'passphrase';" where "passphrase" is some arbitrary string of characters that the blowfish algorithm will use to encrypt your password when using cookie type authentication. Under "Server(s) configuration" change "$cfg['Servers'][$i]['auth_type'] = 'config';" to "$cfg['Servers'][$i]['auth_type'] = 'cookie';". In gedit click on "File" > "Save as.." and in the "Name" box change the name of the file from "config.default.php" to "config.inc.php". Then hit the "save" button and close gedit. As root do a "yum -y install php-mbstring". Close the terminal. Reboot your machine. Open http://whatever.com/phpmyadmin/ in Firefox (where "whatever.com" is your web site). Type "root" in the "Username:" box and your MySQL super user password in the "Password:" box. Click the "Login" button. You should see the " Welcome to phpMyAdmin" web page. Open a terminal. Type:
su -Hit enter. Type your root password. Hit enter. Type:
mysql -u root -pType in your MySQL super user password. Hit enter. For MySQL versions 4.0.2 and above (FC4) type:
GRANT USAGE ON mysql.* TO 'pma'@'localhost' IDENTIFIED BY 'pmapassword'; GRANT SELECT ( Host, User, Select_priv, Insert_priv, Update_priv, Delete_priv, Create_priv, Drop_priv, Reload_priv, Shutdown_priv, Process_priv, File_priv, Grant_priv, References_priv, Index_priv, Alter_priv, Show_db_priv, Super_priv, Create_tmp_table_priv, Lock_tables_priv, Execute_priv, Repl_slave_priv, Repl_client_priv ) ON mysql.user TO 'pma'@'localhost'; GRANT SELECT ON mysql.db TO 'pma'@'localhost'; GRANT SELECT ON mysql.host TO 'pma'@'localhost'; GRANT SELECT (Host, Db, User, Table_name, Table_priv, Column_priv) ON mysql.tables_priv TO 'pma'@'localhost'; GRANT SELECT, INSERT, UPDATE, DELETE ON phpmyadmin.* TO 'pma'@'localhost';where "pmapassword" is the password for the pma user that you select for the special "controluser" that has only the SELECT privilege on the mysql.user (all columns except "Password"), mysql.db (all columns), mysql.host (all columns) and mysql.tables_priv (all columns except "Grantor" & "Timestamp") tables. Hit enter. Hit enter. For MySQL versions 4.1.2 or later (FC4) open Firefox, go to http://whatever.org/phpmyadmin/scripts/create_tables_mysql_4_1_2+.sql. (Substitute "whatever.org" for your web site registered DNS name or IP address.) Click "edit" > "select all", click "edit" > "copy", go back to the terminal and click "edit" > "paste". Hit enter. The entire query should be executed at the "mysql>" prompt. If the entire query did not execute and put you back at the "mysql>" prompt carefully examine where it stopped compared to the text in "create_tables_mysql_4_1_2+.sql" and then copy the exact characters to the end of the file that need to be finished, paste them in the terminal at the location where the query stopped and hit enter again. When the query finishes type "exit" at the mysql> prompt. Type:
gedit /var/www/html/phpmyadmin/config.inc.phpHit enter and gedit will open. In /var/www/html/phpmyadmin/config.inc.php change "$cfg['Servers'][$i]['controluser'] = '';" to "$cfg['Servers'][$i]['controluser'] = 'pma';", change "$cfg['Servers'][$i]['controlpass'] = '';" to "$cfg['Servers'][$i]['controlpass'] = 'pmapassword';" where "pmapassword" is the password for the pma user that you selected earlier, change "$cfg['Servers'][$i]['pmadb'] = '';" to "$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';", change "$cfg['Servers'][$i]['bookmarktable'] = '';" to "$cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';", change "$cfg['Servers'][$i]['relation'] = '';" to "$cfg['Servers'][$i]['relation'] = 'pma_relation';", change "$cfg['Servers'][$i]['table_info'] = '';" to "$cfg['Servers'][$i]['table_info'] = 'pma_table_info';", change "$cfg['Servers'][$i]['table_coords'] = '';" to "$cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';", change "$cfg['Servers'][$i]['pdf_pages'] = '';" to "$cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';", change "$cfg['Servers'][$i]['column_info'] = '';" to "$cfg['Servers'][$i]['column_info'] = 'pma_column_info';", change "$cfg['Servers'][$i]['history'] = '';" to "$cfg['Servers'][$i]['history'] = 'pma_history';". Click on the "save" icon in gedit and close gedit. Close the terminal. Open Firefox and go to http://whatever.com/phpmyadmin/ where "whatever.com" is your web site registered DNS name or IP address. Log into phpMyAdmin as root. Click on the down arrow in the "Database:" selection dialog box in the left column. You should see the "mysql", "phpmyadmin", and "test" databases listed. You may delete ("drop") the "test" database if you wish. You have now successfully configured phpMyAdmin.