Atheros Wireless Setup - Ubuntu
As I stated earlier, I just bought a new laptop and installed Ubuntu 6.10 (Edgy Eft) on it. All was working apart from the wireless connection. The Laptop comes with a Atheros wireless card. Ubuntu also comes installed with madwifi drivers for the card. So in theory things should just work, right ? Well no. The version of the wireless card I have (I do not have the version to hand) does not work with the current ubuntu package of madWiFi drivers.
So this is a quick step by step tutorial on how I got things to work nicely :
- Get the g++ compiler : sudo apt-get install build-essential
- Download subversion : sudo apt-get install subversion
- Create directory to store the drivers and navigate to it.
- Download latest madwifi drivers using subversion : subversion svn checkout http://svn.madwifi.org/trunk madwifi
- Get the current Kernel you are running : uname -r
- Navigate to the correct lib directory : cd /lib/modules/$(uname -r) (use the output from the previous step to get the directory)
- Delete the net lib files : sudo rm -rf net
- Delete the madwifi files : sudo rm -rf madwifi
- Delete this folder if it exists : sudo rm -rf madwifi-ng
- Find the modules currently installed that you need to unload : lsmod | grep ath
- From this output above issue a rmmod command for all the modules : sudo rmmod modulename
- Go back to where you downloaded the new subversion drivers and run : sudo make and then sudo make install answer yes to remove the old module.
- Load all of the modules you have just unloaded using modprobe. These should be: sudo modprobe ath_pci sudo modprobe ath_rate_sample sudo modprobe wlan sudo modprobe ath_hal
- Check to see if modules have been loaded by typing dmesg and looking at the system log.
- Open up network gui in Ubuntu and enable the wifi card and set the sessid
The card should now be configured. However if you want a dock applet that informs you how much strength your wireless card has, I would suggest netapplet.
I hope this has helped someone. This took me about 2-3 hours to get working!
Hamza
Dual Monitor Setup - Ubuntu ATI
I wanted to get my dual monitor setup working at work. I have the latest veresion of Ubuntu (6.06 LTS – the Dapper Drake).
aticonfig This is a really easy way to get it working. I have a Dell Optiplex GX620 with a ATI graphics card. The card can support a dual monitor setup.
It turns out that ati have supplied a program (aticonfig) that inspects your current xorg.conf file and then changes it to allow for dual monitor setup.
Here is what you do in a terminal window :
sudo aticonfig –initial=dual-head –screen-layout=left
You may want to change the left to be right, dependendant on where your main monitor is (monitor 0).
As I have two monitors that support diffrent resolutions, the setup was using 1024×768 on both screens and I could not drag windows accross screens (I could drag the mouse :)
To address the dragging window issue, I did this after I executed the first command :
sudo aticonfig –dtop=horizontal, reverse –overlay-on=1
If you look at the help page for aticonfig, you will see that dtop can take different parameters. Because my second screen was to the left of monitor 0, I had horizontal, reverse But if it was to the right I would have used horizontal only.
To address the screen resolution do this (please see note)
sudo aticonfig –resolution=0,1600×1200,1280×1024,1024×768
This now sets my monitor 0 to be able to support 1600×1200 resolution. My smaller monitor (monitor 1) will use 1024×768, which is what I want. You can simply change where it says 0 to be 1 This will now change monitor 1.
Now simply restart gdm to see the effects. Or if you can’t do that, just restart the machine.
Note Before you start changing the resolution, you need to know which is defined as monitor 0. As in my case monitor 0 supports a higher resolution then monitor 1. The easy way to find this out is to do the first two steps, start up and then the monitor with the menubar on top of it is monitor 0. If it is not the monitor you wanted, you can simply swap around the vga cables that go into the back of the video card There is a way to do it by editing the xorg.conf, but this is supposed to be a simple way of doing it :)
I hope this helps someone!
Hamza