<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?>

<feed version="0.3" xml:lang="en-US" xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918" rel="service.post" title="Linux Scratchpad" type="application/atom+xml"/>
<link href="http://www.blogger.com/atom/6606918" rel="service.feed" title="Linux Scratchpad" type="application/atom+xml"/>
<title mode="escaped" type="text/html">Linux Scratchpad</title>
<tagline mode="escaped" type="text/html">This is a scratchpad for nuggets of information that I've found out whilst setting up and running my Linux Servers.

If you've found yourself on this page then I hope it's helpful.  If it's not then you can always email me and I may be able to help.

For the record I'm running 2 servers, a firewall based on Fedora Core 1 and a File Server based on Fedora Core 3.</tagline>
<link href="http://bigpinkmedia.co.uk/linux-scratchpad.html" rel="alternate" title="Linux Scratchpad" type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918</id>
<modified>2005-04-02T13:09:39Z</modified>
<generator url="http://www.blogger.com/" version="5.15">Blogger</generator>
<info mode="xml" type="text/html">
<div xmlns="http://www.w3.org/1999/xhtml">This is an Atom formatted XML site feed. It is intended to be viewed in a Newsreader or syndicated to another site. Please visit the <a href="http://help.blogger.com/bin/answer.py?answer=697">Blogger Help</a> for more info.</div>
</info>
<entry xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918/111244737911188922" rel="service.edit" title="Firefox on Fedora Core 3" type="application/atom+xml"/>
<author>
<name>Nigella</name>
</author>
<issued>2005-04-02T13:02:00+00:00</issued>
<modified>2005-04-02T13:09:39Z</modified>
<created>2005-04-02T13:09:39Z</created>
<link href="http://bigpinkmedia.co.uk/2005/04/firefox-on-fedora-core-3.html" rel="alternate" title="Firefox on Fedora Core 3" type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918.post-111244737911188922</id>
<title mode="escaped" type="text/html">Firefox on Fedora Core 3</title>
<content type="application/xhtml+xml" xml:base="http://bigpinkmedia.co.uk/linux-scratchpad.html" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">I upgraded my file server to <a href="http://fedora.redhat.com/">Fedora Core 3</a> a couple of weeks ago.  Today I wanted to download some software, so I started up <a href="http://www.getfirefox.com">firefox</a> only for it to complain about not finding libXP.so.6<br/>
<br/>A quick goolge around turned up <a href="http://www.fedoraforum.org/forum/showthread.php?t=27306">this thread</a>, which explains that this lib is deprecated in FC3, but is part of the xorg-x11-deprecated-libs package, which can be found <a href="http://download.fedora.redhat.com/pub/fedora/linux/core/development/i386/Fedora/RPMS/xorg-x11-deprecated-libs-6.8.2-13.i386.rpm">here</a>.</div>
</content>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918/111200249376357628" rel="service.edit" title="Feed Location Moved" type="application/atom+xml"/>
<author>
<name>Nigella</name>
</author>
<issued>2005-03-28T09:33:00+00:00</issued>
<modified>2005-03-28T09:37:13Z</modified>
<created>2005-03-28T09:34:53Z</created>
<link href="http://bigpinkmedia.co.uk/2005/03/feed-location-moved.html" rel="alternate" title="Feed Location Moved" type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918.post-111200249376357628</id>
<title mode="escaped" type="text/html">Feed Location Moved</title>
<content type="application/xhtml+xml" xml:base="http://bigpinkmedia.co.uk/linux-scratchpad.html" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">I've moved the location of the feed for this blog so that it doesn't clash with <a href="http://bigpinkmedia.co.uk/muso.html">my other blog</a>.<br/>
<br/>The new feed location is <a href="http://bigpinkmedia.co.uk/linux.xml">http://bigpinkmedia.co.uk/linux.xml</a>
</div>
</content>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918/110708866213834515" rel="service.edit" title="Setting Up a Samba Share&#10;&#10;I needed to set up Sam..." type="application/atom+xml"/>
<author>
<name>Nigella</name>
</author>
<issued>2005-01-30T12:26:42+00:00</issued>
<modified>2005-01-30T12:37:42Z</modified>
<created>2005-01-30T12:37:42Z</created>
<link href="http://bigpinkmedia.co.uk/2005/01/setting-up-samba-share-i-needed-to-set.html" rel="alternate" title="Setting Up a Samba Share&#10;&#10;I needed to set up Sam..." type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918.post-110708866213834515</id>
<title mode="escaped" type="text/html">Setting Up a Samba Share&#13;
&#13;
I needed to set up Sam...</title>
<content type="application/xhtml+xml" xml:base="http://bigpinkmedia.co.uk/linux-scratchpad.html" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">
<strong>Setting Up a Samba Share</strong>
<br/>
<br/>I needed to set up Samba access from my firewall machine to the main server so that I could access my MP3s from SlimServer, so here's what I did:
<br/>
<br/>1/ set up a new Linux user on the file server with minimal privilages called "share" (with a nice complex password).
<br/>2/ set up the new user for Samba with the same user name and password
<br/>3/ On the firewall machine edit create a file in /etc called smbmnt.pwd containing:
<br/>Username = share
<br/>Password = complex password
<br/>4/ set file permissions so that only root can read this file
<br/>5/ create the directory /mnt/music
<br/>6/ edit the /etc/fstab file to add an entry for the new samba share
<br/>  //FileServer/mp3s    /mnt/music  smbfs  credentials=/etc/smbmnt.pwd 0 0
<br/>7/ mount the new filesystem - if all goes well it should appear under /mnt/music
<br/>
<br/>N.B. The mp3s share was already set up for windows clients, so I didn't need to set it up </div>
</content>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918/110564722814939435" rel="service.edit" title="lame on fedora&#10;&#10;I needed to install lame to enco..." type="application/atom+xml"/>
<author>
<name>Nigella</name>
</author>
<issued>2005-01-13T21:09:48+00:00</issued>
<modified>2005-01-13T20:13:48Z</modified>
<created>2005-01-13T20:13:48Z</created>
<link href="http://bigpinkmedia.co.uk/2005/01/lame-on-fedora-i-needed-to-install.html" rel="alternate" title="lame on fedora&#10;&#10;I needed to install lame to enco..." type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918.post-110564722814939435</id>
<title mode="escaped" type="text/html">lame on fedora&#13;
&#13;
I needed to install lame to enco...</title>
<content mode="escaped" type="text/html" xml:base="http://bigpinkmedia.co.uk/linux-scratchpad.html" xml:space="preserve">&lt;strong&gt;lame on fedora&lt;/strong&gt;&#13;&lt;br /&gt;&#13;&lt;br /&gt;I needed to install lame to encode MP3s but found that it wasn't in the standard fc1 packages.  I found &lt;a href="http://openskills.info/view/boxdetail.php?IDbox=251&amp;boxtype=path"&gt;this page&lt;/a&gt; and added the following to the /etc/yum.conf file:&#13;&lt;br /&gt;&#13;&lt;br /&gt;[livna-stable]&#13;&lt;br /&gt;name=Livna.org - Fedora Compatible Packages (stable)&#13;&lt;br /&gt;baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable&#13;&lt;br /&gt;  http://livna.cat.pdx.edu/fedora/$releasever/$basearch/yum/stable&#13;&lt;br /&gt;#gpgcheck=1&#13;&lt;br /&gt;## GPG Key run: rpm --import http://rpm.livna.org/RPM-LIVNA-GPG-KEY&#13;&lt;br /&gt;&#13;&lt;br /&gt;and running yum -install lame did the trick.</content>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918/108109278437637013" rel="service.edit" title="DHCP Traffic&#10;&#10;My log files are showing that I'm ..." type="application/atom+xml"/>
<author>
<name>Nigella</name>
</author>
<issued>2004-04-04T15:33:04+00:00</issued>
<modified>2004-04-05T18:22:46Z</modified>
<created>2004-04-04T15:36:47Z</created>
<link href="http://bigpinkmedia.co.uk/2004/04/dhcp-traffic-my-log-files-are-showing.html" rel="alternate" title="DHCP Traffic&#10;&#10;My log files are showing that I'm ..." type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918.post-108109278437637013</id>
<title mode="escaped" type="text/html">DHCP Traffic&#13;
&#13;
My log files are showing that I'm ...</title>
<content type="application/xhtml+xml" xml:base="http://bigpinkmedia.co.uk/linux-scratchpad.html" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">
<strong>DHCP Traffic</strong>
<br/>
<br/>My log files are showing that I'm blocking a lot of DHCP traffic with my cable provider.  I found some useful info on this page:
<br/>
<a href="http://www.robertgraham.com/pubs/firewall-seen.html">http://www.robertgraham.com/pubs/firewall-seen.html</a> on what each of the ports does.</div>
</content>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918/107925895776760068" rel="service.edit" title="Lots of traffic on 10.x Reserved IP Address&#10;&#10;I'm..." type="application/atom+xml"/>
<author>
<name>Nigella</name>
</author>
<issued>2004-03-14T10:09:17+00:00</issued>
<modified>2004-03-14T10:13:40Z</modified>
<created>2004-03-14T10:12:31Z</created>
<link href="http://bigpinkmedia.co.uk/2004/03/lots-of-traffic-on-10.html" rel="alternate" title="Lots of traffic on 10.x Reserved IP Address&#10;&#10;I'm..." type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918.post-107925895776760068</id>
<title mode="escaped" type="text/html">Lots of traffic on 10.x Reserved IP Address&#13;
&#13;
I'm...</title>
<content type="application/xhtml+xml" xml:base="http://bigpinkmedia.co.uk/linux-scratchpad.html" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">
<strong>Lots of traffic on 10.x Reserved IP Address</strong>
<br/>
<br/>I'm seeing a lot of traffic on the 10.x reserved IP range coming in from my cable modem this morning.  I thought it might be something I've changed (currently upgrading firewall from Redhat 9 to Fedora) .  A quick google found <a href="http://www.securityfocus.com/archive/75/357289/2004-03-10/2004-03-16/0">this post on securityfocus.com</a>.  I'm going to tweak the firewall rules to drop the traffic from that IP rather than log it.</div>
</content>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918/107925628132759066" rel="service.edit" title="Differences between Redhat and Fedora&#10;&#10;I've just..." type="application/atom+xml"/>
<author>
<name>Nigella</name>
</author>
<issued>2004-03-14T09:24:41+00:00</issued>
<modified>2004-03-14T09:48:19Z</modified>
<created>2004-03-14T09:27:54Z</created>
<link href="http://bigpinkmedia.co.uk/2004/03/differences-between-redhat-and-fedora.html" rel="alternate" title="Differences between Redhat and Fedora&#10;&#10;I've just..." type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918.post-107925628132759066</id>
<title mode="escaped" type="text/html">Differences between Redhat and Fedora&#13;
&#13;
I've just...</title>
<content type="application/xhtml+xml" xml:base="http://bigpinkmedia.co.uk/linux-scratchpad.html" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">
<strong>Differences between Redhat and Fedora</strong>
<br/>
<br/>I've just found the following differences, between my Redhat and Fedora machines.  I'm sure there are more, which I'll post as I find them.
<br/>
<br/>1/ Network config files (ifcfg-eth0, ifcfg-eth1) have moved.  On RH they can be found under /etc/sysconfig/networking/devices but on Fedora htey are under /etc/sysconfig/metworking/network-scripts.
<br/>
<br/>This is a bit confusing as it now mixes scripts with config data. I think I prefered the old (RH) way.
<br/>
<br/>2/ DHCP Information about the process id and leases for DHCP used to be stored in /etc/dhcpcd/dhcpcd-eth0.pid and /etc/dhcpcd/dhcpcd0-eth0.info  
<br/>
<br/>These files ave been replaced in Fedora with /var/run/dhclient-eth0.pid and /var/lib/dhcp/dhclient-eth0.leases.
<br/>
<br/>This change makes a lot of sense as the data is'nt really configuration related (which the /etc directory is used for) but is specific to the running machine.</div>
</content>
</entry>
<entry xmlns="http://purl.org/atom/ns#">
<link href="http://www.blogger.com/atom/6606918/107921461796829405" rel="service.edit" title="Creating a Print Server using Samba&#10;&#10;I'm using s..." type="application/atom+xml"/>
<author>
<name>Nigella</name>
</author>
<issued>2004-03-13T21:50:17+00:00</issued>
<modified>2004-03-14T09:06:19Z</modified>
<created>2004-03-13T21:53:30Z</created>
<link href="http://bigpinkmedia.co.uk/2004/03/creating-print-server-using-samba-im.html" rel="alternate" title="Creating a Print Server using Samba&#10;&#10;I'm using s..." type="text/html"/>
<id>tag:blogger.com,1999:blog-6606918.post-107921461796829405</id>
<title mode="escaped" type="text/html">Creating a Print Server using Samba&#13;
&#13;
I'm using s...</title>
<content type="application/xhtml+xml" xml:base="http://bigpinkmedia.co.uk/linux-scratchpad.html" xml:space="preserve">
<div xmlns="http://www.w3.org/1999/xhtml">
<strong>Creating a Print Server using Samba</strong>
<br/>
<br/>I'm using samba to allow me to hook a printer up to one of my machines and then print form  my Windows laptop.  These are the steps I took to connect my HP5550 using USB:
<br/>
<br/>1/ Connect the printer and use the Red Hat Printer Configuration GUI to set up the printer and print a test page.  So far so good.
<br/>
<br/>2/  Edit the samba configuration file (/etc/samba/smb.conf).   
<br/>
<br/>Make sure the workgroup and server string are set to something sensible.  I'm using the default "workgroup" and the a string that relates to the name of the server "Dionysus Share".
<br/>
<br/>Edit the hosts allowed section to allow everything on my subnet (192.168.0) 
<br/>
<br/>Uncomment the printer configuration, to load the printer configuration:
<br/>      printcap name = /etc/printcap
<br/>      load printers = yes
<br/>
<br/>Dont worry about specifying the printer system - samb will use CUPS by default
<br/>
<br/>Towards the bottom of the file uncomment the printers section and modify it so that it looks like this:
<br/>[printers]
<br/>   comment = All Printers
<br/>   path = /var/spool/samba/lpd/
<br/>   browseable = no
<br/># Set public = yes to allow user 'guest account' to print
<br/>   guest ok = yes
<br/>   public = yes
<br/>   writable = no
<br/>   printable = yes
<br/>   create mode = 0700
<br/>   use client driver = yes
<br/>
<br/>The important bits here are:
<br/>   path = /var/spool/samba/lpd/     - this tells samba where to write the temporary file created for printing.  This directory needs to exist and needs to be writable  (by all users ?!?!)
<br/>
<br/>   use client driver = yes     - this tells samba that clients using the service will have a print driver installed (so they don't have to download it from the server).  This is what makes the queue viewable from Windows machines.
<br/>
<br/>3/  Restart Samba using /etc/init.d/smb restart
<br/>
<br/>4/ On the client (i.e. Windows machine), browse the network and find the print server (in this case it's called Dionysus).  Drilling down on the server should show the printer (with the name it was given in the CUPS conffiguration of step 1).
<br/>
<br/>5/ Double click on the printer.  If the drivers are set up correctly on the client the print queue should be displayed; if they are'nt, then Windows will prompt for the driver to be installed.
<br/>
<br/>6/ Attempt to print a test page (In Windows, open the print queue, select the Printer menu and the Printing Preferences option. Click the  "Print Test Page" button).
<br/>
<br/>7/ If the test page does'nt print then check the samba log for the client machine in /var/log/samba for clues.  The following message:
<br/>                  lpr: unable to print file: client-error-document-format-not-supported
<br/>had me foxed for a while.  I could see that the file was making its way via the /var/spool/samba/lpr directory becasue the timestamp on the directory would change. A google search on the error message turned up the following changes that must be made to the CUPS configuration file /etc/cups/mime.convs  to enable the raw filter (by uncommenting the line):  
<br/>
<br/>application/octet-stream        application/vnd.cups-raw        0       -
<br/>
<br/>Also, edit the mime.types file to un comment the line:
<br/>
<br/>application/octet-stream     
<br/>
<br/>8/  restart CUPS using /etc/init.d/cups restart
<br/>
<br/>9/ Repeat step 6 and the test page *should* print.
<br/>
<br/>
</div>
</content>
</entry>
</feed>

