Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
OpenRC support thread, 2d Edition
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
albright
Advocate
Advocate


Joined: 16 Nov 2003
Posts: 2588
Location: Near Toronto

PostPosted: Mon Sep 28, 2009 12:22 pm    Post subject: Reply with quote

Quote:
It seems doable for desktops. Not sure about laptops though. You can not have a functioning system before 40s. Even the 20-25s boot times in ubuntu are a sham,- mostly the GUI is brought up faster. Touchpads, etc still take till 40s to get properly initialized.


I think you are too pessimistic. My thinkpad x300 (has an ssd) goes from grub
to working kde 4.3 desktop (with touchpad :) ) in 18 seconds (I just timed it).

What annoys me is that the initial bios startup takes about 10 seconds to
get me to the grub screen :(
_________________
.... there is nothing - absolutely nothing - half so much worth
doing as simply messing about with Linux ...
(apologies to Kenneth Graeme)
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Oct 02, 2009 3:04 am    Post subject: Reply with quote

Hi, I have a weird problem with my wireless card.

If I run /etc/init.d/net.wlan0, I have the message net.wlan0 was started but inactive.

But, when I run iwlist scan after that, then my wireless connection come alive.

Any idea how to debug that ?

Original thread : https://forums.gentoo.org/viewtopic-t-794942-highlight-.html
Back to top
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Fri Oct 02, 2009 4:21 am    Post subject: Reply with quote

albright wrote:
Quote:
It seems doable for desktops. Not sure about laptops though. You can not have a functioning system before 40s. Even the 20-25s boot times in ubuntu are a sham,- mostly the GUI is brought up faster. Touchpads, etc still take till 40s to get properly initialized.


I think you are too pessimistic. My thinkpad x300 (has an ssd) goes from grub
to working kde 4.3 desktop (with touchpad :) ) in 18 seconds (I just timed it).

What annoys me is that the initial bios startup takes about 10 seconds to
get me to the grub screen :(


Same here, with same Thinkpad. Ratio for bios startup is even worse on my office desktop - I think grub to Kde is only like 20% of the total boot time. Most is BIOS to 3ware Bios to grub
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Fri Oct 02, 2009 7:55 am    Post subject: Reply with quote

d2_racing wrote:
Hi, I have a weird problem with my wireless card.

If I run /etc/init.d/net.wlan0, I have the message net.wlan0 was started but inactive.

But, when I run iwlist scan after that, then my wireless connection come alive.

Any idea how to debug that ?

Original thread : https://forums.gentoo.org/viewtopic-t-794942-highlight-.html


The same warning I see for a wifi card and for an ethernet over usb interface. Unlike you I have just to wait about 5 to 10 seconds till the wifi connects as expected. Ethernet over usb becomes immediately available. Never seen this warning on baselayout 1.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Oct 02, 2009 8:42 am    Post subject: Reply with quote

My advice to is move configuration entirely over to wpa_supplicant.
This is one of the reasons why I'm ditching the net.lo ideology and going with a simple network script that's a lot more DIY. You can see this in OpenRC-0.5 if it ever gets into Gentoo.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Fri Oct 02, 2009 10:48 am    Post subject: Reply with quote

I'm using that wpa_supplicant.conf :

Code:

ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
ap_scan=0
#update_config=1

network={
   ssid="RouterLaboTestsansFil"
   psk="key"
   proto=WPA
   key_mgmt=WPA-PSK
   pairwise=CCMP
   group=CCMP
   priority=5
}

network={
   ssid="gentoonet"
   psk="my_key"
   proto=WPA2
   key_mgmt=WPA-PSK
   pairwise=CCMP
   group=CCMP
   priority=10
}

network={
   ssid="HolidayInnSelectMontreal"
        key_mgmt=NONE
   priority=20
}


I'm running right now my wireless card with wicd and I have 0 problem. So is this a baselayout 2.x problem or a openRc problem or something else ?

Thanks :P
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Oct 02, 2009 1:44 pm    Post subject: Reply with quote

Hi, Roy.

I told you a while ago I had rewritten network scripts at the time of baselayout-1*. I've rewritten these scripts once again for baselayout-2* and OpenRC. The purpose is to have only one network script instead of one script for each network adapter. I've been running my own network script on my laptop for more than 6 months with not a single issue. I'd like to submit them to you again. Would you mind checking them?
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Oct 02, 2009 1:45 pm    Post subject: Reply with quote

I mean using wpa_supplicant outside of net.xxxx

I have added wpa_supplicant and network init scripts to my default runlevel. I have removed all net.xxx scripts.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Fri Oct 02, 2009 2:15 pm    Post subject: Reply with quote

VinzC wrote:
I'd like to submit them to you again. Would you mind checking them?


What would I be checking them for? If they work for you then great!
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
VinzC
Watchman
Watchman


Joined: 17 Apr 2004
Posts: 5098
Location: Dark side of the mood

PostPosted: Fri Oct 02, 2009 2:20 pm    Post subject: Reply with quote

I didn't want to split networking script that way. In fact I didn't think of it at all but what I wanted as well was to be able to bond and bridge between two interfaces, which is rather difficult with the current scripts[, especially with wpa_supplicant]. I have only one init script (plus its configuration) for whatever interface I want, wired, wlan, bonded/bridged or not.

I am also using "modules" for network components like tun/tap interfaces and I just need to create a symbolic link into the "module-enabled" directory if I want to use a module, rather like Debian with apache. Also, there's no more complicated computation for dependencies, no bashism conversion, just plain zsh compatibility (that was my goal at least)...

I'd really like to share that, to make me feel like I haven't written that just for me ;) .

UberLord wrote:
What would I be checking them for? If they work for you then great!

I don't have your level of expertise so if they need to be enhanced you know better than me :) .
_________________
Gentoo addict: tomorrow I quit, I promise!... Just one more emerge...
1739!
Back to top
View user's profile Send private message
sera
Retired Dev
Retired Dev


Joined: 29 Feb 2008
Posts: 1017
Location: CET

PostPosted: Sat Oct 03, 2009 5:41 am    Post subject: Reply with quote

UberLord wrote:
I mean using wpa_supplicant outside of net.xxxx

I have added wpa_supplicant and network init scripts to my default runlevel. I have removed all net.xxx scripts.


What network init scripts if not net.xxx?
Back to top
View user's profile Send private message
d2_racing
Bodhisattva
Bodhisattva


Joined: 25 Apr 2005
Posts: 13047
Location: Ste-Foy,Canada

PostPosted: Sun Oct 04, 2009 2:08 am    Post subject: Reply with quote

UberLord wrote:
I mean using wpa_supplicant outside of net.xxxx

I have added wpa_supplicant and network init scripts to my default runlevel. I have removed all net.xxx scripts.


Can you tell us more about that, I don't understand how I can do that.
Back to top
View user's profile Send private message
McLink
Apprentice
Apprentice


Joined: 02 Feb 2008
Posts: 181
Location: /dev/chair

PostPosted: Sun Oct 04, 2009 7:47 am    Post subject: Reply with quote

I just encountered my first real problem with OpenRC: fsck started on /home, and I really didn't feel like letting it finish (my /home is a 100GB filesystem), so I C-C'ed it as I used to do with baselayout-1, except this time, it didn't work: it appeared to cancel the check initially, but then it just continued anyway. Not feeling like letting it finish, I used the magic SysRq to kill init, and I ended up changing all fs_passno fields in /etc/fstab to 0.

So is there any way to get the old behaviour - that is, having automatic fscking, but being able to cancel it with C-C C-D - back?
_________________
Mc'abit wrote:
Islam isn't the problem, religion is.
Back to top
View user's profile Send private message
nuhiNlow
n00b
n00b


Joined: 07 Jan 2009
Posts: 46

PostPosted: Tue Oct 06, 2009 12:27 pm    Post subject: Reply with quote

cent ~ # emerge -uDpv world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild UD] sys-apps/sysvinit-2.86-r10 [2.86-r12] USE="(-ibm) (-selinux) -static" 0 kB
[ebuild UD] sys-fs/udev-141 [146-r1] USE="(-selinux) (-devfs-compat%*) (-extras%)" 0 kB
[ebuild N ] sys-apps/util-linux-2.14.2 USE="crypt nls unicode -loop-aes -old-linux (-selinux) -slang (-uclibc)" 2,888 kB
[blocks B ] <sys-apps/sysvinit-2.86-r11 ("<sys-apps/sysvinit-2.86-r11" is blocking sys-apps/openrc-0.4.3-r3)


i'm stuck with this after trying openrc update
Back to top
View user's profile Send private message
Xake
Guru
Guru


Joined: 11 Feb 2004
Posts: 588
Location: Göteborg, the rainy part of scandinavia

PostPosted: Tue Oct 06, 2009 5:10 pm    Post subject: Reply with quote

lysergia wrote:
cent ~ # emerge -uDpv world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild UD] sys-apps/sysvinit-2.86-r10 [2.86-r12] USE="(-ibm) (-selinux) -static" 0 kB
[ebuild UD] sys-fs/udev-141 [146-r1] USE="(-selinux) (-devfs-compat%*) (-extras%)" 0 kB
[ebuild N ] sys-apps/util-linux-2.14.2 USE="crypt nls unicode -loop-aes -old-linux (-selinux) -slang (-uclibc)" 2,888 kB
[blocks B ] <sys-apps/sysvinit-2.86-r11 ("<sys-apps/sysvinit-2.86-r11" is blocking sys-apps/openrc-0.4.3-r3)


i'm stuck with this after trying openrc update


The question here is why your portage are trying to downgrade sysvinit...
_________________
If I edit a post without commenting it mostly is spelling-errors.
And if I sounds rude I am sorry, that is just my personality speaking and has most of the time nothing to do with you personally.
Back to top
View user's profile Send private message
rahulthewall
Veteran
Veteran


Joined: 01 Nov 2007
Posts: 1264
Location: Zürich

PostPosted: Fri Oct 09, 2009 9:48 pm    Post subject: Reply with quote

Wohooo - openrc-0.5.1 is in portage. Just upgraded my system - everything is working as expected. Will run a bootchart trace soon. :)

EDIT: Still takes 23 long seconds to boot. :D
_________________
Who shall guard the guards?
Back to top
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Sat Oct 10, 2009 5:55 am    Post subject: Reply with quote

Man I'm stupid. After updating openrc as well as KDE to 4.2.3 I saw I had to run etc-update. I noticed I had to update 27 config files, and they were all like dmesg, fstab and other important files. So I deleted them because I thought they'd screw my system up.

I can still boot but net.eth0 isn't working. I've tried re-emerging openrc, but I can't get it to try to change my configuration files again. Is there any way to get it to do that again?

I'm blaming the huge KDE update for me not seeing the notice that openrc was trying to tell me after the emerge. :roll:

Update
I solved it. I had to unmerge openrc (scary), then emerge it.
Just reemerging it without unmerging wouldn't bring back the config updates.
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Oct 10, 2009 11:44 am    Post subject: Reply with quote

d2_racing wrote:
UberLord wrote:
I mean using wpa_supplicant outside of net.xxxx

I have added wpa_supplicant and network init scripts to my default runlevel. I have removed all net.xxx scripts.


Can you tell us more about that, I don't understand how I can do that.


The OpenRC source comes with init.d.misc which is not installed by default.
It contains init scripts for use outside of net.xxx, such as wpa_supplicant.

Basically init.d/network is very basic. It only does what you tell it.
So more complicated stuff like launching a daemon should now go in it's own init script.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
zyko
l33t
l33t


Joined: 01 Jun 2008
Posts: 620
Location: Munich, Germany

PostPosted: Sat Oct 10, 2009 12:45 pm    Post subject: Reply with quote

I just upgraded to dhcpcd-5.1.1 and openrc-0.5.1 (with USE="-oldnet"). Everything works fine, however I would like to use my own DNS server. I used to have the following in /etc/conf.d/net:

Code:
dhcp_eth0="nodns"
dns_servers_eth0="yada yada yada"


How would I go about changing the DNS settings with the new setup?

Thanks in advance :)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Oct 10, 2009 3:08 pm    Post subject: Reply with quote

Add resolv.conf to the nohook line in /etc/dhcpcd.conf and put your dns servers into /etc/resolv.conf
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
mv
Watchman
Watchman


Joined: 20 Apr 2005
Posts: 6747

PostPosted: Sat Oct 10, 2009 4:12 pm    Post subject: Reply with quote

Is it really seriously planned to drop the current support for net.* completely? This means, everybody has to become a network expert to get basic functionality? 8O
UberLord wrote:
It contains init scripts for use outside of net.xxx, such as wpa_supplicant.

But it contains, for example, nothing to support pppd w/ pppoe. I needed a whole day to write basic support for this (which already existed in the net.* scripts!), and it is still basically untested and works only in a special case and behaves certainly not so nice on errors as the net.* stuff did. IMHO baselayout/openrc should provide such basic functionality and not the user having to write it himself.

The situation is even worse when I think about the wireless support which I will need for my laptop when I want it to find e.g. provided (open unencrypted) access points in a hotel: I never succeeded wpa_supplicant running for it, only the wireless tools with net.wlan0 worked out of the box. Without the net.* scripts, it seems, I have to parse the output of iwlist scan and react on it manually? This is a pure nightmare! Are you really going to drop all this support, after you have written all these nice scripts?

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:

To avoid a misunderstanding: If instead of net.* I just have to use other calling conventions, I would not complain. However, it seems that most of the previous functionality was just dropped without any replacement (or at least without fully worked out scripts for the very frequent cases of the mentioned support for pppoe or (non-stationary) wireless).
Back to top
View user's profile Send private message
Kingoftherings
Guru
Guru


Joined: 04 May 2008
Posts: 328

PostPosted: Sat Oct 10, 2009 6:05 pm    Post subject: Reply with quote

I too am having problems with net.eth0.

I changed my /etc/conf.d/net to not use the bash arrays anymore, and net.eth0 starts, but for some reason I can't get to the Internet.
I just ran dhcpcd eth0 and it works, but I'd like to bring back my static IP.

What is the "new" way of doing the network?
Like mv said, do we have to use NetworkManager?
Back to top
View user's profile Send private message
user
Apprentice
Apprentice


Joined: 08 Feb 2004
Posts: 202

PostPosted: Sat Oct 10, 2009 6:56 pm    Post subject: Reply with quote

Ok, updated to openrc-0.5.1 and switched to new network script.
My working br0 vbox0 eth0 bridge example:

Code:
#cat /etc/conf.d/network
ifconfig_eth0="0.0.0.0"
interfaces="vbox0 br0"

ifup_vbox0="tunctl -t \$int -u vbox"
ifdown_vbox0="tunctl -d \$int"
ifconfig_vbox0="0.0.0.0"

ifconfig_br0="192.168.1.2 netmask 255.255.255.0"
ifup_br0="brctl addbr \$int setfd \$int 0 stp \$int off; brctl addif \$int eth0; brctl addif \$int vbox0"
ifdown_br0="ifconfig \$int down; brctl delbr \$int"

defaultroute="192.168.1.1"


Now I searching a nice ppp start/stop wrapper.
Back to top
View user's profile Send private message
En0id
n00b
n00b


Joined: 10 Oct 2009
Posts: 1

PostPosted: Sat Oct 10, 2009 8:10 pm    Post subject: Reply with quote

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:
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" )


Now I tried to change it to:
Code:
ifconfig_eth0=( "192.168.0.8 netmask 255.255.255.0"
                 "2001:xxx:xxx::8/48" )
defaultroute=( "192.168.0.1"
               "2001:xxx:xxx::1 dev eth0" )

But that doens't seem to work, only the ipv4 address gets assigned.

I tried to split the addresses, obviously it wouldn't work, but it was worth a shot :P
Code:
ifconfig_eth0="192.168.0.8 netmask 255.255.255.0"
ifconfig_eth0="2001:xxx:xxx::8/48"
defaultroute="192.168.0.1"
defaultroute="2001:xxx:xxx::1"


I don't see any references to ipv6 in the init file so, any pointers?
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Sat Oct 10, 2009 9:53 pm    Post subject: Reply with quote

mv wrote:
Is it really seriously planned to drop the current support for net.* completely? This means, everybody has to become a network expert to get basic functionality? 8O
UberLord wrote:
It contains init scripts for use outside of net.xxx, such as wpa_supplicant.

But it contains, for example, nothing to support pppd w/ pppoe. I needed a whole day to write basic support for this (which already existed in the net.* scripts!), and it is still basically untested and works only in a special case and behaves certainly not so nice on errors as the net.* stuff did. IMHO baselayout/openrc should provide such basic functionality and not the user having to write it himself.

The situation is even worse when I think about the wireless support which I will need for my laptop when I want it to find e.g. provided (open unencrypted) access points in a hotel: I never succeeded wpa_supplicant running for it, only the wireless tools with net.wlan0 worked out of the box. Without the net.* scripts, it seems, I have to parse the output of iwlist scan and react on it manually? This is a pure nightmare! Are you really going to drop all this support, after you have written all these nice scripts?


OK, I'll just say this the once, subsequent questions will be redirected to this post.

ONLY ifconfig (and iproute2 on linux) gets any passing support in the network init script. And yes, you're expected to know the ifconfig (or iproute2) syntax.
OTHER things, such as DHCP, PPP, etc belong in external init scripts which either Gentoo or the community should support.

Now, this is the big difference between any BSD and Linux - the userland tools for network setup are a lot simpler, a lot better documented and mostly all done through ifconfig.
OpenRC supports both Linux and BSD.
I won't hide it - I now mainly run NetBSD and prefer it to Gentoo. Infact, the network setup is inspired by the one found in NetBSD.
DISCLAIMER - I am a NetBSD dev.

A lot of the functionality of the net.xxx scripts is now covered by dhcpcd-5 - arping support, per SSID support, static config support. So what's missing? OpenRC tarball ships a wpa_supplicant init script which Gentoo seems to need. conf.d/network describes pretty much everything else. Someone needs to step up and write a decent PPP init script.

For gui users, dhcpcd-gtk provides per SSID and interface basic config support. It talks to wpa_supplicant. dhcpcd-gtk also isn't in Gentoo.

If you don't like this then DON'T PANIC.
The old style net.xxx scripts are not going away, they are just not installed by default (although the ebuild may change over time and I don't control Gentoo as I'm no longer a Gentoo dev).
However, they won't be maintained much, nor get any new features unless someone else steps up to the plate.

OpenRC is my baby and I'm bored trying to fix bugs that I don't have the infrastructure to replicate or support so this is my effort to make OpenRC simpler for me and try to educate users that good tools matter.
If you don't like this, then tough. You're always welcome to fork it and if it proves better or people drop support for OpenRC then good! More power to you!

Quote:

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 ;)
Ah wait, you want like semi manual? :)

Quote:
To avoid a misunderstanding: If instead of net.* I just have to use other calling conventions, I would not complain. However, it seems that most of the previous functionality was just dropped without any replacement (or at least without fully worked out scripts for the very frequent cases of the mentioned support for pppoe or (non-stationary) wireless).


Spot on.
Most of the automated functionality was dropped.
My laptop also boots around 6 seconds quicker as a result (it had a fairly complex conf.d/net and now uses direct commands).
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9, 10  Next
Page 2 of 10

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum