Ruby on Rails on Ubuntu 10.04 Lucid Lynx

Just need to keep this for reference. Quite important when playing around with RoR. Thanks to the source

marvin@marvinmarcelo:~$ su
marvin@marvinmarcelo:~$ apt-get install build-essential
marvin@marvinmarcelo:~$ apt-get install ruby rdoc libopenssl-ruby
marvin@marvinmarcelo:~$ wget http://production.cf.rubygems.org/rubygems/rubygems-1.3.7.tgz
marvin@marvinmarcelo:~$ tar zxvf rubygems-1.3.7.tgz
marvin@marvinmarcelo:~$ cd rubygems-1.3.7
marvin@marvinmarcelo:~$ ruby setup.rb
marvin@marvinmarcelo:~$ ln -s /usr/bin/gem1.8 /usr/local/bin/gem
marvin@marvinmarcelo:~$ gem install rails

Torrent session via terminal

I’ve been looking on how to start a torrent session on another machine lately (on *nix flavor), and I thought there’s probably a command-line for it, and I was right. Since I can SSH thru in my Ubuntu machine at home, this sounds like a fit option.

The need arises when I’m in the office, working of course, and a movie title suddenly pops in my head and I get eager watching it. So I’d search for torrent for that movie with good remarks, at least watchable quality. Download it then SCP that to my machine at home and start session torrent on CLI. Takes at least a minute of my time to fire it up, but most importantly, it’s finished downloading when I get home. And watch on dinner I guess.

So, if you’re using Ubuntu, transmission is commonly installed there. But we need the transmission-cli package installed, which includes transmission-daemon and transmission-remote for starting CLI torrent session. First fire up the daemon, then use remote to add torrent file, like this one below

marvin@localhost:~/Desktop$ transmission-daemon
marvin@localhost:~/Desktop$ transmission-remote -a Avatar-2009-TELESYNC-XviD-ORC.torrent

If it says The program 'transmission-daemon' is currently not installed, just type the suggested install command. It should be like this

marvin@localhost:~$ sudo apt-get install transmission-cli

Now, if you want to find out download stats just add the -l or --list like the one below, will list all torrents and status.

marvin@localhost:~/Desktop$ transmission-remote -l

Use transmission-remote --help for other options. You can set upload and download limits too.

Here are useful links:

Our Sun

I haven’t seen the weather icon this bright the past few days or weeks on my desktop.

Screenshot

I recall “sun” was mentioned in the movie “Transformers: Revenge of the Fallen”. Just saw it last weekend, Saturday.

Fix for pidgin not connecting to Yahoo

update: scsa.msg.yahoo.com seems to work now. This is the default address in 2.5.8 for Ubuntu and Windows versions.

After a few search terms finding what’s going on recently with pidgin that it’s unable to connect to Yahoo. I found a correct temporary fix

using the page server: cn.scs.msg.yahoo.com instead of scs.msg.yahoo.com did the trick.


iPhone VNC Remote Desktop over 3G

I just had a chance to access my home PC using VNC over 3G. I was able to play with it only on local network before.

photo

photo2

What you need… on your ubuntu machine

  • Remote Desktop (vino)
  • System > Preferences > Remote Desktop. Check “Allow other users to view your desktop”. And best if you set a password and uncheck “Ask for confirmation”.

On your iphone…

  • Mocha VNC Lite http://mochasoft.dk/iphone_vnc.htm
  • Add your connection preferences.