2012年5月10日星期四

HOW TO: Install Broadcom-sta (wl) driver in LMDE


HOW TO: Install Broadcom-sta (wl) driver in LMDE

Postby niebling on Fri Jul 01, 2011 1:40 pm
I used method 3 after uninstalling the existing driver for the broadcom card installed by default (my Broadcom 4312 wireless card is low power and requires firmware-b43-lpphy-installer_4.174.64.19-4_all.deb instead of the default firmware-b43-installer... I marked that file for removal and applied the change using Synaptic Package Manager.

This works for Ubuntu, Linux Mint XFCE and LMDE ...

To install the premade driver from Broadcom follow the instructions given by Broadcom for installation of the Broadcom-STA driver:

On a computer with Internet access, download the required firmware files from
http://downloads.openwrt.org/sources/wl ... 130.20.0.o
http://mirror2.openwrt.org/sources/broa ... .5.tar.bz2

Copy the downloaded files to your home folder and execute the following commands
consecutively in a terminal to extract and install the firmware:

open terminal
su (makes you a super user)

(note that the prompt is now a # hashmark)

Type the following commands (after the # prompt)
tar xfvj broadcom-wl-4.150.10.5.tar.bz2
sudo b43-fwcutter -w /lib/firmware wl_apsta-3.130.20.0.o
sudo b43-fwcutter --unsupported -w /lib/firmware broadcom-wl-4.150.10.5/driver/wl_apsta_mimo.o

I did not need to reboot. My device was recognized right away and I could connect without any activation...
I connected right away no troubles.

==================
from http://forums.linuxmint.com/viewtopic.php?f=197&t=57056&p=442617&hilit=niebling#p442617

2012年5月7日星期一

vsftp被动模式启用iptables访问设置

上周改vsftp配置  后来不能通过被动模式连接了,google了下,按下面改了改 ok了。

但是浏览器或者ftp连接工具一般默认都是使用pasv方式进行默认连接。为了保证客户端尽可能简单设置的原则,那么需要设置服务器端能够支持默认的pasv方式连接。
1、编辑/etc/sysconfig/iptables-config文件,添加以下两行:

IPTABLES_MODULES="ip_conntrack_ftp"
IPTABLES_MODULES="ip_nat_ftp"
请一定注意两行内容的位置关系不要搞反了。如果将"ip_nat_ftp"放到前面是加载不到的。如果你的ftp服务是过路由或者防火墙(即内网映射方式一定需要此模块)。以上等同于在加载iptables之前运行modprobe命令加载"ip_nat_ftp"和"ip_conntrack_ftp"模块。

ps:  我的机器添加了上面的配置后就ok了,下面的规则我的iptable貌似都有。



2、编辑iptables文件添加如下两行:
[root@xmydlinux ~]# grep 21 /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --sport 21 -j ACCEPT
3、检查iptables文件是否存在以下行(默认是有的),如没有则添加;
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
4、重启iptables服务
[root@xmydlinux ~]# service iptables restart
清除防火墙规则: [ 确定 ]
把 chains 设置为 ACCEPT 策略:filter [ 确定 ]
正在卸载 Iiptables 模块: [ 确定 ]
应用 iptables 防火墙规则: [ 确定 ]
载入额外 iptables 模块:ip_nat_ftp [ 确定 ]
可以使用以下命令查看模块是否加载成功
[root@xmydlinux ~]# lsmod |grep ftp
ip_nat_ftp 8881 0
iptable_nat 27237 1 ip_nat_ftp
ip_conntrack_ftp 76273 1 ip_nat_ftp
ip_conntrack 45957 4 ip_nat_ftp,iptable_nat,ip_conntrack_ftp,ipt_state
以上说明模块加载成功。。
现在就可以使用被动模式连接试试是否成功。

2012年5月3日星期四

vsftp 显示日志设置

##################log settings###################
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/xferlog
#
#log in two files /var/log/xferlog and /var/log/vsftpd.log
dual_log_enable=YES
vsftpd_log_file=/var/log/vsftpd.log
#log time setting
use_localtime=YES
#
###################end of log####################


ps:  我按照这个改好后,vsftpd只能通过主动方式连接, 呼 不知道是怎么回事。

注意备份  备份