*****@*****-H55M-S2H:~$ sudo apt-get install build-essential
[sudo] password for *****:
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
The following packages were automatically installed and are no longer required:
libindicator6 libx264-116 libgfortran3 libhighgui2.1 linux-headers-3.0.0-12
libgtkspell3-0 libcvaux2.1 libminiupnpc5 libmusicbrainz4c2a libvpx0 libcv2.1
linux-headers-3.0.0-12-generic libiso9660-7 libblas3gf liblapack3gf libnl3
libattica0 libid3tag0 fonts-horai-umefont libindicator3-6 libmcs1 libnatpmp1
libmatroska4 libllvm2.9
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
*****@*****-H55M-S2H:~$ cd ~
*****@*****-H55M-S2H:~$ wget -c
http://victor2012.info/r8168-8.029.00.tar.bz2--2012-05-21 23:08:12--
http://victor2012.info/r8168-8.029.00.tar.bz2Пошук victor2012.info (victor2012.info)... 197.221.14.35
Далучэньне да victor2012.info (victor2012.info)[197.221.14.35]:80... далучэньне ўсталявана.
HTTP зварот дасланы, чакаецца адказ... 200 OK
Даўжыня: 63166 (62K) [application/x-bzip2]
Запіс у «r8168-8.029.00.tar.bz2».
100%[======================================>] 63.166 56,3K/s у 1,1s
2012-05-21 23:08:13 (56,3 KB/s) - «r8168-8.029.00.tar.bz2» захаваны [63166/63166]
*****@*****-H55M-S2H:~$ tar xvf r8168-8.029.00.tar.bz2
r8168-8.029.00/
r8168-8.029.00/src/
r8168-8.029.00/src/r8168_asf.c
r8168-8.029.00/src/r8168_asf.h
r8168-8.029.00/src/r8168_n.c
r8168-8.029.00/src/rtl_eeprom.c
r8168-8.029.00/src/rtltool.c
r8168-8.029.00/src/rtltool.h
r8168-8.029.00/src/rtl_eeprom.h
r8168-8.029.00/src/Makefile_linux24x
r8168-8.029.00/src/r8168.h
r8168-8.029.00/src/Makefile
r8168-8.029.00/autorun.sh
r8168-8.029.00/README
r8168-8.029.00/Makefile
*****@*****-H55M-S2H:~$ cd r81*
*****@*****-H55M-S2H:~/r8168-8.029.00$ sudo su
root@*****-H55M-S2H:/home/*****/r8168-8.029.00# make
make -C src/ clean
make[1]: уваход у тэчку "/home/*****/r8168-8.029.00/src"
make -C /lib/modules/3.2.0-24-generic/build SUBDIRS=/home/*****/r8168-8.029.00/src clean
make[2]: уваход у тэчку "/usr/src/linux-headers-3.2.0-24-generic"
make[2]: выхад з тэчкі "/usr/src/linux-headers-3.2.0-24-generic"
make[1]: выхад з тэчкі "/home/*****/r8168-8.029.00/src"
make -C src/ modules
make[1]: уваход у тэчку "/home/*****/r8168-8.029.00/src"
make -C /lib/modules/3.2.0-24-generic/build SUBDIRS=/home/*****/r8168-8.029.00/src modules
make[2]: уваход у тэчку "/usr/src/linux-headers-3.2.0-24-generic"
CC [M] /home/*****/r8168-8.029.00/src/r8168_n.o
CC [M] /home/*****/r8168-8.029.00/src/r8168_asf.o
CC [M] /home/*****/r8168-8.029.00/src/rtl_eeprom.o
CC [M] /home/*****/r8168-8.029.00/src/rtltool.o
LD [M] /home/*****/r8168-8.029.00/src/r8168.o
Building modules, stage 2.
MODPOST 1 modules
CC /home/*****/r8168-8.029.00/src/r8168.mod.o
LD [M] /home/*****/r8168-8.029.00/src/r8168.ko
make[2]: выхад з тэчкі "/usr/src/linux-headers-3.2.0-24-generic"
make[1]: выхад з тэчкі "/home/*****/r8168-8.029.00/src"
make -C src/ install
make[1]: уваход у тэчку "/home/*****/r8168-8.029.00/src"
make -C /lib/modules/3.2.0-24-generic/build SUBDIRS=/home/*****/r8168-8.029.00/src INSTALL_MOD_DIR=kernel/drivers/net/ethernet/realtek modules_install
make[2]: уваход у тэчку "/usr/src/linux-headers-3.2.0-24-generic"
INSTALL /home/*****/r8168-8.029.00/src/r8168.ko
DEPMOD 3.2.0-24-generic
make[2]: выхад з тэчкі "/usr/src/linux-headers-3.2.0-24-generic"
make[1]: выхад з тэчкі "/home/*****/r8168-8.029.00/src"
root@*****-H55M-S2H:/home/*****/r8168-8.029.00# make install
make -C src/ install
make[1]: уваход у тэчку "/home/*****/r8168-8.029.00/src"
make -C /lib/modules/3.2.0-24-generic/build SUBDIRS=/home/*****/r8168-8.029.00/src INSTALL_MOD_DIR=kernel/drivers/net/ethernet/realtek modules_install
make[2]: уваход у тэчку "/usr/src/linux-headers-3.2.0-24-generic"
INSTALL /home/*****/r8168-8.029.00/src/r8168.ko
DEPMOD 3.2.0-24-generic
make[2]: выхад з тэчкі "/usr/src/linux-headers-3.2.0-24-generic"
make[1]: выхад з тэчкі "/home/*****/r8168-8.029.00/src"
root@*****-H55M-S2H:/home/*****/r8168-8.029.00# depmod -a
root@*****-H55M-S2H:/home/*****/r8168-8.029.00# modprobe -r r8169
root@*****-H55M-S2H:/home/*****/r8168-8.029.00# modprobe r8168
root@*****-H55M-S2H:/home/*****/r8168-8.029.00# dmesg | tail
[ 1834.363684] r8168: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
[ 1834.363692] eth0: Identified chip type is 'RTL8168D/8111D'.
[ 1834.363698] r8168 Copyright (C) 2012 Realtek NIC software team <nicfae@realtek.com>
[ 1834.363701] This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu.org/licenses/>.
[ 1834.363704] This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>.
[ 1834.489005] r8168: eth0: link down
[ 1834.489272] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 1836.029976] r8168: eth0: link up
[ 1836.030209] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 1836.485650] r8168: eth0: link up
root@*****-H55M-S2H:/home/*****/r8168-8.029.00# ifconfig -a
eth0 Link encap:Ethernet HWaddr 6c:f0:49:7c:20:59
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::6ef0:49ff:fe7c:2059/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:200 errors:0 dropped:0 overruns:0 frame:0
TX packets:209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:27072 (27.0 KB) TX bytes:28303 (28.3 KB)
Interrupt:40 Base address:0x4000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:6202 errors:0 dropped:0 overruns:0 frame:0
TX packets:6202 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4264517 (4.2 MB) TX bytes:4264517 (4.2 MB)
root@*****-H55M-S2H:/home/*****/r8168-8.029.00#