Sunday, 2 May 2010
ubuntu10.04输入法及窗口按钮位置
不过对于它把窗口按钮“最大化”,“最小化" 放在左上角有些不爽,解决方法也很简单:
首先打开 gconf-editor (alt-F2, 然后输入 gconf-editor) 就是类似注册表的一个东西
然后找到 apps/metacity/general
在button_layout里面,修改成: menu:maximize,minimize,close; 后面三个的位置可以根据喜欢调整LOL
然后 那几个按钮就又回到了熟悉的右上角了:)
------------------------------------------------------
输入法还是使用ibus,然后安装了sun-pinyin, 确实很赞,除了没有网络同步之外,其他都无可挑剔。
http://code.google.com/p/sunpinyin/ 这是sun-pinyin的官网
推荐使用呀
Sunday, 13 September 2009
添加软件源 自动获得key的方法
提示缺少key时,把对应的号码代替ID,然后执行,会自动安装好所需的key(注:可填写多个ID,用空格隔开即可,同时适用于其他缺少key的情况)。
key命令行:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com ID
Saturday, 12 September 2009
Ubuntu 9.04桌面无法显示问题的解决
白天还有事,就先不管了,晚上回来开机。。。想了想,只能先进入terminal ,再进入firefox ,幸好还能连网。
然后也知道应该是gnome的问题。
上网找到一篇 : Ubuntu 8.04更新后桌面无法显示问题的解决,挺好的,知道是 gnome-panel 被删除了,于是重新安装,搞定。
原文网址: http://www.oklinux.cn/html/Basic/jyjq/20080622/56608.html
Wednesday, 1 July 2009
冲动是魔鬼
心血来潮,想在eeepc上装一个linux....挑了很久之后选择了GOS, 基于ubuntu改进的一个版本,号称专为上网本设计,看着风格很像mac,于是就下载一个放到u盘去。。。。
也没仔细在live cd 上看到底有米有网络和驱动。。。就直接装上去了。。。然后虾米都没有。。。无线网络没有,有线网络也没有。。。直接就没有网卡驱动。。。。一台不能上网的netbook有毛用啊!!!
sigh....一天就这么没了。。。。
Tuesday, 12 May 2009
linux 下的游戏 fceu模拟器
原来这才发现 Linux下也有很多游戏。
当然 用wine 模拟 是 最常用的方式,不过Linux下也有蛮多的好玩的游戏。
很多都可以直接从源里找到。
一些休闲的游戏是我的最爱~~~所以安装了一个fceu 的 红白机模拟器,玩玩魂斗罗,马里奥什么的,以做休闲。还有一个python 的 gfce作为front end.
安装之后,在application -> Game 里面找到 GFCE Ultra, 打开, 在main里面打开你要的ROM filename。
然后在input 里面 设置键位,选择一个Gamepad, 然后出来一个小窗口 比如 Gamepad#1 A(1), 然后选择你想设定的键位,在键盘敲进去,要敲两下,第二次才是确定。
所有设置完了,就可以 Excute开始玩了。
还有一些别的设置,就自己来搞吧
有几个链接挺好的,对于想找游戏的人:
http://forum.ubuntu.org.cn/viewtopic.php?f=34&t=99079
http://zh.wikipedia.org/wiki/Category:Linux%E9%81%8A%E6%88%B2
Thursday, 7 May 2009
史上最有意思的readme
来自 Gnome里CUPS(Common Unix Printing System)的Readme...
写的真象一篇童话
gnome-cups-manager
——————
Once
upon a time there was a printer who lived in the woods. He was a lonely
printer, because nobody knew how to configure him. He hoped and hoped
for someone to play with.
One day, the wind passed by the
printer’s cottage. “Whoosh,” said the wind. The printer became excited.
Maybe the wind would be his friend!
“Will you be my friend?” the printer asked.
“Whoosh,” said the wind.
“What does that mean?” asked the printer.
“Whoosh,” said the wind, and with that it was gone.
The
printer was confused. He spent the rest of the day thinking and jamming
paper (for that is what little printers do when they are confused).
The
next day a storm came. The rain came pouring down, darkening the
morning sky and destroying the printer’s garden. The little printer was
upset. “Why are you being so mean to me?” he asked.
“Pitter Patter, Pitter Patter,” said the rain.
“Will you be my friend?” the printer asked shyly.
“Pitter Patter, Pitter Patter,” said the rain, and then it left and the sun came out.
The
printer was sad. He spent the rest of the day inside, sobbing and
blinking lights cryptically (for that is what little printers do when
they are sad).
Then one day, a little girl stumbled into the
printer’s clearing in the woods. The printer looked at this curious
sight. He didn’t know what to think.
The little girl looked up at him. “Will you be my friend?” she asked.
“Yes,” said the printer.
“What is your name?” asked the little girl.
“HP 4100TN”, replied the printer.
“My name is gnome-cups-manager” said the little girl.
The
printer was happy. He spent the rest of the day playing games and
printing documents, for that is what little printers do when they are
happy.
Monday, 4 May 2009
VLC 播放中文字幕乱码 解决
机器是 ubuntu9.04 VLC0.9.9a
中文字幕一直乱码,上网参考了很多方法都不行
首先在tools -> preferences, 左下角 选择 all (有两个选择 all, simple)
然后 input/codecs -> other codecs -> Subtitles -> Subtitles Text encoding 选择 GB18030
去掉下面 UTF-8 subtitle autodetection / Formatted Subtitle 的选项
在Vedio -> Subtitles/OSD -> Text Renderer Fonts 里面选择一个中文字体, 推荐使用simsun.ttc (可以在c:\windows\fonts找到,可以copy到\usr\share\fonts 也可以直接用win的盘,wenquanyi的字体也可以)
主要好像是红色的那一部分,找了网上的解决方法都没有提到,而且在simple的界面下是找不到的。
ATI 显卡 和 视频播放的问题
http://www.ubuntugeek.com/fix-for-video-playback-problem-in-compiz-fusion.html
参考的这篇文章
ATI显卡的机器,开了compiz之后,播放视频的时候,不管是mplayer/smplayer 还是 VLC,在全屏的时候,或者拖动的时候,画面都会停滞,出现死机,还有很卡的情况。
主要是xv的问题,ati下的驱动要选择x-11
文章中提到
* GStreamer Users
o 在终端输入 “gstreamer-properties”
o 点击 Video
o 在 Default Video Plugin 选择 “X Window System (No Xv)”.
* VLC Users
Tools -> Preferences ->Video ->output
选择 x-11
* MPlayer Users
Mplayer -> Preferences->Video -> Drivers ->X11
* Xine users
Xine -> File -> Configure -> Preferences ->Video ->Driver ,选择xshm
我只试验了mplayer 和VLC,似乎mplayer还是有问题,VLC工作挺正常的。
Sunday, 3 May 2009
ubuntu9.04中设置网络打印机
system -> Administration -> Printing
添加一个打印机,然后ubuntu 会进行searching
然后选择windows printer via SAMBA 输入printer的地址
选择合适的驱动就可以了,输入用户名密码就好了
但是这样会有一个问题,test 的时候可以print出来
可是想在别的程序打印会出来: Can't prompt for authorization
后来上网之后才找到解决方法。。。。
首先停掉cups sudo /etc/init.d/cups stop
然后 sudo gedit /etc/cups/printers.conf
找到 这一行 AuthInfoRequired username,password
把它注释掉 #AuthInfoRequired username,password
如果确实需要用户名密码, 在 DeviceURI smb://username:password@Home/Desktop/CanonPIX
加上用户名密码,就没有问题了
试用code::block中
在源里就有下载,项目的主页是:http://www.codeblocks.org/
一个跟vs很像的c/c++的ide,用起来感觉很熟悉。
要说还差什么呢,可能就是没有一个visual assist之类的东西吧。
不过code::block是蛮开放的,可以添加plugins,应该会找到代替品的。
Saturday, 2 May 2009
ubuntu下的输入法 ibus
用了很久的scim...一直期待google pinyin 能出个linux版。。。盼来盼去,啥都没有。。。
不过据说ibus不错,于是来用用
ubuntu的官方源中有ibus,但是却没有ibus-pinyin,所以要加入ppa的源来安装ibus-pingyin。
导入公钥
$ sudo -i
# gpg --keyserver keyserver.ubuntu.com --recv-keys 21C022AA985E0E11
# gpg --export -a 21C022AA985E0E11 | sudo apt-key add -
加入ppa源
# echo 'deb http://ppa.launchpad.net/ibus-dev/ppa/ubuntu jaunty main' >> /etc/apt/sources.list
安装ibus
# apt-get update; apt-get install ibus-gtk ibus-pinyin
# im-switch -s ibus -a default
如果安装python-xdg,ibus不能正常运行。需要手动安装python-xdg
# apt-get install python-xdg
注销重新登入系统后就可以看到ibus出现在gnome的通知区域了。
ubuntu 9.04 gedit 打开txt 的一个问题
alt+F2 运行gconf-editor,在apps->gedit-2->preferences->encodings在右边的auto-detected中双击会弹出一个对话框添加一个GB18030。
linux下安装matlab r2009a
首先下载好matlba的光盘,挂载到某个文件夹下。
然后进入该文件夹,有一个install文件
在终端: sudo ./install (其实双击也可以的,但是最好还是用sudo, 因为中间可以某些地方需要权限)
然后选择manually install without internet (如果使用internet 貌似会叫你建一个mathwork的帐号)
一直点击ok,yes.
然后一个地方选择matlab安装的跟目录,可以改为 /usr/matlab
然后输入file installation key,
在mount matlab iso的文件夹下 打开crack/install.txt, 根据里面的指示, 输入 key
再继续ok下去
然后就开始install了吧
等到结束的时候,需要activation.
选择activation manually without internet
选择enter the path of the license file ,选择 crack/lic_standalone.dat
然后next,finish
于是matlab就好了
linux 下挂载 iso 文件
首先要建立一个文件夹来作为mount point: sudo mkdir /mnt/vcdrom
然后进行挂载: sudo mount -o loop -t iso9660 mydisk.iso /mnt/vcdrom
(mydisk.iso 就是你要挂载的iso文件的路径)
然后在/mnt/vcdrom就可以访问盘镜像文件mydisk.iso里的所有文件了。
卸载文件先挂载的ISO像镜:sudo umount /mnt/vcdrom
linux 使用ipmessenger//推荐使用 iptux
倒不是说因为iptux是中国人写的,ip messenger是日本人写的。
ip messenger的linux version 不支持传输文件夹。。。测试的结果是经常传不了,或者一个文件夹里面只传了一两个文件。。。在ip messenger g2ipmsg的 readme里面也承认这是buggy的。
iptux在ubuntu9.04的源里面就没有
也可以到http://code.google.com/p/iptux/ 下载
是完全兼容ip messenger,可以跟ip messenger通信,并且功能强大很多。
==================================================
到这里下载 http://www.ipmsg.org/index.html.en
GNOME2 IP Messenger by T.Kato (2008/10/27)
然后解压进入该文件夹,网上设置需要更改语言,但好像这个版本的已经不需要了。我才知道原来ip messenger是日本人写的。。。里面的注释都是日语
还要先下载一些依赖库:sudo apt-get install libxml-parser-perl libgnomeui-dev libpanel-applet2-dev gettext intltool
然后 ./configure --prefix=/usr --sysconfdir=/etc --enable-systray --with-ext-charcode=CP936
CP936 是 英语,要用中文的话,改成 GBK
linux下的飞鸽传书也是可以拖文件到飞鸽传书的窗口中,进行添加附件的,因此,可以利用这个方法,传输一个文件夹给对方。
然后sudo make; sudo make install
重启x之后,就可以在applications->accessories看到了
SCIM 与 firefox冲突问题
有时候打开firefox的时候,会无法切换输入法到scim输入中文。
网上找来一个解决方法,好像也没有完全解决这个问题。
修改 /usr/bin/firefox
sudo gedit /usr/bin/firfox
修改之前可以做一个备份
加入 19-21行,然后保存
MOZDIR=$HOME/.mozilla
13 LIBDIR=/usr/lib/firefox-3.0.3
14 APPVER=3.0
15 META_NAME=firefox
16 GDB=/usr/bin/gdb
17 DROPPED=abandoned
18
19 XMODIFIERS=@im=SCIM
20 GTK_IM_MODULE=scim-bridge
21 export XMODIFIERS GTK_IM_MODULE
Thursday, 30 April 2009
让gmail成为firefox & linux 默认邮件客户端
- 在Firefox中打开Gmail.
- 在加载Gmail的标签页中,复制如下javascript代码到你的地址栏中,如上图:
javascript:window.navigator.registerProtocolHandler("mailto","https://mail.google.com/mail/?extsrc=mailto&url=%s","GMail") - 如果Firefox 3 询问是否将Gmail添加为默认打开mailto的程序. 点击Add Application button
- 在tools->options->applications->找到mail to选择,选择gmail
Tuesday, 28 April 2009
ubuntu 9.04
各方面的支持都好了很多
用了一个晚上的时间来进行配置,现在看着很舒服了
show一下
不过玩游戏阿,看网络直播阿,之类的还是在windows比较好,
上baidu写博客也是。。。炯。。。
还有很多地方值得来总结的:)
Saturday, 23 June 2007
Mark Shuttleworth
So it 's Mark , in Xie Xide Hall, Center for American Studies, Fudan University.
I try to write down something he said in today's meeting. Maybe it's a good chance for me to practice my English note taking.
When I and LJH came to there, Mark has started talking. He was asking which new company is the one we admired much in the past ten year, Of course google,in my opinion, And he said thing about free software, of course , he has to say things about these.
And he said that, the two biggest changes in his generation during the decade, the first is the world market, that the things can travel through around the world more frequency. And the second is the Internet, the information can be shared fast and even immediately. And he also said that ,there are two methods to make wealth, one is do things everyone is doing ,but harder,and more efficiency, the other is to create , to keep on moving.
Then is the question time, well I think some question is really bad. And some I have forgotten. There are questions about free software and free content, and free PC game, and free software is just a trick of big company............
I have nothing to say, it's just so so.
er.................
you see, if I have money, and I have nothing to do, maybe I would take free software as fun.............