Re: trying to get unicode to work in perl

2007-08-09 Thread Andrei Popescu
On Wed, Aug 08, 2007 at 12:42:23PM -0700, tom arnall wrote:

> > Did you set LC_ALL? It is not set by default (at least not on my
> > system). What is the output of locale (and why is your kmail sending
> > ISO-8852-1 mails?)
> >
> > Regards,
> > Andrei
> 
> 'env' gives:
> 
>   [EMAIL PROTECTED]:~$ env
>   ...
>   LC_ALL=en_US
>   ...
>   LANG=en_US.UTF-8
>   ...
>   LANGUAGE=en_US
>   ...
> 
> does this not give what LC_ALL is set to?
> 
> 'locale' gives:
> 
>   [EMAIL PROTECTED]:~$ locale
>   LANG=en_US.UTF-8
>   LANGUAGE=en_US
>   LC_CTYPE="en_US"
>   LC_NUMERIC="en_US"
>   LC_TIME="en_US"
>   LC_COLLATE="en_US"
>   LC_MONETARY="en_US"
>   LC_MESSAGES="en_US"
>   LC_PAPER="en_US"
>   LC_NAME="en_US"
>   LC_ADDRESS="en_US"
>   LC_TELEPHONE="en_US"
>   LC_MEASUREMENT="en_US"
>   LC_IDENTIFICATION="en_US"
>   LC_ALL=en_US

I'm not an expert, but I think it's not very wise to mix locales. Set 
everything to en_US.UTF-8 try again.

> what are 'ISO-8852-1 mails'?



Your kmail was not set to send UTF-8 mails (did you change this?), but 
used the encoding ISO-8859-1 for the previous mail, that's why the 
smiley face you meant to send came up ... a bit different :) It's 
probably not related to your problem.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: font problem - please help!

2007-08-09 Thread Takehiko Abe

Zach wrote:

> Someone said the new version of the X.Org xserver no longer puts the
> Font lines in the xorg.conf file. I wonder where it puts them? I just
> remember one of the packages that it upgraded was xserver-xorg yet it
> didn't show anything on stdout indicating it was changing font
> directors or anything!

fwiw my xorg.conf does not have a fontpath entry, and I don't have
much problem with fonts (or I have the same problem as you, but have
not noticed it.)

From /usr/share/doc/xorg/changelog.Debian.gz :

| * Don't write the files section of xorg.conf by default. If the user
|   does want to write the files section, don't write out any font
|   paths, only write out the font server bit if they specify that.
|   + This will depend on having xserver-xorg-core version
| 2:1.3.0.0.dfsg-3 which includes a patch to always look in the
| default font paths by default. Bump the xserver-xorg dependency
| on xserver-xorg-core to this version.


and my xorg log shows:

(==) 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


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




Re: font problem - please help!

2007-08-09 Thread Mumia W..

On 08/09/2007 01:30 AM, Zach wrote:

On 8/8/07, Mumia W.. <[EMAIL PROTECTED]> wrote:

[...]
xset q
xlsfonts

The first command shows X settings, and the second one shows the fonts
that X recognizes. This information helps in debugging the problem.


Ok here is that output:
http://pastebin.ca/650819
[...]


The fonts are definitely recognized by X. I want to see what your 
dot-per-inch value is. Please give us the output of xdpyinfo.


Also, try this:

1) Shutdown gdm using (as root) /etc/init.d/gdm stop
2) Go into a normal user account.
3) Start Xorg using this command: startx -- -dpi 100

Tell us if things are better.



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




Re: font problem - please help!

2007-08-09 Thread Zach
On 8/8/07, Florian Kulzer <[EMAIL PROTECTED]> wrote:
>
> Version 7.2 of Xorg includes the default font paths automatically now,
> so most of these lines are not needed anymore in the "Files" section of
> xorg.conf:

I checked apt-cache for xserver-xorg and you're right I have "Version: 1:7.2-5".
So where does the xserver keep the list of fonts to use and where is
this file? Can I edit it or would that mess up debconf? I already
tried putting the 75dpi font I wanted as the first line but my font
still don't look how they did before I upgraded the xserver-xorg
package.

When I do ps I see:
root  2371  0.0  0.5   3584  1380 ?Ss   Aug08   0:00
/usr/bin/xfs -daemon
root  2545  6.1  8.1  27344 20812 tty9 S (This is from my /var/log/Xorg.0.log; I reformatted the long line to
>  make it more easily readable.)

Here is my Xorg.0.log:
http://pastebin.ca/650829

As you can see at the top of the log where it sets font paths there
are some errors, it is trying to load the 100dpi fonts but I purged
that package from my system so obviously the font listing it has is
outdated. How can I update it?

I don't have a Xorg.0.log from when the fonts were working (wish it
archived more than just 1 revision) but I do have a log from when I
used the XFree86 xserver for this machine. Here is the XFree86.0.log:
http://pastebin.ca/650833

> Zach, since you have problems with the sizes of both fonts and entire
> windows I suspect that your Xorg is currently working with a wrong
> resolution setting, maybe due to a graphics driver update. (It could
> also be that the resolution setting was wrong earlier and you set your
> application font preferences and default window sizes for this wrong
> configuration...)

I know my max screen resolution is 1024x768 cause the laptop specs
said so. And the desktop looks exactly like it did before I upgraded
the xserver-xorg package except for when I start up applications and
they appear with smaller fonts and sometimes smaller window
dimensions. Is there a command that will display what resolution the X
server is using? I'm like 95% certain it is using 1024x768. This is
what I've always used, even back when I ran XFree86 on this machine.

> I think the best approach is to put the real physical dimensions of your
> screen into the "Monitor" section of your xorg.conf:
>
> DisplaySize width height
>
> (Width and height are given as dimensionless numbers and are understood
>  to be in millimeters; see "man xorg.conf" for details.)

My laptop LCD is 11.25" (285.75mm) width x 8.4375" (214.312mm) height

> Then you can restart X and check if the settings are correct now:
>
> $ egrep 'physical|dimensions|DPI' /var/log/Xorg.0.log
> (**) intel(0): Display dimensions: (340, 270) mm
> (**) intel(0): DPI set to (95, 120)
> (II) intel(0): Setting screen physical size to 338 x 270

Ok I will do that as my next task and let you know the results.

> The DPI (dots per inch) values should correspond to the number of pixels
> in horizontal (vertical) direction divided by the width (height) of the
> display. (Give-or-take 1-2 millimeters is fine; 1 inch = 25.4 mm.) The
> first DPI value (horizontal) is more critical for the font rendering
> than the second one.

Ah but I see 2 DPI values above, how is each one calculated? What is
the relation between DPI and screen resolution (ie 1024x768)? I
thought DPI was dependent on the type of screen/monitor you had. How
do I find out the correct DPI for my laptop's LCD? I know my screen
can't do more than 24 bits per pixel color depth.

> Another thing to check is the Xft.dpi setting in the X resource
> database:
>
> $ xrdb -query | grep Xft
> Xft.antialias:  1
> Xft.dpi:96
> Xft.hinting:1
> Xft.hintstyle:  hintfull
> Xft.rgba:   none
>
> You can change the setting like this:
>
> echo "Xft.dpi: 96" | xrdb -m
>
> You have to restart running programs to see the effect. If you find a
> setting that you like you can put it into your ~/.Xresources file to
> make it permanent.

I did that command and it did not return any result:
netrek:~# xrdb -query | grep Xft

So does that indicate my fonts are broken? How can I fix it so this
command will work as yours does?

Assuming we can get that working and iif I find one that works I can
create a ~/.Xresources for root and my normal user accounts? I
currently don't have that file in either root or normal user accounts.
Can I see yours?

Another thing I noticed, as a test I uninstalled and then reinstalled
some of my font packages and I found some directory problems such as:

Setting up xfonts-75dpi (1:1.0.0-4) ...
warning: /usr/lib/X11/fonts/75dpi does not exist or is not a directory
warning: /usr/lib/X11/fonts/75dpi does not exist or is not a directory

There is no 75dpi subdirectory. I have:
netrek:/usr/lib/X11/fonts# ls
Speedo  Type1

Setting up xfonts-base (1:1.0.0-5) ...
warning: /usr/lib/X11/fonts/misc does not exist or is not a directory

There is no misc subdirectory.

Setting up xfonts-scalable (1:

Re: font problem - please help!

2007-08-09 Thread Zach
On 8/9/07, Jonathan Kaye <[EMAIL PROTECTED]> wrote:
>
> Well there's one quick way to find out. Assuming you have the correct font
> packages installed, then just add the font directories in my or Mumia's
> xorg.conf files that we've posted on this thread. Stop and restart your
> xserver. If the problem goes away then that's the solution. If it doesn't,
> then that wasn't the problem.

OK I will try to add your font lines to my /etc/X11/xorg.conf even
though someone said in version 7.2, which I have, it no longer keeps
fonts directors listed in there. I wonder where it does keep them?

Zach


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



Re: font problem - please help!

2007-08-09 Thread Jonathan Kaye
Takehiko Abe wrote:

> Zach wrote:
> 
> fwiw my xorg.conf does not have a fontpath entry, and I don't have
> much problem with fonts (or I have the same problem as you, but have
> not noticed it.)
> 
>  From /usr/share/doc/xorg/changelog.Debian.gz :
> 
> | * Don't write the files section of xorg.conf by default. If the user
> |   does want to write the files section, don't write out any font
> |   paths, only write out the font server bit if they specify that.
> |   + This will depend on having xserver-xorg-core version
> | 2:1.3.0.0.dfsg-3 which includes a patch to always look in the
> | default font paths by default. Bump the xserver-xorg dependency
> | on xserver-xorg-core to this version.
> 
> 
> and my xorg log shows:
> 
> (==) 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
Hi Takehiko,
my changelog doesn't say this. I have changelog version xorg (1:7.1.0-18)
although I'm actually running xserver-xorg 7.2-5.
My xorg log shows (**) instead of (==) which is reasonable since the font
paths are found in xorg.conf. I'll try commenting out all my fonts in
xorg.conf and see what happens.
Cheers,
Jonathan
-- 
Registerd Linux user #445917 at http://counter.li.org/


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



Re: switch from xserver-xorg-video-i810 to -intel and unsupported modes

2007-08-09 Thread Anton Piatek
Andrew Sackville-West wrote:
> On Wed, Jun 13, 2007 at 06:34:51PM -0700, Andrew Sackville-West wrote:
>   
>> On Wed, Jun 13, 2007 at 07:31:16PM -0400, Douglas Allan Tutty wrote:
>> 
>>> On Wed, Jun 13, 2007 at 09:32:40AM -0700, Andrew Sackville-West wrote:
>>>   
 I'm trying to configure a monitor my wife purchased for her machine

 It is a flat panel lcd with a native mode of
 [EMAIL PROTECTED] Unfortunately, I've run up against problem similar to
 [0] in xorg with the i810 driver (she's running etch). I have hacked her
 xorg.conf to death using different modelines (from various sources,
 including the EDID information from the monitor itself) with no
 results. I have also played with 915resolution [1] to patch up the
 vBIOS to support the required resolution, but unfortunately, I can't
 get any of the modes to provide the right clock rate (with or without
>> I've been through a whole host of other attempts and I'm pretty sure
>> that I've exhausted the possibilities. I'm now migrating the wife up
>> to sid... heh heh. The more I've researched it, the more it appears
>> that the problem is solved in sid. I'll report back.
> so I've moved her up to sid (a *totally* painless process BTW) and I
> can now get better resolution choices for this monitor, but no luck at
> the native 1440x900. It will do the resolution and the monitor (which
> will shutdown on bad inputs) reports [EMAIL PROTECTED] in its little
> OSD. But the placement and size are bad and there appears to be no
> fix. Regardless we've now got 1280X768 and it looks gorgeous, so she'
> s happy.
I am trying to  do the same, but the intel driver in the
xserver-xorg-video-intel package has not helped. I have also tried a
modeline suggested by a friend, and it is ignored by X as apparently the
hsync is out of range.
I have also tried 915resolution, but it says it doesnt work for my chipset.
lspci says i have

00:02.0 VGA compatible controller: Intel Corporation Q963/Q965
Integrated Graphics Controller (rev 02)
00:02.1 Display controller: Intel Corporation Q963/Q965 Integrated
Graphics Controller (rev 02)

Does anyone have any advice on what to try to get this card to do
[EMAIL PROTECTED] ?
I am running lenny, and the intel driver is the same version there as
unstable, so I doubt moving to unstable will help me...

Xorg says the following when starting up
.
(II) intel(0): Not using default mode "1440x900" (hsync out of range)
(II) intel(0): Not using default mode "1600x1024" (hsync out of range)
(II) intel(0): Not using default mode "1680x1050" (hsync out of range)
.
.
(II) intel(0): Printing probed modes for output TMDS-1
(II) intel(0): Modeline "1280x800"x60.0   83.46  1280 1344 1480 1680 
800 801 804 828 (49.7 kHz)
(II) intel(0): Modeline "1280x768"x60.0   80.14  1280 1344 1480 1680 
768 769 772 795 (47.7 kHz)
(II) intel(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344 
768 771 777 806 -hsync -vsync (48.4 kHz)
(II) intel(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600
601 605 628 +hsync +vsync (37.9 kHz)
(II) intel(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490
492 525 -hsync -vsync (31.5 kHz)
(II) intel(0): Output VGA disconnected
(II) intel(0): Output TMDS-1 connected
(II) intel(0): Output TMDS-1 using initial mode 1280x768

I can't get it to even try the res I want as it thinks its out of range.
I don't know if using DVI changes anything...

Anton

-- 
email: [EMAIL PROTECTED]
blog/photos:http://www.strangeparty.com
pgp: [0xB307BAEF]   (http://tastycake.net/~anton/anton.asc)
fingerprint: 116A 5F01 1E5F 1ADE 78C6 EDB3 B9B6 E622 B307 BAEF




signature.asc
Description: OpenPGP digital signature


Re: font problem - please help!

2007-08-09 Thread Jonathan Kaye
Jonathan Kaye wrote:

> Takehiko Abe wrote:
> 
>> Zach wrote:
>> 
>> fwiw my xorg.conf does not have a fontpath entry, and I don't have
>> much problem with fonts (or I have the same problem as you, but have
>> not noticed it.)
>> 
>>  From /usr/share/doc/xorg/changelog.Debian.gz :
>> 
>> | * Don't write the files section of xorg.conf by default. If the user
>> |   does want to write the files section, don't write out any font
>> |   paths, only write out the font server bit if they specify that.
>> |   + This will depend on having xserver-xorg-core version
>> | 2:1.3.0.0.dfsg-3 which includes a patch to always look in the
>> | default font paths by default. Bump the xserver-xorg dependency
>> | on xserver-xorg-core to this version.
>> 
>> 
>> and my xorg log shows:
>> 
>> (==) 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
> Hi Takehiko,
> my changelog doesn't say this. I have changelog version xorg (1:7.1.0-18)
> although I'm actually running xserver-xorg 7.2-5.
> My xorg log shows (**) instead of (==) which is reasonable since the font
> paths are found in xorg.conf. I'll try commenting out all my fonts in
> xorg.conf and see what happens.
> Cheers,
> Jonathan
Yes, Takehiko. I removed all the font paths from xorg.conf and now my
Xorg.0.log looks exactly like yours and the fonts seem ok so far. You were
perfectly correct. Thanks I learned something.
Jonathan
-- 
Registerd Linux user #445917 at http://counter.li.org/


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



Switching to console freezes PC

2007-08-09 Thread Vincenzo Spinoso

Hi all,
I've installed Debian Lenny using 2007-08-06 netinstall image and net 
installation.
After using the PC for some time, if I switch from X to console using 
the classic CTRL+ALT+F1, then the system freezes, with keyboard/mouse 
not responding, xmms audio stopped, black screen... I must turn off and 
on the PC.
The PC is a Compaq Hp NX5000, heavily used with sarge and etch/testing 
in the past, at least til April 2006, without ANY problem.

No logs seem available, because the machine seems completely stopped.
I would like to describe you this problem, just before trying a Sid 
upgrade, but I don't know how.
Any suggestions? I'll wait for a reply, if you are interested in further 
details.


The problem is still here, after:
switching from gnome to xfce
switching from gdm to xdm or kdm
switching from xserver-xorg-video-i810 to xserver-xorg-video-intel

Thanks all, best regards!
Vincenzo


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




Re: evolution does not start

2007-08-09 Thread [EMAIL PROTECTED]

--- Florian Kulzer <[EMAIL PROTECTED]>
wrote:

It would be important to see a few lines of the
strace output that comes



Hello Florian, 
here they are a few of the last lines.

The lines above look pretty much the same, with
different library files to be looked for:

open("/usr/lib/libsoftokn3.so.0d", O_RDONLY) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260<\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=307016,
...}) = 0
mmap2(NULL, 310420, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6ae
mmap2(0xb6b28000, 16384, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x47) =
0xb6b28000
close(3)= 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6adf000
open("/usr/lib/evolution/2.6/tls/i686/cmov/libdb-4.4.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/evolution/2.6/tls/i686/libdb-4.4.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/evolution/2.6/tls/libdb-4.4.so",
O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/lib/evolution/2.6/libdb-4.4.so", O_RDONLY)
= 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260x\1"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1023476,
...}) = 0
mmap2(NULL, 1027036, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb69e4000
mmap2(0xb6adc000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf7) =
0xb6adc000
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Process 3243 detached



immediately before the segfault.

Also, a more general question: Did you follow the
upgrade guide (Etch's
release notes) when you went from Sarge to Etch?



I followed the upgrade guide pretty well, except that
not libfam0c102 is installed, but libgamin0 due to the
installation of XFCE4.

The notebook is running pretty well with the default
kernel-image-2.6-386 (2.6.18+6)

Hugo


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




gnome in testing

2007-08-09 Thread Rick Pasotto
Right now when I run 'apt-get -s upgrade' there are 172 programs in the
'not-upgraded' response. If I try to upgrade any one of them a bunch of
gnome programs are also upgrade but also apt-get wants to REMOVE
gnome-desktop-environment and gnome-themes among a few others.

Even upgrading vim wants to remove gnome-desktop-environment, I suppose
because gvim would be also be upgraded.

This really doesn't make any sense to me. What is going on with gnome?

-- 
"Must the citizen ever for a moment, or in the least degree, resign his
 conscience to the legislator?  Why has every man a conscience, then?
 I think that we should be men first, and subjects afterward."
-- Henry David Thoreau 
Rick Pasotto[EMAIL PROTECTED]http://www.niof.net


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



Debian on a KVM switch

2007-08-09 Thread izlem Gozukeles
Hi,
I have a debian etch on a KVM (keyboard-video-monitor) switch:
-- Computers share the cd-rom and usb floppy.
-- there is a scsi disk

Further, in bios settings user does not have any chance for disabling the
usb floppy.
So after install, I had /dev/sda for usb floppy and /dev/sdb for the disk.

The problem is, when I disable the KVM through switch and reboot the
computer,
debian does not recognize the floppy naturally. However, at this time, it
assigns /dev/sda for the disk and
consequently reports that "there is not any file system on /dev/sdb"

How can I workaround this problem?

thanks


-- 
ibrahim izlem GOZUKELES


Passwordless X login

2007-08-09 Thread Dan H
Hello,

I'd like to be able to login with just a mouseclick like possible in Windows. 
My wife and I are sharing a computer at home, and it's kind of silly to always 
have to type in a password (which is the same for both of us anyway). Is this 
possible with kdm, or do I have to switch window managers?

Thanks,
--D.
 


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



Re: Passwordless X login

2007-08-09 Thread Joe Hart
On Thursday 09 August 2007 13:59:55 Dan H wrote:
> Hello,
>
> I'd like to be able to login with just a mouseclick like possible in
> Windows. My wife and I are sharing a computer at home, and it's kind of
> silly to always have to type in a password (which is the same for both of
> us anyway). Is this possible with kdm, or do I have to switch window
> managers?
>
> Thanks,
> --D.


Yes, it is possible.  

Kcontrol (Control Center) -> System Administration -> Login Manager.  Click on 
Convienience and click the Enable Auto Login button.  It's not the most 
secure thing in the world, but it is exactly what you want.

Note, that you need to activate Administrator Mode in order to check the box.

Joe


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



Re: font problem - please help!

2007-08-09 Thread Takehiko Abe

Jonathan Kaye wrote:


Yes, Takehiko. I removed all the font paths from xorg.conf and now
my Xorg.0.log looks exactly like yours and the fonts seem ok so
far. You were perfectly correct. Thanks I learned something.


I merely observed that [a] I never touched FontPath and my xorg.conf
doesn't have an entry for it and [b] I don't have a problem with
fonts. Because I started using Debian on my desktop about a month ago
(then went through several installations of Debian and Ubuntu before I
settled for lenny), I guess my xorg package is the latest from the
beginning.

regards,
T.


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




Re: switch from xserver-xorg-video-i810 to -intel and unsupported modes

2007-08-09 Thread Takehiko Abe

Anton Piatek wrote:


Does anyone have any advice on what to try to get this card to do
[EMAIL PROTECTED] ?


Andrew summarized what he's done to make the driver honour his
modeline in another message. Check it out if you haven't seen it:

  http://lists.debian.org/debian-user/2007/08/msg00414.html



I am running lenny, and the intel driver is the same version there
as unstable, so I doubt moving to unstable will help me...


I had a problem with the driver too. Finally I used the latest driver
from freedesktop.org and that solved my problem. (I'm using debian
testing.)

To get the src and build the driver you need git and bunch of dev
packages.  The driver is newer than the one in testing, so it _might_
work for you too. I think it is worth trying if you are desperate
enough. Since it is installed under /usr/local it does not mess up
debian packages.




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




grub2 experience?

2007-08-09 Thread Hugo Vanwoerkom

Hi,

Anybody install grub2?
Did it go OK? Did you change grub.cfg?

Hugo


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




Re: How to add dir to path

2007-08-09 Thread Jeff Fisher
Nyizsnyik Ferenc wrote:
> On Wed, 8 Aug 2007 18:38:49 +0200
> "Manon Metten" <[EMAIL PROTECTED]> wrote:
>
>   
>> Hi,
>>
>> This thread ain't over yet. Apart from using ~/bin (as Andrei Popescu
>> suggested) I noticed that adding 'export PATH=$HOME/scripts:$PATH'
>> to the end of ~/.bash_profile, the newly added dir is not available in
>> any new session I open. However, when I open a new bash window,
>> the new dir is available. Something like this:
>>
>> Bash Win1
>>   - Session 1: ~/scripts   YES
>>   - Session 2: ~/scriptsNO
>> ...
>>   - Session X: ~/scriptsNO
>> 

This is because environment variables are per-process in unix, not
global.  If you set (and export) an environment in a shell, it only
affects that shell and any child processes.  If you want to pick this up
in the other shells, explicitly source the file with '. ~/.bash_profile'

> Adding $HOME to /etc/profile should not work the way you want it to.
> These settings are global, consider them as "executed by root", so in
> this case $HOME will resolve as /root, not /home/manon as you may have
> expected.
>   

No, this is not the case at all.  /etc/profile is read by all
bourne-derivatives at login as the user running the login shell.  If
you're logging in as root, then it is sourced as root, if you are
logging in as bob, then it is sourced as bob.



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



Switching from i2o_block to dpt_i2o

2007-08-09 Thread Neil Gunton

Hi,

I am going to be rebuilding my colo server next week using the latest 
Etch netinst. The box has an Adaptec RAID card that has been using the 
dpt_i2o driver rather than i2o_block. I built this back in 2005, rolling 
my own kernel and going through quite a contorted process to get AMD64 
installed using dpt_i2o.


This time around I am hoping to install plain vanilla 32-bit Debian, and 
I am wondering how I can install using dpt_i2o rather than i2o_block as 
the RAID driver. I know about using modprobe, but I don't have 
experience of how to tell Linux to use one driver rather than another on 
a continuing basis.


So if Etch installs by default using i2o_block, how would I tell it to 
use dpt_i2o instead? Can I do this during the install, after which it 
will then use dpt_i2o automatically, or do I have to install first using 
i2o_block and then somehow convert down the line? If the latter, then 
how do I change the config to use the other driver?


The two drivers are apparently incompatible - you can have either one or 
the other installed, but not both.


Any clues much appreciated.

Thanks!

/Neil


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




How do I enable piping to programs in /etc/aliases?

2007-08-09 Thread Thomas Anderson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am trying to make mailman work with exim4 and need to enable the
possibility of piping to programs in the /etc/aliases file. Does anyone
know how to do that? The /usr/share/doc/exim4-base/README.Debian.gz file
says that piping is disabled by default.

I don't understand what I would have to do to make mailman work with
exim4 on Debian Etch without enabling piping. If anyone has step by step
information I would really appreciate if you could give me a link to it.

- --
Regards,

Thomas Anderson
"Quidquid latine dictum sit, altum sonatur"

OpenPGP fingerprint: ED7E 1E98 225A 3FCC 458C B3D7 D625 20E6 F316 BD21
OpenPGP public key: http://todu.dyndns.org/pubkey.txt
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGuxmj1iUg5vMWvSERAsoJAKCM6Lnt32eaPW2FhTtBf7qWQkKrgwCeJJU1
feS0gJWMe0wgrgy7RBCF9u4=
=Bh5L
-END PGP SIGNATURE-


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



Re: Needed: spamtrap for...

2007-08-09 Thread s. keeling
Eric d'Alibut <[EMAIL PROTECTED]>:
>  I'm sure anyone with responsibility for spam filtering has seen
>  messages, many of them, which meet the following criteria:
> 
>  HTML formatted
>  empty body
>  one attachment, which is a pdf file
> 
>  Is there a spamassassin test which would score such messages very highly?
> 
>  Or, does anyone have a maildrop recipe for this crap? (or procmail)

I use this (in procmail) for image attachments:

  ---
:0
* B ?? ^Content-Type:.*image/(gif|jpeg|pjpeg)
{
  LOG="vsnag2 - "
  :0:
  00.attachment
}
  ---


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Vincent Lefevre
On 2007-08-08 18:52:11 +0200, Manon Metten wrote:
> Hi Nelson,
> 
> On 8/8/07, Nelson Castillo <[EMAIL PROTECTED]> wrote:
> 
> > Why did you switch from Perl to Python?
> >
> > I found the code I wrote easier to understand. But as I said before,
> > I still use Perl for some tasks.
> 
> OK. I forgot to mention Perl in my initial question. But if the code is
> easier to understand I guess I better try to learn Python first.

Well, I find Perl easier to understand. The problem may be with some
programmers who don't know how to write readable code... Now, the thing
I really hate concerning python is that it is sensitive to indentation;
this means that some operations like copy-paste or inserting a loop can
easily destroy code. And "diff -b" or "diff -w" can't be used reliably.

Also you need to take other things into account:
  * What the language can express and what you need (e.g. closures,
etc.).
  * The stability of the language (i.e. if features are removed or
added to new versions).

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)


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



Re: font problem - please help!

2007-08-09 Thread Florian Kulzer
On Thu, Aug 09, 2007 at 04:01:51 -0400, Zach wrote:
> On 8/8/07, Florian Kulzer wrote:
> >
> > Version 7.2 of Xorg includes the default font paths automatically now,
> > so most of these lines are not needed anymore in the "Files" section of
> > xorg.conf:
> 
> I checked apt-cache for xserver-xorg and you're right I have "Version: 
> 1:7.2-5".
> So where does the xserver keep the list of fonts to use and where is
> this file? Can I edit it or would that mess up debconf? I already
> tried putting the 75dpi font I wanted as the first line but my font
> still don't look how they did before I upgraded the xserver-xorg
> package.

The default font paths are hardcoded now into Xorg, as far as I can
tell. You can still put additional font paths into xorg.conf, for
example /usr/local/share/fonts. In any case, I am not sure if you can
specify font preference by the order of the font directories. I think
your main problem is that your X resolution setting is screwed up (see
below).

> Is there a command to show exactly what font the system is using for
> my desktop applications (emacs, firefox, gnome-terminal)?

I would assume that gnome-terminal follows the general gnome settings or
maybe ~/.gtkrc-2.0. Other applications can either be configured via a
menu or with a file in /etc/X11/app-defaults/. Your private settings in
~/.Xresources can override those. However, we are now drifting further
and further away from the real issue, the DPI setting.

> My desktop
> is still running at 1024x768 and the set of GNOME icons and the start
> button (I use fvwm2) and taskbar and clock look exactly the same
> dimensions, but when I startup emacs it is definitely significantly
> smaller, firefox starts up the same dimensions but the fonts in it
> appear like 200% smaller than before! And all applications I start up
> on the desktop have a noticebaly thinner titlebar as well as the fonts
> inside the titlebar are thinner. And the gnome-terminals start up like
> 25% smaller dimensions and the fonts are much smaller than before.

You have to understand that the sizes of fonts on the screen are
depending strongly on the DPI settings. My 11pt UI font has the same
physical size on my desktop screen and on my laptop screen. This means
that less text will fit on my smaller laptop display, of course, but I
don't have to change font settings to keep readability just because the
display is smaller. This works because my X knows the correct screen
resolution on both my computers. Other sizes in X do not depend that
strongly on the DPI setting, unless they are adjusted relative to some
text, e.g. the height of the window titlebar.

> So
> how can I get my fonts back to how they were? This is a laptop machine
> (Dell C600) and my xorg.conf is using the ATI video driver, I have a:
> VGA compatible controller: ATI Technologies Inc Rage Mobility M3 AGP
> 2x. And I only have 2 video modes in my xorg.conf 1024x768 and
> 800x600,  I switched video mode into 800x600 and confirmed I am
> definitely running 1024x768.
> 
> > (This is from my /var/log/Xorg.0.log; I reformatted the long line to
> >  make it more easily readable.)
> 
> Here is my Xorg.0.log:
> http://pastebin.ca/650829
> 
> As you can see at the top of the log where it sets font paths there
> are some errors, it is trying to load the 100dpi fonts but I purged
> that package from my system so obviously the font listing it has is
> outdated. How can I update it?

I think you would have to recompile X to change the hardcoded paths.
These warnings are harmless anyway. And really, if you remove font
packages you will not change the size of the fonts on screen, because X
will consult the DPI setting for that. If you remove a font that X would
need to satisfy the present setting then you will only get a less
suitable substitute font rendered (uglier) in exactly the same size.
 
[...]

> I know my max screen resolution is 1024x768 cause the laptop specs
> said so. And the desktop looks exactly like it did before I upgraded
> the xserver-xorg package except for when I start up applications and
> they appear with smaller fonts and sometimes smaller window
> dimensions. Is there a command that will display what resolution the X
> server is using? I'm like 95% certain it is using 1024x768. This is
> what I've always used, even back when I ran XFree86 on this machine.

Run this in an X terminal:

$ xdpyinfo | egrep 'dimen|resol'
  dimensions:1024x768 pixels (270x203 millimeters)
  resolution:96x96 dots per inch

[...]

> My laptop LCD is 11.25" (285.75mm) width x 8.4375" (214.312mm) height

With 1024x768 pixel this means that your horizontal resolution is
1024/11.25 = 91 dpi and your vertical resolution is 768/8.4375 = 91 dpi.
Here is the cause of your present problem (from your Xorg log):

(==) R128(0): DPI set to (75, 75)

Your video driver reports the wrong resolution to X. The fonts are too
small because X thinks that your pixels are bigger than they actually
are. 

I think the best quick

Re: Sarge->Etch Upgrade Minor Problems

2007-08-09 Thread s. keeling
Glennie Vignarajah <[EMAIL PROTECTED]>:
>  Le Wednesday 08 August 2007, Aikins, Ronald (Ron) (CIV) disait:
> 
> > The default settings for vi have been changed. Display looks weird
> > in terms of colors, etc. Can't figure what vi/vim file needs
> > changing. I have backups of course of all pre-upgrade config
> > files. I've tried using the "old" /etc/vim/vimrc, but no change.
> 
>  If you've installed vim 7, try to edit /etc/vim/vimrc and check if
>  'runtimepath' contains '/usr/share/vim/vim70'. If not, try add it.
>  IIRC, I resolved a problem related by doing this.(On our machines,

Another thing to check is which vim is installed.  I believe the
default in Etch is vim-tiny, in which a number of useful features are
unavailable. 


-- 
Any technology distinguishable from magic is insufficiently advanced.
(*)http://blinkynet.net/comp/uip5.html  Linux Counter #80292
- -http://www.faqs.org/rfcs/rfc1855.htmlPlease, don't Cc: me.


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



Re: [SOLVED] Re: Firefox and Time Zones

2007-08-09 Thread Thomas Jollans
On Wednesday 08 August 2007, Andrew J. Barr wrote:
> On 8/8/07, Andrew J. Barr <[EMAIL PROTECTED]> wrote:
> > I am suffering from a frustrating issue with Iceweasel (2.0.0.6,
> > Debian unstable amd64).
> >
> > I have a LiveJournal, and the post form has date and time fields on
> > it. These are automatically filled in with the current date and time,
> > using JavaScript. Problem is, Firefox thinks the time is four hours
> > later than it really is (basically it's displaying time in UTC).
> > Visiting a JavaScript tutorial page that displays the date and time
> > has confirmed this is not an LJ-specific bug. My time zone is
> > currently EDT -0400. Right now, the local time is 5:24 PM (17:24). But
> > according to Firefox, it is 9:24 PM (21:24). The 'date' command
> > displays the correct time and time zone, and so does the clock applet
> > in gnome-panel.
>
> False alarm folks.
>
> The problem was with 32-bit Iceweasel in a chroot, where the time zone
> was not correctly configured.

Oh dear, are people *still* using those ? Let me give you a hint: sid has 
nspluginwrapper (flash works well in 64bit IceWeasels with it) and various 
ia32-* packages. Qt isn't packaged in them, but Skype and Opera come in 
statically linked archives as well. The java plugin is trickier though; 
luckily Konqueror supports using 64-bit Java without Netscape plugins. Java 
Web Start... well, there is an ia32-sun-java-foo-like package, which should 
work, but I've never ever seen Java WS in reality.

-- 
  Regards,   Thomas Jollans
GPG key: 0xF421434B may be found on various keyservers, eg pgp.mit.edu
Hacker key :
v4sw6+8Yhw4/5ln3pr5Ock2ma2u7Lw2Nl7Di2e2t3/4TMb6HOPTen5/6g5OPa1XsMr9p-7/-6


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



[RESOLVED] Re: Canon Powershot A640 (update #2)

2007-08-09 Thread andy

Stefan Monnier wrote:

I don't have a card reader, but it sounds like that may not be such a bad
thing to get, except that it is probably more hassle to eject the SD card
and reload it into a reader and run the risk of damaging it from
frequent handling.



Contrary to HS I haven't found the card reader to be noticeably faster, but
it does have the advantage of working even when the camera doesn't
(e.g. when the battery is empty).  Also of course it uses the UMS (Universal
Mass Storage) protocol which is very well supported under GNU/Linux.

  

I think that my immediate concerns are now sorted - I can successfully
retrieve images taken. The less pressing issue, but one that will bug me, is
the difference between the 2 cameras on one hand and the the difference
between the 2 machines on the other hand.



Regarding the difference between the two cameras I'd simply look at the
protocol they use: most likely the Sony machine uses UMS whereas your Canon
uses PTP (Picture Transfer Protocol) which is more recent and less
well supported.  You may also be able to change your Canon's config to
use UMS.


Stefan


  

Stefan

Thanks for your ideas. I suspect that you are probably right in your 
assessment of the protocols the different devices use: the Sony 
registers as a storage device while the Canon is registered as a camera. 
While this doesn't answer the issue of why on my partner's Etch machine 
running KDE the icon pops up on her desktop ready to be transferred from 
but not on my Lenny machine, the matter is now more than workable with 
the help of the good folk here and the digikam application. For the rest 
of it, I'll have to file that under that ever-expanding title of WTF? ;-)



Cheers

Andy

--

"If they can get you asking the wrong questions, they don't have to worry about the 
answers." - Thomas Pynchon, "Gravity's Rainbow"



Re: Debian on a KVM switch

2007-08-09 Thread Florian Kulzer
On Thu, Aug 09, 2007 at 14:57:36 +0300, izlem Gozukeles wrote:
> Hi,
> I have a debian etch on a KVM (keyboard-video-monitor) switch:
> -- Computers share the cd-rom and usb floppy.
> -- there is a scsi disk
> 
> Further, in bios settings user does not have any chance for disabling the
> usb floppy.
> So after install, I had /dev/sda for usb floppy and /dev/sdb for the disk.
> 
> The problem is, when I disable the KVM through switch and reboot the
> computer,
> debian does not recognize the floppy naturally. However, at this time, it
> assigns /dev/sda for the disk and
> consequently reports that "there is not any file system on /dev/sdb"
> 
> How can I workaround this problem?

Use volume labels instead of referring to device nodes in grub's
menu.lst and in /etc/fstab. Bob McGowan explained this nicely a while
ago:

http://lists.debian.org/debian-user/2006/09/msg02915.html

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Steve Lamb
Vincent Lefevre wrote:
> Why not zsh (more powerful than bash) or perl?

Because to some Perl is horrible compared to Python.

>   for FILE in *.wav; do lame -h -b 160 "$FILE" "$FILE.mp3"; done

Correct me if I'm wrong but wouldn't I just end up with with a bunch of
files named blahblah.wav.mp3?

[EMAIL PROTECTED]:/misc/Music$ for FILE in *.mp3; do echo "$FILE.mp3"; done
Eric Cartman-ComeSailAway.mp3.mp3
Happy Rhodes - Summer.mp3.mp3
Happy Rhodes - The Wretches Gone Awry.mp3.mp3
Happy Rhodes - When The Rain Came Down.mp3.mp3
Johnny Lang -  Breakin' Me.mp3.mp3
johnny lang - hit the ground running (1).mp3.mp3
Johnny Lang - Matchbox.mp3.mp3
Johnny Lang - Still Raining.mp3.mp3
Johnny Lang - sugarman.mp3.mp3

So now we have to strip stuff out of the filename which involves at least
a call to cut (properly escaped, of course).  Meh, even simple examples in
shell should be avoided.


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



Re: [RESOLVED] Re: Canon Powershot A640 (update #2)

2007-08-09 Thread Jeff D

On Thu, 9 Aug 2007, andy wrote:


Stefan Monnier wrote:

I don't have a card reader, but it sounds like that may not be such a bad
thing to get, except that it is probably more hassle to eject the SD card
and reload it into a reader and run the risk of damaging it from
frequent handling.



Contrary to HS I haven't found the card reader to be noticeably faster, but
it does have the advantage of working even when the camera doesn't
(e.g. when the battery is empty).  Also of course it uses the UMS 
(Universal

Mass Storage) protocol which is very well supported under GNU/Linux.



I think that my immediate concerns are now sorted - I can successfully
retrieve images taken. The less pressing issue, but one that will bug me, 
is

the difference between the 2 cameras on one hand and the the difference
between the 2 machines on the other hand.



Regarding the difference between the two cameras I'd simply look at the
protocol they use: most likely the Sony machine uses UMS whereas your Canon
uses PTP (Picture Transfer Protocol) which is more recent and less
well supported.  You may also be able to change your Canon's config to
use UMS.


Stefan




Stefan

Thanks for your ideas. I suspect that you are probably right in your 
assessment of the protocols the different devices use: the Sony registers as 
a storage device while the Canon is registered as a camera. While this 
doesn't answer the issue of why on my partner's Etch machine running KDE the 
icon pops up on her desktop ready to be transferred from but not on my Lenny 
machine, the matter is now more than workable with the help of the good folk 
here and the digikam application. For the rest of it, I'll have to file that 
under that ever-expanding title of WTF? ;-)



Cheers

Andy

--


I'm coming into this late, so I'm not sure if this has been mentioned or 
not.  But check to see if usbmount is installed.  That allows me to plug 
in usb drives and mount them.


hth,
jeff

-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


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




Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Jeff D

On Thu, 9 Aug 2007, Steve Lamb wrote:


Vincent Lefevre wrote:

Why not zsh (more powerful than bash) or perl?


   Because to some Perl is horrible compared to Python.


  for FILE in *.wav; do lame -h -b 160 "$FILE" "$FILE.mp3"; done


   Correct me if I'm wrong but wouldn't I just end up with with a bunch of
files named blahblah.wav.mp3?

[EMAIL PROTECTED]:/misc/Music$ for FILE in *.mp3; do echo "$FILE.mp3"; done
Eric Cartman-ComeSailAway.mp3.mp3
Happy Rhodes - Summer.mp3.mp3
Happy Rhodes - The Wretches Gone Awry.mp3.mp3
Happy Rhodes - When The Rain Came Down.mp3.mp3
Johnny Lang -  Breakin' Me.mp3.mp3
johnny lang - hit the ground running (1).mp3.mp3
Johnny Lang - Matchbox.mp3.mp3
Johnny Lang - Still Raining.mp3.mp3
Johnny Lang - sugarman.mp3.mp3

   So now we have to strip stuff out of the filename which involves at least
a call to cut (properly escaped, of course).  Meh, even simple examples in
shell should be avoided.



It has nothing to do with shell, python, perl or what ever.  You would 
still have rename the file extention:


for FILE in *wav ; do lame -h -b 160 "$FILE" "`echo $FILE |sed 
s/.wav/.mp3/g ` " ; done


-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


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




Re: evolution does not start

2007-08-09 Thread Florian Kulzer
On Thu, Aug 09, 2007 at 15:28:46 +0200, wauhugo AT yahoo DOT com wrote:
> --- Florian Kulzer wrote:
>> It would be important to see a few lines of the
>> strace output that comes
>
>
> Hello Florian, here they are a few of the last lines.
> The lines above look pretty much the same, with
> different library files to be looked for:
>
> open("/usr/lib/libsoftokn3.so.0d", O_RDONLY) = 3
> read(3,
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260<\0"...,
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=307016,
> ...}) = 0
> mmap2(NULL, 310420, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb6ae
> mmap2(0xb6b28000, 16384, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x47) =
> 0xb6b28000
> close(3)= 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb6adf000
> open("/usr/lib/evolution/2.6/tls/i686/cmov/libdb-4.4.so",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/evolution/2.6/tls/i686/libdb-4.4.so",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/evolution/2.6/tls/libdb-4.4.so",
> O_RDONLY) = -1 ENOENT (No such file or directory)
> open("/usr/lib/evolution/2.6/libdb-4.4.so", O_RDONLY)
> = 3
> read(3,
> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260x\1"...,
> 512) = 512
> fstat64(3, {st_mode=S_IFREG|0644, st_size=1023476,
> ...}) = 0
> mmap2(NULL, 1027036, PROT_READ|PROT_EXEC,
> MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb69e4000
> mmap2(0xb6adc000, 12288, PROT_READ|PROT_WRITE,
> MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xf7) =
> 0xb6adc000
> --- SIGSEGV (Segmentation fault) @ 0 (0) ---
> +++ killed by SIGSEGV +++
> Process 3243 detached

That is strange, where does the /usr/lib/evolution/2.6/libdb-4.4.so file
come from? If I am to trust apt-file then libdb-4.4.so should be located
in /usr/lib/ and it should come from package libdb4.4.

Can you post the output of the following four commands:

dpkg -l evolution\* libdb4.4 | awk '/^[^D|+]/{print $1,$2,$3}'

dpkg -S /usr/lib/evolution/2.6/libdb-4.4.so

file /usr/lib/evolution/2.6/libdb-4.4.so

ldd $(which evolution) | grep libdb-4.4.so

>> immediately before the segfault.
>> Also, a more general question: Did you follow the
>> upgrade guide (Etch's
>> release notes) when you went from Sarge to Etch?
>
> I followed the upgrade guide pretty well, except that
> not libfam0c102 is installed, but libgamin0 due to the
> installation of XFCE4.

That is perfectly normal. I was only asking about following the upgrade
notes because I wanted to rule out having to worry about possible
kernel, udev, or Xorg problems. Looks like your system is OK in that
respect.

> The notebook is running pretty well with the default
> kernel-image-2.6-386 (2.6.18+6)

That is nice. I think the evolution problem might be due to a stray
library, left over from, for example, an installation of non-Debian
OpenOffice.org packages.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Re: How to add dir to path

2007-08-09 Thread Manon Metten
Hi Wayne,

On 8/8/07, Wayne Topa <[EMAIL PROTECTED]> wrote:

Are you saying that you put the PATH in .bash_profile like
> PATH="./scripts:$PATH"
> export PATH
>
> And doing
> . . .bash_profile
>
> does not make it availible when it finishes?  If that is so, please
> post the contents of your .bash_profile.


That's exactly what I'm saying.

Here's what I did right after I logged in to KDE (as I'm using
~/bin for my scripts now, I did mkdir ~/XX for this example):

- open new bash window
- echo $PATH
  /home/manon/bin:/usr/local/bin:/usr/bin:/bin:/usr/games

- open second session
- echo $PATH
  /home/manon/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
- close second session

- nano .bash_profile
- entered PATH=~/XX:"${PATH}" at the end
- save & exit
- echo $PATH
  /home/manon/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
- . .bash_profile

/home/manon/XX:/home/manon/bin:/home/manon/bin:/usr/local/bin:/usr/bin:/bin:/usr/games

- open a second session
- echo $PATH
  /home/manon/bin:/usr/local/bin:/usr/bin:/bin:/usr/games

- open a second bash window
- echo $PATH
  /home/manon/XX:/home/manon/bin:/usr/local/bin:/usr/bin:/bin:/usr/games

- open a second session in the second window
- echo $PATH
  /home/manon/bin:/usr/local/bin:/usr/bin:/bin:/usr/games
- close second window

- nano .bash_profile
- removed the line PATH=~/XX:"${PATH}"
- save & exit
- closed first window


Then I logged out from KDE and logged back in again.
I did exactly the same as written above and got exactly the same
output apart from now entering export PATH=~/XX:$PATH instead
of PATH=~/XX:"${PATH}" at the end of .bash_profile.

Strange, huh?

Did you also notice that after the first . .bash_profile I got
... /home/manon/bin:/home/manon/bin ...?
This ain't no typo, coz I copy/past'ed the output right from bash.


Here's my .bash_profile:

# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/login.defs
#umask 022

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
fi



And here's my .bashrc:

# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything
[ -z "$PS1" ] && return

# don't put duplicate lines in the history. See bash(1) for more options
export HISTCONTROL=ignoredups

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# make less more friendly for non-text input files, see lesspipe(1)
[ -x /usr/bin/lesspipe ] && eval "$(lesspipe)"

# set variable identifying the chroot you work in (used in the prompt below)
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)
fi

# If this is an xterm set the title to user:dir
case "$TERM" in
xterm*|rxvt*)
PROMPT_COMMAND='echo -ne "\033]0;${USER}: ${PWD/$HOME/~}\007"'
;;
*)
;;
esac

# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi

# 

PS1='M> '

alias ll='ls -l --color=auto'
alias la='ls -a --color=auto'
alias al='ls -al --color=auto'
alias m0='mount /media/cdrom0'
alias m1='mount /media/cdrom1'
alias um0='umount /media/cdrom0'
alias um1='umount /media/cdrom1'
alias x='exit'
alias +='clear'


Greetings, Manon.



"Confusing world", said the spider, and returned to her web :-)


Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Steve Lamb
Manon Metten wrote:
> - Which one is easiest to learn?

Between Bash and Python, Python.

> - Which one is more powerful?

Python.

> - Can I execute /bin commands from within a python script
>   (something like mkdir or ls)?

Yes, though for those examples you don't need to.  The os library gives
you the ability to do the above and much more.  There is also a module called
shutil which provides the basic functionality of different shell utilities
available natively in Python.  I have rarely had to resort to calling
something in shell to do anything shell can do.

> Or should I learn bash scripting anyway?

Learn enough to be able to parse it and convert it to your language of
choice.  There are exceptions, of course, but by and large it has been my
experience that any place you're required to use shell Python is also
available and a far better choice.  As an example here is the shell example
given earlier:

for FILE in *.wav; do lame -h -b 160 "$FILE" "$FILE.mp3"; done

The same in Python but with far greater functionality:

import os
for file in os.listdir('.'):
root, ext = os.path.splitext(file)
if ext.lower() == 'wav':
mp3 = root + '.mp3'
result = os.system("lame -h -b 160 '%s' '%s'" % (file, mp3))
if result:
print '%s not converted' % file

Longer, yes.  Easier to follow?  Most certainly.  Superior, no doubt.  The
shell example would miss WAV, Wav, wAv, etc.  Secondly the only place we need
to escape the variable is when we need shell to do some work, namely the call
to lame.  Finally we don't end up with '.wav.mp3' files all over the place.
We can check the results easily and handle failures gracefully.  Can all of
that be done in shell?  Certainly.  Is it worth doing in shell?  Not hardly.

I don't use shell even for one liners these days because of the errors
introduced by globbing and spaces in filenames.  Yes, if one keeps them in
mind when writing shell then they aren't /too/ much of a problem.  But in a
proper language like Python (Perl, Ruby, take your pick) one doesn't have to
keep it in mind *at all* except when dealing with shell.  Not to mention the
native methods for dealing with some issues, like stripping the extension from
the root of a file, are trivial in Python while an exercise in frustration in
pure shell.


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



Re: [RESOLVED] Re: Canon Powershot A640 (update #2)

2007-08-09 Thread andy

Jeff D wrote:

On Thu, 9 Aug 2007, andy wrote:


Stefan Monnier wrote:
I don't have a card reader, but it sounds like that may not be such 
a bad
thing to get, except that it is probably more hassle to eject the 
SD card

and reload it into a reader and run the risk of damaging it from
frequent handling.



Contrary to HS I haven't found the card reader to be noticeably 
faster, but

it does have the advantage of working even when the camera doesn't
(e.g. when the battery is empty).  Also of course it uses the UMS 
(Universal

Mass Storage) protocol which is very well supported under GNU/Linux.



I think that my immediate concerns are now sorted - I can successfully
retrieve images taken. The less pressing issue, but one that will 
bug me, is
the difference between the 2 cameras on one hand and the the 
difference

between the 2 machines on the other hand.



Regarding the difference between the two cameras I'd simply look at the
protocol they use: most likely the Sony machine uses UMS whereas 
your Canon

uses PTP (Picture Transfer Protocol) which is more recent and less
well supported.  You may also be able to change your Canon's config to
use UMS.


Stefan




Stefan

Thanks for your ideas. I suspect that you are probably right in your 
assessment of the protocols the different devices use: the Sony 
registers as a storage device while the Canon is registered as a 
camera. While this doesn't answer the issue of why on my partner's 
Etch machine running KDE the icon pops up on her desktop ready to be 
transferred from but not on my Lenny machine, the matter is now more 
than workable with the help of the good folk here and the digikam 
application. For the rest of it, I'll have to file that under that 
ever-expanding title of WTF? ;-)



Cheers

Andy

--


I'm coming into this late, so I'm not sure if this has been mentioned 
or not.  But check to see if usbmount is installed.  That allows me to 
plug in usb drives and mount them.


hth,
jeff

-+-
8 out of 10 Owners who Expressed a Preference said Their Cats 
Preferred Techno.




Thanks Jeff

Nope, unfortunately usbmount doesn't help.

Cheers for the suggestion though, it was worth a try

A

--

"If they can get you asking the wrong questions, they don't have to worry about the 
answers." - Thomas Pynchon, "Gravity's Rainbow"


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




Re: Switching to console freezes PC

2007-08-09 Thread Florian Kulzer
On Thu, Aug 09, 2007 at 11:17:16 +0200, Vincenzo Spinoso wrote:
> Hi all,
> I've installed Debian Lenny using 2007-08-06 netinstall image and net 
> installation.
> After using the PC for some time, if I switch from X to console using the 
> classic CTRL+ALT+F1, then the system freezes, with keyboard/mouse not 
> responding, xmms audio stopped, black screen... I must turn off and on the 
> PC.
> The PC is a Compaq Hp NX5000, heavily used with sarge and etch/testing in 
> the past, at least til April 2006, without ANY problem.
> No logs seem available, because the machine seems completely stopped.
> I would like to describe you this problem, just before trying a Sid 
> upgrade, but I don't know how.
> Any suggestions? I'll wait for a reply, if you are interested in further 
> details.
>
> The problem is still here, after:
> switching from gnome to xfce
> switching from gdm to xdm or kdm
> switching from xserver-xorg-video-i810 to xserver-xorg-video-intel

The last change does not make any difference, since the -i810 package is
just a transitional package on Lenny. Consequently, the "i810" xorg
driver is just a symbolic link to the "intel" driver:

$ file /usr/lib/xorg/modules/drivers/i810_drv.so
/usr/lib/xorg/modules/drivers/i810_drv.so: symbolic link to `intel_drv.so'

I would first try starting xorg with the "vesa" driver. If that allows
you to switch to console then you know that the problem is related to
the "intel" driver. (I strongly suspect that this is the case.)

Then you should restart Xorg with the "intel" driver again and post the
output of this command:

egrep '^\((EE|WW)\)' /var/log/Xorg.0.log

Maybe the error messages and warnings will provide a clue how to address
this problem. It is probably also important which Intel chipset you
have, so post the output of:

lspci | egrep -i 'vga|graphic|display'

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Manon Metten
Hi Florian,

On 8/8/07, Florian Kulzer <[EMAIL PROTECTED]> wrote:

http://www.tldp.org/LDP/Bash-Beginners-Guide/html/index.html
> http://www.comp.leeds.ac.uk/Perl/start.html
> http://hetland.org/writing/instant-python.html


Thanks for the links. They are very useful. Although I did already
some reading of Bash-Beginners-Guide I still find it hard to
understand. But I think I gradually will make some progress.

Greetings, Manon.


Re: Substituting one font for another system-wide?

2007-08-09 Thread Tim Hull
>
> Font server?  Who needs to use xfs in 2007?


I guess I misspoke - I'm just using the default font configuration
toolchain.

Anyway... I must be misunderstanding something.  Or don't recognize
> Arial's pervasiveness.
>
> I know this is going to sound stupid, but couldn't you just install
> Arial (with the msttcorefonts package)?


I could, but it looks somewhat ugly in Linux as compared to Bitstream Vera
etc.


Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Florian Kulzer
On Thu, Aug 09, 2007 at 09:25:20 -0700, Steve Lamb wrote:
> Vincent Lefevre wrote:
> > Why not zsh (more powerful than bash) or perl?
> 
> Because to some Perl is horrible compared to Python.
> 
> >   for FILE in *.wav; do lame -h -b 160 "$FILE" "$FILE.mp3"; done
> 
> Correct me if I'm wrong but wouldn't I just end up with with a bunch of
> files named blahblah.wav.mp3?

[...]

> So now we have to strip stuff out of the filename which involves at least
> a call to cut (properly escaped, of course).  Meh, even simple examples in
> shell should be avoided.

You don't need to use cut; bash can do it directly if you use
"${FILE%wav}mp3" as the output filename in the for loop.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Manon Metten
Hi Vincent,

On 8/9/07, Vincent Lefevre <[EMAIL PROTECTED]> wrote:

zsh is more powerful, e.g. recursive globbing, MULTIOS, more powerful
> parameter expansion, tied parameters...
> >
> In fact, zsh is better mainly for interactive use (better completion
> mechanisms, multiline editor).


I'll take a look at their website.


Well, I find Perl easier to understand. The problem may be with some
> programmers who don't know how to write readable code... Now, the thing
> I really hate concerning python is that it is sensitive to indentation;
> this means that some operations like copy-paste or inserting a loop can
> easily destroy code. And "diff -b" or "diff -w" can't be used reliably.


Well, that's a major disadvantage to me too.


Also you need to take other things into account:
>   * What the language can express and what you need (e.g. closures,
> etc.).


OK. On my Amiga I had not so much choice, so in many cases, I had to
do some work-around in order to achieve what I wanted. But in Linux, waw,
it is so comprehensive that the choices are somewhat overwhelming.

Thanks for your reply, Manon.


Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Steve Lamb
Jeff D wrote:
> It has nothing to do with shell, python, perl or what ever.  You would
> still have rename the file extention:

Yes, you would.  And therein lies the point.  One liners often aren't.
Quite often something comes up and "whoops, need to do this" and then "d'oh,
need to do that" and pretty soon that one liner is taking up 3 lines on the
screen and would be far easier to read if it were written in a text file.

I prefer to just skip the "whoops, need to add this step" prior to getting
to the text file and just write in a language that is far better suited to the
task.  For extremely small operations I lose a small amount of time.  For
anything barely above the most basic complexity I gain time.  Not only that
but I gain a metric buttload of functionality for a minimum of trouble.

Quick, take your one liner, have it traverse an entire directory tree
converting all the wavs (regardless of capitalization) to mp3s, oggs and flac,
sorting all 4 into their own directory trees.

For me I just need to change my small script into a function, wrap it
inside os.walk() and have calls to os.makedirs() and shutil.copy() to do all
the work.  Several more minutes of work and I can add in checks for the same
files with different names, prompt the user to pick a name to use, convert
that one and delete the rest.  Then for my final trick I can wrap it all up as
a library, still retaining its ability to run as a stand alone script, and
import it into other Python scripts.

That is where shell falls down.  A decent tinkerer starts with a "this'd
be neat" few lines of code and expands it to a dozen, several dozen, hundreds
of lines of code.  I have not found a person who would argue that shell is
viable outside a dozen or so lines of code; at least not when there are
alternatives like Python, Perl or Ruby laying around to be used.  It is that
capacity to keep adding, and adding, and adding, growing it larger, splitting
it into parts, reusing all those parts that shell simply cannot do as
effectively as languages designed to do that from the get go.

Real world example.  At work there was a daily reports process that I
wanted to automate.  Since we're working on Windows conventional shell was
right out.  So I convinced them to install Python on that machine.  In the 10
months since that time the original report-filing script has exploded into 3
discrete libraries, 3 main scripts which call approximately 8 other scripts
(which are usable stand alone).  It does everything from report-filing to
account verification and a baby-DB query.  It all grew from a simple 2kb
script which was replacing a badly broken batch file to the current size in
excess of 40kb of Python code.  Note that none of the functionality in it
today was planned from the first day.  I would have tore my hair out doing the
simplest things in shell much less when the time came to rewrite all of that
from shell to Python.  Better that I started in Python and grew from there.


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Steve Lamb
Manon Metten wrote:
> Well, I find Perl easier to understand. The problem may be with some
> programmers who don't know how to write readable code... Now, the thing
> I really hate concerning python is that it is sensitive to indentation;
> this means that some operations like copy-paste or inserting a loop can
> easily destroy code. And "diff -b" or "diff -w" can't be used reliably.

> Well, that's a major disadvantage to me too.

Actually, it isn't.  At no time have I ever had any problems with Python
code which would not also be an issue in other code as well.  The only
difference being you have to be careful about indention in one case, braces in
the other.  Besides, let's face it, if there is a person who puts code into
place and then doesn't make the indention make sense to ensure they did the
job properly is that someone who's opinion we're going to trust when it comes
to decent coding practices?  Most people are going to make the indention match
*anyway*.  Since pretty much every programmer's editor comes with de/indent a
block of text there is no problem.


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Manon Metten
Hi Steve,

On 8/9/07, Steve Lamb <[EMAIL PROTECTED]> wrote:

> Or should I learn bash scripting anyway?
>
> Learn enough to be able to parse it and convert it to your language of
> choice.


That's a valuable advice. It'll save me a lot of time and yet I'll be able
to achieve what I want.


import os
> for file in os.listdir('.'):
> root, ext = os.path.splitext(file)
> if ext.lower() == 'wav':
> mp3 = root + '.mp3'
> result = os.system("lame -h -b 160 '%s' '%s'" % (file, mp3))
> if result:
> print '%s not converted' % file



Longer, yes.  Easier to follow?  Most certainly.  Superior, no
> doubt.  The
> shell example would miss WAV, Wav, wAv, etc.  Secondly the only place we
> need
> to escape the variable is when we need shell to do some work, namely the
> call
> to lame.  Finally we don't end up with '.wav.mp3' files all over the
> place.
> We can check the results easily and handle failures gracefully.  Can all
> of
> that be done in shell?  Certainly.  Is it worth doing in shell?  Not
> hardly.


On my Amiga I'm used to ARexx. It has some same advantages over AmigaDOS
like you describe above about bash vs. python. Fortunately there's
regina-rexx for
Linux. It has the same syntax and I've already written some scripts
combining
regina-rexx and grep. But I think the scope of regina-rexx is somewhat
limited
compared to python. But for the moment I can use it and gradually learn
bash,
python, perl or whatever suits me.

Greetings, Manon.


Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/07 11:51, Florian Kulzer wrote:
> On Thu, Aug 09, 2007 at 09:25:20 -0700, Steve Lamb wrote:
>> Vincent Lefevre wrote:
>>> Why not zsh (more powerful than bash) or perl?
>> Because to some Perl is horrible compared to Python.
>>
>>>   for FILE in *.wav; do lame -h -b 160 "$FILE" "$FILE.mp3"; done
>> Correct me if I'm wrong but wouldn't I just end up with with a bunch of
>> files named blahblah.wav.mp3?
> 
> [...]
> 
>> So now we have to strip stuff out of the filename which involves at least
>> a call to cut (properly escaped, of course).  Meh, even simple examples in
>> shell should be avoided.
> 
> You don't need to use cut; bash can do it directly if you use
> "${FILE%wav}mp3" as the output filename in the for loop.

Or use basename(1).


- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGu1HnS9HxQb37XmcRAuxhAKDROJfK9dx2QPwvr+jgyUFz7cXQ8QCfVyvb
LVICBc+TtSyr1djleMIEK1k=
=PqqS
-END PGP SIGNATURE-


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Manon Metten
Hi Steve,

On 8/9/07, Steve Lamb <[EMAIL PROTECTED]> wrote:

>>  python ... is sensitive to indentation;
>
> > Well, that's a major disadvantage to me too.
>
> Actually, it isn't.  At no time have I ever had any problems with
> Python
> code which would not also be an issue in other code as well.  The only
> difference being you have to be careful about indention in one case,
> braces in
> the other.  Besides, let's face it, if there is a person who puts code
> into
> place and then doesn't make the indention make sense to ensure they did
> the
> job properly is that someone who's opinion we're going to trust when it
> comes
> to decent coding practices?  Most people are going to make the indention
> match
> *anyway*.  Since pretty much every programmer's editor comes with
> de/indent a
> block of text there is no problem.


Than, probably I didn't understand it correct. I thought of it as some
prefixed
indentation. I like eg. to indent with two spaces and not four or six. But
then I
consequently stick to it. If that's what you mean, then it ain't no problem
for me.

Manon.



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


Re: Substituting one font for another system-wide?

2007-08-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/07 11:59, Tim Hull wrote:
>> Font server?  Who needs to use xfs in 2007?
> 
> 
> I guess I misspoke - I'm just using the default font configuration
> toolchain.
> 
> Anyway... I must be misunderstanding something.  Or don't recognize
>> Arial's pervasiveness.
>>
>> I know this is going to sound stupid, but couldn't you just install
>> Arial (with the msttcorefonts package)?
> 
> 
> I could, but it looks somewhat ugly in Linux as compared to Bitstream Vera
> etc.

Ugly?  No.  xmms (a Gtk 1.2 app) has ugly fonts.

Preferring Bitstream Vera Sans over Arial is just (valid) personal
opinion.

I compared the two in Abiword and made a window print.  Here's the link:
http://members.cox.net/ron.l.johnson/Arial.vs.BitstreamVeraSans.png

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGu1QUS9HxQb37XmcRAl+aAJwP5RwCcRjcmZBdA0FLnGlCCA9auACgraoI
/qX6WjzS0Mh5m5U4SH1r8VI=
=RAn0
-END PGP SIGNATURE-


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/07 12:19, Steve Lamb wrote:
> Manon Metten wrote:
>> Well, I find Perl easier to understand. The problem may be with some
>> programmers who don't know how to write readable code... Now, the thing
>> I really hate concerning python is that it is sensitive to indentation;
>> this means that some operations like copy-paste or inserting a loop can
>> easily destroy code. And "diff -b" or "diff -w" can't be used reliably.
> 
>> Well, that's a major disadvantage to me too.
> 
> Actually, it isn't.  At no time have I ever had any problems with Python
> code which would not also be an issue in other code as well.  The only
> difference being you have to be careful about indention in one case, braces in
> the other.  Besides, let's face it, if there is a person who puts code into
> place and then doesn't make the indention make sense to ensure they did the
> job properly is that someone who's opinion we're going to trust when it comes
> to decent coding practices?  Most people are going to make the indention match
> *anyway*.  Since pretty much every programmer's editor comes with de/indent a
> block of text there is no problem.

Just remember to tell you editor to "inserts spaces as tab" and set
the tab width to something reasonable like 4.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGu1TRS9HxQb37XmcRAhLsAJ9jaJ+/CsXhjkiATKufjrJcUB1T+ACg3rPP
tJLPLTlCgvVtnsxumbRUXiM=
=4+Bb
-END PGP SIGNATURE-


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



Re: evolution does not start

2007-08-09 Thread [EMAIL PROTECTED]

Florian Kulzer wrote:

On Thu, Aug 09, 2007 at 15:28:46 +0200, wauhugo AT yahoo DOT com wrote:
open("/usr/lib/evolution/2.6/libdb-4.4.so", O_RDONLY)
= 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260x\1"...,
512) = 512Process 3243 detached
  


That is strange, where does the /usr/lib/evolution/2.6/libdb-4.4.so file
come from? If I am to trust apt-file then libdb-4.4.so should be located
in /usr/lib/ and it should come from package libdb4.4.
  

there is a symlink to /usr/lib/libdb-4.4.so

Can you post the output of the following four commands:
dpkg -l evolution\* libdb4.4 | awk '/^[^D|+]/{print $1,$2,$3}'
  

ii evolution 2.6.3-6etch1
ii evolution-common 2.6.3-6etch1
ii evolution-data-server 1.6.3-5etch1
ii evolution-data-server-common 1.6.3-5etch1
un evolution-data-server-dbg 
un evolution-data-server1.2 
ii evolution-dbg 2.6.3-6etch1
pn evolution-exchange 
ii evolution-plugins 2.6.3-6etch1
un evolution-plugins-experimental 
ii libdb4.4 4.4.20-8

dpkg -S /usr/lib/evolution/2.6/libdb-4.4.so
  

dpkg: /usr/lib/evolution/2.6/libdb-4.4.so not found.

file /usr/lib/evolution/2.6/libdb-4.4.so
  
/usr/lib/evolution/2.6/libdb-4.4.so: symbolic link to 
`/usr/lib/libdb-4.4.so'

ldd $(which evolution) | grep libdb-4.4.so
  
/usr/bin/ldd: line 117:  4677 Segmentation fault  
LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= 
LD_LIBRARY_VERSION=$verify_out LD_VERBOSE= "$@"

I think the evolution problem might be due to a stray
library, left over from, for example, an installation of non-Debian
OpenOffice.org packages.
  
There was no NON-DEBIAN software installed before the upgrade, no one 
program or package from outside of the original Debian release.


Hugo



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread mmiller3
> "Jeff" == Jeff D <[EMAIL PROTECTED]> writes:

> You would still have rename the file extention:

> for FILE in *wav ; do lame -h -b 160 "$FILE" "`echo $FILE
> |sed s/.wav/.mp3/g ` " ; done

Or just use the shell itself: 

  for FILE in *wav ; do lame -h -b 160 \"$FILE\" \"${FILE%.*}.mp3\"; done

Mike


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Jeff D

On Thu, 9 Aug 2007, mmiller3 wrote:


"Jeff" == Jeff D <[EMAIL PROTECTED]> writes:


   > You would still have rename the file extention:

   > for FILE in *wav ; do lame -h -b 160 "$FILE" "`echo $FILE
   > |sed s/.wav/.mp3/g ` " ; done

Or just use the shell itself:

 for FILE in *wav ; do lame -h -b 160 \"$FILE\" \"${FILE%.*}.mp3\"; done

Mike



Makes even more sense! Thanks! I don't know how many times I've read over 
shell substitution, just never clicked I guess.  But, it's always good to 
learn new tricks!


 -+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


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




Python intention (Was: bash vs. python scripts - which one is better?)

2007-08-09 Thread Steve Lamb
Manon Metten wrote:
> Than, probably I didn't understand it correct. I thought of it as some 
> prefixed indentation. I like eg. to indent with two spaces and not four or
> six. But then I consequently stick to it. If that's what you mean, then it
> ain't no problem for me.

It is but it isn't.  Take my previous example of code.  There are 3 blocks
in it.  The indention tells both the human and the interpretor which block is
which.

import os
for file in os.listdir('.'):
root, ext = os.path.splitext(file)
if ext.lower() == 'wav':
mp3 = root + '.mp3'
result = os.system("lame -h -b 160 '%s' '%s'" % (file, mp3))
if result:
print '%s not converted' % file

I chose 4 spaces because that is the standard of the Python community.
You can do 2, as I did when I converted from Perl to Python, and as long as
you're consistent then you'll have no problems in your code.  You will have
some minute problems importing code intended with 4 spaces but it really is
trivial to fix.  On the other hand switching to 4 spaces makes it uniform and
I have found that the reasons I used 2 in Perl don't occur much in Python
though that might be more a function of my experience resulting in more
concise code than anything else.

Also you don't have to worry about indention as slavishly as in Fortran
which is what some people's experience with significant indention comes from.
 The following is perfectly legal and identical in Python:

if something or that_thing and not something_else:

if something or
   that_thing and
   not something_else:

Also things like this:

foo = [spam,
   ham,
   eggs,
   baked beans,
   special sauce]

Significant indention does not apply inside statements or declarations.
It really is quite natural if you indent properly in the first place.


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



Re: Python intention (Was: bash vs. python scripts - which one is better?)

2007-08-09 Thread Manon Metten
Hi Steve,

Thanks for explaining. I'll examine some scripts I'll find on the web,
to get an idea of how it looks.

Manon.


Re: gnome in testing

2007-08-09 Thread Stefan Monnier
> Right now when I run 'apt-get -s upgrade' there are 172 programs in the
> 'not-upgraded' response. If I try to upgrade any one of them a bunch of
> gnome programs are also upgrade but also apt-get wants to REMOVE
> gnome-desktop-environment and gnome-themes among a few others.

I'd probably do:

1 - Write down the packages it removes (and which you don't want removed)
2 - let the upgrade take place and remove those packages
3 - re-add the packages with "apt-get install "

Or try `aptitude' which may give you a bit more info about what's going on.


Stefan


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



Re: evolution does not start

2007-08-09 Thread Florian Kulzer
On Thu, Aug 09, 2007 at 22:00:45 +0200, wauhugo AT yahoo DOT com wrote:
> Florian Kulzer wrote:
>> On Thu, Aug 09, 2007 at 15:28:46 +0200, wauhugo AT yahoo DOT com wrote:
>> open("/usr/lib/evolution/2.6/libdb-4.4.so", O_RDONLY)
>> = 3
>> read(3,
>> "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260x\1"...,
>> 512) = 512Process 3243 detached
>>   
>> That is strange, where does the /usr/lib/evolution/2.6/libdb-4.4.so file
>> come from? If I am to trust apt-file then libdb-4.4.so should be located
>> in /usr/lib/ and it should come from package libdb4.4.
>>   
> there is a symlink to /usr/lib/libdb-4.4.so

OK, maybe that is normal for Etch then. (I use Sid.)

>> Can you post the output of the following four commands:
>> dpkg -l evolution\* libdb4.4 | awk '/^[^D|+]/{print $1,$2,$3}'
>>   
> ii evolution 2.6.3-6etch1
> ii evolution-common 2.6.3-6etch1
> ii evolution-data-server 1.6.3-5etch1
> ii evolution-data-server-common 1.6.3-5etch1
> un evolution-data-server-dbg 
> un evolution-data-server1.2 
> ii evolution-dbg 2.6.3-6etch1
> pn evolution-exchange 
> ii evolution-plugins 2.6.3-6etch1
> un evolution-plugins-experimental 
> ii libdb4.4 4.4.20-8

That looks alright to me. One thing to try is to temporarily purge
evolution-plugins and test if that fixes the problem.

>> dpkg -S /usr/lib/evolution/2.6/libdb-4.4.so
>>   
> dpkg: /usr/lib/evolution/2.6/libdb-4.4.so not found.

That could simply mean that the symlink was created by an installation
script. No cause for concern so far, I think.

>> file /usr/lib/evolution/2.6/libdb-4.4.so
>>   
> /usr/lib/evolution/2.6/libdb-4.4.so: symbolic link to 
> `/usr/lib/libdb-4.4.so'
>> ldd $(which evolution) | grep libdb-4.4.so
>>   
> /usr/bin/ldd: line 117:  4677 Segmentation fault  
> LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= 
> LD_LIBRARY_VERSION=$verify_out LD_VERBOSE= "$@"

ldd segfaulting might indicate a serious problem with the dynamic
linker. Do you get the same segfault if you run ldd on another binary,
e.g. "ldd /bin/true"?

Also, which version of libc6 do you have installed?

It might also help to check the md5sums of all files from the evolution
and the libdb4.4 package:

debsums -a evolution libdb4.4 | grep -v OK$

Maybe a file got corrupted.

> There was no NON-DEBIAN software installed before the upgrade, no one 
> program or package from outside of the original Debian release.

OK, good to know.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Conversion of .flv to .mpg format?

2007-08-09 Thread ISHWAR RATTAN

Is there a way to go form .flv file to .mpg
under linux?

-ishwar



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




newbie here - system administration question

2007-08-09 Thread Per olof Ljungmark

Hi debianites,

I am a complete beginner with Debian and need a little help to get 
going. Specifically, I wonder how you configure the system (not 
installed software), things like the network, users, logging etc.


Coming from BSD where a lot of things are in .conf files under /etc I 
have a problem understanding where Linux puts stuff.


For instance: When I installed the system the installer choose DHCP 
configuration without asking - I need a fixed IP. Looking in /etc, I see 
/etc/network/iface, is it here I fix that? Or is there some central 
utility that writes out conf files? What is the syntax for this file?

man iface
man network
gives me nothing.

This is Linux debian 2.6.18-4-686 #1 SMP, command line only (server 
enviroment).


Thanks a lot!

Per olof


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




Wine question

2007-08-09 Thread Loeghmon T. Nejad
Everyone,

I installed notpad++, a fantastic Windows text editor, using wine and It
works flawlessly. However, when I change keyboard layout and encoding
(UTF-8) by pressing alt-shift, all I get is question marks instead of alpha
characters. I even copied TTF fonts to the directory that  notpad++ was
using, at no avail. Can you help please if you have seen such a thing
before?  Thanks.
-- 
Regards,


Re: newbie here - system administration question

2007-08-09 Thread Jeff D

On Thu, 9 Aug 2007, Per olof Ljungmark wrote:


Hi debianites,

I am a complete beginner with Debian and need a little help to get going. 
Specifically, I wonder how you configure the system (not installed software), 
things like the network, users, logging etc.


Coming from BSD where a lot of things are in .conf files under /etc I have a 
problem understanding where Linux puts stuff.


For instance: When I installed the system the installer choose DHCP 
configuration without asking - I need a fixed IP. Looking in /etc, I see 
/etc/network/iface, is it here I fix that? Or is there some central utility 
that writes out conf files? What is the syntax for this file?

man iface
man network
gives me nothing.

This is Linux debian 2.6.18-4-686 #1 SMP, command line only (server 
enviroment).


Thanks a lot!

Per olof


--


man interfaces should give you more info.

Interface information is usually kept in /etc/network/interfaces though, 
so, I'm a little confused as to the iface, so hopefully that manpage will 
be there.



-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


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




Re: newbie here - system administration question

2007-08-09 Thread Per olof Ljungmark

Jeff D wrote:

On Thu, 9 Aug 2007, Per olof Ljungmark wrote:


Hi debianites,

I am a complete beginner with Debian and need a little help to get 
going. Specifically, I wonder how you configure the system (not 
installed software), things like the network, users, logging etc.


Coming from BSD where a lot of things are in .conf files under /etc I 
have a problem understanding where Linux puts stuff.


For instance: When I installed the system the installer choose DHCP 
configuration without asking - I need a fixed IP. Looking in /etc, I 
see /etc/network/iface, is it here I fix that? Or is there some 
central utility that writes out conf files? What is the syntax for 
this file?

man iface
man network
gives me nothing.

This is Linux debian 2.6.18-4-686 #1 SMP, command line only (server 
enviroment).


Thanks a lot!

Per olof


--


man interfaces should give you more info.

Interface information is usually kept in /etc/network/interfaces though, 
so, I'm a little confused as to the iface, so hopefully that manpage 
will be there.


Sorry, my error, it was *interfaces*.
Where except on the local machine can I find Debian man pages?
http://manpages.debian.net/
is not very informative I'm afraid...


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




Re: DNS problem on local network

2007-08-09 Thread Adam Hardy

Jeff D on 09/08/07 00:55, wrote:

On Thu, 9 Aug 2007, Adam Hardy wrote:

Jeff D on 08/08/07 00:34, wrote:

On Tue, 7 Aug 2007, Adam Hardy wrote:

[EMAIL PROTECTED] on 06/08/07 21:04, wrote:
My server isengard runs dnsmasq to provide the dhcp clients. 
However it

doesn't recognise any internal network domain name:

isengard:~# hostname
isengard
isengard:~# hostname --fqdn
hostname: Unknown host
isengard:~# nslookup gondor
Server: 194.74.65.69
Address:194.74.65.69#53

** server can't find gondor: NXDOMAIN

I worked out the domain name should go into /etc/resolv.conf (
http://www.tldp.org/HOWTO/NET3-4-HOWTO-5.html ) but then it seems 
that

this is under the control of something else.

The domain name should go into /etc/resolv.conf
You also have to assign the first nameserver to be _your_ 
nameserver and not your ISP's.


# cat /etc/resolv.conf
search isengard.net
nameserver 127.0.0.1
nameserver ...
nameserver ...


Something is rewriting my resolv.conf at least every minute. I 
suspected it must be dnsmasq attempting to do the DNS but I just 
stopped dnsmasq, and yet resolv.conf is still being updated. I had a 
look over my ps output but dont see anything that could be 
controlling resolv.conf.


This is the only entry in it:

nameserver 194.74.65.69

which is the British Telecom DNS.


Do you have the resolvconf package installed?


No. That looks like a culprit, but no. Not installed.

Checking out the dhclient3 and dhclient.conf man pages, it makes no 
reference to resolv.conf but it does claim to be able to do dynamic 
DNS updates.


I would have to try disabling the dhclient3 NIC to test if it is this 
program rewriting resolv.conf, but i have to wait until the others 
using the net have finished.


How exactly would I set the domain name on the machine - the name I 
thought I'd chosen when setting up the system from CD?


At the moment on this machine when I run 'hostname --domain' it 
returns nothing.


to set the domain name, add it into /etc/hosts, for example:
127.0.0.1   localhost
127.0.1.1   mybox.mynet.netmybox

in /etc/hostname :
mybox

at start up /etc/init.d/hostname.sh runs, parses these and comes up the 
domain name.


to turn off dhcp provided /etc/host info, edit /etc/dhcp3/dhclient.conf, 
there is a line that starts with request. Remove domain-name-servers 
from that list and dhcp wont supply it. If you read down further, you 
can supply your own through the option variables.


for more dhcpclient goodness  man dhclient.conf


Yes I tried to work out what was going on by reading the man pages, but I didn't 
find it so illuminating. My problem is that the DHCP and DNS server running 
dnsmasq is actually the gateway server and has a second NIC connected to a 
modem, from which it gets its ip via DHCP, hence the reason why this box is 
running dnsmasq	for one NIC and dhclient3 for the other.


It is the resolv.conf on this machine that is being rewritten constantly by 
something.


In that context, do those instructions for setting the domain name on the 
machine still hold? It slightly throws me that you quote the ip address 127.0.1.1



Thanks
Adam


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




problem with java-gcj-compat-plugin on distillation applet.....

2007-08-09 Thread Michael Fothergill

Dear Debianists,

I run Debian AMD64 Etch 4.0 (r0) on an AMD64 Sempron 3200 box.

I use Iceweasel and I recently installed java-gcj-compat-plugin from 
synaptic.  I then went to the following site:



http://tierling.home.texas.net/

This guy has generously put a bunch of java applets on the site than can 
simulate various engineering pieces of kit.


I went on there and ran some of the applets.  The vessel volume one worked 
fine.  It has a final line at the bottom with a calculate button and a print 
ready button.



The calculate button allows you to run the volume calculation again after 
changing the parameters in the above buttons for the vessel.


You get sensible results when you change the parameters.

But if you go on the distillation simulation there is a problem.

The applet runs BUT it does not produce the last line at the bottom which 
should have a similar calculate and print ready buttons.


This means that you can't rerun the calculation with new parameters etc.  In 
effect the applet is useless


I wondered if there could be a problem with the java plugin I was using. So 
I found an IT guy at work who uses Internet explorer plus java plugin and 
Windows etc and looked on the same web page and ran the applet for the 
distillation simulation.


It worked.

I got the final calculate and print ready buttons.

He thought I needed to upgrade the java I am using.

I wondered if it meant that the java-gcj-compat-plugin deb file has an error 
in it somewhere.


Comments appreciated.

I am now thinking of using e.g. the Sun Java deb file or whatever it is.

I looked on the internet and found a page 
(http://www.debian-administration.org/articles/142)  that says you do:


1. fakeroot make-jpkg jre-1_5_0_03-linux-i586.bin

2. dpkg -i sun-j2re1.5_1.5.0+update03_i386.deb

3. ln -s /usr/lib/j2re1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so \
 ~/.mozilla/plugins/

You get the java from http://java.sun.com.

Is this correct or am I out of date?


I assume I have to do aptitude uninstall  java-gcj-compat-plugin first.

Regards

Michael Fothergill

_
Get Pimped! FREE emoticon packs from Windows Live -  
http://www.pimpmylive.co.uk



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




RE: problem with java-gcj-compat-plugin on distillation applet.....

2007-08-09 Thread Michael Fothergill





From: "Michael Fothergill" <[EMAIL PROTECTED]>
To: debian-user@lists.debian.org
Subject: problem with java-gcj-compat-plugin on distillation applet.
Date: Thu, 09 Aug 2007 19:39:35 +

Dear Debianists,

I run Debian AMD64 Etch 4.0 (r0) on an AMD64 Sempron 3200 box.

I use Iceweasel and I recently installed java-gcj-compat-plugin from 
synaptic.  I then went to the following site:



http://tierling.home.texas.net/

This guy has generously put a bunch of java applets on the site than can 
simulate various engineering pieces of kit.


I went on there and ran some of the applets.  The vessel volume one worked 
fine.  It has a final line at the bottom with a calculate button and a 
print ready button.



The calculate button allows you to run the volume calculation again after 
changing the parameters in the above buttons for the vessel.


You get sensible results when you change the parameters.

But if you go on the distillation simulation there is a problem.

The applet runs BUT it does not produce the last line at the bottom which 
should have a similar calculate and print ready buttons.


This means that you can't rerun the calculation with new parameters etc.  
In effect the applet is useless


I wondered if there could be a problem with the java plugin I was using. So 
I found an IT guy at work who uses Internet explorer plus java plugin and 
Windows etc and looked on the same web page and ran the applet for the 
distillation simulation.


It worked.

I got the final calculate and print ready buttons.

He thought I needed to upgrade the java I am using.

I wondered if it meant that the java-gcj-compat-plugin deb file has an 
error in it somewhere.


Comments appreciated.

I am now thinking of using e.g. the Sun Java deb file or whatever it is.

I looked on the internet and found a page 
(http://www.debian-administration.org/articles/142)  that says you do:


1. fakeroot make-jpkg jre-1_5_0_03-linux-i586.bin


Except that it will be AMD64.bin not i586.bin etc



2. dpkg -i sun-j2re1.5_1.5.0+update03_i386.deb


Same here


3. ln -s /usr/lib/j2re1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so \
 ~/.mozilla/plugins/


and here


You get the java from http://java.sun.com.

Is this correct or am I out of date?


I assume I have to do aptitude uninstall  java-gcj-compat-plugin first.

Regards

Michael Fothergill

_
Get Pimped! FREE emoticon packs from Windows Live -  
http://www.pimpmylive.co.uk



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




_
The next generation of Hotmail is here!  http://www.newhotmail.co.uk


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




Re: Conversion of .flv to .mpg format?

2007-08-09 Thread Wu-Kung Sun
On 8/9/07, ISHWAR RATTAN <[EMAIL PROTECTED]> wrote:
> Is there a way to go form .flv file to .mpg
> under linux?
>
> -ishwar
>

Use mencoder.  A basic example:
mencoder your.flv -oac copy -ovc lavc -of mpeg -lavcopts
vcodec=mpeg1video -o your.mpg
-- 
swk


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



Re: Virtual Machines/Emulators

2007-08-09 Thread Mike McCarty

Nate Bargmann wrote:

* Mike McCarty <[EMAIL PROTECTED]> [2007 Aug 07 18:35 -0500]:


Nate Bargmann wrote:


* Mike McCarty <[EMAIL PROTECTED]> [2007 Aug 07 17:29 -0500]:


However, I'd say installation is VERY HARD.


That's why we use Debian, it makes the hard tasks easy and the
impossible ones possbile.


This is not an issue with the distro, it's a defect in the
original package. There is a version for FC, which I use,
but not for FC2, the support starts with FC5.

But the original Makefile needs to be fixed.



Perhaps my original point was too subtle.

You're hanging out on the Debian User list (welcome aboard) and
describing your pain of compiling a module on another distribution
(seems a bit odd to me, but, whatever).  Might I suggest an
installation of Debian?  If you do so, then your questions and our
answers will be more useful to all.


Perhaps I was being too subtle :-)

Presumably, FC7 would only need

# yum install "qemu*"

I am not and do not wish to become a Debian User. I am, however,
a Debian Administrator. My GF felt a need to have a supported OS
on her machine, which ran Windows NT. I suggested several LiveCDs
for her to try, since she doesn't like the MicroSoft Way, particularly.
I had somewhat an uphill climb, because she had REALLY not enjoyed RHL
6.0. I convinced her to give it a try, and she liked the way Linux
has progressed.

She settled on KNOPPIX, so I suggested she use Debian, which she
finds relatively satisfactory. However, I am now in the position
of having to administer her machine. Hence my membership here.

I installed and ran the emulator, and posted the results on
the Fedora Core User list. However, as a courtesy, since I have
seen discussion here about such topics as well, I posted a copy
here, since the use of Wine, DOSEmu, etc. seems to be of some
interest among all Linux users. My opinions are my own, but I
have the numbers to back them up, for any who care to get them.


Hard disk space is cheap, so give Debian a try.  We'll be here to
assist in your transition.


Hard disc space is not cheap. I'm a laid off telecomm engineer.
If you think hard discs are cheap, how about donating one to me?


P.S. We won't take "no" for an answer!  ;-)


See above.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


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




Re: Conversion of .flv to .mpg format?

2007-08-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/07 13:56, ISHWAR RATTAN wrote:
> Is there a way to go form .flv file to .mpg
> under linux?

Check out clive and mpgtx in the repository.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGu3FaS9HxQb37XmcRAoKOAKDsTX8XmnoYmiXJfVbf0y9GDLgQdwCghaFc
c3o0iQ0LC0sEcwf5dmSiG8o=
=EYXJ
-END PGP SIGNATURE-


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



Re: How to add dir to path

2007-08-09 Thread Wayne Topa
Manon Metten([EMAIL PROTECTED]) is reported to have said:
> Hi Wayne,
> 
> On 8/8/07, Wayne Topa <[EMAIL PROTECTED]> wrote:
> 
> Are you saying that you put the PATH in .bash_profile like
> > PATH="./scripts:$PATH"
> > export PATH
> >
> > And doing
> > . . .bash_profile
> >
> > does not make it availible when it finishes?  If that is so, please
> > post the contents of your .bash_profile.
> 
> 
<>

OK I think I found the problem.

Your path statement is incorrect.
PATH=~/XX:"${PATH}" 

Try this

SCRIPTS="/where/your/scripts/are"
PATH="$PATH:$SCRIPTS"

Wayne

-- 
Just about every computer on the market today runs Unix, except the Mac
(and nobody cares about it).
-- Bill Joy 6/21/85
___


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



Re: Debian can't mount Camera Memory Stick

2007-08-09 Thread Mike McCarty

Mike McCarty wrote:

My GF has a situation in which she cannot mount a camera memory
stick. Here's the setup...

CPU<--->HUB<--->Dazzle[<--Stick


Ok, I realize that it mounts when connected directly, so there
is a work around. But is anyone willing to help figure out what
is wrong so we can make this setup work? If not, then where do
I file a defect report?

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


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




Re: newbie here - system administration question

2007-08-09 Thread Jeff D

On Thu, 9 Aug 2007, Per olof Ljungmark wrote:


Jeff D wrote:

On Thu, 9 Aug 2007, Per olof Ljungmark wrote:


Hi debianites,

I am a complete beginner with Debian and need a little help to get going. 
Specifically, I wonder how you configure the system (not installed 
software), things like the network, users, logging etc.


Coming from BSD where a lot of things are in .conf files under /etc I have 
a problem understanding where Linux puts stuff.


For instance: When I installed the system the installer choose DHCP 
configuration without asking - I need a fixed IP. Looking in /etc, I see 
/etc/network/iface, is it here I fix that? Or is there some central 
utility that writes out conf files? What is the syntax for this file?

man iface
man network
gives me nothing.

This is Linux debian 2.6.18-4-686 #1 SMP, command line only (server 
enviroment).


Thanks a lot!

Per olof


--


man interfaces should give you more info.

Interface information is usually kept in /etc/network/interfaces though, 
so, I'm a little confused as to the iface, so hopefully that manpage will 
be there.


Sorry, my error, it was *interfaces*.
Where except on the local machine can I find Debian man pages?
http://manpages.debian.net/
is not very informative I'm afraid...



Hm, I dunno where to find man pages online for debian, I alway have them 
on my machines.  Here is some good reference material though:

http://wiki.debian.org/NetworkConfiguration

but basically the syntax is this:
auto eth0
iface eth0 inet static
address x.x.x.167
netmask 255.255.255.0
broadcast x.x.x.255
gateway x.x.x.1


-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.


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




Re: Conversion of .flv to .mpg format?

2007-08-09 Thread andy

ISHWAR RATTAN wrote:

Is there a way to go form .flv file to .mpg
under linux?

-ishwar




Yes.
Assuming that you have mencoder, the script I use prior to converting 
from anyvideo.* to *.mpg prior to converting to DVD format is as follows:


/usr/bin/mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf 
scale=720:576,harddup \

-srate 48000 -af lavcresample=48000 \
-lavcopts 
vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=4/3:\

acodec=ac3:abitrate=192 -ofps 25 -o original.flv newvideo.mpg

HtH

A







--

"If they can get you asking the wrong questions, they don't have to worry about the 
answers." - Thomas Pynchon, "Gravity's Rainbow"


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




Re: [solved] Defoma: How2 install type 1 fonts?

2007-08-09 Thread Bill
On Wed, 2007-08-08 at 16:00 -0700, Bill wrote:
> Hi folks,
>  
> It's been some time now since I've used my old copy of 
> WordPerfect 8.0 Personal Edition for Linux. I usually use 
> the OpenOffice suite these days. 
> 
> However, I've been looking to install more fonts for 
> OpenOffice and make them accessible to other programs like 
> Gimp and Inkscape through X and defoma. I recalled that my 
> WordPerfect disk had a fine selection of fonts (130). 
> They're quite accessible on disk but I'm not sure how to 
> install them. (Basically they are .afm and .pfb files for 
> Type 1 fonts.) 
> 
> I'm sure there must be a way to install and access these 
> fonts on a current linux distro. But I sure can't find it. 
> Everything I google relates to the 8.1 version. 
> 
> Can anyone help me out here? Basically what I think I need 
> to know is how to tell defoma about the fonts so that it 
> recognizes them. 
> 
> What do I need to do to find peace and happiness and 
> achieve enlightment?

1. cp the fonts to /usr/X11R6/lib/X11/fonts/Type1
2. cd /usr/X11R6/lib/X11/fonts/Type1
3. update-fonts-scale ./
4. update-fonts-dir ./
5. fc-cache

This worked beautifully on Sarge. (yeah, yeah)

b.


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



Re: Solved: evolution does not start

2007-08-09 Thread [EMAIL PROTECTED]

Florian Kulzer wrote:

ldd $(which evolution) | grep libdb-4.4.so
  
/usr/bin/ldd: line 117:  4677 Segmentation fault  
LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= 
LD_LIBRARY_VERSION=$verify_out LD_VERBOSE= "$@"



ldd segfaulting might indicate a serious problem with the dynamic
linker. Do you get the same segfault if you run ldd on another binary,
e.g. "ldd /bin/true"?
  

Florian thanks for your reply,

ldd /bin/true
   linux-gate.so.1 =>  (0xe000)
   libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7de6000)
   /lib/ld-linux.so.2 (0xb7f27000)

Also, which version of libc6 do you have installed?
  

libc6 version2.3.6.ds1   (by aptitude)

It might also help to check the md5sums of all files from the evolution
and the libdb4.4 package:

debsums -a evolution libdb4.4 | grep -v OK$
  

debsums -a evolution libdb4.4 | grep -v OK$
debsums: no md5sums for libdb4.4

Maybe a file got corrupted.


That is it.
debsums had not been installed.
sleuthkit (/bin/md5) had not been installed.
md5 libdb4.4_4.4.20-8_i386.deb
revealed a different checksum, than the checksum published here:
http://packages.debian.org/cgi-bin/download.pl?arch=i386&file=
pool%2Fmain%2Fd%2Fdb4.4%2Flibdb4.4_4.4.20-8_i386.deb&md5sum=
90cebbe1a1b15485dd85d24fa4895e3e&arch=i386&type=main

I have eliminated all .deb files from /var/cache/apt/archives
and after apt-get install --reinstall libdb4.4
(NET-INSTALL)
Have I got a running EVOLUTION.

Thank you very much.

Hugo


Re: newbie here - system administration question

2007-08-09 Thread Wayne Topa
Per olof Ljungmark([EMAIL PROTECTED]) is reported to have said:
> Hi debianites,
> 
> I am a complete beginner with Debian and need a little help to get 
> going. Specifically, I wonder how you configure the system (not 
> installed software), things like the network, users, logging etc.
> 
> Coming from BSD where a lot of things are in .conf files under /etc I 
> have a problem understanding where Linux puts stuff.
> 
> For instance: When I installed the system the installer choose DHCP 
> configuration without asking - I need a fixed IP. Looking in /etc, I see 
> /etc/network/iface, is it here I fix that? Or is there some central 
> utility that writes out conf files? What is the syntax for this file?
> man iface
> man network
> gives me nothing.
> 
> This is Linux debian 2.6.18-4-686 #1 SMP, command line only (server 
> enviroment).

Rather then try to give you things to do, and as you are a beginner,
install the debian-reference package.  Most, if not all, of your
questions are answered there.

apr-cache search debian-reference(pick your language)

Wayne

-- 
Crashing is the only thing windows does quickly.
___


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread David Brodbeck


On Aug 9, 2007, at 9:25 AM, Steve Lamb wrote:




  for FILE in *.wav; do lame -h -b 160 "$FILE" "$FILE.mp3"; done


Correct me if I'm wrong but wouldn't I just end up with with a  
bunch of

files named blahblah.wav.mp3?


Follow it with "rename .wav.mp3 .mp3 *". :)



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




Re: bash vs. python scripts - which one is better?

2007-08-09 Thread David Brodbeck


On Aug 9, 2007, at 10:19 AM, Steve Lamb wrote:
Actually, it isn't.  At no time have I ever had any problems  
with Python

code which would not also be an issue in other code as well.  The only
difference being you have to be careful about indention in one  
case, braces in

the other.


Still, after dealing with all the nightmares of things like 'make'  
that care about tabs vs. spaces, etc., I'm inclined to shy away from  
languages where whitespace is critically important.  Whitespace is so  
fragile.





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




em64t

2007-08-09 Thread fagogue
Hi there,

I'm trying to get the best of my machine based on intel core2 (6550), which is
compliant with em64t debian arch (at least I thought...) but there is only a
amd64 install available, which doesn't want to run on Intel machine...

Therefore, I've started with a x386 architecture debian install, then install a
em64t kernel, which runs fine, despite of the hybrid install.

problems comes to fit my nvidia graphic card (7600 GT ), between a nvidia-glx
driver based on x86 arch, and a nvidia-kernel to match the x64_64 (em64t)
kernel.

when I try to compile the nvidia kernel, error says "ld" link editor cannot
match elf-x86 nvidia-glx with a elf-x86_64 linker. It doesn't want
nvidia-glx-ia32 neither, because it is a i386 debian install.

These days, I use a kernel 2.6.22.1-686 on a debian i386 install, with
nvidia-glx and nvidia-kernel-686, and it all works fine as far as flight gear
goes.

But if I can get a x86_64 (em64t) kernel with nvidia compiled for x86_64, that
is if it is doable, I'd love to for the sake of it. And I'm sure (I hope that
is) there is a way to get a full em64t system on my machine...

Thanks for helping if you can

Franck, software engineer


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Nelson Castillo
On 8/9/07, David Brodbeck <[EMAIL PROTECTED]> wrote:
>
> On Aug 9, 2007, at 10:19 AM, Steve Lamb wrote:
> > Actually, it isn't.  At no time have I ever had any problems
> > with Python
> > code which would not also be an issue in other code as well.  The only
> > difference being you have to be careful about indention in one
> > case, braces in
> > the other.
>
> Still, after dealing with all the nightmares of things like 'make'
> that care about tabs vs. spaces, etc., I'm inclined to shy away from
> languages where whitespace is critically important.  Whitespace is so
> fragile.

I make trailing spaces and TABS visible in vim.
I know it's hard to keep conventions when you work with a team.

http://wiki.freaks-unidos.net/weblogs/arhuaco/visible-spaces-in-vim

BTW, I haven't found a better color for the tabs. One that is more
similar to the background.

Regards,
Nelson.-

-- 
http://arhuaco.org
http://emQbit.com


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



Strange video troubles (DPMS & nv driver)

2007-08-09 Thread cothrige

I have been having a couple of odd developments lately which I think may
be traceable to my Samsung SyncMaster 940BW 19" LCD monitor.  It started
when I noticed I was not getting consistent reactions to my DPMS
settings.  In my xorg.conf I have the following:

Section "ServerFlags"
Option "BlankTime" "10"
Option "StandbyTime" "40"
Option "SuspendTime" "50"
Option "OffTime" "60"
EndSection

...

Section "Monitor"
Identifier "940BW"
HorizSync   30.0 - 81.0
VertRefresh 56.0 - 75.0
Option "DPMS"
EndSection

I would expect that after 10 minutes idle my screen would blank, and
then after 40 it would enter standby mode, and so on.  However,
sometimes it just never does any blanking or sleeping at all.  Other
times it will blank and then never sleep.  Of course, often it does both
just as it should.  I have tried using xscreensaver, which I don't
usually run, with its power management settings, but it didn't seem to
affect anything.  There is just no telling really what may or may not
happen in this area.

In response I have tried to find something in the logs regarding actual
calls to the monitor relevant to DPMS, but have found nothing.  Is there
a way to see when the computer sends a signal to the monitor to blank or
sleep and see how the message was received or responded to?

In trying to solve this problem I thought I would make sure it was not
video driver related and tried the nv driver.  I usually use the nvidia
driver.  However, I could not get nv to work.  Everything was a bit
fuzzy, and my fonts were all jaggy and hard to read, with the vertical
lines being very faint.  Also the screen was too tall for the monitor by
about thirty pixels, and was way off to the side with about two inches
of black down the right.  This could not be corrected with the
horizontal placement setting, and the best I could get was about a half
inch of black on the side, with the other side cut off.  Obviously it
was completely unusable.

I can think of no reason why the nv driver would fail this badly, and
why DPMS is so hit and miss.  Perhaps it is as simple as a bad monitor,
or maybe it is two unrelated coincidences.  I would like to make sure
before replacing it but just can't find much information to make a
judgement by.  Has anyone heard of something like this with 'nv' or have
any suggestions about tracking down DPMS and what is going on there?

Many thanks,

Patrick


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



Re: newbie here - system administration question

2007-08-09 Thread Per olof Ljungmark

Wayne Topa wrote:

Per olof Ljungmark([EMAIL PROTECTED]) is reported to have said:

Hi debianites,

I am a complete beginner with Debian and need a little help to get 
going. Specifically, I wonder how you configure the system (not 
installed software), things like the network, users, logging etc.


Coming from BSD where a lot of things are in .conf files under /etc I 
have a problem understanding where Linux puts stuff.


For instance: When I installed the system the installer choose DHCP 
configuration without asking - I need a fixed IP. Looking in /etc, I see 
/etc/network/iface, is it here I fix that? Or is there some central 
utility that writes out conf files? What is the syntax for this file?

man iface
man network
gives me nothing.

This is Linux debian 2.6.18-4-686 #1 SMP, command line only (server 
enviroment).


Rather then try to give you things to do, and as you are a beginner,
install the debian-reference package.  Most, if not all, of your
questions are answered there.

apr-cache search debian-reference(pick your language)


Sounds like a good idea, I'll probably figure out what/where apr-cache 
is as well... I'm not demanding answers that tells me exactly how to do 
things but I'm also interested how you, already Debian users, do it. 
Jeff D pointing me to the Wiki was helpful also, I had not managed to 
get there yet.


As always, it takes a while to get used to a new enviroment.

bash: apr-cache: command not found


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




Re: Debian can't mount Camera Memory Stick

2007-08-09 Thread Andrei Popescu
On Thu, Aug 09, 2007 at 02:57:04PM -0500, Mike McCarty wrote:
> Mike McCarty wrote:
>> My GF has a situation in which she cannot mount a camera memory
>> stick. Here's the setup...
>> CPU<--->HUB<--->Dazzle[<--Stick
>
> Ok, I realize that it mounts when connected directly, so there
> is a work around. But is anyone willing to help figure out what
> is wrong so we can make this setup work? If not, then where do
> I file a defect report?

lkml?

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Stefan Monnier
> Just remember to tell you editor to "inserts spaces as tab" and set
> the tab width to something reasonable like 4.

Please don't.  TABs are 8 spaces apart.  Always have been, always will be.
People playing silly tricks with tab-width is the main reason why using TABs
in languages like Python is a bad idea.


Stefan


PS: Also remember that the Python interpreter can't read your .emacs to
figure out the width of a TAB you intended.  Haskell defines TABs as
being 8 spaces apart and I expect Python to do the same.


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



Re: Debian on a KVM switch

2007-08-09 Thread izlem Gozukeles
Thanks,
now everything is OK.

On 8/9/07, Florian Kulzer <[EMAIL PROTECTED]> wrote:
>
> On Thu, Aug 09, 2007 at 14:57:36 +0300, izlem Gozukeles wrote:
> > Hi,
> > I have a debian etch on a KVM (keyboard-video-monitor) switch:
> > -- Computers share the cd-rom and usb floppy.
> > -- there is a scsi disk
> >
> > Further, in bios settings user does not have any chance for disabling
> the
> > usb floppy.
> > So after install, I had /dev/sda for usb floppy and /dev/sdb for the
> disk.
> >
> > The problem is, when I disable the KVM through switch and reboot the
> > computer,
> > debian does not recognize the floppy naturally. However, at this time,
> it
> > assigns /dev/sda for the disk and
> > consequently reports that "there is not any file system on /dev/sdb"
> >
> > How can I workaround this problem?
>
> Use volume labels instead of referring to device nodes in grub's
> menu.lst and in /etc/fstab. Bob McGowan explained this nicely a while
> ago:
>
> http://lists.debian.org/debian-user/2006/09/msg02915.html
>
> --
> Regards,| http://users.icfo.es/Florian.Kulzer
>   Florian   |
>
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact
> [EMAIL PROTECTED]
>
>


-- 
ibrahim izlem GOZUKELES


Re: Solved: evolution does not start

2007-08-09 Thread Florian Kulzer
On Fri, Aug 10, 2007 at 00:16:04 +0200, wauhugo AT yahoo DOT com wrote:
> Florian Kulzer wrote:

[...]

>> It might also help to check the md5sums of all files from the evolution
>> and the libdb4.4 package:
>>
>> debsums -a evolution libdb4.4 | grep -v OK$
>>   
> debsums -a evolution libdb4.4 | grep -v OK$
> debsums: no md5sums for libdb4.4
>> Maybe a file got corrupted.
>
> That is it.
> debsums had not been installed.
> sleuthkit (/bin/md5) had not been installed.
> md5 libdb4.4_4.4.20-8_i386.deb
> revealed a different checksum, than the checksum published here:
> http://packages.debian.org/cgi-bin/download.pl?arch=i386&file=
> pool%2Fmain%2Fd%2Fdb4.4%2Flibdb4.4_4.4.20-8_i386.deb&md5sum=
> 90cebbe1a1b15485dd85d24fa4895e3e&arch=i386&type=main
>
> I have eliminated all .deb files from /var/cache/apt/archives
> and after apt-get install --reinstall libdb4.4
> (NET-INSTALL)
> Have I got a running EVOLUTION.

That is nice. You might want to check your hard drive a bit now; the
corrupted .deb file might be a sign of trouble with your hard disk.
You could have a look at the "smartmontools" package, for example.

-- 
Regards,| http://users.icfo.es/Florian.Kulzer
  Florian   |


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



Re: newbie here - system administration question

2007-08-09 Thread Andrei Popescu
On Thu, Aug 09, 2007 at 10:49:15PM +0200, Per olof Ljungmark wrote:

>> Rather then try to give you things to do, and as you are a beginner,
>> install the debian-reference package.  Most, if not all, of your
>> questions are answered there.
>> apr-cache search debian-reference(pick your language)
>
> Sounds like a good idea, I'll probably figure out what/where apr-cache is 
> as well... I'm not demanding answers that tells me exactly how to do things 
> but I'm also interested how you, already Debian users, do it. Jeff D 
> pointing me to the Wiki was helpful also, I had not managed to get there 
> yet.
>
> As always, it takes a while to get used to a new enviroment.
>
> bash: apr-cache: command not found

That was a typo. Try apt-cache search debian-reference or start aptitude 
and use / to search.

Regards,
Andrei
-- 
If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)


signature.asc
Description: Digital signature


Re: newbie here - system administration question

2007-08-09 Thread John K Masters
On 22:49 Thu 09 Aug , Per olof Ljungmark wrote:
> Wayne Topa wrote:
>> Per olof Ljungmark([EMAIL PROTECTED]) is reported to have said:
>
> bash: apr-cache: command not found
^^^

Typo - should be apt-cache. Probably worth reading up on Debian basics,
maybe run "apt-get install apt-howto debian-reference" and settle down
to some bedtime reading.

Regards, John
-- 
War is God's way of teaching Americans geography
Ambrose Bierce (1842 - 1914)


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



dfsbuild

2007-08-09 Thread André César de Sá
Heya,

I've been trying to build a CD with dfsbuild.

I used a tutorial found on Debian Administration site, but I keep getting
this error(ATTN: Large Output!):

*SNIP*
[dfs/DEBUG] Processing at state Fresh
[dfs/DEBUG] Processing at state Initialized
[dfs/INFO] Mirroring process starting.
[dfs/INFO] Running cdebootstrap for testing
[MissingH.Cmd.safeSystem/DEBUG] Running: cdebootstrap
["--debug","-v","-d","testing","/Andre/IDWLive/target","
http://http.us.debian.org/debian";]
[MissingH.Cmd.posixRawSystem/DEBUG] Running: cdebootstrap
["--debug","-v","-d","testing","/Andre/IDWLive/target","
http://http.us.debian.org/debian"]
D: Init suite testing
D: Execute "mkdir -p /Andre/IDWLive/target//var/cache/bootstrap"
D: Return code: 0
P: Retrieving Release.gpg
D: Execute "wget -q -O
/Andre/IDWLive/target/var/cache/bootstrap/_dists_._Release.gpg
http://http.us.debian.org/debian/dists/testing/Release.gpg"
D: Return code: 0
P: Retrieving Release
D: Execute "wget -q -O
/Andre/IDWLive/target/var/cache/bootstrap/_dists_._Release
http://http.us.debian.org/debian/dists/testing/Release";
D: Return code: 0
P: Parsing Release
P: Retrieving Release
D: Execute "wget -q -O
/Andre/IDWLive/target/var/cache/bootstrap/_dists_._main_binary-i386_Release
http://http.us.debian.org/debian/dists/testing/main/binary-i386/Release";
D: Return code: 0
D: Reinit suite lenny
E: Unknown suite lenny
[MissingH.Cmd.posixRawSystem/DEBUG] cdebootstrap: exited with Exited
(ExitFailure 1)
[MissingH.Cmd.safeSystem/WARNING] Command cdebootstrap
["--debug","-v","-d","testing","/Andre/IDWLive/target","
http://http.us.debian.org/debian";] failed; exit code 1
[dfs/CRITICAL] Exception: user error (Command cdebootstrap
["--debug","-v","-d","testing","/Andre/IDWLive/target","
http://http.us.debian.org/debian";] failed; exit code 1)
dfsbuild: user error (Command cdebootstrap
["--debug","-v","-d","testing","/Andre/IDWLive/target","
http://http.us.debian.org/debian";] failed; exit code 1)
*EOF*

The issued command was: dfsbuild -V -c /etc/dfsbuild/dfs.cfg -w
/Andre/IDWLive/

Does anyone know what may be wrong?

Thanks!

André César de Sá
Megatron



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Steve Lamb
Stefan Monnier wrote:
>> Just remember to tell you editor to "inserts spaces as tab" and set
>> the tab width to something reasonable like 4.

> Please don't.  TABs are 8 spaces apart.  Always have been, always will be.
> People playing silly tricks with tab-width is the main reason why using TABs
> in languages like Python is a bad idea.

Agreed, bad idea.  Python sees tabs as 8 spaces.  It should be insert tabs
as spaces, set to 4.


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



Re: em64t

2007-08-09 Thread Krzysztof Lubański
On Thu, 2007-08-09 at 22:39 +0200, [EMAIL PROTECTED] wrote:
> I'm trying to get the best of my machine based on intel core2 (6550), which is
> compliant with em64t debian arch (at least I thought...) but there is only a
> amd64 install available, which doesn't want to run on Intel machine...

Hello.

I'm not big into x86-64 business, but AMD64 and EM64T / Intel 64
implementations are pretty much identical. You could just use Debian's
AMD64 port right away - take a look at the description at
http://www.debian.org/ports/.

-- 
Regards,
Krzysztof Lubanski



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



Re: em64t

2007-08-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/07 15:39, [EMAIL PROTECTED] wrote:
> Hi there,
> 
> I'm trying to get the best of my machine based on intel core2 (6550), which is
> compliant with em64t debian arch (at least I thought...) but there is only a
> amd64 install available, which doesn't want to run on Intel machine...
> 
> Therefore, I've started with a x386 architecture debian install, then install 
> a
> em64t kernel, which runs fine, despite of the hybrid install.
> 
> problems comes to fit my nvidia graphic card (7600 GT ), between a nvidia-glx
> driver based on x86 arch, and a nvidia-kernel to match the x64_64 (em64t)
> kernel.
> 
> when I try to compile the nvidia kernel, error says "ld" link editor cannot
> match elf-x86 nvidia-glx with a elf-x86_64 linker. It doesn't want
> nvidia-glx-ia32 neither, because it is a i386 debian install.
> 
> These days, I use a kernel 2.6.22.1-686 on a debian i386 install, with
> nvidia-glx and nvidia-kernel-686, and it all works fine as far as flight gear
> goes.
> 
> But if I can get a x86_64 (em64t) kernel with nvidia compiled for x86_64, that
> is if it is doable, I'd love to for the sake of it. And I'm sure (I hope that
> is) there is a way to get a full em64t system on my machine...
> 
> Thanks for helping if you can

You're mixing arches.  em64t *is* the -amd64 architecture, which,
obviously, isn't i386 (-686).

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGu4QtS9HxQb37XmcRAqI5AKCUW7C9Cz5PUaUbdgczggsWO1eztACgp9Oj
Kd4O4z5Tb/gS/kuw153TVF0=
=W3j/
-END PGP SIGNATURE-


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



Re: em64t

2007-08-09 Thread Stephen Cormier
On August 9, 2007 05:39:28 pm [EMAIL PROTECTED] wrote:
> Hi there,
>
> I'm trying to get the best of my machine based on intel core2 (6550), which
> is compliant with em64t debian arch (at least I thought...) but there is
> only a amd64 install available, which doesn't want to run on Intel
> machine...
>
> Therefore, I've started with a x386 architecture debian install, then
> install a em64t kernel, which runs fine, despite of the hybrid install.
>
> problems comes to fit my nvidia graphic card (7600 GT ), between a
> nvidia-glx driver based on x86 arch, and a nvidia-kernel to match the
> x64_64 (em64t) kernel.
>
> when I try to compile the nvidia kernel, error says "ld" link editor cannot
> match elf-x86 nvidia-glx with a elf-x86_64 linker. It doesn't want
> nvidia-glx-ia32 neither, because it is a i386 debian install.
>
> These days, I use a kernel 2.6.22.1-686 on a debian i386 install, with
> nvidia-glx and nvidia-kernel-686, and it all works fine as far as flight
> gear goes.
>
> But if I can get a x86_64 (em64t) kernel with nvidia compiled for x86_64,
> that is if it is doable, I'd love to for the sake of it. And I'm sure (I
> hope that is) there is a way to get a full em64t system on my machine...

Try the AMD64 Etch installer from http://kmuto.jp/debian/d-i/ it has a 2.6.21 
kernel so it should have a better chance supporting the hardware in your 
machine. The AMD64 installer is the correct one for your machine if you want 
to run it in 64bit mode even though it has an Intel chip in it, otherwise if 
your fine running 32bit then just stick with what you have not installing the 
64bit kernel the Nvidia driver will not install using 64bit kernel with a 
32bit system install.

> Thanks for helping if you can
>
> Franck, software engineer

Your welcome,

Stephen

-- 
GPG Public Key: http://users.eastlink.ca/~stephencormier/publickey.asc


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


Re: newbie here - system administration question

2007-08-09 Thread Per olof Ljungmark

John K Masters wrote:

On 22:49 Thu 09 Aug , Per olof Ljungmark wrote:

Wayne Topa wrote:

Per olof Ljungmark([EMAIL PROTECTED]) is reported to have said:

bash: apr-cache: command not found

^^^

Typo - should be apt-cache. Probably worth reading up on Debian basics,
maybe run "apt-get install apt-howto debian-reference" and settle down
to some bedtime reading.


Sounds lika a good advice, done, thanks.


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




Re: em64t

2007-08-09 Thread Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/07 16:16, Krzysztof Lubański wrote:
> On Thu, 2007-08-09 at 22:39 +0200, [EMAIL PROTECTED] wrote:
>> I'm trying to get the best of my machine based on intel core2 (6550), which 
>> is
>> compliant with em64t debian arch (at least I thought...) but there is only a
>> amd64 install available, which doesn't want to run on Intel machine...
> 
> Hello.
> 
> I'm not big into x86-64 business, but AMD64 and EM64T / Intel 64

Danger!!  Danger!!!

Intel has two wildly different 64-bit implementations: Itanium (aka
ia64) and em64t/amd64.

http://www.debian.org/ports/ia64/
http://www.debian.org/ports/amd64/

> implementations are pretty much identical. You could just use Debian's
> AMD64 port right away - take a look at the description at
> http://www.debian.org/ports/.

- --
Ron Johnson, Jr.
Jefferson LA  USA

Give a man a fish, and he eats for a day.
Hit him with a fish, and he goes away for good!

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGu4iQS9HxQb37XmcRAiIpAKCJ+py9URJTDVR4nm17qkL5Qc5cYwCg25+V
iBv+SSbNwLU+IxQxU95NVCE=
=1C08
-END PGP SIGNATURE-


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



Re: bash vs. python scripts - which one is better?

2007-08-09 Thread Jochen Schulz
Nelson Castillo:
> 
> I make trailing spaces and TABS visible in vim.
> I know it's hard to keep conventions when you work with a team.
> 
> http://wiki.freaks-unidos.net/weblogs/arhuaco/visible-spaces-in-vim

I am using

set listchars=tab:»·,trail:·

in my ~/.vimrc. That makes tabs and taling spaces show up in blue in my
current color scheme (desert256 in gvim, don't know what it is in
temrinals).

J.
-- 
All participation is a myth.
[Agree]   [Disagree]
 


signature.asc
Description: Digital signature


Re: newbie here - system administration question

2007-08-09 Thread Stefan Monnier
> Looking in /etc, I see /etc/network/iface, is it here I fix that?

I don't see any such file.  There is /etc/network/interfaces however.

> man iface
> man network

try "man interfaces" ;-)


Stefan


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



Re: Debian can't mount Camera Memory Stick

2007-08-09 Thread Mike McCarty

Andrei Popescu wrote:


lkml?


What is lkml?

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


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




Re: [RESOLVED] Re: Canon Powershot A640 (update #2)

2007-08-09 Thread H.S.
andy wrote:

> Thanks for your ideas. I suspect that you are probably right in your
> assessment of the protocols the different devices use: the Sony
> registers as a storage device while the Canon is registered as a camera.
> While this doesn't answer the issue of why on my partner's Etch machine
> running KDE the icon pops up on her desktop ready to be transferred from
> but not on my Lenny machine, the matter is now more than workable with
> the help of the good folk here and the digikam application. For the rest
> of it, I'll have to file that under that ever-expanding title of WTF? ;-)
> 
> 
> Cheers
> 
> Andy
> 
> -- 
> 
> "If they can get you asking the wrong questions, they don't have to worry 
> about the answers." - Thomas Pynchon, "Gravity's Rainbow"
> 

Okay, here is a last try. Let's compare the package we have. I have:
$> dpkg -l *usb* *kam* *gphoto* *dbus* | grep ^ii | gawk '{print $1,
"\t" $2, "\t" $3}'
ii  dbus1.1.1-3
ii  dbus-x111.1.1-3
ii  digikam 2:0.9.2-4
ii  gphoto2 2.3.1-2
ii  gtkam   0.1.12-2.2
ii  kamera  4:3.5.7-2lenny1
ii  libdbus-1-3 1.1.1-3
ii  libdbus-1-dev   1.1.1-3
ii  libdbus-glib-1-20.74-1
ii  libdbus-qt-1-1c20.62.git.20060814-2
ii  libgphoto2-22.3.1-8
ii  libgphoto2-2-dev2.3.1-8
ii  libgphoto2-port02.3.1-8
ii  libndesk-dbus-glib1.0-cil   0.3-2
ii  libndesk-dbus1.0-cil0.4.2-1
ii  libusb-0.1-42:0.1.12-7
ii  libusb-dev  2:0.1.12-7
ii  usbutils0.72-8
ii  xserver-xorg-video-sisusb   1:0.8.1-3

Now lets compare our gruops. I belong to the following:
[EMAIL PROTECTED] 17:54:03{dat}$> groups
hs adm dialout cdrom floppy audio src video plugdev staff netdev camera

I think plugdev and camera are the most important. adm certainly
shouldn't make any difference here.

->HS





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



Re: How to add dir to path

2007-08-09 Thread Mike McCarty

Manon Metten wrote:

Hi Mike,

On 8/7/07, Mike McCarty <[EMAIL PROTECTED]> wrote:

I do believe he's got it... almost.


Errr... She :-)


Sorry 'bout that! Hard to see what you look like! Abject apologies
and all that.

Also, that's a better quote (from "My Fair Lady").


If ENV_VAR is an environment variable, then the shell interprets


$ENV_VAR as a request to remove $ENV_VAR from the command, and replace
it with the value of ENV_VAR. So...

$ ENV_VAR1="Fred Flintstone"
$ ENV_VAR2=$ENV_VAR

sets ENV_VAR2 to be the value of ENV_VAR at the time of the assignment,
or "Fred Flintstone".

$ ENV_VAR2=ENV_VAR


Ooopsies! Should have been ENV_VAR1


sets ENV_VAR2 to be "ENV_VAR1".




This is confusing me. I understand that if ENV_VAR is an environment
variable
than $ENV_VAR represents ENV_VARs value.


But this I don't understand:

$ ENV_VAR1="Fred Flintstone"
$ ENV_VAR2=$ENV_VAR


Should have been $ENV_VAR1



sets ENV_VAR2 to be the value of ENV_VAR at the time of the assignment,
or "Fred Flintstone".

Did you mean

  $ ENV_VAR2=$ENV_VAR1

(notice the 1 at the end)? If so, than it's clear. Or was the value of


Yes, sorry for all the typos. I think I must have gone back and added
the "1" on the end, and messed up.

[snip]


Greetings and many thanks for explaining, Manon.


Very welcome, and sorry 'bout the gender mixup and typos.

Mike
--
p="p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
Oppose globalization and One World Governments like the UN.
This message made from 100% recycled bits.
You have found the bank of Larn.
I can explain it for you, but I can't understand it for you.
I speak only for myself, and I am unanimous in that!


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




Scribus with acentuation

2007-08-09 Thread Jose Paulo Matafome Oleiro
Hello to all.
I've got a problem with Scribus, when I write text like é or ã this
doesn't appear how it should be, it looks like 'e or ã how I can fix
this? Anyone can help me? My keyboard layout it's portuguese, where we
use too often acentuation in words.

Thanks in advance for your help.

Sincerely
José Oleiro


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



Re: em64t

2007-08-09 Thread Krzysztof Lubański
On Thu, 2007-08-09 at 16:35 -0500, Ron Johnson wrote:
> On 08/09/07 16:16, Krzysztof Lubański wrote:
> > [...]
> > I'm not big into x86-64 business, but AMD64 and EM64T / Intel 64
> 
> Danger!!  Danger!!!
> 
> Intel has two wildly different 64-bit implementations: Itanium (aka
> ia64) and em64t/amd64.
> [...]

  Well, it's clearly stated on the overview page I provided. EM64T was
recently renamed to "Intel 64" - but, yes, the names here can be
confusing.

-- 
Krzysztof Lubanski




Re: em64t

2007-08-09 Thread Linas Žvirblis
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

> I'm trying to get the best of my machine based on intel core2 (6550), which is
> compliant with em64t debian arch (at least I thought...) but there is only a
> amd64 install available, which doesn't want to run on Intel machine...

AMD64 == EM64T == x86-64 == x64

All the different names are because companies tried to look cool by
naming the same stuff differently. AMD64 is an official name, because
AMD did it first, EM64T is Intels' name for the same thing, x86-64
basically sums up both, and x64 is used by Microsoft.

Intel Core 2 is an AMD64 processor.

IA64 is an entirely different beast - basically Itanium processor only.

Ron Johnson wrote:

> You're mixing arches.  em64t *is* the -amd64 architecture, which,
> obviously, isn't i386 (-686).

You can install i386 operating system on AMD64 hardware, because AMD64
is an extended i386. The system will run just fine, but will not be able
to use additional features of AMD64 architecture.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGu5JcztOe9mov/y4RAnM7AJ9rUcyLzU2PLCJnUKdaODhP8wNhWQCfXu0Z
dC3cQqB3+zZ841kr3FzYXV4=
=ddOj
-END PGP SIGNATURE-


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



trying to connect to usb devices...can not get tty -but get some strange stuff

2007-08-09 Thread Michael Habashy
Hi all -
I am a little new to this.
I am trying to connect my cingular 8125 cell phone to my debian box so it
can talk to kannel and I can be very happy.
I am trying to connect it via usb or a bluetooth dongle that is usb.
In either case i think the box is okay..I get that the devices are being
recognized in messege log:


rider:/dev# tail -f /var/log/messages
Aug  9 17:56:12 rider kernel: usb 1-3: USB disconnect, address 3
Aug  9 17:56:20 rider kernel: ohci_hcd :00:02.0: wakeup
Aug  9 17:56:20 rider kernel: usb 1-3: new full speed USB device using
ohci_hcd and address 4
Aug  9 17:56:20 rider kernel: usb 1-3: configuration #1 chosen from 1 choice
Aug  9 17:58:17 rider kernel: usb 1-3: USB disconnect, address 4
Aug  9 17:59:28 rider kernel: ohci_hcd :00:02.0: wakeup
Aug  9 17:59:28 rider kernel: usb 1-3: new full speed USB device using
ohci_hcd and address 5
Aug  9 17:59:29 rider kernel: usb 1-3: configuration #1 chosen from 1 choice
Aug  9 18:03:19 rider kernel: usb 1-4: new full speed USB device using
ohci_hcd and address 6
Aug  9 18:03:19 rider kernel: usb 1-4: configuration #1 chosen from 1 choice

So the usb devices are being seen...but i cannot get applications to connect
to them.  In my /dev directory i get these devices being created:


crw-rw 1 root root 442,0 2007-08-09 16:59 usbdev1.1_ep00
crw-rw 1 root root 442,0 2007-08-09 16:59 usbdev1.1_ep81
crw-rw 1 root root 442,4 2007-08-09 17:59 usbdev1.5_ep00
crw-rw 1 root root 442,4 2007-08-09 17:59 usbdev1.5_ep02
crw-rw 1 root root 442,4 2007-08-09 17:59 usbdev1.5_ep03
crw-rw 1 root root 442,4 2007-08-09 17:59 usbdev1.5_ep81
crw-rw 1 root root 442,4 2007-08-09 17:59 usbdev1.5_ep82
crw-rw 1 root root 442,4 2007-08-09 17:59 usbdev1.5_ep83
crw-rw 1 root root 442,5 2007-08-09 18:03 usbdev1.6_ep00
crw-rw 1 root root 442,5 2007-08-09 18:03 usbdev1.6_ep03
crw-rw 1 root root 442,5 2007-08-09 18:03 usbdev1.6_ep81
crw-rw 1 root root 442,5 2007-08-09 18:03 usbdev1.6_ep82
crw-rw 1 root root 442, 2048 2007-08-09 16:59 usbdev2.1_ep00
crw-rw 1 root root 442, 2048 2007-08-09 16:59 usbdev2.1_ep81


So guys and gals...am i missing a step 


Oh..I am trying to get Kannel to talk to this cellphone and it is the one
telling me that these devices are bad.


any help would be appriciated!!

thanks
mjh


Re: problem with java-gcj-compat-plugin on distillation applet.....

2007-08-09 Thread Alex Samad
On Thu, Aug 09, 2007 at 07:42:43PM +, Michael Fothergill wrote:
>
>
>
>> From: "Michael Fothergill" <[EMAIL PROTECTED]>
>> To: debian-user@lists.debian.org
>> Subject: problem with java-gcj-compat-plugin on distillation applet.
>> Date: Thu, 09 Aug 2007 19:39:35 +
>>
>> Dear Debianists,
>>
>> I run Debian AMD64 Etch 4.0 (r0) on an AMD64 Sempron 3200 box.
>>
>> I use Iceweasel and I recently installed java-gcj-compat-plugin from 
>> synaptic.  I then went to the following site:
>>
>>
>> http://tierling.home.texas.net/
>>
>> This guy has generously put a bunch of java applets on the site than can 
>> simulate various engineering pieces of kit.
>>
>> I went on there and ran some of the applets.  The vessel volume one worked 
>> fine.  It has a final line at the bottom with a calculate button and a 
>> print ready button.
>>
>>
>> The calculate button allows you to run the volume calculation again after 
>> changing the parameters in the above buttons for the vessel.
>>
>> You get sensible results when you change the parameters.
>>
>> But if you go on the distillation simulation there is a problem.
>>
>> The applet runs BUT it does not produce the last line at the bottom which 
>> should have a similar calculate and print ready buttons.
>>
>> This means that you can't rerun the calculation with new parameters etc.  
>> In effect the applet is useless
>>
>> I wondered if there could be a problem with the java plugin I was using. 
>> So I found an IT guy at work who uses Internet explorer plus java plugin 
>> and Windows etc and looked on the same web page and ran the applet for the 
>> distillation simulation.
>>
>> It worked.
>>
>> I got the final calculate and print ready buttons.
>>
>> He thought I needed to upgrade the java I am using.
>>
>> I wondered if it meant that the java-gcj-compat-plugin deb file has an 
>> error in it somewhere.
>>
>> Comments appreciated.
>>
>> I am now thinking of using e.g. the Sun Java deb file or whatever it is.
>>
>> I looked on the internet and found a page 
>> (http://www.debian-administration.org/articles/142)  that says you do:
>>
>> 1. fakeroot make-jpkg jre-1_5_0_03-linux-i586.bin
>
> Except that it will be AMD64.bin not i586.bin etc

AFAIK there is no 64 bit java plugin (by sun or any else ) for 1.5.  Blackdown 
have a 1.4.2 amd64 plugin...

if you are using a amd64 installed debian box, you could install a chroot or a 
32 bit browser.  Currently this is an issue with amd64 + java.  

Gcj is a bit behind the times - but catching up fast.

>
>>
>> 2. dpkg -i sun-j2re1.5_1.5.0+update03_i386.deb
>
> Same here
>>
>> 3. ln -s /usr/lib/j2re1.5-sun/plugin/i386/ns7/libjavaplugin_oji.so \
>>  ~/.mozilla/plugins/
>
> and here
>
>> You get the java from http://java.sun.com.
>>
>> Is this correct or am I out of date?
>>
>>
>> I assume I have to do aptitude uninstall  java-gcj-compat-plugin first.
>>
>> Regards
>>
>> Michael Fothergill
>>
>> _
>> Get Pimped! FREE emoticon packs from Windows Live -  
>> http://www.pimpmylive.co.uk
>>
>>
>> --
>> To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a 
>> subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>>
>
> _
> The next generation of Hotmail is here!  http://www.newhotmail.co.uk
>
>
> -- 
> To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a 
> subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
>


signature.asc
Description: Digital signature


  1   2   >