Archive for the ‘Linux’ 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:
http://git.kernel.org/?p=linux/kernel/git/dwmw2/linux-firmware.git;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:

http://wireless.kernel.org/download/compat-wireless-2.6/

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!!

Leo

Reference: http://www.theinquirer.net/inquirer/news/1603562/canonical-releases-ubuntu-linux-04-lts


Advertisements

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:

http://dist.codehaus.org/jruby/

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
export PATH=$JRUBY_HOME/bin:$PATH

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 http://rubyforge.org/frs/download.php/57643/rubygems-1.3.4.tgz
$ 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,

Leo

Installing OpenOffice.org 3 on Ubuntu

Today I spent some time installing the new OpenOffice.org version 3 on my Ubuntu Hardy. Following are the steps I did to get it installed:

1. Download the file OOo_3.0.0_LinuxIntel_install_en-US_deb.tar.gz from OpenOffice.org site.

2. Unpack the downloaded file:

tar zxf OOo_3.0.0_LinuxIntel_install_en-US_deb.tar.gz -C ~

3. Change to directory OOO300_m9_native_packed-1_en-US.9358

cd OOO300_m9_native_packed-1_en-US.9358

4. Install all the deb packages

sudo dpkg -i DEBS/*.deb

5. Now, you need to change your Gnome menu entries to use the new OpenOffice.org 3. Edit the file /usr/bin/ooffice

sudo gedit /usr/bin/ooffice

And change the second line to:

/opt/openoffice.org3/program/soffice "$@"

6. Salve the file and it’s done. Now you can access your OpenOffice icon and it should open the new OpenOffice.org 3

All the best!

Leo