Posts Tagged ‘debian’

Android USB tethering and Debian awesomeness

February 11, 2011 6 comments

Today the wireless network of my company was weird. I kept losing signal or simply losing connection. Ive never used my HTC Desire for tethering before but this time I had to.

I had my doubts that it would work out of the box, but it does.

  • Connect your Android device
  • set it to USB Tethering
  • debian will recognize it and connect over usb0.
  • enjoy.

My setup:

Debian 6 sqeeze

HTC Desire with Android 2.2


Don’t be afraid of backports

April 15, 2010 Leave a comment

Playing around with debian, i realized that most of my packages were really outdated. Was running Openoffice 2.4 and some other stuff i needed for developing software (java, python and python-webpy) were really old.
I am kinda new to Debian so I was being really carefull with the packages until I get comfortable with apt-get, dpkg and aptitude.
But after some time browsing around and doing single upgrades I decided to go for it. I just did
#aptitude -t lenny-backports safe-upgrade
Everything went fine! now I’m running actual versions of the packages i needed! pretty cool. I am starting to like the Debian package managers.

Still be carefull when doing this as some stuff could break. I did this because I had no important stuff here and didnt have much to loose. Make backups and so on before doing something like this. At your own risk!

have fun!

Debian Lenny ath5k and AR242x: the solution

April 12, 2010 Leave a comment

As promised.
In my previous post i mentioned the 2 possibilities to get this working. I decided to go with the kernel upgrade from the backports repositories.

After some reading and experimenting i got the wifi to work. It is not a clean solution but it works (at least in my home wlan, tomorrow ill test from work).

First get the backports repository to work (as root #):
#nano /etc/apt/sources.list
add these lines:
# repository
deb lenny-backports main contrib non-free

after that run:
# aptitude update

this will get u the backports repositories.

to get the kernel issue the following command:
#aptitude -t lenny-backports install linux-image-2.6.32-bpo.3-686
note: this is the image for my architecture and the kernel is the version at the time of writing.

Reboot when done.
Check with uname -a if the kernel installed succesfully.

For me it worked great. The only hiccup is that my network manager does not show the wlan but when issuing iwlist wlan0 scan i can sucesffully scan for networks! cool huh?

Now the configuration for your network:
#nano /etc/network/interfaces
add the following lines:
auto wlan0
iface wlan0 inet dhcp
wpa-ssid mynetworkname
wpa-psk mysecretpassphrase

The “auto” stanza will bring your interface up at system startup. If not desired, remove or comment this line.

going to System>Administration>Network should now show your wlan connection.

Thats it! i hope i could help!



Categories: debian specific, linux Tags: , ,

Debian Lenny ath5k and AR242x

April 12, 2010 Leave a comment

As i got my nokia n900 I started to experiment a little with Debian. So I decided to Install Debian Lenny on my main Laptop. Moving from Slackware to Debian was a tough decision but I thought it was time for me to try a new flavour of linux.

Installation was kinda long but easy. X booted nicely and I was enjoying the looks of Gnome (used to fluxbox).

After a while I tried to go online over WLAN. To my surprise my WLAN was not found. My thoughts were that maybe some module didnt load but everything was there.

ifconfig and iwconfig showed my wlan0 interface.

i made an lspci to see if my hardware was detected and the AR242x from Atheros showed fine. Now i googled why the hell isnt it working?

It turns out the out-of-the-box Lenny kernel 2.6.26-2-686 and the ath5k driver included do not like the AR242x.

check this link:

There are 2 options:

  • Use madwifi drivers.
  • install a newer backported kernel since this bug has been fixed in newer kernels.

havent tried it yet but i guess ill go for the 2nd option! I will keep you informed!


Categories: debian specific, linux Tags: , ,