Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

OpenRC support thread, 2d Edition

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
242 posts
  • Page 3 of 10
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 10
  • Next
Author
Message
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Sat Oct 10, 2009 9:56 pm

user wrote:Ok, updated to openrc-0.5.1 and switched to new network script.
My working br0 vbox0 eth0 bridge example:
Looks good!
Now I searching a nice ppp start/stop wrapper.
When you do, email the Gentoo devs with it :)
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Sat Oct 10, 2009 10:03 pm

En0id wrote:I also updated to 5.1, but I can't find any info on how to setup ipv6.
My old config looks like this:

Code: Select all

config_eth0=( "192.168.0.8 netmask 255.255.255.0 brd 192.168.0.255"
              "2001:xxx:xxx::8/48" )
routes_eth0=( "default via 192.168.0.1"
              "default via 2001:xxx:xxx::1 dev eth0" )
This may work

Code: Select all

ifconfig_eth0="192.168.0.8 netmask 255.255.255.0; inet6 add 2001:xxx:xxx::8/48"
defaultroute="192.168.0.1"
There is currently no facility to have a default route for ipv6 and ipv4. That will hopefully be fixed soon.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
mv
Watchman
Watchman
User avatar
Posts: 6795
Joined: Wed Apr 20, 2005 12:12 pm

  • Quote

Post by mv » Sat Oct 10, 2009 11:47 pm

OTHER things, such as DHCP, PPP, etc belong in external init scripts
The problem is that the PPP script needs to interfere much more with the init system than usual init scripts: For instance, it is not sufficient that openrdate depends on such an init service unless the service waits until PPP is actually up. How to find that it is up without relying on callbacks which require net.* functionality? One could store/remove a file in /var/run from /etc/ppp/ip-{up,down}.d, but then one runs into problems when PPP crashes. Moreover, how long to wait before giving up? In any case, the waiting slows down the boot process unless one uses parallel booting - it seems that net.* callbacks were the superior solution. Also, it would be better to have a somewhat standard approach to such common tasks than each user having to write such rather complex scripts by himself - otherwise, soon it will not be possible to help each other with network problems.
A lot of the functionality of the net.xxx scripts is now covered by dhcpcd-5
This is true. My system at work which just requires a static adress and a dhcp ran after easy configuration out of the box. From the description I guess that the same is true if you want to setup a network with a fixed wireless server. However, as I understand, if you need a flexible wireless, things get clumsy, i.e. at least judging from the code of iwconfig.sh (and from my failed attempts) I guess it is hard to replace the previous

Code: Select all

modules="iwconfig"
config_wlan0="dhcp"
(correct me, if I am wrong - I really know almost nothing about wireless).
For gui users, dhcpcd-gtk provides per SSID and interface basic config support. It talks to wpa_supplicant.
This is very interesting. I have not tried it yet, but I hope that this might be a solution for the above problem? I suggest you should mention it also somewhere in the network file or openrc docu. Is there a reason why it is not in portage, or do we just have to wait?
The old style net.xxx scripts are not going away, they are just not installed by default
This is also very good to know to have a fallback (I was afraid that they will be there only for one or two more versions and then will be dropped).
I'm bored trying to fix bugs that I don't have the infrastructure to replicate or support
I can understand this very good.
I was so happy that in gentoo (in contrast to ubuntu etc) I was not forced to use networkmanager which badly interfered with any manual configuration, but it seems these good times are changing? :cry:
Ah, but with the whole init.d/network it's ALL manual ;)
At least if in a hotel/conference room just a "standard wlan access" (without any further information for the user) is provided, one should be able to use it quickly by just specifying that one wants such a standard configuration (e.g. as by the two lines of code mentioned above). However, if one is forced to use networkmanager for this, this might interfere with the manual configuration fom init.d/network, since networkmanager has its own ideas how to setup routes etc. The previous net.wlan0 is much better in this respect.
Top
rahulthewall
Veteran
Veteran
User avatar
Posts: 1264
Joined: Thu Nov 01, 2007 11:28 pm
Location: Zürich
Contact:
Contact rahulthewall
Website

  • Quote

Post by rahulthewall » Sun Oct 11, 2009 12:48 am

I use WICD to manage my network (so not manual or automatic however you want to call it) and everything works as before with USE=-oldnet (no net.* service enabled, but network is at runlevel boot).
Who shall guard the guards?
Top
mv
Watchman
Watchman
User avatar
Posts: 6795
Joined: Wed Apr 20, 2005 12:12 pm

  • Quote

Post by mv » Sun Oct 11, 2009 8:15 am

rahulthewall wrote:I use WICD to manage my network
I tried that, too, but got no connection with it, though it seemed to run properly. Maybe I configured something wrong or my hardware has problems, no idea... as I said I also had no success with wpa_supplicant, but only the net.wlan0 with wireless-tools worked (even out of the box).
Top
Bill Cosby
Guru
Guru
User avatar
Posts: 430
Joined: Sat Jan 22, 2005 9:24 am
Location: Aachen, Germany

  • Quote

Post by Bill Cosby » Sun Oct 11, 2009 9:08 am

Didn't udev rely on net.* scripts? Hotplug seems to have stopped working after the upgrade, and the removal of the net.* scripts?
The Creature from Jekyll Island.
Top
mjbjr
Guru
Guru
Posts: 301
Joined: Sun Mar 02, 2003 9:04 am

Apache2 - cannot start netmount as net.eth0 would not start

  • Quote

Post by mjbjr » Sun Oct 11, 2009 7:17 pm

Apache2 won't start:

# /etc/init.d/apache2 start
* Caching service dependencies... [ ok ]
* Bringing up interface eth0
* 192.168.17.20/24...
Error: an inet prefix is expected rather than "192.168.17.20/24/24". [ !! ]
* ERROR: net.eth0 failed to start
* Bringing up interface eth0
* 192.168.17.20/24...
Error: an inet prefix is expected rather than "192.168.17.20/24/24". [ !! ]
* ERROR: net.eth0 failed to start
* ERROR: cannot start netmount as net.eth0 would not start
* ERROR: cannot start apache2 as net.eth0 would not start

# /usr/sbin/apache2ctl start
* Bringing up interface eth0
* 192.168.17.20/24...
Error: an inet prefix is expected rather than "192.168.17.20/24/24". [ !! ]
* ERROR: net.eth0 failed to start
* Bringing up interface eth0
* 192.168.17.20/24...
Error: an inet prefix is expected rather than "192.168.17.20/24/24". [ !! ]
* ERROR: net.eth0 failed to start
* ERROR: cannot start netmount as net.eth0 would not start
* ERROR: cannot start apache2 as net.eth0 would not start

And while 'net.eth0' may not want to start, my net connection
via eth0 is running fine, though possibly, I set it up manually
when it didn't work properly at boot, but I'm not sure at this point.

I went through the net configs, and while I have settings for "192.168.17.20/24",
I don't see any "192.168.17.20/24/24", so it would seem that two settings
are being compounded by a script some place.

(I've been running gentoo for four or five years, now, and except for
the first one, this has been the hardest, by far. I've rebooted so many
times the disks have had forced checks. :)) )

running:
# uname -a
Linux localhost 2.6.30-gentoo-r4 #6 SMP Tue Sep 22 21:25:59 PDT 2009 x86_64 Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz GenuineIntel GNU/Linux
baselayout-2.0.1
openrc-0.5.1

This is a new gentoo build, and I'm betting I'll see similiar when I add
more apps. I've spent a couple of days searching all around, and this
appears to be related to openrc and hotplugging. I've seen set blah, and
then in another reply set !blah.

Some suggestions have pointed to 'depscan.sh', but I don't have that,
and haven't been able to determine which package contains it, or maybe
at this point it's deprecated.

At this point, I'm fairly confused about what is going on.

Is there a definitive solution to this net mount problem?

Thanks
.
Top
sera
Retired Dev
Retired Dev
Posts: 1017
Joined: Fri Feb 29, 2008 3:03 pm
Location: CET

  • Quote

Post by sera » Mon Oct 12, 2009 9:54 am

Hi UberLord,

I had the time to look into the current changes regarding networking and I start to like the idea of splitting up the net.lo script.

Currently there is a lack of available init scripts within Gentoo, therefore the confusion in here. So I kindly ask you to install a bunch of them with openrc (e.g under /usr/share/openrc/netscripts) or provide a separate package openrc-netscripts for instance till the gentoo developers catch up.
Candidates are the funtoo-netscripts and the ones from the openrc tarball, namely wpa_supplicant.in works nicely here. I'm sure you know of other useful ones.

This would greatly help many of us even if they were not "fire proof", so I hope I don't ask for to much.

Regards sera.
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Mon Oct 12, 2009 11:08 am

I don't generally control what gets installed via the ebuild.

However, the source tarball does contain a collection of init scripts I use that are not in Gentoo - wpa_supplicant for starters.

To get it, do this.

cd /tmp
tar xvjpf /usr/portage/distfiles/openrc-0.5.1.tar.bz2
cd openrc-0.5.1/init.d.misc
make
install wpa_supplicant /etc/init.d

You can browse the list of init scripts here.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
Fran
Guru
Guru
User avatar
Posts: 530
Joined: Sun Feb 29, 2004 3:14 pm
Location: Coruña (Spain)

  • Quote

Post by Fran » Wed Oct 14, 2009 4:12 pm

So what's the new way to set ypbind? This is my old conf.d/net:

Code: Select all

dns_domain="my_dns_domain"
dns_servers="xx.xx.xx.xx xx.xx.xx.xx"
nis_domain="my_nis_domain"
nis_servers="xx.xx.xx.xx"

config_eth0="xx.xx.xx.31 netmask 255.255.255.0 broadcast xx.xx.xx.255"
routes_eth0="default via xx.xx.xx.1"
This is what I have now:

/etc/conf.d/network:

Code: Select all

ifconfig_eth0="xx.xx.xx.31 netmask 255.255.255.0"
defaultroute="xx.xx.xx.1"
/etc/dhcpcd.conf

Code: Select all

static domain_name=my_dns_domain
static domain_name_servers=xx.xx.xx.xx xx.xx.xx.xx

[the rest is the default config]
/etc/yp.conf

Code: Select all

domain my_nis_domain server xx.xx.xx.xx
But... where do I set the nis domain name? ypbind doesn't start if it isn't set.


(edit) And BTW, what's the difference between setting the fixed IP address in conf.d/network and setting

Code: Select all

static ip_address=xx.xx.xx.xx
in /etc/dhcpcd.conf? And what happens if they conflict?
Top
Guinpen
Guru
Guru
User avatar
Posts: 393
Joined: Wed Dec 08, 2004 1:18 pm
Contact:
Contact Guinpen
Website

  • Quote

Post by Guinpen » Wed Oct 14, 2009 8:12 pm

Hi,

Rather than hijacking the thread, I would like to point you to my OpenRC problem: viewtopic-p-6012266.html

Thanks!
Top
Fran
Guru
Guru
User avatar
Posts: 530
Joined: Sun Feb 29, 2004 3:14 pm
Location: Coruña (Spain)

  • Quote

Post by Fran » Thu Oct 15, 2009 12:36 pm

Never mind my last question, I see gentoo has decided to force oldnet-style in 0.5.1-r1 :roll:.

I suppose that by the time things settle down everything will be easier to configure (at least as easy as they are now).
Top
mv
Watchman
Watchman
User avatar
Posts: 6795
Joined: Wed Apr 20, 2005 12:12 pm

  • Quote

Post by mv » Thu Oct 15, 2009 7:12 pm

The problem I had with pppd actually is the same with dhcpcd: It is not sufficient that e.g. network depends on dhcpcd. For example, openrdate will be started once dhcpcd and the network have been started. But this does not mean that the network is ready, since dhcpcd need not have yet got its lease. Hence, openrdate will usually fail to start...
I think, either it must be possible to check whether the net is really up in the desired way (and the network script has to wait so long) or some callback solution must be implemented.
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Fri Oct 16, 2009 10:54 am

mv wrote:The problem I had with pppd actually is the same with dhcpcd: It is not sufficient that e.g. network depends on dhcpcd. For example, openrdate will be started once dhcpcd and the network have been started. But this does not mean that the network is ready, since dhcpcd need not have yet got its lease. Hence, openrdate will usually fail to start...
I think, either it must be possible to check whether the net is really up in the desired way (and the network script has to wait so long) or some callback solution must be implemented.
This has recently been pointed out to me.
dhcpcd-5.1.2 will have better support for this. The current testing version I have won't daemonise right away if 1 interface as a carrier. If this fails for you then the new -w flag will force a wait for an IP.

I hope to have 5.1.2 out by the weekend.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Fri Oct 16, 2009 11:06 am

Fran wrote: /etc/yp.conf

Code: Select all

domain my_nis_domain server xx.xx.xx.xx
But... where do I set the nis domain name? ypbind doesn't start if it isn't set.
http://roy.marples.name/projects/openrc ... 675ab6c043
Fixed :)
(edit) And BTW, what's the difference between setting the fixed IP address in conf.d/network and setting

Code: Select all

static ip_address=xx.xx.xx.xx
in /etc/dhcpcd.conf? And what happens if they conflict?
network ones will get applied first, then dhcpcd will stamp over it.
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Sun Oct 18, 2009 3:31 pm

Bill Cosby wrote:Didn't udev rely on net.* scripts? Hotplug seems to have stopped working after the upgrade, and the removal of the net.* scripts?
You still need the new net.lo which only performs the task of setting up the lo interface.

Code: Select all

$ qfile net.lo
sys-apps/openrc (/etc/init.d/net.lo)
There is no need to add it to any runlevel though. Openrc handles that.
Top
Kingoftherings
Guru
Guru
Posts: 328
Joined: Sun May 04, 2008 4:54 am

  • Quote

Post by Kingoftherings » Sun Oct 18, 2009 5:29 pm

Having some major clock issues.

Seems like every time I start up Gentoo my clock has changed.
Here is /etc/conf.d/hwclock

Code: Select all

clock="local"
clock_systohc="NO"
clock_args=""
And here is /etc/timezone

Code: Select all

America/Chicago
Top
dmpogo
Advocate
Advocate
Posts: 3730
Joined: Thu Sep 02, 2004 9:21 pm
Location: Canada

  • Quote

Post by dmpogo » Sun Oct 18, 2009 5:41 pm

Kingoftherings wrote:Having some major clock issues.

Seems like every time I start up Gentoo my clock has changed.
Here is /etc/conf.d/hwclock

Code: Select all

clock="local"
clock_systohc="NO"
clock_args=""
And here is /etc/timezone

Code: Select all

America/Chicago
What does your hardware clock show (hwclock --show as root) ? You do not update harware clock to the system one on logout, so if hardware clock shows wrong time, it will be set on every boot.
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Sun Oct 18, 2009 8:20 pm

Kingoftherings,

are you using net-misc/ntp ?
Top
Anon-E-moose
Watchman
Watchman
User avatar
Posts: 6569
Joined: Fri May 23, 2008 7:31 pm
Location: Dallas area

  • Quote

Post by Anon-E-moose » Sun Oct 18, 2009 8:26 pm

Kingoftherings wrote:Having some major clock issues.

Seems like every time I start up Gentoo my clock has changed.
Here is /etc/conf.d/hwclock

Code: Select all

clock="local"
clock_systohc="NO"
clock_args=""
And here is /etc/timezone

Code: Select all

America/Chicago
do you have a /etc/adjtime file and if so what is in it?
UM780 xtx, 6.18 zen kernel, gcc 15, openrc, wayland
minixforum m1-s1 max -- same software as above but used for ai learning


Zealots are gonna be zealots, just like haters are gonna be haters
Top
d2_racing
Bodhisattva
Bodhisattva
User avatar
Posts: 13047
Joined: Mon Apr 25, 2005 2:25 pm
Location: Ste-Foy,Canada
Contact:
Contact d2_racing
Website

  • Quote

Post by d2_racing » Sun Oct 18, 2009 10:44 pm

Any info on how to configure a wireless card using wpa_supplicant on dhcp ip adress : http://forums.gentoo.org/viewtopic-p-60 ... ml#6017497

I only saw some example when the wireless is using a static IP adress.
Top
sera
Retired Dev
Retired Dev
Posts: 1017
Joined: Fri Feb 29, 2008 3:03 pm
Location: CET

  • Quote

Post by sera » Sun Oct 18, 2009 11:25 pm

d2_racing wrote:Any info on how to configure a wireless card using wpa_supplicant on dhcp ip adress : http://forums.gentoo.org/viewtopic-p-60 ... ml#6017497

I only saw some example when the wireless is using a static IP adress.
6013166
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Sun Oct 18, 2009 11:39 pm

d2_racing wrote:Any info on how to configure a wireless card using wpa_supplicant on dhcp ip adress : http://forums.gentoo.org/viewtopic-p-60 ... ml#6017497

I only saw some example when the wireless is using a static IP adress.
I'm not sure, but what about in /etc/dhcpcd.conf

Code: Select all

allowinterfaces wlan0
Top
UberLord
Retired Dev
Retired Dev
User avatar
Posts: 6838
Joined: Thu Sep 18, 2003 10:26 am
Location: Blighty
Contact:
Contact UberLord
Website

  • Quote

Post by UberLord » Wed Oct 21, 2009 9:21 pm

Mike Hunt wrote:
d2_racing wrote:Any info on how to configure a wireless card using wpa_supplicant on dhcp ip adress : http://forums.gentoo.org/viewtopic-p-60 ... ml#6017497

I only saw some example when the wireless is using a static IP adress.
I'm not sure, but what about in /etc/dhcpcd.conf

Code: Select all

allowinterfaces wlan0
That's wrong - ethernet (inc wireless) interfaces are always allowed by default.
You just configure wpa_supplicant.conf and dhcpcd.conf as needed. Then add dhcpcd to the default runlevel.
You'll then need to grab the wpa_supplicant init script from the OpenRC source as shown above and go with that also.

Good luck!
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Top
Mike Hunt
Watchman
Watchman
User avatar
Posts: 5287
Joined: Sun Jul 19, 2009 11:01 pm

  • Quote

Post by Mike Hunt » Wed Oct 21, 2009 9:58 pm

Okie dokie, thanks UberLord. :)
Top
Post Reply

242 posts
  • Page 3 of 10
    • Jump to page:
  • Previous
  • 1
  • 2
  • 3
  • 4
  • 5
  • …
  • 10
  • Next

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy