Archive for August, 2008

Making wifi (802.11) device work in Ubuntu on MacBook and other laptops with Atheros chipsets

Monday, August 25th, 2008

Several friends have been asking me how I made my wireless device in my MacBook running Ubuntu Linux worked. Others with different brands of laptops have shared also the same problem. I discovered that most of these laptops (MacBook included) have wireless devices with the same Atheros chipsets.

To check if your laptop have Atheros, do:

lspci | grep Wireless

The result:

02:00.0 Network controller: Atheros Communications Inc. AR5418 802.11abgn Wireless PCI Express Adapter (rev 01)

will tell you that you have the Atheros chipsets.

So here’s what you need to do to make your wireless work in Ubuntu:

1. First, make sure you have an alternative Internet connection through your wired ethernet port.

2. For Ubuntu (8.04) Hardy, you just need to install linux-restricted-modules and madwifi-tools packages:

sudo apt-get install linux-restricted-modules madwifi-tools

Prior to Hardy with my laptop installed with Ubuntu (7.10) Gutsy, here’s what I did using Subversion (try this if the first instruction won’t work in Hardy):

- Install Subversion to get the driver source and the needed build tools:

sudo apt-get install build-essential subversion autoconf automake

- Get madwifi using subversion:

svn co http://svn.madwifi.org/madwifi/trunk madwifi

- Compile and install madwifi driver (module name: ath_pci)

cd madwifi
make
sudo make install-modules

The driver is now installed and will be enabled after the next reboot or can be enabled by:

sudo modprobe ath_pci

I was always having difficulty connecting using network manager, so I installed an alternative: wicd.

1. To install wicd you need to add to your repository (append to /etc/apt/sources.list) the line:
“deb http://apt.wicd.net hardy extras”

You can do this by:

echo “deb http://apt.wicd.net hardy extras” >> /etc/apt/sources.list

2. Update your repository:

sudo apt-get update

3. Install wicd:

sudo apt-get install wicd

Note: this will remove your network manager.

You can then run wicd from the menu -> Applications -> Internet.

References:

Y4IT 2008: The Biggest Youth I.T. Event of 2008

Saturday, August 23rd, 2008

Philippine Youth Congress in Information Technology Y4IT 2008Y4IT 2008 Sept 2 - 5, 2008, UP Theater, UP Film Center and UP Ang Bahay ng AlumniThe Philippine Youth Congress in Information Technology or “Y4iT” is an annual IT event hosted by UP IT Training Center (UPITTC) and UP System Information Technology Foundation (UPSITF) in cooperation with Philippine Society of IT Educators (PSITE), Computing Society of the Philippines (CSP), and the UP ITTC Student Volunteer Corps.

Now on its 6th year, the Y4IT is expected be attended by more than 17,000 youth from all over the country.

Some of the Congress Topics are:

Nanobiophotonics & Wireless Technology · eLearning 2.0 · Blogging · CGI in Film Animation · Social Networking · Blu-Ray Technology · IT Certifications · Careers in Embedded Systems · Podcasting · PhilNITS as a National IT Standard · What Employers Look for in IT Graduates · Outsourcing & Offshoring · News Portals: The New Information Channel · Next Generation Game Development · IT in Medicine · Video on Demand · Mobile Animation · Ruby on Rails · IT Forensics · IT Entrepreneurship · Wikipedia & Collective Intelligence · Information Security Analytics · Digital Media & Distribution Channels · Photoblogging

The Y4iT 2008 Program is constantly being updated pls visit:
http://y4it.up.edu.ph/index.htm

Creating a Personal Repository (esp if your network has a slow or no internet connection)

Sunday, August 17th, 2008

The Ubuntu desktop CD installer due to limited space contains only what is commonly needed in a desktop. No server packages. So if you try to install a server package, it would really look for an internet connection.

The same way with the Server CD installer. It does not contain everything.

I think they tried to balance the practicality, economy and ease of distributing the software by using only the CD media with a capacity of only 800MB. Given the limited space, they have to prioritized what should be included and have the other software available via the internet.

So, if you’re managing a network with several PCs, there will be times that you will need to update them or need something from the repositories in the Internet — when doing installation and your network connection is also slow or if you don’t have an internet connection at all — a suggestion is to create your own local or personal ubuntu repository. In this way, there is no need for all the PCs to access repositories in the Internet and eventually save on that precious bandwidth.

Then install or update from there using apt. Here’s a good reference/howto to create a personal repository:
https://help.ubuntu.com/community/Repositories/Personal

But of course you have to download the necessary .deb files first and place them in your repository. Next post, a way (work around) how to do this …..

Ubuntu in MacBook: Dual Screen or Connecting to a LCD/Mutimedia Projector

Sunday, August 3rd, 2008

To connect my MacBook to an LCD/Multimedia Projector using a vga to mini-DVI adapter connected to the mini-DVI port, I use xrandr. [for more info do a $man 1 xrandr]

First, you need to check on the available resolutions.
With the other screen/monitor or multimedia projector attached to your MacBook do:

$ xrandr -q

(more…)