Re[4]: [gentoo-user] frambuffer Dell Vostro 1400

2009-03-31 Thread Sergey A. Kobzar
Monday, March 30, 2009, 8:59:58 PM, Alejandro wrote:


 I have a similar laptop, with the same intel chip and intelfb also
 didn't work. while vesafb works good.

 Cheers!


 Vesafb works fine for me too.


 In native 1280x800 resolution?


 I can't remeber but maybe is 1024x768

I've enabled vesafb and set same settings as Gentoo LiveCD:

# cat /boot/grub/grub.conf
default 0
timeout 5

title Gentoo Linux 2.6.27-r8-b0
root (hd0,0)
kernel /boot/kernel-2.6.27-gentoo-r8-b0 root=/dev/sda3 vga=791


# cat /usr/src/linux/.config | grep FB | grep -v '^#'
CONFIG_FB=y
CONFIG_FB_CFB_FILLRECT=y
CONFIG_FB_CFB_COPYAREA=y
CONFIG_FB_CFB_IMAGEBLIT=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_VESA=y


# dmesg | grep vesafb
vesafb: framebuffer at 0xe000, mapped to 0xf8a8, using 3072k, total 
7616k
vesafb: mode is 1024x768x16, linelength=2048, pages=3
vesafb: scrolling: redraw
vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0


But when system boots I see blank screen.

Any ideas?

# uname -rsm
Linux 2.6.27-gentoo-r8 i686


Thanks.

-- 
Sergey




[gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning)

2009-03-31 Thread Stroller

Hi there,

Nmap 4.85BETA5 can scan for Windows PC infected with Conficker, which  
goes live tomorrow.


Does anyone have an ebuild for Nmap 4.85BETA5, please?

I tried copying nmap-4.76.ebuild (the latest in the Portage tree) to / 
usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and added  
the MY_P=${P/_beta/BETA} line from http://bugs.gentoo.org/attachment.cgi?id=8748action=view 
 but I still get File nmap-4.85_beta5.tar.bz2 doesn't exist when I  
try to create a manifest. I also tried using MY_P=${P/_beta/BETA/}  
in case it needed that extra slash, but no joy.


I'd spend longer reading the manpage for ebuild, but have to rush out  
shortly. So I'm posting in the hope that someone will see quickly what  
I'm doing wrong. My apologies for troubling you.


Stroller.




Re[5]: [gentoo-user] frambuffer Dell Vostro 1400

2009-03-31 Thread Sergey A. Kobzar
Tuesday, March 31, 2009, 11:07:55 AM, Sergey wrote:

 Monday, March 30, 2009, 8:59:58 PM, Alejandro wrote:


 I have a similar laptop, with the same intel chip and intelfb also
 didn't work. while vesafb works good.

 Cheers!


 Vesafb works fine for me too.


 In native 1280x800 resolution?


 I can't remeber but maybe is 1024x768

 I've enabled vesafb and set same settings as Gentoo LiveCD:

 # cat /boot/grub/grub.conf
 default 0
 timeout 5

 title Gentoo Linux 2.6.27-r8-b0
 root (hd0,0)
 kernel /boot/kernel-2.6.27-gentoo-r8-b0 root=/dev/sda3 vga=791


 # cat /usr/src/linux/.config | grep FB | grep -v '^#'
 CONFIG_FB=y
 CONFIG_FB_CFB_FILLRECT=y
 CONFIG_FB_CFB_COPYAREA=y
 CONFIG_FB_CFB_IMAGEBLIT=y
 CONFIG_FB_MODE_HELPERS=y
 CONFIG_FB_VESA=y


 # dmesg | grep vesafb
 vesafb: framebuffer at 0xe000, mapped to 0xf8a8, using 3072k, total 
 7616k
 vesafb: mode is 1024x768x16, linelength=2048, pages=3
 vesafb: scrolling: redraw
 vesafb: Truecolor: size=0:5:6:5, shift=0:11:5:0


 But when system boots I see blank screen.

 Any ideas?

 # uname -rsm
 Linux 2.6.27-gentoo-r8 i686


Fixed.

I forgot to add CONFIG_FRAMEBUFFER_CONSOLE. After enabling it
everything works fine. Thanks for the help!

-- 
Sergey




Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning)

2009-03-31 Thread Stroller


On 31 Mar 2009, at 09:47, Daniel Pielmeier wrote:


2009/3/31 Stroller strol...@stellar.eclipse.co.uk:

I tried copying nmap-4.76.ebuild (the latest in the Portage tree) to
/usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and  
added the

MY_P=${P/_beta/BETA} line from
http://bugs.gentoo.org/attachment.cgi?id=8748action=view but I  
still get

File nmap-4.85_beta5.tar.bz2 doesn't exist when I try to create a
manifest. I also tried using MY_P=${P/_beta/BETA/} in case it  
needed that

extra slash, but no joy.


This replacement should do normally.

Did you try ebuild nmap-4.85_beta5.ebuild clean before ebuild
nmap-4.85_beta5.ebuild manifest


Nope. :(

Output attached in case I'm missing something really stupid.

Stroller.

~ $ cat /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nmap/nmap-4.76.ebuild,v 1.9 2009
/03/08 10:35:21 cla Exp $

EAPI=2

inherit eutils flag-o-matic

MY_P=${P/_beta/BETA/}
DESCRIPTION=A utility for network exploration or security auditing
HOMEPAGE=http://nmap.org/;
SRC_URI=http://download.insecure.org/nmap/dist/${P}.tar.bz2;

LICENSE=GPL-2
SLOT=0
KEYWORDS=alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd
IUSE=gtk lua ssl

DEPEND=dev-libs/libpcre
net-libs/libpcap
gtk? ( =x11-libs/gtk+-2.6
   =dev-python/pygtk-2.6
   || ( =dev-lang/python-2.5[sqlite]
=dev-python/pysqlite-2 )
 )
ssl? ( dev-libs/openssl )

src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${PN}-4.75-include.patch
epatch ${FILESDIR}/${PN}-4.75-nolua.patch
}

src_configure() {
local myconf=

if use lua ; then
if has_version =dev-lang/lua-5.1.3-r1 
   built_with_use dev-lang/lua deprecated ; then
myconf=--with-liblua
else
myconf=--with-liblua=included
fi
else
myconf=--without-liblua
fi

econf \
--with-libdnet=included \
${myconf} \
$(use_with gtk zenmap) \
$(use_with ssl openssl) || die
}

src_install() {
LC_ALL=C emake DESTDIR=${D} -j1 nmapdatadir=/usr/share/nmap install ||
 die
dodoc CHANGELOG HACKING docs/README docs/*.txt || die

use gtk  doicon ${FILESDIR}/nmap-logo-64.png
}
~ $ sudo ebuild /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild 
clean
Appending /usr/local/portage to PORTDIR_OVERLAY...
 * Manifest not found for '/usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.
ebuild'
902 ~ $ sudo ebuild /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild 
manifest
Appending /usr/local/portage to PORTDIR_OVERLAY...
 Downloading 'http://distfiles.gentoo.org/distfiles/nmap-4.85_beta5.tar.bz2'
--10:27:29--  http://distfiles.gentoo.org/distfiles/nmap-4.85_beta5.tar.bz2
   = `/usr/portage/distfiles/nmap-4.85_beta5.tar.bz2'
Resolving distfiles.gentoo.org... 64.50.236.52, 216.165.129.135, 156.56.247.195,
 ...
Connecting to distfiles.gentoo.org|64.50.236.52|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:27:30 ERROR 404: Not Found.

 Downloading 'http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfi
les/nmap-4.85_beta5.tar.bz2'
--10:27:30--  http://distro.ibiblio.org/pub/linux/distributions/gentoo/distfiles
/nmap-4.85_beta5.tar.bz2
   = `/usr/portage/distfiles/nmap-4.85_beta5.tar.bz2'
Resolving distro.ibiblio.org... 152.46.7.109
Connecting to distro.ibiblio.org|152.46.7.109|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:27:30 ERROR 404: Not Found.

 Downloading 'http://download.insecure.org/nmap/dist/nmap-4.85_beta5.tar.bz2'
--10:27:30--  http://download.insecure.org/nmap/dist/nmap-4.85_beta5.tar.bz2
   = `/usr/portage/distfiles/nmap-4.85_beta5.tar.bz2'
Resolving download.insecure.org... 75.119.212.99
Connecting to download.insecure.org|75.119.212.99|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://nmap.org/dist/nmap-4.85_beta5.tar.bz2 [following]
--10:27:30--  http://nmap.org/dist/nmap-4.85_beta5.tar.bz2
   = `/usr/portage/distfiles/nmap-4.85_beta5.tar.bz2'
Resolving nmap.org... 64.13.134.48
Connecting to nmap.org|64.13.134.48|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
10:27:31 ERROR 404: Not Found.

!!! Couldn't download 'nmap-4.85_beta5.tar.bz2'. Aborting.
!!! File nmap-4.85_beta5.tar.bz2 doesn't exist, can't update Manifest
$




Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning)

2009-03-31 Thread Alan McKinnon
On Tuesday 31 March 2009 11:33:12 Stroller wrote:
 On 31 Mar 2009, at 09:47, Daniel Pielmeier wrote:
  2009/3/31 Stroller strol...@stellar.eclipse.co.uk:
  I tried copying nmap-4.76.ebuild (the latest in the Portage tree) to
  /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and
  added the
  MY_P=${P/_beta/BETA} line from
  http://bugs.gentoo.org/attachment.cgi?id=8748action=view but I
  still get
  File nmap-4.85_beta5.tar.bz2 doesn't exist when I try to create a
  manifest. I also tried using MY_P=${P/_beta/BETA/} in case it
  needed that
  extra slash, but no joy.
 
  This replacement should do normally.
 
  Did you try ebuild nmap-4.85_beta5.ebuild clean before ebuild
  nmap-4.85_beta5.ebuild manifest

 Nope. :(

 Output attached in case I'm missing something really stupid.

 Stroller.

In your SRC_URI you are using ${P} and not ${MY_P} like you obviously 
intended.


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning)

2009-03-31 Thread Xav'
On Tue, 31 Mar 2009 10:33:12 +0100, Stroller
strol...@stellar.eclipse.co.uk wrote:
 On 31 Mar 2009, at 09:47, Daniel Pielmeier wrote:
 
 2009/3/31 Stroller strol...@stellar.eclipse.co.uk:
 I tried copying nmap-4.76.ebuild (the latest in the Portage tree) to
 /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and  
 added the
 MY_P=${P/_beta/BETA} line from
 http://bugs.gentoo.org/attachment.cgi?id=8748action=view but I  
 still get
 File nmap-4.85_beta5.tar.bz2 doesn't exist when I try to create a
 manifest. I also tried using MY_P=${P/_beta/BETA/} in case it  
 needed that
 extra slash, but no joy.

 This replacement should do normally.

 Did you try ebuild nmap-4.85_beta5.ebuild clean before ebuild
 nmap-4.85_beta5.ebuild manifest
 
 Nope. :(
 
 Output attached in case I'm missing something really stupid.

It seems you forget to correct SRC_URI with ${MY_P} instead of ${P}.

 Stroller.



Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning)

2009-03-31 Thread Daniel Pielmeier
2009/3/31 Stroller strol...@stellar.eclipse.co.uk:
 I tried copying nmap-4.76.ebuild (the latest in the Portage tree) to
 /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and added the
 MY_P=${P/_beta/BETA} line from
 http://bugs.gentoo.org/attachment.cgi?id=8748action=view but I still get
 File nmap-4.85_beta5.tar.bz2 doesn't exist when I try to create a
 manifest. I also tried using MY_P=${P/_beta/BETA/} in case it needed that
 extra slash, but no joy.

This replacement should do normally.

Did you try ebuild nmap-4.85_beta5.ebuild clean before ebuild
nmap-4.85_beta5.ebuild manifest

-- 
Regards,
Daniel



Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning)

2009-03-31 Thread Daniel Pielmeier
2009/3/31 Stroller strol...@stellar.eclipse.co.uk:

 On 31 Mar 2009, at 09:47, Daniel Pielmeier wrote:

 2009/3/31 Stroller strol...@stellar.eclipse.co.uk:

 I tried copying nmap-4.76.ebuild (the latest in the Portage tree) to
 /usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and added the
 MY_P=${P/_beta/BETA} line from
 http://bugs.gentoo.org/attachment.cgi?id=8748action=view but I still get
 File nmap-4.85_beta5.tar.bz2 doesn't exist when I try to create a
 manifest. I also tried using MY_P=${P/_beta/BETA/} in case it needed
 that
 extra slash, but no joy.

 This replacement should do normally.

 Did you try ebuild nmap-4.85_beta5.ebuild clean before ebuild
 nmap-4.85_beta5.ebuild manifest

 Nope. :(

 Output attached in case I'm missing something really stupid.

 Stroller.


Yes you need to adapt SRC_URI and you probably also need to set S to
the correct location.

MY_P=${P/_beta/BETA}
SRC_URI=http://www.insecure.org/nmap/dist/${MY_P}.tar.bz2;
S=${WORKDIR}/${MY_P}

-- 
Regards,
Daniel



Re: [gentoo-user] Upgrading GCC (just to be sure)...

2009-03-31 Thread Maximilian Bräutigam
Hi all,

it was said before:
 You don't need to follow this guide. Just emerge and you'll be fine.

I would expect, that this is not the whole purpose. For example if I use
eix gcc, I get two installed versions: 4.1.2 and 4.3.2-r3

gcc -v returns gcc-Version 4.1.2 (Gentoo 4.1.2 p1.1)
gcc-config -c returns x86_64-pc-linux-gnu-4.1.2

So, obviously I am not using the new GCC compiler and being honest, I
made half a year ago the mistake to deinstall gcc without upgrading. I
configured a hole new system, because nothing worked anymore.
Due to the mentioned problems my question is, do I have to configure
# gcc-config x86_64-pc-linux-gnu-4.3.2
... or ...
# gcc-config x86_64-pc-linux-gnu-4.3.2-r3

kind regards,
der Max
-- 
Maximilian Bräutigam
max-br...@gmx.de
www.chemie.uni-jena.de/jcf





[gentoo-user] [OT] Clock - gnome panel applet, first week day

2009-03-31 Thread Andrew Gaydenko
Hi!

How to set monday instead of sunday?



[gentoo-user] Re: Upgrading GCC (just to be sure)...

2009-03-31 Thread ABCD
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Maximilian Bräutigam wrote:
 Hi all,
 
 it was said before:
 You don't need to follow this guide. Just emerge and you'll be fine.
 
 I would expect, that this is not the whole purpose. For example if I use
 eix gcc, I get two installed versions: 4.1.2 and 4.3.2-r3
 
 gcc -v returns gcc-Version 4.1.2 (Gentoo 4.1.2 p1.1)
 gcc-config -c returns x86_64-pc-linux-gnu-4.1.2
 
 So, obviously I am not using the new GCC compiler and being honest, I
 made half a year ago the mistake to deinstall gcc without upgrading. I
 configured a hole new system, because nothing worked anymore.
 Due to the mentioned problems my question is, do I have to configure
 # gcc-config x86_64-pc-linux-gnu-4.3.2
 ... or ...
 # gcc-config x86_64-pc-linux-gnu-4.3.2-r3
 
 kind regards,
 der Max

IIRC, by default it will start using the new compiler, but the command
is `gcc-config x86_64-pc-linux-gnu-4.3.2` (or even just `gcc-config
4.3.2`); for a list of compiler versions you currently have installed
and can use with gcc-config, see the output of `gcc-config -l`.

- --
ABCD
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknSDSgACgkQOypDUo0oQOqklACgprThXNNyLJRc5NH1nEoDQUQm
0tIAoNh1Dc7PaCzsD3panAfqwy0d3GGx
=1WDl
-END PGP SIGNATURE-




Re: [gentoo-user] Nmap 4.85BETA5 ebuild (Conficker scanning)

2009-03-31 Thread Stroller


On 31 Mar 2009, at 11:50, Daniel Pielmeier wrote:

2009/3/31 Stroller strol...@stellar.eclipse.co.uk:


I tried copying nmap-4.76.ebuild (the latest in the Portage tree)  
to
/usr/local/portage/net-analyzer/nmap/nmap-4.85_beta5.ebuild and  
added the

MY_P=${P/_beta/BETA} line from
http://bugs.gentoo.org/attachment.cgi?id=8748action=view but I  
still get

File nmap-4.85_beta5.tar.bz2 doesn't exist when I try to create a
manifest. I also tried using MY_P=${P/_beta/BETA/} in case it  
needed

that
extra slash, but no joy.


...


Yes you need to adapt SRC_URI and you probably also need to set S to
the correct location.

MY_P=${P/_beta/BETA}
SRC_URI=http://www.insecure.org/nmap/dist/${MY_P}.tar.bz2;
S=${WORKDIR}/${MY_P}


Many thanks!!

And to Xav  Alan, also - they got me started  I was just in the  
middle of writing to whine for more help when I got your answer with  
just the additional info I needed. Working ebuild attached.


I meant to add some additional info in my original posting, as it may  
be useful for someone else to have a scan for this risk.


Nmap mailing list post about this:
http://seclists.org/nmap-dev/2009/q1/0869.html

This command performs the scan:
nmap -PN -T4 -p139,445 -n -v --script=smb-check-vulns --script-args  
safe=1 192.168.0.0/16


(last argument is target subnet - change as required)

You need to have the lua USE flag enabled when you emerge nmap.

Stroller.


nmap-4.85_beta5.ebuild
Description: Binary data




Re: [gentoo-user] Upgrading GCC (just to be sure)...

2009-03-31 Thread KH
Maximilian Bräutigam schrieb:
 Hi all,

 it was said before:
   
 You don't need to follow this guide. Just emerge and you'll be fine.
 

 I would expect, that this is not the whole purpose. For example if I use
 eix gcc, I get two installed versions: 4.1.2 and 4.3.2-r3

 gcc -v returns gcc-Version 4.1.2 (Gentoo 4.1.2 p1.1)
 gcc-config -c returns x86_64-pc-linux-gnu-4.1.2

 So, obviously I am not using the new GCC compiler and being honest, I
 made half a year ago the mistake to deinstall gcc without upgrading. I
 configured a hole new system, because nothing worked anymore.
 Due to the mentioned problems my question is, do I have to configure
 # gcc-config x86_64-pc-linux-gnu-4.3.2
 ... or ...
 # gcc-config x86_64-pc-linux-gnu-4.3.2-r3

 kind regards,
 der Max
   
Hi
I would try to run gcc-config -l and than change acording to the list
you get. Than run -c again.
kh



[gentoo-user] Qt application fonts completely illegible

2009-03-31 Thread Robin Atwood
Recently, with the help of people here, I prevented bitmap fonts from being 
used to render web pages by tweaking /etc/fonts. Suddenly today I noticed 
that pure Qt applications (*not* KDE apps) such as qtconfig have completely 
illegible fonts. These two thing may or may not be related. I also just 
updated the Nvidia drivers. Looking at ~/.qt/qtrc, the font parameter is set 
to DejaVu the same as the KDE settings. Anybody else seen this?

TIA
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--











Re: [gentoo-user] Re: full shutdown

2009-03-31 Thread Simon
I know, -P for powerdown after halt.  but it doesnt change anything on
both PC that have this issue and seems to have no effect on the one
that works fine with just -h

(Besides, with the number of people using linux, how many would want
to shutdown -h without powering down?)

On Sat, Mar 28, 2009 at 9:42 PM, ABCD en.a...@gmail.com wrote:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Simon wrote:
 Hi there,
   this must be simple (it always is) but I can't figure out by myself.
  I have one of the first eeepc (4gb) and when issuing `shutdown -h
 now` the computer shutdown perfectly but forgets to cut the current.
 I have to press the power button 4 sec to cut it manually.

   I'm recompiling the kernel almost as often as I breathe and i wonder
 if I'm not missing some steps (during or after)...  I have acpi
 installed and init.d/acpi is started.  acpi support was compiled in
 kernel and i tried with and without the CONFIG_ACPI_ASUS with no
 difference.  I'm using kernel 2.6.24 (for several drivers that are
 most compatible with this one).  I have almost the same install on 2
 different PCs (with obvious tweakings in kernel options and /etc) and
 the most recent one shuts down correctly, the older one does the same
 thing as my eeepc...

   When recompiling the kernel, I do: make  make modules_install;
 then I recompile the drivers i have and install them, is there
 anything else i should recompile, like should i re-emerge acpi?

   Also, I dont think it's related but, when doing 'startx', after,
 when shutting down, the console screen doesnt update and is stuck on
 the x11 and fvwm2 messages... it doesnt show the progress, any ideas?
 (this is secondary though)

 Thanks in advance guys!
   Simon


 This probably isn't the problem, but try doing `shutdown -hP now`, and
 see if that works - if it does, then there probably is a configuration
 issue somewhere (but I'm not sure where that would be...).

 - --
 ABCD
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.11 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iEYEARECAAYFAknO0iEACgkQOypDUo0oQOpgtwCgsSQMLhxzqtJ3fc7Ot5fUznja
 CLgAn2y0fPM8YvSzcPSq4+kxdGUXfdJM
 =c5U0
 -END PGP SIGNATURE-






-- 
When Earth was the only inhabited planet in the Galaxy, it was a
primitive place, militarily speaking.  The only weapon they had ever
invented worth mentioning was a crude and inefficient nuclear-reaction
bomb for which they had not even developed the logical defense. -
Asimov



Re: [gentoo-user] full shutdown

2009-03-31 Thread Simon
OK, i'll check this out tonight (if i have enough time, and if i can remember!)

Thanks!

On Sat, Mar 28, 2009 at 11:39 PM, Mike Kazantsev
mike_kazant...@fraggod.net wrote:
 On Sat, 28 Mar 2009 17:24:39 -0400
 Simon turne...@gmail.com wrote:

   I'm recompiling the kernel almost as often as I breathe and i wonder
 if I'm not missing some steps (during or after)...  I have acpi
 installed and init.d/acpi is started.  acpi support was compiled in
 kernel and i tried with and without the CONFIG_ACPI_ASUS with no
 difference.  I'm using kernel 2.6.24 (for several drivers that are
 most compatible with this one).  I have almost the same install on 2
 different PCs (with obvious tweakings in kernel options and /etc) and
 the most recent one shuts down correctly, the older one does the same
 thing as my eeepc...

 Make sure you have these:

 PM and ACPI --
  [X] PM support
  [X] ACPI support --
    [X] Button

 Even VMs won't cut the (virtual) power w/o these options.

 --
 Mike Kazantsev // fraggod.net




-- 
When Earth was the only inhabited planet in the Galaxy, it was a
primitive place, militarily speaking.  The only weapon they had ever
invented worth mentioning was a crude and inefficient nuclear-reaction
bomb for which they had not even developed the logical defense. -
Asimov



Re: [gentoo-user] Upgrading GCC (just to be sure)...

2009-03-31 Thread Jarry

Maximilian Bräutigam wrote:

Due to the mentioned problems my question is, do I have to configure
# gcc-config x86_64-pc-linux-gnu-4.3.2
... or ...
# gcc-config x86_64-pc-linux-gnu-4.3.2-r3


At the end of GCC upgrade, I got these messages:
__
* The current gcc config appears valid, so it will not be
* automatically switched for you. If you would like to
* switch to the newly installed gcc version, do the following

* gcc-config x86_64-pc-linux-gnu-4.3.2
* source /etc/profile

* No profile selected, unable to utilize --use-old

* If you have issues with packages unable to locate libstdc++.la,
* then try running 'fix_libtool_files.sh' on the old gcc versions.

 Recording sys-devel/gcc in world favorites file...

* Messages for package sys-devel/gcc-4.3.2-r3:
* If you have issues with packages unable to locate libstdc++.la,
* then try running 'fix_libtool_files.sh' on the old gcc versions.
 Auto-cleaning packages...
 No outdated packages were found on your system.

 * GNU info directory index is up-to-date.



So I just followed it, and everything went smooth so far...

Jarry


--
___
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.



Re: [gentoo-user] full shutdown

2009-03-31 Thread Simon
Interesting, I do use that module for sound...
I'll try to rmmod it before shutting down...

But my older pc (not eeepc) which has the same issue uses another
driver... so maybe the problem is both with kernel options and with
this driver on the eeepc...  ill give it a try!

Thanks a lot!

On Mon, Mar 30, 2009 at 3:15 AM, Steffen Loos fe...@gmx.net wrote:

 Simon schrieb:
 Hi there,
   this must be simple (it always is) but I can't figure out by myself.
  I have one of the first eeepc (4gb) and when issuing `shutdown -h
 now` the computer shutdown perfectly but forgets to cut the current.
 I have to press the power button 4 sec to cut it manually.
 On some systems (ubuntu, if i remember right) there was/is(?) an issue with 
 the sound driver: please try do onload before you shutdown.

 / modprobe -v snd-hda-intel


 Steffen








-- 
When Earth was the only inhabited planet in the Galaxy, it was a
primitive place, militarily speaking.  The only weapon they had ever
invented worth mentioning was a crude and inefficient nuclear-reaction
bomb for which they had not even developed the logical defense. -
Asimov



[gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread laurent

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you won't 
be able to log on to any of the services because authentication hasn't 
been configured yet, but it is wise to check if the connections 
themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?

Thanks
Laurent



Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread Xav'
On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
 Hi,
 
 I'm following this how to:
 http://www.gentoo.org/doc/en/virt-mail-howto.xml
 
 after configuring courier-imap they say:
 Start up your favorite mail client and verify that all connections 
 you've started work for receiving and sending mail. Of course, you won't 
 be able to log on to any of the services because authentication hasn't 
 been configured yet, but it is wise to check if the connections 
 themselves work or not.
 
 I'm using mutt, saying there's no mailbox. Creating mailbox is done 
 later in the how to.
 What do they mean, how can I test if smtpd and pop3d work fine ?

They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier

 Thanks
 Laurent



Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread laurent

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
  

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you won't 
be able to log on to any of the services because authentication hasn't 
been configured yet, but it is wise to check if the connections 
themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier

  

Thanks
Laurent





  


ks359684 ~ # telnet host.domain.com 25
Trying xxx.xxx.xxx.xxx...
Connected to host.domain.com.
Escape character is '^]'.
Connection closed by foreign host.

Does it means it's fine ?? :)

L




Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread laurent

laurent a écrit :

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you 
won't be able to log on to any of the services because 
authentication hasn't been configured yet, but it is wise to check 
if the connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier

 

Thanks
Laurent





  


ks359684 ~ # telnet host.domain.com 25
Trying xxx.xxx.xxx.xxx...
Connected to host.domain.com.
Escape character is '^]'.
Connection closed by foreign host.

Does it means it's fine ?? :)

L




ok it's seems to be ok, pop3 connect and keep it. The ssl have no auth yet.
Thank you
Laurent





Re: [gentoo-user] Broken binary and revdep-rebuild doesn't find it.

2009-03-31 Thread Dan Wallis
On 09/03/2009, Nikos Chantziaras rea...@arcor.de wrote:
 rea...@gentoo ~ $ ldd /usr/lib64/NX/bin/* | grep not found
  libXcomp.so.3 = not found
  libXcompext.so.3 = not found
  libXcompshad.so.3 = not found
  libXcomp.so.3 = not found

 So today's update of glibc seems to have broken those binaries.
 However, running revdep-rebuilt doesn't find the breakage:

 * Dynamic linking on your system is consistent... All done.

Which package owns those files?
Run equery belongs $file on each of them to find out. If you don't
have equery, install sys-app/gentoolkit.
If the broken files don't belong to any particular package(s), then
how did they get there to start with?

You might also like to try emerge --depclean; I recommend running
that with --pretend first though, and checking the list.

I hope that helps (and that it's not too late). :)



Re: [gentoo-user] Broken binary and revdep-rebuild doesn't find it.

2009-03-31 Thread Paul Hartman
On Mon, Mar 9, 2009 at 2:28 PM, Nikos Chantziaras rea...@arcor.de wrote:
 ldd /usr/lib64/NX/bin/* | grep not found

NX uses its own X libs (because NX is really an implementation of X
protocol). Check in your NX/lib/ directory and you should find your
files.



Re: [gentoo-user] kacpid eating alot of cpu

2009-03-31 Thread Johan Blåbäck

Michael Higgins wrote:

On Mon, 30 Mar 2009 10:57:11 +0200
Johan Blåbäck johan.bluecr...@gmail.com wrote:


Is acpi suppose to act like this?


No. But you probably really knew that. ;-)


Can I fix it?


I had to update to latest kernels, as bug patch for kacpid hogging CPU with 
certain laptops and certain configurations is in 2.6.28, finally. (Happens 
consistently when returning from sleep or when switching out the extra battery 
for the DVD. I think Dell and some HP machines are/were affected.)

IDK if this will help *you*, but if it smells similar... might be worth 
checking into.

Cheers,




I tried a newer kernel (gentoo-sources-2.6.28-r4), but its still there. 
kacpid eats ~4% of the cpu as soon as I have booted.


Since you say that the similar problem are model-dependent, I might have 
the solution. I've got a Zepto and on this one nothing works, they 
didn't give me a tv-card, the wrong DVD, touchpad doesn't work, etc. 
etc.. So if this is a design problem, I'm not suprised.


Thanks for the help so far anyway. Anyone with some other idea?

--
For security reasons, all text in this mail is double-rot13 encrypted.



[gentoo-user] Same version in portage and overlay, how to mask?

2009-03-31 Thread Alan McKinnon
If I have identically named packages with the *same* version number in the 
portage tree and in an overlay, how do I mask the overlay version without 
deleting the overlay?

I have kde-testing enabled to get koffice:2, but some packages conflict with 
portage, like kscreensaver:

[I] kde-base/kscreensaver
 Available versions:
(3.5)   3.5.9 (~)3.5.10
(4.2)   (~)4.2.1 (~)4.2.1[1] [M](~)4.2.2[1]

This one isn't too bad, but recently kdelibs did this and mixing overlay with 
KDE is never a good idea. I can fiddle with PORTDIR_OVERLAY and 
local/layman/make.conf but layman tends to undo my changes.

So how can I mask just a specific ebuild from a specific overlay?

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Same version in portage and overlay, how to mask?

2009-03-31 Thread Daniel Pielmeier
Alan McKinnon schrieb am 31.03.2009 21:37:
 If I have identically named packages with the *same* version number in the 
 portage tree and in an overlay, how do I mask the overlay version without 
 deleting the overlay?
 
 I have kde-testing enabled to get koffice:2, but some packages conflict with 
 portage, like kscreensaver:
 
 [I] kde-base/kscreensaver
  Available versions:
 (3.5)   3.5.9 (~)3.5.10
 (4.2)   (~)4.2.1 (~)4.2.1[1] [M](~)4.2.2[1]
 
 This one isn't too bad, but recently kdelibs did this and mixing overlay with 
 KDE is never a good idea. I can fiddle with PORTDIR_OVERLAY and 
 local/layman/make.conf but layman tends to undo my changes.
 
 So how can I mask just a specific ebuild from a specific overlay?
 

This is not possible with current portage. I think with paludis you can
mask packages based on repositories, don't know about pkgcore though.

You should be able to work around this by doing something like this in
/etc/make.conf

PORTDIR=/your/port/dir
PORTDIR_OVERLAY=/your/overlays $PORTDIR

This way portage prefers the the packages from the portage tree over
packages with equal versions in overlays.

-- 
Daniel Pielmeier



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread laurent

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
  

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you won't 
be able to log on to any of the services because authentication hasn't 
been configured yet, but it is wise to check if the connections 
themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

:s
  

Thanks
Laurent





Re: [gentoo-user] Postfix, courier-imap: checks if working

2009-03-31 Thread Xav'

laurent a écrit :

Xav' a écrit :

On Tue, 31 Mar 2009 18:15:33 +0200, laurent laur...@logiquefloue.org
wrote:
 

Hi,

I'm following this how to:
http://www.gentoo.org/doc/en/virt-mail-howto.xml

after configuring courier-imap they say:
Start up your favorite mail client and verify that all connections 
you've started work for receiving and sending mail. Of course, you 
won't be able to log on to any of the services because authentication 
hasn't been configured yet, but it is wise to check if the 
connections themselves work or not.


I'm using mutt, saying there's no mailbox. Creating mailbox is done 
later in the how to.

What do they mean, how can I test if smtpd and pop3d work fine ?



They mean that you have to check with your client that
pop3/pop3s/smtp/imap/imaps connection are established with success.
You can do this with either telnet or netcat for pop3/smtp/imap protocol
and see if the server answer to the connection and with openssl s_client
for pop3s/imaps connection.

HTH.
Xavier
  


hm actually I should get something like that:

# telnet localhost 25

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 mail.domain.com ESMTP Postfix
EHLO domain.com
250-mail.domain.com
250-PIPELINING
250-SIZE 1024
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN
250-AUTH=LOGIN PLAIN
250-XVERP
250 8BITMIME
^]
telnet quit

but I get this:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.


Maybe you could check in or post your postfix logs (/var/log/mail.* or 
/var/log/messages), or adding -d argument to smtpd command in 
/etc/postfix/master.cf, reload postfix with postfix reload, retry telnet 
and check (or post) the logs again.



:s
 

Thanks
Laurent








[gentoo-user] Accidentally issued hdparm -X /dev/hda on running system

2009-03-31 Thread Jorge Peixoto de Morais Neto
Hi. I wanted to know how was my HD set, and I was issuing
information-querying commands like hdparm /dev/hda,
hdparm -i /dev/hda when I accidentally issued hdparm -X /dev/hda (idiot me).
The hdparm man page does not tell what happens when the -X option is used
without an argument.
I suspect it is equal to using an argument of 0; the man page says
Setting 00 restores the drive´s default PIO mode, and 01 disables IORDY

The output of the hdparm -X /dev/hda command mentioned something
about IORDY.
I then issued hdparm -i /dev/hda and the output said the drive was still
in UDMA5. Good sign! Maybe the command did nothing. To be sure,
I issued hdparm -X 69 /dev/hda (to set the mode to UDMA5),
and issued another hdparm -i /dev/hda (the output seemed identical).
I checked dmesg, and I saw at the end one message saying that the mode
had been set to UDMA-100 (which is UDMA5 I believe). This is good:
this message was probably generated by the hdparm -X 69 /dev/hda
command, so the earlier hdparm -X /dev/hda command
must have generated no messages, which suggests it did nothing.

I then shut the computer down and I writing this from a liveCD.
I do not even want to access the disk read only without knowing I have
not messed up.

So: does anybody know if hdparm -X /dev/hda is safe (on a running system...)?

Thank you

-- 
Software is like sex: it is better when it is free - Linus Torvalds



Re: [gentoo-user] Same version in portage and overlay, how to mask?

2009-03-31 Thread Alan McKinnon
On Tuesday 31 March 2009 21:57:02 Daniel Pielmeier wrote:

  So how can I mask just a specific ebuild from a specific overlay?

 This is not possible with current portage. I think with paludis you can
 mask packages based on repositories, don't know about pkgcore though.

That's what I thought

 You should be able to work around this by doing something like this in
 /etc/make.conf

 PORTDIR=/your/port/dir
 PORTDIR_OVERLAY=/your/overlays $PORTDIR

 This way portage prefers the the packages from the portage tree over
 packages with equal versions in overlays.

Yes, that works. Thanks for the pointer.

It had never occurred to me to include PORTDIR in PORTDIR_OVERLAY :-)

-- 
alan dot mckinnon at gmail dot com



[gentoo-user] [OT] Tellico: custom fields

2009-03-31 Thread darren kirby
Hi all,

I have been using Tellico here for the last several years to catalogue my 
books, DVDs and CDs/LPs. Now: by default Tellico includes a field 
called Amazon.com Link where it links the item to it's page on Amazon.com 
if it exists; the link text says Buy from Amazon.com

Now: As these are all items I own, I find little reason to have a link to 
purchase such items from Amazon. You are able to edit the names and type of 
each field, and I have done so, changing 'Amazon' to 'wikipedia' so I can 
have a link to the items wikipedia page which I find much more useful.

However, even after affecting this change, the field name correctly 
says 'Wikipedia Link however the link text still says Buy from Amazon.com. 
I have scoured the settings but cannot find a way to change this default link 
text.

Does someone know how?

Thanks for consideration,
-d
-- 
darren kirby :: Part of the problem since 1976 :: http://badcomputer.org
...the number of UNIX installations has grown to 10, with more expected...
- Dennis Ritchie and Ken Thompson, June 1972



[gentoo-user] Re: Broken binary and revdep-rebuild doesn't find it.

2009-03-31 Thread Nikos Chantziaras

Dan Wallis wrote:

On 09/03/2009, Nikos Chantziaras rea...@arcor.de wrote:

rea...@gentoo ~ $ ldd /usr/lib64/NX/bin/* | grep not found
 libXcomp.so.3 = not found
 libXcompext.so.3 = not found
 libXcompshad.so.3 = not found
 libXcomp.so.3 = not found

So today's update of glibc seems to have broken those binaries.
However, running revdep-rebuilt doesn't find the breakage:

* Dynamic linking on your system is consistent... All done.


Which package owns those files?
Run equery belongs $file on each of them to find out.


All of them belong to net-misc/nx-3.3.0-r1.



You might also like to try emerge --depclean; I recommend running
that with --pretend first though, and checking the list.


I keep my world file clean and do a depclean on a regular basis.



I hope that helps (and that it's not too late). :)


The package works (it's a dependency of the x2go client).  But the ldd 
(and prelink) errors are still there.





[gentoo-user] umask 002 in /etc/profile

2009-03-31 Thread Mark David Dumlao
You know, I was thinking a bit,

What with usergroups being the default behavior, do you think it's
quite reasonable to use 002 as a default umask? Most group-sharing
use-cases I've encountered have people that are sharing groups share
files as read-write anyways, and by default, users have their own
private group which nobody else is a member of; i.e. g+rw still won't
allow others to write them.



[gentoo-user] {OT} Printing text with lpr

2009-03-31 Thread Grant
I have a Brother QL-570 label printer printing on 29x90mm labels.  My
goal is to have 6 characters printed across the center of the label.
It prints like this:

$ echo 123456 | lpr

but the text is in the upper corner of the label, it has the wrong
orientation, and the font is too small.

It also prints like this:

$ lpr test.png

but the text doesn't come out very crisp, and I'd rather not create a
file with imagemagick for each label to print.  Is there another way
to print large, properly oriented text on the fly?

- Grant



Re: [gentoo-user] {OT} Printing text with lpr

2009-03-31 Thread Joseph

On 03/31/09 19:40, Grant wrote:

I have a Brother QL-570 label printer printing on 29x90mm labels.  My
goal is to have 6 characters printed across the center of the label.
It prints like this:

$ echo 123456 | lpr

but the text is in the upper corner of the label, it has the wrong
orientation, and the font is too small.

It also prints like this:

$ lpr test.png

but the text doesn't come out very crisp, and I'd rather not create a
file with imagemagick for each label to print.  Is there another way
to print large, properly oriented text on the fly?

- Grant


It is not very well supported under Linux:
http://openprinting.org/show_printer.cgi?recnum=Brother-QL-570

--
Joseph



[gentoo-user] Re: Accidentally issued hdparm -X /dev/hda on running system

2009-03-31 Thread Nikos Chantziaras

Jorge Peixoto de Morais Neto wrote:


I then shut the computer down and I writing this from a liveCD.
I do not even want to access the disk read only without knowing I have
not messed up.

So: does anybody know if hdparm -X /dev/hda is safe (on a running system...)?


This setting, like most other hdparm commands, is just temporary. As 
soon as you reset the drive (happens during a reboot) all goes back to 
the defaults.





Re: [gentoo-user] umask 002 in /etc/profile

2009-03-31 Thread Steven Lembark



What with usergroups being the default behavior, do you think it's
quite reasonable to use 002 as a default umask? Most group-sharing
use-cases I've encountered have people that are sharing groups share
files as read-write anyways, and by default, users have their own
private group which nobody else is a member of; i.e. g+rw still won't
allow others to write them.


That was the idea, RH did it that way a dozen
years ago for exactly the reason you mention:
dir mods of 02770 make it easy to share files
but require 002 umask. Fix was to set the
per-user group, allowing private dir's (largely
$HOME) to have tighter mods with files below
them group readable by a single-user group.

The scheme works rather nicely in nearly
every situation (POSIX ACL's play hell with
the scheme, but, then, they are supposed to).

enjoi

--
Steven Lembark85-09 90th St.
Workhorse Computing Woodhaven, NY, 11421
lemb...@wrkhors.com  +1 888 359 3508



Re: [gentoo-user] A blog entry about gentoo

2009-03-31 Thread Joshua Schmidlkofer

On 3/25/09 4:43 AM, Alan McKinnon wrote:

On Wednesday 25 March 2009 12:38:53 David wrote:
   

I wrote an entry in my blog about gentoo, and created a little script to
make gentoo handling a bit easier, and whant to share it will all gentoo
users to see if it could help them to understand gentoo better (specially
for noob ones), and simplify its handling.

I think it is not spam, since it could help others (I hope so).

The link: http://stormbyte.blogspot.com/2009/03/gentoo-easy-handling.html

David.
 


It's far too simplistic. It doesn't take account of dependencies that must
also be masked/unmasked/whatever and will cause obscure error messages that
will confuse the user more than simply using portage.

   


HAHAHA!  Yeah, that's why I wrote the poorly received bastard

Good luck with it.  I think it kicks ass, and totally ignores 
everything.  I use this everywhere.


e.g.

 bastard =gnome-2.18*
 bastard =nginx-0.7*
 bastard =postgresql-server-8.3*

Unmasking-the-new-Gnome/KDE-ly Yours,
  Joshua
#!/bin/bash

echo Bastard.sh - mass unmasker.
echo Note to self: unmasking packages is fun and exciting, but may be 
dangerous.
echo Ensure you have a backup, or a box of tissues.  It's possible to cause 
system b0rkage.
echo For instance: Be very wary of unmasking portage releases.
echo Ctrl-C to abort
sleep 3

if [ ${1} ==  ]; then
echo usage: ${0} package spec
echo  e.g.  ${0} =gnome-base/gnome-2.14*
echo note: please use the version, otherwise it only examines the masked 
revisions
exit
fi

while [ 1 ]; do
FULL=`emerge -pv $*`
PM=`echo ${FULL} | grep '^-.*masked by.*package.mask'|cut -d ' ' -f 2`
PK=`echo ${FULL} | grep '^-.*masked by.*\~.*keyword'|cut -d ' ' -f 2`
RES=$?
if [ ${RES} == 0 ]  [ ${PM} ==  ]  [ ${PK} ==  ]; then
FILE=/tmp/$$.`basename ${0}`.log
echo Full: ${FULL}  ${FILE}
echo See ${FILE} for the final message, however this looks complete.
cat ${FILE} | grep '^\[block'  /dev/null  echo You have blocked 
packages, however once resolved you should be able to merge successfully.
break
fi
for x in ${PM}; do
echo Unmask: ${x}
echo =${x}*  /etc/portage/package.unmask
done
for x in ${PK}; do
echo Keywords: ${x}
echo =${x}* ~x86  /etc/portage/package.keywords
done
done



Re: [gentoo-user] {OT} Printing text with lpr

2009-03-31 Thread Stroller


On 1 Apr 2009, at 04:25, Joseph wrote:

On 03/31/09 19:40, Grant wrote:

I have a Brother QL-570 label printer printing on 29x90mm labels.  My
goal is to have 6 characters printed across the center of the label.
It prints like this:

$ echo 123456 | lpr

but the text is in the upper corner of the label, it has the wrong
orientation, and the font is too small.

It also prints like this:

$ lpr test.png

but the text doesn't come out very crisp, and I'd rather not create a
file with imagemagick for each label to print.  Is there another way
to print large, properly oriented text on the fly?


With some printers it's possible to add control codes to the text  
you're printing to do stuff like this.


EG:
http://www.sturec.com/help/printing/printers.htm
http://printers.necsam.com/public/printers/pclcodes/pcl5hp.htm

But it depends whether your printer driver supports them, and I very  
much doubt any of the above will work for you. In some printers that  
sort of stuff is implemented in hardware (firmware), but yours appears  
to be a winprinter. I would look at the .ppd files first, to try  see  
if the author has implemented anything like this.


I really understand where you're coming from not wanting to mess with  
imagemagick, but at the end of the day *something* has to raster the  
ASCII into little pixels, so it's not really that dirty  shameful if  
you have to write a little wrapper script to do so. On my trusty olde  
HP LaserJet 4000 it may be the onboard hardware PostScript™ which  
converts the text into character shapes, but your little printer  
doesn't have so much processing power, so the computer has to do the  
rendering for it.


Thus a wrapper script that calls imagemagick and converts $1 into an  
image file may merely be considered a userspace driver. If you make  
the image larger, is this reflected on the printer's output, or does  
it perhaps get sharper? Is it possible to change the DPI of  
imagemagick's output? If you run lpr on images of other formats, do  
they print? You may find a different file format might be sharper, or  
you might find that postscript files work (handled by CUP's built-in  
software renderer) and that you can use Ghostscript or something to  
manipulate the output.


I assume you've read all of this guy's pages:
http://etc.nkadesign.com/Printers/QL550LabelPrinterPerl
http://etc.nkadesign.com/Printers/QL550LabelPrinter


It is not very well supported under Linux:
http://openprinting.org/show_printer.cgi?recnum=Brother-QL-570


Have you found these pages useful in the past? My experience is that  
hardly anyone ever bothers to update such pages. :(


I'm not saying it's exactly a wonderprinter, famed in fable  song,  
but the only thing I find helpful on there is the link to a page which  
links to the etc.nkadesign.com pages. From the looks of those one  
should be able be able to do something fairly useful with this  
printer, depending upon one's mad skillz.


Stroller.




[gentoo-user] Nvidia drivers and a Geforce FX-5200 card.

2009-03-31 Thread Dale
Hi folks,

I'm trying to upgrade to the newer kernel, namely
gentoo-sources-2.6.29.  It seems the drivers won't build against that
kernel or the drivers that do build won't let X come up.  How do I find
out what drivers are compatible with what kernels and my old card? 
Currently, I am using nvidia-drivers-173.14.09 with
gentoo-sources-2.6.23-gentoo-r8 which are quite old.  From my google
search it seems that is the last version that works with the old video card.

The drivers I am currently using works fine for me with my old kernel. 
It just doesn't build against the newer kernel or it fails to let the
GUI come up.  Any magic tricks?  Anybody with a 2.6.29 kernel and a
FX-5200 card care to share what version of drivers they are using?  ;-)

I think this is the error log for trying to build the current video
drivers against the newer kernel:

 INFO: setup
 Determining the location of the kernel source code
 Found kernel source directory:
 /usr/src/linux
 Found sources for kernel version:
 2.6.29-gentoo
 Checking for MTRR support ...
 Checking for Paravirtualized guest support ...

 INFO: unpack
 Applying NVIDIA_glx-defines.patch ...
 Applying NVIDIA_glx-glheader.patch ...
 Applying NVIDIA_i2c-hwmon.patch ...
 Converting NVIDIA-Linux-x86-173.14.09-pkg0/usr/src/nv/Makefile.kbuild
 to use M= instead of SUBDIRS= ...

 INFO: compile
 Preparing nvidia module

 ERROR: compile

 ERROR: x11-drivers/nvidia-drivers-173.14.09 failed.
 Call stack:
   ebuild.sh, line   48:  Called src_compile
 environment, line 3695:  Called linux-mod_src_compile
 environment, line 2711:  Called die
 The specific snippet of code:
   eval emake HOSTCC=$(tc-getBUILD_CC)   
  CROSS_COMPILE=${CHOST}-   
  LDFLAGS=$(get_abi_LDFLAGS) ${BUILD_FIXES}
 ${BUILD_PARAMS}   
  ${BUILD_TARGETS}  || die Unable to emake HOSTCC=$(tc-getBUILD_CC)
 CROSS_COMPILE=${CHOST}- LDFLAGS=$(get_abi_LDFLAGS) ${BUILD_FIXES}
 ${BUILD_PARAMS} ${BUILD_TARGETS};
  The die message:
   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc
 CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1
 SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux
 HOST_CC=i686-pc-linux-gnu-gcc clean module

 If you need support, post the topmost build error, and the call stack
 if relevant.
 A complete build log is located at
 '/var/log/portage/elog/x11-drivers:nvidia-drivers-173.14.09:20090331-205939.log'.
 The ebuild environment file is located at
 '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/temp/environment'.



I just want to have my GUI and a newer kernel please.  :-)

Thanks much.

Dale

:-)  :-) 



Re: [gentoo-user] Nvidia drivers and a Geforce FX-5200 card.

2009-03-31 Thread Maximilian Bräutigam
Hi Dale,

currently I am runnning nvidia-drivers-173.14.15 for my FX-5600 and
kernel version x86_64-2.6.27-gentoo-r8.

I don't know, if the driver 173.14.15 works for you, but if it does,
than kernel 2.6.27 might me a solution.

kind regards,
der Max

Am Mittwoch, den 01.04.2009, 00:15 -0500 schrieb Dale:
 Hi folks,
 
 I'm trying to upgrade to the newer kernel, namely
 gentoo-sources-2.6.29.  It seems the drivers won't build against that
 kernel or the drivers that do build won't let X come up.  How do I find
 out what drivers are compatible with what kernels and my old card? 
 Currently, I am using nvidia-drivers-173.14.09 with
 gentoo-sources-2.6.23-gentoo-r8 which are quite old.  From my google
 search it seems that is the last version that works with the old video card.
 
 The drivers I am currently using works fine for me with my old kernel. 
 It just doesn't build against the newer kernel or it fails to let the
 GUI come up.  Any magic tricks?  Anybody with a 2.6.29 kernel and a
 FX-5200 card care to share what version of drivers they are using?  ;-)
 
 I think this is the error log for trying to build the current video
 drivers against the newer kernel:
 
  INFO: setup
  Determining the location of the kernel source code
  Found kernel source directory:
  /usr/src/linux
  Found sources for kernel version:
  2.6.29-gentoo
  Checking for MTRR support ...
  Checking for Paravirtualized guest support ...
 
  INFO: unpack
  Applying NVIDIA_glx-defines.patch ...
  Applying NVIDIA_glx-glheader.patch ...
  Applying NVIDIA_i2c-hwmon.patch ...
  Converting NVIDIA-Linux-x86-173.14.09-pkg0/usr/src/nv/Makefile.kbuild
  to use M= instead of SUBDIRS= ...
 
  INFO: compile
  Preparing nvidia module
 
  ERROR: compile
 
  ERROR: x11-drivers/nvidia-drivers-173.14.09 failed.
  Call stack:
ebuild.sh, line   48:  Called src_compile
  environment, line 3695:  Called linux-mod_src_compile
  environment, line 2711:  Called die
  The specific snippet of code:
eval emake HOSTCC=$(tc-getBUILD_CC)   
   CROSS_COMPILE=${CHOST}-   
   LDFLAGS=$(get_abi_LDFLAGS) ${BUILD_FIXES}
  ${BUILD_PARAMS}   
   ${BUILD_TARGETS}  || die Unable to emake HOSTCC=$(tc-getBUILD_CC)
  CROSS_COMPILE=${CHOST}- LDFLAGS=$(get_abi_LDFLAGS) ${BUILD_FIXES}
  ${BUILD_PARAMS} ${BUILD_TARGETS};
   The die message:
Unable to emake HOSTCC=i686-pc-linux-gnu-gcc
  CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  IGNORE_CC_MISMATCH=yes V=1
  SYSSRC=/usr/src/linux SYSOUT=/usr/src/linux
  HOST_CC=i686-pc-linux-gnu-gcc clean module
 
  If you need support, post the topmost build error, and the call stack
  if relevant.
  A complete build log is located at
  '/var/log/portage/elog/x11-drivers:nvidia-drivers-173.14.09:20090331-205939.log'.
  The ebuild environment file is located at
  '/var/tmp/portage/x11-drivers/nvidia-drivers-173.14.09/temp/environment'.
 
 
 
 I just want to have my GUI and a newer kernel please.  :-)
 
 Thanks much.
 
 Dale
 
 :-)  :-) 
-- 
Maximilian Bräutigam
max-br...@gmx.de
www.chemie.uni-jena.de/jcf





Re: [gentoo-user] umask 002 in /etc/profile

2009-03-31 Thread Alan McKinnon
On Wednesday 01 April 2009 04:31:03 Mark David Dumlao wrote:
 You know, I was thinking a bit,

 What with usergroups being the default behavior, do you think it's
 quite reasonable to use 002 as a default umask? Most group-sharing
 use-cases I've encountered have people that are sharing groups share
 files as read-write anyways, and by default, users have their own
 private group which nobody else is a member of; i.e. g+rw still won't
 allow others to write them.

For the average user, this is quite fine.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: Accidentally issued hdparm -X /dev/hda on running system

2009-03-31 Thread Jorge Morais
On Wed, 01 Apr 2009 07:00:21 +0300
Nikos Chantziaras rea...@arcor.de wrote:

 Jorge Peixoto de Morais Neto wrote:
  
  I then shut the computer down and I writing this from a liveCD.
  I do not even want to access the disk read only without knowing I have
  not messed up.
  
  So: does anybody know if hdparm -X /dev/hda is safe (on a running 
  system...)?
 
 This setting, like most other hdparm commands, is just temporary. As 
 soon as you reset the drive (happens during a reboot) all goes back to 
 the defaults.
I know it is temporary. The problem is that I issued hdparm -X /dev/hda, 
and hda holds /, swap and everything. The system was in multiuser
mode. I fear that the command could have messed up the hard disk,
and caused data corruption.
I have taken a look at the hdparm source code, and I see that
hdparm -X /dev/hda is indeed equivalent to hdparm -X 0 /dev/hda
But I still don't know if this is safe. I cannot continue to
investigate the source code because it gets to an ioctl
about which I know nothing (I think this would be a *lot* of
research).

I have since fsck'ed all relevant partitions in /dev/hda and they
came up clean.
Am I safe?