You are not logged in.

#26 2011-06-09 08:38:39

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: New rc.conf file ?

Ah thanks. I'm using netcfg so it must be something specific to how that's set up as my settings look the same except I also have NETWORKS set (as can be seen above).
I'll keep looking.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#27 2011-06-09 08:47:35

igndenok
Member
From: Sidoarjo, Indonesia
Registered: 2010-06-07
Posts: 160

Re: New rc.conf file ?

Got some problem with network connection (can't connect internet), I use static IP no netcfg.
Need to configure broadcast address on /etc/rc.d/network

/usr/sbin/ip addr add $address/$netmask broadcast $broadcast dev $interface || return 1

And to /etc/rc.conf

broadcast=192.168.1.255

to make my problem go away. Hope this help some people smile


Ask, and it shall be given you.
Seek, and ye shall find.
Knock, and it shall be opened unto you.

Offline

#28 2011-06-09 09:03:00

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: New rc.conf file ?

skanky wrote:

Ah thanks. I'm using netcfg so it must be something specific to how that's set up as my settings look the same except I also have NETWORKS set (as can be seen above).
I'll keep looking.

No problems here with netcfg. I even left the interface part blank. Tested with filling in eth0 and even wlan0 but that gave no problems either.
I also have networks configured ( only one though ) but I use net-profiles in my daemons array and not net-auto-wired/wireless.

Offline

#29 2011-06-09 09:34:15

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: New rc.conf file ?

Varg wrote:
skanky wrote:

Ah thanks. I'm using netcfg so it must be something specific to how that's set up as my settings look the same except I also have NETWORKS set (as can be seen above).
I'll keep looking.

No problems here with netcfg. I even left the interface part blank. Tested with filling in eth0 and even wlan0 but that gave no problems either.
I also have networks configured ( only one though ) but I use net-profiles in my daemons array and not net-auto-wired/wireless.

Thanks for the information. I have just tried rebooting with the interface not set, in case that was the issue, but no change.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#30 2011-06-09 11:03:25

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: New rc.conf file ?

Varg wrote:
skanky wrote:

Ah thanks. I'm using netcfg so it must be something specific to how that's set up as my settings look the same except I also have NETWORKS set (as can be seen above).
I'll keep looking.

No problems here with netcfg. I even left the interface part blank. Tested with filling in eth0 and even wlan0 but that gave no problems either.
I also have networks configured ( only one though ) but I use net-profiles in my daemons array and not net-auto-wired/wireless.


@ Varg
I use netcfg and i'm still having problems with my wireless network starting at boot.  It works great when i manually start it.  Can you post your network settings in rc.conf so i can see how you have yours ... Cheers

Offline

#31 2011-06-09 12:18:38

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: New rc.conf file ?

whitetimer wrote:

@ Varg
I use netcfg and i'm still having problems with my wireless network starting at boot.  It works great when i manually start it.  Can you post your network settings in rc.conf so i can see how you have yours ... Cheers

Sure

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Arch_laptop"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
#   - interface: name of device (required)
#   - address: IP address (leave blank for DHCP)
#   - netmask: subnet mask (ignored for DHCP)
#   - gateway: default route (ignored for DHCP)
# 
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=
address=
netmask=
gateway=

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as 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.d
#
# This requires the netcfg package
#
NETWORKS=(home)

# -----------------------------------------------------------------------
# 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
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(!hwclock syslog-ng dbus !network @acpid @iptables !wicd @net-profiles @crond @alsa @ntpd @cups @vnstat)

As you can see nothing special actually. I backed up my old rc.conf, copy rc.conf.pacnew to rc.conf and put all my modules and daemons in it, setting hostname, etc,...

Offline

#32 2011-06-09 12:32:46

Speek
Member
Registered: 2005-04-07
Posts: 36

Re: New rc.conf file ?

Why are the new variable names lowercase?

Offline

#33 2011-06-09 12:35:36

MadCatMk2
Member
Registered: 2010-05-10
Posts: 84

Re: New rc.conf file ?

Speek wrote:

Why are the new variable names lowercase?

lowercase > uppercase

Offline

#34 2011-06-09 12:36:33

martinoff
Member
Registered: 2011-03-28
Posts: 21

Re: New rc.conf file ?

everything working ok for me with the new file (i use wicd )

#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=eth0
address=
netmask=255.255.255.0
gateway=my.router.getaway

Offline

#35 2011-06-09 14:35:17

whitetimer
Member
Registered: 2010-05-23
Posts: 207

Re: New rc.conf file ?

Varg wrote:
whitetimer wrote:

@ Varg
I use netcfg and i'm still having problems with my wireless network starting at boot.  It works great when i manually start it.  Can you post your network settings in rc.conf so i can see how you have yours ... Cheers

Sure

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="Arch_laptop"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
#   - interface: name of device (required)
#   - address: IP address (leave blank for DHCP)
#   - netmask: subnet mask (ignored for DHCP)
#   - gateway: default route (ignored for DHCP)
# 
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# gateway=192.168.0.1
#
# DHCP example
# interface=eth0
# address=
# netmask=
# gateway=

interface=
address=
netmask=
gateway=

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as 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.d
#
# This requires the netcfg package
#
NETWORKS=(home)

# -----------------------------------------------------------------------
# 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
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.
#
DAEMONS=(!hwclock syslog-ng dbus !network @acpid @iptables !wicd @net-profiles @crond @alsa @ntpd @cups @vnstat)

As you can see nothing special actually. I backed up my old rc.conf, copy rc.conf.pacnew to rc.conf and put all my modules and daemons in it, setting hostname, etc,...


Thanks Varg, thats similar to mine ... Just annoying that most of the time i have to manually start my netcfg connection ... heigh ho, at least it works yikes)

Offline

#36 2011-06-09 19:43:11

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: New rc.conf file ?

Inxsible wrote:

Hmmm I seem to be the lucky one then ? tongue

Me too. I did not have to change anything to keep using net-profiles. Nor did I see a warning message saying that I would have to. Just the one about blacklisting modules.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#37 2011-06-09 19:47:47

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: New rc.conf file ?

Baah !!

And here I was...thinking that I was special tongue


I have now updated my rc.conf to the newer one. You best be doing that too Connor.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#38 2011-06-09 21:00:28

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: New rc.conf file ?

Not sure if this is related, but my system clock is an hour ahead when I boot. I start nntp when I connect and that fixes it, so it may always have been like that but the automatic connection meant that it was fixed before logging on. Anyway, has anyone got it working with net-auto-wired and/or net-auto-wireless?


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#39 2011-06-09 21:02:51

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: New rc.conf file ?

skanky wrote:

Not sure if this is related, but my system clock is an hour ahead when I boot. I start nntp when I connect and that fixes it, so it may always have been like that but the automatic connection meant that it was fixed before logging on.

Start a thread and post some info about your settings, especially timezone and hwclock.

Offline

#40 2011-06-09 21:13:11

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: New rc.conf file ?

karol wrote:
skanky wrote:

Not sure if this is related, but my system clock is an hour ahead when I boot. I start nntp when I connect and that fixes it, so it may always have been like that but the automatic connection meant that it was fixed before logging on.

Start a thread and post some info about your settings, especially timezone and hwclock.

Yeah sorry, I was thinking about doing that - I just mention it here as it is controlled by an rc.conf setting and *may* be connected. I'll do that when I've fixed the network issue.

Last edited by skanky (2011-06-09 21:20:40)


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#41 2011-06-09 22:39:57

lilsirecho
Veteran
Registered: 2003-10-24
Posts: 5,000

Re: New rc.conf file ?

There used to be quotes on the entries for the network data.  Are these not necessary any more?


Prediction...This year will be a very odd year!
Hard work does not kill people but why risk it: Charlie Mccarthy
A man is not complete until he is married..then..he is finished.
When ALL is lost, what can be found? Even bytes get lonely for a little bit!     X-ray confirms Iam spineless!

Offline

#42 2011-06-10 02:20:37

Arashi
Member
Registered: 2008-07-31
Posts: 5

Re: New rc.conf file ?

Ok, so for those of us who DO need more than one WIRED interface, what do we do?

(Yes, I promise, there are those of us out there who DO use more than one nic...)

Left scratching my head here on this one, as far as I can tell, there's no easy way to configure more than one nic.

(Yes, I get that the 'old' method works)

Offline

#43 2011-06-10 02:22:02

thestinger
Package Maintainer (PM)
From: Toronto, Canada
Registered: 2010-01-23
Posts: 478

Re: New rc.conf file ?

Arashi wrote:

Ok, so for those of us who DO need more than one WIRED interface, what do we do?

(Yes, I promise, there are those of us out there who DO use more than one nic...)

Left scratching my head here on this one, as far as I can tell, there's no easy way to configure more than one nic.

(Yes, I get that the 'old' method works)

Use netcfg for anything more advanced than 1 interface.

Offline

#44 2011-06-10 19:15:31

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: New rc.conf file ?

If you're sure of how to do it, maybe help this person out.


6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.

Offline

#45 2011-06-11 20:55:50

Varg
Member
From: Belgium
Registered: 2010-07-07
Posts: 272

Re: New rc.conf file ?

For the people using net-auto-wireless:

I just tried out net-auto-wireless as it might be usefull in the future instead of netcfg and it works fine with multiple networks configured.
The wiki says that you need to put the variable

...
WIRELESS_INTERFACE="wlan0"
...

In your rc.conf.

I tested it without setting that variable and then there was no auto connecting but I could connect manually. I'm guessing that some of you forgot to migrate that setting in rc.conf.

Offline

#46 2011-06-11 21:33:03

skanky
Member
From: WAIS
Registered: 2009-10-23
Posts: 1,847

Re: New rc.conf file ?

Varg wrote:

For the people using net-auto-wireless:

I just tried out net-auto-wireless as it might be usefull in the future instead of netcfg and it works fine with multiple networks configured.
The wiki says that you need to put the variable

...
WIRELESS_INTERFACE="wlan0"
...

In your rc.conf.

I tested it without setting that variable and then there was no auto connecting but I could connect manually. I'm guessing that some of you forgot to migrate that setting in rc.conf.

Thank you so much, you're a star. smile
I can't work out how I didn't see that in the wiki entry - or why it wasn't in the rc.conf. Also if it's not new I must have accidentally removed it.
One of those horrible can't see for seeing what you want to see errors.


"...one cannot be angry when one looks at a penguin."  - John Ruskin
"Life in general is a bit shit, and so too is the internet. And that's all there is." - scepticisle

Offline

#47 2011-06-11 22:49:11

krnekhelesh
Member
From: Netherlands
Registered: 2011-05-11
Posts: 39

Re: New rc.conf file ?

skanky wrote:
jasonwryan wrote:

Just updated my laptop (EeePC 901 + wicd): moved blacklist modules into /etc/modprobe.d/blacklist.conf and changed over to the new network settings in /etc/rc.conf. I already had net-tools installed, so rebooted, held my breath and BAM!

+ Shaved at least 20% off my boot time
+ Network came up straight away
+ PROFIT!

Thanks to the devs for the smooth transition smile

Can you show your new network section from rc.config, please?
I still have to manually start both wired & wireless with netcfg.

I also use netcfg for managing my wireless networks and here is part of my rc.conf file,

NETWORKS=(home work)
DAEMONS=(hwclock preload dbus bluetooth @net-profiles netfs crond gdm)

Basically, I load the net-profiles automatically during boot and it checks which wireless network is present and connects to it automatically.

Offline

Board footer

Powered by FluxBB