Realtek RTL8101E NIC dropped frames on Hardy Heron

I’m having a real problem with the built in network card on my home linux machine (currently running Ubuntu 8.04 LTS server or affectionately named Hardy Heron).

There’s a couple of proviso’s attached to this howto, the first one being that if Ubuntu release a new Kernel as an update, you may have to re-run this fix, or if the old Realtec driver (r8169) gets fixed in the new Kernel , you may want to unblacklist that module and run with that.

Current Kernel version:

The symtoms are:

  • Very bad download and upload speeds
  • Huge amounts of dropped RX packets

Output from ifconfig below:

Continue reading

BUPA great Edinburgh Run 2009

I’ve just finished the BUPA Great Edinburgh Run 10k in 42 minutes. I was 34th in my age group and 344th out of 10,000. Quite happy with the time, the only thing that I didn’t like about race was that I didn’t like where the start/finish was located. Why couldn’t they have had the finish in the Meadows. Just too many people finishing in a smaller space.

Photos below:

Setting up Samba on Ubuntu LTS 8.04 Hardy Heron

Installing Samba

The first thing to do if you havn’t done so already, is install samba and the associate tools. To install samba on Ubuntu Hardy Heron (I’m assuming of course that your linux box is connected to the internet). Type the following in a terminal.

To mount Windows filesystems using SMB, you will also need to install smbfs, to do this enter the command:

Creating Samba User

There are two steps to creating a user. First we’ll run the smbpasswd utility to create a samba password for the user.

Next, we’ll add that username to the smbusers file.

Add in the following line, substituting the username with the one you want to give access to. The format is < ubuntuusename >= “< samba username >”. You can use a different samba user name to map to an ubuntu account, but that’s not really necessary right now.

Now you can create samba shares and give access to the users that you listed here.

Creating Samba Shares

I want to create a shares that can be accessed by everyone on my network called “Shared”, of course you will have to login with “guest” (no password required) to get access. Also everyone who has a samba account can get access to there own files (See above “Creating Samba Users”). Remember that everytime you change your smb.conf you will need to restart samba on your server, to do this you will need to type the following at the terminal.

First of all, create a copy of the original samba config file and call it smb.conf.old. It’s always handy to have a copy of the original file just in case it all goes a bit wrong.

You need to edit my smb.conf file, to do this, type the following in a terminal.

Remember that everytime you change your smb.conf file, you will need to restart samba. You do this by typing the following in a terminal window.

New 11/7/2011 after running samba for a while with ssh for remote login, I noticed a few strange login attempts over ssh in my /var/log/auth.log see this post. Now, I remove winbind on all my internet facing workstations (one’s running ssh or apache or  mail etc…)
Continue reading