存档

文章标签 ‘linux’

R61在linux/debian下安装madwifi无线驱动

2010年4月6日 Zealot Comments

本文记录Thinkpad R61i在debian lenny下安装madwifi驱动程序,替代ath5k,实现无线上网。
主要参考:http://forum.ubuntu.org.cn/viewtopic.php?f=116&t=169205。
仅作为tp安装linux的备忘,欢迎评论。

1. 下载
   Download the latest madwifi snapshot. // Google it

2. 解压
   $ tar zxvf madwifi-hal-0.10.5.6-current.tar.gz

3. 编译安装madwifi // 首先通过apt安装编译环境
   $ sudo aptitude install build-essential linux-headers-$(uname -r)
   $ make
   $ sudo make install

4. 安装module
   $ sudo modprobe ath_pci

5. 使网卡每次开机时都加载, make it load every time you boot
   $ sudo vi /etc/modules
   添加一行,如下
     ath_pci

6. 重新启动机器
   $ sudo reboot

注释 && 备忘
1. 为保证生效,重启前确认已屏蔽ath5k(默认驱动程序有可能是这个)
   检查是否已安装ath5k
   $ lsmod |grep ath5k
   有,则添加到blacklist
   $ cat /etc/modprobe.d/blacklist.conf
     blacklist ath5k
2. 确认安装驱动是否成功
   $ lsmod | grep ath_pci
     ath_pci               201176  0
     wlan                  193392  5 wlan_wep,wlan_scan_sta,ath_rate_sample,ath_pci
     ath_hal               300768  3 ath_rate_sample,ath_pci
3. 硬件型号查看
   $ lspci |grep Ethernet
     00:19.0 Ethernet controller: Intel Corporation 82566MM Gigabit Network Connection (rev 03)
     03:00.0 Ethernet controller: Atheros Communications Inc. AR242x 802.11abg Wireless PCI Express Adapter (rev 01)
4. ath5k是madwifi替代品,除非ath5k下无法连接无线,不建议使用madwifi

Linux/Debian字体去掉锯齿的方法

2009年10月21日 Zealot Comments

Linux/Debian字体去掉锯齿的方法
在台式机上装了个Debian,但不知道怎么设置字体清晰,网上找了很多方法,都不好使,一直都很模
糊地讲究着。不过把字号稍微设置大点就不模糊了,...

解决apt-get中依赖的库无法安装的问题

2009年4月28日 Zealot Comments

今天apt-get install vim-full的时候,出现了错误,详见后面。原因不清楚,估计是sun-java5-jre这个包相关的东西出了问题,彻底清除了试试:sudo apt-get –purge remove sun-java5-jre,然后重新装上。。...

Linux 入门:阅读man手册

2008年10月30日 Zealot Comments

From : http://www.fire3.cn/2008/08/03/linux-howto-read-man-page.html

 
 
搜索和打印介绍不错:)

 
 
1 什么是man手册

 
 
首先,man是manual的简称,中文说法可...

分类: linux 标签: , , , , ,

Squid安装、配置和使用

2008年10月8日 Zealot Comments

获取Squid

Squid主页:http://www.squid-cache.org/ 。下载源码。

将源码解压缩到某个目录,这里我在/tmp目录解压缩:tar zxvf squid-3.0.STABLE9.tar.gz

./configure –prefix=/usr/local/squid。其他...

分类: linux 标签: , , ,

chmod 命令

2008年8月6日 Zealot Comments

这个命令用的比较多了,作用很简单:改变文件的权限
平时主要能涉及到的就读写执行三种权限了,分别对应rwx
主要形式用的比较多的就是:”chmod 三个数字表示权限 文件” ...

分类: linux 标签: , , ,