Re: [gentoo-user] 2.6.19-r5 kernel disaster
On Thursday 12 April 2007, maxim wexler wrote: Hi group, After running make menuconfig 4x on a PIII, re-emerging --emptytree world and either booting to a highly unstable system or a maintenance login I feel it's time to call on the authorities. It looks like the kernel can't find the / device. The whole IDE/ATA/SATA/PATA/SCSI layout hingy changed with 2.6.19, so first thing to check is that everything you need is actually enabled in the kernel (yeah, there's some gotchas in there). Please post your .config alan -- Optimists say the glass is half full, Pessimists say the glass is half empty, Developers say wtf is the glass twice as big as it needs to be? Alan McKinnon alan at linuxholdings dot co dot za +27 82, double three seven, one nine three five -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] 2.6.19-r5 kernel disaster
On Thursday 12 April 2007 03:02, maxim wexler wrote: Hi group, snip When I chroot from the livecd(2005.1) everything seems to work; the modules all load, the software works etc. So, I'm at a complete loss. FWIW, when I do boot the maintenance console and run udevstart the system crashes forcing a reset. -mw I had a similar problem once, It might not be your case but this one time I forgot to mount '/boot' before installing the new kernel via 'make install', so the system presented similar errors, since the modules and old kernel couldn't work together. It might be that... ( don't laugh ) -- Guillermo A. Amaral, CSE # Free Open Source Advocate nick: guillermoamaral @ blog: http://blog.guillermoamaral.com/ @ site: http://www.guillermoamaral.com/ $ irc: [EMAIL PROTECTED] % gpg: http://downloads.guillermoamaral.com/public.asc pgpsXhLONuTSV.pgp Description: PGP signature
Re: [gentoo-user] Why is apache 2.2 hard masked?
On Thursday 12 April 2007 06:13:44 Wolfgang Liebich wrote: OK - it is in testing. Has anyone here experiences on how stable it is to run? Maybe I need it b/c of a new auth module which does not seem to be available in apache 2.0.58... Oddly enough... http://archives.gentoo.org/gentoo-server/msg_11696.xml (I've not used the auth modules though) -- Mike Williams -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] 2.6.19-r5 kernel disaster
On 4/12/07, Alan McKinnon [EMAIL PROTECTED] wrote: On Thursday 12 April 2007, maxim wexler wrote: Hi group, After running make menuconfig 4x on a PIII, re-emerging --emptytree world and either booting to a highly unstable system or a maintenance login I feel it's time to call on the authorities. It looks like the kernel can't find the / device. The whole IDE/ATA/SATA/PATA/SCSI layout hingy changed with 2.6.19, so first thing to check is that everything you need is actually enabled in the kernel (yeah, there's some gotchas in there). Please post your .config If init starts then the kernel found his root partition (otherwise it panics with a VFS layer message).
[gentoo-user] eclipse
Hi I'm new to gentoo so bare with me. I'm trying to emerge eclipse-core, but can't seem to wrap my head around the idea about masked programs. I have read trough the documentation about the emerge tool but didn't find a working solution. Could anybody give me a few pointer? -- Regards / Venlig hilsen Johannes Skov Frandsen *Address:* Egelundsvej 18, DK-5260 Odense S *Web:* www.omesc.com | *Email:* [EMAIL PROTECTED] -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] laptop sometimes needs double keystrokes
Hello Benno, Benno Schulenberg [EMAIL PROTECTED] writes: Roger Mason wrote: I have a strange problem on my laptop[1] wherein I need sometimes need to enter keystrokes twice in order for them to be recognised. For example, I type 'ls' but the 's' needs to be entered twice. Are it certain keys (like the 's') that have the problem? That is common, but then I mostly use the command line and so ls is used a lot. Are it certain key combinations? Not that I have noticed. Is it only at certain positions (like the second key on a new line)? That is the most common manifestation, e.g. missing the 'v' from 'mv', but I have also seen the problem when using longer commands. Does it also happen in another shell than bash (for example in 'busybox ash')? Just tried it: no, the problem was absent. Does it also happen in 'env -i bash --noprofile --norc'? Tried that too: again the problem disappears. Oddly, when I exited from that environment (back to regular bash) the problem did not re-appear. It re-appeared only when I logged out and then back in. Does it happen in single-user maintenaince mode? I'm embarrased to admit I don't know how to get to that. Does it happen when running from a liveCD? No. Thanks for your help. Roger -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] laptop sometimes needs double keystrokes
Hello Arturo, Arturo 'Buanzo' Busleiman [EMAIL PROTECTED] writes: Benno Schulenberg wrote: Are it certain keys (like the 's') that have the problem? Are it [...] single-user maintenaince mode? Does it happen when running from a liveCD? I'd add: Does it happen on memtest86 I'm trying memtest86 now. or another OS or gnu/linux distro? I've never tried: I hope it does'nt come to that, I much prefer Gentoo over any of the others that I've tried. Thanks for the help. Roger -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] eclipse
On Thursday 12 April 2007 14:24:16 Johannes Skov Frandsen wrote: I'm new to gentoo so bare with me. I'm trying to emerge eclipse-core, but can't seem to wrap my head around the idea about masked programs. I have read trough the documentation about the emerge tool but didn't find a working solution. Could anybody give me a few pointer? You should probably read the handbook in it's entirety (not just the first part about installing Gentoo). Feel free to ask again if the following still leaves you confused: http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3chap=3 -- Bo Andresen pgp4ajTsYE4aJ.pgp Description: PGP signature
Re: [gentoo-user] eclipse
Hi all.. emerge eclipse-sdk dev-util/eclipse-sdk Latest version available: 3.2 Latest version installed: 3.2 Size of files: 80,120 kB Homepage: http://www.eclipse.org/ Description: Eclipse Tools Platform License: EPL-1.0 I think that is all you need and it is not masked, I have eclipse installed on my system and it is very good... The SDK platform come with the IDE if that is what you need.. On 4/12/07, Johannes Skov Frandsen [EMAIL PROTECTED] wrote: Hi I'm new to gentoo so bare with me. I'm trying to emerge eclipse-core, but can't seem to wrap my head around the idea about masked programs. I have read trough the documentation about the emerge tool but didn't find a working solution. Could anybody give me a few pointer? -- Regards / Venlig hilsen Johannes Skov Frandsen *Address:* Egelundsvej 18, DK-5260 Odense S *Web:* www.omesc.com | *Email:* [EMAIL PROTECTED] -- [EMAIL PROTECTED] mailing list -- Francisco Rivas
Re: [gentoo-user] eclipse
On Thursday 12 April 2007, Johannes Skov Frandsen wrote: Hi I'm new to gentoo so bare with me. I'm trying to emerge eclipse-core, but can't seem to wrap my head around the idea about masked programs. I have read trough the documentation about the emerge tool but didn't find a working solution. Could anybody give me a few pointer? There are not one but TWO ways that packages get masked. The first is the usual method that separates the mostly stable branch from the unstable/testing branch, and that is done with the KEYWORDS entry on each package's ebuild file. Here's an example from enlightenment-0.16.8.1: KEYWORDS=alpha amd64 arm hppa ia64 ppc ppc64 sh sparc x86 ~x86-fbsd and from enlightenment-0.16.8.6: KEYWORDS=~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd This entry is used by the ACCEPT_KEYWORDS entry in /etc/make.conf. This normally matches your system architecture (ARCH) if you want the stable packages, or ~$ARCH if you want the bleeding edge stuff in testing. Say you have an i386 processor, you will then have 'ACCEPT_KEYWORDS=x86' in make.conf for stable, and 'ACCEPT_KEYWORDS=~x86' if you want unstable/testing. How this works is that emerge looks at your ACCEPT_KEYWORDS to decide what ebuild to make available to you. Looking at enlightenment above, if you run x86, it will only allow the one marked x86 (0.16.8.1). If you run ~x86, it will accept either (that's what ~x86 means - allow packages marked ~x86 or lower (x86) to be installed) So much for stable/testing. There's another way to use all this, that is packages that don;t have any keywords at all. These are new ebuilds put in portage for the first stage of testing. These ebuilds usually eat your babies and cause your tax return to go missing, so they are special. To use them, you don't use any variables as above, you put an entry in /etc/portage/package.keywords to explicitly allow portage to use them. You have to list each package separately, so that when a dumb user cooks his own baby and offers it to emerge on a plate, he only has himself to blame. Now, eclipse-core is in this category: nazgul enlightenment # eix eclipse-core * dev-java/eclipse-core Available versions: (3) [M](~)3.2_pre2 Homepage:http://www.eclipse.org/ Description: Core Runtime Utilities for Eclipse See the [M] on the versions line? That says it's hard masked and you need to do this to get it going: echo dev-java/eclipse-core -* /etc/portage/package.keywords emerge -av eclipse-core Note the -* in the echo command, it is needed. It tells emerge to install that package regardless of the fact that it has no keywords set in the ebuild. Does all this answer your actual question? :-) alan -- Optimists say the glass is half full, Pessimists say the glass is half empty, Developers say wtf is the glass twice as big as it needs to be? Alan McKinnon alan at linuxholdings dot co dot za +27 82, double three seven, one nine three five -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] eclipse
On Thursday 12 April 2007 15:02:28 Alan McKinnon wrote: There are not one but TWO ways that packages get masked. Actually there's at least 3 possible masking reasons.. ~arch keyword, missing keyword and package.mask. Also the missing keyword reason is overloaded. [SNIP] [...] and 'ACCEPT_KEYWORDS=~x86' if you want unstable/testing. I don't think anyone should ever mention ACCEPT_KEYWORDS=~arch without making it clear that going back from all ~arch to stable is very hard and in certain special cases dangerous (mostly glibc downgrades). So much for stable/testing. There's another way to use all this, that is packages that don;t have any keywords at all. These are new ebuilds put in portage for the first stage of testing. [SNIP] Now, eclipse-core is in this category: Umm... no it isn't. It's ~x86 and package.mask'ed. Other ebuilds belonging to that category are socalled live ebuilds that pull latest version of a package from the version control system that upstream is using. A test of those today may not be valid tomorrow and hence they can't be keyworded. Useful for developers only. nazgul enlightenment # eix eclipse-core * dev-java/eclipse-core Available versions: (3) [M](~)3.2_pre2 [SNIP] See the [M] on the versions line? That says it's hard masked and you need to do this to get it going: echo dev-java/eclipse-core -* /etc/portage/package.keywords Wrong! Note the -* in the echo command, it is needed. It tells emerge to install that package regardless of the fact that it has no keywords set in the ebuild. No it doesn't. It tells emerge to install packages that have -* in KEYWORDS. For no keywords at all you need **. In this case you just need ~x86 and package.unmask.. -- Bo Andresen pgplKqDuZ1RSw.pgp Description: PGP signature
Re: [gentoo-user] 2.6.19-r5 kernel disaster
I think you did not enable the Unix Domain Sockets in your make menuconfig: Networking - Networking Support - Networking Options - Unix Domain Sockets This is the same thing Devon was talking about. On 11/04/07, maxim wexler [EMAIL PROTECTED] wrote: Hi group, After running make menuconfig 4x on a PIII, re-emerging --emptytree world and either booting to a highly unstable system or a maintenance login I feel it's time to call on the authorities. Don't even have gpm so I can't scroll the choice bits of the boot messages. It all starts to fall apart on the following line in the boot console * Starting udev... then udevd[367]: init_udevd socket: error getting socket: Address family not supported by protocol error initializing udevd socket udevd[367]: main: error initializing udevd socket [!!] ... * Checking root filesystem... Failed to open the device '/dev/hda3': No such file or directory * Filesystem couldn't be fe fixed :( [!!] Give root password for maintenance /dev/hda3 is reiserfs and reiserfs support is configured into the kernel as is ATA and IDE support. /etc/fstab is the same one(modified for different partitioning systems, of course) I've been using for years. /etc/fstab is not the problem. Yes, I did this: File systems --- Pseudo filesystems --- [*] /proc file system support [*] Virtual memory file system support (former shm fs) And have baselayout-1.12.9. When I chroot from the livecd(2005.1) everything seems to work; the modules all load, the software works etc. So, I'm at a complete loss. FWIW, when I do boot the maintenance console and run udevstart the system crashes forcing a reset. -mw Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- [EMAIL PROTECTED] mailing list -- Fabio A. Correa D. Physics Dept, Universidad Nacional, Bogota, Colombia [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] My webpage and OpenPGP key at http://facorread.150m.com My alexandria.cc address is not available anymore. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] eclipse
On Thursday 12 April 2007, Bo Ørsted Andresen wrote: On Thursday 12 April 2007 15:02:28 Alan McKinnon wrote: Umm... no it isn't. It's ~x86 and package.mask'ed. You are correct. I missed the (~) in the versions line Other ebuilds belonging to that category are socalled live ebuilds that pull latest version of a package from the version control system that upstream is using. A test of those today may not be valid tomorrow and hence they can't be keyworded. Useful for developers only. Or e17 fanboys :-) alan -- Optimists say the glass is half full, Pessimists say the glass is half empty, Developers say wtf is the glass twice as big as it needs to be? Alan McKinnon alan at linuxholdings dot co dot za +27 82, double three seven, one nine three five -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] video capture
On Friday 06 April 2007 12:15, ds wrote: On 4/5/07, Matthew R. Lee [EMAIL PROTECTED] wrote: On Thursday 05 April 2007 16:37, Uwe Thiem wrote: Does the camera generate a normal TV signal (PAL, SECAM, NTSC,...)? If so, the WinTV-PVR150 will work. I assume so, the manual doesn't explicitly say so, but it says just connect it to a video recorder or tv and away you go A quick google and check of my usual computer suppliers here in Chile doesn't bring up that card. Does it belong to a generic type? Will the average TVtuner type card work along with video4linux ( I guess)? My experience is that most video capture devices are used for Home Theater PC's, I've found the most information on the MythTV website. You can check out the documentation on hardware at this link: http://www.mythtv.org/docs/mythtv-HOWTO-3.html#ss3.1 I use the Plextor ConvertX, you will find it mentioned under the USB Capture Devices heading on the webpage above, with a link to the website that has the open source linux driver. This unit is nice because all of the video encoding happens on the device, so I am able to capture video with my ConvertX connected to a 400MHz Pentium 2 gentoo box. Now the driver is available through portage. See if you can get either the PX-M402U or the PX-TV402U in Chile. I do not think the PX-AV100U or the PX-TV100U will work with the open source linux driver. Right, after a lot more googling etc I might have found my solution. The number of capture cards available here in Chile is limited. I can't find any of the cards mentioned sofar, Hauppauge for example is no where to be found in Chile. The most widely available cards seem to be from Pinnacle. The Pinnacle Dazzle DVC-90, according to the documentation with the kernel works with the video4linux em28xx driver. I thought I should ask before I go buy it if anybody has experience with the card, or have I just volunteered to be the guinea pig :-) Matt -- %%% Dr. Matthew R. Lee CASEB ECIM Departamento de Ecologia, P. Universidad Catolica de Chile, Alameda 340, Santiago. CP 6513677 CHILE [EMAIL PROTECTED] [EMAIL PROTECTED] URL: meiochile.matthewlee.org %%% -- [EMAIL PROTECTED] mailing list
[gentoo-user] amarok, last.fm and recent updates
Hi everybody, after recent updates (emerge --sync emerge -uDN world) amarok stopped working with http://last.fm streams. I've experienced same behavior on two separate machines. First I've noticed it on my home machine but thought maybe something changed with last.fm and amarok can't connect to it period. To my surprise my workstation in the office was still working fine (until updates that is). After I updated my workstation in the office amarok stopped picking last.fm streams there too. I did revdep-rebuild with no success. I also re-merged ruby (as some of amarok scripts are written in ruby) and amarok just to be sure - nothing helped so far. Here's a list of packages I've updated in case that helps any: Tue Apr 10 09:42:12 2007 dev-libs/gmp-4.2.1-r1 Tue Apr 10 09:42:25 2007 net-misc/dhcpcd-3.0.16 Tue Apr 10 09:50:23 2007 sys-libs/ncurses-5.6 Tue Apr 10 09:50:50 2007 sys-apps/man-1.6e-r1 Tue Apr 10 09:51:38 2007 sys-apps/man-pages-2.44 Tue Apr 10 09:58:10 2007 sys-libs/db-4.3.29-r2 Tue Apr 10 10:06:06 2007 sys-devel/gdb-6.6-r2 Tue Apr 10 10:06:37 2007 app-text/unrtf-0.20.1 Tue Apr 10 10:06:53 2007 dev-perl/HTML-Tagset-3.10 Tue Apr 10 10:06:59 2007 virtual/perl-libnet-1.19 Tue Apr 10 10:07:18 2007 dev-perl/Crypt-SSLeay-0.51-r1 Tue Apr 10 10:07:34 2007 dev-perl/Parse-Yapp-1.05-r1 Tue Apr 10 10:07:49 2007 dev-perl/libxml-perl-0.08 Tue Apr 10 10:08:09 2007 dev-perl/HTML-Parser-3.55 Tue Apr 10 10:08:22 2007 dev-perl/XML-RegExp-0.03-r1 Tue Apr 10 10:08:39 2007 dev-perl/URI-1.35 Tue Apr 10 10:08:53 2007 dev-perl/HTML-Tree-3.23 Tue Apr 10 10:09:15 2007 dev-perl/libwww-perl-5.805 Tue Apr 10 10:09:31 2007 dev-perl/XML-DOM-1.44 Tue Apr 10 10:09:45 2007 dev-perl/XML-XQL-0.68 Tue Apr 10 10:11:06 2007 sys-apps/file-4.20-r1 Tue Apr 10 10:11:37 2007 dev-python/pyxml-0.8.4 Tue Apr 10 10:14:50 2007 dev-java/sun-jdk-1.5.0.11 Tue Apr 10 10:16:53 2007 dev-util/cvs-1.12.12-r4 Tue Apr 10 10:26:24 2007 net-mail/courier-imap-4.0.6-r2 Tue Apr 10 10:26:45 2007 app-portage/layman-1.0.10 Tue Apr 10 10:27:36 2007 www-client/mozilla-firefox-bin-2.0.0.3 Tue Apr 10 10:53:48 2007 media-gfx/inkscape-0.45.1 Tue Apr 10 12:08:15 2007 media-sound/lastfmplayer-1.1.3-r1 Tue Apr 10 12:52:15 2007 kde-base/kdelibs-3.5.5-r10 Tue Apr 10 12:54:28 2007 sys-apps/dbus-1.0.2-r2 Tue Apr 10 13:03:09 2007 media-gfx/kphotoalbum-3.0 -- Dmitry Makovey Web Systems Administrator Athabasca University (780) 675-6245 pgpmSz9mOTbGA.pgp Description: PGP signature
[gentoo-user] Re: Eclipse
Well it turns out I was on the wrong path from the start all I needed was the eclipse editor and the guide from Francisco did just that. Thanks for the enlightenment on the whole mask issue anyway. I'm sure it will come in handy later when I become more familiar with Gentoo. -- Regards / Venlig hilsen Johannes Skov Frandsen * * -- [EMAIL PROTECTED] mailing list
[gentoo-user] Re: 2.6.19-r5 kernel disaster
On 2007-04-12, Alan McKinnon [EMAIL PROTECTED] wrote: It looks like the kernel can't find the / device. The whole IDE/ATA/SATA/PATA/SCSI layout hingy changed with 2.6.19, so first thing to check is that everything you need is actually enabled in the kernel (yeah, there's some gotchas in there). Please post your .config Ya gotta love the Linux tradition of making big, incompatible changes between minor revs. -- Grant Edwards grante Yow! Yow! STYROFOAM... at visi.com -- [EMAIL PROTECTED] mailing list
[gentoo-user] {OT} Generating an online graph/chart
Hello, does anyone know of a package in portage that will take my data and generate a graph or chart from it for online viewing? - Grant -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] {OT} Generating an online graph/chart
Gnuplot, scilab... there are lots. Maybe you want to be more specific as to which format would you want to use for the generated graph: jpg, gif, svg: gnuplot flash: sswf On 12/04/07, Grant [EMAIL PROTECTED] wrote: Hello, does anyone know of a package in portage that will take my data and generate a graph or chart from it for online viewing? - Grant -- [EMAIL PROTECTED] mailing list -- Fabio A. Correa D. Physics Dept, Universidad Nacional, Bogota, Colombia [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] My webpage and OpenPGP key at http://facorread.150m.com My alexandria.cc address is not available anymore. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Re: 2.6.19-r5 kernel disaster
On Thu, 12 Apr 2007 14:47:52 + (UTC), Grant Edwards wrote: The whole IDE/ATA/SATA/PATA/SCSI layout hingy changed with 2.6.19, so first thing to check is that everything you need is actually enabled in the kernel (yeah, there's some gotchas in there). Please post your .config Ya gotta love the Linux tradition of making big, incompatible changes between minor revs. Actually, the PATA stuff didn't move. New (experimental) drivers were introduced, but the standard is still in the same place and works exactly as before. The SATA drivers were moved, something that should have been handled by oldconfig but wasn't :( -- Neil Bothwick It's kinda fun to consummate the impossible. signature.asc Description: PGP signature
Re: [gentoo-user] {OT} Generating an online graph/chart
Hi all.. Some project to do that exist but they are not in portage... If you are still interest http://www.aditus.nu/jpgraph/ PHP HTML Graph Class GDGraph for PHP PHP-GNUPlot I do not wich one is the best but making a fast search that are the results.. I hope help you... On 4/12/07, Grant [EMAIL PROTECTED] wrote: Hello, does anyone know of a package in portage that will take my data and generate a graph or chart from it for online viewing? - Grant -- [EMAIL PROTECTED] mailing list -- Francisco Rivas
Re: [gentoo-user] Re: 2.6.19-r5 kernel disaster
Am Donnerstag 12 April 2007 17:23 schrieb Neil Bothwick: On Thu, 12 Apr 2007 14:47:52 + (UTC), Grant Edwards wrote: The whole IDE/ATA/SATA/PATA/SCSI layout hingy changed with 2.6.19, so first thing to check is that everything you need is actually enabled in the kernel (yeah, there's some gotchas in there). Please post your .config Ya gotta love the Linux tradition of making big, incompatible changes between minor revs. Actually, the PATA stuff didn't move. New (experimental) drivers were introduced, but the standard is still in the same place and works exactly as before. The SATA drivers were moved, something that should have been handled by oldconfig but wasn't :( For that reason i prefer to do a: make oldconfig 2/tmp/config.log less /tmp/config.log So you see when a config symbol was renamed. pgp5UtDoZKOGj.pgp Description: PGP signature
Re: [gentoo-user] Setting up complex routes for pppd with /etc/conf.d/net [SOLVED]
pppd complains: ppp not replacing existing default route... (Isn't is possible to have multiple default routes with different metric values? Why not with pppd? How can I make pppd add another default route or replacing the current one?) So the solution is by hand: route -n # to see the $oldgw route del default route add -host $vpnserver gw $oldgw Or with the /etc/conf.d/net: dhcpcd_wlan0=(-G) routes_wlan0=($vpnserver via $guessedgw) Since I get IP addresses from different ranges, I get different gateways assigned and I'd need to guess them. And if I pass the -G option to dhcpcd, I have to guess the gateway. Are there dynamic values possible in the conf.d/net file? Wow, got it solved with iproute2. Have these two statements in the /etc/conf.d/net now: modules=( iproute2 ) metric_wlan0=200 config_wlan0=(dhcp) routes_wlan0=($VPNSERVER dev wlan0 metric 1) # This adds the route to $VPNSERVER using the default route of # device wlan0, which is set up by dhcpcd. config_ppp0=(null) routes_ppp0=(default dev ppp0 metric 100) # When the ppp0 device comes up by pppd, the init script is called, # adding a default route over ppp0 with metric 100. The metric is lower then # the metric of the other default route, so this one is preferred. # pppd does not need the defaultroute option, since it cannot create the # default route anyway After firing up wlan, dhcp and pppd, I have this automatically set up: # ip route show $REMOTEIP dev ppp0 proto kernel scope link src $LOCALIP $VPNSERVER dev wlan0 scope link metric 200 $VPNNET/24 dev wlan0 scope link metric 200 127.0.0.0/8 dev lo scope link default dev ppp0 scope link metric 100 default via $LOCALGATEWAY dev wlan0 metric 200 And I'm happy. :-) Sascha pgplPIT4nvCWM.pgp Description: PGP signature
Re: [gentoo-user] {OT} Generating an online graph/chart
Gnuplot, scilab... there are lots. Maybe you want to be more specific as to which format would you want to use for the generated graph: jpg, gif, svg: gnuplot flash: sswf gnuplot looks perfect. Thanks a lot. - Grant Hello, does anyone know of a package in portage that will take my data and generate a graph or chart from it for online viewing? - Gran -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] 2.6.19-r5 kernel disasterFIXED
--- Devon Miller [EMAIL PROTECTED] wrote: Check that you have CONFIG_UNIX=y in your .config. Bingo! Thanks Devon! -Maxim Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 -- [EMAIL PROTECTED] mailing list
[gentoo-user] console blanks permanantly
Hi group, Just after getting my unit w/2.6.19-r5 kernel to work this happens: I wanted to look at syslog so I did ctrlaltf12 as I usually do and found the console completely blank -- no login or cursor. When I try to get back to ctrlaltf1, it's blank too. Keyboard still works so I ctrlaltdel and reboot where everything's OK again. I did get a message that my bootlevel...consolefont was broken. So I deleted it from boot and re-added it to the default level. No good. So I went back around re-and-re'd it to boot again. Same thing. aaarrgh! Here's the .config for what it's worth: # # Automatically generated make config: don't edit # Linux kernel version: 2.6.19-gentoo-r5 # Thu Apr 12 04:38:31 2007 # CONFIG_X86_32=y CONFIG_GENERIC_TIME=y CONFIG_LOCKDEP_SUPPORT=y CONFIG_STACKTRACE_SUPPORT=y CONFIG_SEMAPHORE_SLEEPERS=y CONFIG_X86=y CONFIG_MMU=y CONFIG_GENERIC_ISA_DMA=y CONFIG_GENERIC_IOMAP=y CONFIG_GENERIC_HWEIGHT=y CONFIG_ARCH_MAY_HAVE_PC_FDC=y CONFIG_DMI=y CONFIG_DEFCONFIG_LIST=/lib/modules/$UNAME_RELEASE/.config # # Code maturity level options # # CONFIG_EXPERIMENTAL is not set CONFIG_BROKEN_ON_SMP=y CONFIG_INIT_ENV_ARG_LIMIT=32 # # General setup # CONFIG_LOCALVERSION= # CONFIG_LOCALVERSION_AUTO is not set CONFIG_SWAP=y CONFIG_SYSVIPC=y # CONFIG_IPC_NS is not set # CONFIG_BSD_PROCESS_ACCT is not set # CONFIG_TASKSTATS is not set # CONFIG_UTS_NS is not set # CONFIG_AUDIT is not set CONFIG_IKCONFIG=m CONFIG_IKCONFIG_PROC=y # CONFIG_RELAY is not set CONFIG_INITRAMFS_SOURCE= CONFIG_SYSCTL=y # CONFIG_EMBEDDED is not set CONFIG_UID16=y CONFIG_SYSCTL_SYSCALL=y CONFIG_KALLSYMS=y # CONFIG_KALLSYMS_EXTRA_PASS is not set CONFIG_HOTPLUG=y CONFIG_PRINTK=y CONFIG_BUG=y CONFIG_ELF_CORE=y CONFIG_BASE_FULL=y CONFIG_FUTEX=y CONFIG_EPOLL=y CONFIG_SHMEM=y CONFIG_SLAB=y CONFIG_VM_EVENT_COUNTERS=y CONFIG_RT_MUTEXES=y # CONFIG_TINY_SHMEM is not set CONFIG_BASE_SMALL=0 # CONFIG_SLOB is not set # # Loadable module support # CONFIG_MODULES=y CONFIG_MODULE_UNLOAD=y # CONFIG_MODVERSIONS is not set # CONFIG_MODULE_SRCVERSION_ALL is not set # CONFIG_KMOD is not set # # Block layer # CONFIG_BLOCK=y # CONFIG_LBD is not set # CONFIG_BLK_DEV_IO_TRACE is not set # CONFIG_LSF is not set # # IO Schedulers # CONFIG_IOSCHED_NOOP=y CONFIG_IOSCHED_AS=y CONFIG_IOSCHED_DEADLINE=y CONFIG_IOSCHED_CFQ=y CONFIG_DEFAULT_AS=y # CONFIG_DEFAULT_DEADLINE is not set # CONFIG_DEFAULT_CFQ is not set # CONFIG_DEFAULT_NOOP is not set CONFIG_DEFAULT_IOSCHED=anticipatory # # Processor type and features # # CONFIG_SMP is not set CONFIG_X86_PC=y # CONFIG_X86_ELAN is not set # CONFIG_X86_VOYAGER is not set # CONFIG_X86_NUMAQ is not set # CONFIG_X86_SUMMIT is not set # CONFIG_X86_BIGSMP is not set # CONFIG_X86_VISWS is not set # CONFIG_X86_GENERICARCH is not set # CONFIG_X86_ES7000 is not set # CONFIG_M386 is not set # CONFIG_M486 is not set # CONFIG_M586 is not set # CONFIG_M586TSC is not set # CONFIG_M586MMX is not set # CONFIG_M686 is not set # CONFIG_MPENTIUMII is not set CONFIG_MPENTIUMIII=y # CONFIG_MPENTIUMM is not set # CONFIG_MPENTIUM4 is not set # CONFIG_MK6 is not set # CONFIG_MK7 is not set # CONFIG_MK8 is not set # CONFIG_MCRUSOE is not set # CONFIG_MEFFICEON is not set # CONFIG_MWINCHIPC6 is not set # CONFIG_MWINCHIP2 is not set # CONFIG_MWINCHIP3D is not set # CONFIG_MGEODEGX1 is not set # CONFIG_MGEODE_LX is not set # CONFIG_MCYRIXIII is not set # CONFIG_MVIAC3_2 is not set # CONFIG_X86_GENERIC is not set CONFIG_X86_CMPXCHG=y CONFIG_X86_XADD=y CONFIG_X86_L1_CACHE_SHIFT=5 CONFIG_RWSEM_XCHGADD_ALGORITHM=y CONFIG_GENERIC_CALIBRATE_DELAY=y CONFIG_X86_WP_WORKS_OK=y CONFIG_X86_INVLPG=y CONFIG_X86_BSWAP=y CONFIG_X86_POPAD_OK=y CONFIG_X86_CMPXCHG64=y CONFIG_X86_GOOD_APIC=y CONFIG_X86_INTEL_USERCOPY=y CONFIG_X86_USE_PPRO_CHECKSUM=y CONFIG_X86_TSC=y # CONFIG_HPET_TIMER is not set # CONFIG_PREEMPT_NONE is not set CONFIG_PREEMPT_VOLUNTARY=y # CONFIG_PREEMPT is not set # CONFIG_X86_UP_APIC is not set CONFIG_X86_MCE=y # CONFIG_X86_MCE_NONFATAL is not set CONFIG_VM86=y # CONFIG_TOSHIBA is not set # CONFIG_I8K is not set # CONFIG_X86_REBOOTFIXUPS is not set # CONFIG_MICROCODE is not set # CONFIG_X86_MSR is not set # CONFIG_X86_CPUID is not set # # Firmware Drivers # # CONFIG_EDD is not set # CONFIG_DELL_RBU is not set # CONFIG_DCDBAS is not set # CONFIG_NOHIGHMEM is not set CONFIG_HIGHMEM4G=y # CONFIG_HIGHMEM64G is not set CONFIG_PAGE_OFFSET=0xC000 CONFIG_HIGHMEM=y CONFIG_ARCH_POPULATES_NODE_MAP=y CONFIG_FLATMEM=y CONFIG_FLAT_NODE_MEM_MAP=y # CONFIG_SPARSEMEM_STATIC is not set CONFIG_SPLIT_PTLOCK_CPUS=4 # CONFIG_RESOURCES_64BIT is not set # CONFIG_HIGHPTE is not set # CONFIG_MATH_EMULATION is not set CONFIG_MTRR=y # CONFIG_EFI is not set CONFIG_REGPARM=y # CONFIG_SECCOMP is not set # CONFIG_HZ_100 is not set # CONFIG_HZ_250 is not set CONFIG_HZ_1000=y CONFIG_HZ=1000 # CONFIG_KEXEC is not set CONFIG_PHYSICAL_START=0x10 # CONFIG_COMPAT_VDSO is not set CONFIG_ARCH_ENABLE_MEMORY_HOTPLUG=y # # Power management options (ACPI, APM) # CONFIG_PM=y
[gentoo-user] console blanks permanantly--addendum
Hi group, Just after getting my unit w/2.6.19-r5 kernel to work this happens: I wanted to look at syslog so I did ctrlaltf12 as I usually do and found the console completely blank -- no login or cursor. don't have to use the keyboard -- screen goes to sleep on its own but doesn't wake up when a key pressed. -mw We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] after major upgrade questions remain
Not sure if anyone responded to this yet, so with the fear of being redundant here it goes: On Tuesday 10 April 2007 20:05, maxim wexler wrote: Hi group, I did an emerge -uD world on a box with the 2.6.12 kernel on it via the 2005.1 livecd. 1)From the logs or perhaps an online doc I read that I must manage a static /dev or ensure udev starts on boot. But how? There's no udev in init.d or conf.d. emerge -upDv sys-fs/udev 2)The emerge process terminated with the message 'slocate' renamed 'locate'. and to run #groupmod -n locate slocate. Which I did and was able to resume the process. Now in the new system both man locate and man slocate go to the same file, slocate(1). So what was that all about? It seemed important enough to shut the whole process down. Hmm, I must have missed it out on my system (but it still works with the group named locate). 3)Another message state with regard to glibc upgrade /etc/locales.build to /etc/local.gen then run /etc/locals.build. Words to that effect. How the heck do I do that? Copy the contents of one to the other and then run # locale-gen. My /etc/locale.gen shows: = # /etc/locale.gen: list all of the locales you want to have on your system # # The format of each line: # locale charmap # # Where locale is a locale located in /usr/share/i18n/locales/ and # where charmap is a charmap located in /usr/share/i18n/charmaps/. # # All blank lines and lines starting with # are ignored. # # For the default list of supported combinations, see the file: # /usr/share/i18n/SUPPORTED # # Whenever glibc is emerged, the locales listed here will be automatically # rebuilt for you. After updating this file, you can simply run `locale-gen` # yourself instead of re-emerging glibc. en_GB.UTF-8 UTF-8 en_GB ISO-8859-1 en_US.UTF-8 UTF-8 en_US ISO-8859-1 = HTH. -- Regards, Mick pgpdPxzh2v0oQ.pgp Description: PGP signature
Re: [gentoo-user] after major upgrade questions remain
--- Mick [EMAIL PROTECTED] wrote: Not sure if anyone responded to this yet, so with the fear of being redundant here it goes: Yes, you are a trifle tardy ;) emerge -upDv sys-fs/udev It was already emerged. Problem was CONFIG_UNIX was set to m instead of * All sorted. Hmm, I must have missed it out on my system (but it still works with the group named locate). Noticed that too. Copy the contents of one to the other and then run # locale-gen. Yeah, I noticed I had that file already so I just ignored the rest of the message. Now I note I have broken runlevels when I #rc-update show and also the console goes into sleep mode but won't recover until I reboot. Time for some followup. -Maxim No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] laptop sometimes needs double keystrokes
Roger Mason wrote: Does it also happen in another shell than bash (for example in 'busybox ash')? Just tried it: no, the problem was absent. Okay. Hmm... Which version of bash are you using? You're running stable so it should be 3.1. But I would have thought that the problem you're seeing is caused by 3.2. If you're using 3.2, then simply try setting PS1=\h \W \$ and see if the problem is gone. If so, downgrade to bash-3.1 and wait for 3.2 to get fixed. Does it happen in single-user maintenaince mode? I'm embarrased to admit I don't know how to get to that. Stop GRUB when in its booting menu, then type E to temporarily change the line that boots Gentoo, type a space and a 1 at the end, and then boot that line. You have to fiddle a bit, needing to type E twice, then add 1, then Escape, then B -- I don't remember exactly. See http://gentoo-wiki.com/TIP_Booting_into_single_user_mode for more info. But you don't need to do this as you've already found that the problem is in bash and it's related to something in the environment. If the PS1 didn't fix it, try with either just --norc or just --noprofile to try and narrow things down further. Benno -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] floppy flops: mtools vs file managers
070411 David W Noon wrote: In message [EMAIL PROTECTED], Philip Webb wrote: Ordinarily, I use Mtools to manage diskettes (floppies): it's very fast efficient to copy delete files from the CLI. I presume you use only FAT12 formatted floppies Yes: they have never been reformatted under Linux. I've long had Krusader installed have recently tested Thunar Dolphin find that while they claim to handle diskettes, it's not reliable: sometimes they do copy or delete files successfully; sometimes they say they have, but nothing happens in the drive; sometimes they say they can't access the drive at all. I've added a line to /etc/fstab : '/dev/fd0 /mnt/floppy vfat noauto,user 0 0' I would have thought filesystem 'msdos' would make more sense, if all your floppies are FAT12. I've changed it, but it doesn't seem to make a difference. Further testing (all under KDE 3.5.6) reveals the following: Krusader needs to be root to write or delete diskette files; Thunar mounts, writes deletes ok, but there's a 35 sec delay before the drive reacts to update the file list you have to 'unmount' the device, then reopen it; Dolphin doesn't seem able to handle the diskette drive reliably, but it is still testing (Gentoo) under active development (KDE). For everyday purposes, there's nothing like CLI + Mtools, but I wanted to try out the capabilities of the file managers. Further comments welcome from anyone. -- ,, SUPPORT ___//___, Philip Webb : [EMAIL PROTECTED] ELECTRIC /] [] [] [] [] []| Centre for Urban Community Studies TRANSIT`-O--O---' University of Toronto -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] 2.6.19-r5 kernel disaster
Hi! On Wed, 11 Apr 2007 20:02:54 -0700 (PDT) maxim wexler [EMAIL PROTECTED] wrote: After running make menuconfig 4x on a PIII, re-emerging --emptytree world and either booting to a highly unstable system or a maintenance login I feel it's time to call on the authorities. Don't even have gpm so I can't scroll the choice bits of the boot messages. You don't need gpm for that. SHIFT-PgUp and SHIFT-PgDn can do that too. ;-) And the following excerpt from /etc/conf.d/rc might help in debugging boot problems: === # RC_BOOTLOG will generate a log of the boot messages shown on the # console. Useful for headless machines or debugging. You need to # emerge the app-admin/showconsole package for this to work. Note that # this probably won't work correctly with boot splash. RC_BOOTLOG=no === Cheers, Renat -- Probleme kann man niemals mit derselben Denkweise loesen, durch die sie entstanden sind. (Einstein) signature.asc Description: PGP signature
Re: [gentoo-user] Any consequences to package.mask'ing newer kernels?
Neil Bothwick wrote: At around 300MB per kernel, that's ten excess kernels, so you can't be doing it that often. Once you're happy with the current kernel, you only need emerge -P gentoo-sources to remove the rest. I use a script that removes all but the last two, and also cleans out /lib/modules and /boot. Neil, any chance we could get that script? Tony -- Those who would give up essential Liberty, to purchase a little temporary Safety, deserve neither Liberty nor Safety. -- Benjamin Franklin -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Any consequences to package.mask'ing newer kernels?
On Friday 13 April 2007 01:12:08 Anthony E. Caudel wrote: At around 300MB per kernel, that's ten excess kernels, so you can't be doing it that often. Once you're happy with the current kernel, you only need emerge -P gentoo-sources to remove the rest. I use a script that removes all but the last two, and also cleans out /lib/modules and /boot. Neil, any chance we could get that script? Provided you have gentoolkit something as simple as this works: # emerge -Cva $(equery -q list gentoo-sources | head -n -2) -- Bo Andresen pgpGwVbNGGWa5.pgp Description: PGP signature
Re: [gentoo-user] Any consequences to package.mask'ing newer kernels?
On Fri, 13 Apr 2007 01:33:43 +0200, Bo Ørsted Andresen wrote: At around 300MB per kernel, that's ten excess kernels, so you can't be doing it that often. Once you're happy with the current kernel, you only need emerge -P gentoo-sources to remove the rest. I use a script that removes all but the last two, and also cleans out /lib/modules and /boot. Neil, any chance we could get that script? Provided you have gentoolkit something as simple as this works: # emerge -Cva $(equery -q list gentoo-sources | head -n -2) That only cleans out /usr/src, it's slightly different to what I use (which rm's the directories first to speed things up) but does basically the same. You also need to clear out /lib/modules and /boot with Here's the script I use, which is guaranteed to work when it doesn't fail. When it does break, you can keep the pieces. #!/bin/bash # clean /lib/modules cd /lib/modules ls -1rt | head -n -2 | xargs --no-run-if-empty rm -fr # clean /boot grep --quiet /boot /etc/fstab mount /boot -o remount,rw cd /boot ls -1rt config-* | head -n -2 | while read f; do bzip2 -9 $f mv $f.bz2 oldconfigs/ done ls -1rt System.map-* | head -n -2 | xargs --no-run-if-empty rm -f if [ -f vmlinux ]; then ls -1rt vmlinux-* | head -n -2 | xargs --no-run-if-empty rm -f else ls -1rt vmlinuz-* | head -n -2 | xargs --no-run-if-empty rm -f fi # clean /usr/src cd /usr/src ls -1drt linux-* | head -n -2 | xargs --no-run-if-empty rm -fr equery --quiet --nocolor list --duplicates gentoo-sources | awk '{print $1}' | head -n -2 | xargs --no-run-if-empty emerge --unmerge /dev/null grep --quiet /boot /etc/fstab mount /boot -o remount,ro # END The vmlinuz/vmlinux stuff is because I have a PPC system too, which calls the kernel vmlinux. -- Neil Bothwick Things are more like they are today than they ever have been before. signature.asc Description: PGP signature
Re: [gentoo-user] Any consequences to package.mask'ing newer kernels?
On Friday 13 April 2007 01:59:47 Neil Bothwick wrote: Provided you have gentoolkit something as simple as this works: # emerge -Cva $(equery -q list gentoo-sources | head -n -2) That only cleans out /usr/src, it's slightly different to what I use (which rm's the directories first to speed things up) but does basically the same. You also need to clear out /lib/modules and /boot with True. Here's the script I use, which is guaranteed to work when it doesn't fail. When it does break, you can keep the pieces. [SNIP] equery --quiet --nocolor list --duplicates gentoo-sources | awk '{print $1}' | head -n -2 | xargs --no-run-if-empty emerge --unmerge /dev/null Out of interest: 1) Why --duplicates (i.e. am I missing something ;). 2) Why the awk? Is there ever more than one column without --no-pipe ? -- Bo Andresen pgpvOj4aemQ3p.pgp Description: PGP signature
Re: [gentoo-user] floppy flops: mtools vs file managers
On Thu, Apr 12, 2007 at 05:52:57PM -0400, Philip Webb wrote Thunar mounts, writes deletes ok, but there's a 35 sec delay before the drive reacts to update the file list you have to 'unmount' the device, then reopen it; That's called caching. It does wonders for system responsiveness, but sucks at fast updates to files. If you're willing to wait while the system writes to the floppy, try... /dev/fd0 /mnt/floppy msdos noauto,user,sync 0 0 ...in /etc/fstab. I don't know if the sync options works with MSDOS filesys, but it's worth a try. Another option is the sync command, as in /bin/sync. However, it's a bit heavy-handed because it syncs all mounted partitions. It may be more convenient than unmount+mount. -- Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1 Q. Mr. Ghandi, what do you think of Microsoft security? A. I think it would be a good idea. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] console blanks permanantly
On Thu, Apr 12, 2007 at 10:54:00AM -0700, maxim wexler wrote I wanted to look at syslog so I did ctrlaltf12 as I usually do and found the console completely blank -- no login or cursor. When I try to get back to ctrlaltf1, it's blank too. Keyboard still works so I ctrlaltdel and reboot where everything's OK again. I did get a message that my bootlevel...consolefont was broken. So I deleted it from boot and re-added it to the default level. No good. So I went back around re-and-re'd it to boot again. Same thing. The only uncommented line in my /etc/conf.d/consolefont is... CONSOLEFONT=lat1-10 and /usr/share/consolefonts/lat1-10.psfu.gz does exist. A couple of things to check... 1) What exactly is error message at bootup? 2) What does your /etc/conf.d/consolefont file look like? -- Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1 Q. Mr. Ghandi, what do you think of Microsoft security? A. I think it would be a good idea. -- [EMAIL PROTECTED] mailing list
[gentoo-user] more on the mysterious console blanking
Hi group, This is a puzzler. Can't get no relief. Can't be hardware cause it only started happening with this current 2.6.19-r5 install. Modules for video card, Rage 128 and frambuffer are not loaded. The screen goes blank after an interval as though it were going to sleep. But it can't be awoken. The screen also goes blank when an attempt is made to switch to another console with ctrl-alt-fn. Only way to restore console is to reboot(the keyboard still works) and start all over again. Then a) keep hitting a key to keep it from going to sleep and b) never attempt looking at another console if you want to see what you're doing. And here's another complication: once it goes blank any bolded type on the console can be made just barely visible by cranking the brightness to the max. So it's not *completely* blank but it is definitely useless. Oh, and I ran #setterm -blank 0 Did no good. Here's the graphics/console part of .config: # # Graphics support # # CONFIG_FIRMWARE_EDID is not set CONFIG_FB=m CONFIG_FB_CFB_FILLRECT=m CONFIG_FB_CFB_COPYAREA=m CONFIG_FB_CFB_IMAGEBLIT=m # CONFIG_FB_MACMODES is not set # CONFIG_FB_BACKLIGHT is not set # CONFIG_FB_MODE_HELPERS is not set # CONFIG_FB_TILEBLITTING is not set # CONFIG_FB_CIRRUS is not set # CONFIG_FB_PM2 is not set # CONFIG_FB_CYBER2000 is not set # CONFIG_FB_ARC is not set # CONFIG_FB_VGA16 is not set CONFIG_VIDEO_SELECT=y # CONFIG_FB_HGA is not set # CONFIG_FB_S1D13XXX is not set # CONFIG_FB_NVIDIA is not set # CONFIG_FB_RIVA is not set # CONFIG_FB_MATROX is not set # CONFIG_FB_RADEON is not set CONFIG_FB_ATY128=m # CONFIG_FB_ATY is not set # CONFIG_FB_SIS is not set # CONFIG_FB_NEOMAGIC is not set # CONFIG_FB_KYRO is not set # CONFIG_FB_3DFX is not set # CONFIG_FB_VOODOO1 is not set # CONFIG_FB_CYBLA is not set # CONFIG_FB_TRIDENT is not set # CONFIG_FB_VIRTUAL is not set # # Console display driver support # CONFIG_VGA_CONSOLE=y CONFIG_VGACON_SOFT_SCROLLBACK=y CONFIG_VGACON_SOFT_SCROLLBACK_SIZE=128 CONFIG_DUMMY_CONSOLE=y # CONFIG_FRAMEBUFFER_CONSOLE is not set Does it have to do with this dummy console? Am I the dummy? I went through the config pages with a fine tooth comb and couldn't find it. No idea how it got into the .config file. -mw Now that's room service! Choose from over 150,000 hotels in 45,000 destinations on Yahoo! Travel to find your fit. http://farechase.yahoo.com/promo-generic-14795097 -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Setting up complex routes for pppd with /etc/conf.d/net [SOLVED]
On Thu, Apr 12, 2007 at 12:29:03PM -0400, Sascha Hlusiak wrote Wow, got it solved with iproute2. Have these two statements in the /etc/conf.d/net now: I've have to do something similar when I use my backup dialup account instead of eth0 to the router to ADSL. Here are my ~/bin/dialup and ~/bin/dialdown scripts. Before dialup, I have to take down eth0 and set up ssmtp to use my dialup ISP's MTA... #!/bin/bash /usr/bin/sudo /sbin/ifconfig eth0 down /usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/295.ssmtp.conf /etc/ssmtp/ssmtp.conf /usr/bin/sudo /usr/sbin/pon 295caext After hanging up after a dialup session, I have to reset ssmtp to use my ADSL provider's MTA server, and restart eth0... #!/bin/bash /usr/bin/sudo /usr/sbin/poff /usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/istop.ssmtp.conf /etc/ssmtp/ssmtp.conf /usr/bin/sudo /etc/init.d/net.eth0 restart Is it possible to set things up so that... - when only eth0 is active, everything routes via 192.168.123.254 - when both eth0 and ppp0 are active, my little LAN on 192.168.123.248/29 (aka netmask 255.255.255.248) routes via 192.168.123.254 and everything else routes through ppp0? My current /etc/conf.d/net looks like so... config_eth0=192.168.123.252 broadcast 192.168.123.255 netmask 255.255.255.248 mtu 1452 routes_eth0=(default via 192.168.123.254) -- Walter Dnes [EMAIL PROTECTED] In linux /sbin/init is Job #1 Q. Mr. Ghandi, what do you think of Microsoft security? A. I think it would be a good idea. -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] Setting up complex routes for pppd with /etc/conf.d/net [SOLVED]
Is it possible to set things up so that... - when only eth0 is active, everything routes via 192.168.123.254 - when both eth0 and ppp0 are active, my little LAN on 192.168.123.248/29 (aka netmask 255.255.255.248) routes via 192.168.123.254 and everything else routes through ppp0? What do you want to route through 192.168.123.254? What is behind the router? My current /etc/conf.d/net looks like so... config_eth0=192.168.123.252 broadcast 192.168.123.255 netmask 255.255.255.248 mtu 1452 routes_eth0=(default via 192.168.123.254) Why did you need to take down eth0? Deleting the default route before dialing up should be enough to have both, the LAN reachable and the Internet through ppp0. But I just learned, that you can have more default routes and prioritize them using the metric. If your pppd is complaining, not replacing existing default route, set the metric of route_eth0 to 10 and add the two lines to conf.d/net: config_ppp0=(null) routes_ppp0=(default dev ppp0 metric 9) And ln -s /etc/init.d/net.lo /etc/init.d/net.ppp0 This should add the favoured default route over ppp0. - Sascha signature.asc Description: This is a digitally signed message part.