Posted 2 years, 1 month ago at 11:32 am. 0 comments
以下全文来自 http://www.herofit.cn/2007/03/20_168
ipmsg(译名:飞鸽传书)是局域网内的文件传输工具。它是免费的,开源的,在GPL协议下发布。它有windows,linux,Mac,java等不同平台或语言的版本。
下面我来说一下它的GTK2版在ubuntu dapper下的安装过程。
安装依赖的包
sudo apt-get install libxml-parser-perl libgnomeui-dev libpanel-applet2-dev
下载
wget http://www.ipmsg.org/archive/g2ipmsg-0.9.1.tar.gz
更改语言(不改则为日语)
将g2ipmsg-0.9.1/src/codeset.c中的CP932 改为CP936
配置
./configure –prefix=/usr –sysconfdir=/etc –enable-systray
编译
make
安装
sudo make install
使用
将G2IPMSG Applet小程序添加到你的面板上。
效果如图:
g2ipmsg.png
参考资料:
http://www.ipmsg.org
让gaim发声
Filed under: linux, 软件 — ahlongxp @ 22:00
以前以为gaim发声是它本身的事,今天仔细看了一下发现,gaim还可以利用系统中的程序进行发声。
sudo apt-get install alsaplayer
alsaplayer是alsa驱动的命令行的播放录音工具,可用于多个用途。现代linux一般都用alsa,所以它是最好的选择了。
装完后就有了播音工具aplay,录音工具arecord。让gaim发声用aplay就可以了。
主界面中按Ctrl+P, 选Sounds。
将Method选成command,Sound command填成/usr/bin/aplay %s。其它的可随意设置。
注意,此时的Test是无效的,要看效果请重启gaim。
gaim不再哑巴了吧!
Posted 2 years, 1 month ago at 11:32 am. 0 comments
方法很多,原文在 Random Wallpaper in Gnome,部分内容如下:
wordpress.com 国内被封,可以参看 google cache 的 Random Wallpaper in Gnome 页面
Change Wallpaper from Gnome Hacks : This one can use a random image from a folder you specify or download random wallpapers on the fly from the art.gnome.org website and use that.
Linux Desktop Hacks changer : This is highly recommended for those of you who want to understand what is going on, since it includes comments in the article to explain how it all works. Needs a cron job to be setup, like most others in this list.
Davyd’s Python Script : Short and sweet python script – picks images from a folder/directory. Needs cronjob.
Richi’s adaptation that uses the .gnome2/backgrounds.xml file: An adaptation of Davyd’s script that changes the wallpaper by editing the .gnome2/backgrounds.xml file. Different strokes for different folks!
Tomasz’ Random Wallpaper Changer: Choice is great! One more variation on the theme.
Gnome Background Changer: It uses the picture list defined in “Change Desktop Background / Desktop Background Preferences” dialog (in ~/.gnome2/backgrounds.xml) or you can specify a directory with pictures in it. You can define how long a picture will be shown before the background is changed. This script is made to run in the background indefinitely (until you log out), so it should be put into the background when started from the shell (gbchange &) or better be started from GNOME’s session management.
You can also use $sudo apt-get install wallpaper-tray to install a wallpaper changer from the command line. This will install wallpaper tray, but be warned it does not work too well with Edgy.
If you need the background changed each time you start a new session (that is, log on, for us non-geek folks), then use a script from above, and add it, after you have edited it to add the right directory etc, and ensuring it works to “System->Preferences->Sessions->Startup Programs”, and you’re all set.
I should think the gnome folks should include a tool to use a random background by default. Maybe it is just that none of the gnome desktop maintainers have are addicted to colorful backgrounds yet
相关日志:
webilder – ubuntu 墙纸自动换
Desktop Drapes - GNOME 的桌面墙纸自动更换软件
Posted 2 years, 1 month ago at 11:32 am. 0 comments
totem 中文字幕问题
感谢 Huang Jiahua在源里做好的 xine-fonts-cn,直接在新立得中搜索安装 xine-fonts-cn 即可。甚至都不用配置 ~/.gnome2/totem_config 文件。这样即可解决 totem 支持 .srt 中文字幕的问题。
源里没有的话,直接用 xine-fonts-cn_0.1.2_all.deb 地址下载
注:srt 与 avi 同名,totem 会自动加载字幕;或者,把两个文件一起拖到 totem 窗口中;或者命令行
totem file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.avi#subtitle:file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.chs.srt
原理如下:
totem 使用的字体在 /usr/share/xine/libxin/fonts 中,而这里没有中文字体,所以字幕乱码或干脆不显示。需要 xine-fontconv 这个软件来制作所需的中文字体。
以下为引用内容:
一:添加源代码源:
sudo gedit /etc/apt/sources.list
增加
deb-src http://archive.ubuntu.com/ubuntu/ breezy main restricted universe multiverse
二:下载源代码,编译出 xine-fontconv :
sudo apt-get update
sudo apt-get source libxine1c2
cd xine-lib-1.0.1/misc/
sudo gcc -o /usr/local/bin/xine-fontconv xine-fontconv.c `freetype-config –cflags –libs`
三:生成中文字体
cd /usr/share/xine/libxine1/fonts
sudo xine-fontconv /usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF simsun gb18030
四:修改totem的配置:
gedit ~/.gnome2/totem_config
找到中间的项目修改为:
subtitles.separate.font:simsun
subtitles.separate.src_encoding:gb18030
五:播放:
totem file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.avi#subtitle:file:///home/ubuntu/av/[地狱神探].Constantine.DVDRip.XviD.CD1-DoNE.chs.srt
via http://forum.ubuntu.org.cn/about2760.html
Mplayer 中文字幕
大约这样的命令格式
mplayer 影片名 -sub 字幕名 -subcp cp936 -font 中文字体名
中文字体名,就是类似 /media/hda1/WINDOWS/Fonts/simsun.ttc 这样(我的 windows 在 hda1)。我试验了
-font /usr/share/fonts/X11/misc/wenquanyi_12pt.pcf.gz
但是很卡。所以还是推荐 windows 的那些字体。下面是比较完整的例子
mplayer [肥皂].A.Soap.2006.LIMITED.DVDRip.XviD-MESS.avi -sub [肥皂].A.Soap.2006.LIMITED.DVDRip.XviD-MESS.srt -subcp cp936 -font /media/hda1/WINDOWS/Fonts/simsun.ttc
简写
mplayer *.avi -subcp cp936 -font /media/hda1/WINDOWS/Fonts/simsun.ttc
即可。但还avi和字幕要同名。
以下为引用内容:
mplayer 如果希望默认字体就支持中文
1、修改~/.mplayer/config文件中间的项目为:
font=/usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF
subcp=cp936
2、修改`/.mplayer/gui.conf文件中间的项目为:
sub_auto_load = “yes”
sub_unicode = “yes”
sub_pos = “99″
sub_overlap = “no”
sub_cp = “cp936″
font_factor = “0.750000″
font_name = “/usr/share/fonts/zh_CN/TrueType/SIMSUN.TTF”
font_encoding = “unicode”
参考资料:
totem 观看 avi+src 中文字幕方法
guoshuang2007-11-06+把电影和字幕拖进 Kaffeine 窗口,在设置中 subtiltle 选择编码,中文一般是 gb18030。
Posted 2 years, 1 month ago at 11:32 am. 0 comments

新立得搜索并安装 libgtk2-gladexml-perl 和 libgladexml-perl。直接运行解压包里的 bloglines-notifier 即可。
http://jodrell.net/projects/bloglines-notifier
Installation is very simple – just make the bloglines-notifier script executable and put it somewhere in your $PATH.
All the other files are for development use – they are included inline in the program and do not need to be installed.
You will need the following Perl scripts to use this program:
Gtk2 (compiled with support for GTK+ >+ 2.10)
Gtk2::GladeXML
LWP
all platform notifiers
http://www.bloglines.com/about/notifie
Posted 2 years, 1 month ago at 11:32 am. 0 comments
sudo apt-get install checkgmail
即可。这个比下面的 gmail-notify 功能更多一些,可以直接查看最近的一些邮件,发信等等。
二、gmail-notify
sudo apt-get install gmail-notify
更适合等信。
三、直接用 livebookmark 订阅自己的邮箱,只要有firefox就可以了,win 下也可如此。我以前主要用这种方式。
https://mail.google.com/mail/feed/atom
BTW:建立 checkmail 菜单操作如下
sudo gedit /usr/share/applications/checkgmail.desktop
内容如下:
[Desktop Entry]
Encoding=UTF-8
Name=CheckGmail
Exec=checkgmail
Terminal=false
Type=Application
StartupNotify=true
Icon=
Categories=Application;Network;
然后刷新 gnome 菜单
sudo killall gnome-panel
checkgmail 的图标图片在 gmail 图标 可以找到。
相关日志:
gmail IMAP 协议设置
checkgmail 资料
How do I play a sound when new mail arrives?
Enter a command in the “Command to execute on new mail” section in the preferences. For example, to play a WAV sound, you could use
aplay /path/to/mysound.wav
What else can the “Command to execute on new mail” do?
Well, it can do whatever you want. I use it to turn on my laptop’s dedicated mail LED light:
echo 1 > /proc/acpi/asus/mled
but anyone with the Blinkd software package installed could get their numlock or scroll-lock lights to blink with
blink –numlock –rate %m
What’s that ‘%m’ thing doing there? Well, that’s a new feature of version 1.10.1, and represents the number of new messages. Which means that in the example above your numlock LED will blink with the number of new messages. It’s gimmicky, I know (and there’s no way I could live with it personally) … but you’ve gotta admit, it’s kinda cool!
If you’re going to turn an LED on, though, you’ll also want to turn it off – and that’s why there’s also a “Command to execute for no mail” option. In the example above, you’ll want something like
blink –numlock –rate 0
And of course, you can combine options together by using semicolons, for example:
aplay /path/to/mysound.wav; blink –numlock –rate %m
The whole idea is to be as extensible here as possible, and recognise that not everyone wants a sound to play when new mail arrives, but they might want something else to happen instead …
Posted 2 years, 1 month ago at 11:32 am. 0 comments
除了和 windows 下一样的 alt+tab 意外,还有 alt+esc。
再 加上 shift 键,反向。
Posted 2 years, 1 month ago at 11:32 am. 0 comments
★ Beep Media Player
简单的播放器
★ Banshee
音乐管理和播放
Import, organize, play, and share your music using Banshee’s simple, powerful interface.
Rip CDs, play and sync your iPod, create playlists, and burn audio and MP3 CDs. Most portable music devices are supported.
★ Rhythmbox
带 Album 管理的播放器
★ Listen
据说是最好的音乐播放器。
A nice music player and manager for GNOME
With Listen you can:
- Play your favorite songs
- Manage your library
- Make playlists
- Automatically or manually download album covers
- Automatically synchronize album covers with iPod
- Easily burn an audio CD
- Directly get informations from wikipedia when you play a song
- See the lyrics of a song
- Have statistics about your favorite songs, albums or artists
- Listen to web radio
- Submit your songs to Audioscrobbler
- Quick access to last.fm related file
★ XMMS
老牌播放器,现在显得有点过时了。
★ quod libet
★ amarok
KDE下的播放器。功能强大。我喜欢它的 win+b 下一首歌快捷键,以及显在在系统托盘功能。
★ Muine Music Player
简洁、舒适的播放器
★ mplayer
强大的播放器,甚至可以在tty终端中播放。就是图形界面差了些。
★ kaffeine
KDE 音乐播放器。
★ Juk
KDE 播放器
★ Quod Libet
Quod Libet is a GTK+-based audio player written in Python. It’s designed around the idea that you know how to organize your music better than we do. It lets you make playlists based on regular expressions (don’t worry, regular searches work too). It lets you display and edit any tags you want in the file. And it lets you do this for all the file formats it supports — Ogg Vorbis, FLAC, MP3, Musepack, and MOD.
★ exaile
★ Exaile
is a music player aiming to be similar to KDE’s Amarok, but for GTK+ and written in Python.
★Decibel Audio Player
Decibel Audio Player is a GTK+ open-source (GPL license) audio player designed for GNU/Linux, which aims at being very straightforward to use by mean of a very clean and user friendly interface. It is especially targeted at Gnome and will follow as closely as possible the Gnome HIG.
相关日志:
linux mp3 中文乱码问题
ubuntu 媒体
Guide to Best Linux [Ubuntu (GNOME)] Applications
ubuntu 下中文字幕问题
ubuntu 下让 totem 播放 rmvb
ubuntu feisty amd64 播放 rmvb 问题
Posted 2 years, 1 month ago at 11:32 am. 0 comments

原文来自 http://ubuntu.wordpress.com/2006/12/16/gnome-open-open-anything-from-the-command-line/
倒霉的中国孩子…wordpress.com 似乎又不能访问了…
还好找到个中文翻译版 gnome-open 的一些妙用
gnome-open (alt+f2)很类似于 windows 下的 开始 -运行(win+r)。
在终端运行 gnome-open 是一回事。
gnome-open http://…
gnome-open mailto://a@a.com
gnome-open file:///home/guoshuang
gnome-open /home/guoshuang
分别是打开浏览器、发邮件、nautilus文件管理器
gnome-open file:///home/guoshuang/1.avi
播放1.avi
alt+f2 与终端 #gnome-open 区别在于,当前目录不同。alt+f2 在根目录。
BTW:我一直都把 ubuntu 的 win+r 映射成了 打开终端,似乎不太合理啊,应该改成这个才对,:)
Posted 2 years, 1 month ago at 11:32 am. 0 comments

系统-首选项-可移动驱动器和介质,可以设置连接移动设备时,处理方式。
BTW:
gnomenettool
devices → 顯示目前網路設備
● ping → 可讓你去 ping 任何一個 ip
● Netstate → 顯示目前的網路情況,
● Traceroute → 顯示連結到某一 ip 的路由路徑
● Port Scan → 這個大家應該都了解,可查出某個 ip 所開放的 port 服務
● Lookup → 和 nslookup 指令類示,不過顯示更多的資訊
● Finger → 查看使用者資訊,這在目前前應該沒什麼用了,因為基於安全問題一般都會關掉
● Whois → 查看某個 ip 或網域名稱的資料
Posted 2 years, 1 month ago at 11:32 am. 0 comments
以下为引用内容:
Ubuntu刚建好的一个新网页,宣布将在四月份推出Ubuntu Studio。
这是一个相当具有野心的项目,Ubuntu表示将在Ubuntu操作系统上添加多媒体编辑功能,提供给业已熟悉了Ubuntu-Gnome桌面环境的专业人士或者Linux音频,视频,图形的狂热爱好者。
预计将与07年4月推出的Ubuntu 7.04 Feisty Fawn一起发布。
via lupa
BTW:
这篇 Vista出Windows和Linux是战是和 不错
以下为引用内容:
5年的时间、近1万多人的参与、60多亿美元的研发测试费用——这些数字只是微软的下一代操作系统Windows Vista的一些特征。
在最近召开的CES 2007上与新闻机构数不清的会面中,盖茨把重点特别放在了作为下一代操作系统的Vista的功能上。自2006年5月起,绝大多数业内人士都有机会测试过它的很多版本,但他们坦率地讲,Vista并不值得推荐。当询问使用过Vista的朋友时,他们也表达了同样的意思:“Vista肯定比XP好,但我还不会推荐它,因为它不稳定;此外,实际上,它看起来像是加上了Service Pack 3和光鲜的用户界面的XP;而且它强迫你升级(硬件)。”
从CES 2007上的所见所闻,微软试图让Vista成为一种媒体中心OS,而不是真正可靠的OS,它更多地关注用户的娱乐需要。微软公司媒体中心主管Jason Seuss将Vista的这种重要特性描述为“一种消费你的数字媒体的统一的界面——这对于微软针对消费者的政策很有启示作用:微软大力推行它的标准,很少开放与其他平台的交流。
但是,Vista不仅仅只是为了播放视频、音乐或玩游戏。不幸的是,其源于开发的早期阶段的重大改进之一WinFS,早已被埋葬了,这可能是Vista不能成为下一代OS的又一个论据。
以下为引用内容:
荒谬的是,长期讨论的Windows盗版实际上是开源的大敌和对微软的宝贵帮助。在盗版盛行的国家(如俄罗斯或巴西),开源软件的市场渗透率最低,Windows平台占据统治地位。此外,微软甚至可以将盗版转化为利润(并且它肯定已经在做这种事)。
当然,还有其他需要讨论的原因,开源社区应当放心,因为Windows打败Linux的惟一途径是让价格变为零,而这是不可能的。只要存在Linux开发人员,Vista(或者其他任何来自微软的未来的OS)将永远面临威胁。
对于我们最终用户来说,Linux和Windows之战当然给我们带来了为我们提供选择的好处。
ad 468x60