Re: [gentoo-user] rc-update net.wlan0?
Mark, Below is my /etc/conf.d/net file Change things from eth0 to whatever name you use for the wireless. Obviously, change the actual network addresses to, preferrably!, the original IPA that your previous OS got from the router, or, at least something that fits into the same mask. HTH, rgh. FILE :: # /etc/conf.d/net: # $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/conf.d/net,v 1.7 2002/11/18 19:39:22 azarah Exp $ # Global config file for net.* rc-scripts # This is basically the ifconfig argument without the ifconfig $iface # iface_eth0=192.168.1.98 broadcast 192.168.1.255 netmask 255.255.255.0 #iface_eth0=192.168.0.2 broadcast 192.168.0.255 netmask 255.255.255.0 #iface_eth1=207.170.82.202 broadcast 207.0.255.255 netmask 255.255.0.0 # For DHCP set iface_eth? to dhcp # For passing options to dhcpcd use dhcpcd_eth? # #iface_eth0=dhcp #dhcpcd_eth0=... # For adding aliases to a interface # #alias_eth0=192.168.0.3 192.168.0.4 # NB: The next is only used for aliases. # # To add a custom netmask/broadcast address to created aliases, # uncomment and change accordingly. Leave commented to assign # defaults for that interface. # #broadcast_eth0=192.168.0.255 192.168.0.255 #netmask_eth0=255.255.255.0 255.255.255.0 # For setting the default gateway # #gateway=eth0/192.168.0.1 gateway=eth0/192.168.1.254 Mark Knecht wrote: On 4/29/05, Robert G. Hays [EMAIL PROTECTED] wrote: Mark, Sorry long delay -- slighly busy lately! Since I was only kinda-halfway watching this thread, and have forgotten several details, if you still need this help, could you please briefly summarize your before setting results and your new-install setings results, then I will (finally!) be able to check the Linux boot for the ifo for you. Again, I apologize for the long silence; I just -did- -not- have time to even _look_ at any email that was not urgent to making a living, much less answer it; just moved it to local storage to keep the inbox available... Lemme know, rgh. Hi Robert, Thanks for responding. No problem about the delay. I could still use some help. I have filed a couple of bug reports around this issue. However none of the ideas or responses I've gotten really get to the root issue for me. Let me recap: 1) I have a desktop machine with a wireless connection. The wireless connection is weak (I think...) or maybe I have wireless misconfigured and it doesn't work well. I'm not sure which. However the bottom line is that at boot time the machine never connects with the router. 2) This machine and a second machine in the house used to run Fedora Core 2. Under FC2 if either of these machines didn't attach to the router at boot time then FC2 would continue to try to connect on its own. It would eventually attach to the network and the user could start using the network. The important aspect about this is that it took no root level access under FC2. It only took time. 3) I converted one of these desktop machines to Gentoo. I use Gentoo elsewhere in the house and am more or less comfortable with it at a high level. We wanted to run MythTV and I was far more confident that I could get Myth working under Gentoo. Indeed in under a day I was recording TV shows. However there have been problems if the machine needs to go through a reboot. The problems look like: a) Networking doesn't start because the signal is weak b) MySQL cannot start because it depends on networking being up c) MythTV doesn't start because it depends on MySQL being up d) sshd doesn't start because networking isn't up e) samba doesn't start because networking isn't up f) strangely nfs does start without networking being up Overall it's a mess because to clean up from all of this as it requires root access and essentially me, not my wife or son. FC2 was FAR more friendly. I think that it should be a standard idea that a portable with wireless connectivity could be booted outside of any access point's reach and then come into the area of coverage. If a portable did this you would expect it to connect to the network without having to become root to do so. I am guessing that a Gentoo machine wouldn't, or at least the way mine is configured it wouldn't. I hope it's clear that I think there's a 90% chance that the problem is mine and not the distro's but I don't know much else to do. Things I've tried: Since the machine had a built in wired NIC I tried starting net.eth0 on an address I don't use. net.eth0 starts but MySQL doesn't like it because the network it is bound to (the wireless network) isn't up so this still requires root intervention running /etc/init.d/net.wlan0 start by hand. Editing /etc/conf.d/rc and changing to RC_NET_STRICT_CHECKING=none. This at least allows things like sshd to get started without wlan0 being online but it doesn't actually get the machine to continue to connect to the network. I looked at a package that is supposed to check if things are running and then it will start them if they are down. I couldn't figure out how to
Re: [gentoo-user] rc-update net.wlan0?
Mark, Sorry long delay -- slighly busy lately! Since I was only kinda-halfway watching this thread, and have forgotten several details, if you still need this help, could you please briefly summarize your before setting results and your new-install setings results, then I will (finally!) be able to check the Linux boot for the ifo for you. Again, I apologize for the long silence; I just -did- -not- have time to even _look_ at any email that was not urgent to making a living, much less answer it; just moved it to local storage to keep the inbox available... Lemme know, rgh. Mark Knecht wrote: On 4/20/05, Robert G. Hays [EMAIL PROTECTED] wrote: Thought: what about setting the address, gateway, etc, to be the same as when the box runs FC? Not hard, and should guarantee connection since the nic the router managed before. I'm sure some of us out hee could step you through this if you are willing need help (I don't remember if you said your skil-level, although I am assuming that you probably do not need help for such a triviality). best, rgh. Robert, I was wondering about that over lunch. Do you mean just using route commands somewhere (where actually?) and setting up routes that say what wlan0's address and the default gateway are? If so where would I put those??? My skills on a scale of 1-10 are probably unmeasurably low. I can imagine putting some route commands someplace like /etc/conf.d/local./start. Is that the right place? (Assuming this is even what you meant!) If it is I think I should be able to test that idea by hand. I don't know how to test this idea though. For kicks I made up a device called wlan1 and (with no /etc/inid.d/net.wlan1 file and no wlan1 entries in the net config file) tried to make some routes: dragonfly ~ # route add -net 192.168.9.0 netmask 255.255.255.0 dev wlan1 SIOCADDRT: No such device dragonfly ~ # I presume that if wlan1 existed I'd be telling the system to route everything destined to the bus 192.168.9.X through wlan1, correct? Anyway, it didn't work. Would it work if I copied net.wlan0 to net.wlan1 and added wlan1 entries in /etc/conf.d/net?? Thanks, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] rc-update net.wlan0?
On 4/29/05, Robert G. Hays [EMAIL PROTECTED] wrote: Mark, Sorry long delay -- slighly busy lately! Since I was only kinda-halfway watching this thread, and have forgotten several details, if you still need this help, could you please briefly summarize your before setting results and your new-install setings results, then I will (finally!) be able to check the Linux boot for the ifo for you. Again, I apologize for the long silence; I just -did- -not- have time to even _look_ at any email that was not urgent to making a living, much less answer it; just moved it to local storage to keep the inbox available... Lemme know, rgh. Hi Robert, Thanks for responding. No problem about the delay. I could still use some help. I have filed a couple of bug reports around this issue. However none of the ideas or responses I've gotten really get to the root issue for me. Let me recap: 1) I have a desktop machine with a wireless connection. The wireless connection is weak (I think...) or maybe I have wireless misconfigured and it doesn't work well. I'm not sure which. However the bottom line is that at boot time the machine never connects with the router. 2) This machine and a second machine in the house used to run Fedora Core 2. Under FC2 if either of these machines didn't attach to the router at boot time then FC2 would continue to try to connect on its own. It would eventually attach to the network and the user could start using the network. The important aspect about this is that it took no root level access under FC2. It only took time. 3) I converted one of these desktop machines to Gentoo. I use Gentoo elsewhere in the house and am more or less comfortable with it at a high level. We wanted to run MythTV and I was far more confident that I could get Myth working under Gentoo. Indeed in under a day I was recording TV shows. However there have been problems if the machine needs to go through a reboot. The problems look like: a) Networking doesn't start because the signal is weak b) MySQL cannot start because it depends on networking being up c) MythTV doesn't start because it depends on MySQL being up d) sshd doesn't start because networking isn't up e) samba doesn't start because networking isn't up f) strangely nfs does start without networking being up Overall it's a mess because to clean up from all of this as it requires root access and essentially me, not my wife or son. FC2 was FAR more friendly. I think that it should be a standard idea that a portable with wireless connectivity could be booted outside of any access point's reach and then come into the area of coverage. If a portable did this you would expect it to connect to the network without having to become root to do so. I am guessing that a Gentoo machine wouldn't, or at least the way mine is configured it wouldn't. I hope it's clear that I think there's a 90% chance that the problem is mine and not the distro's but I don't know much else to do. Things I've tried: Since the machine had a built in wired NIC I tried starting net.eth0 on an address I don't use. net.eth0 starts but MySQL doesn't like it because the network it is bound to (the wireless network) isn't up so this still requires root intervention running /etc/init.d/net.wlan0 start by hand. Editing /etc/conf.d/rc and changing to RC_NET_STRICT_CHECKING=none. This at least allows things like sshd to get started without wlan0 being online but it doesn't actually get the machine to continue to connect to the network. I looked at a package that is supposed to check if things are running and then it will start them if they are down. I couldn't figure out how to configure it and gave up. Things I've not tried: Any sudo solution. Seems that it would certainly work but it's not pretty. Thanks sort of the very long winded statement about where things are. Don't know what else to do right now. The real issue is getting wlan0 up without root intervention. Any ideas? Thanks, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] rc-update net.wlan0?
Mark, been busy, I'm in WhinedoZZZe again right now, but I'll check what I got when I next get into Linux post it back to you. rgh. Mark Knecht wrote: On 4/20/05, Robert G. Hays [EMAIL PROTECTED] wrote: Thought: what about setting the address, gateway, etc, to be the same as when the box runs FC? Not hard, and should guarantee connection since the nic the router managed before. I'm sure some of us out hee could step you through this if you are willing need help (I don't remember if you said your skil-level, although I am assuming that you probably do not need help for such a triviality). best, rgh. Robert, I was wondering about that over lunch. Do you mean just using route commands somewhere (where actually?) and setting up routes that say what wlan0's address and the default gateway are? If so where would I put those??? My skills on a scale of 1-10 are probably unmeasurably low. I can imagine putting some route commands someplace like /etc/conf.d/local./start. Is that the right place? (Assuming this is even what you meant!) If it is I think I should be able to test that idea by hand. I don't know how to test this idea though. For kicks I made up a device called wlan1 and (with no /etc/inid.d/net.wlan1 file and no wlan1 entries in the net config file) tried to make some routes: dragonfly ~ # route add -net 192.168.9.0 netmask 255.255.255.0 dev wlan1 SIOCADDRT: No such device dragonfly ~ # I presume that if wlan1 existed I'd be telling the system to route everything destined to the bus 192.168.9.X through wlan1, correct? Anyway, it didn't work. Would it work if I copied net.wlan0 to net.wlan1 and added wlan1 entries in /etc/conf.d/net?? Thanks, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] rc-update net.wlan0?
-- Forwarded message -- From: Robert G. Hays [EMAIL PROTECTED] Date: Apr 21, 2005 5:15 PM Subject: Re: [gentoo-user] rc-update net.wlan0? To: gentoo-user@lists.gentoo.org Mark, been busy, I'm in WhinedoZZZe again right now, but I'll check what I got when I next get into Linux post it back to you. rgh. Thanks Robert. Take a look at my other post today. It has more specific info about the problems I'm having. thanks very much, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] rc-update net.wlan0?
Might hit gmane or mail-archives tomorrow for prev msgs, wrestling croclegators right now... For now: e.g.: in: /etc/conf.d/net iface=192.168.1.7,broadcast=192.168.0.255,mask=255.255.255.0 # stuff... gateway=eth0,192.168.0.1 I shortened the iface line :: already forgot exact, but file has commented example line. I *think* I got the gateway line right, but anyways I think it has an example too. Gentoo 2.6.11-blahblah didn't like my Netgear router's dhcp (probably WhinedoZZZe mangled format), so for now I have to provide hard-coded, your luck! HTH!, rgh. Mark Knecht wrote: -- Forwarded message -- From: Robert G. Hays [EMAIL PROTECTED] Date: Apr 21, 2005 5:15 PM Subject: Re: [gentoo-user] rc-update net.wlan0? To: gentoo-user@lists.gentoo.org Mark, been busy, I'm in WhinedoZZZe again right now, but I'll check what I got when I next get into Linux post it back to you. rgh. Thanks Robert. Take a look at my other post today. It has more specific info about the problems I'm having. thanks very much, Mark -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] rc-update net.wlan0?
On Mon, 18 Apr 2005 23:40:24 -0600, Nicolas Bailey wrote: This is covered somewhere in the handbook, but basically you need ln -s net.eth0 /etc/init.d/net.wlan0 I believe it should be: (in /etc/init.d) You don't need to be in the directory to create the link, as long as you give the correct relative path to the source. ln -s net.lo net.wlan0 eth0 doesn't necessarily exist. The reason I used eth0 (which AFAIK is created by baselayout) is that this is the way older versions of baselayout do it. The latest versions put everything into net.lo and link net.eth0 to it (so the above still works) but linking to net.lo will break on older baselayouts. As I use ~arch everywhere, I'm not sure what the current stable baselayout uses, so I erred on the side of caution. -- Neil Bothwick But I thought YOU did the backups... pgpj7XFHjNh0D.pgp Description: PGP signature
Re: [gentoo-user] rc-update net.wlan0?
On 4/18/05, Neil Bothwick [EMAIL PROTECTED] wrote: On Sun, 17 Apr 2005 07:52:56 -0700, Mark Knecht wrote: What am I missing here? Am I supposed to make some edits to /etc/conf.d/net? That might make sense but I'm not sure what to do. If so where do I get /etc/init.d/net.wlan0? Copy net.eth0 and rename? This is covered somewhere in the handbook, but basically you need ln -s net.eth0 /etc/init.d/net.wlan0 Neil, Thanks. That's probably a better answer as when changes are made in net.eth0 they'll be reflected in net.wlan0 also. Why isn't net.wlan0 (or the link) part of the normal install? Seems that would have been the one thing I needed to do a wireless install. thanks very much, Mark -- gentoo-user@gentoo.org mailing list