JungleDisk (http://www.jungledisk.com) is a great data backup tool. It has Windows and Linux versions. The Windows version starts up on its own when Windows start, Here is the tutorial to auto start it in Ubuntu (kinda of):
Say after you download the src pkg from Jungledisk and unzip it to /path/to/jungledisk/.
Step one:
In /path/tojungledisk, write a wraper shell script, called junglediskstart
#!/bin/bash
ps aux | grep junglediskmonitor | grep -v grep
RET=$?
echo $RET
if [ $RET -ne 0 ]; then
export DISPLAY=:0.0
/path/to/jungledisk/junglediskmonitor &
fi
This wrapper script starts junglediskmonitor if junglediskmonitor is not running.
Step Two:
crontab -e
enter this line:
1 * * * * /path/to/jungledisk/junglediskstart
This crontab will call the wrapper script above every hour, attempting to start jungledisk.
NOTE: export DISPLAY=:0.0 in the wrapper script is super important. Junglediskmonitor needs $DISPLAY info, but crontab loses that. Without it, you wrapper will complain about "unable to initialize gtk".
I call it a "kinda of" autostart solution, because jungledisk does not start when Ubuntu boots up. It is a hack-ish solution.
But I do think you can make it real autostart by following the same idea, with a few tweaks in the junglediskstart script.
Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts
Wednesday, June 10, 2009
Thursday, January 22, 2009
Saturday, January 10, 2009
Friday, January 09, 2009
完成了从Win2000到Ubuntu的革命
机器又一次的给我莫名其妙的死掉了,终于下定决心痛定思痛 -- 换!
说换就换,Ubuntu 8.0.4 -- 装机很快,没咋地就都好了, 驱动一个不用装。
接下来就是换俺的那些个D版软件
Nero/DVD Shrink (对付Netflix) -- 不用了,装了K9Copy
Emule --- 改成了 aMule
Picasa 有Linux的版本
Office 就用 Open Office吧
照相机、录像机插上USB就可以直接拖文件。
最后PS3 Media Server本来就是Open Sources的,所以一样轻松搞定。
打印机还没有试,不知道灵不灵
不过Ubuntu 8.0.4的这次表现实在是令我刮目相看 -- 令我那4年的老机器(P4 2.8G 1G RAM)重新焕发青春
好了,从此以后再没有D版的问题了。
说换就换,Ubuntu 8.0.4 -- 装机很快,没咋地就都好了, 驱动一个不用装。
接下来就是换俺的那些个D版软件
Nero/DVD Shrink (对付Netflix) -- 不用了,装了K9Copy
Emule --- 改成了 aMule
Picasa 有Linux的版本
Office 就用 Open Office吧
照相机、录像机插上USB就可以直接拖文件。
最后PS3 Media Server本来就是Open Sources的,所以一样轻松搞定。
打印机还没有试,不知道灵不灵
不过Ubuntu 8.0.4的这次表现实在是令我刮目相看 -- 令我那4年的老机器(P4 2.8G 1G RAM)重新焕发青春
好了,从此以后再没有D版的问题了。
Monday, December 24, 2007
在Ubuntu下使用Google Talk
最近在我的Toshiba Satellite 3000上装了Ubuntu 6.06 (Dapper). 感觉使整个机器焕发了青春: 启动时间从原先的5-6分钟(Win2000)降到现在的1-2分钟; 所有Windows常用程序(firefox, 视频播放器,etc), 中文输入法都有.
今天,设置了Google Talk,方法如下:
0, Use Gaim (come with Dapper)
1, Choose "jabber" as the protocol
2, Put your username (without @gmail.com) in the Screen Name box,
3, Put "gmail.com" in the Server box.
4, Click "more options", put under "connect server": talk.google.com and 5222 as the port
5. You are done!
今天,设置了Google Talk,方法如下:
0, Use Gaim (come with Dapper)
1, Choose "jabber" as the protocol
2, Put your username (without @gmail.com) in the Screen Name box,
3, Put "gmail.com" in the Server box.
4, Click "more options", put under "connect server": talk.google.com and 5222 as the port
5. You are done!
Subscribe to:
Posts (Atom)

