[gentoo-user] pppd 2.4.5
When trying to contact by VPN nm-applet says: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so is for pppd version 2.4.5, this is 2.4.4 How I can install pppd 2.4.5 if portage has only net-dialup/ppp-2.4.4 ? Thanks. -- Gary Golden
Re: [gentoo-user] pppd 2.4.5
Gary Golden wrote: When trying to contact by VPN nm-applet says: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so is for pppd version 2.4.5, this is 2.4.4 How I can install pppd 2.4.5 if portage has only net-dialup/ppp-2.4.4 ? Thanks. r...@smoker / # equery list -p ppp * Searching for ppp ... [-P-] [ ] net-dialup/ppp-2.4.4-r24:0 [IP-] [ ] net-dialup/ppp-2.4.4-r25:0 [-P-] [ ~] net-dialup/ppp-2.4.5:0 r...@smoker / # So add =net-dialup/ppp-2.4.5 to your keywords file and emerge it. That help? Dale :-) :-)
Re: [gentoo-user] Crufted with perl modules?
On Tue, 16 Nov 2010 19:18:23 -0800, Grant wrote: find / -exec qfile -o '{}' \; Thanks Willie, that gave me a great list. Very cool command. Almost all the orphaned stuff in /usr/lib/perl5 is either in: /usr/lib/perl5/site_perl/5.12.2 with corresponding but not orphaned contents in: /usr/lib/perl5/vendor_perl/5.12.2 Does the first directory contain symlinks to the files in the second? You should exclude symlinks from the process by adding -type f to the find command (you can clear up dangling symlinks later). or the orphaned stuff is in: /usr/lib/perl5/5.12.2/x86_64-linux Do the orphaned files sound OK to delete in this case? Is there a slick way to do so? If you know which modules you installed with CPAN, you should be able to tell which directory contains the files you need to get rid of. Then run the find ... --orphans command over that directory and feed its output to rm. -- Neil Bothwick Will the last human please uninstall internet.exe. signature.asc Description: PGP signature
Re: [gentoo-user] pppd 2.4.5
On Wed, 17 Nov 2010 13:25:02 +0500, Gary Golden wrote: When trying to contact by VPN nm-applet says: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so is for pppd version 2.4.5, this is 2.4.4 How I can install pppd 2.4.5 if portage has only net-dialup/ppp-2.4.4 ? As Dale says, 2.4.5 is available but keyworded. However, if nm-applet is from arch but depends on an ~arch program, this is wrong and you should file a bug report. If you are already running an~arch version of nm-applet, welcome to the wonderful world of a mixed system :) -- Neil Bothwick A clean desk is a sign of a cluttered desk drawer. signature.asc Description: PGP signature
Re: [gentoo-user] Crufted with perl modules?
Willie Wong ww...@math.princeton.edu wrote: So to go through your system looking for all orphaned files, you do something like find / -exec qfile -o '{}' \; ... which will produce a load of output that you don't want. So best This is why find -exec + exists since 20 years. Jörg -- EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin j...@cs.tu-berlin.de(uni) joerg.schill...@fokus.fraunhofer.de (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily
Re: [gentoo-user] pppd 2.4.5
Neil Bothwick wrote: On Wed, 17 Nov 2010 13:25:02 +0500, Gary Golden wrote: When trying to contact by VPN nm-applet says: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so is for pppd version 2.4.5, this is 2.4.4 How I can install pppd 2.4.5 if portage has only net-dialup/ppp-2.4.4 ? As Dale says, 2.4.5 is available but keyworded. However, if nm-applet is from arch but depends on an ~arch program, this is wrong and you should file a bug report. If you are already running an~arch version of nm-applet, welcome to the wonderful world of a mixed system :) I was wondering about that too. OP. If you are running a mixed system, check out autounmask. It will catch dependencies too. You can use the -p option if you want to do things by hand. Dale :-) :-)
[gentoo-user] slocate masked
Hi all, slocate is now masked and will be removed. As i often used locate to easily find packages, what else could i run ? Thank you for your answers, cheers, -- Jacques Site web https://sites.google.com/site/jacquesfr35/
Re: [gentoo-user] slocate masked
On Wed, Nov 17, 2010 at 1:30 PM, Jacques Montier jacques.mont...@numericable.fr wrote: Hi all, slocate is now masked and will be removed. As i often used locate to easily find packages, what else could i run ? Thank you for your answers, cheers, -- Jacques Site web https://sites.google.com/site/jacquesfr35/ I got the following message when updating. No longer developed and replaced by sys-apps/mlocate So I would emerge mlocate Best regards Petri
Re: [gentoo-user] slocate masked
Le 17/11/2010 12:30, Jacques Montier a écrit : Hi all, slocate is now masked and will be removed. As i often used locate to easily find packages, what else could i run ? Thank you for your answers Just read mask message : No longer developed and replaced by sys-apps/mlocate -- Éric chatell...@codelutin.com Tel: 02 40 50 29 28 http://www.codelutin.com
Re: [gentoo-user] slocate masked
Apparently, though unproven, at 13:35 on Wednesday 17 November 2010, Petri Rosenström did opine thusly: On Wed, Nov 17, 2010 at 1:30 PM, Jacques Montier jacques.mont...@numericable.fr wrote: Hi all, slocate is now masked and will be removed. As i often used locate to easily find packages, what else could i run ? Thank you for your answers, cheers, -- Jacques Site web https://sites.google.com/site/jacquesfr35/ I got the following message when updating. No longer developed and replaced by sys-apps/mlocate So I would emerge mlocate Best regards Petri You will also need to re-run updatedb (this will take a while) and delete /var/lib/slocate/ - it is now useless as mlocate uses /var/lib/mlocate/ -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] slocate masked
Le 17/11/2010 12:40, Alan McKinnon a gentiment tapote: Apparently, though unproven, at 13:35 on Wednesday 17 November 2010, Petri Rosenström did opine thusly: On Wed, Nov 17, 2010 at 1:30 PM, Jacques Montier jacques.mont...@numericable.fr wrote: Hi all, slocate is now masked and will be removed. As i often used locate to easily find packages, what else could i run ? Thank you for your answers, cheers, -- Jacques Site web https://sites.google.com/site/jacquesfr35/ I got the following message when updating. No longer developed and replaced by sys-apps/mlocate So I would emerge mlocate Best regards Petri You will also need to re-run updatedb (this will take a while) and delete /var/lib/slocate/ - it is now useless as mlocate uses /var/lib/mlocate/ Thank you very much, Cheers, -- Jacques Site web https://sites.google.com/site/jacquesfr35/
Re: [gentoo-user] pppd 2.4.5
On 11/17/2010 01:52 PM, Dale wrote: Gary Golden wrote: When trying to contact by VPN nm-applet says: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so is for pppd version 2.4.5, this is 2.4.4 How I can install pppd 2.4.5 if portage has only net-dialup/ppp-2.4.4 ? Thanks. r...@smoker / # equery list -p ppp * Searching for ppp ... [-P-] [ ] net-dialup/ppp-2.4.4-r24:0 [IP-] [ ] net-dialup/ppp-2.4.4-r25:0 [-P-] [ ~] net-dialup/ppp-2.4.5:0 r...@smoker / # So add =net-dialup/ppp-2.4.5 to your keywords file and emerge it. That help? Dale :-) :-) Oh, that is cool feature. Yes, it works, thanks! -- Gary Golden
Re: [gentoo-user] pppd 2.4.5
On 11/17/2010 02:19 PM, Neil Bothwick wrote: On Wed, 17 Nov 2010 13:25:02 +0500, Gary Golden wrote: When trying to contact by VPN nm-applet says: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so is for pppd version 2.4.5, this is 2.4.4 How I can install pppd 2.4.5 if portage has only net-dialup/ppp-2.4.4 ? As Dale says, 2.4.5 is available but keyworded. However, if nm-applet is from arch but depends on an ~arch program, this is wrong and you should file a bug report. If you are already running an~arch version of nm-applet, welcome to the wonderful world of a mixed system :) nm-applet has this keywords: KEYWORDS=amd64 ~ppc x86 So, yes, it is a bug. -- Gary Golden
Re: [gentoo-user] pppd 2.4.5
On 11/17/2010 03:06 PM, Dale wrote: Neil Bothwick wrote: On Wed, 17 Nov 2010 13:25:02 +0500, Gary Golden wrote: When trying to contact by VPN nm-applet says: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so is for pppd version 2.4.5, this is 2.4.4 How I can install pppd 2.4.5 if portage has only net-dialup/ppp-2.4.4 ? As Dale says, 2.4.5 is available but keyworded. However, if nm-applet is from arch but depends on an ~arch program, this is wrong and you should file a bug report. If you are already running an~arch version of nm-applet, welcome to the wonderful world of a mixed system :) I was wondering about that too. OP. If you are running a mixed system, check out autounmask. It will catch dependencies too. You can use the -p option if you want to do things by hand. Dale :-) :-) Thanks for the tip. It is handy. -- Gary Golden
Re: [gentoo-user] how to rebuild gentoo on a somewhat different hardware
On 11/17/10 00:01:15, Adam Carter wrote: I have an up-to-date ~amd64 GenToo installation with has been built on a current AMD64 (Phenom II) machine where I used -mtune=native in etc/make.conf since I didn't think of the case that I would need to port this system to a somewhat older Opteron based machine (still AMD64) But after cloning the system, some fundamental utilities die of an illegal instruction. Did you have -march set? If so, what to? If -march is unset, then AFAIK your binaries should run on any amd64 machine. If you have it set to native, then your binaries will only run on equal or greater hardware than what it was built on. Thanks Alan. I knew that, but then I inherited an somewhat older Opteron machine and I wasn't aware that this one had a different instruction set then current Opterons. Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
[gentoo-user] [OT] some two more rsync questions
Hi, I have two problems with rsync 1st) if I give both commandline options -u and -c it looks as if a file which is more recent but different on the destination is not updated, i.e. -u overrules -c Is that true? 2nd) There is a symlink A on SourceDir which refers to a directory On the other hand, A is the name of a (real) subdirectory of DestDir Now doing rsync -auHz --delete --exclude=/A SourceDir/ DestDir/ does remove A on DestDir - why ? I'm using rsync-3.0.7 . Many thanks for a hint, Helmut.
[gentoo-user] why portage downgrade?
I currently am using unstable gentoo and have 2.2.0_alpha1. Now if I obey instructions, portage will be downgraded to 2.1.9.24. I really prefer the 2.2 series unless something has gone very wrong, why is this happening and how can I prevent this? Thanks in advance for any suggestions. -- Your life is like a penny. You're going to lose it. The question is: How do you spend it? John Covici cov...@ccs.covici.com
Re: [gentoo-user] why portage downgrade?
On Wed, 17 Nov 2010 07:30:01 -0500, cov...@ccs.covici.com wrote: I currently am using unstable gentoo and have 2.2.0_alpha1. Now if I obey instructions, portage will be downgraded to 2.1.9.24. I really prefer the 2.2 series unless something has gone very wrong, why is this happening and how can I prevent this? This is covered in the ChangeLog and has already been discussed on this list. -- Neil Bothwick Top Oxymorons Number 35: Legally drunk signature.asc Description: PGP signature
Re: [gentoo-user] Crufted with perl modules?
Am 17.11.2010 10:19, schrieb Joerg Schilling: This is why find -exec + exists since 20 years. Could you enlighten me about this? I look into man find but it says nothing about -exec + or a + operator at all. Also adding + to the command doesn't work either. Greetings Sebastian Beßler
Re: [gentoo-user] Crufted with perl modules?
On Wed, 2010-11-17 at 13:52 +0100, Sebastian Beßler wrote: Am 17.11.2010 10:19, schrieb Joerg Schilling: This is why find -exec + exists since 20 years. Could you enlighten me about this? I look into man find but it says nothing about -exec + or a + operator at all. Also adding + to the command doesn't work either. Which man page are you looking at? It's in my find man page at least.
Re: [gentoo-user] why portage downgrade?
Apparently, though unproven, at 14:30 on Wednesday 17 November 2010, cov...@ccs.covici.com did opine thusly: I currently am using unstable gentoo and have 2.2.0_alpha1. Now if I obey instructions, portage will be downgraded to 2.1.9.24. I really prefer the 2.2 series unless something has gone very wrong, why is this happening and how can I prevent this? Thanks in advance for any suggestions. The answer you seek is all in $PORTDIR/profiles/Changelog -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Crufted with perl modules?
Am 17.11.2010 13:54, schrieb Albert Hopkins: On Wed, 2010-11-17 at 13:52 +0100, Sebastian Beßler wrote: Am 17.11.2010 10:19, schrieb Joerg Schilling: This is why find -exec + exists since 20 years. Could you enlighten me about this? I look into man find but it says nothing about -exec + or a + operator at all. Also adding + to the command doesn't work either. Which man page are you looking at? It's in my find man page at least. man find Aktionen -exec Kommando; führt das Kommando aus; die Aktion ist wahr, wenn das Kommando einen Status von Null liefert; alle auf den Kommandonamen folgenden Argumente bis zu einem Semikolon ; werden als Kommandozeilenargumente für das Kommando interpretiert; das Semikolon kann nicht weggelassen werden, und es muss durch mindestens ein Whitespace von der letzten Option getrennt werden; die Konstruktion {} wird durch den Pfadnamen der Datei ersetzt; die Klammern und das Semikolon müssen in der Kommandozeile für find quotiert werden, damit sie nicht von der Shell bearbeitet werden There is only one -exec option explained, no + to see. The only option with a + in my manpage is -perm +Modus No I have not tried the english version, I thought that a option that exists for 20 years should be in translated manpages too. The last line of the manpage says: LunetIX Linuxhandbuch 1.Juli 1993 FIND(1) so it is newer then 20 years but not much. That really should be updated.
Re: [gentoo-user] One machine sends emerge text output to stderr, not stdout
On 17/11/2010, at 12:25am, Walter Dnes wrote: I have a main machine and a backup machine. The main machine is 64-bit and the backup is 32-bit, but otherwise very similar setup. I haven't updated the backup (32-bit machine) for a while, ... there are 151 lines of output in file x and output is going to stderr. This happens on only the backup machine, not the main machine. It's probably fixed in one of the updates! Why are you posting before you checked that!?!? Use `screen` or `tmux` in place of `less` if you need to scroll back over the results of --pretend before running the emerge. The main quirk on my mcahines is that I start USE with -* on all my machines. This goes back to when the developers in their infinite wisdom, decided to make ipv6 a default USE flag. Why not just use -ipv6 as a global USE flag!?!? I have to admit that the Gentoo devs have in the past made decisions which have caused me to be suspicious of their sanity. But if I disagree with them over a USE flag I just add it to make.conf. Stroller.
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On 16/11/2010, at 10:28pm, David W Noon wrote: ... Again, the defaults are chosen for stability with Gentoo first; secondly, there are no fixed defaults -- or out-of-box configuration -- from upstream, as the USE flags are simply parameterizing the ./configure script via autotools. I'm not familiar with autotools specifically, but back in the days before I used Gentoo, when there were a couple of packages that weren't in my distro's package manager that I compiled by hand I used to just do something like `./configure make`. I could choose to select a different configuration by saying something like `./configure --with-ipv6`, but there were usually 30 or so options for which I made no selection. Surely what `./configure` does if I don't make any choice about its compilation option is to be considered a default? Stroller.
Re: [gentoo-user] Cannot open root device sda3 or unknown-block (0,0)
On 17/11/2010, at 6:56am, Dale wrote: ... So now system boots but I can not seem to the network card going. On the lspci -k I think you mean lspci -nn (there is no switch -k) ... The man page shows a -k switch here so maybe what you are booting has a older version or something. I advise Joseph (OP) to use a recent SystemRescueCd. He doesn't say he is, and I assume not - I would assume that SystemRescueCd would have a version of `lspci` supporting the -k flag, as it is based on Gentoo and it works on my Gentoo stable system. http://www.sysresccd.org/ Stroller.
Re: [gentoo-user] slocate masked
On 17/11/2010, at 11:31am, Eric Chatellier wrote: Le 17/11/2010 12:30, Jacques Montier a écrit : Hi all, slocate is now masked and will be removed. As i often used locate to easily find packages, what else could i run ? Thank you for your answers Just read mask message : No longer developed and replaced by sys-apps/mlocate I did this the other day. It fixes the large files problem on 32-bit. :D http://www.gossamer-threads.com/lists/gentoo/user/183485 http://bugs.gentoo.org/show_bug.cgi?id=280620 :D Stroller.
Re: [gentoo-user] Crufted with perl modules?
On Wed, 2010-11-17 at 14:13 +0100, Sebastian Beßler wrote: Am 17.11.2010 13:54, schrieb Albert Hopkins: On Wed, 2010-11-17 at 13:52 +0100, Sebastian Beßler wrote: Am 17.11.2010 10:19, schrieb Joerg Schilling: This is why find -exec + exists since 20 years. Could you enlighten me about this? I look into man find but it says nothing about -exec + or a + operator at all. Also adding + to the command doesn't work either. Which man page are you looking at? It's in my find man page at least. man find Aktionen -exec Kommando; führt das Kommando aus; die Aktion ist wahr, wenn das Kommandoeinen Status von Null liefert; alle auf den Kommandonamen folgenden Argumente bis zu einem Semikolon ; werden als Kommandozeilenargumente für das Kommando interpretiert; das Semikolon kann nicht weggelassen werden, und es muss durch mindestens ein Whitespace von der letzten Option getrennt werden; die Konstruktion {} wird durch den Pfadnamen der Datei ersetzt; die Klammern und das Semikolon müssen in der Kommandozeile für find quotiert werden, damit sie nicht von der Shell bearbeitet werden There is only one -exec option explained, no + to see. The only option with a + in my manpage is -perm +Modus No I have not tried the english version, I thought that a option that exists for 20 years should be in translated manpages too. I'm not sure where that man page came from. Says it conforms to 2003 POSIX. So is at least 10 years more recent than yours. http://linux.die.net/man/1/find
Re: [gentoo-user] Crufted with perl modules?
On 17/11/2010, at 1:13pm, Sebastian Beßler wrote: This is why find -exec + exists since 20 years. Could you enlighten me about this? I look into man find but it says nothing about -exec + or a + operator at all. Also adding + to the command doesn't work either. Which man page are you looking at? It's in my find man page at least. man find Aktionen -exec Kommando; führt das Kommando aus; die Aktion ist wahr, wenn das Kommandoeinen Status von Null liefert; alle auf den Kommandonamen folgenden Argumente bis zu einem Semikolon ; werden als Kommandozeilenargumente für das Kommando interpretiert; das Semikolon kann nicht weggelassen werden, und es muss durch mindestens ein Whitespace von der letzten Option getrennt werden; die Konstruktion {} wird durch den Pfadnamen der Datei ersetzt; die Klammern und das Semikolon müssen in der Kommandozeile für find quotiert werden, damit sie nicht von der Shell bearbeitet werden There is only one -exec option explained, no + to see. The only option with a + in my manpage is -perm +Modus No I have not tried the english version, I thought that a option that exists for 20 years should be in translated manpages too. -exec command {} + This variant of the -exec action runs the specified command on the selected files, but the command line is built by appending each selected file name at the end; the total number of invoca‐ tions of the command will be much less than the number of matched files. The command line is built in much the same way that xargs builds its command lines. Only one instance of `{}' is allowed within the command. The command is executed in the starting directory. Stroller.
Re: [gentoo-user] Crufted with perl modules?
On 17/11/2010, at 12:58am, Grant wrote: I was having trouble getting g-cpan to work with a Bundle of CPAN perl modules and I got frustrated and started to install it with perl -MCPAN -e instead. The state of g-cpan really is a shame. :( When I bought a lottery ticket the other week, I determined to throw some money at developers to fix it, should my numbers come up. This post is a suggestion to the members of the list who have recently won millions. Stroller.
Re: [gentoo-user] Cannot open root device sda3 or unknown-block (0,0)
On 11/17/10 13:57, Stroller wrote: On 17/11/2010, at 6:56am, Dale wrote: ... So now system boots but I can not seem to the network card going. On the lspci -k I think you mean lspci -nn (there is no switch -k) ... The man page shows a -k switch here so maybe what you are booting has a older version or something. I advise Joseph (OP) to use a recent SystemRescueCd. He doesn't say he is, and I assume not - I would assume that SystemRescueCd would have a version of `lspci` supporting the -k flag, as it is based on Gentoo and it works on my Gentoo stable system. http://www.sysresccd.org/ Stroller. I think this is the case, I was using an old Gentoo CD so lspci version did not have the -k switch, need to get a newer one. -- Joseph
Re: [gentoo-user] slocate masked
On 17 November 2010 14:00, Stroller strol...@stellar.eclipse.co.uk wrote: On 17/11/2010, at 11:31am, Eric Chatellier wrote: Le 17/11/2010 12:30, Jacques Montier a écrit : Hi all, slocate is now masked and will be removed. As i often used locate to easily find packages, what else could i run ? Thank you for your answers Just read mask message : No longer developed and replaced by sys-apps/mlocate I did this the other day. It fixes the large files problem on 32-bit. :D http://www.gossamer-threads.com/lists/gentoo/user/183485 http://bugs.gentoo.org/show_bug.cgi?id=280620 :D Just ran updatedb with mlocate and it was blindingly fast! Is that normal or did it not run and tricked me! ;-) -- Regards, Mick
Re: [gentoo-user] slocate masked
On 17/11/2010, at 2:44pm, Mick wrote: ... I did this the other day. It fixes the large files problem on 32-bit. :D http://www.gossamer-threads.com/lists/gentoo/user/183485 http://bugs.gentoo.org/show_bug.cgi?id=280620 :D Just ran updatedb with mlocate and it was blindingly fast! Is that normal or did it not run and tricked me! ;-) I thought it seemed kinda fast, too, although I didn't test it, and wouldn't swear to that. It seems to be working here. Stroller.
Re: [gentoo-user] slocate masked
Apparently, though unproven, at 16:44 on Wednesday 17 November 2010, Mick did opine thusly: On 17 November 2010 14:00, Stroller strol...@stellar.eclipse.co.uk wrote: On 17/11/2010, at 11:31am, Eric Chatellier wrote: Le 17/11/2010 12:30, Jacques Montier a écrit : Hi all, slocate is now masked and will be removed. As i often used locate to easily find packages, what else could i run ? Thank you for your answers Just read mask message : No longer developed and replaced by sys-apps/mlocate I did this the other day. It fixes the large files problem on 32-bit. :D http://www.gossamer-threads.com/lists/gentoo/user/183485 http://bugs.gentoo.org/show_bug.cgi?id=280620 :D Just ran updatedb with mlocate and it was blindingly fast! Is that normal or did it not run and tricked me! ;-) /usr/share/doc/mlocate-0.23.1/README.bz2 Why do so many people ask questions without reading the docs FIRST? I'm going to start charging a research fee from now on. -- alan dot mckinnon at gmail dot com
[gentoo-user] X crashing
Hi all, I use an astronomical open source imaging software (http://www.audela.org/) which works fine except when launching a tcl photometry script (Calaphot). X crashes with the error message : X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 148 (RENDER) Minor opcode of failed request: 4 (RenderCreatePicture) Serial number of failed request: 51329 Current serial number in output stream: 51338 I get the same crash on two PCs with Gentoo. I use an ATI graphic card 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] and the open source radeon driver. tcl package is : dev-lang/tcl-8.5.8-r1 I really don't know where to go... Have you an idea ? Thank you for your help, Cheers, -- Jacques
[gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On 2010-11-16, David W Noon dwn...@ntlworld.com wrote: Again, the defaults are chosen for stability with Gentoo first; secondly, there are no fixed defaults -- or out-of-box configuration -- from upstream, If that's true, then it is the developers rather than upstream that decided to use HAL for Xorg configuration. You can't have it both ways: 1) There is no default configuration from upstream. 2) The default configuration (use HAL) came from upstream. The only distributions that have fixed configurations are the binary ones. Any package that is built from source -- and under Gentoo that means almost everything -- is intrinsically configurable by the person building the binaries. To extend your out-of-box analogy: source code doesn't arrive in a box, but binaries (.rpm, .deb, etc.) do. It seems to me that the configure script with no command-line options to enable/disable features is a box that contains the default configuration. -- Grant Edwards grant.b.edwardsYow! I'm not an Iranian!! at I voted for Dianne gmail.comFeinstein!!
Re: [gentoo-user] X crashing
Jacques Montier jacques.mont...@numericable.fr [10-11-17 16:20]: Hi all, I use an astronomical open source imaging software (http://www.audela.org/) which works fine except when launching a tcl photometry script (Calaphot). X crashes with the error message : X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 148 (RENDER) Minor opcode of failed request: 4 (RenderCreatePicture) Serial number of failed request: 51329 Current serial number in output stream: 51338 I get the same crash on two PCs with Gentoo. I use an ATI graphic card 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] and the open source radeon driver. tcl package is : dev-lang/tcl-8.5.8-r1 I really don't know where to go... Have you an idea ? Thank you for your help, Cheers, -- Jacques Hi Jacques, just a shot in the dark: May be the binary uses no longer valid calls into X. Try to recompile the source of that program on your machine, so that the newest headers get used by the compile process... Good luck! :) Best regards, mcc
Re: [gentoo-user] X crashing
Le 17/11/2010 16:33, meino.cra...@gmx.de a écrit : Jacques Montier jacques.mont...@numericable.fr [10-11-17 16:20]: Hi all, I use an astronomical open source imaging software (http://www.audela.org/) which works fine except when launching a tcl photometry script (Calaphot). X crashes with the error message : X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 148 (RENDER) Minor opcode of failed request: 4 (RenderCreatePicture) Serial number of failed request: 51329 Current serial number in output stream: 51338 I get the same crash on two PCs with Gentoo. I use an ATI graphic card 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] and the open source radeon driver. tcl package is : dev-lang/tcl-8.5.8-r1 I really don't know where to go... Have you an idea ? Thank you for your help, Cheers, -- Jacques Hi Jacques, just a shot in the dark: May be the binary uses no longer valid calls into X. Try to recompile the source of that program on your machine, so that the newest headers get used by the compile process... Good luck! :) Best regards, mcc Thank you for your answer. It's not a binary package but a tar.gz one i compiled on my machine. Cheers, -- Jacques
Re: [gentoo-user] X crashing
On 17/11/2010, at 3:33pm, meino.cra...@gmx.de wrote: I use an astronomical open source imaging software just a shot in the dark: O˛O
Re: [gentoo-user] slocate masked
On 17/11/2010, at 3:07pm, Alan McKinnon wrote: ... Just ran updatedb with mlocate and it was blindingly fast! Is that normal or did it not run and tricked me! ;-) /usr/share/doc/mlocate-0.23.1/README.bz2 Why do so many people ask questions without reading the docs FIRST? I'm not sure what that demonstrates. As I read that, it implies that mlocate's indexing will be fast because it uses the existing database during its updatedb operation. I'm going to have to read more about that, as it sounds rather clever. However Mick and myself were expressing surprise at the speed of mlocate's *first* run, when no mlocate.db would be existent. Stroller.
[gentoo-user] Re: bind-9.7.1_p2 does not want to stop...
On 11/16/2010 04:01 PM, Alan McKinnon wrote: Apparently, though unproven, at 01:20 on Wednesday 17 November 2010, walt did opine thusly: On 11/16/2010 11:47 AM, Alan McKinnon wrote: ... For an auth server, powerdns is very good... By 'auth' do you mean something like DNSSEC? If not, who's doing the auth-ing? Do you understand the difference between an authoritative nameserver, a caching nameserver, and a local resolver? I understand the first two, but not 'local resolver'. (I did assume you meant 'authentication', not 'authoritative'.)
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On Wed, 17 Nov 2010 16:40:02 +0100, Grant Edwards wrote about [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?: On 2010-11-16, David W Noon dwn...@ntlworld.com wrote: Again, the defaults are chosen for stability with Gentoo first; secondly, there are no fixed defaults -- or out-of-box configuration -- from upstream, If that's true, then it is the developers rather than upstream that decided to use HAL for Xorg configuration. You can't have it both ways: 1) There is no default configuration from upstream. 2) The default configuration (use HAL) came from upstream. The defaults for all ebuilds are set by the Gentoo developer who writes the ebuild. We cannot blame the *default* nature of HAL in X.Org on the upstream developers; we can blame them for using HAL in the first place -- if blame must be ascribed. The only distributions that have fixed configurations are the binary ones. Any package that is built from source -- and under Gentoo that means almost everything -- is intrinsically configurable by the person building the binaries. To extend your out-of-box analogy: source code doesn't arrive in a box, but binaries (.rpm, .deb, etc.) do. It seems to me that the configure script with no command-line options to enable/disable features is a box that contains the default configuration. The only time a ./configure script runs without options inside a Gentoo ebuild is when there are no options available. An ebuild typically specifies all available options as enabled/disabled or some value. Indeed, if you think about coding an ebuild where one ignores *any* of the available options, one is asking for trouble in the future if upstream changes the configuration script. That's simply not the right way to code an ebuild. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwn...@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* signature.asc Description: PGP signature
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On Wed, 17 Nov 2010 15:00:01 +0100, Stroller wrote about Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?: [snip] Surely what `./configure` does if I don't make any choice about its compilation option is to be considered a default? Gentoo ebuilds do not run ./configure without options, unless there are no options available. -- Regards, Dave [RLU #314465] *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* dwn...@ntlworld.com (David W Noon) *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* signature.asc Description: PGP signature
[gentoo-user] Re: X crashing
On 11/17/2010 07:17 AM, Jacques Montier wrote: Hi all, I use an astronomical open source imaging software (http://www.audela.org/) which works fine except when launching a tcl photometry script (Calaphot). X crashes with the error message : X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 148 (RENDER) Minor opcode of failed request: 4 (RenderCreatePicture) Serial number of failed request: 51329 Current serial number in output stream: 51338 I get the same crash on two PCs with Gentoo. I use an ATI graphic card 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] and the open source radeon driver. You may have found a bug in the open source driver. Is there a binary driver available from ATI that you can try?
Re: [gentoo-user] Re: X crashing
Le 17/11/2010 18:07, walt a écrit : On 11/17/2010 07:17 AM, Jacques Montier wrote: Hi all, I use an astronomical open source imaging software (http://www.audela.org/) which works fine except when launching a tcl photometry script (Calaphot). X crashes with the error message : X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 148 (RENDER) Minor opcode of failed request: 4 (RenderCreatePicture) Serial number of failed request: 51329 Current serial number in output stream: 51338 I get the same crash on two PCs with Gentoo. I use an ATI graphic card 01:00.0 VGA compatible controller: ATI Technologies Inc RV350 [Mobility Radeon 9600 M10] and the open source radeon driver. You may have found a bug in the open source driver. Is there a binary driver available from ATI that you can try? Binary ati drivers don't work with this old graphic card (RV350 Radon 9600), but i can try again for see.. Thank you, Cheers -- Jacques
Re: [gentoo-user] Cannot open root device sda3 or unknown-block (0,0)
On 11/17/10 13:57, Stroller wrote: On 17/11/2010, at 6:56am, Dale wrote: ... So now system boots but I can not seem to the network card going. On the lspci -k I think you mean lspci -nn (there is no switch -k) ... The man page shows a -k switch here so maybe what you are booting has a older version or something. I advise Joseph (OP) to use a recent SystemRescueCd. He doesn't say he is, and I assume not - I would assume that SystemRescueCd would have a version of `lspci` supporting the -k flag, as it is based on Gentoo and it works on my Gentoo stable system. http://www.sysresccd.org/ Stroller. I've tried Gentoo ISO first. I've downloaded the latest minimal AMD64 ISO and they will not boot my AMD Athlon 64 processor 3800 (the below ISO boot my other box OK). I've tried: install-amd64-minimal-2010.iso install-amd64-minimal-20101007.iso The system start booting and stops at: Looking for the cdrom ... Attempting to mount media: - /dev/hda This system boots OK older ISO AMD64 - 2008 but not the latest ISO. It seems to me I am not the only one having this problem. I don't know what kind of rubbish they put together lately as ISO :-( OK I've tried as you suggested, http://www.sysresccd.org/ and it works OK. When I boot I have network eth0 and it loads driver forcedeth I've compiled the same driver into my current kernel but there is no eth0, so I'm puzzled, the kernel I'm using is: linux-2.6.31-gentoo-r6 so it is not that old. -- Joseph
Re: [gentoo-user] slocate masked
Apparently, though unproven, at 18:29 on Wednesday 17 November 2010, Stroller did opine thusly: On 17/11/2010, at 3:07pm, Alan McKinnon wrote: ... Just ran updatedb with mlocate and it was blindingly fast! Is that normal or did it not run and tricked me! ;-) /usr/share/doc/mlocate-0.23.1/README.bz2 Why do so many people ask questions without reading the docs FIRST? I'm not sure what that demonstrates. As I read that, it implies that mlocate's indexing will be fast because it uses the existing database during its updatedb operation. I'm going to have to read more about that, as it sounds rather clever. However Mick and myself were expressing surprise at the speed of mlocate's *first* run, when no mlocate.db would be existent. I can think of two things worthy of investigation, neither have much documentation to back them up. unmerging slocate does not remove slocate.db as he build didn't put it there. When mlocate first runs, it might be checking so slocate.db if mlocate.db doesn't exist, and use that for the initial db. You may have configured updatedb.conf to include filesystems that would not normally be indexed and then told etc-update to overwrite this with the new version from mlocate. As a data point, my notebook is fairly average and takes 4 minutes to make it's way through 62G of stuff (excluding removable and network drives) -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: bind-9.7.1_p2 does not want to stop...
Apparently, though unproven, at 18:44 on Wednesday 17 November 2010, walt did opine thusly: On 11/16/2010 04:01 PM, Alan McKinnon wrote: Apparently, though unproven, at 01:20 on Wednesday 17 November 2010, walt did opine thusly: On 11/16/2010 11:47 AM, Alan McKinnon wrote: ... For an auth server, powerdns is very good... By 'auth' do you mean something like DNSSEC? If not, who's doing the auth-ing? Do you understand the difference between an authoritative nameserver, a caching nameserver, and a local resolver? I understand the first two, but not 'local resolver'. (I did assume you meant 'authentication', not 'authoritative'.) The local resolver is on your machine and uses /etc/resolv.conf. It usually goes by the name of glibc :-) I see Adam answered your other question, but you already knew the answer to that. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Cannot open root device sda3 or unknown-block (0,0)
On 11/17/10 00:56, Dale wrote: It appears udev is renaming the network card so I would check the udev rules. They are usually in /etc/udev/rules.d and I think it starts from the higher numbers and works its way down. I'm not much of a expert on udev. Dale :-) :-) You are correct previous card setting was blocking eth0 name. Small modification fix it. -- Joseph
Re: [gentoo-user] slocate masked
On 17/11/2010, at 6:00pm, Alan McKinnon wrote: ... unmerging slocate does not remove slocate.db as he build didn't put it there. When mlocate first runs, it might be checking so slocate.db if mlocate.db doesn't exist, and use that for the initial db. I deleted everything slocate related before installing mlocate, including /var/lib/slocate/. I have just grepped my Bash history to confirm this. You may have configured updatedb.conf to include filesystems that would not normally be indexed ... Absolutely not. Stroller.
[gentoo-user] haldaemon
Some time ago, I removed Hal from my system with no problems. While adding 'mlocate' to /etc/group today, I noticed that many entries still have 'haldaemon' included. Is it safe to delete these ? -- ,, SUPPORT ___//___, Philip Webb ELECTRIC /] [] [] [] [] []| Cities Centre, University of Toronto TRANSIT`-O--O---' purslowatchassdotutorontodotca
Re: [gentoo-user] slocate masked
Apparently, though unproven, at 20:55 on Wednesday 17 November 2010, Stroller did opine thusly: On 17/11/2010, at 6:00pm, Alan McKinnon wrote: ... unmerging slocate does not remove slocate.db as he build didn't put it there. When mlocate first runs, it might be checking so slocate.db if mlocate.db doesn't exist, and use that for the initial db. Let's compare then. My system is 4 minutes to re-index everything from scratch. How long does your take and how big is your filesystem? -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] slocate masked
On Wed, 17 Nov 2010 20:00:01 +0200, Alan McKinnon wrote: However Mick and myself were expressing surprise at the speed of mlocate's *first* run, when no mlocate.db would be existent. It took ten minutes on a first run on the one box I timed it on. unmerging slocate does not remove slocate.db as he build didn't put it there. When mlocate first runs, it might be checking so slocate.db if mlocate.db doesn't exist, and use that for the initial db. I doubt that, because when I ran locate after installing mlocate but before running updatedb, it complained about there being no database. -- Neil Bothwick But I thought YOU did the backups... signature.asc Description: PGP signature
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On Wed, 17 Nov 2010 16:48:30 +, David W Noon wrote: Surely what `./configure` does if I don't make any choice about its compilation option is to be considered a default? Gentoo ebuilds do not run ./configure without options, unless there are no options available. No, but they generally set the USE defaults to give the same settings as running ./configure with none. In other words, they are following the upstream defaults. -- Neil Bothwick ASSISTANT MANAGER: Feminine form of the word manager (q.v.). signature.asc Description: PGP signature
Re: [gentoo-user] haldaemon
Apparently, though unproven, at 21:12 on Wednesday 17 November 2010, Philip Webb did opine thusly: Some time ago, I removed Hal from my system with no problems. While adding 'mlocate' to /etc/group today, I noticed that many entries still have 'haldaemon' included. Is it safe to delete these ? You can delete them safely with userdel haldaemon groupdel haldaemon However, why bother? It's a system user and a group of the same name to which several system users belong. The user and group own no files, are not referenced in any security-related configs and as such, do nothing. You likely also have an apache, postfix, adm and nobody system users which also might not be in use. If you are happy leaving those in place, the same would apply to haldaemon. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] slocate masked
On Thursday 18 Nov 2010 1:17:09 am Alan McKinnon wrote: Let's compare then. My system is 4 minutes to re-index everything from scratch. How long does your take and how big is your filesystem? time updatedb real1m35.163s user0m0.815s sys 0m2.454s this was the first time i ran it after installation. i had uinstalled slocate prior to this. PRUNEPATHS=/tmp /var/tmp /root/.ccache /media/stuff/backup/gentoo32 the last folder is my 32bit chroot. and i got arround 225 gb of data. i tried running a few qurries .. seems to have indexed everything also after this i tried deleting /var/lib/mlocate/mlocate.db and then running updatedb and it hardly took a second. time updatedb real0m0.367s user0m0.193s sys 0m0.167s weird indeed. -- - Yohan Pereira.
Re: [gentoo-user] slocate masked
On Wednesday 17 November 2010, Mick wrote: On Wednesday 17 November 2010 20:10:54 Yohan Pereira wrote: On Thursday 18 Nov 2010 1:17:09 am Alan McKinnon wrote: Let's compare then. My system is 4 minutes to re-index everything from scratch. How long does your take and how big is your filesystem? time updatedb real1m35.163s user0m0.815s sys 0m2.454s this was the first time i ran it after installation. i had uinstalled slocate prior to this. PRUNEPATHS=/tmp /var/tmp /root/.ccache /media/stuff/backup/gentoo32 the last folder is my 32bit chroot. and i got arround 225 gb of data. i tried running a few qurries .. seems to have indexed everything also after this i tried deleting /var/lib/mlocate/mlocate.db and then running updatedb and it hardly took a second. time updatedb real0m0.367s user0m0.193s sys 0m0.167s weird indeed. I can't be doing this right ... I removed /var/lib/mlocate/mlocate.db, the ran updatebd: # time -p updatedb real 113.22 user 0.62 sys 8.00 Then removed it again and run it again: # time updatedb real 0m1.063s user 0m0.162s sys 0m0.896s Why is the second time so much faster? The size of the derived db was the same on both occasions. first run: updatedb -v 6,76s user 39,99s system 7% cpu 10:35,80 total yeah, see, the 'total' thing is the meaningfull one. But lets have a look what was indexed: df -h Dateisystem Size Used Avail Use% Eingehängt auf rootfs 57G 34G 23G 60% / devtmpfs 3,9G 344K 3,9G 1% /dev rc-svcdir 1,0M 120K 904K 12% /lib64/rc/init.d shm 4,0G 232K 4,0G 1% /dev/shm tmpfs 8,0G 12K 8,0G 1% /var/tmp/portage tmpfs 1,0G 5,4M 1019M 1% /tmp /dev/md3 765G 606G 160G 80% /mnt/data /dev/md5 753G 558G 195G 75% /mnt/4chan beware: /mnt/4chan should be named '/mnt/first_line_of_defense' because it is the first backup stage. Named for historical reasons (aka I am too lazy to rename. To index an fs you don't have to go all over it. You just have the fs to dump all the file names on you. And that can be very fast.
Re: [gentoo-user] slocate masked
On Thursday 18 Nov 2010 2:05:55 am Mick wrote: Why is the second time so much faster? The size of the derived db was the same on both occasions. ok as Volker it uses cache. try deleting mlocate.db .. reboot and then run updatedb it will take as long as it did the first time. -- - Yohan Pereira.
Re: [gentoo-user] slocate masked
On Wed, Nov 17, 2010 at 2:35 PM, Mick michaelkintz...@gmail.com wrote: On Wednesday 17 November 2010 20:10:54 Yohan Pereira wrote: On Thursday 18 Nov 2010 1:17:09 am Alan McKinnon wrote: Let's compare then. My system is 4 minutes to re-index everything from scratch. How long does your take and how big is your filesystem? time updatedb real 1m35.163s user 0m0.815s sys 0m2.454s this was the first time i ran it after installation. i had uinstalled slocate prior to this. PRUNEPATHS=/tmp /var/tmp /root/.ccache /media/stuff/backup/gentoo32 the last folder is my 32bit chroot. and i got arround 225 gb of data. i tried running a few qurries .. seems to have indexed everything also after this i tried deleting /var/lib/mlocate/mlocate.db and then running updatedb and it hardly took a second. time updatedb real 0m0.367s user 0m0.193s sys 0m0.167s weird indeed. I can't be doing this right ... I removed /var/lib/mlocate/mlocate.db, the ran updatebd: # time -p updatedb real 113.22 user 0.62 sys 8.00 Then removed it again and run it again: # time updatedb real 0m1.063s user 0m0.162s sys 0m0.896s Why is the second time so much faster? The size of the derived db was the same on both occasions. I guess caching like Volker said too. What happens if you do something like this twice: sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb
Re: [gentoo-user] slocate masked
Apparently, though unproven, at 22:10 on Wednesday 17 November 2010, Yohan Pereira did opine thusly: On Thursday 18 Nov 2010 1:17:09 am Alan McKinnon wrote: Let's compare then. My system is 4 minutes to re-index everything from scratch. How long does your take and how big is your filesystem? time updatedb real1m35.163s user0m0.815s sys 0m2.454s this was the first time i ran it after installation. i had uinstalled slocate prior to this. You must also delete the old slocate.db as you do not know for certain whether it does or does not affect the initial run of mlocate's updatedb PRUNEPATHS=/tmp /var/tmp /root/.ccache /media/stuff/backup/gentoo32 the last folder is my 32bit chroot. and i got arround 225 gb of data. i tried running a few qurries .. seems to have indexed everything also after this i tried deleting /var/lib/mlocate/mlocate.db and then running updatedb and it hardly took a second. time updatedb real0m0.367s user0m0.193s sys 0m0.167s weird indeed. Not at all weird. The db is probably less than 100M. It's probably in your kernel's fs cache, especially as you implied you deleted the file then ran updatedb immediately. Rather delete the db, reboot, then run updatedb -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] slocate masked
On Wednesday 17 November 2010, Yohan Pereira wrote: On Thursday 18 Nov 2010 1:17:09 am Alan McKinnon wrote: Let's compare then. My system is 4 minutes to re-index everything from scratch. How long does your take and how big is your filesystem? time updatedb real1m35.163s user0m0.815s sys 0m2.454s this was the first time i ran it after installation. i had uinstalled slocate prior to this. PRUNEPATHS=/tmp /var/tmp /root/.ccache /media/stuff/backup/gentoo32 the last folder is my 32bit chroot. and i got arround 225 gb of data. i tried running a few qurries .. seems to have indexed everything also after this i tried deleting /var/lib/mlocate/mlocate.db and then running updatedb and it hardly took a second. time updatedb real0m0.367s user0m0.193s sys 0m0.167s weird indeed. no, cache.
Re: [gentoo-user] slocate masked
On Wednesday 17 November 2010 20:10:54 Yohan Pereira wrote: On Thursday 18 Nov 2010 1:17:09 am Alan McKinnon wrote: Let's compare then. My system is 4 minutes to re-index everything from scratch. How long does your take and how big is your filesystem? time updatedb real1m35.163s user0m0.815s sys 0m2.454s this was the first time i ran it after installation. i had uinstalled slocate prior to this. PRUNEPATHS=/tmp /var/tmp /root/.ccache /media/stuff/backup/gentoo32 the last folder is my 32bit chroot. and i got arround 225 gb of data. i tried running a few qurries .. seems to have indexed everything also after this i tried deleting /var/lib/mlocate/mlocate.db and then running updatedb and it hardly took a second. time updatedb real0m0.367s user0m0.193s sys 0m0.167s weird indeed. I can't be doing this right ... I removed /var/lib/mlocate/mlocate.db, the ran updatebd: # time -p updatedb real 113.22 user 0.62 sys 8.00 Then removed it again and run it again: # time updatedb real0m1.063s user0m0.162s sys 0m0.896s Why is the second time so much faster? The size of the derived db was the same on both occasions. -- Regards, Mick signature.asc Description: This is a digitally signed message part.
[gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On 2010-11-17, Neil Bothwick n...@digimed.co.uk wrote: On Wed, 17 Nov 2010 16:48:30 +, David W Noon wrote: Surely what `./configure` does if I don't make any choice about its compilation option is to be considered a default? Gentoo ebuilds do not run ./configure without options, unless there are no options available. That's irrelevent. You said upstream doesn't come with a default configuration. We're saying it does, and that it's defined by the default options in the configure script. Even if Gentoo doesn't use that default configuration it doens't meant that it doesn't exist. No, but they generally set the USE defaults to give the same settings as running ./configure with none. In other words, they are following the upstream defaults. We seem to be going around in circles. :) The merits of using HAL for Xorg config aside, I am still curious about where the default configuration for a package comes from. Is there a written policy somewhere that tells devs how to set the default USE flags? -- Grant Edwards grant.b.edwardsYow! I'm having a MID-WEEK at CRISIS! gmail.com
Re: [gentoo-user] slocate masked
Apparently, though unproven, at 23:00 on Wednesday 17 November 2010, Paul Hartman did opine thusly: On Wed, Nov 17, 2010 at 2:35 PM, Mick michaelkintz...@gmail.com wrote: Why is the second time so much faster? The size of the derived db was the same on both occasions. I guess caching like Volker said too. What happens if you do something like this twice: sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb Now I'm intrigued. I did some quick and nasty tests. First, mlocate's updatedb. No measures taken to invalidate caches etc: # time updatedb real0m39.265s user0m2.245s sys 0m0.228s Then unmerge mlocate, emerge slocate, delete all dbs, run slocate's updatedb twice: # rm /var/lib/[ms]locate/*db # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m35.365s user0m5.941s sys 0m0.383s # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m34.929s user0m5.925s sys 0m0.377s slocate seems quicker than the few tests I'd already done with mlocate and has no optimizations to re-use existing correct data in the db. Now unmerge slocate, merge mlocate, do not delete dbs and run mlocate's updatedb twice: # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real3m50.574s user0m7.277s sys 0m0.361s # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m5.830s user0m2.088s sys 0m0.173s Second run definitely quicker as it only has to read the fs, not write the entire index as well. But that initial run ... The old slocate db was still around, possibly affecting the first run, so delete both db's and run mlocate's updatedb twice: # rm /var/lib/[ms]locate/*db # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real3m51.592s user0m7.249s sys 0m0.350s # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m7.662s user0m1.997s sys 0m0.159s Almost identical to the prior test, so the presence of slocate's db has no effect on mlocate. Then I realized I hadn't measured how long they took to reindex a largely cache'd fs so I tried that with both, deleting the db's at each test: slocate: # rm /var/lib/[ms]locate/*db rm: cannot remove `/var/lib/[ms]locate/*db': No such file or directory # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m34.341s user0m5.929s sys 0m0.397s # time updatedb real0m2.454s user0m0.855s sys 0m1.569s mlocate: # rm /var/lib/[ms]locate/*db # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real3m54.792s user0m7.215s sys 0m0.350s # time updatedb real0m0.538s user0m0.302s sys 0m0.232s 0.5 second vs 2.5 seconds. Wow. Conclusions: 1. mlocate is slow at building it's db from scratch - about 250% as long as slocate on the same task. 2. mlocate is faster at reindexing a largely-unchanged fs - it does it in about 66% of the time slocate took. 3. mlocate is insanely quick at reindexing a db that is in cache. #1 is are - most systems will only do it once #3 is silly and does not represent anything close to reality #2 is pretty realistic and a 33% performance boost is significant I have no idea where the speed increase in #3 comes from. This is an ext4 fs - does ext4 keep an in-memory hash of inodes it reads? It seems to me that would be a very clever and very useful thing for an fs to do. -- alan dot mckinnon at gmail dot com
[gentoo-user] migrating disks (from mounts to disklabels
Hello, I have a ~250 gig sata disk I want to migrate to a 2T Sata disk. This is simple, but, I have a few caveats. old disk: Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000a1ff7 Device Boot Start End Blocks Id System /dev/sda1 * 16405514481317 HPFS/NTFS /dev/sda264066431 208845 83 Linux /dev/sda36432 1408061440592+ 83 Linux /dev/sda4 14081 38913 199471072+ 5 Extended /dev/sda5 14081 14861 6273351 82 Linux swap / Solaris /dev/sda6 14862 2633592164873+ 83 Linux /dev/sda7 26336 38913 101032753+ 83 Linux /dev/sda2/boot reiserfsdefaults 1 2 /dev/sda3/ reiserfsdefaults 0 1 /dev/sda5noneswapsw 0 0 /dev/sda6/usr/local reiserfsdefaults 0 1 /dev/sda7 /usr/local/video reiserfsdefaults 0 1 none/proc procdefaults0 0 none/dev/shmtmpfs defaults0 0 /dev/fd0 /mnt/floppyvfatnoauto,user,umask=000 0 0 #/dev/fd0 /mnt/floppy autonoauto, 0 0 /dev/cdrom /mnt/cdrom autonoauto,rw,user 0 0 #/dev/sda1 /mnt/windows ntfs-3g 0 0 Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5f61c272 Device Boot Start End Blocks Id System needs formatting and file systems installed OK, so I format using fdisk no big deal new disk will just have /(200G), swap, boot(250M) and one bit fat /usr/local (1.8T) Ok now I was going to use same reiserfs no big deal unless I can use reiser4? good idea? discuss-caveats OK now I want the new fstab to use disklabels old dog learning new trick here like this simple (few) partition scheme: /dev/sdb3 200G 52G 42G 55% / udev 10M 224K 9.8M 3% /dev /dev/sdb1 250M 47M 189M 20% /boot /dev/sdb4 1800G 125G 12G 92% /usr/local Current non disklabel fstab /dev/sda1 /boot reiserfsdefaults 1 2 /dev/sda2 noneswapsw 0 0 /dev/sda3 / reiserfsdefaults 0 1 /dev/sda4 /usr/local reiserfsdefaults 0 1 /dev/cdrom /mnt/cdrom autonoauto,ro,user 0 0 /dev/fd0/mnt/floppy vfatnoauto,user,umask=000 0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 none/proc procdefaults0 0 so what does new fstab using disk labels look like? Last, just dd it over like this? dd if=/dev/sda of=/dev/sdb bs=32768 What did I miss? Discussion, corrections or caveats are most welcome.
Re: [gentoo-user] pppd 2.4.5
Gary Golden wrote: On 11/17/2010 02:19 PM, Neil Bothwick wrote: On Wed, 17 Nov 2010 13:25:02 +0500, Gary Golden wrote: When trying to contact by VPN nm-applet says: Plugin /usr/lib/pppd/2.4.5/nm-pptp-pppd-plugin.so is for pppd version 2.4.5, this is 2.4.4 How I can install pppd 2.4.5 if portage has only net-dialup/ppp-2.4.4 ? As Dale says, 2.4.5 is available but keyworded. However, if nm-applet is from arch but depends on an ~arch program, this is wrong and you should file a bug report. If you are already running an~arch version of nm-applet, welcome to the wonderful world of a mixed system :) nm-applet has this keywords: KEYWORDS=amd64 ~ppc x86 So, yes, it is a bug. You file a roach report? They need to know about it. I usually sync one more time and see if it is fixed and if not, file a bug for it. It is possible you caught the tree while it was being changed so syncing one more time will make sure. Dale :-) :-)
[gentoo-user] KDE-4 multi-monitor + fullscreen applications
Hi list! Today, KDE nearly killed a presentation I held and now I want to understand what's going on: Following setup: One laptop, two outputs (internal display + projector). Now I configure KDE to expand the desktop on both (instead of simple cloning). So far, so good. First question: How does KDE choose on which output the standard desktop ends up and which gets the second set of desktop background + plasma widgets? It seems like the one with the higher resolution is standard and on a draw, it is the right-most. Is that correct? Can it be configured? Now that I have both desktops, I open Acroread or Okular and start the fullscreen/presentation mode. What happens is that the presentation is deterministically opened on one of the displays. What I don't understand is how it chooses which one it uses? It doesn't depend on the placement of the window (although other applications like Flash in Firefox, MPlayer, Kaffeine and Gwenview do). It doesn't always open on the secondary or standard desktop (as specified above). It rather seems like it always opens on the one with the higher resolution and if both are equal, it opens on the left-most. So, what happened when I tried to hold my presentation? The projector had a low resolution (1024x768) and therefore neither Acroread nor Okular showed on fullscreen on the projector. None of my previous tests showed that problem since I used two displays with equal resolution. Great fun! In the end, I cloned the output and thereby gave Okular no other choice. (Lucky me that I didn't any additional notes or anything on the other display ...) What can I do to influence this behavior? Edit: I just noticed that both applications have settings for this. However, they are ignored and the setting in Acroread is even reset to Current display each time I close the settings dialog! What is going on here? Thanks in advance! Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Crufted with perl modules?
On 11/17/2010 05:13 AM, Sebastian Beßler wrote: Am 17.11.2010 13:54, schrieb Albert Hopkins: On Wed, 2010-11-17 at 13:52 +0100, Sebastian Beßler wrote: Am 17.11.2010 10:19, schrieb Joerg Schilling: This is why find -exec + exists since 20 years. Could you enlighten me about this? I look into man find but it says nothing about -exec + or a + operator at all. Also adding + to the command doesn't work either. Which man page are you looking at? It's in my find man page at least. It's the section right after -exec command {} ; -exec command {} + This variant of the -exec action runs the specified command on the selected files, but the command line is built by appending each selected file name at the end; the total number of invocations of the command will be much less than the number of matched files. The command line is built in much the same way that xargs builds its command lines. Only one instance of `{}' is allowed within the command. The command is executed in the starting directory.
Re: [gentoo-user] Crufted with perl modules?
Am 17.11.2010 23:14, schrieb John Campbell: On 11/17/2010 05:13 AM, Sebastian Beßler wrote: Am 17.11.2010 13:54, schrieb Albert Hopkins: On Wed, 2010-11-17 at 13:52 +0100, Sebastian Beßler wrote: Am 17.11.2010 10:19, schrieb Joerg Schilling: This is why find -exec + exists since 20 years. Could you enlighten me about this? I look into man find but it says nothing about -exec + or a + operator at all. Also adding + to the command doesn't work either. Which man page are you looking at? It's in my find man page at least. It's the section right after -exec command {} ; -exec command {} + It looks like the german man page doesn't have it in. I found it after all using the english man page. What good are the translations when features that old are not included? So today I have learned never to trust a translation. Greetings Sebastian Beßler
Re: [gentoo-user] migrating disks (from mounts to disklabels
Apparently, though unproven, at 23:59 on Wednesday 17 November 2010, James did opine thusly: Hello, I have a ~250 gig sata disk I want to migrate to a 2T Sata disk. This is simple, but, I have a few caveats. old disk: Disk /dev/sda: 320.1 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000a1ff7 Device Boot Start End Blocks Id System /dev/sda1 * 16405514481317 HPFS/NTFS /dev/sda264066431 208845 83 Linux /dev/sda36432 1408061440592+ 83 Linux /dev/sda4 14081 38913 199471072+ 5 Extended /dev/sda5 14081 14861 6273351 82 Linux swap / Solaris /dev/sda6 14862 2633592164873+ 83 Linux /dev/sda7 26336 38913 101032753+ 83 Linux /dev/sda2/boot reiserfsdefaults 1 2 /dev/sda3/ reiserfsdefaults 0 1 /dev/sda5noneswapsw 0 0 /dev/sda6/usr/local reiserfsdefaults 0 1 /dev/sda7 /usr/local/video reiserfsdefaults 0 1 none/proc procdefaults0 0 none/dev/shmtmpfs defaults0 0 /dev/fd0 /mnt/floppyvfatnoauto,user,umask=000 0 0 #/dev/fd0 /mnt/floppy autonoauto, 0 0 /dev/cdrom /mnt/cdrom autonoauto,rw,user 0 0 #/dev/sda1 /mnt/windows ntfs-3g 0 0 Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes 255 heads, 63 sectors/track, 243201 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5f61c272 Device Boot Start End Blocks Id System needs formatting and file systems installed OK, so I format using fdisk no big deal No you don't. You will partition it with fdisk and format the filesystems with mkfs* new disk will just have /(200G), swap, boot(250M) and one bit fat /usr/local (1.8T) Ok now I was going to use same reiserfs no big deal I dropped my beloved reiserfs systems of many years in favour of ext4. I was seeing ext4 (and the much-hyped btrfs) racing forward into the distance with improvements, useful features and more, while reiser3 languished. The last straw was when I started getting fs errors for no good reason. Let's face it, reiser was Hans. The team he left behind can do maintenance and bug-fixes, but how many features have you seen added in two years? unless I can use reiser4? good idea? discuss-caveats Yuck. It's not in mainline and will never go in mainline. It's not in the tree and will never go in the tree. My understanding is it never actually got finished; and with all those plugins it is just not possible to write a *real* fsck. I would not touch it myself with your bargepole. OK now I want the new fstab to use disklabels old dog learning new trick here like this simple (few) partition scheme: /dev/sdb3 200G 52G 42G 55% / udev 10M 224K 9.8M 3% /dev /dev/sdb1 250M 47M 189M 20% /boot /dev/sdb4 1800G 125G 12G 92% /usr/local Current non disklabel fstab /dev/sda1 /boot reiserfsdefaults 1 2 /dev/sda2 noneswapsw 0 0 /dev/sda3 / reiserfsdefaults 0 1 /dev/sda4 /usr/local reiserfsdefaults 0 1 /dev/cdrom /mnt/cdrom autonoauto,ro,user 0 0 /dev/fd0/mnt/floppy vfatnoauto,user,umask=000 0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 none/proc procdefaults0 0 so what does new fstab using disk labels look like? First you need to mkfs the filesystem with -L label fstab looks like this: LABEL=MY_BIG_DISK/ reiserfsdefaults 0 1 Last, just dd it over like this? dd if=/dev/sda of=/dev/sdb bs=32768 Ahem no. That will give you the *identical* filesystems on the new disk as were on the old disk. Which means you have 250G used on a 2T disk with 1.75T unpartitioned, plus the devil's own task of then getting it to be how you actually want What did I miss? The bit where you use a LiveCD :-) The rub is, that you will be copying files that are subject to being changed, especially /. It's a complete ball-ache trying to deal with this and it involves multiple rsync's and holding of thumbs. A LiveCD lets you do it once in complete
Re: [gentoo-user] KDE-4 multi-monitor + fullscreen applications
Apparently, though unproven, at 00:08 on Thursday 18 November 2010, Florian Philipp did opine thusly: Hi list! Today, KDE nearly killed a presentation I held and now I want to understand what's going on: Following setup: One laptop, two outputs (internal display + projector). Now I configure KDE to expand the desktop on both (instead of simple cloning). So far, so good. For anyone to help at all, we'll need to know your hardware and video drivers, plus versions in use of X.org and it's drivers, plus relevant config stuff. Everything else is highly configurable and subject to the whim of driver writers and the user. And there's always nVidia's stance to be taken into account as well First question: How does KDE choose on which output the standard desktop ends up and which gets the second set of desktop background + plasma widgets? It seems like the one with the higher resolution is standard and on a draw, it is the right-most. Is that correct? Can it be configured? Now that I have both desktops, I open Acroread or Okular and start the fullscreen/presentation mode. What happens is that the presentation is deterministically opened on one of the displays. What I don't understand is how it chooses which one it uses? It doesn't depend on the placement of the window (although other applications like Flash in Firefox, MPlayer, Kaffeine and Gwenview do). It doesn't always open on the secondary or standard desktop (as specified above). It rather seems like it always opens on the one with the higher resolution and if both are equal, it opens on the left-most. So, what happened when I tried to hold my presentation? The projector had a low resolution (1024x768) and therefore neither Acroread nor Okular showed on fullscreen on the projector. None of my previous tests showed that problem since I used two displays with equal resolution. Great fun! In the end, I cloned the output and thereby gave Okular no other choice. (Lucky me that I didn't any additional notes or anything on the other display ...) What can I do to influence this behavior? Edit: I just noticed that both applications have settings for this. However, they are ignored and the setting in Acroread is even reset to Current display each time I close the settings dialog! What is going on here? Thanks in advance! Florian Philipp -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] slocate masked
On Wednesday 17 November 2010 21:55:28 Alan McKinnon wrote: Apparently, though unproven, at 23:00 on Wednesday 17 November 2010, Paul Hartman did opine thusly: On Wed, Nov 17, 2010 at 2:35 PM, Mick michaelkintz...@gmail.com wrote: Why is the second time so much faster? The size of the derived db was the same on both occasions. I guess caching like Volker said too. What happens if you do something like this twice: sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb Now I'm intrigued. I did some quick and nasty tests. First, mlocate's updatedb. No measures taken to invalidate caches etc: # time updatedb real0m39.265s user0m2.245s sys 0m0.228s Then unmerge mlocate, emerge slocate, delete all dbs, run slocate's updatedb twice: # rm /var/lib/[ms]locate/*db # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m35.365s user0m5.941s sys 0m0.383s # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m34.929s user0m5.925s sys 0m0.377s slocate seems quicker than the few tests I'd already done with mlocate and has no optimizations to re-use existing correct data in the db. Now unmerge slocate, merge mlocate, do not delete dbs and run mlocate's updatedb twice: # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real3m50.574s user0m7.277s sys 0m0.361s # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m5.830s user0m2.088s sys 0m0.173s Second run definitely quicker as it only has to read the fs, not write the entire index as well. But that initial run ... The old slocate db was still around, possibly affecting the first run, so delete both db's and run mlocate's updatedb twice: # rm /var/lib/[ms]locate/*db # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real3m51.592s user0m7.249s sys 0m0.350s # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m7.662s user0m1.997s sys 0m0.159s Almost identical to the prior test, so the presence of slocate's db has no effect on mlocate. Then I realized I hadn't measured how long they took to reindex a largely cache'd fs so I tried that with both, deleting the db's at each test: slocate: # rm /var/lib/[ms]locate/*db rm: cannot remove `/var/lib/[ms]locate/*db': No such file or directory # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real1m34.341s user0m5.929s sys 0m0.397s # time updatedb real0m2.454s user0m0.855s sys 0m1.569s mlocate: # rm /var/lib/[ms]locate/*db # sync; sh -c echo 3 /proc/sys/vm/drop_caches; time updatedb real3m54.792s user0m7.215s sys 0m0.350s # time updatedb real0m0.538s user0m0.302s sys 0m0.232s 0.5 second vs 2.5 seconds. Wow. Conclusions: 1. mlocate is slow at building it's db from scratch - about 250% as long as slocate on the same task. 2. mlocate is faster at reindexing a largely-unchanged fs - it does it in about 66% of the time slocate took. 3. mlocate is insanely quick at reindexing a db that is in cache. #1 is are - most systems will only do it once #3 is silly and does not represent anything close to reality #2 is pretty realistic and a 33% performance boost is significant I have no idea where the speed increase in #3 comes from. This is an ext4 fs - does ext4 keep an in-memory hash of inodes it reads? It seems to me that would be a very clever and very useful thing for an fs to do. No. 3 is what made me sent my first post. I was almost convinced that I did something wrong, because no sooner had I hit return it completed. I've deleted the database and rebooted. This is what I'm getting now on the first run: # time updatedb real2m30.729s user0m0.723s sys 0m9.070s My database is small, this is a relatively slim installation: # ls -la /var/lib/mlocate/mlocate.db -rw-r- 1 root locate 9326688 Nov 17 22:14 /var/lib/mlocate/mlocate.db -- Regards, Mick signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] migrating disks (from mounts to disklabels
Am 17.11.2010 22:59, schrieb James: Hello, I have a ~250 gig sata disk I want to migrate to a 2T Sata disk. This is simple, but, I have a few caveats. [...] Device Boot Start End Blocks Id System /dev/sda1 * 16405514481317 HPFS/NTFS /dev/sda264066431 208845 83 Linux /dev/sda36432 1408061440592+ 83 Linux /dev/sda4 14081 38913 199471072+ 5 Extended /dev/sda5 14081 14861 6273351 82 Linux swap / Solaris /dev/sda6 14862 2633592164873+ 83 Linux /dev/sda7 26336 38913 101032753+ 83 Linux [...] needs formatting and file systems installed OK, so I format using fdisk no big deal new disk will just have /(200G), swap, boot(250M) and one bit fat /usr/local (1.8T) My advice: dd if=/dev/sda of=/dev/sdb bs=65535 You end up with a lot of empty space on the end your disk but it is easy to extend your extended partition with GParted (or whatever) and then add new logical partitions. Alternative: Migrate to LVM for everything not needed for booting. Ok now I was going to use same reiserfs no big deal unless I can use reiser4? good idea? discuss-caveats I guess you are a die-hard reiserfs user? You should really try ext4. The perceived performance is much better than with ext3. Additional advantages: Its development continues. With the next big patch, it will scale well on multiple CPU cores.[1] OK now I want the new fstab to use disklabels old dog learning new trick here like this simple (few) partition scheme: /dev/sdb3 200G 52G 42G 55% / udev 10M 224K 9.8M 3% /dev /dev/sdb1 250M 47M 189M 20% /boot /dev/sdb4 1800G 125G 12G 92% /usr/local Current non disklabel fstab /dev/sda1 /boot reiserfsdefaults 1 2 /dev/sda2 noneswapsw 0 0 /dev/sda3 / reiserfsdefaults 0 1 /dev/sda4 /usr/local reiserfsdefaults 0 1 /dev/cdrom /mnt/cdrom autonoauto,ro,user 0 0 /dev/fd0/mnt/floppy vfatnoauto,user,umask=000 0 0 shm /dev/shmtmpfs nodev,nosuid,noexec 0 0 none/proc procdefaults0 0 so what does new fstab using disk labels look like? Just replace /dev/sdb1 with LABEL=boot, for example. Of course, your file system needs to have that label. For Ext* you set it with `tune2fs -L $label`, `e2label $label` or `mke2fs -L $label`. For reiserfs, it should be similar. Another approach (less readable but arguably less easy to break) is using UUID= You can find these out with dumpe2fs. I guess something similar exists for reiserfs, as well. Last, just dd it over like this? dd if=/dev/sda of=/dev/sdb bs=32768 see above. Hope this helps, Florian Philipp [1] http://thunk.org/tytso/blog/2010/11/01/i-have-the-money-shot-for-my-lca-presentation/ signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] KDE-4 multi-monitor + fullscreen applications
Am 17.11.2010 23:26, schrieb Alan McKinnon: Apparently, though unproven, at 00:08 on Thursday 18 November 2010, Florian Philipp did opine thusly: Hi list! Today, KDE nearly killed a presentation I held and now I want to understand what's going on: Following setup: One laptop, two outputs (internal display + projector). Now I configure KDE to expand the desktop on both (instead of simple cloning). So far, so good. For anyone to help at all, we'll need to know your hardware and video drivers, plus versions in use of X.org and it's drivers, plus relevant config stuff. Everything else is highly configurable and subject to the whim of driver writers and the user. And there's always nVidia's stance to be taken into account as well Ah, right, forgot about that. Intel GMA HD graphics (i915 driver), x11-base/xorg-server-1.8.2 (USE=udev -hal) and x11-base/xorg-drivers-1.8 No xorg.conf. Tried it with composite effects off and on. KDE is on version 4.4.5 and some packages 4.4.7 (current stable). First question: How does KDE choose on which output the standard desktop ends up and which gets the second set of desktop background + plasma widgets? It seems like the one with the higher resolution is standard and on a draw, it is the right-most. Is that correct? Can it be configured? Now that I have both desktops, I open Acroread or Okular and start the fullscreen/presentation mode. What happens is that the presentation is deterministically opened on one of the displays. What I don't understand is how it chooses which one it uses? It doesn't depend on the placement of the window (although other applications like Flash in Firefox, MPlayer, Kaffeine and Gwenview do). It doesn't always open on the secondary or standard desktop (as specified above). It rather seems like it always opens on the one with the higher resolution and if both are equal, it opens on the left-most. So, what happened when I tried to hold my presentation? The projector had a low resolution (1024x768) and therefore neither Acroread nor Okular showed on fullscreen on the projector. None of my previous tests showed that problem since I used two displays with equal resolution. Great fun! In the end, I cloned the output and thereby gave Okular no other choice. (Lucky me that I didn't any additional notes or anything on the other display ...) What can I do to influence this behavior? Edit: I just noticed that both applications have settings for this. However, they are ignored and the setting in Acroread is even reset to Current display each time I close the settings dialog! What is going on here? Thanks in advance! Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
Apparently, though unproven, at 23:18 on Wednesday 17 November 2010, Grant Edwards did opine thusly: No, but they generally set the USE defaults to give the same settings as running ./configure with none. In other words, they are following the upstream defaults. We seem to be going around in circles. :) The merits of using HAL for Xorg config aside, I am still curious about where the default configuration for a package comes from. Is there a written policy somewhere that tells devs how to set the default USE flags? All the clues are in http://devmanual.gentoo.org/index.html but it requires a gigantic dose of brain smarts and think-for-yourself. Developers of any sort have to be in the upper-IQ range of humanity (otherwise they couldn't develop shit) so this is a fairly safe assumption. You will notice that the tree contains relatively few Gentoo-maintained patch files (compared to say Ubuntu and Red Hat). Gentoo prefers to get patches from upstream or some other distro. The manual is full of references to get patches and bugs registered and fixed upstream instead of in the tree. Now, the only sane way this could work in a sane ecosystem is to track upstream as close as possible while not breaking things. An ebuild maintainer sets the USE flags in whatever suitable way {,s}he feels like to make that come about. The entire spirit in which the manual is written communicates that concept strongly. Very little of this is documented in an idiot-tree do-this-now-do-that fashion because: a. our devs are not idiots. b. our devs are assumed to have smarts upstairs. c. our devs are assumed to only pretend to be pedantic geeky gits who nit-pick about words, and not to actually *be* like that their entire life 24/7/365/75. In other words, they can think with a concept and not need instructions. d. they do not need a manual to know how to breathe either. Same principle. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] slocate masked
Apparently, though unproven, at 00:26 on Thursday 18 November 2010, Mick did opine thusly: Conclusions: 1. mlocate is slow at building it's db from scratch - about 250% as long as slocate on the same task. 2. mlocate is faster at reindexing a largely-unchanged fs - it does it in about 66% of the time slocate took. 3. mlocate is insanely quick at reindexing a db that is in cache. #1 is are - most systems will only do it once #3 is silly and does not represent anything close to reality #2 is pretty realistic and a 33% performance boost is significant I have no idea where the speed increase in #3 comes from. This is an ext4 fs - does ext4 keep an in-memory hash of inodes it reads? It seems to me that would be a very clever and very useful thing for an fs to do. No. 3 is what made me sent my first post. I was almost convinced that I did something wrong, because no sooner had I hit return it completed. I see that. In contrast to what I said in my first post, mlocate does seem to have found a way to speed up those access. It's not just kernel caching - it's 5 times faster than slocate even with virtually nothing to re-index -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Crufted with perl modules?
I wasnt familiar with + but it changes the default behavior of this; find /path -name something -exec ls -lS {} \; which will run ls -lS once for each file, and therefore Sort doesnt work as its only sorting a single file find /patch -name something -exec -ls -lS + which runs ls -lS once against all the files that find finds (added as additional arguments), and therefore Sort works.
Re: [gentoo-user] Crufted with perl modules?
Apparently, though unproven, at 00:49 on Thursday 18 November 2010, Adam Carter did opine thusly: I wasnt familiar with + but it changes the default behavior of this; find /path -name something -exec ls -lS {} \; which will run ls -lS once for each file, and therefore Sort doesnt work as its only sorting a single file find /patch -name something -exec -ls -lS + which runs ls -lS once against all the files that find finds (added as additional arguments), and therefore Sort works. Almost right. -exec + will not append all filenames found and run one command, it will append the maximum number of filenames that do not exceed the shell command line limit, and do that enough times to get through all the filenames. You will be surprised how easy it is to get a directory with enough files in it to exceed the shell command length limit (65535 chars?). I have several users who will gladly show you how it's done, and will show you where they have each done it in multiple places -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Crufted with perl modules?
find /patch -name something -exec -ls -lS + which runs ls -lS once against all the files that find finds (added as additional arguments), and therefore Sort works. Almost right. -exec + will not append all filenames found and run one command, it will append the maximum number of filenames that do not exceed the shell command line limit, and do that enough times to get through all the filenames. Thanks for that Alan. I wasnt 100% sure I understood the man page, and that issue could definitely bite if you weren't aware!
Re: [gentoo-user] KDE-4 multi-monitor + fullscreen applications
- Original Message From: Florian Philipp li...@f_philipp.fastmail.net To: Gentoo User List gentoo-user@lists.gentoo.org Sent: Wed, November 17, 2010 5:08:33 PM Subject: [gentoo-user] KDE-4 multi-monitor + fullscreen applications Hi list! Today, KDE nearly killed a presentation I held and now I want to understand what's going on: Following setup: One laptop, two outputs (internal display + projector). Now I configure KDE to expand the desktop on both (instead of simple cloning). So far, so good. First question: How does KDE choose on which output the standard desktop ends up and which gets the second set of desktop background + plasma widgets? It seems like the one with the higher resolution is standard and on a draw, it is the right-most. Is that correct? Can it be configured? I haven't played with the KDE4 mult-monitor mode enough yet; but I would think it would be in the Display settings section of the System Settings for KDE4. Reading over: http://forum.kde.org/viewtopic.php?f=66t=82510 http://forum.kde.org/viewtopic.php?f=66t=25765 It seems Kephal is the culprit. Quite a bit was fixed for 4.2, and even more for 4.3, 4.4, and 4.5. So you may want to see if it's a bug related to something pre-4.5. Looks like 4.5 is in testing: http://gentoo-portage.com/kde-base/kde-meta Just a thought; wish I could be more helpful. Ben
Re: [gentoo-user] Crufted with perl modules?
Apparently, though unproven, at 01:03 on Thursday 18 November 2010, Adam Carter did opine thusly: find /patch -name something -exec -ls -lS + which runs ls -lS once against all the files that find finds (added as additional arguments), and therefore Sort works. Almost right. -exec + will not append all filenames found and run one command, it will append the maximum number of filenames that do not exceed the shell command line limit, and do that enough times to get through all the filenames. Thanks for that Alan. I wasnt 100% sure I understood the man page, and that issue could definitely bite if you weren't aware! It bit me many times :-) If you know about it already, the man page of course makes perfect sense. Such a pity it's not totally clear to those who don;t know about it already. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] One machine sends emerge text output to stderr, not stdout
On Wed, Nov 17, 2010 at 01:41:45PM +, Stroller wrote It's probably fixed in one of the updates! Why are you posting before you checked that!?!? It started happening suddenly And yes, I did search bugzilla, although I admit my searches aren't always perfect. And if emerge --sync output ends up telling me there is a portage update, I do run it first. The main quirk on my mcahines is that I start USE with -* on all my machines. This goes back to when the developers in their infinite wisdom, decided to make ipv6 a default USE flag. Why not just use -ipv6 as a global USE flag!?!? I have to admit that the Gentoo devs have in the past made decisions which have caused me to be suspicious of their sanity. But if I disagree with them over a USE flag I just add it to make.conf. Because I don't want a repeat of the ipv6 fiasco where I had an almost non-functional browser, mediaplayer (for internet files), etc, etc. And I also had to run emerge --newuse --update world and inspect the output from emerge -pv --depclean and remove additional stuff, and then revdep-rebuild to clean up the resulting extra goodies. If I don't use -* what's the next flag that the devs will add? And how many of my current packages will link against it? On occasion, emerge -pv --deep --update world will complain that a certain USE flag is required for my config. At that time, I will decide if I really want the package that requires the flag, and if so, whether to enable the flag globally or one-off in /etc/package.use OK, so I'm a control freak. That's one reason I left Windows. I want to be in charge of my machine. -- Walter Dnes waltd...@waltdnes.org
[gentoo-user] Re: Cannot open root device sda3 or unknown-block (0,0)
On 11/17/2010 09:35 AM, Joseph wrote: On 11/17/10 13:57, Stroller wrote: http://www.sysresccd.org/ I've tried Gentoo ISO first. I've downloaded the latest minimal AMD64 ISO and they will not boot my AMD Athlon 64 processor 3800 (the below ISO boot my other box OK). The other box has a different mother board? I've tried: install-amd64-minimal-2010.iso The system start booting and stops at: Looking for the cdrom ... Attempting to mount media: - /dev/hda I just booted install-amd64-minimal-2010.iso and it mounts /dev/sr0 instead of looking for /dev/hda. The /dev/hd* notation is used only by the deprecated IDE drivers, while the newer ATA drivers use /dev/sd* instead. So, why does the gentoo install disk look for /dev/hda on your machine? Dunno, but I'm curious what it finds on your other machine. Does that machine have any BIOS settings that deal with hard drives, like LBA and old stuff like that? This system boots OK older ISO AMD64 - 2008 but not the latest ISO. Weird. My guess is that the different behavior has to do with the new ATA drivers. I think they are newer than 2008, but I'm not certain. OK I've tried as you suggested, http://www.sysresccd.org/ and it works OK. When I boot I have network eth0 and it loads driver forcedeth I've compiled the same driver into my current kernel but there is no eth0 Does dmesg say anything about forcedeth or eth* ?
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On Wed, Nov 17, 2010 at 02:00:48AM +0200, Alan McKinnon wrote If you then mentioned that their defaults broke Dale's setup, they'd likely answer Who's Dale? followed shortly by None of us have hardware like Dale to test. Sorry 'bout that. Set USE=-hal Of course the USE flag advice is given *AFTER* the new flag breaks your system. That's why I use -* at the beginning of my USE in /etc/make.conf. I never found out whether hal would break my systemG. If Dale had used -* his X would not have broken, even if some other ebuild pulled it onto the machine as a hard-coded dependancy. -- Walter Dnes waltd...@waltdnes.org
Re: [gentoo-user] One machine sends emerge text output to stderr, not stdout
Apparently, though unproven, at 02:20 on Thursday 18 November 2010, Walter Dnes did opine thusly: Because I don't want a repeat of the ipv6 fiasco where I had an almost non-functional browser, mediaplayer (for internet files), etc, etc. And I also had to run emerge --newuse --update world and inspect the output from emerge -pv --depclean and remove additional stuff, and then revdep-rebuild to clean up the resulting extra goodies. If I don't use -* what's the next flag that the devs will add? And how many of my current packages will link against it? emerge -avuND world will show you, in colour, USE flags that have changed. You can then decide what to do about them. Your way, you have to explicitly add back in all the flags you want. You will not receive the benefit of seeing changed defaults (and there might be a good reason for the change, but now you will miss them). You also just trashed most of the usefulness of profiles and have to manually tracked all default USE changes yourself. The usual way (not to do what you do) still lets you control as much as you want but with the minimum effort as opposed to the maximum effort. You will only need to make a decision when a decision needs to be made. Why are you making more work for yourself? Portage is software, let it do what software is good at - removing drudge work from your life so you can get on with the important things, stuff that needs thought -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
Apparently, though unproven, at 02:43 on Thursday 18 November 2010, Walter Dnes did opine thusly: On Wed, Nov 17, 2010 at 02:00:48AM +0200, Alan McKinnon wrote If you then mentioned that their defaults broke Dale's setup, they'd likely answer Who's Dale? followed shortly by None of us have hardware like Dale to test. Sorry 'bout that. Set USE=-hal Of course the USE flag advice is given *AFTER* the new flag breaks your system. That's why I use -* at the beginning of my USE in /etc/make.conf. I never found out whether hal would break my systemG. If Dale had used -* his X would not have broken, even if some other ebuild pulled it onto the machine as a hard-coded dependancy. Looks like the *actual* problem is non-application of OYFEAL[1],not what the devs do. Dale should have seen a new package being installed - an N inside [], should have seen new flags highlighted in colour, and should have decided. If he decided to go without hal, nothing would have changed for him. He decided to go with hal, and he got the breakage he did. Either way, seeing the USE flag changes tells him nothing about the impending breakage. He can only know that by *doing it*, or reading about others that did it. Let's look at this sanely and realise that there's nothing magic about hal and what it did. It has bugs. Big deal. So did jpeg and look at the carnage that one caused. How would your method of handling USE have assisted in preventing that breakage? Please note that the breakage in jpeg is much *much* more common than changes to default USE. -- alan dot mckinnon at gmail dot com
Re: [gentoo-user] Re: Cannot open root device sda3 or unknown-block (0,0)
On 11/17/10 16:37, walt wrote: [snip] OK I've tried as you suggested, http://www.sysresccd.org/ and it works OK. When I boot I have network eth0 and it loads driver forcedeth I've compiled the same driver into my current kernel but there is no eth0 Does dmesg say anything about forcedeth or eth* ? It doesn't have a chance, the minimal ISO CD hangs up right after detecting the keyboard. If I boot kernel option gentoo debug * it prints: /bin/sh: can't access tty: job control turned off -- Joseph
[gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On 2010-11-18, Alan McKinnon alan.mckin...@gmail.com wrote: Apparently, though unproven, at 02:43 on Thursday 18 November 2010, Walter Dnes did opine thusly: On Wed, Nov 17, 2010 at 02:00:48AM +0200, Alan McKinnon wrote If you then mentioned that their defaults broke Dale's setup, they'd likely answer Who's Dale? followed shortly by None of us have hardware like Dale to test. Sorry 'bout that. Set USE=-hal Of course the USE flag advice is given *AFTER* the new flag breaks your system. That's why I use -* at the beginning of my USE in /etc/make.conf. I never found out whether hal would break my systemG. If Dale had used -* his X would not have broken, even if some other ebuild pulled it onto the machine as a hard-coded dependancy. Looks like the *actual* problem is non-application of OYFEAL[1],not what the devs do. Google doesn't seem to know what OYFEAL means. Do we get any hints? -- Grant
Re: [gentoo-user] Re: Cannot open root device sda3 or unknown-block (0,0)
You better try the liveCD or liveDVD. They have more drivers, better chance to hit. Regards, David Shen On Nov 17, 2010, at 17:25, Joseph syscon...@gmail.com wrote: On 11/17/10 16:37, walt wrote: [snip] OK I've tried as you suggested, http://www.sysresccd.org/ and it works OK. When I boot I have network eth0 and it loads driver forcedeth I've compiled the same driver into my current kernel but there is no eth0 Does dmesg say anything about forcedeth or eth* ? It doesn't have a chance, the minimal ISO CD hangs up right after detecting the keyboard. If I boot kernel option gentoo debug * it prints: /bin/sh: can't access tty: job control turned off -- Joseph
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On 18/11/2010, at 1:46am, Grant Edwards wrote: ... Looks like the *actual* problem is non-application of OYFEAL[1],not what the devs do. Google doesn't seem to know what OYFEAL means. Do we get any hints? Yes, if you're patient he'll give you [1].
[gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On 2010-11-18, Stroller strol...@stellar.eclipse.co.uk wrote: On 18/11/2010, at 1:46am, Grant Edwards wrote: ... Looks like the *actual* problem is non-application of OYFEAL[1],not what the devs do. Google doesn't seem to know what OYFEAL means. Do we get any hints? Yes, if you're patient he'll give you [1]. I still I don't get it. What is [1] supposed to mean? -- Grant
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
Grant Edwards wrote: On 2010-11-18, Strollerstrol...@stellar.eclipse.co.uk wrote: On 18/11/2010, at 1:46am, Grant Edwards wrote: ... Looks like the *actual* problem is non-application of OYFEAL[1],not what the devs do. Google doesn't seem to know what OYFEAL means. Do we get any hints? Yes, if you're patient he'll give you [1]. I still I don't get it. What is [1] supposed to mean? Usually it means there is a footnote with a link at the bottom. It appears we will have to be patient with him on that too. lol Dale :-) :-)
Re: [gentoo-user] migrating disks (from mounts to disklabels
James wrote: so what does new fstab using disk labels look like? SNIP Discussion, corrections or caveats are most welcome. This is mine and it worked when I rebooted a bit ago. LABEL=boot/bootext2noatime1 2 LABEL=root /reiserfsdefaults0 1 LABEL=swapnoneswapsw0 0 LABEL=portage/usr/portageext3defaults0 1 LABEL=home/homereiserfsdefaults1 1 LABEL=data/datareiserfsdefaults0 1 I use a variety of file systems don't I? lol I hope that helps. Dale :-) :-)
Re: [gentoo-user] One machine sends emerge text output to stderr, not stdout
On 18/11/2010, at 12:20am, Walter Dnes wrote: On Wed, Nov 17, 2010 at 01:41:45PM +, Stroller wrote It's probably fixed in one of the updates! Why are you posting before you checked that!?!? It started happening suddenly And yes, I did search bugzilla, although I admit my searches aren't always perfect. And if emerge --sync output ends up telling me there is a portage update, I do run it first. You can't properly check if your bug is fixed in the updates by checking bugzilla. You need to check by *applying* the updates. In your previous message you didn't tell us that you'd upgraded Portage to the latest before getting this error on 115 remaining updates, and if you did actually do that, it doesn't really matter, because you still need to run the other updates first. If you phoned HP or Dell tech support and said you had a problem, they would ask if you had the latest version(s) of the software on your machine. They might well expect you to run system update to ensure all system packages are up to date, too. You shouldn't expect more support effort from the list than you would from a company you're paying for help! You might *get* more support effort from the folks here on the list, but that's because we're nice people (well, we all are except me and Alan) - make it easier for us! I'm sorry if this comes across as rude, but I think it's daft to ask the list for help when your system isn't up to date. It might not fix the problem on this occasion, but don't sneer at me if that's the case because plenty of times it will. You've got more than one easy workaround that will overcome this problem and allow you to review the `emerge --pretend` output for the duration of this emerge. The effort of writing an email asking for help (and giving all the information) is so much more than that of just running the update, that even if the update doesn't fix the problem 95% of the time, it's still less effort cumulatively to always update the system before looking into the problem! Incidentally: in your original message you stated that you pipe the output of `emerge -pv --update` to less. This will remove colour from the output, cause it to be rendered in black and white, and make it harder to read. I have one machine that doesn't do terminal colours - I don't use it that much, so I'm not sure that it's worth fixing, but only the other day I was marvelling at how much easier it is to read stuff on my Gentoo boxes with with syntax highlighting sprinkled throughout my terminal. For instance I use `export MANPAGER=/usr/bin/most`. If you're not using a GUI terminal emulator with a scrollbar, then may I respectfully suggest you install `tmux` (a replacement for GNU `screen`) and use it. It takes a little while to get familiar with it, and with its keybindings and stuff, and perhaps even to get into the habit and mindset of using it, but it really is brilliant, and it will allow you to page through output of `emerge --pretend` whilst retaining the colours that portage applies to the USE flag information. Stroller.
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On 18/11/2010, at 12:43am, Walter Dnes wrote: On Wed, Nov 17, 2010 at 02:00:48AM +0200, Alan McKinnon wrote If you then mentioned that their defaults broke Dale's setup, they'd likely answer Who's Dale? followed shortly by None of us have hardware like Dale to test. Sorry 'bout that. Set USE=-hal Of course the USE flag advice is given *AFTER* the new flag breaks your system. That's why I use -* at the beginning of my USE in /etc/make.conf. I never found out whether hal would break my systemG. If Dale had used -* his X would not have broken, even if some other ebuild pulled it onto the machine as a hard-coded dependancy. Uh, except sometimes a USE flag is added to a package and set to USE=foo by default, with USE=foo maintaining the original behaviour. Therefore by selecting USE=-* you may be changing your system's behaviour. You claim to be a control freak but you seem to be doing this to avoid the chore of properly inspecting USE flags each time you emerge. If you `emerge --pretend` before every update you make, you would see what's changed! What's the point in running `emerge --pretend` if you don't look at it!?!? Further to the aside in the email I sent a minute or two ago, all the changed USE flags in Portage's output show up in bright yellow or green, BTW, so they're easy to spot. I have a feeling that we're not going to convince you that you're doing things wrong, so I apologise if my tone sounds strident. I beg you to try it. Stroller.
Re: [gentoo-user] Re: How to configure thochpad sensitivity (using hal)?
On 18/11/2010, at 3:59am, Grant Edwards wrote: On 2010-11-18, Stroller strol...@stellar.eclipse.co.uk wrote: On 18/11/2010, at 1:46am, Grant Edwards wrote: ... Looks like the *actual* problem is non-application of OYFEAL[1],not what the devs do. Google doesn't seem to know what OYFEAL means. Do we get any hints? Yes, if you're patient he'll give you [1]. I still I don't get it. What is [1] supposed to mean? Why, one hint, of course! Stroller.
Re: [gentoo-user] slocate masked
On Thursday 18 Nov 2010 2:35:41 am Alan McKinnon wrote: You must also delete the old slocate.db as you do not know for certain whether it does or does not affect the initial run of mlocate's updatedb yea i did .. forgot to mention Not at all weird. The db is probably less than 100M. It's probably in your kernel's fs cache, especially as you implied you deleted the file then ran updatedb immediately. Rather delete the db, reboot, then run updatedb yea i tried that and it was as long as the first time as i mentioned in my reply to mick. it felt weird coz i didnt know it uses the cache. -- - Yohan Pereira.
[gentoo-user] Fails to login with no network connected/setup
I am having problems logging into a laptop (gdm) after its moved to a new network. Its fine once its setup on the network in question, but if I hibernate it then resume with it either not connected at all, or connected to a new network (but not configured for it) it takes so long to login to X via gdm it times out. Its a 6+ year old install, but up to date otherwise (just did a major update which is when this started - nearly 400 packages so no idea what might have done it). All logins are local and no network should be required. GDM looks to be correct (and hasnt changed) Where should I look? - its obviously trying to do something on the network but cant access it until its properly up and I need to login to get the network up after moving it. I can get into a console and run things manually, after which its fine, but that misses the point :) BillK -- William Kenworthy bi...@iinet.net.au Home in Perth!