[gentoo-user] kernel: conftest segfault error 4 in libc-2.11.1.so
Hi, after upgrading to glibc-1.22.1 I get this strange (non-fatal) error message in my /var/log/messages. Has anybody seen this as well or does anybody know where this comes from? Many thanks for a hint, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
[gentoo-user] bypassing CUPS - howto
Hi, I'd like to bypass processing by CUPS and send some postscript/pdf file directly to a USB / network printer. Does anybody know how this can be achieved? Many thanks for a hint, Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
Re: [gentoo-user] Constraining X display resolutions
On 28 April 2010 06:35, Walter Dnes waltd...@waltdnes.org wrote: On Tue, Apr 27, 2010 at 11:02:53PM +0100, Mick wrote anything else but native resolution makes images and characters blurred. There is one exception to that general rule. If you divide the X and/or Y dimensions by a whole number, the result may be blocky fonts, but at least there is no interpolation. For a 1920x1080 screen, dimensions like 960x1080 960x540 960x360 640x1080 640x540 640x360 480x1080 480x540 480x360 would involve no interpolation. Of the possibilities listed, the only sane ones are 960x1080, 960x540, 640x540, 640x360, and 480x360. If you have a VGA input on the LCD monitor, and if you know the monitor's safe horizontal and vertical frequency ranges, you can go to a site like http://xtiming.sourceforge.net/cgi-bin/xtiming.pl or http://amlc.berlios.de/ and generate custom modelines for the reduced sizes. You may need doublescan for some of the smaller screens. Hmm, that's all the choice that I have I'm afraid: $ xrandr Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 1920 x 1920 VGA-0 disconnected (normal left inverted right x axis y axis) HDMI-0 disconnected (normal left inverted right x axis y axis) LVDS connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm 1920x1080 60.0*+ 1680x1050 60.0 1400x1050 60.0 1280x1024 59.9 1440x900 59.9 1280x960 59.9 1280x854 59.9 1280x800 59.8 1280x720 59.9 1152x768 59.8 1024x768 59.9 800x60059.9 640x48059.4 DisplayPort-0 disconnected (normal left inverted right x axis y axis) Anyway, I'm not the OP and I don't want to hijack the thread ... but thanks all the same Walter. I didn't know about the xtiming page. -- Regards, Mick
Re: [gentoo-user] bypassing CUPS - howto
On Wed, 28 Apr 2010 13:10:02 +0200, Helmut Jarausch wrote about [gentoo-user] bypassing CUPS - howto: I'd like to bypass processing by CUPS and send some postscript/pdf file directly to a USB / network printer. Does anybody know how this can be achieved? Why do you need to bypass CUPS? If you have a raw print stream, just ensure you have application/octet-stream enabled. To do this, simply cd to /etc/cups on the machine that owns the printer(s) and edit mime.convs and mime.types. You will easily see the octet-stream support near the bottom of each of these files. -- Regards, Dave [RLU #314465] == dwn...@ntlworld.com (David W Noon) == signature.asc Description: PGP signature
Re: [gentoo-user] Constraining X display resolutions
måndag 26 april 2010 13:57:56 skrev Peter Humphrey: Hello list, My monitor is 1600 x 1200 but I like to run it at 1400 x 1050 (anno domini etc.). So far, though, KDE 4 doesn't remember the resolution at shutdown so it restarts at 1600 x 1200. I have to go through the rigmarole of setting it again every time I log in. I have raised a bug report but I don't suppose it's very high on anyone's list. Meanwhile, is there an entry I can make in xorg.conf, or elsewhere, to force KDE to display just the single resolution, 1400 x 1050? If you're using a kernel with kernel mode setting enabled you can add the video= parameter to the kernel command line in grub.cfg(or menu.lst). So if you set video=1400x1050, X will think that's the highest resolution it can set.
Re: [gentoo-user] bypassing CUPS - howto
On 28 Apr, David W Noon wrote: On Wed, 28 Apr 2010 13:10:02 +0200, Helmut Jarausch wrote about [gentoo-user] bypassing CUPS - howto: I'd like to bypass processing by CUPS and send some postscript/pdf file directly to a USB / network printer. Does anybody know how this can be achieved? Why do you need to bypass CUPS? Thanks, it's just for debugging. Printing some pdf files with acroread makes some printers hang here. To locate the problem source, I'd like to check if the printer works if it gets the postscript or pdf-file (there printer is assumed to accept postscript level 3). I hope to use pyusb to print to a USB printer. There is a new version 1.0.0a0 on sourceforge. Some of my network printers accept file submission via ftp. But what for the other ones? Helmut. -- Helmut Jarausch Lehrstuhl fuer Numerische Mathematik RWTH - Aachen University D 52056 Aachen, Germany
Re: [gentoo-user] gnome login panel how to disable restart and shutdown buttons
On Tue, Apr 27, 2010 at 1:11 PM, Mark Knecht markkne...@gmail.com wrote: Keep in mind that my incremental power costs right now are $0.42/KWH. For monthly costs I use 24*365/12 = 730 hours/month. Wow, it is only $0.07 cents/kWh here (St Louis, Missouri, USA). The electric company wants to raise rates and the general public is violently opposed (as always). But it seems like we have it good! The highest electric bill I've ever had was $89 last summer when we had a stretch of 100+ degree days... it's a real bargain but I still try to do what I can to save power, not only because of money but because it's The Right Thing To Do(tm). Gentoo is surely not the most power-saving distro when you consider the load that compiling generates, but there are some things I just cannot compromise on. :) They can double, triple, quadruple the electric rates and I'd still be happy; when the power goes out during a storm, etc., I find myself bored to death. Give me my electricity and give it to me now, please. :)
Re: [gentoo-user] backup to a cold-swap drive
Am 28.04.2010 03:41, schrieb Iain Buchanan: Hi, A winblows colleague said he uses a utility to backup his internal hard drive to an external disk, such that if his internal disk fails he can replace it with the external disk and continue straight away. Since I go to weird locations with unreliable power and sometimes drop my laptop I thought it should be simple to do the same in Linux. I have an external disk the same size, but now what? * I want to copy changes intelligently (ie. no dd, gparted, or Ghost4Linux). * I want to copy a specific device only (no usb keys, etc) to a specific external device. * Windows partitions can be ignored. * It doesn't matter if the copy is not unmounted properly, eg. if power is shut of without shutting down. * The external disk must be able to be absent Can md use one internal and one external disk in a RAID 1 setup, with the external disk not always there? Any other suggestions? thanks :) md would be extremely slow because it has to rebuild/resync the complete array. I suggest you manually recreate the partitioning scheme, install grub, then mount it with some little script and call some backup tool to do the actual copying. If you can live with just one big partition as a backup (probably with separate /boot), you should replace fstab and grub.conf on the backup medium and blacklist them from the files which you want to back up. Concerning the backup tool, I would use `rsync --delete` plus all relevant switches for permissions, times, acls, etc. If you use another tool, just make sure it doesn't put some metadata onto the backup medium and that it can delete files which no longer exist on the original medium. With regard to your requirement to just 'pull the cord' without umounting it: Better mount it with '-o sync' to increase your chance that everything works fine afterwards. But in reality, nothing can really protect you from filesystem corruption in this situation. If you can afford, better keep two backup media which you round-robin. Hope this helps, Florian Philipp signature.asc Description: OpenPGP digital signature
Re: [gentoo-user] gnome login panel how to disable restart and shutdown buttons
On Wed, Apr 28, 2010 at 8:28 AM, Paul Hartman paul.hartman+gen...@gmail.com wrote: On Tue, Apr 27, 2010 at 1:11 PM, Mark Knecht markkne...@gmail.com wrote: Keep in mind that my incremental power costs right now are $0.42/KWH. For monthly costs I use 24*365/12 = 730 hours/month. Wow, it is only $0.07 cents/kWh here (St Louis, Missouri, USA). The electric company wants to raise rates and the general public is violently opposed (as always). But it seems like we have it good! The highest electric bill I've ever had was $89 last summer when we had a stretch of 100+ degree days... it's a real bargain but I still try to do what I can to save power, not only because of money but because it's The Right Thing To Do(tm). Gentoo is surely not the most power-saving distro when you consider the load that compiling generates, but there are some things I just cannot compromise on. :) They can double, triple, quadruple the electric rates and I'd still be happy; when the power goes out during a storm, etc., I find myself bored to death. Give me my electricity and give it to me now, please. :) Well, power costs more in pretty, clean California, but not that much more. I did say 'incremental' cost but I'm sure it wasn't that clear. We're tiered here with prices in this email rounded to the nearest penny: Up to 201 KWH @ $0.12 = $24.12 Up to 60 KWH @ $0.14 = $8.40 Up to 141 KWH @ $0.28 = $39.48 Up to 300 KWH @ $0.42 = $126 Prices go up pretty fast. We're 10% or more of the nation so there's a big value to reducing our consumption so they raise prices pretty hard. My incremental comment means that other stuff in this house uses the first 302 KWH each month and using or saving power on my office adds or removes cost at $0.42/KWH. This last couple of months I've managed to get down to 75 KWH in tier 4 so my actual costs in that tier were about $31. If I could get to the middle of tier 3 then it would be about a $50/month savings. Cheers, Mark
Re: [gentoo-user] Updates = slow firefox
Strangely, now my laptop's brightness adjustment doesn't work via the keyboard shortcuts. Any ideas on that? - Grant Please share the beast model :P (or maybe ive missed it). in kernel config You have multiple option for backlight eg. for thinkpad there is extra one in thinkpad specific acpi maybe You have something similar for Yours stuff. It's a Dell Vostro 1320. The keyboard shortcuts to change brightness were working great until I enabled DRM in the kernel. Can you tell me where in the kernel those options can be found, or part of the variable name that defines them? Try running xev and punching brightness keys, if you would see effects (some text in terminal) then its OK :P You should change the Acpi configs (etc/acpi/) or Gnome/KDE/Xfce/... bindings. I do see text in xev when pressing the brightness keys. (if You dont know it already) For acpi config You'll need event id try running acpi_listen. eg. /etc/acpi/events/sleep: event=ibm/hotkey HKEY 0080 1004 action=/etc/acpi/actions/sleep.sh and into actions you put scripts, try using xbacklight. You think I should use xbacklight or similar even though it was working on its own before? - Grant If You wouldn't have any reaction in xev and acpi_listen i check the option in kernel. I think that its better to have things done even if would be around then dont done it at all. :) Yes but I think I should find the built-in mechanism which was allowing it to work before instead of writing my own script to make it work. Don't you think so? - Grant Try built in Gnome\Kde\Xfce(etc) bindings i had some troubles (in xfce) - keys with names XF86* starts to randomly changes names or disappear from configs ... maybe its Your case too. -- Bartosz Szatkowski Got it, thank you for your help with this. I used xbacklight along with the xfce4 keyboard shortcut GUI settings. My backlight adjustment keystrokes are displayed as XF86MonBrightnessUp and *Down in those settings, so there must have been a mechanism adjusting the backlight based on that before I updated Xorg. Here are my xbacklight commands: xbacklight -inc 15 -steps 1 -time 0 xbacklight -dec 10 -steps 1 -time 0 Thanks again, Grant
Re: [gentoo-user] ATT DSL + Westell modem/router = Gentoo woes
I am not familiar with the modem in question, but if you are using your own router the modem should be set up in fully bridged mode and the PPPoE authentication will be managed by your Gentoo router. Thanks Mick. The Westell does have an option to take PPPoE off of the device and I'd like to set that up soon. Right, without the PPPoE disabled the modem operates in a half-bridged mode (essentially it is a router running dhcp and 1:1 NAT). I would disable NAT, dhcp and PPPoE on the modem so that it is in fully-bridged mode and then see if the problem is resolved. Your symptoms are typical of a half-bridged router and a dynamic IP address from the ISP. Usually, the client on the LAN does not know when the ISP's WAN side IP address has changed and will not pick up the new address until the dhcp lease on the client has expired. To overcome this botched implementation the half-bridged modem has a short lease. This doesn't always work, as I suspect is the case here. HTH. -- Regards, Mick Thank you Mick, I'm going to set that up ASAP. - Grant
[gentoo-user] Print server with hplip
I've been using a print and scan server with an Epson printer/scanner for a long time. I'm trying to set up the same thing with an HP and I've got everything working except remote printing. Local printing, local scanning and remote scanning work, but not remote printing. I have the client's IP in /etc/cups/cupsd.conf and the server's IP in /etc/cups/client.conf but the client won't pick up the server's HP for printing. Could there be any extra configuration required for remote printing when switching from gutenprint (I think) to hplip? I had to add saned to the lp group on the server before I could get remote scanning to work (not required with the Epson), and I'm wondering if there could be a similar detail I'm overlooking with remote printing. - Grant
[gentoo-user] Multiple serial ports
What is the current recommendation for handling multiple serial ports on a Gentoo server? In $dayjob we used to use Perl SX cards but recent kernels have marked the driver for these as 'broken'[1]. We have tried Digi Etherlite with the dgrp driver, but have had problems with write(2) blocking forever (despite being preceded by a select(2) call which indicates the file handle to be writable. [1] As it depends on a no-longer supported and buggy facility in the tty code.
Re: [gentoo-user] emerge -e system - output info/errors to log
On 2010-04-18 1:56 PM, Alan McKinnon wrote: Understand what the gcc upgrade guide is: a quick simple guide for user who don't know tool chains inside out, that give the minimal sequence of commands that is GUARANTEED to NOT leave the user in the lurch. It's not the minimum possible sequence of commands to do the upgrade, because most users don't know how to tell the difference. Here's the logic: If we imply that you should merge -e world with a gcc upgrade, my inbox will not fill with bugs from users who don't know the inner guts of the toolchain. The Guide is not the best possible guide that can be. It is the guide that causes the least support questions from users. This is the second time that someone has said something like this with respect to the official Gentoo Guides (the other was the kernel upgrade guide, and its recommendation to use ''make menuconfig instead of 'make oldconfig')... It would be nice if there were a formal/official place to find 'Advanced User Guides'... ;) -- Charles
Re: [gentoo-user] emerge -e system - output info/errors to log
On 2010-04-18 2:05 PM, Neil Bothwick wrote: My preferred approach is to add mail to PORTAGE_ELOG_SYSTEM to get each elog message mailed to me. That's still separate message, but I think that's better as I can mark each one read as I've actioned it, leaving me with a clear list of what's left to check or do. Perfect, thanks Neil... -- Charles
Re: [gentoo-user] emerge -e system - output info/errors to log
Tanstaafl wrote: On 2010-04-18 1:56 PM, Alan McKinnon wrote: Understand what the gcc upgrade guide is: a quick simple guide for user who don't know tool chains inside out, that give the minimal sequence of commands that is GUARANTEED to NOT leave the user in the lurch. It's not the minimum possible sequence of commands to do the upgrade, because most users don't know how to tell the difference. Here's the logic: If we imply that you should merge -e world with a gcc upgrade, my inbox will not fill with bugs from users who don't know the inner guts of the toolchain. The Guide is not the best possible guide that can be. It is the guide that causes the least support questions from users. This is the second time that someone has said something like this with respect to the official Gentoo Guides (the other was the kernel upgrade guide, and its recommendation to use ''make menuconfig instead of 'make oldconfig')... It would be nice if there were a formal/official place to find 'Advanced User Guides'... ;) I think that is where this mailing list comes in. Here, you can say what you have, what you want in the end then someone can tell you a way to get there. Usually, you will get more than one way and have to pick your poison. I agree with what Alan said tho. The guides have to be a work every time for every one that reads it. Dale :-) :-)
Re: [gentoo-user] backup to a cold-swap drive
Am Mittwoch, 28. April 2010 schrieb Iain Buchanan: Hi, A winblows colleague said he uses a utility to backup his internal hard drive to an external disk, such that if his internal disk fails he can replace it with the external disk and continue straight away. Since I go to weird locations with unreliable power and sometimes drop my laptop I thought it should be simple to do the same in Linux. I have an external disk the same size, but now what? * I want to copy changes intelligently (ie. no dd, gparted, or Ghost4Linux). * I want to copy a specific device only (no usb keys, etc) to a specific external device. * Windows partitions can be ignored. * It doesn't matter if the copy is not unmounted properly, eg. if power is shut of without shutting down. * The external disk must be able to be absent Can md use one internal and one external disk in a RAID 1 setup, with the external disk not always there? Any other suggestions? After I upgraded my laptop with an internal HDD of 500 GB, I started using my old external 500 GB drive as backup. Though of different dimensions and makers, they both have the same number of sectors. So I dd'ed the entire disk first, which gave me an exact mirror of the internal disk. I though this would be faster, because I have lots of small files in some places. But now I can update the backup by a simple call to rsync: rsync -aX --delete / /dev/backup root partition/ -a (archive) copies permissions, ownerships and the likes -X stops at file system boundaries, i.e. it will only backup the actual root partition, without other mounted file systems such as /proc, /dev and /home. -- Gruß | Greetings | Qapla' Why did the tachyon cross the road? Because it was on the other side. signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Constraining X display resolutions
Am Mittwoch, 28. April 2010 schrieb Mick: However, Linux GUIs are very good at geometric upscaling, so I suggest increasing font and icon sizes. I'll try that anyway; it may give me a better compromise. Thanks. I've had the same problem on a high resolution (1920x1080), small size screen (15.6). The characters are tiny and anything else but native resolution makes images and characters blurred. The solution was to increase the font size on the terminals and KDE apps. However, I don't know how to make the characters in the Firefox menus and body larger. Am I supposed to run gconftool-2 with some esoteric options? There's a package that lets GTK apps look like KDE apps, including font, called kcm_gtk. It adds a page to System settings under Appearance-Appearance called GTK styles and fonts. -- Gruß | Greetings | Qapla' No user was harmed by sending this Outlook-free message. signature.asc Description: This is a digitally signed message part.
Re: [gentoo-user] Constraining X display resolutions
Frank Steinmetzger skrev: Am Mittwoch, 28. April 2010 schrieb Mick: However, Linux GUIs are very good at geometric upscaling, so I suggest increasing font and icon sizes. I'll try that anyway; it may give me a better compromise. Thanks. I've had the same problem on a high resolution (1920x1080), small size screen (15.6). The characters are tiny and anything else but native resolution makes images and characters blurred. The solution was to increase the font size on the terminals and KDE apps. However, I don't know how to make the characters in the Firefox menus and body larger. Am I supposed to run gconftool-2 with some esoteric options? There's a package that lets GTK apps look like KDE apps, including font, called kcm_gtk. It adds a page to System settings under Appearance-Appearance called GTK styles and fonts. Running fluxbox myself, but the idea should work across desktops: use xrandr and lie to X about the physical size of your screen. On my TV I run xrandr first once without arguments to get the actual size, dive the sizes by two and run xrandr like so: xrandr --fbmm 443x247. This is a 32 16:9 TV. Stick this last bit somewhere early in your login-sequence. Works beautifylly.
Re: [gentoo-user] backup to a cold-swap drive
Hi thanks, On Wed, 2010-04-28 at 17:31 +0200, Florian Philipp wrote: Can md use one internal and one external disk in a RAID 1 setup, with the external disk not always there? Any other suggestions? thanks :) md would be extremely slow because it has to rebuild/resync the complete array. so every time you unplug and re-plug the external disk, it will essentially re-copy everything? Damn, there goes that fine idea! If you can live with just one big partition as a backup (probably with separate /boot), you should replace fstab and grub.conf on the backup medium and blacklist them from the files which you want to back up. why wouldn't I backup fstab and grub.conf as well? If my internal disk dies, I assume I'll swap them over, meaning grub and fstab will have to be the same. Concerning the backup tool, I would use `rsync --delete` plus all relevant switches for permissions, times, acls, etc. If you use another tool, just make sure it doesn't put some metadata onto the backup medium and that it can delete files which no longer exist on the original medium. I was thinking of rsync, but I didn't want to do it in an hourly cron fashion, I was hoping for some gamin alteration-triggered idea. With regard to your requirement to just 'pull the cord' without umounting it: I wasn't thinking of pulling the chord without unmounting, I was thinking of the machine dying, hence leaving the disk in a non-shutdown state. thanks for the tips :) rsync will at least get me going quickly. Yesterday I tried iotop to with dd - some slowness but otherwise quite nice. -- Iain Buchanan iaindb at netspace dot net dot au Real computer scientists don't comment their code. The identifiers are so long they can't afford the disk space.
Re: [gentoo-user] backup to a cold-swap drive
Hi, On Wed, 2010-04-28 at 23:16 +0200, Frank Steinmetzger wrote: After I upgraded my laptop with an internal HDD of 500 GB, I started using my old external 500 GB drive as backup. Though of different dimensions and makers, they both have the same number of sectors. So I dd'ed the entire disk first, which gave me an exact mirror of the internal disk. I though this would be faster, because I have lots of small files in some places. I tried that, but after dd finished, I was left with strange partitions and id's that I couldn't mount. The two disks are both 160Gb with the same sector size... It might be easier to do the fdisk-ing by hand. thanks, -- Iain Buchanan iaindb at netspace dot net dot au Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves. -- William Pitt, 1783
Re: [gentoo-user] backup to a cold-swap drive
On Wed, 2010-04-28 at 23:16 +0200, Frank Steinmetzger wrote: rsync -aX --delete / /dev/backup root partition/ -a (archive) copies permissions, ownerships and the likes -X stops at file system boundaries, i.e. it will only backup the actual root partition, without other mounted file systems such as /proc, /dev and /home. actually, lower case x is --one-file-system or don't cross filesystem boundaries. Upper case X is --xattrs or preserve extended attributes :) -- Iain Buchanan iaindb at netspace dot net dot au When you don't know what to do, walk fast and look worried.