[gentoo-user] Re: konsole refresh laggardly

2010-05-03 Thread Remy Blank
Xi Shen wrote:
 my system is gentoo amd64, kd 4.3, compiz. i just updated the world.
 in konsole, no matter if the system is busy or not, the screen do not
 refresh sometimes. i will have to move the window, or select some
 content in the konsole to force it refresh.
 
 my graphic card is nvidia. i did not have this problem before.

FWIW, I have a similar issue here since I updated to xorg-server-1.7.6
yesterday. x86, KDE 3.5, no compiz and Intel GMA. Konsole sometimes
doesn't refresh parts of the window immediately, but with a 1-2 second
lag. This is most noticeable if I enter some text in bash, then move to
the beginning of the line, and insert some text. The text after the
cursor disappears, and only reappears after 1-2 seconds.

Of course, this could be completely unrelated.

-- Remy



signature.asc
Description: OpenPGP digital signature


[gentoo-user] Ldap authentication issues.

2010-05-03 Thread Indexer
I am currently trying to make a ldap server which i can use to authenticate 
users. Sadly a large number of how to's are incomplete and don't work, so after 
reading alot of how to's and manuals I have got 99.9% of the way. On attempting 
to authenticate a user it denies the user access with a error from auth.log

May  4 02:21:08 nemo sshd[1271]: error: PAM: authentication error for william 
from 172.20.0.1

I can succesfully search the ldap with this user binding to the ldap

 ldapsearch -x -D uid=william,ou=Admin,dc=chocolate,dc=lan -W '(uid=william)'
Enter LDAP Password: 
# extended LDIF
#
# LDAPv3
# base dc=chocolate,dc=lan (default) with scope subtree
# filter: (uid=william)
# requesting: ALL
#

# william, Admin, chocolate.lan
dn: uid=william,ou=Admin,dc=chocolate,dc=lan
uid: william
cn: william
objectClass: account
objectClass: posixAccount
objectClass: shadowAccount
objectClass: top
loginShell: /bin/bash
uidNumber: 1
gidNumber: 1
homeDirectory: /home/william
userPassword:: e1NTSEF9Z3BQd05Lc3JUMWwxSVNhOVQvN1dPb3ZOcnVBSXJwVTE=
gecos: William Brown
description: William Brown
shadowLastChange: 1
shadowMax: 0
shadowExpire: 0

# search result
search: 2
result: 0 Success

# numResponses: 2
# numEntries: 1

Slapd when trying to authenticate shows this.

/usr/local/libexec/slapd -4 -d 256

slapd starting
conn=0 fd=10 ACCEPT from IP=127.0.0.1:28629 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn= method=128
conn=0 op=0 RESULT tag=97 err=0 text=
connection_input: conn=0 deferring operation: binding
conn=0 op=1 SRCH base=ou=Nemo,ou=Group,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixGroup))
conn=0 op=1 SRCH attr=cn userPassword memberUid uniqueMember gidNumber
conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=0 op=2 SRCH base=ou=Marvin,ou=Group,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixGroup))
conn=0 op=2 SRCH attr=cn userPassword memberUid uniqueMember gidNumber
conn=0 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
conn=0 fd=10 closed (connection lost)
conn=1 fd=10 ACCEPT from IP=127.0.0.1:43475 (IP=0.0.0.0:389)
conn=1 op=0 BIND dn= method=128
conn=1 op=0 RESULT tag=97 err=0 text=
connection_input: conn=1 deferring operation: binding
conn=1 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=1 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
= bdb_equality_candidates: (uid) not indexed
conn=1 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=2 fd=12 ACCEPT from IP=127.0.0.1:15318 (IP=0.0.0.0:389)
conn=2 op=0 BIND dn= method=128
conn=2 op=0 RESULT tag=97 err=0 text=
connection_input: conn=2 deferring operation: binding
conn=2 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=2 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
= bdb_equality_candidates: (uid) not indexed
conn=2 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=2 op=2 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=2 op=2 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
= bdb_equality_candidates: (uid) not indexed
conn=2 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=2 fd=12 closed (connection lost)
conn=3 fd=12 ACCEPT from IP=127.0.0.1:63485 (IP=0.0.0.0:389)
conn=3 op=0 BIND dn= method=128
conn=3 op=0 RESULT tag=97 err=0 text=
connection_input: conn=3 deferring operation: binding
conn=3 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=3 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
= bdb_equality_candidates: (uid) not indexed
conn=3 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=3 op=2 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=3 op=2 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
= bdb_equality_candidates: (uid) not indexed
conn=3 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=3 fd=12 closed (connection lost)
conn=1 fd=10 closed (connection lost)


Here is my /etc/ldap.conf
base dc=chocolate,dc=lan
suffix dc=chocolate,dc=lan
uri ldap://ldap.srv.chocolate.lan
ldap_version 3
rootbinddn cn=Manager,dc=chocolate,dc=lan
scope one
timelimit 3
bind_timelimit 3
bind_policy soft
pam_filter objectclass=posixAccount
pam_login_attribute uid
pam_check_host_attr no
pam_member_attribute memberuid
pam_password exop
nss_reconnect_tries 4   # number 

[gentoo-user] RFC ebuild for a non-standard Python package

2010-05-03 Thread Helmut Jarausch
Hi,

I'd like to install the new package expy on sourceforge
http://expy.sourceforge.net/

Unfortunately, the contents of it are a bit non-standard.
First, the tarball has the unusual name  expy.6.6.tgz.

Second, it untars in to the current directory (no subdirectory
expy-6.6)

Third, it has setup.py and some helper modules in a subdirectory
'src'.

My current (working) ebuild is a litte bit brute force.
I'd appreciate any comments on streamlining and standardizing it.
Many thanks,
Helmut.

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=2
SUPPORT_PYTHON_ABIS=1

inherit distutils flag-o-matic

DESCRIPTION=USB support for Python.
HOMEPAGE=http://expy.sourceforge.net/;
MY_P=${P/-/.}
SRC_URI=mirror://sourceforge/${PN}/${MY_P}.tgz

S=${WORKDIR}/${P}
LICENSE=BSD
SLOT=0
KEYWORDS=~amd64 ~ppc ~x86
IUSE=examples

RESTRICT_PYTHON_ABIS=3*

src_unpack() {
mkdir -p ${S}
cd ${S}
unpack ${A}
ln src/* .
}

src_install() {
distutils_src_install
if use examples; then
insinto /usr/share/doc/${PF}
fi
}




Re: [gentoo-user] vmware-server performance

2010-05-03 Thread Stefan G. Weichinger
Am 30.04.2010 18:55, schrieb Stefan G. Weichinger:

 It's not THAT bad here, but the XP-guest takes a while to boot, yes.
 Right now I simply don't shutdown the guest and hibernate-to-ram the
 whole linux-box.

I moved the VM from a LV formatted with XFS to another LV formatted with
ext4 (both mounted with noatime).

It seems to help a bit, the VM boots faster and also works smoother.

iotop shows less load for kdmflush as well.

Just for the records ...

Stefan



Re: [gentoo-user] qt3support: only in /etc/make.conf, never in /etc/portage/package.use

2010-05-03 Thread Peter Humphrey
On Monday 03 May 2010 03:21:29 Dale wrote:

 I rarely put a USE flag in anything but make.conf.  Usually, if I
 need support for something, it is more than one package or that one
 package will want the support enabled for other packages it builds
 on as well.

One exception I suggest is mysql. If you put that USE flag in make.conf, 
every application you install that can use a database back-end will be 
built with it, adding unneeded complexity.

 I have disabled a USE flag in package.use before tho.  That seems to
 work OK almost all the time.  -doc and -hal come to mind without even
 looking at the file.

And I have this in package.use:
www-client/links-X -jpeg -png -tiff -directfb -fbcon -sdl

That's most useful during system installation, but as I only use links 
at a VT I don't bother to change its flags later.

-- 
Rgds
Peter.



Re: [gentoo-user] qt3support: only in /etc/make.conf, never in /etc/portage/package.use

2010-05-03 Thread David W Noon
On Mon, 03 May 2010 03:30:02 +0200, Grant Edwards wrote about
[gentoo-user] qt3support: only in /etc/make.conf, never
in /etc/portage/package.use:

qt3support on a per-package basis.  If you want qt3support put it in
/etc/make.conf.  Despite the fact that portage will tell you to enable
qt3support for package XYZ, doing just that won't work.

The qt3support USE flag only applies to the Qt packages, not to those
packages that might require Qt 3.x support. Specifically, it applies to:

  x11-libs/qt-core
  x11-libs/qt-gui
  x11-libs/qt-opengl
  x11-libs/qt-sql

Enable it for all 4 and you will have Qt 3.x support for all Qt app's
that are satisfied by the backwards compatibility support in Qt 4.x.
-- 
Regards,

Dave  [RLU #314465]
==
dwn...@ntlworld.com (David W Noon)
==


signature.asc
Description: PGP signature


Re: [gentoo-user] Ldap authentication issues.

2010-05-03 Thread Daniel Troeder
On 05/03/2010 09:41 AM, Indexer wrote:
 I am currently trying to make a ldap server which i can use to authenticate 
 users. Sadly a large number of how to's are incomplete and don't work, so 
 after reading alot of how to's and manuals I have got 99.9% of the way. On 
 attempting to authenticate a user it denies the user access with a error from 
 auth.log
 
 May  4 02:21:08 nemo sshd[1271]: error: PAM: authentication error for william 
 from 172.20.0.1
 
 I can succesfully search the ldap with this user binding to the ldap
 
  ldapsearch -x -D uid=william,ou=Admin,dc=chocolate,dc=lan -W 
 '(uid=william)'
 Enter LDAP Password: 
 # extended LDIF
 #
 # LDAPv3
 # base dc=chocolate,dc=lan (default) with scope subtree
 # filter: (uid=william)
 # requesting: ALL
 #
 
 # william, Admin, chocolate.lan
 dn: uid=william,ou=Admin,dc=chocolate,dc=lan
 uid: william
 cn: william
 objectClass: account
 objectClass: posixAccount
 objectClass: shadowAccount
 objectClass: top
 loginShell: /bin/bash
 uidNumber: 1
 gidNumber: 1
 homeDirectory: /home/william
 userPassword:: e1NTSEF9Z3BQd05Lc3JUMWwxSVNhOVQvN1dPb3ZOcnVBSXJwVTE=
 gecos: William Brown
 description: William Brown
 shadowLastChange: 1
 shadowMax: 0
 shadowExpire: 0
 
 # search result
 search: 2
 result: 0 Success
 
 # numResponses: 2
 # numEntries: 1
 
 Slapd when trying to authenticate shows this.
 
 /usr/local/libexec/slapd -4 -d 256
 
 slapd starting
 conn=0 fd=10 ACCEPT from IP=127.0.0.1:28629 (IP=0.0.0.0:389)
 conn=0 op=0 BIND dn= method=128
 conn=0 op=0 RESULT tag=97 err=0 text=
 connection_input: conn=0 deferring operation: binding
 conn=0 op=1 SRCH base=ou=Nemo,ou=Group,dc=chocolate,dc=lan scope=1 deref=0 
 filter=((objectClass=posixGroup))
 conn=0 op=1 SRCH attr=cn userPassword memberUid uniqueMember gidNumber
 conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
 conn=0 op=2 SRCH base=ou=Marvin,ou=Group,dc=chocolate,dc=lan scope=1 
 deref=0 filter=((objectClass=posixGroup))
 conn=0 op=2 SRCH attr=cn userPassword memberUid uniqueMember gidNumber
 conn=0 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
 conn=0 fd=10 closed (connection lost)
 conn=1 fd=10 ACCEPT from IP=127.0.0.1:43475 (IP=0.0.0.0:389)
 conn=1 op=0 BIND dn= method=128
 conn=1 op=0 RESULT tag=97 err=0 text=
 connection_input: conn=1 deferring operation: binding
 conn=1 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
 filter=((objectClass=posixAccount)(uid=william))
 conn=1 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
 loginShell gecos description objectClass shadowLastChange shadowMax 
 shadowExpire
 = bdb_equality_candidates: (uid) not indexed
 conn=1 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
 conn=2 fd=12 ACCEPT from IP=127.0.0.1:15318 (IP=0.0.0.0:389)
 conn=2 op=0 BIND dn= method=128
 conn=2 op=0 RESULT tag=97 err=0 text=
 connection_input: conn=2 deferring operation: binding
 conn=2 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
 filter=((objectClass=posixAccount)(uid=william))
 conn=2 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
 loginShell gecos description objectClass shadowLastChange shadowMax 
 shadowExpire
 = bdb_equality_candidates: (uid) not indexed
 conn=2 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
 conn=2 op=2 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
 filter=((objectClass=posixAccount)(uid=william))
 conn=2 op=2 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
 loginShell gecos description objectClass shadowLastChange shadowMax 
 shadowExpire
 = bdb_equality_candidates: (uid) not indexed
 conn=2 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
 conn=2 fd=12 closed (connection lost)
 conn=3 fd=12 ACCEPT from IP=127.0.0.1:63485 (IP=0.0.0.0:389)
 conn=3 op=0 BIND dn= method=128
 conn=3 op=0 RESULT tag=97 err=0 text=
 connection_input: conn=3 deferring operation: binding
 conn=3 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
 filter=((objectClass=posixAccount)(uid=william))
 conn=3 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
 loginShell gecos description objectClass shadowLastChange shadowMax 
 shadowExpire
 = bdb_equality_candidates: (uid) not indexed
 conn=3 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
 conn=3 op=2 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
 filter=((objectClass=posixAccount)(uid=william))
 conn=3 op=2 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
 loginShell gecos description objectClass shadowLastChange shadowMax 
 shadowExpire
 = bdb_equality_candidates: (uid) not indexed
 conn=3 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
 conn=3 fd=12 closed (connection lost)
 conn=1 fd=10 closed (connection lost)
 
 
 Here is my /etc/ldap.conf
 base dc=chocolate,dc=lan
 suffix dc=chocolate,dc=lan
 uri ldap://ldap.srv.chocolate.lan
 ldap_version 3
 rootbinddn cn=Manager,dc=chocolate,dc=lan
 scope one
 timelimit 3
 bind_timelimit 3
 bind_policy soft
 

Re: [gentoo-user] Ldap authentication issues.

2010-05-03 Thread Ward Poelmans
On Mon, May 3, 2010 at 09:41, Indexer inde...@internode.on.net wrote:
 I am currently trying to make a ldap server which i can use to authenticate 
 users. Sadly a large number of how to's are incomplete and don't work, so 
 after reading alot of how to's and manuals I have got 99.9% of the way. On 
 attempting to authenticate a user it denies the user access with a error from 
 auth.log

 May  4 02:21:08 nemo sshd[1271]: error: PAM: authentication error for william 
 from 172.20.0.1


What does you ssh file in /etc/pam.d look like?

Ward



Re: [gentoo-user] backup to a cold-swap drive

2010-05-03 Thread Iain Buchanan
On Thu, 2010-04-29 at 16:44 +0200, Alex Schuster wrote:

[snip]
 All my partitions are LVM volumes, so before the backup starts, I make a 
 LVM snapshot of the partition. This way I can modify it while the backup 
 is still in progress.

hmm, never got into LVM.  Sounds interesting though...

[snip]
 I wrote a shell script to do this, so I do not have to issue a lot of 
 commands every time I want to do the backup.

I don't use too many commands, something like this
in /etc/cron.daily/custom-backup:

sudo /usr/bin/ionice -c 3 /usr/bin/rsync -aAx --exclude suspend_file
--delete-delay --delete-excluded --partial
--human-readable / /unique-mount-of-external-drive || echo external
backup failed!

  As there are now some others 
 using this script, adapted to their needs, I started to rewrite it in a 
 way that it reads a config file, and no modification of the script itself 
 is necessary. If anyone is interested, send me an email.

interested! So is it on sourceforge yet ;)

thanks,
-- 
Iain Buchanan iaindb at netspace dot net dot au

BOFH Excuse #418:

Sysadmins busy fighting SPAM.




Re: [gentoo-user] Ldap authentication issues.

2010-05-03 Thread Indexer

On 03/05/2010, at 9:16 PM, Daniel Troeder wrote:

 I haven't set this up on gentoo, only on debian-server with
 ubuntu-clients...
 
 Does NSS work already? Do you see the LDAP users/group after the
 passwd-users when you run
 $ getent passwd
 $ getent group
 

Both show the correct user and group as defined in the ldap attributes

passwd 
william:*:1:1:William Brown:/home/william:/bin/bash

and group
login:*:2:william

 Assuming you have configured /etc/nsswitch.conf:
 passwd: compat ldap
 group:  compat ldap
 shadow: compat ldap
 (files ldap is OK too.)
 
 As long as that does not work, it doesn't make sense to continue to PAM.
 
 Is the password in /etc/ldap.secret OK? Mode should be 400. Try to see
 if the password for cn=Manager,dc=chocolate,dc=lan in there does have
 possibly problematic characters.

The password is in there, and it does bind successfully (I accidentally posted 
the wrong output from slapd, I have been documenting my success / failures to 
try and piece this together)

slapd starting
conn=0 fd=10 ACCEPT from IP=127.0.0.1:39936 (IP=0.0.0.0:389)
conn=0 op=0 BIND dn=cn=Manager,dc=chocolate,dc=lan method=128
conn=0 op=0 BIND dn=cn=Manager,dc=chocolate,dc=lan mech=SIMPLE ssf=0
conn=0 op=0 RESULT tag=97 err=0 text=
connection_input: conn=0 deferring operation: binding
conn=0 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=0 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
conn=0 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=1 fd=13 ACCEPT from IP=127.0.0.1:23394 (IP=0.0.0.0:389)
conn=1 op=0 BIND dn=cn=Manager,dc=chocolate,dc=lan method=128
conn=1 op=0 BIND dn=cn=Manager,dc=chocolate,dc=lan mech=SIMPLE ssf=0
conn=1 op=0 RESULT tag=97 err=0 text=
connection_input: conn=1 deferring operation: binding
conn=1 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=1 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
conn=1 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=1 op=2 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=1 op=2 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
conn=1 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=1 fd=13 closed (connection lost)
conn=2 fd=13 ACCEPT from IP=127.0.0.1:38351 (IP=0.0.0.0:389)
conn=2 op=0 BIND dn=cn=Manager,dc=chocolate,dc=lan method=128
conn=2 op=0 BIND dn=cn=Manager,dc=chocolate,dc=lan mech=SIMPLE ssf=0
conn=2 op=0 RESULT tag=97 err=0 text=
connection_input: conn=2 deferring operation: binding
conn=2 op=1 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=2 op=1 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
conn=2 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
conn=2 op=2 SRCH base=ou=Admin,dc=chocolate,dc=lan scope=1 deref=0 
filter=((objectClass=posixAccount)(uid=william))
conn=2 op=2 SRCH attr=uid userPassword uidNumber gidNumber cn homeDirectory 
loginShell gecos description objectClass shadowLastChange shadowMax shadowExpire
conn=2 op=2 SEARCH RESULT tag=101 err=0 nentries=1 text=

 
 I need to use nscd on the clients.
 
 BTW: I use MDS/MMC (http://mds.mandriva.org/) on all debian servers for
 User/Samba/DNS/DHCP/Mail management with LDAP. It's really good.

Ill take a look at it, thank you for the hint.

 
 The most trickiest part of setting up LDAP-clients is always PAM :(
 Fortunately for debian/ubuntu there are good guides. If you find out how
 to do it with gentoo, that info would be appreciated (gentoo-wiki?).

I agree, and i most likely will do a write up if i get it to work happily

 
 Good luck,
 Daniel
 
 -- 
 PGP key @ http://pgpkeys.pca.dfn.de/pks/lookup?search=0xBB9D4887op=get
 # gpg --recv-keys --keyserver hkp://subkeys.pgp.net 0xBB9D4887
 

William




Re: [gentoo-user] Ldap authentication issues.

2010-05-03 Thread Indexer

On 03/05/2010, at 9:41 PM, Ward Poelmans wrote:

 On Mon, May 3, 2010 at 09:41, Indexer inde...@internode.on.net wrote:
 I am currently trying to make a ldap server which i can use to authenticate 
 users. Sadly a large number of how to's are incomplete and don't work, so 
 after reading alot of how to's and manuals I have got 99.9% of the way. On 
 attempting to authenticate a user it denies the user access with a error 
 from auth.log
 
 May  4 02:21:08 nemo sshd[1271]: error: PAM: authentication error for 
 william from 172.20.0.1
 
 
 What does you ssh file in /etc/pam.d look like?

# auth
authsufficient  pam_opie.so no_warn no_fake_prompts
authrequisite   pam_opieaccess.so   no_warn allow_local
#auth   sufficient  pam_krb5.so no_warn try_first_pass
#auth   sufficient  pam_ssh.so  no_warn try_first_pass
#auth   sufficient  /usr/local/lib/pam_ldap.so no_warn 
use_first_pass
authrequiredpam_unix.so no_warn try_first_pass

# account
account requiredpam_nologin.so
#accountrequiredpam_krb5.so
account requiredpam_login_access.so
account requiredpam_unix.so
#accountrequired/usr/local/lib/pam_ldap.so  no_warn 
ignore_authinfo_unavail ignore_unknown_user

# session
#sessionoptionalpam_ssh.so
session requiredpam_permit.so

# password
#password   sufficient  pam_krb5.so no_warn try_first_pass
passwordrequiredpam_unix.so no_warn try_first_pass

 
 Ward
 

I was under the impression that SSH was able to use pam from the system module? 
I will try this out now uncommenting the ldap settings.




Re: [gentoo-user] backup to a cold-swap drive

2010-05-03 Thread Iain Buchanan
On Fri, 2010-04-30 at 16:24 +0200, Florian Philipp wrote:
 Am 29.04.2010 02:38, schrieb Iain Buchanan:
  Hi  thanks,
  
  On Wed, 2010-04-28 at 17:31 +0200, Florian Philipp wrote:
 [...]
  
  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.
 
 I think you misunderstood me or I didn't explain it correctly. I try it
 again:

[snip]

ah, NOW I get it :)

[snip]

 Ah, I see what you mean. I've never worked with the file alteration
 monitor (FAM) but once evaluated inotify for some administrative
 purposes. AFAIK they are not scalable good enough to work on a system
 wide basis. For example, I think the default limit of observable files
 with inotify is 8192.

hm, there goes that idea!  Is there any kernel based watch on all file
based I/O that I could queue up somehow?  Just thinking aloud here.  I
know everything is a file, but no doubt I could watch all write
operations; filter out /dev and put the rest into a file; and then use
it like an rsync file-list...

  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.
  
 
 To reduce the performance impact, you can also use the ionice command.

whoops, that's what I meant.  Even with ionice, there was some
noticeable delay when switching screens, opening programs, etc.  More so
when my RAM had been swapped from the large amount of I/O (I assume).  I
didn't try ionice with nice.

thanks,
-- 
Iain Buchanan iaindb at netspace dot net dot au

One family builds a wall, two families enjoy it.




[gentoo-user] Frozen after Upgrade

2010-05-03 Thread Colleen Beamer
Hi,
Yesterday, I updated my system.  On reboot, I get to my login screen,
but then everything is frozen - the cursor blinks in the box where I
am supposed to enter my password, but the keyboard doesn't work and my
mouse is frozen.  I don't know if this has something do do with the
xorg update that happened in connection with my nvidia driver.

I can't even kill X because, stupid me didn't configure the
Ctrl-Alt-Backspace when it was no longer automatically configured.

Right now, I have booted from a Kubuntu live CD so was able to get
into the system to write this.

Is there a way I can fix this without having to do a complete reinstall?



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Hazen Valliant-Saunders
Disable your xdm login script;

Regards,
Hazen.


On Mon, May 3, 2010 at 9:31 AM, Colleen Beamer colleen.bea...@gmail.comwrote:

 Hi,
 Yesterday, I updated my system.  On reboot, I get to my login screen,
 but then everything is frozen - the cursor blinks in the box where I
 am supposed to enter my password, but the keyboard doesn't work and my
 mouse is frozen.  I don't know if this has something do do with the
 xorg update that happened in connection with my nvidia driver.

 I can't even kill X because, stupid me didn't configure the
 Ctrl-Alt-Backspace when it was no longer automatically configured.

 Right now, I have booted from a Kubuntu live CD so was able to get
 into the system to write this.

 Is there a way I can fix this without having to do a complete reinstall?




-- 
Hazen Valliant-Saunders
IT/IS Consultant
(613) 355-5977


Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Indexer

On 03/05/2010, at 11:01 PM, Colleen Beamer wrote:

 Hi,
 Yesterday, I updated my system.  On reboot, I get to my login screen,
 but then everything is frozen - the cursor blinks in the box where I
 am supposed to enter my password, but the keyboard doesn't work and my
 mouse is frozen.  I don't know if this has something do do with the
 xorg update that happened in connection with my nvidia driver.
 
 I can't even kill X because, stupid me didn't configure the
 Ctrl-Alt-Backspace when it was no longer automatically configured.
 
 Right now, I have booted from a Kubuntu live CD so was able to get
 into the system to write this.
 
 Is there a way I can fix this without having to do a complete reinstall?
 

I would be checking my Xorg.conf to see if you have evdev enabled, set evdev in 
your make.conf just in case, and make sure you have hald set to start on boot 
as xorg now needs it for keyboard and mouse.  

William


Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Colleen Beamer
On 5/3/10, Hazen Valliant-Saunders haze...@gmail.com wrote:
 Disable your xdm login script;

I can't disable my xdm login script.  My computer boots to the login
screen and the keyboard doesn't work so I can'l login to get a
terminal session.


 Regards,
 Hazen.


 On Mon, May 3, 2010 at 9:31 AM, Colleen Beamer
 colleen.bea...@gmail.comwrote:

 Hi,
 Yesterday, I updated my system.  On reboot, I get to my login screen,
 but then everything is frozen - the cursor blinks in the box where I
 am supposed to enter my password, but the keyboard doesn't work and my
 mouse is frozen.  I don't know if this has something do do with the
 xorg update that happened in connection with my nvidia driver.

 I can't even kill X because, stupid me didn't configure the
 Ctrl-Alt-Backspace when it was no longer automatically configured.

 Right now, I have booted from a Kubuntu live CD so was able to get
 into the system to write this.

 Is there a way I can fix this without having to do a complete reinstall?




 --
 Hazen Valliant-Saunders
 IT/IS Consultant
 (613) 355-5977




[gentoo-user] Re: Frozen after Upgrade

2010-05-03 Thread Remy Blank
 Is there a way I can fix this without having to do a complete reinstall?

I would start by re-emerging xf86-input-keyboard and xf86-input-mouse,
as suggested in the xorg-server ebuild messages.

-- Remy



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Colleen Beamer
On 5/3/10, Indexer inde...@internode.on.net wrote:

 On 03/05/2010, at 11:01 PM, Colleen Beamer wrote:

 Hi,
 Yesterday, I updated my system.  On reboot, I get to my login screen,
 but then everything is frozen - the cursor blinks in the box where I
 am supposed to enter my password, but the keyboard doesn't work and my
 mouse is frozen.  I don't know if this has something do do with the
 xorg update that happened in connection with my nvidia driver.

 I can't even kill X because, stupid me didn't configure the
 Ctrl-Alt-Backspace when it was no longer automatically configured.

 Right now, I have booted from a Kubuntu live CD so was able to get
 into the system to write this.

 Is there a way I can fix this without having to do a complete reinstall?


 I would be checking my Xorg.conf to see if you have evdev enabled, set evdev
 in your make.conf just in case, and make sure you have hald set to start on
 boot as xorg now needs it for keyboard and mouse.

This would be good if I could get to a terminal seesion, but I can't.
The keyboard doesn't work and I can't login.

Right now, I am using a Kubuntu live CD and mounting is disabled.

 William




Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Philip Webb
100503 Colleen Beamer wrote:
 I can't disable my xdm login script.
 My computer boots to the login screen
 and the keyboard doesn't work so I can'l login to get a terminal session.

Yes, it happened to me long ago,
after which I decided always to boot to a raw terminal, then do 'startx'.

You need to use System Rescue or similar to get into the box,
then change your boot procedure to boot to a raw terminal.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Indexer

On 03/05/2010, at 11:17 PM, Colleen Beamer wrote:

 On 5/3/10, Indexer inde...@internode.on.net wrote:
 
 On 03/05/2010, at 11:01 PM, Colleen Beamer wrote:
 
 Hi,
 Yesterday, I updated my system.  On reboot, I get to my login screen,
 but then everything is frozen - the cursor blinks in the box where I
 am supposed to enter my password, but the keyboard doesn't work and my
 mouse is frozen.  I don't know if this has something do do with the
 xorg update that happened in connection with my nvidia driver.
 
 I can't even kill X because, stupid me didn't configure the
 Ctrl-Alt-Backspace when it was no longer automatically configured.
 
 Right now, I have booted from a Kubuntu live CD so was able to get
 into the system to write this.
 
 Is there a way I can fix this without having to do a complete reinstall?
 
 
 I would be checking my Xorg.conf to see if you have evdev enabled, set evdev
 in your make.conf just in case, and make sure you have hald set to start on
 boot as xorg now needs it for keyboard and mouse.
 
 This would be good if I could get to a terminal seesion, but I can't.
 The keyboard doesn't work and I can't login.
 
 Right now, I am using a Kubuntu live CD and mounting is disabled.


 How do you mean mounting is disabled? Open a terminal and type sudo mount 
/dev/sdblah ???

From there you can either chroot in, or you can manually stop xdm by removing 
the file /etc/runlevels/default/xdm (instead of using rc-update)

 
 William
 
 




Re: [gentoo-user] Re: Frozen after Upgrade

2010-05-03 Thread Colleen Beamer
On 5/3/10, Remy Blank remy.bl...@pobox.com wrote:
 Is there a way I can fix this without having to do a complete reinstall?

 I would start by re-emerging xf86-input-keyboard and xf86-input-mouse,
 as suggested in the xorg-server ebuild messages.

 -- Remy

How am I supposed to do this when I can't login and I can't kill X?




Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Dale

Colleen Beamer wrote:

On 5/3/10, Indexerinde...@internode.on.net  wrote:
   

On 03/05/2010, at 11:01 PM, Colleen Beamer wrote:

 

Hi,
Yesterday, I updated my system.  On reboot, I get to my login screen,
but then everything is frozen - the cursor blinks in the box where I
am supposed to enter my password, but the keyboard doesn't work and my
mouse is frozen.  I don't know if this has something do do with the
xorg update that happened in connection with my nvidia driver.

I can't even kill X because, stupid me didn't configure the
Ctrl-Alt-Backspace when it was no longer automatically configured.

Right now, I have booted from a Kubuntu live CD so was able to get
into the system to write this.

Is there a way I can fix this without having to do a complete reinstall?

   

I would be checking my Xorg.conf to see if you have evdev enabled, set evdev
in your make.conf just in case, and make sure you have hald set to start on
boot as xorg now needs it for keyboard and mouse.
 

This would be good if I could get to a terminal seesion, but I can't.
The keyboard doesn't work and I can't login.

Right now, I am using a Kubuntu live CD and mounting is disabled.
   

William

 


Try this:

Hold down Atl, hold down SysRq, press each of the keys in turn. The usual
full sequence is R-E-I-S-U-B

Reboot
Even
If
System
Utterly
Broken

When I had this issue, I would get a console when I got to the E or I.  This is 
what each keystroke does tho:

e sends TERM to all processes (except init)
i kills all processes (except init)
s syncs partitions
u remounts everything ro
b boots a box
o turns off a box
k saks a box - kills all processes on that vt
r unraws the keyboard - takes it away from X.


I hope that will get you back to a console at least.  Then you can start doing 
the things others have suggested you try.

Dale

:-)  :-)




Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Alan McKinnon
On Monday 03 May 2010 15:47:41 Colleen Beamer wrote:
 On 5/3/10, Indexer inde...@internode.on.net wrote:
  On 03/05/2010, at 11:01 PM, Colleen Beamer wrote:
  Hi,
  Yesterday, I updated my system.  On reboot, I get to my login screen,
  but then everything is frozen - the cursor blinks in the box where I
  am supposed to enter my password, but the keyboard doesn't work and my
  mouse is frozen.  I don't know if this has something do do with the
  xorg update that happened in connection with my nvidia driver.
  
  I can't even kill X because, stupid me didn't configure the
  Ctrl-Alt-Backspace when it was no longer automatically configured.
  
  Right now, I have booted from a Kubuntu live CD so was able to get
  into the system to write this.
  
  Is there a way I can fix this without having to do a complete reinstall?
  
  I would be checking my Xorg.conf to see if you have evdev enabled, set
  evdev in your make.conf just in case, and make sure you have hald set to
  start on boot as xorg now needs it for keyboard and mouse.
 
 This would be good if I could get to a terminal seesion, but I can't.
 The keyboard doesn't work and I can't login.
 
 Right now, I am using a Kubuntu live CD and mounting is disabled.


You said you did a system upgrade. Did this involve a kernel upgrade too?

If so, you are likely running into missing nvidia drivers in your new 
/lib/modules/. So:

- reboot to single user maintenance mode.
- disable /etc/init.d/xdm
- remerge nvidia-drivers, making sure that /usr/src/linux point s to the new 
kernel that is to be configured
- reboot
- enable /etc/init.d/xdm
- start xdm



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Dale

Philip Webb wrote:

100503 Colleen Beamer wrote:
   

I can't disable my xdm login script.
My computer boots to the login screen
and the keyboard doesn't work so I can'l login to get a terminal session.
 

Yes, it happened to me long ago,
after which I decided always to boot to a raw terminal, then do 'startx'.

You need to use System Rescue or similar to get into the box,
then change your boot procedure to boot to a raw terminal.

   


Or add softlevel=single to the boot line in grub.  That would be, edit 
the grub line before booting.


I think there is a interactive mode or something too.  It is done by 
hitting the I key during the first part of the boot up.  Just say No 
to xdm or whatever starts your GUI.


Lots of options here.  lol

Dale

:-)  :-)



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Colleen Beamer
On 5/3/10, Philip Webb purs...@ca.inter.net wrote:
 100503 Colleen Beamer wrote:
 I can't disable my xdm login script.
 My computer boots to the login screen
 and the keyboard doesn't work so I can'l login to get a terminal session.

 Yes, it happened to me long ago,
 after which I decided always to boot to a raw terminal, then do 'startx'.

 You need to use System Rescue or similar to get into the box,
 then change your boot procedure to boot to a raw terminal.

How do I do that?

Regards,

Colleen



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Colleen Beamer
On 5/3/10, Alan McKinnon alan.mckin...@gmail.com wrote:
 On Monday 03 May 2010 15:47:41 Colleen Beamer wrote:
 On 5/3/10, Indexer inde...@internode.on.net wrote:
  On 03/05/2010, at 11:01 PM, Colleen Beamer wrote:
  Hi,
  Yesterday, I updated my system.  On reboot, I get to my login screen,
  but then everything is frozen - the cursor blinks in the box where I
  am supposed to enter my password, but the keyboard doesn't work and my
  mouse is frozen.  I don't know if this has something do do with the
  xorg update that happened in connection with my nvidia driver.
 
  I can't even kill X because, stupid me didn't configure the
  Ctrl-Alt-Backspace when it was no longer automatically configured.
 
  Right now, I have booted from a Kubuntu live CD so was able to get
  into the system to write this.
 
  Is there a way I can fix this without having to do a complete
  reinstall?
 
  I would be checking my Xorg.conf to see if you have evdev enabled, set
  evdev in your make.conf just in case, and make sure you have hald set to
  start on boot as xorg now needs it for keyboard and mouse.

 This would be good if I could get to a terminal seesion, but I can't.
 The keyboard doesn't work and I can't login.

 Right now, I am using a Kubuntu live CD and mounting is disabled.


 You said you did a system upgrade. Did this involve a kernel upgrade too?

 If so, you are likely running into missing nvidia drivers in your new
 /lib/modules/. So:

 - reboot to single user maintenance mode.
 - disable /etc/init.d/xdm
 - remerge nvidia-drivers, making sure that /usr/src/linux point s to the new
 kernel that is to be configured
 - reboot
 - enable /etc/init.d/xdm
 - start xdm

New kernel was downloaded, but I did not upgrade the kernel.  If that
was the situation, I wouldn't be able to load to my login screen - I
would be booted back to the command line.  I get to the login screen,
but then, everything is frozen - keyboard and mouse.

I don't understand what you mean by booting to a single user
maintenance mode.  How do I do that?

Colleen



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Hazen Valliant-Saunders
Singe User (is from the kernel) you select the boot option via grub

People refer to this as Maintenance Mode although to be frank every gentoo
system is always in maintenence mode (kinda like perpetual beta)

http://www.redhat.com/docs/manuals/linux/RHL-7.3-Manual/custom-guide/s1-rescuemode-booting-single.html

It's the same idea just a diffrent distro;


Once you are in single user mode verify all mounted partitions:
#mount

Then navigate to your xorg.conf; (under /etc/)
and edit it to fix your issues or

Navigate to your home directory
/home/~username# and change the way you login by editing the approriate
files (depending on your x display manager)

Or conversly, if you are using a live cd:

1. mount your partitions a
2. ch root into your Gentoo install (you are now in single user mode)
3. Make the appropriate edits

as always your milage may vary; HTH



On Mon, May 3, 2010 at 10:30 AM, Colleen Beamer colleen.bea...@gmail.comwrote:

 On 5/3/10, Alan McKinnon alan.mckin...@gmail.com wrote:
  On Monday 03 May 2010 15:47:41 Colleen Beamer wrote:
  On 5/3/10, Indexer inde...@internode.on.net wrote:
   On 03/05/2010, at 11:01 PM, Colleen Beamer wrote:
   Hi,
   Yesterday, I updated my system.  On reboot, I get to my login screen,
   but then everything is frozen - the cursor blinks in the box where I
   am supposed to enter my password, but the keyboard doesn't work and
 my
   mouse is frozen.  I don't know if this has something do do with the
   xorg update that happened in connection with my nvidia driver.
  
   I can't even kill X because, stupid me didn't configure the
   Ctrl-Alt-Backspace when it was no longer automatically configured.
  
   Right now, I have booted from a Kubuntu live CD so was able to get
   into the system to write this.
  
   Is there a way I can fix this without having to do a complete
   reinstall?
  
   I would be checking my Xorg.conf to see if you have evdev enabled, set
   evdev in your make.conf just in case, and make sure you have hald set
 to
   start on boot as xorg now needs it for keyboard and mouse.
 
  This would be good if I could get to a terminal seesion, but I can't.
  The keyboard doesn't work and I can't login.
 
  Right now, I am using a Kubuntu live CD and mounting is disabled.
 
 
  You said you did a system upgrade. Did this involve a kernel upgrade too?
 
  If so, you are likely running into missing nvidia drivers in your new
  /lib/modules/. So:
 
  - reboot to single user maintenance mode.
  - disable /etc/init.d/xdm
  - remerge nvidia-drivers, making sure that /usr/src/linux point s to the
 new
  kernel that is to be configured
  - reboot
  - enable /etc/init.d/xdm
  - start xdm

 New kernel was downloaded, but I did not upgrade the kernel.  If that
 was the situation, I wouldn't be able to load to my login screen - I
 would be booted back to the command line.  I get to the login screen,
 but then, everything is frozen - keyboard and mouse.

 I don't understand what you mean by booting to a single user
 maintenance mode.  How do I do that?

 Colleen




-- 
Hazen Valliant-Saunders
IT/IS Consultant
(613) 355-5977


Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Alan McKinnon
On Monday 03 May 2010 16:30:53 Colleen Beamer wrote:
  You said you did a system upgrade. Did this involve a kernel upgrade too?
  
  If so, you are likely running into missing nvidia drivers in your new
  /lib/modules/. So:
  
  - reboot to single user maintenance mode.
  - disable /etc/init.d/xdm
  - remerge nvidia-drivers, making sure that /usr/src/linux point s to the
  new kernel that is to be configured
  - reboot
  - enable /etc/init.d/xdm
  - start xdm
 
 New kernel was downloaded, but I did not upgrade the kernel.  If that
 was the situation, I wouldn't be able to load to my login screen - I
 would be booted back to the command line.  I get to the login screen,
 but then, everything is frozen - keyboard and mouse.

Oh yes, of course. Obvious in retrospect

 I don't understand what you mean by booting to a single user
 maintenance mode.  How do I do that?

At the grub menu, select the kernel you wish to boot. 
Press e
Move cursor to the kernel line
Press e
Move cursor to the end of the line. Append  1 or  single
Press enter
Press b

This will load the kernel and run a modified start-up sequence (not the 
regular init command). You get a root shell which is quite limited but usually 
adequate for repairing broken system. 

In a way, it's very similar to booting into a LiveCD without having to go and 
find the CD first



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: Frozen after Upgrade

2010-05-03 Thread Frank Steinmetzger
Am Montag, 3. Mai 2010 schrieb Colleen Beamer:
 On 5/3/10, Remy Blank remy.bl...@pobox.com wrote:
  Is there a way I can fix this without having to do a complete reinstall?
  
  I would start by re-emerging xf86-input-keyboard and xf86-input-mouse,
  as suggested in the xorg-server ebuild messages.
  
  -- Remy
 
 How am I supposed to do this when I can't login and I can't kill X?

Dale already told you a way I also do it if my laptop hangs at X:
during the boot process it tells you hit I to enter interactive mode.
Then, just say no when it asks you whether to start xdm/kdm/whatever.

Also, you can chroot into your system from your kubuntu cd just like it's done 
in the installation handbook. Start your live cd, open a konsole, mount your 
system and chroot into it.
env-update  source /etc/profile and you're goot to go for emerging stuff.
-- 
Gruß | Greetings | Qapla'
Windows: reboot. Linux: be root.


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: Frozen after Upgrade

2010-05-03 Thread Remy Blank
Colleen Beamer wrote:
 How am I supposed to do this when I can't login and I can't kill X?

Boot from a live CD, then perform a chroot into your system as described
in the Gentoo handbook[1] or on the Gentoo wiki[2], then you should be
able to emerge as if you were running your system normally.

-- Remy

[1] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1chap=6
[2] http://en.gentoo-wiki.com/wiki/Chroot_from_a_livecd



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Frozen after Upgrade

2010-05-03 Thread Peter Humphrey
On Monday 03 May 2010 14:49:24 Colleen Beamer wrote:
 On 5/3/10, Remy Blank remy.bl...@pobox.com wrote:
  Is there a way I can fix this without having to do a complete
  reinstall?
  
  I would start by re-emerging xf86-input-keyboard and
  xf86-input-mouse, as suggested in the xorg-server ebuild messages.
  
  -- Remy
 
 How am I supposed to do this when I can't login and I can't kill X?

I sense your frustration! We've all been in a tight spot like this. 
Here's my suggestion:

Don't allow X to start at boot time. When you see the grub boot menu, 
select the kernel you want to boot and press e for Edit. Then select 
the kernel command line and press e again to edit it. Add
softlevel=nonetwork
to the end of the line, press Enter and then B. You will then start up 
with a full set of six VTs (consoles), at which you can do the remerging 
that's been suggested.

Personally, I'd do this: emerge -av1 `qlist -I -C x11-drivers`

With any luck you'll then be able to reboot and run as usual.

HTH

-- 
Rgds
Peter.



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Alan McKinnon
On Monday 03 May 2010 17:06:19 KH wrote:
 Am 03.05.2010 16:56, schrieb Alan McKinnon:
  On Monday 03 May 2010 16:30:53 Colleen Beamer wrote:
 [...]
 
  I don't understand what you mean by booting to a single user
  maintenance mode.  How do I do that?
  
  At the grub menu, select the kernel you wish to boot.
  Press e
  Move cursor to the kernel line
  Press e
  Move cursor to the end of the line. Append  1 or  single
  Pressenter
  Press b
  
  This will load the kernel and run a modified start-up sequence (not the
  regular init command). You get a root shell which is quite limited but
  usually adequate for repairing broken system.
  
  In a way, it's very similar to booting into a LiveCD without having to go
  and find the CD first
 
 Hi,
 
 and again I learnd something I didn't know, jet.
 
 Anyway I also would try to follow Dales advise with pressing i during
 boot.

There's all kinds of neat tricks you can do when booting or starting up. grub 
passes parameters and options to the kernel just like your shell passes 
parameters and options to a program you start. There's docs about it in 
/usr/src/linux/Documentation but be warned - they are written by kernel devs 
and most of them seem to assume the reader also knows as much as a kernel dev. 
So it can be hard going sometimes.

A neat trick I use often is to append init=/bin/bash to the grub line. This 
runs bash after the kernel is loaded, not the usual init. You can't logout as 
normal though - try it and see :-)



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread KH

Am 03.05.2010 16:56, schrieb Alan McKinnon:

On Monday 03 May 2010 16:30:53 Colleen Beamer wrote:

[...]



I don't understand what you mean by booting to a single user
maintenance mode.  How do I do that?


At the grub menu, select the kernel you wish to boot.
Press e
Move cursor to the kernel line
Press e
Move cursor to the end of the line. Append  1 or  single
Pressenter
Press b

This will load the kernel and run a modified start-up sequence (not the
regular init command). You get a root shell which is quite limited but usually
adequate for repairing broken system.

In a way, it's very similar to booting into a LiveCD without having to go and
find the CD first



Hi,

and again I learnd something I didn't know, jet.

Anyway I also would try to follow Dales advise with pressing i during 
boot.


Also some time ago I had a problem after an upgrade with my keyboard. 
Changing to usb was the workaround for me (the keyboard has usb and the 
ps2?). Anyway I never fixed the problem.


Regards
kh



[gentoo-user] Re: qt3support: only in /etc/make.conf, never in /etc/portage/package.use

2010-05-03 Thread Grant Edwards
On 2010-05-03, David W Noon dwn...@ntlworld.com wrote:
 On Mon, 03 May 2010 03:30:02 +0200, Grant Edwards wrote about
 [gentoo-user] qt3support: only in /etc/make.conf, never
 in /etc/portage/package.use:

qt3support on a per-package basis.  If you want qt3support put it in
/etc/make.conf.  Despite the fact that portage will tell you to enable
qt3support for package XYZ, doing just that won't work.

 The qt3support USE flag only applies to the Qt packages, not to those
 packages that might require Qt 3.x support.

I know.

 Specifically, it applies to:

   x11-libs/qt-core
   x11-libs/qt-gui
   x11-libs/qt-opengl
   x11-libs/qt-sql

 Enable it for all 4 and you will have Qt 3.x support for all Qt app's
 that are satisfied by the backwards compatibility support in Qt 4.x.

The problem is that if you don't have qt3 support, Portage tells you
to enable qt3support for _one_ of those packages.  If you do exactly
what portage tells you (enable it for that one package), then portage
will complain and tell you to disable it for that package.  At least
that's what always seemed to happen for me.

-- 
Grant Edwards   grant.b.edwardsYow! I'm in direct contact
  at   with many advanced fun
  gmail.comCONCEPTS.




Re: [gentoo-user] Re: qt3support: only in /etc/make.conf, never in /etc/portage/package.use

2010-05-03 Thread David W Noon
On Mon, 03 May 2010 17:30:02 +0200, Grant Edwards wrote about
[gentoo-user] Re: qt3support: only in /etc/make.conf, never
in  /etc/portage/package.use:

On 2010-05-03, David W Noon dwn...@ntlworld.com wrote:
[snip]
 Specifically, it applies to:

   x11-libs/qt-core
   x11-libs/qt-gui
   x11-libs/qt-opengl
   x11-libs/qt-sql

 Enable it for all 4 and you will have Qt 3.x support for all Qt app's
 that are satisfied by the backwards compatibility support in Qt 4.x.

The problem is that if you don't have qt3 support, Portage tells you
to enable qt3support for _one_ of those packages.  If you do exactly
what portage tells you (enable it for that one package), then portage
will complain and tell you to disable it for that package.  At least
that's what always seemed to happen for me.

I think you need to install the euses command, if you have not already
done so; its package name is the same as its command name.  If you then
run:
   euses qt3support
it will tell you exactly which packages are candidates for the USE
flag.  It sorts out lots of Portage's vagaries in this area.
-- 
Regards,

Dave  [RLU #314465]
==
dwn...@ntlworld.com (David W Noon)
==


signature.asc
Description: PGP signature


Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Willie Wong
On Mon, May 03, 2010 at 04:56:04PM +0200, Alan McKinnon wrote:
  I don't understand what you mean by booting to a single user
  maintenance mode.  How do I do that?
 
 At the grub menu, select the kernel you wish to boot. 
 Press e
 Move cursor to the kernel line
 Press e
 Move cursor to the end of the line. Append  1 or  single

Uh, I thought that, per discussions a few weeks ago, we've concluded
that in Gentoo that will still land you in the default runlevel.
Instead you should append
  softlevel=single
to the end of the line, and continue from hereon. 

 Press enter
 Press b
 

Cheers, 

W
-- 
Willie W. Wong ww...@math.princeton.edu
Data aequatione quotcunque fluentes quantitae involvente fluxiones invenire 
 et vice versa   ~~~  I. Newton



Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Dale

Willie Wong wrote:

On Mon, May 03, 2010 at 04:56:04PM +0200, Alan McKinnon wrote:
   

I don't understand what you mean by booting to a single user
maintenance mode.  How do I do that?
   

At the grub menu, select the kernel you wish to boot.
Press e
Move cursor to the kernel line
Press e
Move cursor to the end of the line. Append  1 or  single
 

Uh, I thought that, per discussions a few weeks ago, we've concluded
that in Gentoo that will still land you in the default runlevel.
Instead you should append
   softlevel=single
to the end of the line, and continue from hereon.

   

Pressenter
Press b

 

Cheers,

W
   


I had trouble with that a while back to but I think it was fixed.  Of 
course, this may only be true if you updated whatever it is that fixed 
it.  ;-)


I am up to date here as of last night and softlevel=single worked a 
couple weeks ago and has worked for several months.  I guess you could 
always just try it and see which one works.  If one of them doesn't 
work, it needs to be reported I guess.  I would be willing to bet that 
Alan's way will work.  Adding init=/bin/bash always works from my 
experience.  Just keep in mind that you have to reboot when done and 
make sure you are mounted rw instead of ro.


Dale

:-)  :-)



[gentoo-user] Kernel upgrade and now LUKS failure.

2010-05-03 Thread Jason Dusek
  I have an encrypted block device, `/dev/sda2', which is
  mounted as my root filesystem. I recently installed this
  system -- I've been away from Gentoo for awhile -- and used
  gentoo sources 2.6.31-r6. When the kernel upgrade rolled
  around, to 2.6.32-r7, I installed and rebooted and then my
  passphrase didn't work anymore. The error message:

Command failed: No key available with this passphrase.

  However, rebooting with my old kernel works fine so I'm not
  sure what the problem is. Could it be a different version of
  `cryptsetup'? When the device can't be opened on boot, I have
  the option to drop to a shell. I try to run `cryptsetup' and I
  get the same error -- so maybe that's my problem? Would
  different versions of `cryptsetup' be incompatible with
  devices encrypted by older versions? That seems brittle and
  dangerous to me.

--
Jason Dusek



Re: [gentoo-user] Kernel upgrade and now LUKS failure.

2010-05-03 Thread Florian Philipp
Am 03.05.2010 18:56, schrieb Jason Dusek:
   I have an encrypted block device, `/dev/sda2', which is
   mounted as my root filesystem. I recently installed this
   system -- I've been away from Gentoo for awhile -- and used
   gentoo sources 2.6.31-r6. When the kernel upgrade rolled
   around, to 2.6.32-r7, I installed and rebooted and then my
   passphrase didn't work anymore. The error message:
 
 Command failed: No key available with this passphrase.
 
   However, rebooting with my old kernel works fine so I'm not
   sure what the problem is. Could it be a different version of
   `cryptsetup'? When the device can't be opened on boot, I have
   the option to drop to a shell. I try to run `cryptsetup' and I
   get the same error -- so maybe that's my problem? Would
   different versions of `cryptsetup' be incompatible with
   devices encrypted by older versions? That seems brittle and
   dangerous to me.
 
 --
 Jason Dusek
 

Some rough guesses to get you started:

1. Keyboard layout specific passphrase? Do you use a non-american
keyboard layout? Maybe it has not been loaded at the time you enter the
passphrase.

2. Check that all necessary components (hash algorithm, block cipher,
encryption algorithm) are compiled into the new kernel.

Hope this helps,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread CJoeB
On 05/03/10 10:10, Dale wrote:

 I think there is a interactive mode or something too.  It is done by
 hitting the I key during the first part of the boot up.  Just say No
 to xdm or whatever starts your GUI.

 Lots of options here.  lol

 Dale
Thanks, Dale, for the figurative whack in the head!  I knew about
interactive mode, but never even thought of it.   Doing this, I was able
to boot to a command line.  Then, I took Remy's advise and re-emerged
xf86-input-keyboard and xf86-keyboard-mouse.  Turns out that they both
needed updating.  This fixed everything.

Sorry, if I was a little terse.  I panicked.  I keep all responses to
problems I've posted in case I run into the same thing again.  So thanks
guys for coming though for me as always!

Regards,

Colleen



-- 

Registered Linux User #411143 with the Linux Counter, http://counter.li.org





Re: [gentoo-user] Frozen after Upgrade

2010-05-03 Thread Dale

CJoeB wrote:

On 05/03/10 10:10, Dale wrote:
   

I think there is a interactive mode or something too.  It is done by
hitting the I key during the first part of the boot up.  Just say No
to xdm or whatever starts your GUI.

Lots of options here.  lol

Dale
 

Thanks, Dale, for the figurative whack in the head!  I knew about
interactive mode, but never even thought of it.   Doing this, I was able
to boot to a command line.  Then, I took Remy's advise and re-emerged
xf86-input-keyboard and xf86-keyboard-mouse.  Turns out that they both
needed updating.  This fixed everything.

Sorry, if I was a little terse.  I panicked.  I keep all responses to
problems I've posted in case I run into the same thing again.  So thanks
guys for coming though for me as always!

Regards,

Colleen
   
 


Oh trust me, I knew where you were.  I been there.  Anyone want me to 
start talking about the xorg-server upgrade with hal enabled?


I think most people missed the point that your keyboard would not allow 
you to do anything.  I noticed that and knew exactly what position you 
were in.  You also need to make a note about the alt sysrq key sequence 
as well.  That can be a HUGE life saver.  It will at least keep you from 
having to do a hard shutdown.  I have had a couple times that I was 
stuck at the login screen and nothing else would get me back to a 
console.  If you use the alt sysrq sequence, it will at least give you a 
sane shutdown, even if it is done blindly.


Glad you got it working.

Dale

:-)  :-)



[gentoo-user] USE flag semantic-desktop

2010-05-03 Thread CJoeB
Hi,

I have been doing a bit of cleaning on my system - namely, removing kde
3.5 packages according to directions given via Gentoo documentation. 
After doing this, I ran revdep-rebuild (with --pretend) and found that
there were a lot of broken packages.  One of the problem packages was
krecipes.  I haven't updated this in quite a while.  When I tried to
reinstall it, I got the message that it wanted to downgrade kde-libs
from 4.3.5 to 4.3.3-r1 and I noticed that a use flag called
semantic-desktop was enabled.   I didn't do the install because I didn't
know if I should downgrade kde-libs.  Does anyone know what this use
flag is about and should I enable it in my make.conf?

Regards,

Colleen

-- 

Registered Linux User #411143 with the Linux Counter, http://counter.li.org




[gentoo-user] libdb no longer slotted?

2010-05-03 Thread Grant Edwards
It seems that sys-libs/db used to be slotted (I previously had 3 or 4
versions installed). But todays update is failing becuase Python wants
libdb-4.7 and Perl wants libdb-4.3. They won't both install because of
file collisions.

Is libdb no longer slotted?

How does one deal with applications that require different versions of
libdb?

Neither google nor bugzilla have been helpful...



 Failed to install sys-libs/db-4.3.29_p1-r1, Log file:

  '/var/tmp/portage/sys-libs/db-4.3.29_p1-r1/temp/build.log'

 * Messages for package sys-libs/db-4.3.29_p1-r1:

 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / filename` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 *  /usr/bin/db_archive
 *  /usr/bin/db_checkpoint
 *  /usr/bin/db_deadlock
 *  /usr/bin/db_dump
 *  /usr/bin/db_load
 *  /usr/bin/db_printlog
 *  /usr/bin/db_recover
 *  /usr/bin/db_stat
 *  /usr/bin/db_upgrade
 *  /usr/bin/db_verify
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * sys-libs/db-4.7.25_p4
 *  /usr/bin/db_archive
 *  /usr/bin/db_checkpoint
 *  /usr/bin/db_deadlock
 *  /usr/bin/db_dump
 *  /usr/bin/db_load
 *  /usr/bin/db_printlog
 *  /usr/bin/db_recover
 *  /usr/bin/db_stat
 *  /usr/bin/db_upgrade
 *  /usr/bin/db_verify
 * 
 * Package 'sys-libs/db-4.3.29_p1-r1' NOT merged due to file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.