View previous topic :: View next topic |
Author |
Message |
albright Advocate
Joined: 16 Nov 2003 Posts: 2588 Location: Near Toronto
|
Posted: Mon Sep 28, 2009 12:22 pm Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Oct 02, 2009 3:04 am Post subject: |
|
|
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 |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3414 Location: Canada
|
Posted: Fri Oct 02, 2009 4:21 am Post subject: |
|
|
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 |
|
|
sera Retired Dev
Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Fri Oct 02, 2009 7:55 am Post subject: |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Fri Oct 02, 2009 10:48 am Post subject: |
|
|
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 |
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Fri Oct 02, 2009 1:44 pm Post subject: |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
VinzC Watchman
Joined: 17 Apr 2004 Posts: 5098 Location: Dark side of the mood
|
Posted: Fri Oct 02, 2009 2:20 pm Post subject: |
|
|
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 |
|
|
sera Retired Dev
Joined: 29 Feb 2008 Posts: 1017 Location: CET
|
Posted: Sat Oct 03, 2009 5:41 am Post subject: |
|
|
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 |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Sun Oct 04, 2009 2:08 am Post subject: |
|
|
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 |
|
|
McLink Apprentice
Joined: 02 Feb 2008 Posts: 183 Location: /dev/chair
|
Posted: Sun Oct 04, 2009 7:47 am Post subject: |
|
|
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 |
|
|
nuhiNlow n00b
Joined: 07 Jan 2009 Posts: 46
|
Posted: Tue Oct 06, 2009 12:27 pm Post subject: |
|
|
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 |
|
|
Xake Guru
Joined: 11 Feb 2004 Posts: 588 Location: Göteborg, the rainy part of scandinavia
|
Posted: Tue Oct 06, 2009 5:10 pm Post subject: |
|
|
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 |
|
|
rahulthewall Veteran
Joined: 01 Nov 2007 Posts: 1264 Location: Zürich
|
Posted: Fri Oct 09, 2009 9:48 pm Post subject: |
|
|
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. _________________ Who shall guard the guards? |
|
Back to top |
|
|
Kingoftherings Guru
Joined: 04 May 2008 Posts: 328
|
Posted: Sat Oct 10, 2009 5:55 am Post subject: |
|
|
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.
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sat Oct 10, 2009 11:44 am Post subject: |
|
|
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 |
|
|
zyko l33t
Joined: 01 Jun 2008 Posts: 620 Location: Munich, Germany
|
Posted: Sat Oct 10, 2009 12:45 pm Post subject: |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
mv Watchman
Joined: 20 Apr 2005 Posts: 6780
|
Posted: Sat Oct 10, 2009 4:12 pm Post subject: |
|
|
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?
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?
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 |
|
|
Kingoftherings Guru
Joined: 04 May 2008 Posts: 328
|
Posted: Sat Oct 10, 2009 6:05 pm Post subject: |
|
|
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 |
|
|
user Apprentice
Joined: 08 Feb 2004 Posts: 211
|
Posted: Sat Oct 10, 2009 6:56 pm Post subject: |
|
|
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 |
|
|
En0id n00b
Joined: 10 Oct 2009 Posts: 1
|
Posted: Sat Oct 10, 2009 8:10 pm Post subject: |
|
|
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
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
Posted: Sat Oct 10, 2009 9:53 pm Post subject: |
|
|
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?
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?
|
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 |
|
|
|