linux 安装 Broadcom 4311网卡

作者:互联网观察 发布时间:Dec 17, 2009 分类:linux

驱动安装详细:http://linuxwireless.org/en/users/Drivers/b43

我的Broadcom  4311网卡的安装步骤为:

Follow these instructions if you are using the b43 driver from linux-2.6.32 and newer or compat-wireless-2.6, or from any current GIT tree, and have a device with a low-power PHY.

Use the current Git version of b43-fwcutter. Download, extract the b43-fwcutter tarball and build it:

git clone http://git.bu3sch.de/git/b43-tools.git cd b43-tools/fwcutter make cd ..

Use version 4.174.64.19 of Broadcom's proprietary driver. (The tarball is mislabeled as "4.178.10.4", but it is actually 4.174.64.19.) Download and extract the firmware from this driver tarball:

export FIRMWARE_INSTALL_DIR="/lib/firmware" wget http://downloads.openwrt.org/sources/broadcom-wl-4.178.10.4.tar.bz2 tar xjf broadcom-wl-4.178.10.4.tar.bz2 cd broadcom-wl-4.178.10.4/linux sudo ../../fwcutter/b43-fwcutter -w "$FIRMWARE_INSTALL_DIR" wl_apsta.o

Note that you must adjust the FIRMWARE_INSTALL_DIR path to your distribution. The standard place where firmware is installed to is /lib/firmware. However some distributions put firmware in a different place.

在.net c#下使用mysql

作者:互联网观察 发布时间:Aug 25, 2009 分类:linux

首先下载 dll

http://dev.mysql.com/get/Downloads/Connector-Net/mysql-connector-net-5.2.7-noinstall.zip/from/pick#mirrors

 

然后解压缩提取其中的mysql.data.dll  添加到项目中。(引用dll)

关键的几行代码

 

using MySql.Data.MySqlClient; 

 

 连接到MySql数据库并返回连接对象

private static MySqlConnection getCon() 20        { 21            MySqlConnection myCon = null; 22            try 23            { 24                / 25                  Server:数据库服务器。localhost表示本机 26                  Database:数据库名称。school表示mySql中一个名为school的数据库 27                  Uid:用户名 28                  Pwd:密码 29                  CharSet:使用的字符编码。不设置可能产生乱码 30                 */ 31                myCon = new MySqlConnection("Server=localhost;Database=school; Uid=root;Pwd=123;CharSet=utf8;"); 32                myCon.Open(); 33            } 34            catch (MySqlException e) 35            { 36                //抛出连接MySql数据库的异常 37                throw new Exception(e.Message); 38            } 39            return myCon; 40        } 41

 详细可以看文档。

  1. 页码:
  2. «
  3. 1
  4. 2
  5. 3
  6. 4
京ICP证030173号 new