Virtualbox with Atheros AR9285 as network adapter

Today I once again desided to try a few Linux distributions, mostly to use as a testing server.

The VirtualBox setup screen
VirtualBox
I landed on VirtualBox as ny virtualization solution, and got down to it. Installation went great, and I got everything running. I set up the network solution as a bridged connection with the wireless network card on the host as the connection point with my hom erouter.

Now, everything works jolly for a variable amount of minutes, and the wireless card in Windows7 starts searching for my SSID. If I’m lucky it connects again, and everything works for a few minutes, then the same procedure again. And if I’m not lucky, I end up with a “spinning” connection, constantly connected but not connected.

I can’t really wrap my head around what’s causing this, cause in my mind the wireless should have stopped working imidiately, and not after a couple of minutes?

Now, this is when I’m using it as a bridged connection. So I tried to switch it over to NAT… And now it worked for 30 minutes without a single hickup… The conclution is, I guess, that in the end I myself is the only one to blame. NAT was the default option, and I just had to go and change it…

But still, it doesn’t work with a bridged connection. That’s something that’s still a grudge in my book!

WPA on your WLAN

Ok time to get you connected to that WPA secured wlan

Step one:

Get the wpasupplicant package from the repo if it’s not already installed:
sudo apt-get install wpasupplicant

Step two:

Create a file named wpa.conf or something (doesn’t matter what you call it really)
Paste this into the file:

ctrl_interface=/var/run/wpa_supplicant
network={
ssid="myssid"
psk="mysecret"
key_mgmt=WPA-PSK
proto=WPA
}

Replace myssid with the name of the access point and mysecret with the key. If you got the hex key and not a string, insert the hex key without the “”.
Save.

Step three:

Now, assuming your wlan drivers are running, and not connected to an access point, all you got to do is enter this is a terminal:

sudo wpa_supplicant -Dwext -iwlan0 -c/pathtofile/wpa.conf -dd

This should connect your device to the WPA secured wireless network.

You can also add that line to a file, save the file. (Mine’s called wpaschool cause i use WPA at school)
Then in terminal:

chmod 755 wpaschool (or whatever the name of your file is)

Now you can just enter:

./wpaschool
(name of file instead of wpaschool)

and that will do excacly the same thing.

Happy hunting…

PS. It might take a while to connect, so give it a min if it doesn’t give you access to the web right away.

WLAN with WEP

First step:
Make sure you have Ndiswrapper installed.
If you don’t, open a terminal and enter:

sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9

That should take care of getting ndiswrapper.

Step two:

Get the drivers.
Go to http://www.fujitsu-siemens.com,
then “Download Drivers“,
find the Amilo la 1703,
then go to Wlan.

Get the Windows XP drivers
Downloaded the drivers, and unzip them to where ever you want.

Step three:

Open a terminal and enter:

cd /path/to/unpacked/drivers/
sudo ndiswrapper -i sis163u.inf
sudo ndiswrapper -l

If that last command returns:
sis163u : driver installed
device (0BF8:100F) present

then you got everything set up ok and you can skip the next part.
If you get a message saying:
sis163u : driver installed

then you got the driver set up, but it doesn’t know where your wlan card is located.
If that is the case, you gotta find out what the address to your hardware is.
On my notebook this was:

sudo ndiswrapper -d 1106:4336 sis163u

Please leave a comment if 1106:4336 doesn’t fit your computer, as i don’t have another one to measure against.

Step four:

Load the drivers into the system by entering into the terminal:

sudo modprobe ndiswrapper

Now your wlan card should be up and running.
To check that it is, in the terminal type:

sudo iwconfig

if you see wlan0 listed there, you should be up and running.

Now all you need to do it open up the network manager from the menu:
System->Administration->Network
Then click wlan0 in the list and click the properties button, and set the accesspoint/wepkey details.

Canon ip5200r printer working on Ubuntu

How to get the Canon ip5200r wireless printer working on Ubuntu.

First, open the printer admin app:

System->Administration->Printing

Click New Printer

Select AppSocket/Hp JetDirect

Enter the ip of the printer on the network in the Host: section

Let the Port number be 9100

Click Forward

Select Canon from the database

Click Forward

Scroll yourself down to i560

Click Forward

Enter the name you want on the printer and description etc…

Click Apply

Try printing a testpage, this should now start printing on the printer.

Hope this helps anyone who’s struggling to get this one to work