OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Ubuntu => Topic started by: whykickamoocow on April 13, 2009, 08:04:50 am
-
Ive been trying to install aircrack onto my zaurus 3200 which has zubuntu running on it, When i try the command "apt-get install aircrack-ng" it come up with this message ever time,
root@Zubuntu:~# apt-get install aircrack-ng
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
aircrack-ng
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 962kB of archives.
After this operation, 1716kB of additional disk space will be used.
Err http://repository.handhelds.org (http://repository.handhelds.org) hasty/universe aircrack-ng 1:1.0~beta1-1
Could not resolve 'repository.handhelds.org'
Failed to fetch http://repository.handhelds.org/hasty-armv...beta1-1_arm.deb (http://repository.handhelds.org/hasty-armv5el/pool/universe/a/aircrack-ng/aircrack-ng_1.0~beta1-1_arm.deb) Could not resolve 'repository.handhelds.org'
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
root@Zubuntu:~# aircrack-ng
bash: aircrack-ng: command not found
root@Zubuntu:~# airmon-ng
bash: airmon-ng: command not found
root@Zubuntu:~#
Ive tried all way to do this and had ago with other programs and it still comes up with the same. Whats the best way to install these programs in zubuntu or can sombody tell me were im going wrong.
One more thing, can sombody tell me how to check if i have a good internet connection with my zaurus.
Regards Whykick
-
Your zaurus is failing to connect to the website repository.handhelds.org and is unable to download the necessary programs. Try opening http://repository.handhelds.org (http://repository.handhelds.org) on a web browser (on the zaurus) to see if you can connect to it. If you can, try installing again. If you cannot, the problem has nothing to do with program installation and rather is a problem with your internet connection.
-
For checking if you have a decent connection, I generally just use ping (eg, "ping www.google.com").
I've had issues with names not being resolved, and switching to OpenDNS helped. Trying a few times in close succession also seemed to have a benefit, but that probably won't work in this case, as APT is so very slow on the Z.
-
im starting to bang my head against a wall,i must be missing somthing out here, i tried to ping in and also had ago at opening the firefox browser and it looks like i dont have a connection as i thought i did. ive tried all ways to connect i.e with or without a wep key on and still comes up with nothing. ive installed wifi radar and for some reason it seems to it seems to connct to the wrong ip address, ive even checked my interface file and nothing is jumping out on me. Can somebody have a look at my interface setup and let me know were i am going wrong and what i need to do, also is it me or is everbody having trouble loading up firefox browser up as i was just wondering wether to plash out on a better sd card.
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto wlan0
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid sukmebeautifull
wireless_key xxxxxxxxxxxxxxxxxxxxxxxxxx
wireless_channel 11
iface atml0 inet dhcp
# Wired or wireless interfaces
iface wlan0 inet dhcp
iface wlan0 inet dhcp
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
address xxx.xxx.x.xx
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.1.253
# Zaurus 2.4 Lineo net_fd; obsolete
iface usbd0 inet static
address 92.16.215.3
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.1.253
# iPAQ 2.4 mach-sa1100/usb-eth
# (192.168.0.202 is the iPAQ's IP, 192.168.0.200 is the host's IP)
iface usbf inet static
address 92.16.215.3
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.1.253
# Bluetooth networking
iface bnep0 inet dhcp
Regards Whykick
-
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid sukmebeautifull
wireless_key xxxxxxxxxxxxxxxxxxxxxxxxxx
wireless_channel 11
iface atml0 inet dhcp
Why is there a separate atmel0 interface if there is already wlan0 on the wireless interface side doing dhcp?
And 2 lines later I see:
# Wired or wireless interfaces
iface wlan0 inet dhcp
iface wlan0 inet dhcp
There is lots of redundancy in that interface file...
What do ifconfig, iwconfig and dmesg report?
Oliver
-
Thanks for the replys, Im not that sure what the interface file is suppose to look like, my card comes up as wlan0 so i could do with all the help u can give me to get the right settings.
Regards whykick
-
make a copy of the interfaces file for future reference and then change it to read only this
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid sukmebeautifull
wireless_key xxxxxxxxxxxxxxxxxxxxxxxxxx
wireless_channel 11
you should be able to just do "ifup wlan0". check that the wifi card is active with "pccardctl status" first.
-
Hi
Ive tried all the things i have been shown on here and i am still having troubleconnecting to my router. Ive change my interface file to this
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']iface wlan0 inet dhcp
wireless_mode managed
wireless_essid sukmebeautifull
wireless_key xxxxxxxxx
wireless_channel 11[/div]
Which at first looked like this
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# The loopback interface
auto wlan0
iface lo inet loopback
# Wireless interfaces
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid sukmebeautifull
wireless_key xxxxxxxxxxxxxxxxxxxxxxxxxx
wireless_channel 11
iface atml0 inet dhcp
# Wired or wireless interfaces
iface wlan0 inet dhcp
iface wlan0 inet dhcp
# Ethernet/RNDIS gadget (g_ether)
# ... or on host side, usbnet and random hwaddr
iface usb0 inet static
address xxx.xxx.x.xx
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.1.253
# Zaurus 2.4 Lineo net_fd; obsolete
iface usbd0 inet static
address 92.16.215.3
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.1.253
# iPAQ 2.4 mach-sa1100/usb-eth
# (192.168.0.202 is the iPAQ's IP, 192.168.0.200 is the host's IP)
iface usbf inet static
address 92.16.215.3
netmask 255.255.255.0
network 192.168.0.0
gateway 192.168.1.253
# Bluetooth networking
iface bnep0 inet dhcp[/div]
This is what shows when i do ifconfig
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']root@Zubuntu:~# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 TX bytes:0 (0.0 [/div]
And this is what shows when i do iwconfig
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']oot@Zubuntu:~# iwconfig
lo no wireless extensions.
irda0 no wireless extensions.
wifi0 IEEE 802.11b ESSID:" " Nickname:""
Mode:Managed Access Point: Not-Associated Bit Rate:2 Mb/s
Sensitivity=1/3
Retry short limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
wlan1 IEEE 802.11b ESSID:" " Nickname:""
Mode:Managed Access Point: Not-Associated Bit Rate:2 Mb/s
Sensitivity=1/3
Retry short limit:8 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality=0/70 Signal level=-73 dBm Noise level=-73 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
[/div]
Can anybody tell me were i am going wrong.
many thanks
Regards whykick
-
Hi
Ive tried all the things i have been shown on here and i am still having troubleconnecting to my router. Ive change my interface file to this
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']iface wlan0 inet dhcp
wireless_mode managed
wireless_essid sukmebeautifull
wireless_key xxxxxxxxx
wireless_channel 11[/div]
What happens if you add
auto wlan0
to /etc/network/interfaces ?
Oliver
-
How should my interface file look oliver when i add the auto wlan0, I just want to see the lay out of the file to make sure im doing it right.
Regards whykick
-
Like this:
auto wlan0
iface wlan0 inet dhcp
wireless_mode managed
wireless_essid sukmebeautifull
wireless_key xxxxxxxxx
wireless_channel 11
Oliver
-
Thats just how i had mine, then in a terminal i typed ifup wlan0 and it came up with this
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']root@Zubuntu:~# ifup wlan0
There is already a pid file /var/run/dhclient.wlan0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/ (http://www.isc.org/sw/dhcp/)
wifi0: unknown hardware address type 801
Can't create addrlist socket
Failed to bring up wlan0.
root@Zubuntu:~# [/div]
I also tried using wifi-radar but it was saying that it couldnt accuire the ip address, i feel i got a bit further and im sure i can fix the problem b4 the weeks out, but also need as much help as i can get. ive just had the same trouble with my jornada running jlime but thankfully i got that one sorted.
regards
-
Thats just how i had mine, then in a terminal i typed ifup wlan0 and it came up with this
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']root@Zubuntu:~# ifup wlan0[/div]
You should not need to "ifup wlan0" if autoenable is set in the interfaces file.
In case that dhcp is already running (which the lock file implies) the ifconfig should show an interface besides lo0. True?
Is the dhcpd really running then (check with "ps aux |grep dhc"), if not manually remove the lock file and retry.
Btw I just scrolled down and found that there seem to be 2 different wlan interfaces initialised: wifi0 and wlan1 which looks odd. Should be wlan0 and wifi0 but both not correctly set up.
If you do lsmod which modules are loaded? hostap or orinoco/hermes?
Good luck,
Oliver
-
hostap causes two devies to appear, wlan0 (the interesting one) and wifi0 (a control one, which you shouldn't play with!). the appearance of these shows you've got hostap loaded; if in doubt "lsmod" and check hostap and not prism nor orinoco nor hermes appear!
the error "unknown hardware address type 801" is a known bug, change the entry for dhcp in /etc/passwd as per other reports about ubuntu.
HTH
-
Thanks for the help guys but i think its a little ove rmy head now,im still pretty new to linux and i think i have a hell of a way b4 im up to your standrds. I did a lsmod and this is what it came up with, i realy dont know what im looking at.
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']root@Zubuntu:~# lsmod
Module Size Used by
arc4 1696 2
ecb 2720 2
crypto_blkcipher 16388 1 ecb
cryptomgr 2752 0
crypto_algapi 14464 4 arc4,ecb,crypto_blkcipher,cryptomgr
ieee80211_crypt_wep 3712 0
orinoco_cs 13860 0
orinoco 40916 1 orinoco_cs
hermes 5824 2 orinoco_cs,orinoco
hostap_cs 54772 3
hostap 104900 1 hostap_cs
ieee80211_crypt 4928 2 ieee80211_crypt_wep,hostap
uinput 7904 1
autofs4 21060 0
snd_soc_spitz 5612 0
snd_soc_pxa2xx_i2s 3384 1 snd_soc_spitz
snd_soc_wm8750 18512 2 snd_soc_spitz
snd_soc_pxa2xx 4352 1 snd_soc_spitz
snd_soc_core 26336 3 snd_soc_spitz,snd_soc_wm8750,snd_soc_pxa2xx
snd_pcm_oss 39488 0
snd_pcm 71301 3 snd_soc_pxa2xx,snd_soc_core,snd_pcm_oss
snd_page_alloc 6216 1 snd_pcm
snd_mixer_oss 14752 1 snd_pcm_oss
snd_seq_midi 6240 0
snd_rawmidi 20672 1 snd_seq_midi
snd_seq_midi_event 6496 1 snd_seq_midi
snd_seq 52288 2 snd_seq_midi,snd_seq_midi_event
snd_timer 21124 2 snd_pcm,snd_seq
snd_seq_device 6796 3 snd_seq_midi,snd_rawmidi,snd_seq
snd 46804 12 snd_soc_spitz,snd_soc_wm8750,snd_soc_core,snd_pcm_oss,snd_pcm,snd_mixer_oss,snd_
awmidi,snd_seq,snd_timer,snd_seq_device
soundcore 6564 1 snd
rfcomm 36660 0
ircomm_tty 21256 0
ircomm 11268 1 ircomm_tty
hidp 14048 0
l2cap 21092 4 rfcomm,hidp
bluetooth 54792 3 rfcomm,hidp,l2cap
usbhid 19972 0
hid 36676 2 hidp,usbhid
pxaficp_ir 9184 0
ohci_hcd 21288 0
pxa27x_udc 15620 0
irda 107432 3 ircomm_tty,ircomm,pxaficp_ir
usbcore 127900 3 usbhid,ohci_hcd
mousedev 11652 1
root@Zubuntu:~#
[/div]
Regards whykick
-
Thanks for the help guys but i think its a little ove rmy head now,im still pretty new to linux and i think i have a hell of a way b4 im up to your standrds. I did a lsmod and this is what it came up with, i realy dont know what im looking at.
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']
orinoco_cs 13860 0
orinoco 40916 1 orinoco_cs
hermes 5824 2 orinoco_cs,orinoco
hostap_cs 54772 3
hostap 104900 1 hostap_cs
[/div]
The operating system loads some driver modules into the kernel if required. Which ones are loaded can be gathered via the lsmod command.
On zubuntu it is a known issue that for some prism chipset based cards the orinoco and hermes driver modules get loaded as well as the hostap module.
This will lead to incompatibility and faulty behavior of the card.
What you should do: Edit the file /etc/modprobe.d/blacklist.conf and the lines
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']
blacklist orinoco
blacklist orinoco_cs
blacklist hermes
blacklist hermes_cs
[/div]
hostap and hostap_cs must not be blacklisted.
Then reboot. This will prevent the orinoco and hermes modules from being loaded and should make things a lot better (though it is not very convenient for a newcomer, but hey, it is a Zaurus and you opted for some hacks by installing zubuntu )
After the reboot lsmod should not show the orinoco and hermes modules being loaded and there should be a wlan0 network interface if you do ifconfig.
I hope this helps, if not, ask
Oliver
-
if despite blacklisting the hermes and and orinoco modules they still appear in lsmod, then find the files under the /lib/modules directory, and rename them "slightly" - stick an "_" on the end of the file names.
-
Yeah that seemed to have worked,when i do a lsmod i dont see the orinoco or the hermes anymore, when i do the ifconfig i get the wifi0 and the wlan0 and both seem to look ok. when i use wifi radar to connect to my router it connects but it cant find the ip addy,swo its sort of halfway there but i still cant connect to the internet.Anybody got any ideas?
Regards whykick
-
I also get this message when i try this
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']root@Zubuntu:~# iwconfig wlan0 essid sukmebeautifull mode managed
root@Zubuntu:~# ifup wlan0
There is already a pid file /var/run/dhclient.wlan0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/ (http://www.isc.org/sw/dhcp/)
wifi0: unknown hardware address type 801
Can't create addrlist socket
Failed to bring up wlan0.
root@Zubuntu:~# ifup wlan0
There is already a pid file /var/run/dhclient.wlan0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/ (http://www.isc.org/sw/dhcp/)
wifi0: unknown hardware address type 801
Can't create addrlist socket
Failed to bring up wlan0.
root@Zubuntu:~# [/div]
Regards whykick
-
I also get this message when i try this
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']root@Zubuntu:~# iwconfig wlan0 essid sukmebeautifull mode managed
root@Zubuntu:~# ifup wlan0
There is already a pid file /var/run/dhclient.wlan0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/ (http://www.isc.org/sw/dhcp/)
wifi0: unknown hardware address type 801
Can't create addrlist socket
Failed to bring up wlan0.
root@Zubuntu:~# ifup wlan0
There is already a pid file /var/run/dhclient.wlan0.pid with pid 0
Internet Systems Consortium DHCP Client V3.0.6
Copyright 2004-2007 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/sw/dhcp/ (http://www.isc.org/sw/dhcp/)
wifi0: unknown hardware address type 801
Can't create addrlist socket
Failed to bring up wlan0.
root@Zubuntu:~# [/div]
Regards whykick
it seems you have a dhcp problem now, check this topic to try to fix it: https://www.oesf.org/forum/index.php?showtopic=26435 (https://www.oesf.org/forum/index.php?showtopic=26435)
-
I would just like to thank everbody on here who has help me out with this, at last i got it connected with wep, to all those who are like me a complete newbie, please just follow this post to get connected to your router. At times you will feel like banging your head but if you follow this post then all the hard must be done for you, im not sure on a cpl of thingsi have done to make this work, i need to read up about it,but at the end of the day it worked. thanks again.
Regards whykick