You are not logged in.

#1 2008-07-09 14:24:43

penguinstarship
Member
Registered: 2006-10-10
Posts: 52

Configuring /etc/rc.conf for wireless use

I've got a WUSB54Gv4 wireless USB adapter that I'm looking to use. Using the wiki for setting up wireless I'm able to get the GUI's wlassistnant, wifi-radar to pick up on them and connect to them (I provide the key) but when I unplug my ethernet cable to check if the wireless is kicking in, it's a no go. Here's my /etc/rc.conf...... Let me know if anyone can shed some light on this smile

#
# /etc/rc.conf - Main Configuration for Arch Linux
#

#
# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# HARDWARECLOCK: set to "UTC" or "localtime"
# TIMEZONE: timezones are found in /usr/share/zoneinfo
# KEYMAP: keymaps are found in /usr/share/kbd/keymaps
# CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US)
# CONSOLEMAP: found in /usr/share/kbd/consoletrans
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE="en_US.utf8"
HARDWARECLOCK="localtime"
TIMEZONE="America/New_York"
KEYMAP="us"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

#
# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# Scan hardware and load required modules at bootup
MOD_AUTOLOAD="yes"
# Module Blacklist - modules in this list will never be loaded by udev
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
#   - prefix a module with a ! to blacklist it
#
MODULES=(ndiswrapper mii sis900 slhc ac97_bus snd-mixer-oss snd-pcm-oss snd-seq-oss snd-seq-device snd-seq-midi-event snd-seq snd-page-alloc snd-pcm snd-rawmidi snd-timer snd snd-ac97-codec snd-ca0106 snd-intel8x0 soundcore)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="tuxcomp"
#
# Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available
# interfaces.
#
# Interfaces to start at boot-up (in this order)
# Declare each interface then list in INTERFACES
#   - prefix an entry in INTERFACES with a ! to disable it
#   - no hyphens in your interface names - Bash doesn't like it
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="dhcp"


INTERFACES=(wlan0)
#
# Routes to start at boot-up (in this order)
# Declare each route then list in ROUTES
#   - prefix an entry in ROUTES with a ! to disable it
#
gateway="default gw 192.168.0.1"
ROUTES=(gateway)
#
# Enable these network profiles at boot-up.  These are only useful
# if you happen to need multiple network configurations (ie, laptop users)
#   - set to 'menu' to present a menu during boot-up (dialog package required)
#   - prefix an entry with a ! to disable it
#
# Network profiles are found in /etc/network-profiles
#
#NET_PROFILES=(main)

#
# -----------------------------------------------------------------------
# DAEMONS
# -----------------------------------------------------------------------
#
# Daemons to start at boot-up (in this order)
#   - prefix a daemon with a ! to disable it
#   - prefix a daemon with a @ to start it up in the background
#
DAEMONS=(syslog-ng network netfs crond)


# End of file

Offline

#2 2008-07-09 19:13:27

BoogieTrain
Member
Registered: 2008-07-09
Posts: 7

Re: Configuring /etc/rc.conf for wireless use

i just enabled my wireless using iwconfig and dhcpcd and once it was conncected, I unplugged my ethernet to see if i could still connect, no go. So i rebooted with the wire still unplugged then re-connected with iwconifg and dhcpcd again and the wireleess works great. I would like to get it started automatically so that I dont have to run iwconfig essid key, dhcpcd everytime (you want the same right mr starship?). I'm assuming the rc.conf file needs some changing. Thanks for your replies.

Offline

#3 2008-07-09 19:43:43

patogen
Member
Registered: 2008-05-11
Posts: 86

Re: Configuring /etc/rc.conf for wireless use

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(wlan0)

This part of your rc.conf is weird. You define eth0 to be dhcp, then in the interfaces line you want to bring up wlan0? It should look more like:

lo="Lo 127.0.0.1"
wlan0="dhcp"
INTERFACES=(wlan0)

If you need to use different profiles for what place you connect to your wireless, install the netcfg package and set up profiles for it. Your configurations should always depend on the input/previous stated things in the config, your settings:

lo="lo 127.0.0.1"
eth0="dhcp"
INTERFACES=(wlan0)

Makes as much sense as:

lo="lo 127.0.0.1"
tacos_is_great="dhcp"
INTERFACES=(wlan0)

Sure the latter is easier to spot the problem with, but in your example you've declared that eth0 uses dhcp, but you haven't declared anything for wlan0. Which makes as much sense as declaring that tacos is great, and then try to open up wlan0 ;-)

(Hope this doesn't sound unfriendly, wasn't my intention anyhow)


We met up with the aliens and guess what? They have no word for fluffy!

Offline

#4 2008-07-09 21:25:03

penguinstarship
Member
Registered: 2006-10-10
Posts: 52

Re: Configuring /etc/rc.conf for wireless use

Thank you for the replies, I changed my /etc/rc.conf to model the one you provided, patogen. I unplugged the ethernet cable and attempted and sucessfully connected to the network, I then ran ping www.google.com and got one statistic of a succesful ping, then it seemed to time out..... sad SO CLOSE!

Offline

#5 2008-07-09 23:03:15

Gluffs
Member
Registered: 2008-01-25
Posts: 25

Re: Configuring /etc/rc.conf for wireless use

Have you tried using netcfg2? I had problems getting my rt2500 pcmcia card working, but whit netcfg2 it worked like a charm.

And if you are lazy like me and wants to do minimal console work whit netcfg2 you can check out
Archassistant http://aur.archlinux.org/packages.php?ID=15655

Offline

#6 2008-07-10 00:52:03

chancho
Member
From: Hong Kong
Registered: 2006-07-14
Posts: 114

Re: Configuring /etc/rc.conf for wireless use

if possible, let's try a simple config of no password-needed system. and then we can try a system with wep only.
in my rc.conf, i use the first method mentioned in the wireless wiki.

ath0="dhcp"
wlan_ath0="ath0 essid MyEssid key 12345678 open"
interfaces=(ath0)

that works on for me without any network manager or net-profiles or whatever.

and if you can post your dmesg (the section about your wireless card) will be better.

Offline

Board footer

Powered by FluxBB