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.

Ubuntu 9.04 Source

Orginial post: http://hi.baidu.com/%C3%D4%C3%A3%B5%C4%D1%DB%C9%F1/blog/item/12a6ee8186ac56d0bc3e1eac.html

Archive.ubuntu.com更新服务器(欧洲,此为官方源,电信网通用户使用):

deb http://archive.ubuntu.com/ubuntu/ jaunty main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jaunty-security main restricted universe multiverse
deb http://archive.ubuntu.com/ Read more

Ubuntu 9.04 Count Down

Ubuntu: For Desktops, Servers, Netbooks and in the cloud

Ubuntu 8.10硬件安装无分区问题解决

可能是安装的时候占用了硬盘资源,导致无法找到硬盘分区,结果安装就没法正常的分区,安装不能正常进行。最后,参考了这个帖子,只需要在isodevice umount掉就可以了。直接打开“Application"->"Accessories"->"Terminal",然后

cd /

sudo umount -l isodevice

问题解决。笔记本升级为8.10,HAPPY。

PS:Virtual Box 2.1的性能确实要比臃肿的Vmware 6.5快很多,而且也没有Vmware 6.5的键位映射问题。爽~!

Linux下面成功使用Wine模拟TM2008 Beta

零点今天给我说他模拟成功了TM2008,哇,真的啊?他给了我这个网址:Linux 下使用 Wine 安装运行 TM2008 Beta 及乱码、与 Windows 共享聊天记录等相关问题的解决

按照网上给的方法稍作修改以后,安装成功了。

首先是把以前的wine卸载了。安装了打了中文补丁的wine 1.13,就访问http://ftp.ubuntu.org.cn/home/windowssux/Wine_CN/下载并安装最新的wine1.13就可以解决中文问题了。

然后拷贝rpcrt4.dll到wine的system32目录,然后

sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1

安装一怕啦东西。

最后就是执行TM的安装程序就可以啦。

零点装的是TM Preview 4,貌似字体比较小。我这里装的是TM Beta,但是无法上线,按了上线几秒钟就离开了,郁闷的很。

但无论杂说,还是基本可用了,比用QQ几分钟挂一次好多了,比用QQ FOR LINUX好太太太多了~~感谢wine

SSH over Tor On Ubuntu 8.10

我经常需要使用ssh登录linux主机,今天突然想到如何用在ubuntu linux上在tor网路上使用ssh?查了些资料,使用如下命令即可:

sudo apt-get install connect-proxy

ssh -2 -l SSH_LOGIN_NAME  `tor-resolve SSH_SERVER_NAME.com localhost:9050` -o ProxyCommand="connect -4 -S localhost:9050 %h %p"

命令解释如下: Read more

12
Return top

BFBC2