Koozali.org: home of the SME Server
Obsolete Releases => SME 7.x Contribs => Topic started by: tropicalview on August 01, 2007, 04:54:49 AM
-
Does someone know how to install a linux driver for a usb network adapter
I have 2 different types:
Linksys USB100m
or this one:
http://cgi.ebay.com/USB-Ethernet-10-100-LAN-Network-Adapter-NIC-RJ45-CFRA_W0QQitemZ290142898549QQihZ019QQcategoryZ11182QQssPageNameZWDVWQQrdZ1QQcmdZViewItem
Kind regards,
Now i'm sure what adapter it is:
ADMtek, Inc. ADM8511 Pegasus II Ethernet
this information is found via phpSysInfo-2.5.2_rc2
-
Dear all.
after reading this:
http://www.linuxforums.org/forum/redhat-fedora-linux-help/79369-problem-adm8511-pegasus-ii-usb-ethernet-converter-fc5.html
i tried this:
[root@studentensvr ~]# lsmod | grep pegasus
[root@studentensvr ~]# modprobe pegasus
[root@studentensvr ~]# lsmod | grep pegasus
pegasus 26957 0
[root@studentensvr ~]#
so it seems the device is working.
Does anybody knows now how i can make this lsmod command permenent so even after a reconfigure the device will be there?
and does anybody know how i can register that device to my ETH3
-
Does anybody knows now how i can make this lsmod command permenent so even after a reconfigure the device will be there?
and does anybody know how i can register that device to my ETH3
I think you mean eth2 (the defaults are eth0 & eth1).
You could create a custom template to allow you to set this via the config database.mkdir -p /etc/e-smith/templates-custom/etc/modprobe.conf
cd /etc/e-smith/templates-custom/etc/modprobe.conf
cp /etc/e-smith/templates/etc/modprobe.conf/10EthernetDrivers .
nano 10EthernetDrivers (or pico or mcedit)
Change the code as below (note: the eth[012] on the first code line{
@lines = grep { !/^\s*alias\s*eth[012]/ } @lines;
if (defined $EthernetDriver1 && $EthernetDriver1 ne "unknown")
{
push @lines, "alias eth0 ${EthernetDriver1}";
}
if (defined $EthernetDriver2 && $EthernetDriver2 ne "unknown")
{
push @lines, "alias eth1 ${EthernetDriver2}";
}
if (defined $EthernetDriver3 && $EthernetDriver3 ne "unknown")
{
push @lines, "alias eth2 ${EthernetDriver3}";
}
"";
}
Then you need to set the config db variable and expand the modprobe.conf fileconfig set EthernetDriver3 pegasus
expand-template /etc/modprobe.conf
All subsequent reboots should set the diver for eth2 to pegasus (or whatever you change it to in the config database).
Beware though, I haven't tested this...... Try it on a test box first.
Good Luck
Trevor B
-
dear TrevorB
Due to the device itself worked already i started a new topic now to activate it.
THere i got a reply from "mrjhb3" (http://forums.contribs.org/index.php?topic=38015.0)
That reply worked fine, i tried it and i have connection right now with this device.
I asked him about making this perminent in the templates.
anyway thank you very much for your tips.
Kind regards,
Hendrik
-
Dear Tailor or someone else who know
in the instructions above i got this error:
[root@studentensrv etc]# cd /etc/e-smith/templates-custom/etc/modprobe.conf
[root@studentensrv modprobe.conf]# expand-template /etc/modprobe.conf
WARNING in /etc/e-smith/templates-custom//etc/modprobe.conf/10EthernetDrivers.save: ERROR: Cannot process template /etc/e-smith/templates-custom//etc/modprobe.conf/10EthernetDrivers.save: End of data inside program text that began at line 1
at /sbin/e-smith/expand-template line 45
[root@studentensrv modprobe.conf]# expand-template etc/modprobe.conf
WARNING in /etc/e-smith/templates-custom/etc/modprobe.conf/10EthernetDrivers.save: ERROR: Cannot process template /etc/e-smith/templates-custom/etc/modprobe.conf/10EthernetDrivers.save: End of data inside program text that began at line 1
at /sbin/e-smith/expand-template line 45
[root@studentensrv modprobe.conf]#
-
Dear Taylor.
I'm very sorry.
I did not copy the file ok... and that's why the instructions didn't work out.
Now they are fine.
Your instructions where just great.
Thanks.