Re: [gentoo-user] Re: A pared down kernel config

2008-01-06 Thread Jan-Hendrik Zab
On Sun, 6 Jan 2008 10:58:12 +0400
Yahya Mohammad [EMAIL PROTECTED] wrote:

   Just to know more on this... Is there really any reason to worry
   about kernel size... I mean in most cases with a standard desktop
   install?
  
  
  yes. Bigger kernel = more cpu cache used up = slower system.
 
 Does all of the kernel reside in cpu cache all the time? Or can parts
 of it get moved to system RAM? What about modules that are loaded from
 disk?

No, it does not. The CPU caches are used differently. Partly, they
become something like read-ahead caches due to the fact that the CPU
can only read hole cache lines.

See http://lwn.net/Articles/252125/ for a good and recent documentation.

Jan-Hendrik Zab

-- 
Jan-Hendrik Zab [EMAIL PROTECTED]
Tel: +49 (0)15154625819
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Can't login with a normal user

2007-06-19 Thread Jan-Hendrik Zab
Hey,
for a few days now I'm unable to log in to my PC[0] with a normal user
(root works just fine). The following error is printed:

/bin/zsh: Permission denied

The same happens when I try it with a user that has /bin/bash as the
default shell. The permissions for both files are:

-rwxr-xr-x 2 root root

Furthermore, it occurs regardless if I try to log in directly at the
terminal or per SSH. I've no clue how to get rid of this problem or even
how it manifested itself in the first place. So any help would be very
appreciated!


Regards,
Jan-Hendrik Zab

[0] - Running a ~amd64 Gentoo.

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Can't login with a normal user

2007-06-19 Thread Jan-Hendrik Zab
On Tue, 19 Jun 2007 15:20:31 +0200
Hans-Werner Hilse [EMAIL PROTECTED] wrote:

 - noexec partition (unlikely, since more or less nothing would work), or
 - PAM getting angry, maybe because your /etc/shells doesn't contain the
   shells?
 
 If it's none of these, check the system log. PAM should monitor the
 reason. If that doesn't tell anything, try running strace -f su - youruser

There is no noexec flag on the partition and /etc/shells is okay as
well. But when I try to log in on the terminal the following is written
into the error log (with ssh only the last two):

Jun 19 16:09:15 [login] pam_tally(login:account): option deny=0 allowed in auth 
phase only
Jun 19 16:09:15 [login] pam_tally(login:account): unknown option: no_magic_root
Jun 19 16:09:15 [login] pam_unix(login:session): session opened for user 
jonsnow by LOGIN(uid=0)
Jun 19 16:09:15 [login] pam_unix(login:session): session closed for user jonsnow

The corresponding entries (to the first two lines are)
in /etc/pam.d/login.

auth   required pam_tally.so file=/var/log/faillog onerr=succeed 
no_magic_root
accountrequired pam_tally.so deny=0 file=/var/log/faillog onerr=succeed 
no_magic_root


I tried to remove the options to test if it had some effect but just
the first two lines vanished and I still couldn't log in. Additionally,
the pam files seem to be the same as on my file server.

The permissions of /bin seem to be okay:

drwxr-xr-x  2 root root  4096 2007-06-19 14:53 bin/


Jan-Hendrik Zab
-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Can't login with a normal user

2007-06-19 Thread Jan-Hendrik Zab
On Tue, 19 Jun 2007 17:58:17 +0200
Dirk Heinrichs [EMAIL PROTECTED] wrote:

 Did you try to fsck the / fs?

Yes, I did. There were no problems at all.

  --
 
 Sig. should be separated with -- , not --.

Claws appends that automatically ('-- ') and it's not only the right
string but also displayed correctly on my laptop. O_o Dunno why it
should be different in KMail?

Jan-Hendrik Zab
-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Can't login with a normal user

2007-06-19 Thread Jan-Hendrik Zab
On Tue, 19 Jun 2007 18:34:15 +0200
Hans-Werner Hilse [EMAIL PROTECTED] wrote:
  The permissions of /bin seem to be okay:
  
  drwxr-xr-x  2 root root  4096 2007-06-19 14:53 bin/
 
 Hm, and / ?
 
 I think PAM is alright, the log messages you posted indicate that a
 session _was_ opened, so it fails right after that happened. So if
 permissions on / are fine, too, I'd try strace'ing a login, just as I
 suggested earlier.

'strace -f su - jonsnow':

http://v3ng34nce.org/debug.out

Sorry, forgot to send the link due to some necessary work in the
garden ;-)

Permissions of '/':

drwxr-xr-x 20 root root 4096 2007-06-17 16:21 //

Jan-Hendrik Zab


-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Can't login with a normal user

2007-06-19 Thread Jan-Hendrik Zab
On Tue, 19 Jun 2007 13:17:57 -0500
Boyd Stephen Smith Jr. [EMAIL PROTECTED] wrote:

[snip]
 According to http://www.die.net/doc/linux/man/man2/execve.2.html EACCES is 
 only returned by this function for a few reasons:
 
 1) Search permission is denied on a component of the path prefix of filename 
 or the name of a script interpreter. (See also path_resolution(2).)
 
 (So, make sure /bin and / are executable by uid 1000.)

Both /bin and / have 'drwxr-xr-x' permissions and /bin/zsh has the
same, of course without 'd'.

 2) The file or a script interpreter is not a regular file. 
 
 (So, make sure /bin/zsh is not a symlink, evidently that doesn't work.)

[EMAIL PROTECTED]:/usr] # file /bin/zsh
/bin/zsh: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 
2.6.9, dynamically linked (uses shared libs), stripped

So, it is a normal executable file.

 3) Execute permission is denied for the file or a script or ELF interpreter.
 
 (So, make sure that /bin/zsh and /lib/ld-linux.so* are executable.  
 If /bin/zsh is a script make sure the interpreter listed after #! is 
 executable.  Proceed recursively if THAT is a script.)

/lib64/ld-linux-x86-64.so.2 is a symlink to /lib64/ld-2.5.so which can
be executed, /bin/zsh is /linked/ to the symlink and their permission
are IMHO correct:

-rwxr-xr-x 1 root root 137226 2007-06-17 16:20 /lib64/ld-2.5.so*
lrwxrwxrwx 1 root root  9 2007-06-17 16:21 /lib64/ld-linux-x86-64.so.2 - 
ld-2.5.so*

 (Also, is it possible that you don't have the right /lib/ld-linux.so?  See 
 the 
 above link for some detail [the paragraph just above RETURN VALUE].  ldd 
 should be able to show you which one you need.)

Well, I think it's the right one. See above.

 4) The file system is mounted noexec.
 
 (So, make sure that you filesystem is currently mounted exec.)

As stated earlier, there is no noexec flag:

/dev/sda2 on / type ext3 (rw,noatime)
 
 If all of those check out, I think you'll have to use the source, luke.
 
  Permissions of '/':
 
  drwxr-xr-x 20 root root 4096 2007-06-17 16:21 //
 
 That looks a little weird, but only because of the extra '/'.
 
 On my system:
 $ ls -ld /
 drwxr-xr-x 23 root root 664 2007-06-11 20:27 /
 
That's due to the ZSH settings/command.

PS.
I really dislike this problem :D

Jan-Hendrik Zab
-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Can't login with a normal user

2007-06-19 Thread Jan-Hendrik Zab
On Tue, 19 Jun 2007 14:30:39 -0500
Boyd Stephen Smith Jr. [EMAIL PROTECTED] wrote:

 My locally installed man page doesn't provide any other explanations for that 
 return code, so I'm still betting it's one of those things.  However, someone 
 more skilled than I might be able to spend some time digging through libc 
 and/or the kernel to determine an alternative cause.

Well, you win...
I looked at least once at `ls -ld /*' and saw nothing out of the
ordinary. Then, I just checked again and there it was, /lib64 had the
permission '000'. Guess I should've checked more thorough, especially
when you mentioned path_resolution(2), sorry.

But at last everything works again, thanks everyone! 

Jan-Hendrik Zab
-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] dr.dk

2007-04-13 Thread Jan-Hendrik Zab
On Fri, 13 Apr 2007 15:33:07 +0200
Johannes Skov Frandsen [EMAIL PROTECTED] wrote:
 I installed mplayer and I can now play the stream without problems.
 Still wonder why I have no frontend for vlc and why it will not play the
 streams thought.

VLC was most likely not compiled with the wxwindows USE-Flag.

Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] Thermal cpu

2007-03-29 Thread Jan-Hendrik Zab
On Thu, 29 Mar 2007 23:28:10 +0200
Sylvain Chouleur [EMAIL PROTECTED] wrote:

 But I don't have this file
 What program is supposed to make it?
 
lm_sensors

How are you checking the temperatures?

 On Thu, Mar 29, 2007 at 04:27:36PM +0200, Sylvain Chouleur wrote:
   Hello
  
   I have a little problem on my gentoo, when I check the temperature I see
   that it is always about 10°C higher than when I am on debian. However, 
 the
   cpu is at 0.3% used, as in debian.
 
 Check the file /etc/sensors.conf (or copy the debian file)


-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Custom rsync command for emerge --sync?

2007-03-24 Thread Jan-Hendrik Zab
On Sat, 24 Mar 2007 19:41:52 +0100
Nico Schümann [EMAIL PROTECTED] wrote:

 Hello,
 
 I hope you know about the script.
 Create some kind of directory, let's say
 /opt/mybin
 copy your rsync script to this directory and call it rsync. Then do this:
 PATH=/opt/mybin:$PATH emerge --sync
 
 Regards,
 Nico

Sorry, but could you tell me where to find the corresponding code that
is responsible for this behaviour, because I can just find the hard
coded path in the variable mentioned earlier. :)

Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Re: Custom rsync command for

2007-03-22 Thread Jan-Hendrik Zab
On Thu, 22 Mar 2007 14:35:49 + (UTC)
Alexander Skwar [EMAIL PROTECTED] wrote:

 Alexander Skwar listen at alexander.skwar.name writes:
[...]
 Hmm, well, it just occured to me, that I could run socksify emerge --sync
 instead of having emerge run socksify rsync. The net effect would be the 
 same.
 
 But still, just for my curiosity:
 
  How do I tell emerge to use a custom rsync command?

Quite frankly, I don't know any clean way. But you could of course just
change the hard coded path to the rsync command in `/usr/bin/emerge'.

It's in the `rsynccommand'-Variable.

Actually, I first thought about creating an alias, but it seems that
the bash part in emerge just affects the build system.

[ I've just looked deep enough to see that it has nothing to do with
rsync, so there might be more. ]

Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Portage: Show list of required files without downloading anything?

2006-10-08 Thread Jan-Hendrik Zab
On Sun, 08 Oct 2006 15:35:49 -0400
Statux [EMAIL PROTECTED] wrote:
 
 Question: Is there a way that I can get Portage to run through the
 packages/ebuilds and, instead of downloading anything from the net, just
 have it show me which files were not in /usr/portage/distfiles which
 will be needed?
 
 So if I had 8 packages which needed upgrading, which would result in (an
 estimated) 6,382K of downloads, is there some way for me to have it go
 through each one of those all at once, similar to --fetchonly, and have
 it spit out a list of everything which it did not find on the local
 system?

Dunno about any script, but first step would be:

emerge -uD -fp world

Then just filter it, e.g. in every line cut everything after the first
white space and throw the meat to wget.

Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] DHClient Woes - No Modules Loaded?

2006-10-01 Thread Jan-Hendrik Zab
On Sun, 1 Oct 2006 11:44:42 -0700
Lord Sauron [EMAIL PROTECTED] wrote:

 Proof:
 [EMAIL PROTECTED]:~$ grep -nr dhclient ./archival
 [EMAIL PROTECTED]:~$
 
 I have been getting annoyed at dhcpcd, which will take 180 seconds to 
 ping even if there isn't a networking cable in my NIC.  I use a laptop, 
 so you can easily speculate how I got so annoyed.
 
 I know that Kubuntu had the ability to detect whether there was a cable 
 in my laptop and ping accordingly.  I looked at my Kubuntu workstation 
 and found that it's using dhclient.  I installed dhcpd on my laptop and 
 tried my best to make it work.  I got the following:
[snip]

Well, maybe I just misunderstood you, anyway... You could try pump
(the fastest/best dhcp client I know of :-) and ifplug, the latter
starts the wired ethernet interfaces when they get a link.

PPS.
The iface_eth interface is completely out of date, take a _very_ good
look at `/etc/conf.d/net.example'.

Greets,
Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org

-- 
gentoo-user@gentoo.org mailing list



Fw: [gentoo-user] Whole lotta minimal

2006-09-20 Thread Jan-Hendrik Zab
On Wed, 20 Sep 2006 10:54:57 -0700
Grant [EMAIL PROTECTED] wrote:

 Can someone explain the great minimal breakout happening in portage or
 point me toward a link?  Is USE=minimal in make.conf the kind of
 thing you should do if you don't have a specific reason not to, or the
 kind of thing you shouldn't do unless you have a specific reason to.
 
 - Grant
The second one, but I can't come up with any possible reason for doing
so. The actual problem is that the flag has no 'real' global meaning,
which means that it might turn off some 'unnecessary' features in one
application and turn off one of the most useful in another.

So don't gamble with it. :)

Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org



-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Why is glibc ntpl+nptl-only?

2006-09-16 Thread Jan-Hendrik Zab
On Sat, 16 Sep 2006 09:49:32 +0100
Mick [EMAIL PROTECTED] wrote:

 Is there a need for either nptl or nptlonly in our USE flags now that we have 
 moved over to glibc-2.4 (assuming that we do not want linuxthreads anymore)?  
 I currently have nptlonly in my make.conf and was wondering whether I should 
 remove it.

Well, there are still a few pre 2.4 glibc versions in portage which use
nptl and nptl-only. Therefor the flags are at least still needed and
can't be entirely removed from portage. Furthermore, depending on your
profile the explicit flags can be removed, because they belong to the
default USE flags in the 2006.1 profile.
(This is of course only true as long as you're not excluding everything
with -* and therefor terminate the default set)

In 2006.0 only nptl is among the default flags.

Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] xorg.conf problem

2006-09-09 Thread Jan-Hendrik Zab
On Sat, 9 Sep 2006 18:38:26 +
Mick [EMAIL PROTECTED] wrote:

 On Saturday 09 September 2006 16:40, Colleen Beamer wrote:
 
   This is part of my xorg.conf in case it helps:
   ===
   Section Monitor
   DisplaySize 336 269 # 96 DPI @ 1280x1024
   Identifier   Monitor0
   VendorName   NEC
   ModelNameNEC LCD1860NX
   HorizSync31.0 - 80.0
   VertRefresh  55.0 - 85.0
   Option  DPMS
   Modeline  1280x1024   108.00   1280 1328 1440 1688   1024 1025
   1028 1066
   EndSection
 
  Anyway, I'm not sure that I understand some of the above - like
  DisplaySize 336 269 ... what is this?  centimeters? and how do I know
  that the resolution is 96 DPI?
 
 Please ignore that line (I should have deleted it...)  The measurements are 
 in 
 millimeters and invariably needed on a CRT monitor.  I have both a CRT and a 
 TFT monitor so mine is a bit more complex than what you need.  I take it that 
 you are using a TFT monitor, in which case leave these measurements out for 
 now.  The reason I have these in mine is because for some weird reason my TFT 
 monitor was getting an odd DPI which made the fonts look blurred on/off 
 across the screen - enough to give me a nasty headache 5 minutes later.  (If 
 you need to find out what the DPI is on your monitor run xdpyinfo).  Just for 
 info, these measurements are either obtained from your monitor's manual, or 
 by using a tape measure across your screen.
[SNIP]

Hey,
just for the record. IMHO it is a lot easier to set the DPI per
~/.Xdefaults with 'Xft.dpi: 96'. Or by starting the X Server with
'-dpi 96'. Especially when you want to try some specific DPI value.

Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] glibc 2.4 nptlonly?

2006-08-31 Thread Jan-Hendrik Zab
On Thu, 31 Aug 2006 12:35:20 +0200
Sven Köhler [EMAIL PROTECTED] wrote:

 Hi,
 
 is there any of the big distributions like SuSE, Fedora or Debian who
 use glibc 2.4 too? And if they do, do they also only include a
 nptlonly-glibc?
 
 Just wondering.
 
AFAIK there is a glibc 2.4 RPM available for (Open)SuSe, dunno
about the others.
Though I do not know about any old pthreads support in this package,
at least the official changelog[1] states that it is just no longer
supported.

   Sven
 
Greets,
Jan-Hendrik Zab

[1]:
http://sources.redhat.com/cgi-bin/cvsweb.cgi/libc/NEWS?rev=1.153content-type=text/x-cvsweb-markupcvsroot=glibc

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Emerge firefox error

2006-08-31 Thread Jan-Hendrik Zab
On Wed, 30 Aug 2006 21:08:44 +0200
Oliver Klein [EMAIL PROTECTED] wrote:

 Hi
Hey,
what is your current version of gtk+?

 
 
[snip]
 So i decide to install dev-libs/atk but this tells me
 
  checking atk-1.12.1.tar.bz2
 !!! Digest verification failed:
 !!! /usr/portage/distfiles/atk-1.12.1.tar.bz2
 !!! Reason: Filesize does not match recorded size
 !!! Got: 641378
 !!! Expected: 632397
 
Just delete the old file and sync your portage tree. It should fix this
problem.

 So please can anyone help me to install firefox?
 
 THX and regards
 Olly
 
 
Greets,
Jan-Hendrik Zab

-- 
| Jan-Hendrik Zab
| +49 (0)1773392888
| http://www.v3ng34nce.org

-- 
gentoo-user@gentoo.org mailing list