You are not logged in.

#1 2011-07-15 18:26:23

Arcken
Member
Registered: 2011-07-13
Posts: 27

rc,resolv and host configs to wireless at install

Hey i need you guys help, what the right configuration to rc,resolv and hosts at Arch Linux install? My network is wifi, and the signal is delivered to the router by cable modem, so its DHCP...
I am using this:

To rc.conf

interface=wlan0
address=
netmask=
gateway=

The hosts is set like this:

127.0.0.1        localhost.localdomain      localhost      Ramon
::1        localhost.localdomain       localhost

And the resolv don't have any nameserver...

Any help?

Last edited by Arcken (2011-07-15 18:28:15)

Offline

#2 2011-07-15 18:41:32

arch_nemesis
Member
Registered: 2008-12-19
Posts: 115

Re: rc,resolv and host configs to wireless at install

I'm pretty sure that second line is the IPv6 version of the first line.  Assuming you aren't using IPv6 I would think this wouldn't matter, but I also added my hostname on that line when doing my install a couple of days ago.

I have no idea if this would cause your problem at all.  Did you do the earlier steps in the procedure regarding checking that your card was recognized?  ( iwconfig ) as noted here:

https://wiki.archlinux.org/index.php/Be … nvironment

I had trouble at first (later realized this was due to the kernel version on the current snapshot -- updated with wired connection and all was fine) and jumped from the beginner guide to the actual wireless page to try getting it sorted, which has a lot of the same instructions, but with more detail.

https://wiki.archlinux.org/index.php/Wireless

Offline

#3 2011-07-15 18:47:56

Arcken
Member
Registered: 2011-07-13
Posts: 27

Re: rc,resolv and host configs to wireless at install

arch_nemesis wrote:

I'm pretty sure that second line is the IPv6 version of the first line.  Assuming you aren't using IPv6 I would think this wouldn't matter, but I also added my hostname on that line when doing my install a couple of days ago.

I have no idea if this would cause your problem at all.  Did you do the earlier steps in the procedure regarding checking that your card was recognized?  ( iwconfig ) as noted here:

https://wiki.archlinux.org/index.php/Be … nvironment

I had trouble at first (later realized this was due to the kernel version on the current snapshot -- updated with wired connection and all was fine) and jumped from the beginner guide to the actual wireless page to try getting it sorted, which has a lot of the same instructions, but with more detail.

https://wiki.archlinux.org/index.php/Wireless

I don't have any problem, just need to know the right configs for the rc, resolv and hosts for my wifi network... big_smile

Offline

#4 2011-07-15 20:13:24

arch_nemesis
Member
Registered: 2008-12-19
Posts: 115

Re: rc,resolv and host configs to wireless at install

After getting network manager set up, I have the rc.conf entries for adapter, address, netmask, etc commented out.  Prior to that they looked like yours.

Is the hostname you have in the hosts file identical to what you have in rc.conf about 20 lines above the section you quoted in your original post?

If yes, and you are getting the correct output from iwconfig, did you follow the instructions to associate your card with your router + setup WPA Supplicant or whatever is required for your encryption method (as noted in the wireless section of the beginner's guide linked above?)  And did you then do "dhcpcd wlan0"?

resolv.conf won't get overwritten until dhcpcd wlan0 is executed successfully.

If you are doing all these things and getting the correct output from each of them then I am out of ideas.

Offline

#5 2011-07-15 20:19:02

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: rc,resolv and host configs to wireless at install

The stuff in rc.conf is mainly meant for wired connections. You might want to look into netcfg (which you can call through rc.conf) to configure your wireless.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

#6 2011-07-15 20:53:33

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: rc,resolv and host configs to wireless at install

s/mainly/only/ smile

"Arch News wrote:

The new syntax is very simplistic and only supports one wired network device[1]

(my emphasis)

[1] http://www.archlinux.org/news/deprecation-of-net-tools/

Offline

#7 2011-07-15 21:04:45

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: rc,resolv and host configs to wireless at install

I would have said that as well, were it not for rc.conf's comments not making clear you can only use it for wired connections wink.


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB