Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-11 Thread Amit Dor-Shifer



On 07/09/10 20:37, James wrote:

Amit Dor-Shiferamitdsat  oversi.com  writes:


   

Can anyone recommend a tool that can parse networking info from a/m
file, so one can use it to query, e.g. what is the static IP configured
on eth0?
Amit
 

/sbin/ifconfig -a


???

if not, look at the iproute, netstat, etc etc
commands...

hth,
James
   
AFAIK, all those would only work once the interface is up. They don't 
have the capability to just read cfg and emit what's there is some 
usable form.

Amit






   




Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-11 Thread Amit Dor-Shifer



On 07/08/10 15:13, Remy Blank wrote:

Amit Dor-Shifer wrote:
   

Can anyone recommend a tool that can parse networking info from a/m
file, so one can use it to query, e.g. what is the static IP configured
on eth0?
 

bash?

No, I'm not joking. The file is a bash script, and hence can just be
sourced by another bash script, which could then print the relevant
information in any desired format.

-- Remy

   

I'll try it out.
However, as bash doesn't know net syntax, I'd still have to go the 
extra-mile for stuff such as extracting IP from the config_ variable, 
when that also contains a netmask (e.g. CIDR notation or netmask 
definition following the ip).

Amit



[gentoo-user] OT: tool for reading /etc/conf.d/net?

2010-07-08 Thread Amit Dor-Shifer
Can anyone recommend a tool that can parse networking info from a/m 
file, so one can use it to query, e.g. what is the static IP configured 
on eth0?

Amit



Re: [gentoo-user] Re: X hoggs CPU (xorg-server-1.7.6)

2010-05-17 Thread Amit Dor-Shifer

# print modification TSs, to verify log refers to said conf file
# stat -c %y /etc/X11/xorg.conf /var/log/Xorg.0.log
2010-05-16 11:01:33.231512534 +0300
2010-05-16 12:23:02.502995953 +0300


On 05/16/10 22:15, walt wrote:

On 05/16/2010 01:12 AM, Amit Dor-Shifer wrote:





Explicitly setting Driver to evdev (to both mouse and keyboard 
sections) doesn't
 fix the unexplained messages in Xorg.0.log. At least X manages to 
start, though.


I'm expecting that your newest Xorg log will be different from the 
earlier ones.

Which messages do you mean?

Xorg.0.log
(**) Option xkb_rules evdev
(**) Option xkb_model pc104
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll
/Xorg.0.log

That quite the same as those I had in the beginning.


I'm now noticing another problem: X's CPU usage sky-rockets when 
using input devices.
 Especially mouse: If I move my pointer around the screen, hovering 
over some windows

 in the process, I get 50% CPU in 'top'.

I've never seen that before.  Does hovering over xev print any messages?


Well, I'm less inclined to think now that X is responsible for the high 
CPU load. I wasn't too knowledgeable about the relationships between X 
and its clients when I made my initial assumption. It was more like I 
startx + I move mouse + CPU shoots-up = it's X.


Looks more like kde is rocking my CPU. Indeed, xev doesn't print 
anything while I'm generating high CPU with mouse movements. Also, I had 
a notion twm didn't exhibit the phenomenon as long as I didn't execute 
any kde apps. But I'm not 100% sure about the latter experiment.


I'm runing KDE 3.5.10.

Amit

X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-gentoo-r4 x86_64 
Current Operating System: Linux amit0 2.6.32-gentoo-r7 #1 SMP Mon May 10 
22:08:41 IDT 2010 x86_64
Kernel command line: root=/dev/ram0 init=/linuxrc real_root=/dev/sda3
Build Date: 10 May 2010  12:28:34PM
 
Current version of pixman: 0.17.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Sun May 16 12:23:01 2010
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout X.org Configured
(**) |--Screen Screen0 (0)
(**) |   |--Monitor Monitor0
(**) |   |--Device Card0
(**) |--Input Device Mouse0
(**) |--Input Device Keyboard0
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory /usr/share/fonts/TTF/ does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/OTF does not exist.
Entry deleted from font path.
(**) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/,
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
(**) ModulePath set to /usr/lib64/xorg/modules
(II) Loader magic: 0x7bc200
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 6.0
X.Org XInput driver : 7.0
X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI: (0:0:1:3) 10de:03f4:1043:8234 nVidia Corporation MCP61 SMU rev 162, 
Mem @ 0x8000/524288
(--) PCI:*(0:2:0:0) 10de:0163:107d:0d51 nVidia Corporation NV44 [GeForce 6200 
LE] rev 161, Mem @ 0xdf00/16777216, 0xc000/268435456, 
0xde00/16777216, BIOS @ 0x/131072
(II) Open ACPI successful (/var/run/acpid.socket)
(II) extmod will be loaded. This was enabled by default and also specified in 
the config file.
(II) dbe will be loaded. This was enabled by default and also specified in 
the config file.
(II) glx will be loaded. This was enabled by default and also specified in 
the config file.
(II) record will be loaded. This was enabled by default and also specified in 
the config file.
(II) dri will be loaded. This was enabled by default and also specified in 
the config file.
(II) dri2 will be loaded. This was enabled by default and also specified in 
the config file.
(II) LoadModule: extmod
(II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor=X.Org Foundation
compiled for 1.7.6, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: record
(II) Loading /usr/lib64/xorg/modules/extensions/librecord.so

Re: [gentoo-user] Re: X hoggs CPU (xorg-server-1.7.6)

2010-05-17 Thread Amit Dor-Shifer

One other thing:

# hal-device|grep -C 10 \,ru
  net.linux.ifindex = 1  (0x1)  (int)

23: udi = 
'/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'

  linux.hotplug_type = 2  (0x2)  (int)
  linux.subsystem = 'input'  (string)
  input.device = '/dev/input/event2'  (string)
  input.product = 'AT Translated Set 2 keyboard'  (string)
  info.addons.singleton = { 'hald-addon-input' } (string list)
  input.xkb.rules = 'xorg'  (string)
*  input.xkb.model = 'pc104'  (string)
  input.xkb.layout = 'en_US,ru'  (string)
  input.xkb.variant = ',winkeys'  (string)
  input.x11_driver = 'evdev'  (string)*
  info.subsystem = 'input'  (string)
  input.originating_device = 
'/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)

  info.product = 'AT Translated Set 2 keyboard'  (string)
  info.udi = 
'/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port_logicaldev_input'  
(string)
  linux.sysfs_path = 
'/sys/devices/platform/i8042/serio0/input/input2/event2'  (string)
  info.parent = 
'/org/freedesktop/Hal/devices/platform_i8042_i8042_KBD_port'  (string)

  input.xkb.options = 'grp:shift_toggle,grp_led:scroll'  (string)
  info.category = 'input'  (string)

Perhaps HAL is responsible for generating the log messages?

Amit



On 05/17/10 09:42, Amit Dor-Shifer wrote:

# print modification TSs, to verify log refers to said conf file
# stat -c %y /etc/X11/xorg.conf /var/log/Xorg.0.log
2010-05-16 11:01:33.231512534 +0300
2010-05-16 12:23:02.502995953 +0300


On 05/16/10 22:15, walt wrote:

On 05/16/2010 01:12 AM, Amit Dor-Shifer wrote:





Explicitly setting Driver to evdev (to both mouse and keyboard 
sections) doesn't
 fix the unexplained messages in Xorg.0.log. At least X manages to 
start, though.


I'm expecting that your newest Xorg log will be different from the 
earlier ones.

Which messages do you mean?

Xorg.0.log
(**) Option xkb_rules evdev
(**) Option xkb_model pc104
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll
/Xorg.0.log

That quite the same as those I had in the beginning.


I'm now noticing another problem: X's CPU usage sky-rockets when 
using input devices.
 Especially mouse: If I move my pointer around the screen, hovering 
over some windows

 in the process, I get 50% CPU in 'top'.

I've never seen that before.  Does hovering over xev print any messages?


Well, I'm less inclined to think now that X is responsible for the 
high CPU load. I wasn't too knowledgeable about the relationships 
between X and its clients when I made my initial assumption. It was 
more like I startx + I move mouse + CPU shoots-up = it's X.


Looks more like kde is rocking my CPU. Indeed, xev doesn't print 
anything while I'm generating high CPU with mouse movements. Also, I 
had a notion twm didn't exhibit the phenomenon as long as I didn't 
execute any kde apps. But I'm not 100% sure about the latter experiment.


I'm runing KDE 3.5.10.

Amit




Re: [gentoo-user] Re: X hoggs CPU (xorg-server-1.7.6)

2010-05-17 Thread Amit Dor-Shifer



On 05/17/10 09:42, Amit Dor-Shifer wrote:
Well, I'm less inclined to think now that X is responsible for the 
high CPU load. I wasn't too knowledgeable about the relationships 
between X and its clients when I made my initial assumption. It was 
more like I startx + I move mouse + CPU shoots-up = it's X.


Looks more like kde is rocking my CPU. Indeed, xev doesn't print 
anything while I'm generating high CPU with mouse movements. Also, I 
had a notion twm didn't exhibit the phenomenon as long as I didn't 
execute any kde apps. But I'm not 100% sure about the latter experiment.


I'm runing KDE 3.5.10.

Amit


a. I had the nv driver instead of the nvidia driver loaded.
b. openGL was assigned to xorg. 'eselect opengl set' to nvidia fixed that.

X still goes as high as 30%. Still looks suspicious, but more acceptable.

Amit




Re: [gentoo-user] X hoggs CPU (xorg-server-1.7.6) (was: xorg-server: Pressing 'down'/'right ctrl' keys yields newline)

2010-05-16 Thread Amit Dor-Shifer



On 05/14/10 00:47, walt wrote:

On 05/13/2010 03:22 AM, Amit Dor-Shifer wrote:



On 05/13/10 00:54, walt wrote:

On 05/12/2010 05:25 AM, Amit Dor-Shifer wrote:

Hi all.
After updating world, xorg-1.5.3-r6 to 1.7.6 among others, I'm now 
faced with a/m issue.

1. left ctrl key works fine, so does the down arrow key on the numpad.
2. Seems like the down key generates a double sequence: both the 
down event and a newline.

I've no idea how to proceed w/this. Any clues would be appreciated.


With every version of X11, the amount of stuff in xorg.conf gets less,
as part of the xorg design. I can see from your xorg.log that you have
things in xorg.conf that shouldn't be there any longer. Specifically,
you seem to be using the keyboard and mouse drivers *and* evdev at the
same time, which is wrong -- evdev has replaced the mouse and keyboard
drivers, and you don't need an Input device section for either of 
them

now.


I should have said *I* don't need an Input device section any more :)

Actually I moved some of my custom stuff from xorg.conf to the hal config
files -- but hal is deprecated now and I should it back to xorg.conf 
again.

Thanks for the reminder.


I suggest you generate a new xorg.conf by running X -configure and
use the result as a good place to add a few custom things like these:
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll



Thanks. X -configure solved it.
As long as we're at the subject:Those options you're mentioning, 
would they go under the Keyboard0 device?

I Added some options there:
Section InputDevice
Identifier Keyboard0
  Driver kbd *** kbd driver is obsolete, use evdev or just 
delete this line

Simply deleting this line causes X to fail startup:
Xorg.0.log
(==) Using config file: /etc/X11/xorg.conf
Data incomplete in file /etc/X11/xorg.conf
InputDevice section Keyboard0 must have a Driver line.
(EE) Problem parsing the config file
(EE) Error parsing the config file
/Xorg.0.log

Explicitly setting Driver to evdev (to both mouse and keyboard 
sections) doesn't fix the unexplained messages in Xorg.0.log. At least X 
manages to start, though.


Depending on your configuration, there may be some font and/or 
keyboard stuff in your own
home directory.  You may need to search or grep some subdirectories to 
find it if it's not

obvious.

Found nothing so-far...

I'm now noticing another problem: X's CPU usage sky-rockets when using 
input devices. Especially mouse: If I move my pointer around the screen, 
hovering over some windows in the process, I get 50% CPU in 'top'.


Amit



Re: [gentoo-user] [SOLVED] xorg-server: Pressing 'down'/'right ctrl' keys yields newline

2010-05-13 Thread Amit Dor-Shifer



On 05/13/10 00:54, walt wrote:

On 05/12/2010 05:25 AM, Amit Dor-Shifer wrote:

Hi all.
After updating world, xorg-1.5.3-r6 to 1.7.6 among others, I'm now 
faced with a/m issue.

1. left ctrl key works fine, so does the down arrow key on the numpad.
2. Seems like the down key generates a double sequence: both the 
down event and a newline.


This doesn't happen in terminal mode, nor in firefox (3.6.3) or 
amarok, but does occur in konsole, thunderbird-bin, kwrite, oowriter 
 eclipse-3.5.


Attached is xorg log.

amit0 ~ # qlist -Iv hal
app-misc/hal-info-20090716
sys-apps/hal-0.5.13-r2

I've no idea how to proceed w/this. Any clues would be appreciated.


With every version of X11, the amount of stuff in xorg.conf gets less,
as part of the xorg design.  I can see from your xorg.log that you have
things in xorg.conf that shouldn't be there any longer.  Specifically,
you seem to be using the keyboard and mouse drivers *and* evdev at the
same time, which is wrong --  evdev has replaced the mouse and keyboard
drivers, and you don't need an Input device section for either of them
now.

I suggest you generate a new xorg.conf by running X -configure and
use the result as a good place to add a few custom things like these:
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll



Thanks. X -configure solved it.
As long as we're at the subject:Those options you're mentioning, would 
they go under the Keyboard0 device?

I Added some options there:
Section InputDevice
Identifier  Keyboard0
Driver  kbd
# added - begin
Option xkb_layout en_US,il
Option xkb_variant ,winkeys
Option xkb_options grp:rwin_toggle -option grp_led:scroll us,il
Option xkb_options grp:lwin_toggle -option grp_led:scroll us,il
# added - end
EndSection

, yet I don't see evidence of them getting read in Xorg.0.log.
Rather, I see the following:

Xorg.0.log
(II) XINPUT: Adding extended input device AT Translated Set 2 keyboard 
(type: KEYBOARD)

(**) Option xkb_rules evdev
(**) Option xkb_model pc104
(**) Option xkb_layout en_US,ru
(**) Option xkb_variant ,winkeys
(**) Option xkb_options grp:shift_toggle,grp_led:scroll
/Xorg.0.log

Also, X complains (WW) The directory /usr/share/fonts/TTF/ does not 
exist., I actually removed that reference from /etc/x11/xorg.conf. Yes 
it still insists on reading it.


Is there some cfg cache used by X, perhaps?

Amit

X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-gentoo-r4 x86_64 
Current Operating System: Linux amit0 2.6.32-gentoo-r7 #1 SMP Mon May 10 
22:08:41 IDT 2010 x86_64
Kernel command line: root=/dev/ram0 init=/linuxrc real_root=/dev/sda3
Build Date: 10 May 2010  12:28:34PM
 
Current version of pixman: 0.17.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Thu May 13 13:10:00 2010
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout X.org Configured
(**) |--Screen Screen0 (0)
(**) |   |--Monitor Monitor0
(**) |   |--Device Card0
(**) |--Input Device Mouse0
(**) |--Input Device Keyboard0
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory /usr/share/fonts/TTF/ does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/OTF does not exist.
Entry deleted from font path.
(**) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/,
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
(**) ModulePath set to /usr/lib64/xorg/modules
(WW) AllowEmptyInput is on, devices using drivers 'kbd', 'mouse' or 'vmmouse' 
will be disabled.
(WW) Disabling Mouse0
(WW) Disabling Keyboard0
(II) Loader magic: 0x7bc200
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 6.0
X.Org XInput driver : 7.0
X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI: (0:0:1:3) 10de:03f4:1043:8234 nVidia Corporation MCP61 SMU rev 162, 
Mem @ 0x8000/524288
(--) PCI:*(0:2:0:0) 10de:0163:107d:0d51 nVidia Corporation NV44 [GeForce 6200 
LE] rev 161, Mem @ 0xdf00/16777216, 0xc000/268435456, 
0xde00/16777216, BIOS @ 0x/131072
(II) Open ACPI successful (/var/run/acpid.socket)
(II) extmod will be loaded. This was enabled by default and also specified in 
the config file.
(II) dbe will be loaded. This was enabled by default and also specified in 
the config file.
(II) glx will be loaded. This was enabled by default and also specified

[gentoo-user] xorg-server: Pressing 'down'/'right ctrl' keys yields newline

2010-05-12 Thread Amit Dor-Shifer

Hi all.
After updating world,  xorg-1.5.3-r6 to 1.7.6 among others, I'm now 
faced with a/m issue.

1. left ctrl key works fine, so does the down arrow key on the numpad.
2. Seems like the down key generates a double sequence: both the 
down event and a newline.


This doesn't happen in terminal mode, nor in firefox (3.6.3) or amarok, 
but does occur in konsole, thunderbird-bin, kwrite, oowriter  eclipse-3.5.


Attached is xorg log.

amit0 ~ # qlist -Iv hal
app-misc/hal-info-20090716
sys-apps/hal-0.5.13-r2

I've no idea how to proceed w/this. Any clues would be appreciated.

10x,
Amit


X.Org X Server 1.7.6
Release Date: 2010-03-17
X Protocol Version 11, Revision 0
Build Operating System: Linux 2.6.30-gentoo-r4 x86_64 
Current Operating System: Linux amit0 2.6.32-gentoo-r7 #1 SMP Mon May 10 
22:08:41 IDT 2010 x86_64
Kernel command line: root=/dev/ram0 init=/linuxrc real_root=/dev/sda3
Build Date: 10 May 2010  12:28:34PM
 
Current version of pixman: 0.17.2
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: /var/log/Xorg.0.log, Time: Wed May 12 13:34:21 2010
(==) Using config file: /etc/X11/xorg.conf
(==) ServerLayout X.org Configured
(**) |--Screen Screen0 (0)
(**) |   |--Monitor Monitor0
(**) |   |--Device Card0
(**) |--Screen Screen1 (1)
(**) |   |--Monitor Monitor1
(**) |   |--Device Card1
(**) |--Input Device Mouse0
(**) |--Input Device Keyboard0
(**) Option AllowEmptyInput false
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory /usr/share/fonts/TTF/ does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/OTF does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/CID/ does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/TTF/ does not exist.
Entry deleted from font path.
(WW) The directory /usr/share/fonts/OTF does not exist.
Entry deleted from font path.
(**) FontPath set to:
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/,
/usr/share/fonts/misc/,
/usr/share/fonts/Type1/,
/usr/share/fonts/100dpi/,
/usr/share/fonts/75dpi/
(==) ModulePath set to /usr/lib64/xorg/modules
(**) Extension Composite is enabled
(II) Loader magic: 0x7bc200
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.4
X.Org Video Driver: 6.0
X.Org XInput driver : 7.0
X.Org Server Extension : 2.0
(--) using VT number 7

(--) PCI: (0:0:1:3) 10de:03f4:1043:8234 nVidia Corporation MCP61 SMU rev 162, 
Mem @ 0x8000/524288
(--) PCI:*(0:2:0:0) 10de:0163:107d:0d51 nVidia Corporation NV44 [GeForce 6200 
LE] rev 161, Mem @ 0xdf00/16777216, 0xc000/268435456, 
0xde00/16777216, BIOS @ 0x/131072
(II) Open ACPI successful (/var/run/acpid.socket)
(II) extmod will be loaded. This was enabled by default and also specified in 
the config file.
(II) dbe will be loaded. This was enabled by default and also specified in 
the config file.
(II) glx will be loaded. This was enabled by default and also specified in 
the config file.
(II) record will be loaded. This was enabled by default and also specified in 
the config file.
(II) dri will be loaded. This was enabled by default and also specified in 
the config file.
(II) dri2 will be loaded by default.
(II) LoadModule: extmod
(II) Loading /usr/lib64/xorg/modules/extensions/libextmod.so
(II) Module extmod: vendor=X.Org Foundation
compiled for 1.7.6, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension MIT-SCREEN-SAVER
(II) Loading extension XFree86-VidModeExtension
(II) Loading extension XFree86-DGA
(II) Loading extension DPMS
(II) Loading extension XVideo
(II) Loading extension XVideo-MotionCompensation
(II) Loading extension X-Resource
(II) LoadModule: dbe
(II) Loading /usr/lib64/xorg/modules/extensions/libdbe.so
(II) Module dbe: vendor=X.Org Foundation
compiled for 1.7.6, module version = 1.0.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension DOUBLE-BUFFER
(II) LoadModule: record
(II) Loading /usr/lib64/xorg/modules/extensions/librecord.so
(II) Module record: vendor=X.Org Foundation
compiled for 1.7.6, module version = 1.13.0
Module class: X.Org Server Extension
ABI class: X.Org Server Extension, version 2.0
(II) Loading extension RECORD
(II) LoadModule: xtrap
(WW) Warning, couldn't open module xtrap
(II) UnloadModule: xtrap
(EE) Failed to load module xtrap (module does not exist, 0)
(II) LoadModule: dri

Re: [gentoo-user] How can I control ttyS0 respawning speed?

2010-04-25 Thread Amit Dor-Shifer



Jarry wrote:

On 21. 4. 2010 9:43, Amit Dor-Shifer wrote:

Jarry wrote:


s0:12345:respawn:/sbin/agetty 38400 ttyS0 vt100
It mostly works, with one exception: right after boot-up
I get this message:

INIT: ID s0 respawning too fast: disabled for 5 minutes

How can I control that respawn speed, or prohibit this
behavior (disabling ttyS0 for 5min)? I do not like waiting
5min to log in, after I restarted server...


Don't know the answer to yr question. But I'm also not sure if you're
asking the right question.
When I last saw respawning too fast: disabled for 5 minutes, it was
actually an issue with the spawned process not being able to start. I'm
therefore suggesting you'd want to consider checking why agetty cannot
run, rather than working around init's behavior.
Amit


You may be right, but I did not find any clue as why is agetty
spawning too fast. I just noticed it happens only during boot-up,
with probability about 1:5. Maybe some starting processes are
conflicting with agetty. I do not think it is very serious problem,
as agetty on ttyS0 is always respawned after those 5min. All I want
is to reduce somehow those 5min time...

Jarry

Well then, as far as I can see, the 5 min. timeout is hard-coded in 
/sbin/init.

Amit



Re: [gentoo-user] How can I control ttyS0 respawning speed?

2010-04-21 Thread Amit Dor-Shifer



Jarry wrote:

Hi,
I have set-up serial console on my server in /etc/inittab:

s0:12345:respawn:/sbin/agetty 38400 ttyS0 vt100

It mostly works, with one exception: right after boot-up
I get this message:

INIT: ID s0 respawning too fast: disabled for 5 minutes

Of course, I can see this only on attached monitor, because
ttyS0 is dead. After those 5min ttyS0 is again up/running
and I can finally log in. I tried lowering port speed
down to 9600, but it does not make any difference...

How can I control that respawn speed, or prohibit this
behavior (disabling ttyS0 for 5min)? I do not like waiting
5min to log in, after I restarted server...

Jarry

Don't know the answer to yr question. But I'm also not sure if you're 
asking the right question.
When I last saw respawning too fast: disabled for 5 minutes, it was 
actually an issue with the spawned process not being able to start. I'm 
therefore suggesting you'd want to consider checking why agetty cannot 
run, rather than working around init's behavior.

Amit



Re: [gentoo-user] Questions for my first ebuild

2010-04-18 Thread Amit Dor-Shifer



Walter Dnes wrote:

  I intend to get the Silicon Dust HDHomerun dual tuner box.  It has a
linux library and CLI plus a separate gtk+ GUI.  The linux source comes
with a makefile that puts stuff in /usr/local.  But I want at least a
wrapper ebuild so that Portage knows about the files, and can manage
them.  I'd prefer to write my own ebuild rather than depend on somebody
else to always have the most recent version supported somwehere in
layman.  I've RTFM'd a lot, including
http://devmanual.gentoo.org/ebuild-writing/index.html but am still
unsure about a few things.  Here's my setup so far...

* The latest file is
http://download.silicondust.com/hdhomerun/libhdhomerun_20100213.tgz
(underscore instead of hyphen, bleagh).
* I've set PORTDIR_OVERLAY=/usr/local/portage in /etc/make.conf
* I've actually created /usr/local/portage/media-tv
* my ebuild file in media-tv is named libhdhomerun-20100213.ebuild
* here it is so far...

# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION=HD Homerun networked TV tuner base library and API
ACTUAL_P=${PN}_${PV}
SRC_URI=http://download.silicondust.com/hdhomerun/${ACTUAL_P}.tgz;
HOMEPAGE=http://www.silicondust.com/downloads/linux;
KEYWORDS=x86
SLOT=0
LICENSE=LGPL-3
IUSE=
RESTRICT=test

src_install () {
emake -j1 DESTDIR=${D} install || die make failed
dobin hdhomerun_config
dolib libhdhomerun.so
dodoc README
insinto /usr/include/local/libhdhomerun
doins *.h
}

  Now for the questions...
1) do I need to create /usr/local/portage/distfiles?
  

Nope. DISTDIR is /usr/portage/distfiles, even for overlay ebuilds.

2) the provided Makefile is supposed to put everything into the
/usr/local hierarchy.  Does portage/emerge over-ride that, and if so,
what do I have to do to get send all files to the /usr/local hierarchy?
  

Don't know.
But... AFAIK, '/usr/local' is not a location favored by ebuilds. On my 
server it's virtually empty:

~ # find /usr/local/ -type f -exec qfile '{}' \;
app-portage/layman (/usr/local/portage/layman/.keep_app-portage_layman-0)

I'd attempt to have my ebuild install to /usr. Most probably that's a 
very common procedure when moving from barebones makefile to portage. If 
make can't help you w/that (e.g. --prefix /usr or something like that), 
try browsing other ebuilds. qgrep is a handy tool for that.

3) any glaring errors ?

  I intend to pick it up next week, so I won't be able to test it
immediately.  I do want my laptop to be ready to go when I bring the
tuner box home.

  




Re: [gentoo-user] Re: [OT] shell ouput which file descriptor

2010-04-11 Thread Amit Dor-Shifer

permission issue?
any EACCES in strace output?
Amit

Harry Putnam wrote:

Harry Putnam rea...@newsguy.com writes:

  

$cat /tmp/testfile
cat: nonexistantfile: No such file or directory
  
Thanks... 



Are you running cvs as root, or user, or ...?
  

I was running cvs as user, and now trying your tests... it appears the
trouble has stopped... doesn't occur now in cvs cmds either.

There was a reboot in between, so may never now what was going on.

Prior to rebooting I had tried to get a fresh env by ssh
u...@localhost from an xterm.  Hoping to rule out some oddball env
problem, but the file descriptor problem persisted.  However it has
apparently not survived a reboot.



Yikes... more mysterious than I reported above.

I see now that I get the goofy acting file descriptors when I'm in
console mode, but not in X.

And it appears only to happen in cvs commands, but again, not in X.

My sequence:

   Reboot just now.

   At console login:

login and call cvs command:

 cvs -n update /usr/local/common/base 2er
 
 I see 83 lines scroll by.


cat er
cat: er: No such file or directory

Nothing has been redirected.

cvs -n update /usr/local/common/base 2er|wc -l

I still see 83 lines but wc -l reports 0

(as it should)

So somehow the redirect is ignored and stderr goes to console
anyway. 


  Trying your test
  cat none 2er
   
   cat er

   cat: none: No such file or directory

So stderr is doing what it is supposed to do with cat but not a cvs
command. 
----   ---=---   -   
Now startx and from an xterm:

   cvs -n update /usr/local/common/base 2er
   no output just like expected

Follow with:
cat er|wc -l
  83 
  (83 lines of ouput were captured with 2er)


So this is more puzzling than ever.  Weird phenomena in console that
stops when in X.



  




Re: [gentoo-user] Problem with script calling OOCalc on amd64

2010-03-17 Thread Amit Dor-Shifer

ok. I didn't realize that oocalc actually executed in your first attempt.
Out of ideas then.

FWIW - a few guesses: I'd execute oocalc under strace, and try to find 
what is killing oocalc (does it decide to exit, or is it sent some 
signal). If your suspecting xterm to be the culprit (i.e., yr script 
works-as-expected w/o the xterm wrap) then maybe it'll be worthwhile 
looking into the X resources yr xterm is reading.

HTH
Amit

Mick wrote:

On Tuesday 16 March 2010 07:40:04 Amit Dor-Shifer wrote:
  

What does

xterm -fg green -bg black -e 'gpg Personal/data.ods.gpg;echo $?' tell you?



It doesn't return anything on the terminal I launch it from, but decrypts the 
file in an xterm and then closes it (the xterm).  So the gpg part works fine.


  

 I'm thinking that gpg fails, so oocalc never launches (because you
 conditioned its execution with '', and the script continues to shred the
 file.



The gpg part does not fail, because when I run:

xterm -fg green -bg black -e 'gpg Personal/data.ods.gpg  oocalc \
Personal/data.ods'

An xterm opens up asks for a passwd to decrypt the file, decrypts it and 
launches OOo.  However, the xterm dies immediately after that.


On my x86 machine, the xterm stays open until I close OOo.  This is how it 
should work; i.e. the xterm should continue to run as long as any processes 
within it are still running.


This makes me think that it may be some env or profile difference ...?  What 
would control this behaviour in an xterm?
  




Re: [gentoo-user] Problem with script calling OOCalc on amd64

2010-03-16 Thread Amit Dor-Shifer

What does

xterm -fg green -bg black -e 'gpg Personal/data.ods.gpg;echo $?' tell you? I'm thinking 
that gpg fails, so oocalc never launches (because you conditioned its execution with 
'', and the script continues to shred the file.

My amd64 succeeds executing this (s/gpg/echo-to-tmpfile/). I would initially 
assume it's the usage causing the issue, rather than some arch-dependent thing.

Amit


Mick wrote:

Hi All,

I have run into a problem which I cannot explain.  I am trying to run this 
script in a amd64 installation:


xterm -fg green -bg black -e 'gpg Personal/data.ods.gpg  oocalc \ 
Personal/data.ods; shred --remove -z -v DATA/data.ods'


On a x86 system, oocalc launches, I use the file and when I close it shred 
removes it.  On the amd64 system, the file is shredded as soon as it is 
opened.  This is what happens:


[snip ...]
gpg: AES256 encrypted data
gpg: original file name='data.ods'
random usage: poolsize=600 mixed=0 polls=0/0 added=0/0
  outmix=0 getlvl1=0/0 getlvl2=0/0
secmem usage: 64/32768 bytes in 1 blocks
I18N: Operating system doesn't support locale en_US
shred: Personal/data.ods: pass 1/4 (random)...
shred: Personal/data.ods: pass 2/4 (random)...
shred: Personal/data.ods: pass 3/4 (random)...
shred: Personal/data.ods: pass 4/4 (00)...
shred: Personal/data.ods: removing
shred: Personal/data.ods: renamed to Personal/
shred: Personal/: renamed to Personal/000
shred: Personal/000: renamed to Personal/00
shred: Personal/00: renamed to Personal/0
shred: Personal/0: renamed to Personal/
shred: Personal/: renamed to Personal/000
shred: Personal/000: renamed to Personal/00
shred: Personal/00: renamed to Personal/0
shred: Personal/data.ods: removed

Is this something 64bit specific?  Shouldn't xrterm behave the same in both 
x86 and amd64 with regards to this script?  How do I get it to keep oocalc 
open and shred to kick in only after the oocalc application is closed?
  




Re: [gentoo-user] Re: FreeNX password vs. ssh-key

2010-03-03 Thread Amit Dor-Shifer

Anyone?

Amit Dor-Shifer wrote:

BTW, am I the only-one who can't get x2go to build?
amit0 ~ # emerge -av x2goserver

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

Calculating dependencies / * Please fix your package 
(net-misc/x2gosessionadministration-2.0.1.10) to not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gosessionadministration/x2gosessionadministration-2.0.1.10.ebuild: 
line 22: need-kde: command not found
* Please fix your package (net-misc/x2gohostadministration-2.0.1.4) to 
not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gohostadministration/x2gohostadministration-2.0.1.4.ebuild: 
line 19: need-kde: command not found
* Please fix your package (net-misc/x2gouseradministration-2.0.1.8) to 
not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gouseradministration/x2gouseradministration-2.0.1.8.ebuild: 
line 18: need-kde: command not found
* Please fix your package (net-misc/x2gogroupadministration-2.0.1.4) 
to not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gogroupadministration/x2gogroupadministration-2.0.1.4.ebuild: 
line 19: need-kde: command not found
* Please fix your package (net-misc/x2gosystemadministration-2.0.1.5) 
to not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gosystemadministration/x2gosystemadministration-2.0.1.5.ebuild: 
line 18: need-kde: command not found

... done!

emerge: there are no ebuilds to satisfy net-misc/x2gokdebindings.
(dependency required by net-misc/x2goserver-3.0.1.1 [ebuild])
(dependency required by x2goserver [argument])

Amit

Nikos Chantziaras wrote:

On 02/27/2010 01:52 AM, Joseph wrote:
I'm installing Freenx and it will not install unless I enable in 
sshd_conf

UsePAM yes (password authentication)

What is the use use of ssh-key if I have to enable PAM?


FreeNX does not support SSH keys.  It only uses one for its control 
user.


For an NX-based client/server that supports SSH keys, you might want 
to look at x2go instead.  Furthermore, FreeNX seems to be quite 
inactive upstream (last update in 2008.)  x2go is in the nx overlay.









Re: [gentoo-user] Is there a lock daemon for managing file locking on an NFS server? [SOLVED]

2010-02-28 Thread Amit Dor-Shifer



Neil Walker wrote:

Amit Dor-Shifer wrote:
  

e.g. 'lockd'?
If so, which ebuild installs it?



I abandoned nfs quite a while ago but, afaik, file locking is handled
internally by the kernel.


Be lucky,

Neil
http://www.neiljw.com



  

rpc.lockd was removed starting of nfs-utils-1.1.0 (~May 2007).
http://sourceforge.net/project/shownotes.php?group_id=14release_id=507588

Thanks to everyone who helped pointing me at the right direction.

Amit



Re: [gentoo-user] Re: FreeNX password vs. ssh-key

2010-02-28 Thread Amit Dor-Shifer
u can use nxclient w/VNC protocol. The server shall then invoke a local 
vnc server, log into it with a local nx client, and let you log into the 
local client. That way you get nx's performance over a VNC connection 
(sort-of).

Amit



I'm just wandering if it is possible to connect to existing user 
session not generating a new session.






Re: [gentoo-user] Re: FreeNX password vs. ssh-key

2010-02-28 Thread Amit Dor-Shifer

BTW, am I the only-one who can't get x2go to build?
amit0 ~ # emerge -av x2goserver

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

Calculating dependencies / * Please fix your package 
(net-misc/x2gosessionadministration-2.0.1.10) to not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gosessionadministration/x2gosessionadministration-2.0.1.10.ebuild: 
line 22: need-kde: command not found
* Please fix your package (net-misc/x2gohostadministration-2.0.1.4) to 
not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gohostadministration/x2gohostadministration-2.0.1.4.ebuild: 
line 19: need-kde: command not found
* Please fix your package (net-misc/x2gouseradministration-2.0.1.8) to 
not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gouseradministration/x2gouseradministration-2.0.1.8.ebuild: 
line 18: need-kde: command not found
* Please fix your package (net-misc/x2gogroupadministration-2.0.1.4) to 
not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gogroupadministration/x2gogroupadministration-2.0.1.4.ebuild: 
line 19: need-kde: command not found
* Please fix your package (net-misc/x2gosystemadministration-2.0.1.5) 
to not use kde.eclass
/usr/portage/local/layman/nx/net-misc/x2gosystemadministration/x2gosystemadministration-2.0.1.5.ebuild: 
line 18: need-kde: command not found

... done!

emerge: there are no ebuilds to satisfy net-misc/x2gokdebindings.
(dependency required by net-misc/x2goserver-3.0.1.1 [ebuild])
(dependency required by x2goserver [argument])

Amit

Nikos Chantziaras wrote:

On 02/27/2010 01:52 AM, Joseph wrote:
I'm installing Freenx and it will not install unless I enable in 
sshd_conf

UsePAM yes (password authentication)

What is the use use of ssh-key if I have to enable PAM?


FreeNX does not support SSH keys.  It only uses one for its control user.

For an NX-based client/server that supports SSH keys, you might want 
to look at x2go instead.  Furthermore, FreeNX seems to be quite 
inactive upstream (last update in 2008.)  x2go is in the nx overlay.







Re: [gentoo-user] Is there a lock daemon for managing file locking on an NFS server?

2010-02-27 Thread Amit Dor-Shifer



Xavier Parizet wrote:

On 02/25/2010 02:56 PM, Amit Dor-Shifer wrote:
  

e.g. 'lockd'?
If so, which ebuild installs it?



Well i'm using NFS for a while now, and i just checked: nothing like
this is running on my nfs server.

Do you have a special reason for asking ? (i mean a bug or weird
behaviour regarding nfs)

  

No special reason. I'm studying NFS.
10x,
Amit



[gentoo-user] Is there a lock daemon for managing file locking on an NFS server?

2010-02-25 Thread Amit Dor-Shifer

e.g. 'lockd'?
If so, which ebuild installs it?
10x,

Amit



Re: [gentoo-user] customized init script

2010-02-23 Thread Amit Dor-Shifer

Kaushal Shriyan wrote:

Hi,

I have a customized script.

hosta# /etc/init.d/scriptrunner start
 * Starting ScriptRunner ...
/sbin/start-stop-daemon: Unable to start
/usr/local/scriptrunner/bin/startup.sh: Exec format error (Exec format
error)[ ok ]
hosta#

My customized script is as below

#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-servers/tomcat/files/5.0.27/tomcat.init,v
1.3 2004/10/08 13:38:08 axxo Exp $

start() {
ebegin Starting ScriptRunner
start-stop-daemon --start --exec /usr/local/scriptrunner/bin/startup.sh
sleep 5
eend $?
}

stop()  {
ebegin Stopping ScriptRunner
start-stop-daemon --stop --exec /usr/local/scriptrunner/bin/shutdown.sh
sleep 5
eend $?
}

Please suggest/guide

Thanks,

Kaushal

  

Looks like startup.sh is invalid.
Perhaps check what 'file /usr/local/scriptrunner/bin/startup.sh'  returns.
Amit



Re: [gentoo-user] Which IPSEC to go?

2010-01-27 Thread Amit Dor-Shifer



kashani wrote:

On 1/24/2010 1:38 PM, Konstantinos Agouros wrote:

Hi,

since I am a while out of the game of doing ipsec with Linux:
What's the way to go? Strongswan/Openswan or ipsec-tools for 
kame/racoon.


Emerge -p gave me some ~ for ipsec-tools while openswan goes without.

Any input welcome. I need this for a road warrior setup.


Use Openvpn. Way simpler, has a client for all the major OSs, and most 
importantly isn't based on annoying ipsec. You can use Openvpn between 
servers as well to setup tunnels.


kashani

FWIW: I tried installing openvpn client on windows-7 ~a month ago and 
failed. So, I'm not sure its win7 compatible.

Amit



Re: [gentoo-user] remote desktop suggestion

2010-01-26 Thread Amit Dor-Shifer



Paul Hartman wrote:

On Thu, Jan 21, 2010 at 4:10 PM, Valmor de Almeida val.gen...@gmail.com wrote:
  

Hello,

I would like to try a remote desktop server/client app (linux to linux).
Would anyone have suggestions? freenx x ltsp x vnc x others?

Thanks,



definitely one of the NX or NX-derived products. The performance is
lightyears ahead of any other and there are clients for
windows/mac/solaris and it uses ssh already so no need to mess with
tunnelling. It can also proxy local VNC and RDP connections to make
them faster, too.

  
I tried nxserver-freenx. The performance is indeed impressive. Yet it 
didn't work 'out-of-the-box'. I had to assign write perms over /tmp, as 
nx user is attempting to write to that folder.

FYI.
Amit



Re: [gentoo-user] SRC_URI=mirror://sourceforge- how to find out

2009-12-21 Thread Amit Dor-Shifer
http://downloads.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz 
works for me:


amit0 # wget 
http://downloads.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz
--2009-12-21 14:07:18--  
http://downloads.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz

Resolving downloads.sourceforge.net... 216.34.181.59
Connecting to downloads.sourceforge.net|216.34.181.59|:80... connected.
HTTP request sent, awaiting response... 302 Found
Location: 
http://garr.dl.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz 
[following]
--2009-12-21 14:07:19--  
http://garr.dl.sourceforge.net/project/impressive/Impressive/0.10.2/Impressive-0.10.2.tar.gz

Resolving garr.dl.sourceforge.net... 193.206.140.34
Connecting to garr.dl.sourceforge.net|193.206.140.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 137193 (134K) [application/x-gzip]
Saving to: `Impressive-0.10.2.tar.gz'

100%[=] 
137,193  258K/s   in 0.5s


2009-12-21 14:07:20 (258 KB/s) - `Impressive-0.10.2.tar.gz' saved 
[137193/137193]


Though I've no experience with writing any official portage ebuild that 
d/l from sourceforge.


Amit



Helmut Jarausch wrote:

Hi,

I'd like to change the ebuild for media-gfx/keyjnote
to that of the successor 
http://impressive.sourceforge.net/


Unfortunately, I cannot find out the SRC_URI for the ebuild (to be
created in my overlay tree).

Does anybody know to find out how to do this.
(I have seen that SRC_URI is quite different for different
projects hosted by Sourceforge.)

Many thanks for a hint,
Helmut.

  




Re: [gentoo-user] OS inaccessable after brief uptime in X

2009-11-29 Thread Amit Dor-Shifer
my 2-cents: Might want to check filesystem integrity too (e.g: fsck, 
xfs_check).

Amit

Alan McKinnon wrote:

On Saturday 28 November 2009 22:53:52 Harry Putnam wrote:
  

I keep having a problem where the OS becomes inaccessable after
running in X for a while.  I haven't noticed a time pattern yet but it
doesn't take long sometimes.

Today I started from an OFF machine, booted up, started X did a few
things  A few minutes later I attempted to login via ssh from a remote
laptop down stairs.  The os is inaccessable via ssh, or port 25 (its
also a mailhup for home lan).

Went back to the actual machine and it is inaccessable from console as
well.

It's happened repeatedly now for a week or two, but I've been busy with
other stuff, and if I need it running I've just left it in console
mode.

The problem apparently does not occur in console mode.

I see no problem when starting X and I see nothing in
/var/log/messages that gives a clue about what is happening.

I'm running fairly up to date Desktop profile on kernel:

 (uname -a)
  Linux reader 2.6.31-gentoo-r4_rdr-5 #6 SMP
  Wed Nov 4 09:19:17 CST 2009 i686 Intel(R) Celeron(R)
  CPU 3.06GHz GenuineIntel GNU/Linux

I'm not sure how to track down the problem since I'm not seeing any
give away clues in /var/log/messages

So far, once the lockup has happened it appears there is no way in
other than the reboot switch.



Looks like you need more info for a diagnosis. Unfortunately this is a hit and 
miss game as we don't have much clue what's going on. The lack of anything 
valuable in /var/log/messages seems to indicate that either a) no syslog 
messages were generated (common with client apps) or b) there is a message but 
the system locks up before it can be flushed to disk.


Some ideas:

Set up an ssh session to the offending machine from a different machine that 
is permanently on. Wait for the problem to occur and see if anything got 
printed on the ssh console.


Set up a syslogger on a remote machine and send all your logs to it. If that 
produces nothing, try having the local syslogger replicate ~/.xsession-errors 
to the remote logger. I often find that remote logging manages to keep working 
after the local disk has given up.


Obviously, these are long range diagnosis techniques and you have to be 
patient. emerge -e world will take around 24 hours and may well fix your 
problem, but not tell you what the cause was.


  




[gentoo-user] /bin contains busybox executables after installing busybox-1.13.2

2009-11-25 Thread Amit Dor-Shifer

Hi.
I've just stumbled on an abnormality for which I've yet no explanation. 
Posting for possible general interest.


Yesterday ebuild unpack started to emit errors:

find: unrecognized: -mindepth
BusyBox v1.13.2 (2009-09-02 17:33:46 IDT) multi-call binary

Usage: find [PATH...] [EXPRESSION]


This happened because I had a /bin/find, identical to /bin/busybox

amit0 ~ # ls -la /bin/find /bin/busybox
-rwxr-xr-x 176 root root 981048 Sep  2 17:35 /bin/busybox*
-rwxr-xr-x 176 root root 981048 Sep  2 17:35 /bin/find*

/bin/find isn't associated with any package, but it's creation time 
coincides with the last emerge of busybox, 1.8.2 - 1.13.2.


It seems that all of busybox's embedded exe's (I have 130) were created 
on my FS.


FYI

Amit



Re: [gentoo-user] /bin contains busybox executables after installing busybox-1.13.2

2009-11-25 Thread Amit Dor-Shifer
amit0 ~ # fgrep make-symlinks /var/log/portage/elog/summary.log 
/var/log/emerge.log;echo $?

1
amit0 ~ # euse -a make-symlinks
amit0 ~ #

amit0 ~ # grep -i -A 8 busybox-1.13.2 /var/log/portage/elog/summary.log
 Messages generated by process 17234 on 2009-09-02 17:35:08 IDT for 
package sys-apps/busybox-1.13.2:


WARN: unpack
Could not locate user configfile, so we will save a default one

LOG: install
Your configuration for sys-apps/busybox-1.13.2 has been saved in
/etc/portage/savedconfig/sys-apps/busybox-1.13.2 for your editing pleasure.
You can edit these files by hand and remerge this package with
USE=savedconfig to customise the configuration.
You can rename this file/directory to one of the following for
its configuration to apply to multiple versions:
${PORTAGE_CONFIGROOT}/etc/portage/savedconfig/
[${CTARGET}|${CHOST}|]/${CATEGORY}/[${PF}|${P}|${PN}]


 Messages generated by process 17234 on 2009-09-02 17:36:00 IDT for 
package media-sound/alsa-utils-1.0.20-r4:


FWIW, exing the excess exe-s from /bin/ helped relieve my pains.
Amit


Alan McKinnon wrote:

On Wednesday 25 November 2009 11:35:53 Amit Dor-Shifer wrote:
  

Hi.
I've just stumbled on an abnormality for which I've yet no explanation.
Posting for possible general interest.

Yesterday ebuild unpack started to emit errors:

find: unrecognized: -mindepth
BusyBox v1.13.2 (2009-09-02 17:33:46 IDT) multi-call binary

Usage: find [PATH...] [EXPRESSION]


This happened because I had a /bin/find, identical to /bin/busybox

amit0 ~ # ls -la /bin/find /bin/busybox
-rwxr-xr-x 176 root root 981048 Sep  2 17:35 /bin/busybox*
-rwxr-xr-x 176 root root 981048 Sep  2 17:35 /bin/find*

/bin/find isn't associated with any package, but it's creation time
coincides with the last emerge of busybox, 1.8.2 - 1.13.2.

It seems that all of busybox's embedded exe's (I have 130) were created
on my FS.




This all happened because you didn't read this:

pkg_preinst() {
if use make-symlinks  [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == yes ]]  
[[ ${ROOT} == / ]] ; then
ewarn setting USE=make-symlinks and emerging to / is very 
dangerous.
ewarn it WILL overwrite lots of system programs like: ls bash 
awk grep (bug 60805 for full list).
ewarn If you are creating a binary only and not merging this 
is probably ok.
ewarn set env VERY_BRAVE_OR_VERY_DUMB=yes if this is realy 
what you want.

die silly options will destroy your system
fi

/bin/find is not associated with any packages because it's created in 
postinst()


And now you have a huge problem because (at least last time I tried) busybox 
does not implement tar -o; to test, try and emerge something. If it fails, 
this is the only way it will ever work:


boot off alternate media and chroot into your usual /. If you are lucky, you 
will have a tar binpkg as a backup which you can unpack into / on the chroot; 
if not then you have to get one from somewhere - some kind soul will likely 
send you one of you specify your arch and cpu type


Then remove busybox. You don't need it as you have GNU. Busybox is useful for 
embedded and rescue systems and not much use on desktops, hence the warnings 
in the ebuild about not writing to / with symlinks



  




Re: [gentoo-user] /bin contains busybox executables after installing busybox-1.13.2

2009-11-25 Thread Amit Dor-Shifer



Alan McKinnon wrote:

On Wednesday 25 November 2009 14:33:29 Amit Dor-Shifer wrote:
  

amit0 ~ # fgrep make-symlinks /var/log/portage/elog/summary.log
/var/log/emerge.log;echo $?
1



[snip]

Do you perhaps have a minimal elog config? I get that message every time here
  


amit0 ~ # portageq envvar PORTAGE_ELOG_CLASSES
log warn error

Defined in /etc/make.globals, which was last-modified before the busybox 
update.


Also, I did get messages from that upgrade. Both a WARN  a LOG, which I 
pasted earlier. Doesn't make sense to me that one WARN message would 
find its way to summary.log, while another wouldn't.


  

FWIW, exing the excess exe-s from /bin/ helped relieve my pains.



You're lucky :-)

When the same thing happened to me long ago, I needed recovery tools to get a 
working system back



  




Re: [gentoo-user] [OT] interrupting runscripts during startup

2009-11-20 Thread Amit Dor-Shifer
My interest is foremost trivial. Not necessarily related to the 
application of such interrupts.

Nevertheless, with regards to the post:
* runscripts can (and AFAIK do) trap and handle SIGINT.
* the interactive mode is ok for interrupting the init process between 
scripts. But I can't interrupt a script while it's running with 'I', and 
with SIGINT, I can.


Amit

Renat Golubchyk wrote:

On Fri, 20 Nov 2009 00:02:47 +0200 Amit Dor-Shifer ami...@oversi.com
wrote:
  
When hitting Ctrl-C during startup, I manage to interrupt services at 
the early stages of init, yet later-on I can no-longer do this. It

seems that up till runlevel 'default', services can be hit with the
interrupt.



Why do you want to stop services by hitting CTRL-C ? Services are
shell scripts. Hitting CTRL-C stops the script somewhere in the
middle during its execution. Everything that was done until that moment
won't be automagically undone. There can be files left , and processes
already started will still run. That's not clean.

Better use the interactive init feature. Just hit 'I' when init starts
(init even tells you, that you can do it) and choose which services to
start by hitting 'y' and 'n'.


Cheers,
Renat

  




[gentoo-user] [OT] interrupting runscripts during startup

2009-11-19 Thread Amit Dor-Shifer

Hi all.

When hitting Ctrl-C during startup, I manage to interrupt services at 
the early stages of init, yet later-on I can no-longer do this. It seems 
that up till runlevel 'default', services can be hit with the interrupt.
I'm wondering where is this behavior being set, and whether I can enable 
the interruption by SIGINT in 'default' level runscripts (e.g. 
'local.start'). I'm suspecting this is somewhere in /sbin/init, but 
can't ascertain this.

Anyone knows?
thanks,
Amit



Re: [gentoo-user] strange dmesg output - RESOLVED

2009-11-09 Thread Amit Dor-Shifer

On Wednesday 28 October 2009 20:10:52 Maxim Wexler wrote:
  Not sure this is related with the OP's problem, I have noticed that 
on my

  system I can scroll up in a console if it displays the output of a
  command, e.g. ls, but I cannot scroll up on the boot messages. Also, I
  cannot scroll up on the log messages on VT12. Is there something that I
  need to set up in the kernel? In the old days (perhaps different
  machine?) I used to be able to
  scroll up in both.

 Also note, if you migrate away from the boot console and then come
 back, it may not scrollback at all. If I want to see what boot is
 doing I scroll back immediately before running startx or moving to
 another console.

Maxim (or anyone else):
do you know what causes scrollback to be disabled once you move to a 
different terminal?

Amit



[gentoo-user] mounting /var prior to invocation of /sbin/rc

2009-11-04 Thread Amit Dor-Shifer

Hi.
I've a setup where /var resides on a separate partition than root. After 
boot, I see that /var is created on root and some files are written to 
it. E.G, the following folders are created:


/var/lib/init.d/snapshot
/var/lib/init.d/options
/var/lib/init.d/daemons
/var/lib/init.d/started
/var/lib/init.d/starting
/var/lib/init.d/inactive
/var/lib/init.d/wasinactive
/var/lib/init.d/stopping
/var/lib/init.d/exclusive
/var/lib/init.d/exitcodes
/var/lib/init.d/scheduled
/var/lib/init.d/coldplugged
/var/lib/init.d/softscripts

I'm suspecting that /sbin/rc is writing to /var prior to the mounting of 
the respective partition. Am I correct?


Is there some commonly-used place in gentoo for specifying partitions 
that have to be mounted prior to writing a/m files?


10x,
Amit





[gentoo-user] Re: mounting /var prior to invocation of /sbin/rc [CANCELLED]

2009-11-04 Thread Amit Dor-Shifer

I take it back. those files were leftover on the root partition.
Amit

Amit Dor-Shifer wrote:

Hi.
I've a setup where /var resides on a separate partition than root. 
After boot, I see that /var is created on root and some files are 
written to it. E.G, the following folders are created:


/var/lib/init.d/snapshot
/var/lib/init.d/options
/var/lib/init.d/daemons
/var/lib/init.d/started
/var/lib/init.d/starting
/var/lib/init.d/inactive
/var/lib/init.d/wasinactive
/var/lib/init.d/stopping
/var/lib/init.d/exclusive
/var/lib/init.d/exitcodes
/var/lib/init.d/scheduled
/var/lib/init.d/coldplugged
/var/lib/init.d/softscripts

I'm suspecting that /sbin/rc is writing to /var prior to the mounting 
of the respective partition. Am I correct?


Is there some commonly-used place in gentoo for specifying partitions 
that have to be mounted prior to writing a/m files?


10x,
Amit







Re: [gentoo-user] Uncle: qt-*:4 dependencies/blocks preventing world update

2009-10-25 Thread Amit Dor-Shifer

With regards to this:
I believe I'm in the same situation:

QUOTE
amit0 ~ # emerge -auvt world

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

Calculating dependencies... done!

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

x11-libs/qt-core:4

 ('ebuild', '/', 'x11-libs/qt-core-4.5.2', 'merge') pulled in by
   ~x11-libs/qt-core-4.5.2[-debug] required by ('ebuild', '/', 
'x11-libs/qt-test-4.5.2', 'merge')
   ~x11-libs/qt-core-4.5.2[glib,-debug,-qt3support] required by 
('ebuild', '/', 'x11-libs/qt-gui-4.5.2-r2', 'merge')
   ~x11-libs/qt-core-4.5.2[-debug] required by ('ebuild', '/', 
'x11-libs/qt-dbus-4.5.2', 'merge')

   (and 2 more)

 ('ebuild', '/', 'x11-libs/qt-core-4.5.1', 'merge') pulled in by
   =x11-libs/qt-core-4.5.1:4[qt3support,ssl] required by ('ebuild', 
'/', 'kde-base/libkcddb-4.3.1', 'merge')
   x11-libs/qt-core:4 required by ('ebuild', '/', 
'kde-base/automoc-0.9.88', 'merge')
   ~x11-libs/qt-core-4.5.1[qt3support,-debug] required by ('ebuild', 
'/', 'x11-libs/qt-sql-4.5.1', 'merge')

   (and 2 more)

x11-libs/qt-gui:4

 ('ebuild', '/', 'x11-libs/qt-gui-4.5.1', 'merge') pulled in by
   =x11-libs/qt-gui-4.5.1:4[accessibility,dbus] required by ('ebuild', 
'/', 'kde-base/libkcddb-4.3.1', 'merge')
   =x11-libs/qt-gui-4.5.1:4[accessibility,dbus] required by ('ebuild', 
'/', 'kde-base/libknotificationitem-4.3.1', 'merge')
   =x11-libs/qt-gui-4.4.0:4 required by ('ebuild', '/', 
'media-sound/phonon-4.4_pre20090520', 'merge')

   (and 2 more)

 ('ebuild', '/', 'x11-libs/qt-gui-4.5.2-r2', 'merge') pulled in by
   ~x11-libs/qt-gui-4.5.2[-debug,-qt3support] required by ('ebuild', 
'/', 'x11-libs/qt-opengl-4.5.2-r1', 'merge')
   ~x11-libs/qt-gui-4.5.2[-debug] required by ('ebuild', '/', 
'x11-libs/qt-webkit-4.5.2-r1', 'merge')



SNIP

emerge: there are no ebuilds built with USE flags to satisfy 
~x11-libs/qt-core-4.5.2[qt3support,-debug].

!!! One of the following packages is required to complete your request:
- x11-libs/qt-core-4.5.2 (Change USE: +qt3support)
(dependency required by x11-libs/qt-qt3support-4.5.2 [ebuild])
(dependency required by kde-base/libkcddb-4.3.1 [ebuild])
(dependency required by app-cdr/k3b-1.68.0_alpha3 [ebuild])
(dependency required by world [argument])

/QUOTE

However, the mentioned news item doesn't appear on my 'unread' list:

amit0 ~ # eselect news list
News items:
 [1]   read2009-04-06  Migration to X.org Server 1.5
 [2]   read2009-10-02  Migration to X.org Server 1.6 and libxcb 1.4
 [3]   read2009-07-02  kdeprefix and monolithic ebuilds issues
 [4]   read2009-04-18  Generation 1 Java Setup Deprecated
 [5]   read2009-07-12  xorg-x11-7.4 and xorg-server-1.5 kernel support

though it does exist on the filesystem:

[13:35:50] amit0 ~ # head 
/usr/portage/metadata/news/2009-09-27-qt_use_changes/2009-09-27-qt_use_changes.en.txt

Title: Qt 4.5.2 default USE flag changes
Author: Alex Alexander wi...@gentoo.org
Content-Type: text/plain
Posted: 2009-09-27
Revision: 1
News-Item-Format: 1.0
Display-If-Installed: x11-libs/qt-core-4.5.2

Would that Display-If-Installed be the reason why it's missing from 
the list?


amit0 ~ # qlist -Uv qt
dev-libs/dbus-qt3-old-0.70
dev-libs/poppler-qt3-0.10.7
virtual/poppler-qt3-0.10.7
x11-libs/qt-3.3.8b-r1 (cups nis opengl)

What I'm trying to say is: if indeed the issue here is the same as 
Alan's, then qt_use_changes should show up when I 'eselect news read'.


Amit

Dirk Heinrichs wrote:

Am Donnerstag 22 Oktober 2009 23:19:07 schrieb Alan E. Davis:
  

I've tried alot of things, but I give up.  Can someone help me with the
 knot of dependencies that has been holding my system in hostage from any
 attempt to update world, for weeks now?



Please read your portage news, especially 2009-09-27-qt_use_changes. See 
also this weeks thread with subject Confusion.


HTH...

Dirk
  




Re: [gentoo-user] Uncle: qt-*:4 dependencies/blocks preventing world update

2009-10-25 Thread Amit Dor-Shifer

amit0 ~ # eselect profile show
Current make.profile symlink:
 default/linux/amd64/10.0
amit0 ~ # euse -i qt3support
global use flags (searching: qt3support)

no matching entries found

local use flags (searching: qt3support)

[-] qt3support (dev-python/PyQt4):
Enable the Qt3Support libraries for Qt4

[-] qt3support (x11-libs/qt):
Enable the Qt3Support libraries for Qt4

[-] qt3support (x11-libs/qt-core):
Enable the Qt3Support libraries for Qt4. Note that this does not mean 
you can compile pure Qt3 programs with Qt4.


[-] qt3support (x11-libs/qt-gui):
Enable the Qt3Support libraries for Qt4. Note that this does not mean 
you can compile pure Qt3 programs with Qt4.


[-] qt3support (x11-libs/qt-opengl):
Enable the Qt3Support libraries for Qt4

[-] qt3support (x11-libs/qt-sql):
Enable the Qt3Support libraries for Qt4

Amit


Mick wrote:

On Sunday 25 October 2009 11:43:59 Amit Dor-Shifer wrote:
  

With regards to this:
I believe I'm in the same situation:



  

SNIP

emerge: there are no ebuilds built with USE flags to satisfy
~x11-libs/qt-core-4.5.2[qt3support,-debug].
!!! One of the following packages is required to complete your request:
- x11-libs/qt-core-4.5.2 (Change USE: +qt3support)


What is your make.profile linked to?

What does euse -i qt3support show?
  




Re: [gentoo-user] Uncle: qt-*:4 dependencies/blocks preventing world update

2009-10-25 Thread Amit Dor-Shifer

Thanks econti ( arttu).
My point was that I don't have the relevant news listed, rather than  
the actual solution to the issue.

Amit

econti wrote:

Amit Dor-Shifer ha scritto:

With regards to this:
I believe I'm in the same situation:

QUOTE
amit0 ~ # emerge -auvt world

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

Calculating dependencies... done!

!!! Multiple package instances within a single package slot have been 
pulled

!!! into the dependency graph, resulting in a slot conflict:

x11-libs/qt-core:4

 ('ebuild', '/', 'x11-libs/qt-core-4.5.2', 'merge') pulled in by
   ~x11-libs/qt-core-4.5.2[-debug] required by ('ebuild', '/', 
'x11-libs/qt-test-4.5.2', 'merge')
   ~x11-libs/qt-core-4.5.2[glib,-debug,-qt3support] required by 
('ebuild', '/', 'x11-libs/qt-gui-4.5.2-r2', 'merge')
   ~x11-libs/qt-core-4.5.2[-debug] required by ('ebuild', '/', 
'x11-libs/qt-dbus-4.5.2', 'merge')

   (and 2 more)

 ('ebuild', '/', 'x11-libs/qt-core-4.5.1', 'merge') pulled in by
   =x11-libs/qt-core-4.5.1:4[qt3support,ssl] required by ('ebuild', 
'/', 'kde-base/libkcddb-4.3.1', 'merge')
   x11-libs/qt-core:4 required by ('ebuild', '/', 
'kde-base/automoc-0.9.88', 'merge')
   ~x11-libs/qt-core-4.5.1[qt3support,-debug] required by ('ebuild', 
'/', 'x11-libs/qt-sql-4.5.1', 'merge')

   (and 2 more)

x11-libs/qt-gui:4

 ('ebuild', '/', 'x11-libs/qt-gui-4.5.1', 'merge') pulled in by
   =x11-libs/qt-gui-4.5.1:4[accessibility,dbus] required by 
('ebuild', '/', 'kde-base/libkcddb-4.3.1', 'merge')
   =x11-libs/qt-gui-4.5.1:4[accessibility,dbus] required by 
('ebuild', '/', 'kde-base/libknotificationitem-4.3.1', 'merge')
   =x11-libs/qt-gui-4.4.0:4 required by ('ebuild', '/', 
'media-sound/phonon-4.4_pre20090520', 'merge')

   (and 2 more)

 ('ebuild', '/', 'x11-libs/qt-gui-4.5.2-r2', 'merge') pulled in by
   ~x11-libs/qt-gui-4.5.2[-debug,-qt3support] required by ('ebuild', 
'/', 'x11-libs/qt-opengl-4.5.2-r1', 'merge')
   ~x11-libs/qt-gui-4.5.2[-debug] required by ('ebuild', '/', 
'x11-libs/qt-webkit-4.5.2-r1', 'merge')



SNIP

emerge: there are no ebuilds built with USE flags to satisfy 
~x11-libs/qt-core-4.5.2[qt3support,-debug].

!!! One of the following packages is required to complete your request:
- x11-libs/qt-core-4.5.2 (Change USE: +qt3support)
(dependency required by x11-libs/qt-qt3support-4.5.2 [ebuild])
(dependency required by kde-base/libkcddb-4.3.1 [ebuild])
(dependency required by app-cdr/k3b-1.68.0_alpha3 [ebuild])
(dependency required by world [argument])

/QUOTE

However, the mentioned news item doesn't appear on my 'unread' list:

amit0 ~ # eselect news list
News items:
 [1]   read2009-04-06  Migration to X.org Server 1.5
 [2]   read2009-10-02  Migration to X.org Server 1.6 and libxcb 1.4
 [3]   read2009-07-02  kdeprefix and monolithic ebuilds issues
 [4]   read2009-04-18  Generation 1 Java Setup Deprecated
 [5]   read2009-07-12  xorg-x11-7.4 and xorg-server-1.5 kernel 
support


though it does exist on the filesystem:

[13:35:50] amit0 ~ # head 
/usr/portage/metadata/news/2009-09-27-qt_use_changes/2009-09-27-qt_use_changes.en.txt 


Title: Qt 4.5.2 default USE flag changes
Author: Alex Alexander wi...@gentoo.org
Content-Type: text/plain
Posted: 2009-09-27
Revision: 1
News-Item-Format: 1.0
Display-If-Installed: x11-libs/qt-core-4.5.2

Would that Display-If-Installed be the reason why it's missing from 
the list?


amit0 ~ # qlist -Uv qt
dev-libs/dbus-qt3-old-0.70
dev-libs/poppler-qt3-0.10.7
virtual/poppler-qt3-0.10.7
x11-libs/qt-3.3.8b-r1 (cups nis opengl)

What I'm trying to say is: if indeed the issue here is the same as 
Alan's, then qt_use_changes should show up when I 'eselect news read'.


Amit

Dirk Heinrichs wrote:

Am Donnerstag 22 Oktober 2009 23:19:07 schrieb Alan E. Davis:
 
I've tried alot of things, but I give up.  Can someone help me with 
the
 knot of dependencies that has been holding my system in hostage 
from any

 attempt to update world, for weeks now?



Please read your portage news, especially 
2009-09-27-qt_use_changes. See also this weeks thread with subject 
Confusion.


HTH...

Dirk


Remember also the dbus USE flag: that solved my problem. :-)

Bye
emilio






Re: [gentoo-user] Uncle: qt-*:4 dependencies/blocks preventing world update

2009-10-25 Thread Amit Dor-Shifer
I think that if default/linux/amd64/10.0 is a valid profile, it's 
reasonable to expect that the relevant news item be listed on eselect.


Amit

Mick wrote:

On Sunday 25 October 2009 12:53:33 Amit Dor-Shifer wrote:
  

amit0 ~ # eselect profile show
Current make.profile symlink:
  default/linux/amd64/10.0



You may want to change this to .../amd64/10.0/desktop or server depending on 
what your machine is.  Then I would think that the flags for qt3support would  
be enabled by default.  However, I am running x86 over here so others may be 
able to confirm.


  




[gentoo-user] configuring SVN repo w/apache w/o breaking dev-util/subversion

2009-09-15 Thread Amit Dor-Shifer

Hi. Would appreciate someone's view on the following:

I want to configure SVN access via apache. This requires some 
modifications to /etc/apache2/modules.d/47_mod_dav_svn.conf 
(http://svnbook.red-bean.com/en/1.0/svn-book.html#svn-ch-6-sect-4.2)


Since the file is owned by dev-util/subversion, I prefer not to modify it.

Is there an alternative mechanism to modifying a package-owned file?

10x,
Amit



Re: [gentoo-user] configuring SVN repo w/apache w/o breaking dev-util/subversion

2009-09-15 Thread Amit Dor-Shifer
Still it would incur an etc-update event, wouldn't it? Then, an 
absent-minded user (e.g. myself) could overwrite configuration when 
subversion gets upgraded.


I was thinking of maybe creating an 
/etc/apache2/modules.d/471_mod_dav_svn.conf, which I could then freely 
modify.


Amit

Neil Bothwick wrote:

On Tue, 15 Sep 2009 17:17:16 +0300, Amit Dor-Shifer wrote:

  

Is there an alternative mechanism to modifying a package-owned file?



It's in a CONFIG_PROTECTed directory (/etc) so it won't be overwritten by
a package update. It's safe to modify it.