Re: Matrox G550 - MGA X server fails

2017-03-23 Thread Oliver Elphick
It does seem to be related to video drivers more generally. Outside X the
console driver from grub fails to reduce the size of text.

Since I am using grub version 2, it will take a lot of research to find out
what the scripts are doing. There is no simple VGA= parameter to change. I
have set the X server to setuid and am going to swap the video card back in
and try again later.

On 22 Mar 2017 8:12 pm, "Sven Joachim"  wrote:

> On 2017-03-22 10:25 +, Oliver Elphick wrote:
>
> > I am unable to start X using a Matrox Millennium G550 PCIe card.
> >
> > This is what I think is the relevant part of the log for the session:
> >
> > #011compiled for 1.19.2, module version = 0.1.0
> > #011ABI class: X.Org Video Driver, version 23.0
> > (--) MGA(0): Chipset: "mgag550"
> > xf86TokenToOptinfo: table is NULL
> > xf86TokenToOptinfo: table is NULL
> > (==) MGA(0): Using HW cursor
> > (--) MGA(0): Linear framebuffer at 0xF000
> > (--) MGA(0): MMIO registers at 0xF702
> > (--) MGA(0): Pseudo-DMA transfer window at 0xF680
> > (EE) MGA(0): Unable to map Framebuffer F000 200.  Permission
> > denied (13)
> > (II) MGA(0): Creating default Display subsection in Screen section
> > #011"Default Screen Section" for depth/fbbpp 24/32
> > (==) MGA(0): Depth 24, (--) framebuffer bpp 32
> > (==) MGA(0): RGB weight 888
> > (==) MGA(0): Using AGP 1x mode
> > (==) MGA(0): Using XAA acceleration
> > (WW) MGA(0): Could not retrieve video BIOS!
> > (EE) MGA(0): Unable to detect video RAM.
> > (II) UnloadModule: "mga"
> >
> > The full log is attached.
> >
> > Can anyone indicate what the problem is, please?
>
> Probably that the X server is no longer running with root rights, and
> it has to do that if there is no kernel driver for the graphics card.
> See /usr/share/doc/xserver-xorg-core/NEWS.Debian.gz:
>
> ,
> | xorg-server (2:1.17.3-1) unstable; urgency=medium
> |
> |   The Xorg server is no longer setuid root by default.  This change
> reduces the
> |   risk of privilege escalation due to X server bugs, but has some side
> effects:
> |
> |   * it relies on logind and libpam-systemd
> |   * it relies on a kernel video driver (so the userspace component
> doesn't
> | touch the hardware directly)
> |   * it needs X to run on the virtual console (VT) it was started from
> |   * it changes the location for storing the Xorg log from /var/log/ to
> | ~/.local/share/xorg/
> |
> |   On systems where those are not available, the new xserver-xorg-legacy
> package
> |   is needed to allow X to run with elevated privileges.  See the
> |   Xwrapper.config(5) manual page for configuration details.
> |
> |  -- Julien Cristau   Tue, 27 Oct 2015 22:54:11
> +
> `
>
> In short, you need to install xserver-xorg-legacy.
>
> Cheers,
>Sven
>
>


Matrox G550 - MGA X server fails

2017-03-22 Thread Oliver Elphick
I am unable to start X using a Matrox Millennium G550 PCIe card.

This is what I think is the relevant part of the log for the session:

#011compiled for 1.19.2, module version = 0.1.0
#011ABI class: X.Org Video Driver, version 23.0
(--) MGA(0): Chipset: "mgag550"
xf86TokenToOptinfo: table is NULL
xf86TokenToOptinfo: table is NULL
(==) MGA(0): Using HW cursor
(--) MGA(0): Linear framebuffer at 0xF000
(--) MGA(0): MMIO registers at 0xF702
(--) MGA(0): Pseudo-DMA transfer window at 0xF680
(EE) MGA(0): Unable to map Framebuffer F000 200.  Permission
denied (13)
(II) MGA(0): Creating default Display subsection in Screen section
#011"Default Screen Section" for depth/fbbpp 24/32
(==) MGA(0): Depth 24, (--) framebuffer bpp 32
(==) MGA(0): RGB weight 888
(==) MGA(0): Using AGP 1x mode
(==) MGA(0): Using XAA acceleration
(WW) MGA(0): Could not retrieve video BIOS!
(EE) MGA(0): Unable to detect video RAM.
(II) UnloadModule: "mga"

The full log is attached.

Can anyone indicate what the problem is, please?

Packages:15:40:59 phoenix systemd[1]: Started User Manager for UID 118.
(--) Log file renamed from "/var/lib/gdm3/.local/share/xorg/Xorg.pid-9327.log" 
to "/var/lib/gdm3/.local/share/xorg/Xorg.0.log"
X.Org X Server 1.19.2
Release Date: 2017-03-02
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
Current Operating System: Linux phoenix 4.9.0-2-amd64 #1 SMP Debian 4.9.13-1 
(2017-02-27) x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.9.0-2-amd64 
root=UUID=72b9d4db-4d0e-466f-b90e-0a1a72dffcba ro quiet
Build Date: 03 March 2017  03:14:41PM
xorg-server 2:1.19.2-1 (https://www.debian.org/support)
Current version of pixman: 0.34.0
#011Before reporting problems, check http://wiki.x.org
#011to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
#011(++) from command line, (!!) notice, (II) informational,
#011(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/lib/gdm3/.local/share/xorg/Xorg.0.log", Time: Mon Mar 20 
15:40:59 2017
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(==) No Layout section.  Using the first Screen section.
(==) No screen section available. Using defaults.
(**) |-->Screen "Default Screen Section" (0)
(**) |   |-->Monitor ""
(==) No monitor specified for screen "Default Screen Section".
#011Using a default monitor configuration.
(==) Automatically adding devices
(==) Automatically enabling devices
(==) Automatically adding GPU devices
(==) Max clients allowed: 256, resource mask: 0x1f
(WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
#011Entry deleted from font path.
(==) FontPath set to:
#011/usr/share/fonts/X11/misc,
#011/usr/share/fonts/X11/100dpi/:unscaled,
#011/usr/share/fonts/X11/75dpi/:unscaled,
#011/usr/share/fonts/X11/Type1,
#011/usr/share/fonts/X11/100dpi,
#011/usr/share/fonts/X11/75dpi,
#011built-ins
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) The server relies on udev to provide the list of input devices.
#011If no devices become available, reconfigure udev or disable AutoAddDevices.
(II) Loader magic: 0x557672802e00
(II) Module ABI versions:
#011X.Org ANSI C Emulation: 0.4
#011X.Org Video Driver: 23.0
#011X.Org XInput driver : 24.1
#011X.Org Server Extension : 10.0
(++) using VT number 1
(II) systemd-logind: took control of session 
/org/freedesktop/login1/session/c313
(II) xfree86: Adding drm device (/dev/dri/card0)
(II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 12 paused 0
(--) PCI: (0:0:2:0) 8086:0412:1458:d000 rev 6, Mem @ 0xf740/4194304, 
0xe000/268435456, I/O @ 0xf000/64
(--) PCI:*(0:2:0:0) 102b:2527:102b:22c0 rev 1, Mem @ 0xf000/33554432, 
0xf702/16384, 0xf680/8388608, BIOS @ 0x/131072
(II) LoadModule: "glx"
(II) Loading /usr/lib/xorg/modules/extensions/libglx.so
(II) Module glx: vendor="X.Org Foundation"
#011compiled for 1.19.2, module version = 1.0.0
#011ABI class: X.Org Server Extension, version 10.0
(==) Matched mga as autoconfigured driver 0
(==) Matched modesetting as autoconfigured driver 1
(==) Matched fbdev as autoconfigured driver 2
(==) Matched vesa as autoconfigured driver 3
(==) Assigned the driver to the xf86ConfigLayout
(II) LoadModule: "mga"
(II) Loading /usr/lib/xorg/modules/drivers/mga_drv.so
(II) Module mga: vendor="X.Org Foundation"
#011compiled for 1.19.1, module version = 1.6.5
#011Module class: X.Org Video Driver
#011ABI class: X.Org Video Driver, version 23.0
(II) LoadModule: "modesetting"
(II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
(II) Module modesetting: vendor="X.Org Foundation"
#011compiled for 1.19.2, module version = 1.19.2
#011Module class: X.Org Video Driver
#011ABI class: X.Org Video Driver, version 23.0
(II) LoadModule: "fbdev"
(II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
(II) Module fbdev: vendor="X.Org Foundation"
#011compiled for 1.19.0, module version = 0.4.4
#011Modul

Re: Unwanted on-screen keyboard - which package.

2016-06-25 Thread Oliver Elphick
On Sun, 2016-06-26 at 03:13 +1200, cbannis...@slingshot.co.nz wrote:
> On Wed, Jun 22, 2016 at 05:06:13PM +0100, Oliver Elphick wrote:
> > I enabled the on-screen keyboard applet in Cinnamon so as to write
> > some
> > text with French accents. But then it kept on coming up when I
> > didn't
> > want it, every time I went into any text field. I removed the
> > applet
> > from my toolbar - no difference.  I found the cinnamon on-screen-
> > keyboard and deleted its entire directory - no difference. I logged
> > off
> > and even rebooted - no difference. I switched to Gnome (from
> > Cinnamon)
> > - no difference, and now I sometimes got a second small keyboard
> > coming
> > up, which seemed to be something to do with antlr. I deleted its
> > package. It still came up!
> > 
> > Nothing I do could get rid of this confounded nuisance until I
> > rebooted
> > again, after purging the antlr packages.
> > 
> > But what package should have a bug filed?
> 
> Install it again. Does the problem reocurr? 

In fact it is still occurring, without reinstalling anything, but not
in all the cases that it formerly was.  For instance the virtual screen
appears when I start synaptic and it wants me to type in the password,
but not when I search something inside synaptic, where formerly it did
occur.

On reinstalling caribou and caribou-antler, the small virtual keyboard
also appears (and won't go away again).



Unwanted on-screen keyboard - which package.

2016-06-22 Thread Oliver Elphick
I enabled the on-screen keyboard applet in Cinnamon so as to write some
text with French accents. But then it kept on coming up when I didn't
want it, every time I went into any text field. I removed the applet
from my toolbar - no difference.  I found the cinnamon on-screen-
keyboard and deleted its entire directory - no difference. I logged off
and even rebooted - no difference. I switched to Gnome (from Cinnamon)
- no difference, and now I sometimes got a second small keyboard coming
up, which seemed to be something to do with antlr. I deleted its
package. It still came up!

Nothing I do could get rid of this confounded nuisance until I rebooted
again, after purging the antlr packages.

But what package should have a bug filed?

Using Debian testing on amd64, updated this morning.

Thanks
Oliver Elphick



Debian testing - update has partly broken X, but which package?

2016-05-22 Thread Oliver Elphick
System : amd64 testing latest

With the same update to testing that brought in the new kernel, about 2
days back, some other package got changed that has partly broken the
display of window contents in X.

Symptoms - In most windows (except Iceweasel) there is no scroll bar.
The top menu line items are all run together with no spacing, although
they do still work. Drop-down lists have no surround. Where Gnome
presents an ON/OFF switch, it is not properly displayed and does not
appear to work. It is no longer possible to highlight text in certain
places (as when renaming files in the file browser). Highlighted text
is no longer visible in evolution. The general appearance is very poor.

Screenshot available at http://www.lfix.co.uk/images/x-problem.jpeg

I would like to know which package is responsible for these features,
please.

Oliver Elphick
Lincolnshire, UK



Re: Creating launcher in Gnome 3

2016-04-04 Thread Oliver Elphick
On Mon, 2016-04-04 at 17:19 +0200, Sven Arvidsson wrote:
> On Mon, 2016-04-04 at 13:27 +0100, Oliver Elphick wrote:
> > 
> > I'm trying to create a launcher.  Following the explanation in 
> > https://specifications.freedesktop.org/desktop-entry-spec/latest/in
> > de
> > x.
> > html
> > 
> > I created the following file in ~/.local/share/applications
> > 
...
> > However, this is ignored.  It appears from the xdg reference that
> > the
> > directory (and its subdirectories too?) should be read
> > automatically,
> > but my entry still does not appear in the menu.
> > 
> > So what is missing, please?
> Works fine here if I replace the Exec path to something like /bin/ls
> so
> it might be that the path is wrong or estudio is not executable?

In fact it does recognise the items. I used alacarte as the other
response suggested, and it created almost identical items inthe same
place that I had put them.  But Gnome ignores the Categories attribute
(and alacarte also ignored it) and put them in "Other".



Creating launcher in Gnome 3

2016-04-04 Thread Oliver Elphick
I'm trying to create a launcher.  Following the explanation in 
https://specifications.freedesktop.org/desktop-entry-spec/latest/index.
html

I created the following file in ~/.local/share/applications

eiffel-estudio.desktop

[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=/opt/Eiffel_15.12/studio/spec/linux-x86-64/bin/estudio
Icon=/opt/Eiffel_15.12/studio/bitmaps/png/estudio.png
Name=Eiffel Builder
Categories=Programming

However, this is ignored.  It appears from the xdg reference that the
directory (and its subdirectories too?) should be read automatically,
but my entry still does not appear in the menu.

So what is missing, please?

Oliver Elphick



Re: Do not know which package bug is in

2016-04-01 Thread Oliver Elphick
On Fri, 2016-04-01 at 11:34 +0100, Robin Oberg wrote:
> On Fri, 2016-04-01 at 11:21 +0100, Oliver Elphick wrote:
> > Intermittent failures like that sound more like hardware problems.
> > I
> > seem to recall reading that charging devices like that demands more
> > power than the computer can supply.
> > 
> > Oliver Elphick

> Would that not mean that the same problem exists in other operating
> systems as well? But seeing as it works fine to charge this old
> iPhone 4
> in Windows, so it does not seem like a hardware malfunction in this
> particular case.

Not necessarily. It might be that Windows doesn't use a particular area
of memory that Linux does.

I should go for the other poster's suggestion, of using a powered USB
hub. If the failures cease, it was a hardware problem.




Re: Do not know which package bug is in

2016-04-01 Thread Oliver Elphick
On Fri, 2016-04-01 at 10:25 +0100, Robin Oberg wrote:
> Hi!
> 
> I'm new to Linux and Debian 8.3, but thought I'd help out by sharing
> this bug that I've found. My system crashes randomly when my iPhone
> is
> charging via USB, and every time that it happens I am forced to
> hard-reboot the laptop by holding down the power button. I don't know
> where in the system this bug could be located, what package it might
> be.
...
> 
> Any help would be appreciated.

Intermittent failures like that sound more like hardware problems. I
seem to recall reading that charging devices like that demands more
power than the computer can supply.

Oliver Elphick



Re: How to debug systemd script?

2016-03-28 Thread Oliver Elphick
On Tue, 2016-03-29 at 02:33 +1300, chrisb@localhost.localdomain wrote:
> On Mon, Mar 28, 2016 at 01:00:35PM +0100, Oliver Elphick wrote:
> > How can I find out what is going on to stop the normal init script
> > from
> > working? Is there some way to force systemctl to log what it is
> > doing?
> > If it does log, where does it put the log?
> See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=731862
> 
> Near the very end it suggests:
> strace -f -o /tmp/strace.log -s 2048 -p 1 & systemctl restart
> postgresql.service

In fact the other suggestion there, of suppressing the redirect to
systemctl, proved helpful. the problem is actually in postgresql-
common, in a Perl script.

Thanks



How to debug systemd script?

2016-03-28 Thread Oliver Elphick
I have installed Debian alongside Linux Mint and wish to have
PostgreSQL use the same database.  So I have copied the system
configuration files in /etc/postgresql from the Linux Mint partition.
They point to the PostgreSQL data files in /lvhome/postgresql.  

This works in Linux Mint but not in Debian; PostgreSQL does not start.
There is nothing in the logs of either system or PostgreSQL. It works
if I call pg_ctl or if I run postgres directly.

I put set -x in the init script. When it is run, we see:

# /etc/init.d/postgresql start
...
+ echo -n Starting postgresql (via systemctl): postgresql.service
Starting postgresql (via systemctl): postgresql.service+
log_daemon_msg_post Starting postgresql (via systemctl)
postgresql.service
+ :
+ /bin/systemctl start postgresql.service
+ rc=0
...


There is a long pause at /bin/systemctl, but no error is indicated.
However, the server is not started.

How can I find out what is going on to stop the normal init script from
working? Is there some way to force systemctl to log what it is doing?
If it does log, where does it put the log?

Thanks
Oliver Elphick



Re: Multi-display - one monitor active but blank

2016-03-22 Thread Oliver Elphick
On Tue, 2016-03-22 at 16:36 -0400, Ric Moore wrote:
> 
> I didn't see a response to the question if this was a laptop?
> 

It isn't.  It's a tower PC. The on-board Intel video is not used; there
is a dual-head Nvidia card with both monitors.




Re: Multi-display - one monitor active but blank

2016-03-22 Thread Oliver Elphick
On Mon, 2016-03-21 at 20:55 -0400, Felix Miata wrote:
> Oliver Elphick composed on 2016-03-21 22:56 (UTC):
> > > What gfxchip powers your displays?
> > 
> > Card: Nvidia
> > 01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [NVS
> > 300]
> > (rev a2)
> > 
> > (I hope that is an answer!)
> According to the log, you have both NVidia and Intel gfx hardware,
> which to 
> me means you're probably using a laptop, making my help available to
> you very 
> limited. AFAIK, those two together are a special hybrid that for
> optimal use 
> requires a special driver, either Bumblebee, or Prime, depending on
> whether 
> you want a FOSS solution (latter), or a proprietary one (former).
> 
> Is it actually a PC with a separate NVidia card in a PCIe slot? If
> yes, are 
> the cables actually both DisplayPort cables? Sometimes the logs
> identify 
> connections differently from the actual physics. I've often seen
> physical DVI 
> connectors identified as HDMI with Intel gfx hardware.
> 

The latter is the case. The dual-head Nvidia card has both monitors;
the Intel port on the motherboard is not in use.

...

> First, ensure the display itself is not a problem by trying two
> things if you 
> haven't already:
> 
> 1-boot the computer with the 1920x1200 display powered off

The second (problem) display came up for the boot messages, but X still
treated the powered-off display as the primary display, so I had to
turn it on to log in. However the secondary display is currently
active, which is an improvement!
> 
> 2-if the cables are twins, boot the computer with the cables
> switched, so 
> that the smaller is primary rather than the larger

Bizarre results - the swapped primary (now secondary) was clearly using
the wrong driver settings, giving a very unclear picture, but both
screens came up.

On restoring things and rebooting, both screens came up.  I'll wait to
see what happens when it blanks the screen after inactivity.

> Docs for solving such problems as yours are usually very good on
> Arch, so you 
> might wish to look at https://wiki.archlinux.org/index.php/PRIME if
> nothing 
> yet tried helps. Another place to look for video-focused help is:
> https://lists.x.org/mailman/listinfo/xorg

Thanks for the suggestions.



Re: Multi-display - one monitor active but blank

2016-03-21 Thread Oliver Elphick
On Mon, 2016-03-21 at 23:07 +, Mark Fletcher wrote:
> It couldn't be a dodgy cable, could it?
> 
> Mark

I don't think so. If that were the case it would flash on and off as
the cable moved. It is resolutely blank, except just sometimes. The
cable is behind the desk, so it doesn't ge tmoved.

It may have something to do with the momitor itself, but I don't have
another one to substitute.

Oliver



Re: Multi-display - one monitor active but blank

2016-03-21 Thread Oliver Elphick
On Mon, 2016-03-21 at 17:27 -0400, Felix Miata wrote:
> Oliver Elphick composed on 2016-03-21 21:01 (UTC):
> 
> > 
> > I have two monitors; the second one sometimes comes to life but is
> > usually blank. However, the system thinks that it is active and
> > displaying.
> > 
> Which Debian?

MATE testing

# cat /etc/debian_version 
stretch/sid

(up to date)

> What gfxchip powers your displays? 

Card: Nvidia 
01:00.0 VGA compatible controller: NVIDIA Corporation GT218 [NVS 300]
(rev a2)

(I hope that is an answer!)

> Maybe you hit a known bug, such as:
> https://bugzilla.kernel.org/show_bug.cgi?id=94171

It is not the same chipset as reported in that bug, and I don't know
what I'm doing well enough to play with randr at the moment.

> Show us Xorg.0.log and .xsession-errors and maybe we can help.

.xsession-errors does not exist, so far as I can see. As far as the
system is concerned, it doesn't think that there is any error. 

Xorg.0.log attached. Both monitors are recognised.

Thanks for any suggestions.


-- 
Oliver Elphick
Lincolnshire, England
[53.349] (--) Log file renamed from "/home/olly/.local/share/xorg/Xorg.pid-1584.log" to "/home/olly/.local/share/xorg/Xorg.0.log"
[53.350] 
X.Org X Server 1.18.2
Release Date: 2016-03-11
[53.350] X Protocol Version 11, Revision 0
[53.350] Build Operating System: Linux 3.16.0-4-amd64 x86_64 Debian
[53.350] Current Operating System: Linux phoenix 4.3.0-1-amd64 #1 SMP Debian 4.3.5-1 (2016-02-06) x86_64
[53.350] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.3.0-1-amd64 root=UUID=72b9d4db-4d0e-466f-b90e-0a1a72dffcba ro quiet
[53.350] Build Date: 12 March 2016  07:32:38AM
[53.350] xorg-server 2:1.18.2-1 (http://www.debian.org/support) 
[53.350] Current version of pixman: 0.33.6
[53.350] 	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
[53.350] Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[53.350] (==) Log file: "/home/olly/.local/share/xorg/Xorg.0.log", Time: Mon Mar 21 22:37:03 2016
[53.372] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[53.406] (==) No Layout section.  Using the first Screen section.
[53.406] (==) No screen section available. Using defaults.
[53.406] (**) |-->Screen "Default Screen Section" (0)
[53.406] (**) |   |-->Monitor ""
[53.406] (==) No monitor specified for screen "Default Screen Section".
	Using a default monitor configuration.
[53.406] (==) Automatically adding devices
[53.406] (==) Automatically enabling devices
[53.406] (==) Automatically adding GPU devices
[53.406] (==) Max clients allowed: 256, resource mask: 0x1f
[53.406] (WW) The directory "/usr/share/fonts/X11/cyrillic" does not exist.
[53.406] 	Entry deleted from font path.
[53.406] (==) FontPath set to:
	/usr/share/fonts/X11/misc,
	/usr/share/fonts/X11/100dpi/:unscaled,
	/usr/share/fonts/X11/75dpi/:unscaled,
	/usr/share/fonts/X11/Type1,
	/usr/share/fonts/X11/100dpi,
	/usr/share/fonts/X11/75dpi,
	built-ins
[53.406] (==) ModulePath set to "/usr/lib/xorg/modules"
[53.406] (II) The server relies on udev to provide the list of input devices.
	If no devices become available, reconfigure udev or disable AutoAddDevices.
[53.406] (II) Loader magic: 0x55f22c60ddc0
[53.406] (II) Module ABI versions:
[53.407] 	X.Org ANSI C Emulation: 0.4
[53.407] 	X.Org Video Driver: 20.0
[53.407] 	X.Org XInput driver : 22.1
[53.407] 	X.Org Server Extension : 9.0
[53.407] (++) using VT number 2

[53.408] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_31
[53.409] (II) xfree86: Adding drm device (/dev/dri/card1)
[53.409] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 9 paused 0
[53.409] (II) xfree86: Adding drm device (/dev/dri/card0)
[53.410] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 10 paused 0
[53.410] (--) PCI: (0:0:2:0) 8086:0412:1458:d000 rev 6, Mem @ 0xf740/4194304, 0xd000/268435456, I/O @ 0xf000/64
[53.410] (--) PCI:*(0:1:0:0) 10de:10d8:10de:0862 rev 162, Mem @ 0xf600/16777216, 0xe000/67108864, 0xe400/33554432, I/O @ 0xe000/128, BIOS @ 0x/524288
[53.410] (II) LoadModule: "glx"
[53.428] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[53.452] (II) Module glx: vendor="X.Org Foundation"
[53.452] 	compiled for 1.18.2, module version = 1.0.0
[53.452] 	ABI class: X.Org Server Extension, version 9.0
[53.452] (==) AIGLX enabled
[53.452] (==) Matched nouveau as autoconfigured driver 0
[53.452] (==) Matched nv as autoconfigured dr

Multi-display - one monitor active but blank

2016-03-21 Thread Oliver Elphick
I have two monitors; the second one sometimes comes to life but is
usually blank. However, the system thinks that it is active and
displaying.

The primary monitor is a Samsung 24" and the secondary (usually non-
functioning) one a Mirai  - Chi Mei Optoelectronics 22".  Just
occasionally the second monitor comes up and can be used normally, but
once the displays are turned off by the screen saver, it remains blank
when the display comes back.  However the "Displays" utility says that
it is in use.

Previously I avoided the problem by turning off the screen-savers and
leaving the monitors turned on 24 hours a day, but I have just
installed Debian (instead of Mint) and the problem has come back.

Any ideas where to start to solve this, please?


-- 
Oliver Elphick
Lincolnshire, England



Re: Dual monitor problems

2013-06-25 Thread Oliver Elphick
On 25/06/13 12:34, Andrei POPESCU wrote:
> On Ma, 25 iun 13, 06:56:14, Oliver Elphick wrote:
>> I am trying to use two monitors at once, for the first time, using
>> an Nvidia dual head card.
>>
>> I have now got the two monitors displaying a single screen and the
>> mouse passes from one to the other.  However, the second screen
>> blanks after around 20 seconds of non-use and nothing will bring it
>> back to life.  I can pass the mouse into it, or select a  window
>> that is on it, but it remains black.  The only exception is that it
>> will restore when the screen is locked and I enter my password to
>> unlock it.
>
> Sounds like screensaver or similar. Based on your description I would
> guess you are using the separate screens setup, but more information
> about this, the driver and the desktop environment you are using would
> be necessary to help you.

Thanks Andrei.

Package release level is  2:1.12.4-6 (amd64).  The primary screen works
OK, the new, smaller one (DP-0, Monitor1) is the problem.  The primary
is connected with a DVI cable, the second is connected with a DVI/RGB
adapter.

This is the xorg.conf:

Section "ServerLayout"
 Identifier "Layout0"
 Screen "Screen0"
 Screen "Screen1" RightOf "Screen0"
 Option "DontVTSwitch" "Off"
 Option "DontZap" "Off"
EndSection

Section "Monitor"
 Identifier "Monitor0"
 VendorName "Mirai"
 ModelName  "DML-522W100"
 Option "DPMS"
 Option "Primary"
 Option "Position 0 0"
EndSection

Section "Monitor"
 Identifier "Monitor1"
 VendorName "Relisys"
 ModelName  "TL765-RU"
 Option "DPMS"
 Option "Rightof Monitor0"
EndSection

Section "Device"
 Identifier "Device0"
 Driver "nvidia"
 VendorName "NVIDIA Corporation"
 Option "Monitor-DFP-1" "Monitor0"
 Option "Monitor-CRT-0" "Monitor1"
EndSection

Section "Screen"
 Identifier "Screen0"
 Device "Device0"
 Monitor"Monitor0"
 DefaultDepth24
 SubSection "Display"
 Depth   24
 EndSubSection
EndSection

Section "Screen"
 Identifier "Screen1"
 Device "Device0"
 Monitor"Monitor1"
 DefaultDepth24
 SubSection "Display"
 Depth   24
 EndSubSection
EndSection

$ xrandr
Screen 0: minimum 8 x 8, current 2960 x 1050, maximum 8192 x 8192
DP-0 connected 1280x1024+1680+0 (normal left inverted right x axis y
axis) 338mm x 270mm
1280x1024  60.0*+   75.0
1280x960   75.0 70.0 60.0
1152x864   75.0 70.0 60.0
1024x768   75.0 70.1 60.0
800x60075.0 72.2 60.3 56.2
640x48075.0 72.8 59.9
DP-1 disconnected (normal left inverted right x axis y axis)
DP-2 disconnected (normal left inverted right x axis y axis)
DP-3 connected 1680x1050+0+0 (normal left inverted right x axis y axis)
473mm x 296mm
1680x1050  60.0*+
1440x900   75.0 59.9
1360x765   60.0
1280x1024  75.0 60.0
1280x960   60.0
1280x720   60.0
1152x864   75.0
1024x768   75.0 70.1 60.0
800x60075.0 72.2 60.3 56.2
640x48075.0 72.8 59.9
DP-4 disconnected (normal left inverted right x axis y axis)
DP-5 disconnected (normal left inverted right x axis y axis)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cajyqwwqp2mb4wh2zuavk1cuigcu3d33fkv7u-mmqekybecj...@mail.gmail.com



Dual monitor problems

2013-06-24 Thread Oliver Elphick
I am trying to use two monitors at once, for the first time, using an 
Nvidia dual head card.


I have now got the two monitors displaying a single screen and the mouse 
passes from one to the other.  However, the second screen blanks after 
around 20 seconds of non-use and nothing will bring it back to life.  I 
can pass the mouse into it, or select a  window that is on it, but it 
remains black.  The only exception is that it will restore when the 
screen is locked and I enter my password to unlock it.


Where should I look?

Debian version: sid, recently updated

Oliver Elphick


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Archive: http://lists.debian.org/51c922ee.8060...@lfix.co.uk



Re: Problems with CD insertion - sid

2013-06-21 Thread Oliver Elphick
On Thu, 2013-06-20 at 22:31 +1200, Chris Bannister wrote:

>...I'd try installing cdtool, and see if it plays
> with that.

Yes, it does.

The position is that udev recognises when an audio CD is inserted or
ejected and it updates the symlinks.  Programs that can be told what
drive to use can see and access the CD.

The problem is that Gnome (?) does not recognise that the CD has been
inserted and so does not initiate the program to play it.  

Rhythmbox needs that same notification to tell it to put the CD device
into the sidebar and thus make it accessible, so rhythmbox cannot be
used at all with an audio CD.

Oliver Elphick




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1371806284.3409.0.camel@ruth



Re: Problems with CD insertion - sid

2013-06-18 Thread Oliver Elphick
First, I was wrong about it's not mounting the data CD.  I was looking
in the wrong place.  So it is only about audio CDs.

When one is inserted:

$ sudo udisks --monitor-detail
Monitoring activity from the disks daemon. Press Ctrl+C to cancel.
changed: /org/freedesktop/UDisks/devices/sr0
Showing information for /org/freedesktop/UDisks/devices/sr0

native-path: 
/sys/devices/pci:00/:00:07.0/ata2/host1/target1:0:0/1:0:0:0/block/sr0
  device:  11:0
  device-file: /dev/sr0
presentation:  /dev/sr0

by-id: 
/dev/disk/by-id/ata-TSSTcorp_CDDVDW_SH-S223C_R41368DB120810

by-path:   /dev/disk/by-path/pci-:00:07.0-scsi-0:0:0:0
  detected at: Tue 18 Jun 2013 15:30:23 CEST
  system internal: 0
  removable:   1
  has media:   0
detects change:1
detection by polling:  1
detection inhibitable: 1
detection inhibited:   0
  is read only:0
  is mounted:  0
  mount paths: 
  mounted by uid:  0
  presentation hide:   0
  presentation nopolicy:   0
  presentation name:   
  presentation icon:   
  automount hint:  
  size:0
  block size:  0
  job underway:no
  usage:   
  type:
  version: 
  uuid:
  label:   
  drive:
vendor:TSSTcorp
model: TSSTcorp CDDVDW SH-S223C
revision:  SB06
serial:R41368DB120810
WWN:   
detachable:0
can spindown:  0
rotational media:  Yes, unknown rate
write-cache:   disabled
ejectable: 1
adapter:   Unknown
ports:
similar devices:
media: 
  compat:  optical_cd optical_cd_r optical_cd_rw
optical_dvd optical_dvd_plus_r optical_dvd_plus_r_dl optical_dvd_plus_rw
optical_dvd_r optical_dvd_ram optical_dvd_rw
interface: scsi
if speed:  (unknown)
ATA SMART: not available


As far as I can see, then, the problem is further on in the chain that
leads to a media player's being started.

How does udev notify gnome that something has happened?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1371563772.26431.1.camel@ruth



Re: Problems with CD insertion - sid

2013-06-18 Thread Oliver Elphick
On Tue, 2013-06-18 at 20:31 +1200, Chris Bannister wrote:
> For a start:
> 
> Does "eject -T" open/close the drive?

'eject /dev/sr0' opens it (once unmounted), and -t closes it.  -T gives
an I/O error

> Any error messages in /var/log/syslog?

No

> Does "udevadm trigger" help?

--verbose gives a long list of stuff.  But I'm not currently familiar
with udev; I don't see anything immediately relevant.

What options should I use, or what should I expect to see in that list?

Something updates the symbolic links /dev/cdrom1 /dev/cdrw1 /dev/dvd1
and /dev/dvdrw1 when a disk is inserted or ejected.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1371553934.8800.11.ca...@linda.lfix.co.uk



Re: Problems with CD insertion - sid

2013-06-18 Thread Oliver Elphick
On Tue, 2013-06-18 at 10:32 +0300, Andrei POPESCU wrote:
> On Ma, 18 iun 13, 07:55:51, Oliver Elphick wrote:
> > When a CD is inserted, it does not get mounted (data CD) or properly
> > notified (audio CD).
> ...
> > I don't know where the problem resides.  Which package should I be
> > looking at?
> 
> You should start by telling us what Desktop Environment you are using.
> 
> Kind regards,
> Andrei

Sorry.  
Gnome 3


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1371544040.8800.0.ca...@linda.lfix.co.uk



Problems with CD insertion - sid

2013-06-17 Thread Oliver Elphick
When a CD is inserted, it does not get mounted (data CD) or properly
notified (audio CD).

I found that rhythmbox never showed an audio CD as available to play -
it should come up under devices on the left-hand sidebar.

I then tried setting the system to run VLC instead, using System
Settings.  Still nothing happens when a CD is inserted. (But VLC can
play the CD if directed to.)

I found that a data CD is not mounted when it is inserted; I had to
mount it manually.

The Debian version is sid - up-to-date.

I don't know where the problem resides.  Which package should I be
looking at?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1371534951.4856.6.ca...@linda.lfix.co.uk



Re: postgresql installation

2006-02-15 Thread Oliver Elphick
On Tue, 2006-02-14 at 18:17 -0500, Tom Allison wrote:
> OK, I'm just getting stuck on something regarding getting this postgresql 
> started up.
> 
> For starters, there's no way I seem able to make a localhost tcp_ip 
> connection.
> 
> postgresql.conf
> tcpip_socket = true
> port = 5432
> 
> pg_hba.conf
> local   all postgres  ident sameuser
> local   all all ident 
> sameuser
> hostall all 127.0.0.1 255.255.255.255   md5
> hostall all ::1 
> :::::::md5

Did you reload the postmaster after changing this?

  su -c "/etc/init.d/postgresql reload"

> 
> I went into the template1 database and set my password for my username so 
> that I 
> could make connections from localhost.  I'm not certain about this 'md5' 
> thing. 
>   I set the password to match "foo" and not the md5_hex version of "foo".  
> I'm 
> assuming that this is not a problem...  But maybe it's a bad assumption.

md5 means that the password is compared in md5 format.  To set the
password, connect to template1 as postgres using a local connection (do
not specify any host) and:

 ALTER USER username WITH PASSWORD 'newpassword';

now you should be able to connect using that password:

  psql -d template1 -h localhost -U username


-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: C++: Math function round() does not compile - why?

2006-02-14 Thread Oliver Elphick
On Tue, 2006-02-14 at 10:54 -0600, Matt Zagrabelny wrote:
> > hmmm, have you tried to add the "-lm"  ???
> 
> i was thinking the same, but it looks as though he is only compiling,
> not linking, so one would think that '-lm' would have no impact.

That's right; the -c option was used.  This is just one module of many,
with the compilation of each module called from a makefile.

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: C++: Math function round() does not compile - why? - resolution

2006-02-14 Thread Oliver Elphick
On Tue, 2006-02-14 at 15:15 +0100, Jan C. Nordholz wrote:
> Hi,
> 
> > with g++-2.95, this gives no prototypes for round().
> > 
> > So it appears that -std=c99 does not work. Is there some way to achieve
> > this for 2.95?  (This is now academic, since I have written my own
> > version for this application.)
> 
> you could use the "features" header. Start your source files with
> 
> #define _ISOC99_SOURCE
> #include 
> 
> This will toggle the appropriate __USE_* macros (__USE_ISOC99, in this
> case) that aren't set by the compiler. There are a few other macros you
> might want to set (_POSIX_SOURCE, or even _GNU_SOURCE), so perhaps you
> should have a closer look at  if you plan to use it directly.

Thanks to you and others for that suggestion.

Defining _GNU_SOURCE fixes the problem for g++-2.95.

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: C++: Math function round() does not compile - why?

2006-02-14 Thread Oliver Elphick
On Tue, 2006-02-14 at 14:11 +0100, Jan C. Nordholz wrote:
> Hi Oliver,
> 
> > g++-2.95 -c -pipe -DQWS -fexceptions -fno-rtti -Wall -W -g -std=c99 
> > -I/opt/Qtopia/include -o orderimpl.o orderimpl.cpp
> > orderimpl.cpp: In method `void OrderImpl::calculate_line(int)':
> > orderimpl.cpp:84: implicit declaration of function `int round(...)'
> 
> this sounds like  doesn't give you the prototype for round().
> Try to run  through the preprocessor alone
> (g++-2.95 -std=c99 -E /usr/include/math.h), and grep for "round".
> I don't get the definition with "g++-3.3" alone, but with
> "g++-3.3 -std=c99" I do... YMMV. I've got no g++-2.95 here to continue
> the tests.

with g++-2.95, this gives no prototypes for round().

So it appears that -std=c99 does not work. Is there some way to achieve
this for 2.95?  (This is now academic, since I have written my own
version for this application.)

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Postgresql pg_autovacuum in Sarge?

2006-02-14 Thread Oliver Elphick
On Sun, 2006-02-05 at 09:08 -0800, Bill Moseley wrote:
...
> But I don't see what package includes pg_autovacuum.
> In Sid/Testing it's in postgresql-contrib-7.4, but on Sarge I don't
> see it in contrib:
> 
> 
> $ apt-cache show postgresql-contrib | grep vac
>indicates whether a vacuum is required.
>space that vacuum does not reclaim
>   vacuumlo   - Vacuum deleted large objects

Look for the file pg_autovacuum.  It is in postgresql-contrib.

(There is a temporary replacement for packages.debian.org up at
http://pdo.debian.net)

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



C++: Math function round() does not compile - why?

2006-02-14 Thread Oliver Elphick
I am trying to use the math function round() according to the manpage,
but it does not compile.  Can anyone explain why not, please?

This is a C++ app compiled with g++-2.95 (because the target is a Sharp
Zaurus).

According to man 3 round:

NAME
   round, roundf, roundl - round to nearest integer, away from zero

SYNOPSIS
   #include 

   double round(double x);
   float roundf(float x);
   long double roundl(long double x);

   Compile with -std=c99; link with -lm.


The code is:

class OrderImpl : public OrderForm
{
  ...
  double discpc;
  ...
  void calculate_line(int);
  ...
};

#include 
...
void OrderImpl::calculate_line(int newqty)
{
  double price = atof(TextLabelPrice->text());
  char tmp[20];
  sprintf(tmp, "%.4f", round((double) newqty * price * discpc) / 100.);
  ...
}


The command line and error are:

g++-2.95 -c -pipe -DQWS -fexceptions -fno-rtti -Wall -W -g -std=c99 
-I/opt/Qtopia/include -o orderimpl.o orderimpl.cpp
orderimpl.cpp: In method `void OrderImpl::calculate_line(int)':
orderimpl.cpp:84: implicit declaration of function `int round(...)'


-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IP forwarding problem

2006-01-31 Thread Oliver Elphick
On Fri, 2006-01-27 at 14:52 +, Oliver Elphick wrote:
> Can anyone help with this network problem, please?
> 
> This machine is an internal router, with two network cards.  iptables is
> not configured in the kernel, since masquerading and filtering is not
> required.  (There is a separate firewall machine.)
> 
> 192.168.2 (eth0) is a network with Windows machines.  Packets to and
> from that network are no longer being forwarded.  The routing table
> appears to be correct and IP forwarding is turned on.
> 
> Machines on 192.168.2.* are able to ping 192.168.1.18 (the other network
> card on the routing machine) but they cannot ping any other machine on
> the 192.168.1 network.  Similarly, the router can ping 192.168.2.* but
> no other machine on 192.168.1 can do so.
> 
> This set up was working until it was shut down and rebooted :-(

To close this thread for the benefit of readers of the archives, the
problem was that the routing table on the main gateway did not have an
entry for the 192.168.2.0 network.

All the server machines had been shut down and rebooted together because
the UPS batteries had to be replaced.  It seems that the gateway machine
came up before the internal router and was unable to add a route for
192.168.2.0 because the router was not yet responding.

Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Unsure about security requirements for workstation/server

2006-01-31 Thread Oliver Elphick
On Tue, 2006-01-31 at 20:03 +1100, Yasir Assam wrote:
...
> I know that for production servers only the Stable distribution is 
> recommended and as little software as possible should be installed. But 
> as a workstation, I'd like to install Unstable and a lot more software 
> on it than I would on a pure server (e.g. Gnome/KDE, GIMP and loads of 
> other stuff that I like to play around with).
> 
> What should I do? Is it possible to run Unstable in a secure fashion? I 
> know the security team focuses on releasing security updates to Stable 
> first, but doesn't Unstable get the updates soon after?

unstable is most likely to get the updates first, if the same version is
being used, because the security team will then need to check the
changes.  If it is a different version the security updates may be
irrelevant and you will depend on having problems promptly fixed by the
package maintainers.

As a compromise, you could install testing, which will be some way
behind unstable, but somewhat less likely to contain serious problems.

For security of your internet connection, install a firewall such as
shorewall (Debian package) and configure it very restrictively.

Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Kernel Source

2006-01-31 Thread Oliver Elphick
On Tue, 2006-01-31 at 10:38 +, Bob wrote:
> ...So I decided to
> install the kernel source, but I can't find a package for it? Am I
> missing something here, or can I not download the 2.6.x kernel source
> via apt...?

On sid, the packages are now called linux-source-2.6.x rather than
kernel-source-2.6.x.  I think that will apply to etch as well.

Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: IP forwarding problem

2006-01-27 Thread Oliver Elphick
On Fri, 2006-01-27 at 12:31 -0600, Matt Zagrabelny wrote:
> On Fri, 2006-01-27 at 14:52 +0000, Oliver Elphick wrote:
> > Can anyone help with this network problem, please?
> > 
> > This machine is an internal router, with two network cards.  iptables is
> > not configured in the kernel, since masquerading and filtering is not
> > required.  (There is a separate firewall machine.)
> > 
> > 192.168.2 (eth0) is a network with Windows machines.  Packets to and
> > from that network are no longer being forwarded.  The routing table
> > appears to be correct and IP forwarding is turned on.
> 
> how are you turning forwarding on?

$ cat /etc/network/options
ip_forward=yes
spoofprotect=yes
syncookies=no


> what does:
> 
> # sysctl -a | grep forward
> 
> list?
> 
> ie:
> 
> # sysctl -a | grep forward
> net.ipv4.conf.eth1.mc_forwarding = 0
...

net.ipv4.conf.eth0.mc_forwarding = 0
net.ipv4.conf.eth0.forwarding = 1
net.ipv4.conf.eth1.mc_forwarding = 0
net.ipv4.conf.eth1.forwarding = 1
net.ipv4.conf.default.mc_forwarding = 0
net.ipv4.conf.default.forwarding = 1
net.ipv4.conf.all.mc_forwarding = 0
net.ipv4.conf.all.forwarding = 1
net.ipv4.conf.lo.mc_forwarding = 0
net.ipv4.conf.lo.forwarding = 1
net.ipv4.ip_forward = 1

That's the same as yours, bar sorting.

> 
> > 
> > Machines on 192.168.2.* are able to ping 192.168.1.18 (the other network
> > card on the routing machine) but they cannot ping any other machine on
> > the 192.168.1 network.  Similarly, the router can ping 192.168.2.* but
> > no other machine on 192.168.1 can do so.
> > 
> > This set up was working until it was shut down and rebooted :-(
> 
> sometimes after a kernel upgrade or a reboot physical interfaces will be
> renamed by the kernel. that will screw things up, but if you can ping
> interfaces from the clients that doesnt sound like the problem, just
> thought i would mention it.

I can't see that that is a factor here.

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



IP forwarding problem

2006-01-27 Thread Oliver Elphick
Can anyone help with this network problem, please?

This machine is an internal router, with two network cards.  iptables is
not configured in the kernel, since masquerading and filtering is not
required.  (There is a separate firewall machine.)

192.168.2 (eth0) is a network with Windows machines.  Packets to and
from that network are no longer being forwarded.  The routing table
appears to be correct and IP forwarding is turned on.

Machines on 192.168.2.* are able to ping 192.168.1.18 (the other network
card on the routing machine) but they cannot ping any other machine on
the 192.168.1 network.  Similarly, the router can ping 192.168.2.* but
no other machine on 192.168.1 can do so.

This set up was working until it was shut down and rebooted :-(



Kernel 2.6.13

[EMAIL PROTECTED] netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags   MSS Window  irtt Iface
192.168.2.0 0.0.0.0 255.255.255.0   U 0 0  0 eth0
192.168.1.0 0.0.0.0 255.255.255.0   U 0 0  0 eth1
0.0.0.0 192.168.1.140.0.0.0 UG0 0  0 eth1

[EMAIL PROTECTED] cat /proc/sys/net/ipv4/ip_forward
1

[EMAIL PROTECTED] sudo ifconfig
eth0  Link encap:Ethernet  HWaddr 00:E0:81:2E:17:30
  inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
  inet6 addr: fe80::2e0:81ff:fe2e:1730/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:29786 errors:0 dropped:0 overruns:0 frame:0
  TX packets:17333 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:3292835 (3.1 MiB)  TX bytes:3704290 (3.5 MiB)
  Interrupt:153

eth1  Link encap:Ethernet  HWaddr 00:E0:81:2E:17:31
  inet addr:192.168.1.18  Bcast:192.168.1.255  Mask:255.255.255.0
  inet6 addr: fe80::2e0:81ff:fe2e:1731/64 Scope:Link
  UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  RX packets:2202383 errors:0 dropped:0 overruns:0 frame:0
  TX packets:1480881 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:524809613 (500.4 MiB)  TX bytes:358879507 (342.2 MiB)
  Interrupt:161



Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 15:25 +0100, gregory duchesnes wrote:
> Is there a quick way to get the list of modules and drivers i can erase?

Try this script:

#!/bin/bash
export module
for m in $(find /lib/modules -name '*.ko')
do
module=$(basename $(basename $m) .ko)
if [ -z "$((echo $module
   lsmod | tail --lines=+2 |
   awk '{print $1}') | sort | uniq -d)" ]
then
echo $m
fi
done



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 15:11 +0100, gregory duchesnes wrote:
> Yes i did, didn't help.
> 
> Listen guys, i have 36Mb of modules in /lib/modules, what would happen 
> if i erase (or just move for the moment) modules that i'm sure i don't 
> need, like (isdn drivers)?

No problem.  IF they aren't used, they are just taking up space.  

If they are used (check with lsmod) that bit of your kernel stops
working.

Oliver


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 09:08 -0500, Michael Marsh wrote:
> On 12/16/05, gregory duchesnes <[EMAIL PROTECTED]> wrote:
> > Do you know where i could find those 3Mb? I don't wnanna break anything
> > and i don't know what i could remove from /
> 
> Have you tried "apt-get clean"?

That empties /var/cache/apt, but he already has /var in a separate
partition.




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 14:14 +0100, gregory duchesnes wrote:
> Do you know where i could find those 3Mb? I don't wnanna break anything 
> and i don't know what i could remove from /

It all depends what you have installed.

What might be simpler is to swap your /tmp and / partitions:

reboot into single user mode

unmount all filesystems except /tmp

rm -rf /tmp/*

cp -a /[A-Z0-9a-su-z]* /tmp

cp -a /t* /tmp  except for /tmp itself

mkdir /tmp/tmp

chmod a+trwx /tmp/tmp

vi /tmp/etc/fstab and swap the devices for / and /tmp

either (if you boot with grub)

vi /boot/grub/menu.lst and change the root partition in
both (hd0,n) and the root specification to the kernel, 

or (if you use lilo)

vi /etc/lilo.conf and change the root partition and then
(very important) run lilo to rewrite the boot sector

reboot  (note that the boot clearance of /tmp will now delete
all your old root partition files, so it is vital to make sure
that everything in /tmp is correct before you do this)

You should now have your root partition in a 449M partition and your
other problem will have gone away.  Of course, if you get it wrong you
could have wrecked your system...

Oliver


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: HELP

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 13:07 +0100, [EMAIL PROTECTED]
wrote:
> Hi all ,
> 
> I'm very sorry for disturbing you but I had a serious problem when I tried
> to installing qt3-3.0.4-3.1mdk.src.rpm .
> I digited "rpm -i qt3-3.0.4-3.1mdk.src.rpm" and then it compaired :
> 
> warning: user juanma does not exist - using root
> warning: group juanma does not exist - using root
...

That is a Mandrake source rpm.  If you are using a Debian system, there
is absolutely no need to install Mandrake rpms of qt, for which there
are already Debian packages.

If you aren't installing on a Debian system, you are asking the wrong
list.

Oliver Elphick



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: apt-get upgrade fails due to kernel-image problem

2005-12-16 Thread Oliver Elphick
On Fri, 2005-12-16 at 12:43 +0100, gregory duchesnes wrote:
> Hi all,
> 
> I have a problem with apt-get when upgrading kernel-image, here is what 
> i got :
> 
> # apt-get upgrade
...
> utilisant .../kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb) ...
> The directory /lib/modules/2.6.8-2-386 still exists. Continuing as directed.
> Dépaquetage de la mise à jour de kernel-image-2.6.8-2-386 ...
> dpkg : erreur de traitement de 
> /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb 
> (--unpack) :
>  échec dans « buffer_write(fd) » (8, ret=-1) : backend dpkg-deb pendant 
> « ./lib/modules/2.6.8-2-386/kernel/sound/isa/sb/snd-emu8000-synth.ko »: 
> Aucun espace disponible sur le périphérique
...
> Seems like a space problem thouh here is a df -h :
> 
> Sys. de fich. Tail. Occ. Disp. %Occ. Monté sur
> /dev/hda1  89M   58M   27M  69% /
...
> Doesn't look like any of my partitions is full?

You have 27Mb available.  The size of
kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb is over 14Mb which
suggests that it will unpack to perhaps 30Mb.  I think you need to make
more space in your root partition.


> I remounted /boot rw before the apt-get upgrade (as well as /usr which 
> is remounted automatically through a pre-invoke command in apt.conf)
> 
> How to solve this?
> Can i do the --unpack anywhere else than in the default partition? (and 
> where does it unpack by the way?)

I think it unpacks into its intended location.  I don't know how to make
it do anything different through dpkg or apt.

> I don't use a sound card on this computer, can i remove this module 
> (safely and how?)

You could just delete it from /lib/... but that won't help you much
because you can't do that until _after_ it has been unpacked.

You can unpack the .deb file manually

  cd /some/path
  ar x /var/cache/apt/archives/kernel-image-2.6.8-2-386_2.6.8-16sarge1_i386.deb

That will give you a control tar archive and a data tar archive.  Unpack
the data archive and you should have the filetree that would be
installed.


Oliver Elphick



Re: How to install debian on an external hard disk drive

2005-10-21 Thread Oliver Elphick
On Fri, 2005-10-21 at 08:10 -0700, Bob A wrote:
> Hi,
> 
> Im greatly interested in learning linux and wish to
> install debian distribution onto an external disk
> drive.
> Here are my machine specifications:
> Processor: Pentium4
> Existing OS: Windows XP Home edition
> 120GB external hard disk
> 
> Please help me regarding the steps to follow to
> partition my external hard disk, setup the boot loader
> to direct it to external hard drive and basic steps
> for installing debian through the internet.

Boot from a Debian CD.

If the installation program can see the external drive, you simply
choose that one to install on; if you allow it to do so, it will
construct its own default partitioning scheme.  If it cannot see the
external drive, you will need to load the appropriate drivers.  Since
you don't say how your drive is connected, I can't say what they would
be.

If the BIOS does not see the drive as a boot option, you may have to
write a boot CD with a kernel and initial root image (initrd) on it.

Once you have a system that can boot into Debian, you can install
further packages over the net.

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Debian can't connect to internet gateway

2005-10-21 Thread Oliver Elphick
On Thu, 2005-10-20 at 23:01 -0700, Dan wrote:
> Hi,
> 
> I have a debian box (192.168.2.12) that acts as a dhcp server
...
> I want the debian box to connect
> through the internet gateway also.  Right now, I can only get the
> debian box to connect to the internet through pppoe.  Any suggestions?
> 
> cat /etc/dhcp3/dhcpd.conf
> --
...
> option routers 192.168.2.1;
...
>  cat /etc/network/interfaces
> --
...
> auto eth0
> iface eth0 inet static
> address 192.168.2.12
> network 192.168.2.0
> netmask 255.255.255.0
> broadcast 192.168.2.255

Don't you need a line here to specify the router?

  gateway 192.168.2.1


Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: postgresql encoding

2005-10-17 Thread Oliver Elphick
On Mon, 2005-10-17 at 12:08 -0400, Tony Heal wrote:
> I have just upgraded my distro from woody to sarge and postgresql's encoding
> got messed up. Is there a way to change the encoding of a database without
> dumping and recreating it? I also need to change the default decoding of
> postgresql. It is set to SQL_ASCII and I want to change it to UNICODE

No.  You have to dump and reload.
-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Y or I, N or O

2005-10-12 Thread Oliver Elphick
On Wed, 2005-10-12 at 10:49 +0100, Joseph Haig wrote:
> When upgrading with "apt-get upgrade" I get the option to install a new
> configuration file or keep the existing one.  The options are
> 
> Y or I  : install the package maintainer's version
> N or O  : keep your currently-installed version
> 
> Now, I know that with either Y or I and N or O, both old and new
> versions of the file are saved, but it doesn't say which!  Which of N
> or O do I need to use to save a copy of the new file?

Either.

If you choose Y, the existing configuration file will be saved as
.dpkg-old and replaced by the package's version.

If you choose N, the existing configuration file will be left untouched
and the new version will be saved in the same directory under the name
.dpkg-dist (or .dpkg-new).

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 6Gb of invisible files, or what?

2005-09-14 Thread Oliver Elphick
On Tue, 2005-09-13 at 11:52 -0400, Angelo Bertolli wrote:
> Juha Pahkala wrote:
> 
> > Angelo Bertolli wrote:
> > No, actually Oliver was 100% correct, I somehow had some dvb 
> > recordings under one of my nfs mount points and they took up the space 
> > that didn't show up using du.
> 
> Ok, I guess I don't understand why df would report such high disk 
> usage.  Does it have something to do with nfs caching data locally or 
> something?

df reports from the device what space is available and what is used.  du
examines the filesystem.  When another filesystem is mounted on a
mountpoint, the portion of the original filesystem below the mount point
is concealed by the newly mounted filesystem.  The two utilities are
answering different questions.

Because of the different ways they work, du cannot answer the question
"How much space is left?" and df cannot answer the question "How much of
the used space is visible in the filesystem?"
-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: 6Gb of invisible files, or what?

2005-09-13 Thread Oliver Elphick
On Tue, 2005-09-13 at 17:44 +0300, Juha Pahkala wrote:
>But 
> today I found out, that out of my 10Gb root partition df only shows 
> around 300Mb free!
> 
> So, I started looking and trying to find out what took all this disk 
> space. But I didn't get very far. As previously, I used du on all the 
> directories on root level / to see, which directory was excessively 
> large. But using du, I only managed to find a bit under 4Gb of files! 
> And now I'm wondering where the difference comes from and what can I do 
> about it?
> 
> Can anybody help me here, to free up some disk space, to help me 
> understand what's going on?

Do you have any extra partitions mounted?  If so, any contents of the
mount directories will be concealed (but will still take space, of
course).

Unmount all filesystems except root and check that the mount directories
are empty (don't forget about hidden files -- use ls -a).

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: ktechlab on sarge

2005-09-08 Thread Oliver Elphick
On Fri, 2005-09-09 at 07:16 +0100, debian wrote:
> Please,
> 
> there are no packages for ktechlab.
> 
> So I download the debs from : 
> 
> http://ktechlab.fadedminds.com/download/deb/
> 
> dpkg: dependency problems prevent configuration of libgtkextra:
>  libgtkextra depends on libgtk2.0-0 (>= 2.6.0); however:
>   Package libgtk2.0-0 is not configured yet.
> 
> and when I try to install libgtk2.0-0 I get still more dependencies
> problems.  When I try to install these depended-upon packages I get
> still more dependencies and so on.
> 
> I am worried that I will either waiste a lot of time and/or screw up
> other applications on my system.
> 
> Sorry to be such a coward, but might ktechlab be just too new for my
> sarge ?  Any other advice ?

That site says the packages are for sarge, so you should have no
problem.

First, the site says you need three packages from there: libgtkextra,
gpsim and ktechlab.  Obviously you need all of them and I presume you
have used dpkg to install them all?

If that is so, you now want to do:

  apt-get update # to get any security updates
  apt-get -u -f install

which will sort out the mess.  The -u option ensures that it tells you
what it is going to do before it starts deleting or overwriting stuff
you want to keep.


Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Newbie --Admin access problem on KDE... HELP!!

2005-09-08 Thread Oliver Elphick
On Fri, 2005-09-09 at 00:45 -0400, Faithful John wrote:
> Hi all,
> I'm a relative newbie who's been using the debian sarge.   I recently
> have been trying to install kubuntu on my friends laptop.   She wants
> to use linux as a primary system (she doesn't like micro$oft).
> Anyway, when I was installing kubuntu off a disc, the network
> connections did not set up properly.   Anyway, I have no connection to
> the internet on that laptop and so I am having lots of trouble
> updating the thing.   I don't even have admin access.   I know it's a
> bug with KDE, and it's been reported, but I can't make any sense of the advice
> people give.   Either it doesn't seem to work, or there isn't enough
> information for a newbie to follow the instructions.   
> 
> When I try to do something to change the network settings, I can't
> seem to log in as the administrator to do that.   I don't even know
> where to start to get it going, especially since I can't get admin
> access.
> Selam

To get admin access, you need to log in as root, for which you will need
the root password you set up when asked.

Since you talk of a bug in KDE, you would probably do better not to use
the graphical screen, so:

press ++
that should take you out of the graphical screen and display the first
virtual terminal (a black and white screen).  If you don't see a login
prompt, press return a couple of times until it appears.

In response to the login prompt, enter "root" 
In response to the password prompt, enter the root password you set up

Now type

  ifconfig

which will show you what network connections there are.  There should
always be one called "lo", which is the loopback interface (for the
machine to talk to itself.  If that is the only one, you need to set up
the network connection; unfortunately, just what you need to do to
accomplish that depends on what went wrong.

To start with, you need a stanza in /etc/network/interfaces to describe
the connection.  It will look something like this:

auto eth0
iface eth0 inet static
address 192.168.1.18
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.14

The address and gateway addresses and the prefix of network and
broadcast will depend on your local setup.  "address" is the address of
the machine you are setting up and "gateway" is the machine that is
connected to the internet.  If you want to use DHCP to get an address
automatically, it will be different - sorry, I haven't got an example
here.

If you have that, try typing

 ifup eth0

That may either work or show other errors - see how far you get.

Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Re:

2005-08-27 Thread Oliver Elphick
On Sun, 2005-08-28 at 01:27 -0500, Kent West wrote:
> Prabu Subroto wrote:
> 
> > Dear my friends...
> >
> > I want each user of a desktop can shutdown the desktop after they are 
> > finished with their job on the desktop.
> >
> > Till now only root can do shutdown.
> >
> > How can I do to make the non-root user can shutdown and reboot a
> > debian  box.
> >
> > Thank you very much in advance.
> >
> >
> Depends on how X is being started: "startx"? xdm? gdm?
> 
> I believe kdm allows this behaviour by default; if you don't mind
> switching, that might be the easiest fix.

If it's gdm, the availablility of this feature is controlled by options
in /etc/gdm/gdm.conf: SystemMenu and SecureSystemMenu

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Where is autologout control in sarge / gnome?

2005-08-24 Thread Oliver Elphick
I have a computer which is kept at current stable release.

Since it was upgraded to sarge, it has taken to doing an autologout from
an X session after an hour or so of inactivity.

Where is this controlled from?  I can't find a control for it in Gnome
nor in /etc/gdm/gdm.conf

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: tclConfig.sh and tkConfig.sh are not included in the binary distribution

2005-08-21 Thread Oliver Elphick
On Mon, 2005-08-22 at 11:16 +0530, Sourabh Bora wrote:
> 
> hi,
>   I have been trying to install some packages from source(scotty
> 2.1.11 being one of them). I have got tcl/tk 8.4 installed (using
> apt-get). Now when I run './configure ' an error is  reported saying
> that tclConfig.sh and tkConfig.sh are not found.  Hence I am unable to
> install such packages.
> I need help on this...
> thank you

You should find it in the tcl8.4-dev binary package,
at /usr/lib/tcl8.4/tclConfig.sh
-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: compile kernel for remote machine

2005-08-18 Thread Oliver Elphick
On Fri, 2005-08-19 at 08:34 +0200, Brent Clark wrote:
> Hi all
> 
> Would anyone know how I can compile a kernel for my remote machine on
> my machine.
...
> Baring in mind they are both debian machine and both running 2.6
> kernel and both running testing.

Since they are both Debian machines, you should install kernel-package
and use it to make debs of the kernel image that can be installed like
any other package.

apt-get install kernel-package
cd .../kernel-source-2.6.x
make-kpkg --revision=1 --append-to-version=.remote kernel-image

This makes the package ../kernel-image-2.6.x.remote_1_xxx.deb which you
can install on your remote machine.  (--append-to-version is optional,
but lets you distinguish a kernel image targetted on your remote machine
from any other of a different configuration.)

Things would be more complicated if the remote machine had a different
architecture.

Oliver


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Two problems: Low resolution and login screen

2005-08-17 Thread Oliver Elphick
On Wed, 2005-08-17 at 07:40 -0700, Alejandro Salas wrote:
> Hi everyone,
> 
> I'm still in 800x600 :-(... I've tried with a couple
> of different drivers and color depths and nothing.

Typically, this would mean that the capabilities of your monitor and
videocard are inadequately stated in /etc/X11/XF86Config.

When X starts, it tries to find the mode with the closest match to the
screen resolution you are asking for; in this case, the best it can do
is 800x600.  Look at the X startup log to see what it was doing. (The
log is in /var/log/XFree86.log.0, I think.)

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: diary with encryption

2005-08-17 Thread Oliver Elphick
On Wed, Aug 17, 2005 at 06:57:53AM +0200, Laszlo Boszormenyi wrote:
> Hi,
>
> I am looking for an application which can store my notes in an
> _encrypted_ way. Preferably it is GTK+ or console based, and
> has some development to keep up with the current GTK+ version
> at least.

You can use cfs to make a small encrypted filesystem out of a normal
directory; then you can store your diary in the encrypted filesystem.

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Backup/Restore debian package

2005-08-16 Thread Oliver Elphick
On Tue, 2005-08-16 at 06:09 -0700, [EMAIL PROTECTED] wrote:
> I meaned my own deb packages that are not on the Internet.

In that case, if you didn't keep copies of old debs, no-one else can
help.
-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Backup/Restore debian package

2005-08-16 Thread Oliver Elphick
On Tue, 2005-08-16 at 04:02 -0700, [EMAIL PROTECTED] wrote:
> Is there is a way to save/backup debian installed package ?
> 
> For example i have installed package 'test version 1.0' and i have
> installed package 'test version 1.1'. For some reasons i want to
> restore to 'test version 1.0' but i have not 'test.deb' file 'version
> 1.0'.
> How can i backup 'test version 1.0' for restore purpose after if needed.

Old package versions can possibly be recovered from http://snapshot.debian.net/

-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [networking] Computer can't see the outside world any more

2005-08-10 Thread Oliver Elphick
On Wed, 2005-08-10 at 11:19 +0100, Gareth Adams wrote:
...
> Now the strange thing is that, from logging into the server, I can
> ping any local address except for the DHCP server and the default
> gateway. 

> I can't ping any global addresses, but this is obviously a
> symptom of not being able to reach the gateway. Another machine
> plugged into the same hub as the web server has no problem reaching
> any address, local or global.
...
> Where do people think I should start looking? No one here has any idea.

How about setting it up with a static IP address and see if it works
like that?  (The DHCP server can be configured to avoid that address.)

You could also try running tcpdump on another machine to see if packets
from the web-server appear on the network.
-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



How to bounce emails selectively with exim?

2005-06-23 Thread Oliver Elphick
We get a number of spam mails and viruses sent to us with the sender
address spoofed to appear to be from our domain.  These get bounced for
the appropriate reason (unrouteable address, spam, etc) but if the mail
got routed through our ISP, the ISP sends the bounce straight back to me
because they think the sender is me (though the received headers show
the originating machine is in another domain).

For example, here is an unwanted bounce message that has come back to
me; the original message was sent from 203.101.34.73, which claimed to
be lfix.co.uk, but isn't, of course:

A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [EMAIL PROTECTED]
SMTP error from remote mailer after RCPT TO:<[EMAIL PROTECTED]>:
host mailgate.lfix.co.uk [80.177.205.209]: 550 unknown user

-- This is a copy of the message, including all the headers. --

Return-path: <[EMAIL PROTECTED]>
Received: from [203.101.34.73] (helo=lfix.co.uk)
by relay-1.mail.demon.net with esmtp id 1DlJws-0002cD-O7
for [EMAIL PROTECTED]; Thu, 23 Jun 2005 05:08:23 +
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Your Account is Suspended For Security Reasons


So if I get a bad email that purports to come from my domain but in fact
doesn't, I would like to delete it without responding at all, while
still bouncing bad emails that were genuinely sent within the domain.

Is there a way to configure exim to do this?

Oliver


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Gnome doesn't see user's PATH

2005-06-22 Thread Oliver Elphick
On Wed, 2005-06-22 at 11:49 -0500, Forrest Smith wrote:
> Hi all!
> 
>  Does anyone know why apps run from the panel aren't aware of
> user's environment vars, specifically PATH?
> 
>  Example, if Mutt is executed from my panel, I can't execute
> commands that are in my PATH.  If I run it from a terminal window,
> I can.  The same goes for Emacs.
> 
>  I'm using Gnome 2.8.2 in Sarge.

If you are also using gdm, the path it sets is defined
in /etc/gdm/gdm.conf (DefaultPath and RootPath)

I presume kdm and xdm have similar configuration features.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: dselect and a Recent Experience

2005-06-22 Thread Oliver Elphick
On Wed, 2005-06-22 at 12:06 -0500, Martin McCormick wrote:
>   Today, here at work, I was going to install bittorrent on ta
> Debian system and I used dselect to list the packages in order to find
> bittorrent.  It found it and I started to install from there except I
> saw that dselect was also going to whack about the same number of
> packages here that it did when I was on my system at home.  Both are
> very stable woody-installed systems. 

Does your /etc/apt/sources.list reference woody or stable?

They used to be the same, but now there is a new stable, sarge.  So if
you reference stable, a lot of your packages are now regarded as
obsolete.  You should either reference woody explicitly or do a complete
upgrade (recommended!) using the instructions in the release notes at
http://www.debian.org/releases/stable/i386/release-notes/index.en.html

Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Sarge problems with MySQL and DBI / DBD::mysql

2005-06-21 Thread Oliver Elphick
We have an application that has just upgraded to Debian sarge with mysql
upgrading from 3.23.49 to 4.0.24.  As far as I know I have followed all
the procedures for upgrading the database.

Some queries always fail in DBD::mysql (in DBI) although they work OK
with the mysql client.

For example, this SQL command:

SELECT description
FROM IncoCountry
WHERE value = "EW";

which returns 0 rows, works correctly in mysql.  But when it is passed
through this statement in Perl:

my @row = $dbh->selectrow_array($sql) or
&failed(__FILE__, __LINE__,
 "Failed to run the sql statement with error
  $DBI::errstr");

it fails inside DBD::mysql without giving any message in $DBI::errstr:

DBD::mysql::db::prepare(/usr/lib/perl5/DBD/mysql.pm:208):
208:my $sth = DBI::_new_sth($dbh, {'Statement' => $statement});
  DB<2> n
DBD::mysql::db::prepare(/usr/lib/perl5/DBD/mysql.pm:211):
211:if (!DBD::mysql::st::_prepare($sth, $statement, $attribs)) {
  DB<2> s
DBD::mysql::db::prepare(/usr/lib/perl5/DBD/mysql.pm:215):
215:$sth;
  DB<2> s
main::failed(/home/domain/www.chpresenters.co.uk/web/cgi-bin/ocms-multi/common/cgi-lib.pl:117):

If a row is added to the table to be returned by this query, the problem
goes away.

How can I debug or fix this problem, please?
-- 
Oliver Elphick  olly@lfix.co.uk
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
   Do you want to know God?   http://www.lfix.co.uk/knowing_god.html


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: postgresql

2005-01-06 Thread Oliver Elphick
On Thu, 2005-01-06 at 10:30 -0500, Steve Roberts wrote:
> I upgraded my web machine from woody-sparc to serge-sparc. (running on
> an ultra 5)

> Postgresql now will not start this is the error I get

> ERROR: pg_controldata: could not open file
> "/var/lib/postgres/data/global/pg_control" for reading: No such file
> or directory

Is that a true message?  Or is it a permissions problem? Or should
PostgreSQL be looking in some other directory?

What happened to the old data during the upgrade?  Woody has Pg 7.2.1;
sarge has 7.4.6.  The data formats are not compatible, so the data have
to be dumped and reloaded.  This can be attempted automatically, but
whether it is or not depends on a debconf setting.

If an upgrade was attempted, the old data will probably be
in /var/lib/postgres/data.save and /var/lib/postgres/data/PG.VERSION
should contain 7.4.  If there was no upgrade, PG.VERSION will contain
7.2 and global/pg_control may not exist - I've a feeling that it is
elsewhere in 7.2

> Found a pre-existing shared memory block (ID 0) still in use.
> If you're sure there are no old backends still running,
> remove the shared memory block with ipcrm(1), or just
> delete "/var/lib/postgres/data/postmaster.pid".

If you run ipcs -m (as root) do you see any blocks owned by postgres?


-- 
Oliver Elphick 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [exim4debian] Re: Debian-exim - blech!

2004-09-20 Thread Oliver Elphick
On Mon, 2004-09-20 at 19:47, Tim Kelley wrote:
> > So we shouldn't purge the mail queue and hints database? Since policy
> > requires a purged package to vanish without leaving any trace of its
> > installation, that would be a policy violation.
> 
> Huh? There is no such policy. The policy defines "purge" as "removing
> everything in it's file list except conffiles", and since the
> package's file list could not possibly contain files created post
> installation, it cannot delete anything in the system mail directory.

purge _does_ remove conffiles as well as the whole filelist.  I think it
should also remove files created by the package for its own use, but not
anything else that might happen to be in the same directory, which Marc
seems to think it should do.

Of course, there are some packages which definitely should not remove
all files that they create, not, at least, without asking; editors and
databases, for example.
-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "But my God shall supply all your need according to his
  riches in glory by Christ Jesus." Philippians 4:19


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [exim4debian] Re: Debian-exim - blech!

2004-09-20 Thread Oliver Elphick
On Fri, 2004-09-17 at 23:35, Marc Haber wrote:
> > I never did understand: what was the problem with "mail"?
> 
> First, installing exim4 would probably re-use the account "mail" which
> might be assigned to a user. This might grant excessive rights to that
> user (for example, access rights to the mail queue).

"mail" is and always has been a standard system account:

mail:x:8:8:mail:/var/mail:/bin/sh

Note the uid of 8 in the system range.

It would therefore be impossible to create a user account called "mail",
because it already exists.  If someone is stupid enough to take over the
"mail" account as a private user account, they deserve anything they
get.  Debian maintainers are not supposed to pervert the system to cope
with system administrators who are totally incompetent.

Of course your argument applies equally to "Debian-exim" - it might be
assigned to a user; it's quite as likely as that "mail" might be so
assigned.

> Second, purging exim4 in such a situation could lead to all files
> belonging to that user to be deleted.

Purging exim4 should not cause the deletion of the username nor of files
that exim4 did not install.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "But my God shall supply all your need according to his
  riches in glory by Christ Jesus." Philippians 4:19


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: [exim4debian] Re: Debian-exim - blech!

2004-09-17 Thread Oliver Elphick
On Fri, 2004-09-17 at 21:01, Marc Haber wrote:
> > I believe this was done because there is some Debian policy that a
> > weird user name must be created in this case.
> 
> No, the weird account name was chosen in absense of a formal policy
> to minimize the chance of clashes with account names deliberately
> created by the local admin.

I never did understand: what was the problem with "mail"?

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Honour the LORD with thy substance, and with the  
  firstfruits of all thine increase; So shall thy barns 
  be filled with plenty, and thy presses shall burst out
  with new wine."  Proverbs 3:9,10 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: finance/business

2004-09-07 Thread Oliver Elphick
On Tue, 2004-09-07 at 21:13, Alejandro Matos wrote:
> Got 4 programs (including gnucash)
> 
> Could anyone else help me with it?

We have begun development of a SQL-based system called Advacs (Advanced
Accounting System), which can be found at
http://alioth.debian.org/projects/advacs/

This is still only in the planning stage and is certainly not a
possibility for someone wanting to change right now.  On the other hand,
if they really want to go open-souorce and would like to contribute to
the specification, that would be very good.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For whosoever shall call upon the name of the Lord 
  shall be saved." Romans 10:13 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: How to set up CUPS client

2004-09-07 Thread Oliver Elphick
On Tue, 2004-09-07 at 12:00, Tom Pfeifer wrote:
> The part where I'm going blank is how to set up the 2nd machine so that
> I can use (send jobs to) the printer on the 1st machine. The docs seem
> to gloss over this, not going into any kind of step by step (or example)
> as they do with configuring the local machine.
> 
> In other words, what CUPS packages (if any) are needed on the client
> machine, and how do I go about accessing and selecting that printer over
> the network from applications such as Open Office, Mozilla, etc.?

Install cupsys-client

Edit /etc/cups/client.conf and change the line that sets ServerName

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For whosoever shall call upon the name of the Lord 
  shall be saved." Romans 10:13 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: getting full package name

2004-09-06 Thread Oliver Elphick
On Tue, 2004-09-07 at 05:18, Craig Jackson wrote:
> Hi,
> If I would like to know the name of a package, for example dhcp,
> installed on the system, I would run
> 
> dpkg -l | grep dhcp
> 
> Most of the time I get the right name and I'm happy. But there are times
> when the name of the package is so long that I cannot tell what the name
> is.
> 
> In that situation if grep through the file /var/lib/dpkg/available and I
> find the full name.
> 
> This is just a helpful hint for newbies that may have this problem.

This is easier:

  COLUMNS=200 dpkg -l dhcp\*

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For whosoever shall call upon the name of the Lord 
  shall be saved." Romans 10:13 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Network Connection Question

2004-09-06 Thread Oliver Elphick
On Tue, 2004-09-07 at 04:31, [EMAIL PROTECTED] wrote:
> Hello All
>  
> I am a beginner in Linux using Debian.   I have installed Debian in my
> old computer i386 machine (Configuration given below) 
> I would like to know if there is a way I can have this macine to
> identlify the network and the ip address.   I have DSL Internet
> connection - I have a DSL Modem and a 4 port Linksys Router.  I have 2
> computer connecting to this Router - One running Windows XP and the
> other Debian.   I have these following questions
>  
> 1.   How to have it identify the Network connection?

You don't mention how you physically connect to the router; is it a
network card?  or USB?  You need to have the appropriate module loaded
into the kernel when you boot.

> 2.   Can I have it work as a firewall and a router - the DSL Modem
> connecting directly to the server.?

Yes.  A nice firewall to run is Shorewall (Debian package available).

Using the computer as a router requires the computer to have two network
interfaces.  You would need to add a network card which would be
connected to your home LAN.  I don't how the DSL modem connects and
whether that can connect directly or whether it would be easier to
connect to the computer through the router.

> 3.   How to set the Time and Date?

For example to 23:47 on September 6th 2004
As root:

   date 090623472004

Then install the ntpdate and ntp-simple packages to keep the time and
date accurate by asking Internet servers.

> 4I have a mouse which connects to the USB Port - but its also not
> being identified by the X Window.   
>  
> What commands I need to execute?   Need some help.
 
Set it up in /etc/X11/XF86Config-4.  It needs to contain a section
looking something like this:

Section "InputDevice"
Identifier  "Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device""/dev/input/mice
Option  "Protocol"  "ImPS/2"
Option  "Emulate3Buttons"   "true"
Option  "ZAxisMapping"  "4 5"
EndSection

and that section needs to be tied into the ServerLayout section.

> Thanks & Regards,
>  
> AARON ROY
>  
> ORIGINAL Configuration:
>  
> Intel® Celeron™ 366MHz (w/128KB Cache) PPGA CPU 
> 32MB SyncDRAM (up to 256 MB) 
> 2 USB Ports (1 is on Front) 
> 1 Serial / 1 Parallel / 3 Expansion Slot 
> Audio In & Out / Game Port on Front 
> Internet Ready 
> Microsoft Works 
> ATI Rage Pro Turbo 2X AGP with 4MB SGRAM 
> Crystal CS4280 3D PCI Audio 
> 40x Max. CD-ROM Drive 
> 4.3GB HDD (Ultra DMA EIDE)   [ADDED 30 GB NEW HDD]
> 3.5" 1.44MB FDD 
> 56K* ITU V.90 PCI Fax/Modem 
> PS/2 Keyboard/Mouse 
> Stereo Speakers 
> Thanks & Regards,
>  
>  
-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For whosoever shall call upon the name of the Lord 
  shall be saved." Romans 10:13 



Re: Usability Questions

2004-09-06 Thread Oliver Elphick
On Mon, 2004-09-06 at 15:13, Ed Sutherland wrote:
> Is there a way to shutdown my computer within Gnome or KDE without having to
> first log-out, then picking 'shutdown'? (I know *nix systems are designed
> for 24/7, but many desktop computer users prefer shutting down overnight.)

Ctrl-Alt-F1-- switches to first virtual console
Ctrl-Alt-Del   -- standard shutdown/reboot

Make sure that the shutdown line in /etc/inittab says -h rather than -r,
otherwise it will just reboot.

Ctrl-Alt-Del doesn't work in X; that's why you have to switch to a
console screen first.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Behold, I stand at the door, and knock; if any man 
  hear my voice, and open the door, I will come in to 
  him, and will sup with him, and he with me."   
   Revelation 3:20 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Help!!!! If I'm to get debian up, I need help solving this...

2004-09-03 Thread Oliver Elphick
On Fri, 2004-09-03 at 07:40, Chris Stockwell wrote:
> dear debian users,
> 
> OK, here's the problem:  I for the life of me can't connect to the online 
> apt sources. 

security.debian.org is 194.109.137.218

Can you reach it at all?  (ping 194.109.137.218)  If not, it is your
network setup that is at fault.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "The times of ignorance therefore God overlooked. But now he
  commands that all people everywhere should repent, because
  he has appointed a day in which he will judge the world in
  righteousness by the man whom he has ordained; of which he
  has given assurance to all men, in that he has raised him
  from the dead.” Acts 17:30-31. 




Re: please help

2004-08-31 Thread Oliver Elphick
On Tue, 2004-08-31 at 17:14, Atiase Favour wrote:
> Hello: 
> My name is Favour Atiase, I am from Ghana West Africa.
> 
> I have an HP DesignJet 750C Plus plotter and I have a
> problem with it. 
> I switch on my plotter and recieced this error message
> 070010 01E6 on the led display, what does it mean
> and what do i have to check before. I have change all
> the cartridges but still. please help me with this
> ploblem. 

This is a hardware problem with your scanner.  Debian is software.

I think you will be more likely to get an anser to your question from an
HP website, for example
https://www.designjet.hp.com/reg_product_home.html?new_product=750C&pageseq=937897

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 " ...Take heed, and beware of covetousness; for a man's
  life consisteth not in the abundance of the things 
  which he possesseth."   Luke 12:15 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: OpenOffice.org and Spelling

2004-08-30 Thread Oliver Elphick
On Mon, 2004-08-30 at 04:14, Ed Sutherland wrote:
> Kevin C. Smith wrote:
> 
> >
> >I had to:
> ># mkdir /usr/lib/openoffice/share/dict
> ># ln -s /usr/share/myspell/dicts/ ooo
> >
> >and then spellchecking worked.
> >
> >
> >  
> >
> I just tried that. Nothing changed. Any switch or toggle I'm forgetting 
> to throw? Thanks.

There is an implication of a cd into the new directory before making the
link.  Would that work?

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For what shall it profit a man, if he shall gain the 
  whole world, and lose his own soul?"  Mark 8:36 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: postgres phpgroupware login woes

2004-08-26 Thread Oliver Elphick
Lance, my reply to you bounced, so I'm sending it to the list instead.
Bounce details at the bottom.

On Thu, 2004-08-26 at 17:18, Lance Hoffmeyer wrote:
> Is ENCRYPTED PASSWORD necessary for md5 passwords

It is now the default.  (To be precise, it is controlled by the
parameter PASSWORD_ENCRYPTION which defaults to "on".)

See the man page for create_user.

Oliver
===
Bounce:
A message that you sent could not be delivered to one or more of its
recipients. This is a permanent error. The following address(es) failed:

  [EMAIL PROTECTED]
SMTP error from remote mailer after RCPT TO:<[EMAIL PROTECTED]>:
host gomer.august.net [216.87.128.131]: 550-reject sending to address '<[EMAIL 
PROTECTED]>'.
550-The address <[EMAIL PROTECTED]> was not accepted.
550-Reason given was: (ERR_100) no such user or mailbox.
550 Permanent failure logged.

-- This is a copy of the message, including all the headers. --

Return-path: <[EMAIL PROTECTED]>
Received: from mailgate.bray-healthcare.com ([80.177.250.202] 
helo=solport.bray-healthcare.com)
by anchor-post-30.mail.demon.net with esmtp (Exim 3.35 #1)
id 1C0NqQ-000D92-0U
for [EMAIL PROTECTED]; Thu, 26 Aug 2004 17:15:26 +
Received: from braydb.bray-healthcare.com ([192.168.1.18])
by solport.bray-healthcare.com with esmtp (Exim 3.36 #1 (Debian))
id 1C0NqQ-0004SI-00
for <[EMAIL PROTECTED]>; Thu, 26 Aug 2004 18:15:26 +0100
Subject: Re: postgres phpgroupware login woes
From: Oliver Elphick <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: Lance Hoffmeyer <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
 <[EMAIL PROTECTED]>  <[EMAIL PROTECTED]>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: postgres phpgroupware login woes

2004-08-26 Thread Oliver Elphick
On Thu, 2004-08-26 at 05:30, Lance Hoffmeyer wrote:
> Running SARGE.  I have everything installed
> and appears to be installed correctly.  If
> I login as user postgres I can login to 
> a database phpgroupware.  If I am any other
> user and I run command 
> 
> psql phpgroupware -U postgres -W
> 
> I get error 
> 
> psql: FATAL:  IDENT authentication failed for user "postgres"
> 
> also, I cannot create phpgroupware database from phpgroupware
> admin?
> 
> What have I got setup incorrectly?

I don't know the insides of phpgroupware, but let me explain
PostgreSQL's authentication.

You connect either as a local client using Unix sockets (hostname is
blank) or through TCP/IP with or without SSL (hostname is not blank);
these three modes of access are represented in
/etc/postgresql/pg_hba.conf by lines beginning "local", "host-ssl" or
"host" respectively.

You connect to a specified database as a specified user.  If you are
connecting through TCP/IP you are coming from some particular host.
The first line in pg_hba.conf to match the combination of access mode,
database, user and (for TCP/IP only) source IP address is the line that
governs how your access is authenticated.

The default access mode in Debian PostgreSQL is "ident sameuser"; this
means that the postmaster checks that the database user being requested
is the same as the system login.  This means that you can access
PostgreSQL securely without having to enter a password every time you
connect.

When you access through the web, you cannot use ident authentication
because the system user requesting access is the owner of the webserver
(usually www-data) rather than yourself; so web-based database access
must use passwords - specify authentication mode "md5" in pg_hba.conf. 
Remember you must set passwords for all users with ALTER USER WITH
PASSWORD xxx before you change the authentication mode.  A user with
no password cannot get in at all.

I presume that phpgroupware is the same kind of animal; it must be
running under some other user name, so it cannot use ident
authentication; you must specify md5 authentication mode in the
pg_hba.conf line that governs the connection.  If you want to avoid
having the same change made for all accesses, arrange to have
phpgroupware connect to hostname localhost (thus using TCP/IP) while
default psql access will be to a blank hostname, thus using a Unix
socket.  The two different access modes can have different
authentication, as explained above.

Oliver Elphick
maintainer


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: select N random lines in a file

2004-08-22 Thread Oliver Elphick
On Sun, 2004-08-22 at 20:35, Lance Hoffmeyer wrote:
> Hello all,
> 
> I would like to write a script that will select N number of
> random lines in a file.  Any suggestions on how to do this?
> 

Use the rand() function in awk

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For yourselves know perfectly that the day of the Lord
  so cometh as a thief in the night. For when they shall
  say, Peace and safety; then sudden destruction cometh 
  upon them, as travail upon a woman with child; and 
  they shall not escape."  I Thessalonians 5:2,3 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Wrong interpretation og '\$' by bash?

2004-08-21 Thread Oliver Elphick
On Sun, 2004-08-22 at 01:52, Nicholas Lativy wrote:
> > PS1="\[\033]0;\$\w/\007\]\$\w/: "
> 
> I tried this here and got the same as you report, a "$" for root
> instead of the expected "#". Then I used:
> 
> PS1='\[\033]0;\$\w/\007\]\$\w/: '
> 
> and that worked! I played about a bit and consistently the latter
> quoting style produced the expected result but the former did not. I
> have no idea why this is (a bug?)

It is a consequence of shell quoting rules.  "..." does variable
substitution and backslash escaping, '...' does no substitution or
escaping.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For yourselves know perfectly that the day of the Lord
  so cometh as a thief in the night. For when they shall
  say, Peace and safety; then sudden destruction cometh 
  upon them, as travail upon a woman with child; and 
  they shall not escape."  I Thessalonians 5:2,3 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Wrong interpretation og '\$' by bash?

2004-08-21 Thread Oliver Elphick
On Sun, 2004-08-22 at 10:10, Daniel M. wrote:
> Hello everybody,
> 
> I have the following lines in ~/.bash_prompt (for all users):
> 
> --
> # set prompt and window title (if running in X terminal)
> 
> case $TERM in
>   xterm*)
>   PS1="\[\033]0;\$\w/\007\]\$\w/: "
>   ;;
>   *)
>   PS1="\$\w/: "
>   ;;
> esac
> --
> 
> The problem is, that when I log in as a root, '$' is displayed
> instead of '#'.
> 
> Why is that so - '\$' is supposed to display '#' if the effective 
> uid is 0, and how it can be corrected?

Quoting, I think.

Because you are using double quotes, the backslash is being interpreted
by the shell as an escape character, as if you  were specifying a
literal dollar sign.  Use single quotes instead.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For the Lord himself shall descend from heaven with a 
  shout, with the voice of the archangel, and with the 
  trump of God; and the dead in Christ shall rise first;
  Then we which are alive and remain shall be caught 
  up together with them in the clouds, to meet the Lord 
  in the air; and so shall we ever be with the Lord."   
  I Thessalonians 4:16,17 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Sid and security

2004-08-21 Thread Oliver Elphick
On Sat, 2004-08-21 at 16:42, Stefan O'Rear wrote:
> Please correct me if I'm misunderstanding all this...
> 
> Security team finds hole.
> Security team fixes hole.
> Security team NMU's woody-proposed-updates (exactly what section doesn't
> really matter.)
> Security team contacts maintainer.
> Maintainer applies patch.
> Maintainer uploads to sid.

No.  Maintainer agrees patch with security team; security team upload
new woody package.  The patch must be limited to the security features.

Nothing from sid (unstable) ever goes into woody (stable), only into
sarge (testing) which is soon to become the new stable.
 
-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For the Lord himself shall descend from heaven with a 
  shout, with the voice of the archangel, and with the 
  trump of God; and the dead in Christ shall rise first;
  Then we which are alive and remain shall be caught 
  up together with them in the clouds, to meet the Lord 
  in the air; and so shall we ever be with the Lord."   
  I Thessalonians 4:16,17 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Sid and security

2004-08-21 Thread Oliver Elphick
On Sat, 2004-08-21 at 16:25, Michael Satterwhite wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> I note that when the Sarge installer created my sources.list file, it put a 
> line in as follows:
> 
>   deb http://security.debian.org/ testing/updates main
...
> Question: Am I correct that a parallel location for unstable is not
> needed?  

There is none.  It would be far too much effort for the security team to
cope with.
 
-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "For the Lord himself shall descend from heaven with a 
  shout, with the voice of the archangel, and with the 
  trump of God; and the dead in Christ shall rise first;
  Then we which are alive and remain shall be caught 
  up together with them in the clouds, to meet the Lord 
  in the air; and so shall we ever be with the Lord."   
  I Thessalonians 4:16,17 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: OT: Questions or Doubts?

2004-08-20 Thread Oliver Elphick
On Fri, 2004-08-20 at 14:46, William Ballard wrote:
> My pet peeve is "take a decision" vs. "make a decision".  Great 
> Britains, Old Europe, New Europe, Asia and the Third World all say "take 
> a decision" when they speak english.  We never use that in America.

Comment from England: Rubbish!  "Take a decision" is rare and sounds
odd.  The phrase is "take the decision" followed by an infinitive
expressing what was decided; it is a more verbose synonym of "decide". 
It is usually transitive, whereas "make a decision" is usually
intransitive.  I make a decision; I will make a decision; I may make a
decision.  I made a decision;  I took the decision to do something.

> "Take a decision" is so passive; it implies studying what my options 
> are, holding my nose, and choosing one.  "Make a decision" is much more 
> American -- we'll just invent the option we want and then take that one.

As in Iraq...

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "But I would not have you to be ignorant, brethren, 
  concerning them which are asleep, that ye sorrow not, 
  even as others which have no hope. For if we believe 
  that Jesus died and rose again, even so them also 
  which sleep in Jesus will God bring with him."
I Thessalonians 4:13,14 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Obsessed with a clean system

2004-08-11 Thread Oliver Elphick
On Wed, 2004-08-11 at 04:04, Tong Sun wrote:
> Looking at the packages I installed, I know there
> would be lots of them that I will never use. E.g.,
> 
> kscreensaver ktux xscreensaver kdewallpapers atlantik
> atlantikdesigner gnome-games gnome-games-data katomic
> kbackgammon kbattleship kblackbox kdegames
> kdegames-card-data kenolaba kfouleggs kgoldrunner
> khangman kjumpingcube klickety kmahjongg kmessedwords
> kolf konquest kpat ksirtet ksmiletris ksokoban
> kspaceduel libgdkcardimage0 libkdegames1 libkpathsea3
> lskat
> 
> I don't want them, but I have to keep them. This to me
> is a huge list. 

You do not have to keep them.

> I used to remove all files in unwanted rpm packages in
> RH, leaving only empty shells in the system. Anybody
> has done similar things in Debian?

[EMAIL PROTECTED] sudo apt-get -u remove kbattleship
Password:
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  kbattleship kde kde-amusements kdegames
0 upgraded, 0 newly installed, 4 to remove and 1 not upgraded.
Need to get 0B of archives.
After unpacking 963kB disk space will be freed.
Do you want to continue? [Y/n] n
Abort.
[EMAIL PROTECTED] dpkg -L kde
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/kde
/usr/share/doc/kde/README.Debian
/usr/share/doc/kde/copyright
/usr/share/doc/kde/changelog.gz

[EMAIL PROTECTED] dpkg -L kde-amusements
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/kde-amusements
/usr/share/doc/kde-amusements/README.Debian
/usr/share/doc/kde-amusements/copyright
/usr/share/doc/kde-amusements/changelog.gz

[EMAIL PROTECTED] dpkg -L kdegames
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/kdegames
/usr/share/doc/kdegames/AUTHORS
/usr/share/doc/kdegames/README
/usr/share/doc/kdegames/copyright
/usr/share/doc/kdegames/changelog.gz
/usr/share/doc/kdegames/changelog.Debian.gz

So you see that those three reverse dependencies are actually dummy
packages.  Their only purpose is to cause other packages to be
installed.

You can safely allow them to be removed, so far as the current operation
of your system is concerned.  It might in the future lead to some
hiccups; for example, if a new and necessary dependency were to be added
to kde, you would miss it.  Arguably, that would be added at the wrong
level, though.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Be still before the LORD and wait patiently for him;
  do not fret when men succeed in their ways, when they
  carry out their wicked schemes." 
Psalms 37:7 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sql-ledger and postgresql: HOWTO?

2004-08-05 Thread Oliver Elphick
On Thu, 2004-08-05 at 14:10, Oliver Elphick wrote:
> On Thu, 2004-08-05 at 02:14, John Hasler wrote:
> > Oliver Elphick writes:
> > > I have the beginnings of the design of such a system; if anyone else
> > > would like to contribute ideas, please email me.
> > 
> > Your requirements sound good to me, though some of them are not relevant to
> > my needs.  Do you want to set up a mailing list, or maybe an Alioth
> > project?
> 
> I have requested an alioth project.

Which has now been created: advacs



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sql-ledger and postgresql: HOWTO?

2004-08-04 Thread Oliver Elphick
On Wed, 2004-08-04 at 03:00, John Hasler wrote:
> John Summerfield writes:
> > Web interfaces have their advantages though: for example, you client
> > machine can be anything anywhere running any web browser. One of the
> > things users like about sql-ledger is that you can do work at a client
> > site, connect to your accounts (possibly using their machine), print up
> > an invoice, process the payment & give them the receipt.
> 
> I would never make my accounting system accessible from the Net.  I would
> like it to be accessible on the LAN, though, and https seems like a good
> way to do that.

You can also let your client program talk to the PostgreSQL postmaster
through an SSL connection (for remote links) or Kerberos or directly
(for a trusted network).

I don't actively oppose a web interface; it's just that they are such a
pain to debug that I don't want to write one.

> > Also, using a web interface pretty much requires the application be
> > multiuser.
> 
> That's a given, isn't it?  I'd also want a text interface.  My wife hates
> GUIs.

A well-written web-interface should support lynx and similar text-based
browsers.  However, I would prefer a dedicated text input program
without the web-browser overhead; so it would work like the old
green-screen programs I used to write.  The objective here is maximum
convenience for data entry: type in the data, press return to go to the
next field, predictive text where possible, in-field editing.

> > Eiffel would offend those users who are especially keen on free software,
> > and ensure that the sotware would, at best, be in contrib.
> 
> I would not be interested in a non-free package.

Eiffel is free.  As has been pointed out, SmartEiffel is a GPL'd
compiler (the official GNU Eiffel compiler, no less!) and the class
libraries are free too.   It can even be faster than a program written
from scratch in C, because the optimisation looks at the entire program
before generating the C code rather than the more limited optimisation
that a C compiler can do (according to a current thread on the
smarteiffel mainlig list). 

> I have a toy system I spent some time on after I dropped out of the Gnucash
> project.  It uses Python and Postgresql and illustrates some ideas I was
> unable to sell to the Gnucash folks, such as using a journal as the
> fundamental data structure.  I haven't looked at it in years, so it has
> probably suffered bit-rot.

 

Let me set out what I think are some of the requirements for a good
accounting system (in no particular order):

1.  It should properly maintain double-entry, so that a
non-computer-literate bookkeeper can view accounts and understand them
as if he were looking at a written ledger.

2.  It should be fully integrated.  Cashbook, sales and purchase
invoicing, asset depreciation, employee expenses, tax deductions and
direct journal entries should all interact; the journal should be able
to address any ledger. 

3.  Account codes should be purely arbitrary.  I hate these systems that
force you to use numeric codes to sort the chart of accounts. The
organisation of accounts should depend on separate attributes of the
account definitions, not on their codes.

4.  There should be no limits on the number of companies, customers,
accounts or whatever.  (Proprietary systems tend to impose these to make
you pay for upgrades.)

5.  The system should be modular, so that you only need to install the
bits you use.

6.  There needs to be a full printed audit trail.  Entries should never
be deleted, only reversed.  Use printed checksums to enable it to be
proved that the current system entries are the same as were originally
entered.

7.  The system should enforce separation of duties, if the organisation
is large enough to need that.  (For example, the people who write
cheques should not be the same people as the bought ledger clerks).

8.  In view of the many different legal and tax systems in the world, it
should be easy to integrate tax modules in various places.

9. It should be easy to remove data relating to past years, without
affecting the current data; equally it should be possible to keep
multiple years' data on-line.

I have the beginnings of the design of such a system; if anyone else
would like to contribute ideas, please email me.
-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "And not only so, but we glory in tribulations also; 
  knowing that tribulation worketh patience; And  
  patience, experience; and experience, hope."  
Romans 5:3,4 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: kill process by name

2004-08-03 Thread Oliver Elphick
On Tue, 2004-08-03 at 19:29, Muratorio, Diego wrote:
> Hello Rick, I am looking for the same, did you find something about
> kill process by name?
>  

You want killall, from the psmisc package.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Love is patient, love is kind. It does not envy, it
  does not boast, it is not proud. It is not rude, it is
  not self seeking, it is not easily angered, it keeps
  no record of wrongs. Love does not delight in evil but
  rejoices with the truth. It always protects, always
  trusts, always hopes, always perseveres." 
I Corinthians 13:4-7 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sql-ledger and postgresql: HOWTO?

2004-08-03 Thread Oliver Elphick
On Tue, 2004-08-03 at 18:09, bob parker wrote:
> > > Any chance that you will package it?  Or let someone else do so?  I'm not
> > > pleased with sql-ledger either, but I like the alternatives even less.
> >
> > Once it is written, yes.  If you would like to list features you would
> > like to see, that could be helpful.  There really needs to be a good
> > free accounting package, but it has to cope with all kinds of things to
> > be a good internationalised package, and I probably haven't even
> > imagined some of them.

> Are we talking about a web page interface here? Say Pg + Php?
> If so I have the beginnings of a payroll module I could contribute.
> It's built to ato rules of PAYE for dotAU but maybe there's enough in common 
> to suit other places.

I'm not all that keen on web interfaces; as far as I can see, from my
limited and reluctant experience of writing them, the programming
languages are poor and debugging is a nightmare.  I was thinking on the
lines of glade + Python or Eiffel.  However the underlying database
structure should be the same, and I would insist on putting all the
consistency rules into the database (triggers, foreign keys, etc.) so
you could possibly have two different interfaces to the same database.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Love is patient, love is kind. It does not envy, it
  does not boast, it is not proud. It is not rude, it is
  not self seeking, it is not easily angered, it keeps
  no record of wrongs. Love does not delight in evil but
  rejoices with the truth. It always protects, always
  trusts, always hopes, always perseveres." 
I Corinthians 13:4-7 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sql-ledger and postgresql: HOWTO?

2004-08-03 Thread Oliver Elphick
On Tue, 2004-08-03 at 13:52, John Hasler wrote:
> Oliver Elphick writes:
> > I have written an accounting system in the past and now I have looked at
> > sql-ledger I prefer to do the same again, since it doesn't suit my ideas
> > of what such a system should be like.
> 
> Any chance that you will package it?  Or let someone else do so?  I'm not
> pleased with sql-ledger either, but I like the alternatives even less.

Once it is written, yes.  If you would like to list features you would
like to see, that could be helpful.  There really needs to be a good
free accounting package, but it has to cope with all kinds of things to
be a good internationalised package, and I probably haven't even
imagined some of them.

The old one was written (in BASIC) for UniVerse, which is proprietary. 
The code is currently stuck on an HP-UX machine to which I have lost the
passwords.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Love is patient, love is kind. It does not envy, it
  does not boast, it is not proud. It is not rude, it is
  not self seeking, it is not easily angered, it keeps
  no record of wrongs. Love does not delight in evil but
  rejoices with the truth. It always protects, always
  trusts, always hopes, always perseveres." 
I Corinthians 13:4-7 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sql-ledger and postgresql: HOWTO?

2004-08-03 Thread Oliver Elphick
On Tue, 2004-08-03 at 11:41, Johann Spies wrote:
> On Tue, Aug 03, 2004 at 12:44:38AM +0100, Oliver Elphick wrote:
> 
> > > I found the documentation confusing to say the least.
> > 
> > I agree with that.  (Once I got it working, I found sql-ledger to be
> > cumbersome and not in my opinion suitable for use as an enterprise
> > accounts system. )
> 
> Thanks for your reply.  This remark of yours makes me wonder whether
> it is worth while to try it out.

It might suit you better.  I have written an accounting system in the
past and now I have looked at sql-ledger I prefer to do the same again,
since it doesn't suit my ideas of what such a system should be like. 
But I wouldn't want my strong prejudice to overwhelm your own judgment!

I think they made a very good choice of database!

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Love is patient, love is kind. It does not envy, it
  does not boast, it is not proud. It is not rude, it is
  not self seeking, it is not easily angered, it keeps
  no record of wrongs. Love does not delight in evil but
  rejoices with the truth. It always protects, always
  trusts, always hopes, always perseveres." 
I Corinthians 13:4-7 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sql-ledger and postgresql: HOWTO?

2004-08-02 Thread Oliver Elphick
On Tue, 2004-08-03 at 00:01, John Summerfield wrote:

> ident is not secure. Just let me near your network with my Laptop:-) I 
> can make _m,y_ ident say I'm whoever I want you to think I am.

The postgresql package (by default) does not enable ident authentication
except for localhost (and for Unix sockets, which don't use the ident
server).  This is stipulated to be secure because identd is under the
control of the same administrator who is installing postgresql.  Ident
authentication is not recommended for use from remote machines except
those whose administration is similarly verifiable. 

> 
> Trust is probably okay if you control all the network. I'd change to 
> password authrntication.

I would always recommend password authentication for web-based
applications.

> >FATAL: IDENT authentification failed for user "sql-ledger".
> >
> >Why is postgresql trying to do an IDENT-authentication?
> >  
> >
> Comment out the line(s) that say it can.

Better to find out why it is matching one of those lines.  From the
details given, it must either be because the connection is using a Unix
socket or because it is connecting to a different database.


-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "All scripture is given by inspiration of God, and is 
  profitable for doctrine, for reproof, for correction, 
  for instruction in righteousness;"  
 II Timothy 3:16 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: sql-ledger and postgresql: HOWTO?

2004-08-02 Thread Oliver Elphick
On Mon, 2004-08-02 at 21:48, Johann Spies wrote:
> After seeing the article in Linuxjournal about sql-ledger I wanted to
> try it out.  The article referred to the installation as a
> "breeze". That was not my experience.  I found the documentation
> confusing to say the least.

I agree with that.  (Once I got it working, I found sql-ledger to be
cumbersome and not in my opinion suitable for use as an enterprise
accounts system. )

...

> Why would the documentation suggest a scheme that is not secure?
> Trying to create more secure schemes I had a lot of problems with the
> standard Debian ident-scheme in postgresql.  Reading the FAQ of
> sql-ledger, I found:  
> 
> "  This error has everything to do with the way distros set up access
> rights for postgres. They are way too restrictive and leave you wondering what to do 
> next.
> 
> Do yourself a favour and change authentication type in pg_hba.conf
> to
> 
> local   all  trust
> 
> until you have figured out what all this stuff in pg_hba.conf
> does. Read about the different authentication settings and change
> them as you see fit." 

Yuck!  Such an attitude to security makes me wonder a bit about the
whole package!  Accounting applications MUST be secure!

> Now that does not help at all!  Other documentation (README.gz)
> suggests a "safer" scheme:
> 
> "if you use passwords to access postgres use this command
>   $ createuser -d -P sql-ledger
> "

Yes.  With web applications, passwords are the only way to go, because
otherwise you have no verification of the user's identity.

> So I did that as well as 'createdb sql-ledger' and put the following
> in /etc/pg_hba.conf:
> 
> # All IPv4 connections from localhost
> hostsql-ledger  sql-ledger 127.0.0.1  255.255.255.255   md5
> host all all 127.0.0.1   255.255.255.255   ident sameuser
> 
> After reloading the postgresql-configuration I tried 
> 
> http://localhost/sql-ledger/admin.pl  but when I try to create a
> dataset as sql-ledger I get the following error:
> 
> FATAL: IDENT authentification failed for user "sql-ledger".
> 
> Why is postgresql trying to do an IDENT-authentication?

If any other database than sql-ledger is involved, the first of those
two pg_hba.conf lines does not apply and the second is used instead. 
(If you weren't specifying any host at all, it would be trying a Unix
socket connection rather than TCP/IP and neither of those lines would
apply.)  I think that its first action is to create a database, so it is
quite likely connecting to template1 first (since that is the only
database it can be sure exists).  Try changing the database parameter of
the pg_hba.conf line to "all".


-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "All scripture is given by inspiration of God, and is 
  profitable for doctrine, for reproof, for correction, 
  for instruction in righteousness;"  
 II Timothy 3:16 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Start postgresql for the first time

2004-08-01 Thread Oliver Elphick
On Sun, 2004-08-01 at 18:00, Stephen Patterson wrote:
> On Sun, 01 Aug 2004 17:40:06 +0200, Bob Parnes wrote:
> > After using mysql for several years, I decided to try the testing 
> > version of postgresql, but I cannot get started. I cannot log in to 
> > create users, and I cannot create a database.
> >
> > According to the documentation, the system contains a predefined user,
> > 'postgres'. However, when I run
> >
> > psql -U postgres
> >
> > I get the error message, 'No database specified'. When I run
> >
> > psql -U postgres -l
> >
> > I get the message, 'IDENT authentication failed for user "postgres"'.
> 
> The defualt setup (see /etc/postgresql/pg_hba.conf) is to only allow users
> to access postgresql databases if their postgres username matches
> their linux username. 

This is the policy for the Debian package.  It represents (in my
opinion) the best compromise between initial security and convenience. 
The upstream default has traditionally been full open access with no
security check.  In either case, the access policy needs to be reviewed
by the local administrator.

> To create database user accounts, log in as root, su to postgres and
> run createuser. As postgres, you can run createdb to create empty databases.

To expand on that, use "su - postgres" to get the full environment. 
Simply using "su postgres" would not do that.

When PostgreSQL is installed for the first time, there are two
databases: template0 and template1.  template1 is the template for the
real databases that you will create; any changes you make to it will be
propagated into any new databases created thereafter (for instance, you
might choose to delete the public schema from template1).  template0 is
a pristine copy of the database as created by initdb and is not normally
accessible.  It can be named specifically as a template for creating a
database.  When accessing PostgreSQL for the first time you would
specify template1 as the database:

  psql [-d] template1

The Linux commands createdb and createuser are programs that connect to
the template1 database and wrap the SQL commands CREATE DATABASE and
CREATE USER, which you can use from inside psql.

If, when you create a user, you give him the right to create new users,
he is by definition an administrator or superuser in respect to
PostgreSQL, just as the user postgres is in the default installation. 
In my own set-up I give myself that privilege and therefore very rarely
need to use the postgres login to access the database.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "And why call ye me, Lord, Lord, and do not the things 
  which I say?"   Luke 6:46 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Disk tools in debian

2004-07-12 Thread Oliver Elphick
On Mon, 2004-07-12 at 19:52, David Fokkema wrote:
> On Sun, Jul 11, 2004 at 03:49:35PM -0600, Paul E Condon wrote:
> > I'm puzzled. I thought I might learn something by checking on this
> > fix to Tong's problem, but running as root on a Sarge system, I get
> > results just like Tong, and not like you, Oliver. I fail to see what
> > I could be doing wrong. Maybe there is a problem here.
> 
> Same here. Nothing. I am running Sid.

I guess someone who is seeing this problem should file a bug afainst
util-linux.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Many, O LORD my God, are thy wonderful works which 
  thou hast done, and thy thoughts which are for us..." 
 Psalms 40:5 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: Any way to search executable name?

2004-07-12 Thread Oliver Elphick
On Mon, 2004-07-12 at 20:24, * Tong* wrote:
> Hi, 
> 
> Is there any way to search executable name for it package? 
> 
> For example, from efax.rc I know that it uses "paperconf" to determine
> paper size. but apt-cache search can't find its package name...

Go to http://packages.debian.org and search on package contents there.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Many, O LORD my God, are thy wonderful works which 
  thou hast done, and thy thoughts which are for us..." 
 Psalms 40:5 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: your request for Debian involvement

2004-07-09 Thread Oliver Elphick
On Fri, 2004-07-09 at 14:33, [EMAIL PROTECTED] wrote:
> Dear Sir/Madam
> 
> I am writing to you to ask if you would like to participate in a
> community project we are running that aims to increase ICT usage among
> young people in our surrounding area.

What is your area?  Debian is a worldwide group, so you need to be more
specific.

>  We are currently focusing on linux because of the many distributions
> and we were wandering if you would like us to use you software on our
> machines.

We welcome new users, but you should realise that we are not a
commercial organisation and have no marketing budget.  Therefore there
are no freebies, except for possible volunteer help.

> We view this as a good opportunity for the promotion of your operating
> system and to get some feedback from our users. I would be delighted
> if you would get back to me.
> 
> Many Thanks,
> Sam Wells


Oliver Elphick


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: postgresql with tcp/ip conection

2004-07-08 Thread Oliver Elphick
On Thu, 2004-07-08 at 18:33, cenapad wrote:
> Does anybody  know how to configure /etc/init.d/postgresql to accept 
> TCP/IP conections?
> In redhat was simpler (just modify the line was started with "su -l 
> postgres"). But in debian, filhe is completely different .
> I know that a flag -i should be added, but i dont know where.

The Debian package is set up by default to listen on TCP/IP.  The
relevant configuration parameter is tcpip_socket in
/etc/postgresql/postgresql.conf.  (Adding the -i switch to the
postmaster invocation is also effective, but should be unnecessary.)

You may use nmap or a similar tool to verify that the postmaster is
listening on port 5432.

The default setup for TCP/IP connections is to accept them from
localhost only.  If you are having problems connecting from another
machine, this is likely to be what needs changing.  The authentication
setup is done in /etc/postgresql/pg_hba.conf.

Oliver Elphick
postgresql maintainer


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: PHP + PostgreSQL

2004-06-27 Thread Oliver Elphick
On Sun, 2004-06-27 at 05:57, deb_milist wrote:

> Error message ( using function.inc file with your modification ) :
> 
> Warning: pg_connect(): Unable to connect to PostgreSQL server: FATAL:
> IDENT authentication failed for user "techtables" . in
> /var/www/techtables/functions.inc on line 11
> Cannot connect

Right.  This means that for the particular combination of access method,
client host, user and database, the corresponding line in pg_hba.conf
specifies ident authentiaction.  This is no use for web-based
applications, where the ident user is always the user who is running the
web-server.  Remember that the *first* matching line in pg_hba.conf is
the one that applies; also remember to reload/restart postgresql after
changing that file.

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Therefore being justified by faith, we have peace with
  God through our Lord Jesus Christ."   Romans 5:1 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: PHP + PostgreSQL

2004-06-26 Thread Oliver Elphick
On Sat, 2004-06-26 at 03:42, deb_milist wrote:
> thanks oliver.
> but i still get the same error.

Do you mean that it still says it can't find "127.0.0.1," or simply that
it doesn't authenticate?

>  i think it's postgresql auth. problem ( ...or i dunno)
> in the latest howto ( as i sent within my e-mail before ) there's
> differences in how to treath 
> postgresql 7.2 and 7.3 which acoording to the howto those are the only
> postgre environtment this
> techtables has been tested. 
> since i'm running sid with postgresql 7.4.3, i guess there will be
> another setting need to be applied.
> ( example : it said i need to change the value "ident sameuser" to
> "MD5" in pg_hba.conf so postgre
>  will ask for password: in my experience it's failed and when i try to
> replace "MD5" with "password"

Your pg_hba.conf settings had "trust" access, didn't they? (I haven't
kept previous postings.)  If so, PostgreSQL gives access without any
authentication and the problem is in the connection string.

If you change /etc/postgresql/pg_hba.conf, you need to reload or restart
the postmaster after making the change:

   root#  /etc/init.d/postgresql reload

If you changed to "trust" or "md5" authentication without reloading,
PostgreSQL would not take any notice of your changes.

If you are using "md5" authentication (lower case required, I think),
you also need to set the users' passwords before they can be used.  Go
into psql as user postgres and do:

   ALTER USER username WITH PASSWORD 'password goes here';

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Therefore being justified by faith, we have peace with
  God through our Lord Jesus Christ."   Romans 5:1 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: PHP + PostgreSQL

2004-06-24 Thread Oliver Elphick
On Thu, 2004-06-24 at 05:17, dodol garut wrote:
> I've techtables installed in my box but it doesn't
> wanna work. someone in this room told me that it
> because PHP doesn't compiled with PostgreSQL. Well, i
> wonder...As a trully stupid debian newbie, all i did
> when installing PHP4 to support PostgreSQl is just
> 'apt-get install php4-pgsql'. that's it.
> or should i compile php4 from source so it will
> support postgresql ??? if that so, why there's a
> debian package for it ? (what the ...)

That's good and necessary as a first step.

Now you need to find out whether PHP is attempting a connection to
PostgreSQL.  If it isn't, it's a PHP or Apache problem.  If it is, it
may be a PostgreSQL authentication problem.

Oliver Elphick



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: openwebmail + postgresql configuration

2004-06-15 Thread Oliver Elphick
On Mon, 2004-06-14 at 20:01, Tom Allison wrote:
> I'm running my authentication through a pgsql database with passwords 
> that are stored as md5 hashes of the password.
> This authentication model is working for the dovecot imap server.
> 
> However, under openwebmail I am accessing the database through 
> 'localhost' instead of sockets and I keep getting a postgres pg_hba.conf 
> configuration error.  The affecting line is:
> 
> hostall   all 127.0.0.1  md5
> 
> 2004-06-14 21:58:22 [24670] LOG:  connection received: host=127.0.0.1 
> port=33487
> 2004-06-14 21:58:22 [24670] LOG:  invalid entry in pg_hba.conf file at 
> line 89, token "md5"

You have left out the netmask field

> dovecot accesses the database for authenction through a line that says:
> localall all md5
> (successfully).
> 
> 
> Right now I have to figure this out, but my openwebmail part of the 
> question is, can I set the host to a local socket?

If the hostname is blank, rather than "localhost", you will get a Unix
socket

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Therefore being justified by faith, we have peace with
  God through our Lord Jesus Christ."   Romans 5:1 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



RE: help on a script

2004-06-05 Thread Oliver Elphick
On Sat, 2004-06-05 at 07:38, Oliver Elphick wrote:
> > > Make the script executable and make sure the user under whose uid it
> > > will run is able to connect with ssh without supplying a password.
> > > 
> > 
> > How exactly would I do that? Make a user that doesn't have to supply a
> > password? Like the apache default www-data? How would I set up the user?
> 
> 
> On the target machine
> 
>mkdir ~/.ssh
> 
> On the sending machine:
> 
>ssh-keygen -t dsa
> (leave the passphrase empty)
> 
>scp .ssh/id_dsa.pub [other machine]:.ssh

Sorry, that should be: 
   scp .ssh/id_dsa.pub [other machine]:/tmp
   ssh [other machine]
  cat /tmp/id_dsa.pub >>.ssh/authorized_keys

-- 
Oliver Elphick  [EMAIL PROTECTED]
Isle of Wight  http://www.lfix.co.uk/oliver
GPG: 1024D/A54310EA  92C8 39E7 280E 3631 3F0E  1EC0 5664 7A2F A543 10EA
 
 "Therefore being justified by faith, we have peace with
  God through our Lord Jesus Christ."   Romans 5:1 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



  1   2   3   4   5   6   7   8   9   >