[gentoo-user] Re: Bizarre SSH connection reset

2008-04-03 Thread Hendrik Boom
On Sun, 09 Mar 2008 08:03:51 -0600, Collin Starkweather wrote:

> To preface the question, I should mention that I'm currently residing in
> China, so communication with the networking guys on this end is a bit
> difficult because the communication algorithm typically begins, "Step 1:
> Learn Chinese."
> 
> I am having difficulties with getting bumped out of an SSH connection
> from a server in the U.S. with "Connection reset by peer" maybe 5-10
> seconds after logging in.
...
...
> 
> If the reset is not coming from the server or the client (I don't have
> any problems when I'm at a hotspot), where could it be coming from?

It might be coming from China's own internet gateways.  If you access 
content they reject, I'm told the international gateway simulates a 
disconnect, so it looks to both parties tha other just disconnected.

- hendrik


-- 
gentoo-user@lists.gentoo.org mailing list



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] Dependency problem

2007-09-03 Thread Hendrik Boom
Well, with bare X up, I decided it was time to install a window manager. 
I picked xfce4 and icewm.

I emerged xfce4, and after a lot of packages, it finally told me:

reemerge x11-libs/cairo with the X USE flag set

Well, I emerged icewm with no problems, then went back to xfce4 by
changing my use flags and asking it to reemerge everything that involved a
use-flag change.  My new use flags were set in /etc/make.conf as 

USE="cjk unicode X xprint"

This choked, on x11-apps/xclock-1.0.2.

The key messages seem to be:

/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: 
warning: libexpat.so.0, needed by 
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so, not found (try 
using -rpath or -rpath-link)
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../libfontconfig.so: undefined 
reference to `XML_SetElementHandler'

Could it be that some package failed to set some key dependency, and that
as a result libexpat.so.0 had not been created?  I could of course try to
find which package should have created libexpat.so.0, or go on emerging
and try to skip xclock (if I knew how to do that), but I thought it might
be good to report this problem, and ask advice, in case
  (a) one of you could advise me how best to get past this point, or
  (b) it really is a problem in gentoo, and someone might want to fix it.

I'm starting to wonder, by the way, whether most beginners with gentoo
have this much trouble, or whether I'm just knowledgeable enough to blunder
into problems other miss in blissful ignorance, and not yet knowledgeable
enough to avoid them :-)

I paste in the complete
/var/tmp/portage/x11-apps/xclock-1.0.2/temp/build.log file below.

-- hendrik


>>> Unpacking source...
>>> Unpacking xclock-1.0.2.tar.bz2 to 
>>> /var/tmp/portage/x11-apps/xclock-1.0.2/work
>>> Source unpacked.
>>> Compiling source in 
>>> /var/tmp/portage/x11-apps/xclock-1.0.2/work/xclock-1.0.2 ...
 * econf: updating xclock-1.0.2/config.guess with 
/usr/share/gnuconfig/config.guess
 * econf: updating xclock-1.0.2/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --host=i686-pc-linux-gnu --mandir=/usr/share/man 
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc 
--localstatedir=/var/lib --prefix=/usr --datadir=/usr/share --enable-xprint 
--build=i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-pc-linux-gnu-gcc... i686-pc-linux-gnu-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i686-pc-linux-gnu-gcc accepts -g... yes
checking for i686-pc-linux-gnu-gcc option to accept ANSI C... none needed
checking for style of include used by make... GNU
checking dependency style of i686-pc-linux-gnu-gcc... gcc3
checking for a BSD-compatible install... /usr/bin/install -c
checking for strlcpy... no
checking for i686-pc-linux-gnu-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XCLOCK_X11... yes
checking for TMP_XAW... yes
checking for XFT... yes
checking for library containing sqrt... -lm
checking for XKB... yes
checking for APPDEFS... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: executing depfiles commands
make  all-am
make[1]: Entering directory 
`/var/tmp/portage/x11-apps/xclock-1.0.2/work/xclock-1.0.2'
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/usr/include/freetype2 -O2 -march=i686 -pipe -MT xclock-Clock.o -MD -MP 
-MF ".deps/xclock-Clock.Tpo" -c -o xclock-Clock.o `test -f 'Clock.c' || echo 
'./'`Clock.c; \
then mv -f ".deps/xclock-Clock.Tpo" ".deps/xclock-Clock.Po"; else rm -f 
".deps/xclock-Clock.Tpo"; exit 1; fi
if i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.
-I/usr/include/freetype2 -O2 -march=i686 -pipe -MT xclock-xclock.o -MD -MP 
-MF ".deps/xclock-xclock.Tpo" -c -o xclock-xclock.o `test -f 'xclock.c' || echo 
'./'`xclock.c; \
then mv -f ".deps/xclock-xclock.Tpo" ".deps/xclock-xclock.Po"; else rm 
-f ".deps/xclock-xclock.Tpo"; exit 1; fi
cp XClock-color.ad XClock-color
cp XClock.ad XClock
sed -e 's|__vendorversion__|"xclock 1.0.2" "X Version 11"|' -e 

[gentoo-user] Re: X now starts. (was: Gentoo still not up ...)

2007-09-02 Thread Hendrik Boom
On Sun, 02 Sep 2007 11:30:03 +, Hendrik Boom wrote:

> 
> So I proceeded to emerge xorg-server for real.  No more keyboard problems.
>  Instead I get the black screen of death.  The monitor on light starts
>  bliking, indicating it is getting no signal, ctrl-alt-backspace and
>  ctrl-alt-delete don't work, and only a hard reset on the box itself
>  gets anything going.
> 
> My make.conf specifies VIDEO_CARDS="radeon", even though the automatically
> generated /root/xorg.conf.new specifies
> 
> Driver  "ati"
> 
> in the "Device" section.  Could this be a problem?  The hardware is a. ATI
> Radeon all-in-wonder card.
> 
> I tried replacing ati by fbdev just to get something working, but it just
> told me it couldn't find fbdev.  Presumably this driver was not installed.
>  Is the proper way to install this add in fbdev to the make.conf file:
> 
>  VIDEO_CARDS="radeon fbdev"
> 
> or even 
> 
>  VIDEO_CARDS="radeon ati fbdev"
> 
> and then re-emerge xorg-server? 

Well, that worked.

  X -config /root/xorg.conf.new

gives me the usual grey tweed pattern and an X cursor.  Both the ati and
radeon drivers work, but fbdev doesn't -- not that I need it any more, of
course.

> Or is there a more
straightforward way?
>  I still haven't found a way to browse the list of available packages
> the way I used to do in Debian using aptitude or packages.debian.org.
> 
> -- hendrik
>

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Gentoo still not up -- now no kbd driver

2007-09-02 Thread Hendrik Boom
On Sat, 01 Sep 2007 19:52:11 +0200, Bo Ørsted Andresen wrote:

> On Saturday 01 September 2007 19:24:51 Hendrik Boom wrote:
>> > Have you enabled the keyboard USE flag under INPUT_DEVICES in
>> > xorg-xserver? You can set this in make.conf.
>>
>> make.conf ends with the lines
>>
>> INPUT_DEVICES="keyboard mouse"
>> VIDEO_CARDS="radeon"
>>
>> Is this what you mean?
> 
> *nod*
> 

Aha!  xorg-server!  All I saw in the docs I had been
looking at was xorg-x11.

> # emerge -pv xorg-server

These are the packages that would be merged, in order:

Calculating dependencies  . done!
[ebuild  N] x11-drivers/xf86-input-keyboard-1.1.1  USE="-debug" 230 kB
[ebuild   R   ] x11-base/xorg-server-1.2.0-r3  USE="dri ipv6 nptl xorg -3dfx 
-debug -dmx -kdrive -minimal -sdl -xprint" INPUT_DEVICES="keyboard* mouse 
-acecad -aiptek -calcomp -citron -digitaledge -dmc -dynapro -elo2300 
-elographics -evdev -fpit -hyperpen -jamstudio -joystick -magellan -microtouch 
-mutouch -palmax -penmount -spaceorb -summa -synaptics -tek4957 -ur98 -vmmouse 
-void -wacom" VIDEO_CARDS="radeon -apm -ark -chips -cirrus -cyrix -dummy -epson 
-fbdev -fglrx -glint -i128 -i740 -i810 (-impact) -imstt -mach64 -mga -neomagic 
(-newport) -nsc -nv -nvidia -r128 -rendition -s3 -s3virge -savage 
-siliconmotion -sis -sisusb (-sunbw2) (-suncg14) (-suncg3) (-suncg6) (-sunffb) 
(-sunleo) (-suntcx) -tdfx -tga -trident -tseng -v4l -vesa -vga -via -vmware 
-voodoo" 0 kB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 230 kB

> # equery check x11-drivers/xf86-input-keyboard

-bash: equery: command not found

> 

So I proceeded to emerge xorg-server for real.  No more keyboard problems.
 Instead I get the black screen of death.  The monitor on light starts
 bliking, indicating it is getting no signal, ctrl-alt-backspace and
 ctrl-alt-delete don't work, and only a hard reset on the box itself
 gets anything going.

My make.conf specifies VIDEO_CARDS="radeon", even though the automatically
generated /root/xorg.conf.new specifies

Driver  "ati"

in the "Device" section.  Could this be a problem?  The hardware is a. ATI
Radeon all-in-wonder card.

I tried replacing ati by fbdev just to get something working, but it just
told me it couldn't find fbdev.  Presumably this driver was not installed.
 Is the proper way to install this add in fbdev to the make.conf file:

 VIDEO_CARDS="radeon fbdev"

or even 

 VIDEO_CARDS="radeon ati fbdev"

and then re-emerge xorg-server?  Or is there a more straightforward way?  I
still haven't found a way to browse the list of available packages the way
I used to do in Debian using aptitude or packages.debian.org.

-- hendrik

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Gentoo still not up -- now no kbd driver

2007-09-01 Thread Hendrik Boom
On Sat, 01 Sep 2007 18:53:08 +0200, Daniel Pielmeier wrote:

> Hendrik Boom schrieb:
>> Still having trouble with my first gentoo install.  Now X fails to come
>> up.
>> 
>> The relevant message seems to be;
>> 
>> # grep EE /var/log/Xorg.0.log
>> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
>> (II) Loading extension MIT-SCREEN-SAVER
>> (EE) Failed to load module "kbd" (module does not exist, 0)
>> (EE) No Input driver matching `kbd'
>> 
>> Presumably this indicates something isn't installed you -- but what is it
>> I have to emerge to get module 'kbd'?  Or is it more complicated than
>> that?  Would it help to post a batch of config files and the entire log
>> file, or would that just be wasting bandwidth?
>> 
>> -- hendrik
>> 
> 
> Have you enabled the keyboard USE flag under INPUT_DEVICES in
> xorg-xserver? You can set this in make.conf.
> 

make.conf ends with the lines

INPUT_DEVICES="keyboard mouse"
VIDEO_CARDS="radeon"

Is this what you mean?

> For information take a look here:
> http://www.gentoo.org/doc/en/xorg-config.xml
> Step 2 Installing Xorg.
> 
> Have you also enabled keyboard support in your kernel?
>

I use genkernel to create the kernel.  Mind you, I ran genkernel in a
chroot under Debian Etch.  How can I tell whether keyboard support has
been enabled?

It is possible to log in as root on a text console as soon
as gentoo finishes booting (without X, of course).  Is this the keyboard
support you mean, or is this something else?

-- hendrik

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Gentoo still not up -- now no kbd driver

2007-09-01 Thread Hendrik Boom
Still having trouble with my first gentoo install.  Now X fails to come
up.

The relevant message seems to be;

# grep EE /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(II) Loading extension MIT-SCREEN-SAVER
(EE) Failed to load module "kbd" (module does not exist, 0)
(EE) No Input driver matching `kbd'

Presumably this indicates something isn't installed you -- but what is it
I have to emerge to get module 'kbd'?  Or is it more complicated than
that?  Would it help to post a batch of config files and the entire log
file, or would that just be wasting bandwidth?

-- hendrik

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Installation problems

2007-07-18 Thread Hendrik Boom
On Tue, 17 Jul 2007 19:44:32 +0100, Mike Williams wrote:

> 
> Gut reaction, firewire.
> I've seen exactly the same on my own boxes.
> Debian is doing the same too, so I'd just go add a net.eth1 symlink change 
> your config and use that instead, just don't remove firewire networking 
> support, or you ethernet interface may become eth0 (udev might save you).

After my son, Henk Boom, who was an earlier gentoo adopter in my
household, showed me just where the net.eth1 symlink had to go, it all
boots properly.  Thanks.  I had never dreamed that firewire would be
recognised as an ethernet!

- hendrik

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Linux becomes expensive ;)

2007-07-18 Thread Hendrik Boom
On Sun, 03 Jun 2007 12:49:21 -0500, Dan Farrell wrote:

> it takes just as much power to
> spin up the drive as to keep it spinning for a few extra minutes.  

So ... spin it down after a few more minutes?

-- hendrik

> 
> Thanks for the report, I found it very interesting.

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Installation problems

2007-07-17 Thread Hendrik Boom
On Tue, 17 Jul 2007 16:03:57 +, Hendrik Boom wrote:

> 
> It took some trouble -- as of now I only have emerge working in the chroot
> from Debian -- but after installing lvm2 it is not cheerfully recognising
> all the LVM paritions at boot.

Ah! Stupid typo!  it is *NOW* cheerfully recognising all the LVM
partitions at boot.  Why doesn't English have a better Hamming distance
between words?
:-)

-- hendrik

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Installation problems

2007-07-17 Thread Hendrik Boom
On Sun, 15 Jul 2007 22:42:43 +0100, Mike Williams wrote:

> On Sunday 15 July 2007 22:00:15 Hendrik Boom wrote:
>> Fixed /etc/fstab so that it now refers to /dev/lovesong/gentoo.  And fstab
>> gets the message, because it now complains that there's no
>> /dev/lovesong/gentoo.  And when I get a shell, I discover that it's
>> right.  There is now no /etc/lovesong at all.  /dev/mapper exists, but it
>> contains only /dev/mapper/control.
>>
>> using your workaround of changing the pass from 1 to 0 in the /etc/fstab
>> file, it boots.  But I still have no access to the other partitions on
>> the disk.  I still have no /dev/lovesong. except of course that
>> /dev/lovesong/gentoo has been mounted.  And /dev/mapper still contains
>> only /dev/mapper/control.
> 
> Hmm, more interesting.
> Sounds like you don't have lvm2 (sys-fs/lvm2) installed. Genkernel pulls it's 
> own version in to build the initrd/ramfs, but the actual install will need it 
> merged separately to "start" LVM at boot.
> If you get Gentoo booted you could try manually "starting" LVM:
> vgscan
> pvscan
> vgchange -ay
> 
> It's vgchange -ay that makes all logical volumes in all volume groups 
> available, the two scans just makes sure device mapper is aware of all 
> devices and volumes.
> 
> -- 
> Mike Williams

It took some trouble -- as of now I only have emerge working in the chroot
from Debian -- but after installing lvm2 it is not cheerfully recognising
all the LVM paritions at boot.

Now for the next problem.  emerge doesn't work because the net connexion
is down.  Presulably it would be OK if I had a local repository, but iI
don't.

If I ping my internet gateway machine, 172.25.1.1. it tells me 

PING 172.25.1.1 (172.25.1.1) 56(84) bytes of data.

--- 172.25.1.1 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2003ms

whereas when I do the same from Debian, 

PING 172.25.1.1 (172.25.1.1) 56(84) bytes of data.
64 bytes from 172.25.1.1: icmp_seq=1 ttl=255 time=0.811 ms
64 bytes from 172.25.1.1: icmp_seq=2 ttl=255 time=0.364 ms

--- 172.25.1.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.364/0.587/0.811/0.224 ms

Here's the routing table, obtained with route -n

Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
172.25.1.0  0.0.0.0 255.255.255.0   U 0  00 eth0
127.0.0.0   0.0.0.0 255.0.0.0   U 0  00 lo
0.0.0.0 172.25.1.1  0.0.0.0 UG0  00 eth0

And the same from Debian:

Kernel IP routing table
Destination Gateway Genmask Flags Metric RefUse Iface
172.25.1.0  0.0.0.0 255.255.255.0   U 0  00 eth1
0.0.0.0 172.25.1.1  0.0.0.0 UG0  00 eth1

Except for lo (which I can wonder about anon) the most striking difference
is that gentoo uses eth0; whereas Debian uses eth1.

Now as far as I know, there's only one ethernet interface on this machine.
But I could be wrong.  I do know that there's just one place to plug the
cable into the back.

Running ifconfig to find out more, especially to see if the MAC addresses
are different:

On gentoo:

eth0  Link encap:UNSPEC  HWaddr 
00-06-BB-00-16-03-49-D6-00-00-00-00-00-00-00-00  
  inet addr:172.25.1.4  Bcast:172.25.1.255  Mask:255.255.255.0
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000 
  RX bytes:0 (0.0 b)  TX bytes:288 (288.0 b)

loLink encap:Local Loopback  
  inet addr:127.0.0.1  Mask:255.0.0.0
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:4 errors:0 dropped:0 overruns:0 frame:0
  TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0 
  RX bytes:448 (448.0 b)  TX bytes:448 (448.0 b)


and on Debian:

eth1  Link encap:Ethernet  HWaddr 00:0C:6E:50:27:B1
  inet addr:172.25.1.4  Bcast:172.25.1.255  Mask:255.255.255.0
  inet6 addr: fe80::20c:6eff:fe50:27b1/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:33028 errors:0 dropped:0 overruns:0 frame:0
  TX packets:32429 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:26715240 (25.4 MiB)  TX bytes:25032114 (23.8 MiB)
  Interrupt:177 Base address:0xc000

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:54

[gentoo-user] Re: Installation problems

2007-07-15 Thread Hendrik Boom
On Sun, 15 Jul 2007 19:37:57 +, Hendrik Boom wrote:

> On Sat, 14 Jul 2007 20:00:47 +0100, Mike Williams wrote:
> 
>> On Saturday 14 July 2007 18:53:27 Hendrik Boom wrote:
>>> Very interesting.  It gets further with the dolvm2 pernel option (I
>>> specified udev first for good measure, as indicated in the howto, and it
>>> got further.  However, it still fails to handle
>>> /dev/mapper/lovesong-gentoo properly.  fsck complains about it, and I get
>>> to type "shell" for a shell.  There I find that
>>> /dev/mapper/lovesong-mapper does not exost (as testified by ls), but that
>>> it is nonetheless mounted on / (as testified by mount).
>> 
>> OK, that's not exactly what I expected to happen, but I guess the 
>> initrd/ramfs 
>> has the same udev setup as the full system so either the udev and 
>> the "proper" LVM path could be used.
>> I prefer using the "proper" LVM paths, as early udevs won't create the other 
>> nodes and later ones may also not do so (udev is pretty stable now, so I 
>> realise it's highly unlikely).
>> 
>> udev path == /dev/mapper/VG-LV
>> "proper" LVM path == /dev/VG/LV
>> 
>>> This suggests that (a) it was mounted, and (b) something else was mounted
>>> over the path to /dev/mapper/lovesong-mapper afterward.  So something is
>>> clearly finding /dev/lovesong/mapper, and then making it inaccessible.
>> 
>> a and b, the initrd/ramfs is mounted as / from ram by the kernel after it's 
>> booted, the initrd/ramfs does it's stuff, then "pivots" the / device to the 
>> real_root device on the kernel command line.
>> The / device you specify in fstab is never actually mounted, as to read it / 
>> needs to be mounted, so the kernel or initrd/ramfs does it based on the 
>> kernel arguements.
>> As a workaround you can make checkfs not attempt an fsck on the / device. In 
>> fstab set the final column on the / entry to 0, it's almost certainly 1. 
>> This 
>> number defines the order in which devices are fsck'd, 0 means don't do 
>> anything.
> 
> As another workaround I could just continue using Debian etch.  I probably
> have the time to get it fixed right.
> 
>>
>>> By the way, I didn't find a /dev/VG/ directory either.
>> 
>> No /dev/lovesong/ ? Assuming your VolumeGroup is actually called
>> lovesong.
> 
> Yes, there is a /dev/lovesong, on both Debian and gentoo, and even a
> /dev/lovesong/gentoo!  (confusion existed because I once installed a
> Debian system that actually called its newly created volume group "VG".) So
> I have changed all references to /dev/mapper/lovesong-gentoo in the
> menu.lst so they say /dev/lovesong/gentoo.  I *still* get fsck complaining
> about /dev/mapper/lovesong-gentoo, which still does not exits.
>  Where is it getting that name?
> 
> (thinks)
> 
> AH!  From gentoo's /etc/fstab!  Will fix and report back.

Fixed /etc/fstab so that it now refers to /dev/lovesong/gentoo.  And fstab
gets the message, because it now complains that there's no
/dev/lovesong/gentoo.  And when I get a shell, I discover that it's
right.  There is now no /etc/lovesong at all.  /dev/mapper exists, but it
contains only /dev/mapper/control.

using your workaround of changing the pass from 1 to 0 in the /etc/fstab
file, it boots.  But I still have no access to the other partitions on
the disk.  I still have no /dev/lovesong. except of course that
/dev/lovesong/gentoo has been mounted.  And /dev/mapper still contains
only /dev/mapper/control.

-- hendrik

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Installation problems

2007-07-15 Thread Hendrik Boom
On Sat, 14 Jul 2007 20:00:47 +0100, Mike Williams wrote:

> On Saturday 14 July 2007 18:53:27 Hendrik Boom wrote:
>> Very interesting.  It gets further with the dolvm2 pernel option (I
>> specified udev first for good measure, as indicated in the howto, and it
>> got further.  However, it still fails to handle
>> /dev/mapper/lovesong-gentoo properly.  fsck complains about it, and I get
>> to type "shell" for a shell.  There I find that
>> /dev/mapper/lovesong-mapper does not exost (as testified by ls), but that
>> it is nonetheless mounted on / (as testified by mount).
> 
> OK, that's not exactly what I expected to happen, but I guess the 
> initrd/ramfs 
> has the same udev setup as the full system so either the udev and 
> the "proper" LVM path could be used.
> I prefer using the "proper" LVM paths, as early udevs won't create the other 
> nodes and later ones may also not do so (udev is pretty stable now, so I 
> realise it's highly unlikely).
> 
> udev path == /dev/mapper/VG-LV
> "proper" LVM path == /dev/VG/LV
> 
>> This suggests that (a) it was mounted, and (b) something else was mounted
>> over the path to /dev/mapper/lovesong-mapper afterward.  So something is
>> clearly finding /dev/lovesong/mapper, and then making it inaccessible.
> 
> a and b, the initrd/ramfs is mounted as / from ram by the kernel after it's 
> booted, the initrd/ramfs does it's stuff, then "pivots" the / device to the 
> real_root device on the kernel command line.
> The / device you specify in fstab is never actually mounted, as to read it / 
> needs to be mounted, so the kernel or initrd/ramfs does it based on the 
> kernel arguements.
> As a workaround you can make checkfs not attempt an fsck on the / device. In 
> fstab set the final column on the / entry to 0, it's almost certainly 1. This 
> number defines the order in which devices are fsck'd, 0 means don't do 
> anything.

As another workaround I could just continue using Debian etch.  I probably
have the time to get it fixed right.

>
>> By the way, I didn't find a /dev/VG/ directory either.
> 
> No /dev/lovesong/ ? Assuming your VolumeGroup is actually called
> lovesong.

Yes, there is a /dev/lovesong, on both Debian and gentoo, and even a
/dev/lovesong/gentoo!  (confusion existed because I once installed a
Debian system that actually called its newly created volume group "VG".) So
I have changed all references to /dev/mapper/lovesong-gentoo in the
menu.lst so they say /dev/lovesong/gentoo.  I *still* get fsck complaining
about /dev/mapper/lovesong-gentoo, which still does not exits.
 Where is it getting that name?

(thinks)

AH!  From gentoo's /etc/fstab!  Will fix and report back.

-- hendrik

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Installation problems

2007-07-14 Thread Hendrik Boom
On Sat, 14 Jul 2007 13:28:00 +0100, Mike Williams wrote:

> On Friday 13 July 2007 20:19:33 Hendrik Boom wrote:
>> A few months ago I tried installing gentoo.  It mostly succeedes, but I
>> was unable to boot the new system.
>>
>> When I boot, it fails as follows:
>> >> Activating mdev
>> >> Determining root device
>>
>> !! Block device /dev/mapper/lovesong-gentoo is not a valid block device
>> !! The root block device is unspecified or not detected
>> Please specify a device to boot, or "shell" for a shell
>> boot() ::
> 
> Have you looked at:
> http://gentoo-wiki.com/HOWTO_Install_Gentoo_on_an_LVM2_root_partition
> ?
> 
> In all the noise, and seemingly outdated info, I picked out the use of 
> the "proper" LVM path (/dev/VG/LV), and the dolvm2 kernel option.

Very interesting.  It gets further with the dolvm2 pernel option (I
specified udev first for good measure, as indicated in the howto, and it
got further.  However, it still fails to handle
/dev/mapper/lovesong-gentoo properly.  fsck complains about it, and I get
to type "shell" for a shell.  There I find that
/dev/mapper/lovesong-mapper does not exost (as testified by ls), but that
it is nonetheless mounted on / (as testified by mount).

This suggests that (a) it was mounted, and (b) something else was mounted
over the path to /dev/mapper/lovesong-mapper afterward.  So something is
clearly finding /dev/lovesong/mapper, and then making it inaccessible.

By the way, I didn't find a /dev/VG/ directory either.

Here's a hand-transcribed screen dump extract:

Let's explore the strangeness.

Finaluizizing udev configuration ...[ok]
Mounting devpts at /dev/pts ...[ok]
Checking root filesystem ...
fsck.ext3: No such file or directory while trying to open
/dev/mapper/lovesong-gentoo
/dev/mapper/lovesong-gentoo:
The superblock could not he rad or does not describe a correct ext2
filesystem.  if the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate
superblock:
e2fsck -b 8193 

 * Filesystem couldn't be fixed :(   [ !! ]
Give root password for maintenance
(or type Control-D to continue):
(none) ~ # ls /dev/mapper/
control
(none) ~ #l mount
/dev/mapper/lovesong-gentoo on / type ext2 (rw,noatime)
/dev/hda6 on /boot type ext2 (rw,noatime)
(none) ~ # ls /
bin   dev  fooo  libmnt  proc  root  sys  tmp  var
boot etc home lost+found opt realboot sbin tboot usr
(none) ~ # ls /dev/mapper/lovesong-gentoo
ls: cannot access /dev/mapper/lovesong-gentoo: No such file or directory
(none) ~ # 

-- hendrik

>
> --
> Mike Williams

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Re: Installation problems

2007-07-14 Thread Hendrik Boom
On Fri, 13 Jul 2007 14:49:45 -0700, ds wrote:

> On 7/13/07, Hendrik Boom <[EMAIL PROTECTED]> wrote:
>> A few months ago I tried installing gentoo.  It mostly succeedes, but I
>> was unable to boot the new system.
>>
>> When I boot, it fails as follows:
>>
>> >> Activating mdev
>> >> Determining root device
>> !! Block device /dev/mapper/lovesong-gentoo is not a valid block device
>> !! The root block device is unspecified or not detected
>> Please specify a device to boot, or "shell" for a shell
>> boot() ::
>>
>>
>> Now I originally installed this system using a chroot from a Debian etch
>> system.  I used genkernel to generate the kernel.  As far as I can
>> remember, I did specified the --lvm option.
>>
>> Now perhaps the kernel is not OK because I ran genkernel in a chroot
>> running on a Debian kernel...
>>
>> Perhaps I chose the wront options...
>>
>> Perhaps I can fix things by rerunning genkernel with different options...
>>
>> Or perhaps I need to start all over from a full-fledged gentoo install CD.
>>
>> Please advise.
>>
>> -- hendrik
>>
>> P.S.  Some Gory Details:
> 
> hendrik -
> 
> My gut reaction is that you should just start over and install from
> scratch.  I have only installed Gentoo by booting from the Gentoo
> install CD in the past, so I'm not familiar with using chroot from a
> Debian system.  I think the best and most well documented way to do a
> Gentoo install is to simply follow the handbook
> (http://www.gentoo.org/doc/en/handbook/index.xml).

That's what I was doing, except that I chrooted from Debian instead of
from the gentoo boot disk.  I suspect the difference is that I was running
a Debian kernel when running genkernel; if genkernel asks the running
kernel what options it was compiled with (which I believe it does), it
may not have gotten the information it needed.

>
> It is very easy to install Gentoo along with other OS's.  You just need
> to have a partition or two handy.  In my case, when I'm rebuilding my
> system from scratch I've always installed Gentoo third (Windows XP
> first, openSUSE second, then Gentoo).  I use two partitions for Gentoo,
> a /boot partition and a / partition, and I use the swap partition that
> was created for openSUSE for Gentoo as well. Then, I don't install grub
> in Gentoo, I simply add a Gentoo entry to the grub menu in openSUSE.
> 
> I haven't personally used LVM with Gentoo, but I have set up an Ubuntu
> Server box with LVM and my experience is that it is best not to bother
> with LVM unless you really know you're going to need it.  In any case,
> the documentation I was following for Ubuntu required at least the /boot
> partition be non-LVM for grub to read the kernel off of it, but this may
> be due to a lack of knowledge in the workings of grub and LVM.

LVM works fine with Debian.  I figure I just need to learn what to do to
gentoo that Debian does automatically.  And you're right.  Booting from
the installation disk will probably help.  It shouldn't be necessary, but
I certainly will try it.

I do expect to need LVM.  Lack of flexibility in partition resizing was the
big problem with my previous set of OS installations on this machine (with
a smaller hard disk).

I suspect the problem with the kernel I'm using is that in some way it
does not properly recognize lvm -- perhaps because something isn't
compiled in, or because it needs an option to trigger it to look for lvm
volumes.  My /boot partition is an ordinary partition.  It's my /
partition that's LVM.

Debian etch is set up in the same way, with an ordinary secondary
partition for /boot, and an LVM for /.

(Users' home directories are on another machine entirely; will be mounted
using NFS.)

-- hendrik

-- 
[EMAIL PROTECTED] mailing list



[gentoo-user] Installation problems

2007-07-13 Thread Hendrik Boom
A few months ago I tried installing gentoo.  It mostly succeedes, but I
was unable to boot the new system.

When I boot, it fails as follows:

>> Activating mdev
>> Determining root device
!! Block device /dev/mapper/lovesong-gentoo is not a valid block device
!! The root block device is unspecified or not detected
Please specify a device to boot, or "shell" for a shell
boot() ::


Now I originally installed this system using a chroot from a Debian etch
system.  I used genkernel to generate the kernel.  As far as I can
remember, I did specified the --lvm option.

Now perhaps the kernel is not OK because I ran genkernel in a chroot
running on a Debian kernel...

Perhaps I chose the wront options...

Perhaps I can fix things by rerunning genkernel with different options...

Or perhaps I need to start all over from a full-fledged gentoo install CD.

Please advise.

-- hendrik

P.S.  Soime Gory Details:
\
Here's the start of my /boot/gfub/menu.lst (on the boot partition for the
Debian etch system):


# menu.lst - See: grub(8), info grub, update-grub(8)
#grub-install(8), grub-floppy(8),
#grub-md5-crypt, /usr/share/doc/grub
#and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 5

# Pretty colours
color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#  password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root  (hd0,0)
# makeactive
# chainloader   +1
#
# title Linux
# root  (hd0,1)
# kernel/vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##  kopt_2_6_8=root=/dev/hdc1 ro
##  kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/mapper/lovesong-etch ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,4)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##  alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##  lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=

## should update-grub lock old automagic boot options
## e.g. lockold=false
##  lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##  altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##  howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##  memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title   Debian GNU/Linux, kernel 2.6.18-4-486
root(hd0,4)
kernel  /vmlinuz-2.6.18-4-486 root=/dev/mapper/lovesong-etch ro 
initrd  /initrd.img-2.6.18-4-486
savedefault

title   Debian GNU/Linux, kernel 2.6.18-4-486 (single-user mode)
root(hd0,4)
kernel  /vmlinuz-2.6.18-4-486 root=/dev/mapper/lovesong-etch ro single
initrd   

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] 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 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 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 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



[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] 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  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



[gentoo-user] Re: [gentoo-installer] emerge gives traceback during gentoo installation

2007-01-22 Thread hendrik
On Mon, Jan 22, 2007 at 02:44:11PM -0800, Zac Medico wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> Hendrik Boom wrote:
> >>>> Emerging (2 of 2) app-admin/syslog-ng-1.6.9 to /
> > Traceback (most recent call last):
> >   File "/usr/bin/emerge", line 3545, in ?
> > mydepgraph.merge(pkglist)
> >   File "/usr/bin/emerge", line 2075, in merge
> > 
> > retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug,tree="porttree")
> >   File "/usr/lib/portage/pym/portage.py", line 2948, in doebuild
> > if need_distfiles and not fetch(fetchme, mysettings, listonly=listonly, 
> > fetchonly=fetchonly):
> >   File "/usr/lib/portage/pym/portage.py", line 1954, in fetch
> > mydigests = Manifest(
> >   File "/usr/lib/portage/pym/portage_manifest.py", line 119, in __init__
> > self._read()
> >   File "/usr/lib/portage/pym/portage_manifest.py", line 179, in _read
> > self._readDigests(myhashdict=self.fhashdict)
> >   File "/usr/lib/portage/pym/portage_manifest.py", line 148, in _readDigests
> > myhashdict=myhashdict)
> >   File "/usr/lib/portage/pym/portage_manifest.py", line 164, in 
> > _readManifest
> > self._parseDigests(fd, myhashdict=myhashdict, **kwargs)
> >   File "/usr/lib/portage/pym/portage_manifest.py", line 198, in 
> > _parseDigests
> > for myentry in self._parseManifestLines(mylines):
> >   File "/usr/lib/portage/pym/portage_manifest.py", line 184, in 
> > _parseManifestLines
> > for myline in mylines:
> > IOError: [Errno 5] Input/output error
> 
> That IOError occurs when portage is trying to read one of the
> $PORTDIR/app-admin/syslog-ng/files/digest-* files.  There appears to
> be some type of filesystem and/or disk corruption.
> 
> Zac

Yesss I should have guessed.  That file system had been hit previously
by Debian bug 401006, and somehow escaped being fsck'd.  Evidently it
hadn't escaped being f*ck'd

Thanks.

-- hendrik
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] emerge gives backtrace during first-time install of gentoo in a Debian sarge chroot.

2007-01-22 Thread Hendrik Boom
iled to mount /boot

There was still a directory /boot on the intended partition into which I
was installing gentoo, so I presumed it would use that one for /boot, as I
intended, and just let it go on.

(5) I found the installation of locales and keymaps.  None of the available
locales had "UTF-8" in their names, even though some of the suggested ones
did.  Should I presume that the UTF-8 adaptation is created by the locale
generating software?  What I want is a system that uses UTF-8 internally
and keyboards and consoles that accept input in several languages --
English, French, math, Japanese, and mathematics.  I guesses some entries
and went on -- confident that this can be fixed after installation.

What further information should I dig out to help track down the
problem?

-- hendrik

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Do Debian's 2.6.18 problems exist in gentoo?

2007-01-20 Thread Hendrik Boom
I'm in the process of installing gentoo now, in the hope of getting it to
work more reliably (and more up-to-date) than Debian.  Debian's 2.6.18-3
kernel includes backported msync-optimising patches from 2.19 that don't
work properly and have the effect of sometimes causing serious file-system
damage. (see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=401006 if
you're curious about gory details).

What I was wondering was whether a similar misfortune has befallen
gentoo's 2.6.18 kernel, or whether gentoo's kernel developers have just
left the 2.6.19 patches in 2.6.19.

Maybe I'm being silly asking about this, but I have become paranoid about
severe file system damage.

-- hendrik


-- 
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"
> > > ModelName"NEC 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] 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



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.153&content-type=text/x-cvsweb-markup&cvsroot=glibc

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


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] asus acpi

2005-07-21 Thread Hendrik Greving

Hi,

I get an oops using asus_acpi. I can post the output later. If I use 
asus_acpi as a module, I get the "oops" once the first time I load the 
module. If I "modprobe asus_acpi" again, it works(!). In case I do 
compile asus_acpi into the kernel, I get kernel panic (I guess this 
covers the behaviour that something fails first).


- I use a Samsung P35 Laptop
- my kernel is compiled for Pentium-M (tried x86 either)
- use 2.6.12-gentoo-r6

Again, can post the oops later (don't have it on this machine). Is this 
a known issue (as I read a lot about acpi problems). What version works? 
Do I have to pass module options? Please consider I'm not very familiar 
with deep acpi module stuff.


cheers,
Hen

--
gentoo-user@gentoo.org mailing list