Code Monkey home page Code Monkey logo

rtl8152-driver-for-proxmox-ve5-6-and-debian's Introduction

感谢tubaxiaosiji大佬的脚本

更新至2021-04-29官方驱动r8152.53.56-2.15.0.tar.bz2 https://www.realtek.com/zh/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-usb-3-0-software


    为Proxmox VE 5/6 快速添加RTL 8152 2.5G网卡驱动,少走点弯路。。。一块由95 RMB PDD USB3 2.5G 网卡引发的血案。。。       

基于debian的发行版本可以尝试运行一下,因为不同发行版本的软件源仓库可能不太一样,不一定有匹配的内核image和内核Headers,这个得靠各位去尝试了。 如果你的系统是PVE系统的话,直接无脑下一步就行了。

注意[Notice]:           

Get superuser permission 【最好请使用root用户编译】

Add no subcript source 【添加非订阅用户源】

NOT recommended for production use 【不建议生产环境中使用】

PVE pve-no-subscription repository provided by proxmox.com 【非订阅用户软件仓库由proxmox.com提供】

Support Proxmox VE 5.0-6.0 (include 6.2.x) 【支持PVE 5.0-6.0 系统,包括6.2.x 】

r8152.53.56-2.15.0.tar.bz2 provided by Realtek.com 【r8152.53.56-2.15.0.tar.bz2由Realtek官网提供】

Support Linux kernel version 2.4 to 5.6 【支持的Linux内核版本,从2.4到5.6】

root@hostname# 这个是命令提示符, "#" 井号后面的才是SHELL命令

1.食用方法如下 [Usage] :

2.安装git和它的依赖组件 [Install git and dependent packages]

root@hostname# apt-get update     
root@hostname# apt-get -y install git

3.克隆我的仓库 [Clone my .git]

root@hostname# git clone https://github.com/dreamteki/RTL8152-Driver-for-Proxmox-VE5-6-and-debian.git  

4.切换到目录 [Change dir]

root@hostname# cd ./RTL8152-Driver-for-Proxmox-VE5-6-and-debian  

5.赋予运行权限 [Chmod]

root@hostname# chmod a+x rtl8152_install.sh  

6.运行脚本 [Run script in shell]

root@hostname# bash rtl8152_install.sh  

7.等待一会 [Wait for a minutes]...

8.检查模块是否已安装加载 [Check kernel module is exist it]

root@hostname# lsmod | grep 'r8152'   	
出现 r8152字样即安装成功   [If show 'r8152' that is OK!]

9.如果出现 modprobe: ERROR: could not insert r8152: Invalid argument,请重启系统再运行一遍脚本即可。

[If show modprobe: ERROR: could not insert r8152: Invalid argument appears, please restart the system and run the script again.]

10.lshw -C network 找到你的网卡,查看它的情况,若是DISABLE 则可以ip link set xxxx up(其中xxxx是本网卡的logical name) 11.然后可以查看其网络速率情况:ethtool enx00e04c680125 12.在pve界面中system/network选项中,将对应网卡的autostart打开,这样重启PVE就能自动开启;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.