Posts Tagged ‘ubuntu’

Ubuntu 9.10+BCM4315成功破解WEP网络

我的联想U150的本本的BCM4315网卡一直没有得到BT4和BT3的完美支持,就连Ubuntu 9.10装好后也需要自己再装Restricted Driver。这个驱动装好后好像不能被aircrack系列支持。我认为只要把4315驱动搞定了,就能在任何Linux系统下应用aircrack。那么第一步就是把b43驱动驱动起来。
寻找了很久以后找到了这个帖子:http://ubuntuforums.org/showthread.php?t=1266620
使用2.6.32.12的kernel加上b43的驱动就可以完全搞定它。
1、32位系统的内核:

http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-image-2.6.32-12-generic_2.6.32-12.17_i386.deb

http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-headers-2.6.32-12-generic_2.6.32-12.17_i386.deb

http://mirrors.kernel.org/ubuntu/pool/main/l/linux/linux-headers-2.6.32-12_2.6.32-12.17_all.deb

2、安装内核:
sudo dpkg -i linux*2.6.*.deb
3、下载compat-wireless驱动(http://linuxwireless.org/download/compat-wireless-2.6/),照着它的说明,我用最新的编辑无法成功,用compat-wireless-2010-01-26.tar.bz2即可。
4、编译:
make
sudo make install
5、卸载老的驱动
sudo make unload
6、刷新驱动
sudo depmod
sudo depmod -a
7、打开PIO模式:
echo "options b43 pio=1" | sudo tee -a "/etc/modprobe.d/b43-thingy.conf"
8、屏蔽STA驱动:
echo "blacklist wl" | sudo tee "/etc/modprobe.d/wedontneednonossdrivers.conf"
9、启动时打开B43驱动:
echo "b43" | sudo tee -a "/etc/modules"
10、打开/etc/rc.local, 在exit(0)之前加入
modprobe -r b43
sleep 3
modprobe b43
然后就可以用aircrack的工具进行破解了。
spoonwap在ubuntu的sudo环境下回提示表达式不正确,解决方法是
sudo ln -sf bash /bin/sh
然后享受吧,我用了1分多的时间把自己的无线网络破解了,隔壁的网络没有活动的客户端破解相对繁琐,改日再研究。

Vmware 6.5 + Ubuntu 9.04 vmtools正确安装方法

由于6.5版本的vmware的vmtools的默认安装存在一些问题,貌似是和新的kernel不怎么兼容,所以无法实现屏幕自动缩放、拖拽等功能。在国外网站上搜索了一下,经过实践,发现这样可以解决问题:

sudo aptitude update
sudo aptitude install build-essential linux-headers-$(uname -r)
cd /cdrom
cp -a /media/cdrom/VMwareTools* /tmp/
cd /tmp/
tar -vxzf VMwareTools*.gz
cd vmware-tools-distrib/
sudo ./vmware-install.pl

Gnome ISO挂载和卸载的脚本

gedit $HOME/.gnome2/nautilus-scripts/mount_iso

#!/bin/bash
#

gksudo -u root -k /bin/echo "got root?"

sudo mkdir /media/"$*"

if sudo mount -o loop "$*" /media/"$*"
then
if zenity --question --title "ISO Mounter" --text "$* Successfully Mounted."

then
nautilus /media/"$*" --no-desktop
fi
exit 0
else
sudo rmdir /media/"$*"
zenity --error --title "ISO Mounter" --text "Cannot mount $*!"
exit 1
fi

gedit $HOME/.gnome2/nautilus-scripts/umount_iso

#!/bin/bash
#

for I in "$*"
do
foo=`gksudo -u root -k -m "enter your password for root terminal
access" /bin/echo "got r00t?"`

sudo umount "$I" && zenity --info --text "Successfully unmounted /media/$I/" && sudo rmdir "/media/$I/"
done
done
exit 0

sudo chmod 755 ~/.gnome2/nautilus-scripts/*_iso
然后重启x: ctrl+alt+backspace

Workaround for VirtualBox 3.0.4 Bridged Networking Issue

I have experienced a bridged networking issue in VirutalBox 3.0.4 with Vista as host and Ubuntu 8.10 as guest.

My networking is installed as following:

A TP-LINK WR340G router configured with DHCP on; Vista Host system linked to this router and can get IP automatically; Ubuntu 8.04 refreshly installed in VirtulBox 3.0.4.

After I installed VirtualBox Addition, guest networking seemed hard to get IP from router. Somestimes it could get a IP. In most time, the networking configuration said that "the link was disconnected".

I searched and someone said that change guest's network card to "Intel PRO/1000 MT Desktop" might solve the problem. I tried it and successed.

If you have this problem, try to change your guest's card type.

Download Ubuntu from the air to my phone

Have you ever tried downloading things from Internet using mobile phone? I guess you probably have experienced fetching some pictures and text, or something bigger like short movies or musics.

On Friday morning, when I was listening to ERC conference which was held by Sun at Shangri-La in Chengdu, I felt a little boring when a professor talking about eduction in Russian because I didn't quite catch him. Russian English and Indian English is a little hard to understand.

I have nothing to do, so I take out my phone to play. I searched WiFi singal and found hotspot of Shangri-La. April 23th was my birthday and also the release of Ubuntu 9.04. I found the download link and started to download using UCWEB which can do multi-threaded downloading. The download speed grew up to  and keep stable at almost 200kb/s. At this speed, one times faster than I had in my dormitory, I could get Ubuntu cdimage in only one hour.

How much enegery it cost? I opened the Nokia Engery Profiler and it showed me the real-time current and power consumption of the phone. In average, the phone ate up about 400mA or equally 1.3Watt. So my battery could keep up at least 3 hours downloading. That is to say, I could download 2GB of data from the air before my battery run out. But I'm a little afriad of the battery, it was getting a little warmer.

Downloading by a phone is quite "green". Compare to a normal computer, it uses 0.1KWh every hour and my phone only uses 1% of the energy. So it could be the most energy-saving downloading method I ever seen. I'm wondering if there is some Bittorrent or Emule software I can use on the phone, so I could do my best to saving the earth! Besides, without a WiFi, I could do nothing.