SpriteWood everybody is one single tree « Hosting by Media Temple(GS) vim note »

ubuntu 8.04 note

播放flash后(adobe的播放器),系统和其他软件失去声音。
解决方法为安装libflashsupport
重启x

打开 Metacity 混合特效:
gconftool-2 -s ‘/apps/metacity/general/compositing_manager’ –type bool true
关闭 Metacity 混合特效:
gconftool-2 -s ‘/apps/metacity/general/compositing_manager’ –type bool false

ff3b5在ubuntu下无法backspace后退,用alt+> alt+<代替之
默认语言为繁体中文,安装这个中文包即可http://releases.mozilla.org/pub/mozilla.org/firefox/releases/3.0b5/linux-i686/xpi/zh-CN.xpi

update:5/19/08 === USB访问 招行证书
gconf-editor

打开“Apps->Metacity->keybinding Commands”,

添加完成后,去到“Apps->Metacity->Global keybingdings”,添加上快捷键。

update:5/30/08

新建一个usbfs组:
sudo groupadd usbfs
将当前用户加入这个用户组:
sudo adduser $USER usbfs
打开/etc/group文件
gedit /etc/group
查找usbfs,记下ID,如,我的情况是:
usbfs:x:1002:yourname
上面1002就是ID。
打开/etc/fstab文件:
sudo gedit /etc/fstab
在后面加一行:
none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
注意devgid=1002中的1002要改成你刚在group中查到的usbfs组的ID。保存文件。

重新启动电脑。
打开VirtualBox,
在虚拟电脑->设置->USB设备中
勾选启用USB控制器
再点击右边->添加空筛选器->随便起个名称(其它参数用默认的)->确定保存

安装招行专业版,启用移动证书。

update:5/30/08  === 手机传文件

使用obexftp和obexfs实现与手机互传文件(使用USB)。主要部件:
代码:
sudo apt-get install obexfs obexftp openobex-apps

此后插上USB连接线,使用如下命令查看接口情况,可以得到类似的输出
代码:
leeyee@alimus> sudo obexftp -u
Found 2 USB OBEX interfaces
Interface 0:
Manufacturer: Nokia
Product: Nokia N70
Interface description: SYNCML-SYNC
Interface 1:
Manufacturer: Nokia
Product: Nokia N70
Interface description: PC Suite Services
Use ‘-u interface_number’ to connect
Nothing to do. Use –help for help.

看一起接口0和1都指向手机,采用接口1,PC Suite Services,运行obexfs将其挂载,举例/mnt/NOKIA
代码:
sudo obexfs -u 1 — /mnt/NOKIA

这样,手机的RSMMC卡就被挂载到/mnt/NOKIA处。但需注意,此时普通用户并不能浏览该目录(此问题待解决),需要成为root后再进入即可
代码:
leeyee@alimus> sudo -s
root@alimus> ls /mnt/NOKIA/E\:/
Images Materials mbook Nokia Others Sounds Videos

如此,就可以像普通U盘一样对其进行读写操作了。具体详情,可以查看obexfs,obexftp及fusermount的手册页。卸载时
代码:
sudo umount obexfs

Tags:

Sunday, May 4th, 2008 at 2:39 pmand is filed under linux. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

2 Responses to “ubuntu 8.04 note”

  1. danielking Says:
    June 26th, 2008 at 10:45 pm

    我连nokia5300怎么只能看到文件夹不能看到tf卡呢?

    但是用obexftp能看到

    # sudo obexftp -u 1 -l
    Connecting…done
    Receiving “(null)”…\
    <!DOCTYPE folder-listing SYSTEM “obex-folder-listing.dtd”
    [ ]>

    …….

  2. 炎妖儿 Says:
    June 27th, 2008 at 10:32 am

    我好像sudo obexfs -u 1 — /mnt/NOKIA之后,直接mount过来在terminer里面传的文件,obexfs上操作貌似很容易挂在那就不动了。

Leave a Reply

>
  • Categories

  • Recent Posts

  • Recent Comments

  • SpriteWood is proudly powered by WordPress
    Entries (RSS) and Comments (RSS).