English Sentence Loading...
英语句子加载中...
预览模式: 普通 | 列表

Dell R710 安装 RedHat AS 5.X X32 X64 网卡故障解决

-------------------------------------Dell 工程师 升级R710 RHEL5.5 32位系统 Broadcom网卡驱动过程-----------------------------

首先去 Broadcom 下载一份最新的 Broadcom NetXtreme II BCM 驱动,注意芯片组是5709就好了。

http://zh-cn.broadcom.com/docs/driver_download/NXII/linux-5.2.55.zip

[root@YISOON Driver]# unzip linux-5.2.55.zip
[root@YISOON Driver]# cd Server/Linux/Driver/
[root@YISOON Driver]# rpm -ivh netxtreme2-5.2.55-1.src.rpm
[root@YISOON Driver]# cd /usr/src/redhat/
[root@YISOON redhat]# rpmbuild –bb SPECS/netxtreme2.spec
[root@YISOON redhat]# rpm -e netxtreme2 (卸载之前安装的驱动,如果第一次装不需要这条命令)
[root@YISOON redhat]# rpm -ivh RPMS/i386/netxtreme2-5.2.55-1.i386.rpm
[root@YISOON redhat]# vi /etc/modprobe.conf
alias eth0 bnx2
alias eth1 bnx2
alias eth2 bnx2
alias eth3 bnx2
alias scsi_hostadapter megaraid_sas
alias scsi_hostadapter1 ata_piix
alias net-pf-10 off
alias ipv6 off
options bnx2 disable_msi=1加上这一句:wq退出
[root@YISOON redhat]# modprobe -r bnx2;modprobe bnx2;service network restart  (卸载原驱动;装载新驱动,重启网络,这条命令写在一行可远程操作)

[root@YISOON redhat]# modinfo bnx2 【再看一下驱动版本是不是改变了】

filename:       /lib/modules/2.6.18-194.el5PAE/updates/bnx2.ko
version:        2.0.8e
license:        GPL
description:    Broadcom NetXtreme II BCM5706/5708/5709/5716 Driver

查看更多...

Tags: R710 linux 无故断网 网卡故障

分类:Design | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 70

RHEL 5.3+Sendmail+Dovecot+OpenWebmail简单配置

RHEL5.3 基本网络配置
一、
1、RHEL5 U3:如图1
clip_image002
(如图1)
2、#hostname //查看当前主机的主机名:如图2
clip_image003
(如图2)
3、#vi /etc/sysconfig/network-scripts/ifcfg-eth0 编辑指定网络接口配置文件:如图3
clip_image005
(如图3)
4、#vi /etc/sysconfig/network 通过配置文件修改主机名:如图4
clip_image007
(如图4)
5、在终端字符界面修改其字体和中文字体大小:如图5
clip_image009
(如图5)
6、挂载光盘:如图6
clip_image011
(如图6)
7、查看OpenSSH是否安装:如图7
clip_image013
(如图7)
8#vi /etc/hosts 设置本地DNS解析文件:如图8
clip_image015
(如图8)
9#vi /etc/resolv.conf 指定当前主机的DNS服务器,最多可指定三个:如图9
clip_image017
(如图9)
10、关闭iptables防火墙:如图10
clip_image018
clip_image020
clip_image022
clip_image024
(如图10)
二、DNS简单配置
1、vim /etc/named.conf
clip_image026
2、vim /var/named/benet.com.zone
clip_image028
3、vim /var/named/1.168.192.in-addr.arpa.zone
clip_image030
4、nslookup查看
clip_image031
三、sendmail简单配置
1、安装sendmail
root@dns ~]# mount /dev/hdc /mnt/dvd/
mount: block device /dev/hdc is write-protected, mounting read-only
[root@dns ~]# cd /mnt/dvd/Server/
[root@dns Server]# rpm -qa | grep sendmail
sendmail-8.13.8-2.el5
[root@dns Server]# ls sendmail*
sendmail-8.13.8-2.el5.i386.rpm sendmail-devel-8.13.8-2.el5.i386.rpm
sendmail-cf-8.13.8-2.el5.i386.rpm sendmail-doc-8.13.8-2.el5.i386.rpm
[root@dns Server]# rpm -ivh --aid sendmail-cf-8.13.8-2.el5.i386.rpm
warning: sendmail-cf-8.13.8-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sendmail-cf ########################################### [100%]
[root@dns Server]# rpm -ivh --aid sendmail-devel-8.13.8-2.el5.i386.rpm
warning: sendmail-devel-8.13.8-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sendmail-devel ########################################### [100%]
[root@dns Server]# rpm -ivh --aid sendmail-doc-8.13.8-2.el5.i386.rpm
warning: sendmail-doc-8.13.8-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:sendmail-doc ########################################### [100%]
[root@dns Server]#
[root@dns Server]# rpm -qa | grep sendmail
sendmail-devel-8.13.8-2.el5
sendmail-doc-8.13.8-2.el5
sendmail-cf-8.13.8-2.el5
sendmail-8.13.8-2.el5
[root@dns Server]# rpm -qa | grep m4
m4-1.4.5-3.el5.1
clip_image033
clip_image034
2、修改vim /etc/mail/sendmail.mc
116将smtp侦听范围从127.0.0.1改为0.0.0.0
clip_image036
155行修改成自己域:LOCAL_DOMAIN(`benet.com')dnl
clip_image038
3使用m4命令生成sendmail.cf文件
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
4、修改local-host-names文件添加域名及主机名
vim /etc/mail/local-host-names
[root@dns Server]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
[root@dns Server]# vim /etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
benet.com.
mail.benet.com.
~
~
~
"/etc/mail/local-host-names" 3L, 91C 已写入
[root@dns Server]#
clip_image040
5、安装Dovecot软件包(POP3和IMAP
[root@dns Server]# rpm -ivh --aid mysql-5.0.45-7.el5.i386.rpm
warning: mysql-5.0.45-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
error: Failed dependencies:
perl(DBI) is needed by mysql-5.0.45-7.el5.i386
[root@dns Server]# rpm -ivh --aid perl-DBI-1.52-2.el5.i386.rpm
warning: perl-DBI-1.52-2.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:perl-DBI ########################################### [100%]
[root@dns Server]# rpm -ivh --aid mysql-5.0.45-7.el5.i386.rpm
warning: mysql-5.0.45-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:mysql ########################################### [100%]
[root@dns Server]# rpm -ivh --aid dovecot-1.0.7-7.el5.i386.rpm
warning: dovecot-1.0.7-7.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:dovecot ########################################### [100%]
6、启动sendmail和dovecot服务
[root@dns Server]# service sendmail restart
关闭 sm-client: [确定]
关闭 sendmail: [确定]
启动 sendmail: [确定]
启动 sm-client: [确定]
[root@dns Server]# service dovecot restart
停止 Dovecot Imap: [确定]
启动 Dovecot Imap: [确定]
[root@dns Server]#
clip_image042
7、查看端口netstat
[root@dns Server]# netstat -ntl
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 127.0.0.1:2208 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:688 0.0.0.0:* LISTEN
tcp 0 0 192.168.1.200:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN
tcp 0 0 :::993 :::* LISTEN
tcp 0 0 :::995 :::* LISTEN
tcp 0 0 :::110 LISTEN
tcp 0 0 :::143 :::* LISTEN
tcp 0 0 :::22 :::* LISTEN
tcp 0 0 ::1:953 :::* LISTEN
[root@dns Server]# netstat -an | grep 25
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
udp 0 0 0.0.0.0:52546 0.0.0.0:*
unix 2 [ ] DGRAM 8925
[root@dns Server]# netstat -an | grep 110
tcp 0 0 :::110 LISTEN
[root@dns Server]# netstat -an | grep 143
tcp 0 0 :::143 :::* LISTEN
unix 2 [ ] STREAM CONNECTED 10143 /var/run/setrans/.setrans-unix
clip_image044
8、验证Sendmail的SMTP认证功能telnet localhost 25
[root@dns Server]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
220 dns.benet.com ESMTP Sendmail 8.13.8/8.13.8; Sat, 10 Oct 2009 22:15:28 +0800
ehlo localhost
250-dns.benet.com Hello localhost.localdomain [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
quit
221 2.0.0 dns.benet.com closing connection
Connection closed by foreign host.
[root@dns Server]# telnet localhost 110
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
+OK Dovecot ready.
quit
+OK Logging out
Connection closed by foreign host.
[root@dns Server]#
clip_image046
telnet mail.benet.com 25
clip_image048
telnet mail.benet.com 110
clip_image050
9、建立用户
[root@dns Server]# useradd zhangsan
[root@dns Server]# passwd zhangsan
Changing password for user zhangsan.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@dns Server]# useradd lisi
[root@dns Server]# passwd lisi
Changing password for user lisi.
New UNIX password:
BAD PASSWORD: it is based on a dictionary word
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
[root@dns Server]#
10、客户端测试
clip_image052
clip_image054
clip_image056
clip_image058
clip_image060
clip_image062
clip_image063
clip_image065
clip_image067
clip_image069
四、安装OpenWebmail
1、安装openwebmail,RPM包
[root@dns ~]# cd /mnt/dvd/
[root@dns dvd]# ls
perl-suidperl-5.8.8-18.el5.i386.rpm
openwebmail-2.53-3.i386.rpm
openwebmail-data-2.53-3.i386.rpm
perl-Text-Iconv-1.7-2.el5.i386.rpm
下载地址:
1.http://rpm.pbone.net/index.php3?stat=26&dist=52&size=59339&name=perl-suidperl-5.8.8-18.el5.i386.rpm
2.http://www.openwebmail.org/openwebmail/download/redhat/rpm/release/2.53/
3.http://www.openwebmail.org/openwebmail/download/redhat/rpm/release/2.53/
4.http://www.openwebmail.org/openwebmail/download/redhat/rpm/packages/rhel5/perl-Text-Iconv/i386/
[root@dns dvd]# rpm -ivh --aid perl-suidperl-5.8.8-18.el5.i386.rpm
warning: perl-suidperl-5.8.8-18.el5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:perl-suidperl ########################################### [100%]
[root@dns dvd]# rpm -ivh --aid perl-Text-Iconv-1.7-2.el5.i386.rpm
Preparing... ########################################### [100%]
1:perl-Text-Iconv ########################################### [100%]
[root@dns dvd]# rpm -ivh --aid openwebmail-data-2.53-3.i386.rpm
warning: openwebmail-data-2.53-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID cfb164d8
error: Failed dependencies:
openwebmail = 2.53-3 is needed by openwebmail-data-2.53-3.i386
[root@dns dvd]# rpm -ivh --aid openwebmail-2.53-3.i386.rpm
warning: openwebmail-2.53-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID cfb164d8
error: Failed dependencies:
openwebmail-data = 2.53-3 is needed by openwebmail-2.53-3.i386
[root@dns dvd]# rpm -ivh openwebmail-data-2.53-3.i386.rpm openwebmail-2.53-3.i386.rpm
warning: openwebmail-data-2.53-3.i386.rpm: Header V3 DSA signature: NOKEY, key ID cfb164d8
Preparing... ########################################### [100%]
1:openwebmail ########################################### [ 50%]
See post install instruction at:
/usr/share/doc/openwebmail-2.53/openwebmail-post.txt
2:openwebmail-data ########################################### [100%]
clip_image071
2、启动服务和netstat查看端口
clip_image072
clip_image074
3、初始化OpenWebmail系统
[root@dns dvd]# cd /var/www/cgi-bin/openwebmail/
You have new mail in /var/spool/mail/root
[root@dns openwebmail]# ls
auth openwebmail-main.pl openwebmail-vdomain.pl
etc openwebmail.pl openwebmail-viewatt.pl
misc openwebmail-prefs.pl openwebmail-webdisk.pl
modules openwebmail-read.pl preload.pl
openwebmail-abook.pl openwebmail-saprefs.pl quota
openwebmail-advsearch.pl openwebmail-send.pl shares
openwebmail-cal.pl openwebmail-spell.pl userstat.pl
openwebmail-folder.pl openwebmail-tool.pl vacation.pl
[root@dns openwebmail]# cd /var/www/cgi-bin/openwebmail/etc/
[root@dns etc]# ls
addressbooks defaults maps sessions templates
auth_unix.conf filter.book openwebmail.conf sites.conf users
calendar.book holidays openwebmail.conf.help smtpauth.conf users.conf
dbm.conf lang README.conf styles
[root@dns etc]# cd
[root@dns ~]# /var/www/cgi-bin/openwebmail/openwebmail-tool.pl  --init
creating db /var/www/cgi-bin/openwebmail/etc/maps/b2g ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/g2b ...done.
creating db /var/www/cgi-bin/openwebmail/etc/maps/lunar ...done.
Creating UTF-8 locales...
langconv ar_AE.CP1256 -> ar_AE.UTF-8
langconv ar_AE.ISO8859-6 -> ar_AE.UTF-8
langconv bg_BG.CP1251 -> bg_BG.UTF-8
langconv ca_ES.ISO8859-1 -> ca_ES.UTF-8
langconv cs_CZ.ISO8859-2 -> cs_CZ.UTF-8
langconv da_DK.ISO8859-1 -> da_DK.UTF-8
langconv de_DE.ISO8859-1 -> de_DE.UTF-8
langconv el_GR.ISO8859-7 -> el_GR.UTF-8
langconv en_US.ISO8859-1 -> en_US.UTF-8
langconv es_AR.ISO8859-1 -> es_AR.UTF-8
langconv fi_FI.ISO8859-1 -> fi_FI.UTF-8
langconv fr_FR.ISO8859-1 -> fr_FR.UTF-8
langconv he_IL.CP1255 -> he_IL.UTF-8
langconv hr_HR.ISO8859-2 -> hr_HR.UTF-8
langconv hu_HU.ISO8859-2 -> hu_HU.UTF-8
langconv id_ID.ISO8859-1 -> id_ID.UTF-8
langconv it_IT.ISO8859-1 -> it_IT.UTF-8
langconv ko_KR.eucKR -> ko_KR.UTF-8
langconv lt_LT.CP1257 -> lt_LT.UTF-8
langconv nl_NL.ISO8859-1 -> nl_NL.UTF-8
langconv no_NO.ISO8859-1 -> no_NO.UTF-8
langconv pl_PL.ISO8859-2 -> pl_PL.UTF-8
langconv pt_BR.ISO8859-1 -> pt_BR.UTF-8
langconv pt_PT.ISO8859-1 -> pt_PT.UTF-8
langconv ro_RO.ISO8859-2 -> ro_RO.UTF-8
langconv ru_RU.KOI8-R -> ru_RU.UTF-8
langconv sk_SK.ISO8859-2 -> sk_SK.UTF-8
langconv sl_SI.CP1250 -> sl_SI.UTF-8
langconv sr_CS.ISO8859-2 -> sr_CS.UTF-8
langconv sv_SE.ISO8859-1 -> sv_SE.UTF-8
langconv th_TH.TIS-620 -> th_TH.UTF-8
langconv tr_TR.ISO8859-9 -> tr_TR.UTF-8
langconv uk_UA.KOI8-U -> uk_UA.UTF-8
...done.
Welcome to the OpenWebMail!
This program is going to send a short message back to the developer,
so we could have the idea that who is installing and how many sites are
using this software, the content to be sent is:
OS: Linux 2.6.18-128.el5 i686
Perl: 5.008008
WebMail: OpenWebMail 2.53 20080123
Send the site report?(Y/n) y
sending report...
Thank you.
[root@dns ~]#
clip_image075
clip_image076
4、修改配置文件中的设置项
[root@dns etc]# vim /var/www/cgi-bin/openwebmail/etc/openwebmail.conf
修改14行domainnames auto改成domainnames benet.com
clip_image078
修改64行default_language en改成default_language zh_CN.GB2312
opwebmail-conf-64
修改87行default_iconset Cool3D.English改成default_iconset Cool3D.chinese.Simplified
clip_image082
5、IE浏览器查看http://mail.benet.com/cgi-bin/openwebmail/openwebmail.pl(会出错是SELinux导致)
clip_image084
6、修改系统的SELinux设置
[root@dns etc]# cd
[root@dns ~]# touch /var/log/openwebmail.log
[root@dns ~]# chcon -u system_u /var/log/openwebmail.log
[root@dns ~]# chcon -t httpd_sys_script_rw_t /var/log/openwebmail.log
[root@dns ~]# chcon -t httpd_unconfined_script_exec_t /var/www/cgi-bin/openwebmail/openwebmail*
[root@dns ~]#
clip_image086
7、IE设置和OE接收和发送
配置完成后输入http://mail.benet.com/webmail访问
clip_image088
选择设置个人模板
clip_image090
clip_image092
给李四lisi@benet.com发送邮件
clip_image094
OE接收查看并回复
clip_image096
clip_image098
clip_image100
 
 

Tags: RHEL 5.3 Sendmail Dovecot OpenWebmail

分类:Design | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 261

DELL笔记本无电池刷BIOS

现在很多DELL用户需要更新BIOS以支持win7安装。但由于机器多年使用电池早已寿终正寝了。而DELL的BIOS考虑到升级的安全性会执行检测电池的程序段,不想买电池的朋友可以用以下两种方法。
1.在DOS下升级bios
在DOS下执行 XXX.exe -forceit   (XXX.exe 就是所对应的BIOS文件)

博主试验成功:用2G U盘安装MaxDos,将D630_A17.exe拷贝到U盘里,启动进入纯DOS,进入C:\,dir看一下有没有A17文件,然后输入以上命令即可刷BIOS,中途只要保证不断电就OK。

查看更多...

Tags: 免电池 BIOS 跳过电池检测

分类:Design | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 517

Windows下让Apache支持rewrite和.htaccess

ShopEX后台开启静态化,还是提示您的系统存在无效的.htaccess, 无法启用伪静态呢?问题在这里:
<Directory "E:/www">
#
# Possible values for the Options directive are "None", "All",
# or any combination of:
# Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
#
# Note that "MultiViews" must be named *explicitly* --- "Options All"
# doesn't give it to you.
#
# The Options directive is both complicated and important. Please see
# http://httpd.apache.org/docs/2.2/mod/core.html#options
# for more information.
#
Options Indexes FollowSymLinks

#
# AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All

#
# Controls who can get stuff from this server.
#
order allow,deny
Allow from all

</Directory>

看到我加粗的那行了吧,AllowOverride指令,决定了你的.htaccess是否生效,如果你在调试永久链接的时候发现不起作用,不一定只是因为mod_rewrite没有加载,还有可能是httpd.conf设置不对造成的哦~~

查看更多...

Tags: Apache rewrite .htaccess

分类:Design | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 672

8号那天去办了个中国电信E8套餐,由于那天E8套餐里所提供的无线猫还没有到货,直到昨天下午我才去电信营业厅把那个无线猫给拿来了(当然不是免费的,还要我用旧的去换不说,还得加了200元人民币。电信实在是够坑人的。还好我同时拿到了网络电视机顶盒,可以在电视上看100多个电视频道。这也算是安慰吧。)拿到这个无线猫后我就开始研究了,想电信和移动没有啥两样,送的东西一定是有做了什么限制。经过我在网络上查找后发现果然如此,电信对这个无线猫的路由功能做了限制。真是好无耻啊!
没有办法我只能自己去找破解之法,本来我也是不用路由功能也没有事的,主要是每次上网要手动链接网络实在是麻烦。呵呵,就这样我开始了接下来的破解。下面我介绍破解方法:(当然也是有些引用网络上资料啦,不是完全的原创哦!)

一、进入路由器 (这步可要不可要,如果你的本地连接已经连接上了就不用了。)
1、把网线先接上一台电脑,设本地连接中“属性”里的“常规”标签下的“TCP/IP属性”,
设IP地址:192.168.1.12
子关掩码:255.255.255.0
默认网关:192.168.1.1
首选DNS服务器:202.96.134.133也可以是192.168.1.1

二:升级ZXDSL 531BII的固件版本
软件版本:ZXDSL 531BIIV2.2.3a_E17,如果你的固件版本过低,请升级下固件最好。(电信目前送的猫默认固件zxdsl531biiv2.2.1c_e17,建议升级下)

固件网上有点难下载到,我就提供一个网络上的下载:http://skythanks.blog.51cto.com/attachment/200711/6996_1195202435.zip

三:以温州电信为例,请自行修改各地VPI / VCI值。登陆ZXDSL531B (默认192.168.1.1,账号:admin、密码:admin) ,进入WEB页面。

http://192.168.1.1/webconfig/quick/quickConfirm.html?pageAction=quick&vpi=8&vci=35&scat=UBR&scr=0&pcr=0&mbs=0&accessmode=pppoe&encap=llc&iptype=dhcp&dnstype=autoDNS&nat_enable=true&bundleMode=bundleDisablede0_enable=0e1_enable=0e2_enable=0e3_enable=0&wlan_enable=0&usb_enable=0eIpAddress=192.168.1.1eSubnetMask=255.255.255.0&lanMtu=1500&dhcpserver=dhcpDisabled&virtual_Ip=false

红色标示的数字就是在下面各地VPI / VCI值找!

复制以上到地址栏,按“回车”。出现以下参数修改WEB页面:

点下面的“应用”,等上几秒。出现提示“错误”的WEB页面,不理他。在地址栏再次输入: http://192.168.1.1进入WEB,点“配置”中的“广域网络”,看到已经有一条“pppoe_8_35”的连接了。

查看更多...

Tags: 电信e8套餐 无线猫 无线路由

分类:Design | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 714