Posts Tagged ‘Linux’

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

Sourced from here:

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

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

Win7 Driver
Version: 7.043
Date: 2011/5/20

Vista and WinServer 2008 Driver
Version: 6.247
Date: 2011/3/21


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/ -update

Use the following to list your crontab file
crontab -l

Categories: Cron, Linux Tags: , ,

Linux: Creating using m4

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

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

dnl ### Include default Sendmail cf file

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

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

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: , , ,