Wi-fi 扫描工具 inSSIDer 2 发布 Linux 版本

inSSIDer 2 原先是 Windows 平台上一款不错的开源免费的无线 (Wi-Fi) 信号扫描工具,它比系统自带的无线扫描工具更加强大, 除了提供信号强度等基本功能外,它还能搜索到 SSID,channel,RSSI,加密方式,最大速率以及 MAC 地址等信息。

现在,inSSIDer 开发者已正式把它移植到了 Linux 平台,发布了首个inSSIDer 2 for Linux (alpha) 版本,以下是下载地址。

Deb 或 RPM 包下载 : github

inSSIDer 2 的一些功能: 阅读更多 »

Share

IPTraf 使用说明

网络监控工具: 



简介 

1.安装

1.1.系统需求 

1.2.安装 

1.3.启动IPTraf 

1.4.命令行选项 

1.5.进入菜单界面



2.使用IPTraf



2.1.一般信息 

2.2.IP流量监视 

2.3.网络接口的一般信息统计(General Interface Statistics) 

2.4.网络接口的细节信息统计(Detailed Interface Statistics) 

2.5.统计分析(Statistical Breakdowns) 

2.6.局域网工作站统计(LAN Station Statistics)

阅读更多 »

Share

linux 简单架设防火墙路由器

操作基于ubuntu server10.10 上进行安装配置.进行配置iptables.ip转换.mac过虑功能.

1.建iptables

root@ptubuntufirewall:/# vi /etc/init.d/

#fLUSH THE FILTER,NAT,Mangle chain!
/sbin/iptables -F -t filter
/sbin/iptables -F -t nat
/sbin/iptables -F -t mangle
 
#Flush the user's chain
/sbin/iptables -t filter -X
/sbin/iptables -t nat -X
/sbin/iptables -t mangle -X
 
#Set default policies to DROP
/sbin/iptables -P INPUT ACCEPT
/sbin/iptables -P OUTPUT ACCEPT
/sbin/iptables -P FORWARD ACCEPT
 
#LAN NAT
/sbin/iptables -A POSTROUTING -t nat -s 192.168.0.0/255.255.255.0 -o eth1 -j MASQUERADE
#/sbin/iptables -A POSTROUTING -t nat -s 192.168.0.0/255.255.255.0 -o eth0 -j MASQUERADE
 
if [ -f /etc/access_mac.conf ]    
then
    for i in `cat /etc/access_mac.conf | grep "^[^#]" | tr -s "[\012]" | cut -c1-17` ; do
        /sbin/iptables -A FORWARD -m mac –mac-source $i -i eth0 -j ACCEPT
    done
fi
 
/sbin/iptables -A FORWARD -i eth0 -j DROP
#VNC View Ptubuntu 这下面两条指:访问外网ip可以转换到内网ip:端口
/sbin/iptables -A PREROUTING -t nat -p tcp -m tcp -i eth1 –dport 5888 -j DNAT –to-destination 192.168.0.110:5888
/sbin/iptables -A PREROUTING -t nat -p tcp -m tcp -i eth1 –dport 5988 -j DNAT –to-destination 192.168.0.110:5988
 
2.设置要过虑的网卡:access_mac.conf
Share

LINUX系统备份

 

因为要在服务器上做一些功能。但是为了安全于服务器所以需要先在服务器上做好一切的备份方案才可以对服务器动刀。要不然等出现问题了再想解决也是无能为力了。。。。所以先在网上找了一些资料但是真的合适自己的并没有几个需要自己去选择。

基于vps.测试再进行服务器上操作。服务器的条件就是你只有一个硬盘没有别的了。那么先要备份你原有的硬盘上。

-zcvf host..gz / –exclude /proc –exclude /mnt –exclude /tmp

下面这些需要认真看才行。

Linux 在备份时考虑的因素有哪些呢? 

备份哪些档案: 
例如在账号管理那一篇当中,我们知道最起码主机的账号信息在/etc/*及/home/*等等档案都是重要的! 
  
选择什么备份的媒介: 
是可擦写光盘、另一棵硬盘、同一颗硬盘的不同 partition、还是使用网络备援系统?哪一种的速度最
快,最便宜,可将数据保存最久?

Linux 在备份时考虑的因素有哪些呢? 
阅读更多 »

Share

VirtualBox 4.0 In Ubuntu

是一个很不错的虚拟软件.也是我最喜欢的.同样你也会喜欢上它的.那么这次安装是基于ubuntu10.10.上进行操作.版本为VirtualBox 4.0.

下面是安装过程:

root@ptubuntu:/home/ptubuntu# vi /etc/apt/sources.list

使用vi进行修改sources.list文件添加下面源的连接.

root@ptubuntu:/home/ptubuntu# deb http://download.virtualbox.org/virtualbox/debian maverick contrib

添加完进行update会提示更新由于没有公钥,无法验证下列签名:NO_PUBKEY 54422A4B98AB5139

  进行下载oracle_vbox.acs进行添加.就可以使用了.

After that you have to download the Oracle public key and add it. To do that execute the two commands below in the Terminal.

root@ptubuntu:/home/ptubuntu# wget http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc

root@ptubuntu:/home/ptubuntu# apt-key add oracle_vbox.acs

如果你安装旧的版本先进行删除再次安装新版本4.0.

root@ptubuntu:/home/ptubuntu# apt-get remove virtualbox-3.2
root@ptubuntu:/home/ptubuntu#apt-get update
root@ptubuntu:/home/ptubuntu#apt-get install virtualbox-4.0

安装完 VirtualBox 4.0, Oracle 支持usb2.0接口.


Share

Google Earth 6 beta 安装过程

根据 官方 Blog 的通告,最新版的 Google Earth 6 Beta 已正式发布,与之前的版本一样,除了 Win 及 Mac 平台外,同样支持 Linux 平台。

新版本最主要的改变是无缝整合了街景功能及添加三维树木元素。

下载: http://www.google.com/earth/download/ge/

在安装时会出现错误:

 

root@ptubuntu:/home/ptubuntu/Download# ./GoogleEarthLinux.bin –target /tmp/ge

Creating directory /tmp/ge

Verifying archive integrity… All good.

Uncompressing Google Earth for GNU/Linux 6.0.1.2032…………………………………………………………………………………

setup.data/setup.xml:1: parser error : Document is empty

setup.data/setup.xml:1: parser error : Start tag expected, '<' not found

^Couldn't load 'setup.data/setup.xml'

修改安装过程:
root@ptubuntu:/home/ptubuntu/Download# ./GoogleEarthLinux.bin –target /tmp/ge
Creating directory /tmp/ge
安装目录放在/tmp/ge下.
root@ptubuntu:/tmp/ge#cd /tmp/ge 
root@ptubuntu:/tmp/ge# ./setup.sh
安装完成你会发现出现乱码.什么都看不懂那么你需要修改一下.就行了.
root@ptubuntu:/tmp/ge# cd /opt/google-earth/lang/
root@ptubuntu:/opt/google-earth/lang# rm -r zh-Hans.qm
这样就可以了.

 

Share