寻觅生命中的那一片浅草......

每日存档 七月 5th, 2010

net use使用

share.bat

net use y: /del
echo net use y: \\192.168.1.80\share_doc /user:share 123456

Update_Broadcom_NIC_driver_on_CentOS

1、build rpm package from source code
cd /dist/dist/
wget http://www.broadcom.com/docs/driver_download/NXII/linux-5.2.55.zip
cd /dist/src
unzip ../dist/linux-5.2.55.zip
cd Server/Linux/Driver/
rpm -Uvh netxtreme2-5.2.55-1.src.rpm

The source will be instlled in /usr/src/redhat/SOURCES
The build rules file will be instlled in /usr/src/redhat/SPECS

cd /usr/src/redhat/SPECS
rpmbuild -bb netxtreme2.spec
the package is stored in /usr/src/redhat/RPMS/x86_64/

2、install rpm package
vi update_net_driver.sh

if rpm -Uvh /usr/src/redhat/RPMS/x86_64/netxtreme2-5.2.55-1.x86_64.rpm
then
rmmod bnx2
modprobe bnx2
fi

save and quit
sh update_net_driver.sh

3、check driver version
ethtool -i eth0
ethtool -i eth1

samba共享设置

首先,将共享方式改为

security = share

1、免密码访问

mkdir /data/test_share
cd /data/
chown -R nobody.nobody test_share
chmod -R 777 test_share
vi /etc/samba/smb.conf
加入以下内容

[File]
comment = File Server
path = /data/test_share
browseable = yes
writable = yes
guest ok = yes
write list = +staff

service smb restart
这样就可以免密码访问了

2、需要密码才能访问的共享

假设用户是share1,密码是i3zH7Xhw

mkdir /data/share1
cd /data/share1
useradd share1
passwd share1
输入密码:i3zH7Xhw
chown -R share1.share1 share1
chmod -R 770 share1
smbpasswd -a ming2
输入密码:i3zH7Xhw

vi /etc/samba/smb.conf
加入以下内容

[share1]

comment = share1

path = /data/share1

writable = yes

valid users = share1

public = no

service smb restart

这样,就需要输入密码才能访问共享

2010年七月
« 6月   8月 »
 1234
567891011
12131415161718
19202122232425
262728293031