Jaime Frutos Morales's blog


How to upgrade from Ubuntu 9.10 (Karmic) to Ubuntu 10.04 (Lucid)

Filed under: Ubuntu — acidborg @ 20:03

This post is a modified “déjà vu” of a previous one.

  1. Replace “karmic” for “lucid” in /etc/apt/sources.list : sudo sed -i 's/karmic/lucid/g' /etc/apt/sources.list
  2. Upgrade your system: sudo apt-get update && sudo apt-get -y dist-upgrade
  3. Reboot: sudo shutdown -r now


How to automatically download your favourite TV series on Ubuntu 9.10

Filed under: Linux — acidborg @ 21:00

Description: I’m going to explain how to automatically download your favourite TV shows using showRSS, Transmission and Flexget.


  1. Register at showRSS and add your favourite TV series.
  2. Go to the “feeds” section and generate your feed address.
  3. Download the latest transmission-common and transmission-gtk packages from here.
  4. Install them: sudo dpkg -i transmission*.deb
  5. Modify $HOME/.config/transmission/settings.json with the following values:
    "watch-dir": "\/home\/your_user\/Downloads",
    "watch-dir-enabled": true
  6. Go to flexget‘s web and download it.
  7. Install it: sudo easy_install FlexGet*.egg
  8. Edit flexget’s config file: vi $HOME/.flexget/config.yml
    flex's config.yml content
  9. Initialize flexget: flexget --initdb
  10. Edit your crontab to check your feed every hour: crontab -e
    0 * * * * /usr/local/bin/flexget


How to install and use Fabric on Ubuntu 9.10

Filed under: Python, SysAdmin, Ubuntu — acidborg @ 10:59

From its web: “Fabric is a Python library and command-line tool for streamlining the use of SSH for application deployment or systems administration tasks. More specifically, Fabric is:

  • A tool that lets you execute arbitrary Python functions via the command line;
  • A library of subroutines (built on top of a lower-level library) to make executing shell commands over SSH easy and Pythonic.

Naturally, most users combine these two things, using Fabric to write and execute Python functions, or tasks, to automate interactions with remote servers.


  1. Download the package from here
  2. Install it: sudo dpkg -i fabric*.deb


  1. Follow this short tutorial to learn the basics.
  2. Create a file called fabfile.py
  3. Fill it with your customized functions. For Example:
    from fabric.api import env, run, sudo
    env.hosts = ['ubuntu1', 'ubuntu2', 'ubuntu3']
    def upgrade_hosts():
    sudo('apt-get update && apt-get dist-upgrade ')
  4. Run fabric: fab upgrade_hosts

I find Fabric very useful and time-saving when maintaining similar servers, because you can design a task and run it automatically on all the servers.

Create a free website or blog at WordPress.com.