存档

文章标签 ‘Ubuntu’

ubuntu8.10下adb devices不能列出我的adp1设备的问题

2009年3月21日 哈哈 没有评论

自己的ubuntu升级成8.10(intrepid)后
发现用”adb devices”认不出通过usb连上的adp1手机设备了
以前8.04的时候没有问题的呀
那会儿还刷机来着
google了一把
貌似是因为升级改动了50-android.rules的原因
于是
sudo vim /etc/udev/rules.d/50-android.rules
在其中添加一句:

SUBSYSTEM==”usb”, SYSFS{idVendor}==”0bb4″, MODE=”0666″

然后再
adb kill-server && adb devices
这下就正常看到连上来的设备了

ubuntu下用firefox+privoxy+tor翻墙(GFW)

2009年3月19日 哈哈 没有评论

至于为什么翻墙
就不说了
这里只讲怎么配
也算是做个log
免得以后要再配的时候忘了
首先
安装软件

sudo apt-get install privoxy tor firefox

然后启动tor

sudo /etc/init.d/tor start

接着编辑privoxy的配置文件告诉其使用本地tor

sudo vim /etc/privoxy/config
将”forward-socks4a / 127.0.0.1:9050 .”这一行前面的”#”删掉

再接着,启动privoxy

sudo /etc/init.d/privoxy start

最后告诉firefox使用刚才装的代理privoxy

apt-get update时”NO_PUBKEY A70DAF536070D3A1″的错误

2009年3月18日 哈哈 没有评论

按照前一篇的介绍

sudo apt-get install debian-keyring debian-archive-keyring
sudo apt-key update

后还是出错”NO_PUBKEY A70DAF536070D3A1″
于是

gpg –keyserver wwwkeys.eu.pgp.net –recv-keys A70DAF536070D3A1
gpg –armor –export A70DAF536070D3A1 | sudo apt-key add -

然后再sudo apt-get update就没有问题了

ubuntu每次动态得到ip后要修改/etc/resolv.conf文件?

2009年3月7日 哈哈 没有评论

老早就发现了的
这样的问题在于:不好指定nameserver了
如果动态得到ip时写到/etc/resolv.conf中的nameserver是dhcp server给的的话……

btw:
网上找到一种解决办法
先记下来,有时间再试下

edit /etc/dhcp3/dhcpclient.conf and set “supersede domain-name-servers 10.0.0.1;”

But it is probably the network manager in gnome that resets it for you. So you have to fix it there somehow.

How to Disable IPV6 in ubuntu 8.0.4.1

2008年8月2日 哈哈 没有评论

按照文档上讲
开着ipv6既没有任何作用
反倒还影响网络性能
所以干脆干掉之
redhat系列的我知道怎么搞
但是ubuntu
……
Just add one line like this ”

blacklist ipv6

” to the end of file /etc/modprobe.d/blacklist

./configure时nasm没装

2008年6月20日 哈哈 2 条评论

./configure时报错:

ERROR: No NASM found, you need NASM to compile the asm source in *x86* arch.

apt-get install nasm
后解决问题

configure时找不到kde header的错误

2008年6月20日 哈哈 没有评论

./configure时出错:

in the prefix, you’ve chosen, are no KDE headers installed. This will fail.
So, check this please and use another prefix!

apt-get install kdelibs4-dev
后即解决

分类: Operation System 标签: , ,

./configure报错找不到qt的header

2008年6月20日 哈哈 没有评论

./configure时报错:“

configure: error: Qt (>= Qt 3.1 (20021021) and < 4.0) (headers and libraries) not found


apt-get install libqt3-mt-dev
后问题解决

ubuntu8.0.4的系统

分类: Operation System 标签: , ,

./configure时出错”configure: error: Can’t find X includes”

2008年6月20日 哈哈 没有评论

在家的ubuntu8.0.4上编K3b Monkey’s Audio Encoder and Decoder plugin的时候
./configure就出错了
错误提示:“configure: error: Can’t find X includes
网上有人说要
apt-get install kdebase-dev
可是如果这样的话需要装100多M的东西
后来发现
仅装xorg-dev即可
像这样
apt-get install xorg-dev

感受debian

2008年5月15日 哈哈 没有评论

linux里一直redhat一系用的比较多
最近ubuntu火起来后也在用ubuntu的桌面
这也才算是开始接触debian的东西(ubuntu算是debian一系的东西)
最近基于某种机缘
装了台debian的机器
版本是最新的4.0r3,07年出的
业界传说debian的人被ubuntu挖走了好多
导致版本发布变慢
看来还像这么回事儿
刚用,没啥其他感觉
就是安装的时候感觉比redhat一系的安装功能强大了不少
再有
就是用起来跟redhat一系很不一样(废话,一样的话那也是redhat一系了)
听以前用debian的同事讲debian比redhat稳定多了
我正好拭目以待