You are not logged in.

#1 2009-03-13 15:21:45

mahan_h
Member
Registered: 2009-03-11
Posts: 53

[SOLVED] Wireless installation

My wireless internet connection works like a charm with Ubuntu and the network-manager applet only by providing the wireless pass phrasse, but it seems like I can't get it work in my archlinux fresh install.

1- I installed required wireless_tools and drivers
2- I almost read the related "beginners guide" and "wireless setup" page and followed the instructions

the specifications of my wireless network is:
device name       : Linksys WAP54G
network           : Static IP
IP address        : 192.168.1.245
subnet mask       : 255.255.255.0
default gateway   : 192.168.1.1
SSID              : linksys
channel           : 6
network mode      : mixed mode
security          : WPA Personal
encryption        : TKIP

the ubuntu's nm-applet settings:
Mode                 : infrastructure
MTU                  : automatic
wireless security  : WPA & WPA2 Personal
IPv4 Method       : automatic (DHCP)

# lspci | grep -i net
03:00.0 Ethernet controller: Broadcom Corporation BCM4401-B0 100Base-TX (rev 02)
03:03.0 Network controller: Intel Corporation PRO/Wireless 2915ABG [Calexico2] Network Connection (rev 05)

# iwconfig
lo        no wireless extensions.

eth0      IEEE 802.11g  ESSID:"linksys"
          Mode:Managed  Frequency:2.437 GHz  Access Point: 00:90:4C:91:00:01
          Bit Rate:54 Mb/s   Tx-Power=20 dBm   Sensitivity=8/0
          Retry limit:7   RTS thr:off   Fragment thr:off
          Power Management:off
          Link Quality=86/100  Signal level=-43 dBm  Noise level=-85 dBm
          Rx invalid nwid:0  Rx invalid crypt:1  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:3

eth1      no wireless extensions.

The networking section of /etc/rc.conf

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
HOSTNAME="myhost"
eth0="eth0 192.168.1.254 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.1.1"
ROUTES=(!gateway)

The contents of /etc/hosts
127.0.0.1    localhost.localdomain    localhost,myhost

anyone could help me config my connection please?
Regards

Last edited by mahan_h (2009-03-14 14:42:05)

Offline

#2 2009-03-13 15:46:21

ogronom
Member
From: Toronto, Canada
Registered: 2008-05-06
Posts: 123

Re: [SOLVED] Wireless installation

Looks like drivers are working... What is the problem?

If you use some graphical enviroment why don't you try some GUI tools instead of wireless_tools (which are great, but ... well I like wicd more).  For example, Gnome-Networknanager -- if it works in Ubuntu it will work in Arch

Offline

#3 2009-03-13 15:52:49

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED] Wireless installation

Maybe I'm wrong here but it looks like your wireless is eth1 and your rc.conf is set for eth0.  Also, if you're using wpa encryption you need wpa_supplicant setup.  Maybe recheck the guides and wiki.  Netcfg is a good simple network manager for archers.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#4 2009-03-13 15:54:05

vacant
Member
From: downstairs
Registered: 2004-11-05
Posts: 816

Re: [SOLVED] Wireless installation

You seem to be trying to specify your IP address on the wired interface. Remove the network stuff and install wicd (add wicd to your DAEMONS in rc.conf) and as root "/etc/rc.d/wicd start" then as a user run wicd-client .

e.g, my rc.conf includes

DAEMONS=(syslog-ng hal wicd @dnsmasq @sensors @laptop-mode @ntpdate @crond @cpufreq)

Last edited by vacant (2009-03-13 15:55:34)

Offline

#5 2009-03-13 15:58:50

mahan_h
Member
Registered: 2009-03-11
Posts: 53

Re: [SOLVED] Wireless installation

actually I need the internet connection to install the X server and the rest from now on...

You seem to be trying to specify your IP address on the wired interface. Remove the network stuff and install wicd (add wicd to your DAEMONS in rc.conf) and as root "/etc/rc.d/wicd start" then as a user run wicd-client .

e.g, my rc.conf includes
Code:

DAEMONS=(syslog-ng hal wicd @dnsmasq @sensors @laptop-mode @ntpdate @crond @cpufreq)

BTW, as I'm a total newbie in arch, I couldn't install wicd or wicd-client you mentioned by pacman -S wicd.

Last edited by mahan_h (2009-03-13 16:28:41)

Offline

#6 2009-03-13 16:28:28

sparchy
Member
From: arizona, usa
Registered: 2007-11-20
Posts: 32

Re: [SOLVED] Wireless installation

The contents of /etc/hosts
127.0.0.1    localhost.localdomain    localhost,myhost
                                                                   
Maybe that's just a typo but check your hosts file again. I think only whitespaces and tabs are honored in /etc/hosts.

Offline

#7 2009-03-13 16:32:14

mahan_h
Member
Registered: 2009-03-11
Posts: 53

Re: [SOLVED] Wireless installation

Maybe that's just a typo but check your hosts file again. I think only whitespaces and tabs are honored in /etc/hosts.

yeah, the default hosts didn't have the ,myhost but as rc.conf had the HOST="myhost" I added that..(after wireless still didn't work)

Offline

#8 2009-03-13 16:49:03

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [SOLVED] Wireless installation

Are you running an old kernel version?
I seem to recall that these days the wireless interface is 'wlan0' rather than 'eth1'

Not that it should make much difference, but when it comes to wireless, newer is usually better ...

Offline

#9 2009-03-13 17:05:06

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: [SOLVED] Wireless installation

The problem here is for sure that he needs to use wpa_supplicant. He could use netcfg + netprofiles (which I recommend) or wicd.

He's not connecting to access point because rc.conf doesn't know about WPA (IIRC, it isn't possible to configure it to make it work with WPA). So choose and follow instructions included in the two pages I linked.

Also, if you want to add your hostname to /etc/hosts, please use first your FQDN, then simple hostname, then localhost.localdomain and at last localhost. An example follows:

127.0.0.1  linus.torvalds.local  linus  localhost.localdomain localhost

.

HTH,


syntaxerrormmm - Homepage

Offline

#10 2009-03-13 17:11:11

mahan_h
Member
Registered: 2009-03-11
Posts: 53

Re: [SOLVED] Wireless installation

The problem here is for sure that he needs to use wpa_supplicant. He could use netcfg + netprofiles (which I recommend) or wicd.

He's not connecting to access point because rc.conf doesn't know about WPA (IIRC, it isn't possible to configure it to make it work with WPA). So choose and follow instructions included in the two pages I linked.

Also, if you want to add your hostname to /etc/hosts, please use first your FQDN, then simple hostname, then localhost.localdomain and at last localhost. An example follows:
Code:

127.0.0.1  linus.torvalds.local  linus  localhost.localdomain localhost

OK, Thanx, but beside revising my hosts what do you exactly suggest?

Offline

#11 2009-03-13 17:26:35

syntaxerrormmm
Member
From: Italy
Registered: 2008-10-22
Posts: 80
Website

Re: [SOLVED] Wireless installation

You need to authenticate with your access point with wpa_supplicant. The only two methods that will permit you to have automatic configuration on boot are wicd and netcfg. Please, read on and inform yourself on which one best suites your need.

Just as a quick hint, save this code as /etc/network.d/wpa-home:

CONNECTION="wireless"
DESCRIPTION="Home LAN"
INTERFACE=eth0
SCAN="yes"
SECURITY="wpa-config"
ESSID="linksys"
KEY="your-wpa-psk-passphrase"
IP="dhcp"
TIMEOUT=100

Try save these lines in the file indicated, then launch as root:

netcfg wpa-home

This is how to work it out with netcfg. If it works, you need to instruct the system to use netprofiles via rc.conf (see my previous post).

Since you know the solution, I leave to you to inform on what each variable do.

HTH,


syntaxerrormmm - Homepage

Offline

#12 2009-03-13 18:29:36

mahan_h
Member
Registered: 2009-03-11
Posts: 53

Re: [SOLVED] Wireless installation

You need to authenticate with your access point with wpa_supplicant. The only two methods that will permit you to have automatic configuration on boot are wicd and netcfg. Please, read on and inform yourself on which one best suites your need.

Just as a quick hint, save this code as /etc/network.d/wpa-home:
Code:

CONNECTION="wireless"
DESCRIPTION="Home LAN"
INTERFACE=eth0
SCAN="yes"
SECURITY="wpa-config"
ESSID="linksys"
KEY="your-wpa-psk-passphrase"
IP="dhcp"
TIMEOUT=100

Try save these lines in the file indicated, then launch as root:
Code:

netcfg wpa-home

I tried netcfg wpa-home after creating that file and setting correct values, but I got:
:: wpa-home up  - wpa_supplicant did not start, possible configuration [FAILED]

Last edited by mahan_h (2009-03-13 18:30:58)

Offline

#13 2009-03-13 20:31:24

mahan_h
Member
Registered: 2009-03-11
Posts: 53

Re: [SOLVED] Wireless installation

I solved it....:lol::D:rolleyes::cool:

# mv /etc/wpa_supplicant.conf /etc/wpa_supplicant.conf.original

# wpa_passphrase myssid mypassphrase > /etc/wpa_supplicant.conf

#  ifconfig eth0 up

# iwconfig eth0 essid [ssid]

# wpa_supplicant -B -Dwext -i wlan0 -c /etc/wpa_supplicant.conf

# dhcpcd eth0

and in etc/rc.conf
eth0="eth0 [THE IP FROM PREV. dhcpcd COMMAND] netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(eth0)
gateway="default gw 192.168.0.1"

then
ping -c 3 www.google.com

Thanx Archers

Offline

Board footer

Powered by FluxBB