Archive for the ‘Ubuntu’ Category

Install Wireless USB Adapter TL-WN721N driver on Ubuntu 10.4

Hello Folks,

This last weekend and I have to play a little bit with Ubuntu 10.4 and my new wireless USB adapter TP-LINK model TL-WN721N. The Ubuntu 10.4 has not recognized the adapter, so I had to ask Google how to make that works. I’ve tried many things, one was using diswrapper with Windows Driver, but did not work. After another attempts I found a solution, and I decide to write here.

The first step is to get the firmware, you can download it from the following link:;a=blob_plain;f=ar9271.fw;hb=35b308409dc18991ec833c24972fd631c9f479a1

After the download you need to copy it to /dev/firmware directory:

sudo cp -r ~/Downloads/ar9271.fw /lib/firmware

Now we need to get the latest version of compact wireless, you can get it from the link below:

I got the file compat-wireless-2.6.tar.bz2

After the download you will need to uncompress the file:

tar -xjvf compat-wireless-2.6.tar.bz2

Now, it’s time to compile the driver. Enter in directory:

cd compat-wireless-2010-05-23/

and type the command:

sudo make

After the compilation, you can install the driver using the command:

sudo make install

Now, you need to unload the old driver and load the new one:

sudo make unload
sudo make load ath9k_htc

After loading the new driver you must reboot you system and once the system rebooted you will be able to use your wireless connection.

I hope this tip will be useful for you.

See you!!




Installing JRuby on Ubuntu

Today we will see how to install JRuby on Ubuntu

First of all you need to download the JRuby. Download the latest JRuby accessing the link:

I am using the version 1.3.1 (jruby-bin-1.3.1.tar.gz)

Open a terminal and go to the directory where you have downloaded file and unpack the jruby file using the following command:

$ tar zxvf jruby-bin-1.3.1.tar.gz

We need to set some environment variables. I will add the following line at end of file .bashrc in your home directory.

export JRUBY_HOME=/home/leonardo/jruby-1.3.1

Now, Let’s check whether JRuby is installed properly, type the command:

$ jruby -v

You should see something like this:

jruby 1.3.1 (ruby 1.8.6p287) (2009-06-15 2fd6c3d) (Java HotSpot(TM) Client VM 1.6.0_13) [i386-java]

Alright! If you are able to see the JRuby version, your system is configured properly.

Now you can start installing some gems:

$ jruby -S gem install jruby-openssl

jruby-openssl is necessary due JRuby doesn’t support the default Ruby’s openssl.

The parameter -S tells JRuby to use the scripts which are in JRuby’s bin directory, then in a second case to use the which ones in the system PATH.

If you want to install Rails:

$ jruby -S gem install rails

That’s all about!

Installing Ruby on Ubuntu

This post will teach you how to install the Ruby on Ubuntu.

So, open your terminal and type the following commands:

$ sudo apt-get install ruby1.8 ruby1.8-dev irb1.8 rdoc1.8 ri1.8

Now, lets install RubyGems:

$ wget
$ tar xvzf rubygems-1.3.4.tgz
$ cd rubygems-1.3.4
$ sudo ruby1.8 setup.rb

The above command will install the RubyGems version 1.3.4

Lets now create some links to make the use of Ruby easy:

$ sudo ln -s /usr/bin/gem1.8 /usr/bin/gem
$ sudo ln -s /usr/bin/ruby1.8 /usr/bin/ruby
$ sudo ln -s /usr/bin/rdoc1.8 /usr/bin/rdoc
$ sudo ln -s /usr/bin/ri1.8 /usr/bin/ri
$ sudo ln -s /usr/bin/irb1.8 /usr/bin/irb

That’s all! Now you can start using Ruby!

I will teach you how to install Rails on the next post.

All the best,