Archive

Archive for the ‘Linux’ Category

Realtek RTL-8110SC is a pile of shit but here’s some links to drivers

Sourced from here:
http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=4&Level=5&Conn=4&DownTypeID=3&GetDown=false&Downloads=true

Realtek Driver – for Gigabit Ethernet chip – RTL8110SC(L)

NOTE: This driver below causes kernel panic on Ubuntu 11.04 with kernel 2.6.38-8-generic and 2.6.38-8-generic-pae when installed on a Jetway mini-itx 7F4K1G5-PB rev:3.1 motherboard. It compiles fine but when loaded into kernel with modprobe cause kernel panic after a few seconds – probably during the auto negiotiation stage.

Realtek RTL-8110SC Gigabit Ethernet Rev 10
Subsystem: Jetway Device: 10ec

I could only get the driver “r8169 Gigabit Ethernet 2.3LK-NAPI” that comes with Ubuntu 11.04 to work with this chip in 10Mb Full Duplex mode. All other modes resulted in 40-60% packet loss or total failure.

I used mii-tool --force=10BaseT-FD eth0 to force 10Mb Full Duplex. The Left light is out on NIC when in 10Mb mode and the right LED flashes on activity.

LINUX driver for kernel 2.6.x and 2.4.X (support x86 and x64) – “support” is obviously a loose word here
Version: 6.014.00
Date: 2010/9/10
ftp://WebUser:K4d5wHY@152.104.238.19/cn/nic/r8169-6.014.00.tar.bz2
ftp://WebUser:K4d5wHY@208.70.202.219/cn/nic/r8169-6.014.00.tar.bz2
ftp://WebUser:K4d5wHY@209.222.7.36/cn/nic/r8169-6.013.00.tar.bz2

My next attempt is to install Windows XP on the box and run Linux in VirtualBox. Hopefully the drivers for Windows are less shit. I don’t expect that these chips support “Large Send Offload” so will be disabling that in Advanced Settings.

WinXP and WinServer 2003 Driver
Version: 5.719
Date: 2011/5/20
ftp://WebUser:K4d5wHY@209.222.7.36/cn/nic/PCI_Driver_XP_5719_05202011.zip
ftp://WebUser:K4d5wHY@208.70.202.219/cn/nic/PCI_Driver_XP_5719_05202011.zip
ftp://WebUser:K4d5wHY@152.104.238.19/cn/nic/PCI_Driver_XP_5719_05202011.zip

Win7 Driver
Version: 7.043
Date: 2011/5/20
ftp://WebUser:K4d5wHY@209.222.7.36/cn/nic/Driver_Win7_7043_05202011.zip
ftp://WebUser:K4d5wHY@208.70.202.219/cn/nic/Driver_Win7_7043_05202011.zip
ftp://WebUser:K4d5wHY@152.104.238.19/cn/nic/Driver_Win7_7043_05202011.zip

Vista and WinServer 2008 Driver
Version: 6.247
Date: 2011/3/21
ftp://WebUser:K4d5wHY@209.222.7.36/cn/nic/Driver_Vista_6247_03212011.zip
ftp://WebUser:K4d5wHY@208.70.202.219/cn/nic/Driver_Vista_6247_03212011.zip
ftp://WebUser:K4d5wHY@152.104.238.19/cn/nic/Driver_Vista_6247_03212011.zip

Auto-negotiate 1000Mbps

Found this over here in the comments so thought I’d share this tip here:

There is way to “fix” the speed on a gig-ethernet NIC while complying with the standard, based on the last paragraph of the article mentioned above by Shawn (http://standards.ieee.org/reading/ieee/interp/IEEE802.3af-2003interp-6.pdf):

# ethtool -s eth0 speed 1000 duplex full autoneg on

The NIC keeps the auto-negotiation but only advertises 1000mbps. It works fine.

Categories: Linux

Linux: creating a cron entry

Launches your default editor – most likely vi – and edits your crontab file which ends up in /var/spool/cron/username
crontab -e

I always add this as my first line as I can never remember which order they go in.
#min hour daymo month daywk cmd

And now a sample cron entry which will run awstats every day at 6:05am
05 06 * * * /usr/local/awstats/wwwroot/cgi-bin/awstats.pl -update -config=www.website.com

Use the following to list your crontab file
crontab -l

Categories: Cron, Linux Tags: , ,

Linux: Creating sendmail.cf using m4

After modifying the sendmail.mc on a Linux mail server your need to recreate the sendmail.cf file.
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf


Provided that /etc/mail/sendmail.mc has the following lines at the top:

dnl ### Include default Sendmail cf file
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl


Other wise you need to include it on the command line:

m4 /usr/share/sendmail-cf/m4/cf.m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf


Now if you don’t get any errors from the previous command issue the following to restart sendmail:

/etc/init.d/sendmail restart

Categories: Linux, Sendmail Tags: , , ,