Re: newbie here - system administration question

2007-08-09 Thread Per olof Ljungmark

Wayne Topa wrote:

<>
It would have been better if I had not had a type there.  :-(


No problem, I had one too -


Welcome to the Debian Community.


Thank you. I'm sure it will work out well, especially considering all 
the helpful hands that are here!


Per olof


--
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:
> Braces are not a problem: they are kept in a copy-paste, and if for
> some reason a brace is missing (because you did a mistake), then you'll
> get a syntax error 

Unless, of course, you are programming in C with that pesky...
if
  foo;
  bar;

...problem.

> In Python, you may need to re-indent (correctly!) all what you've
> copy-pasted, and if you forget an indentation, the syntax will still
> be valid.

Which is not that hard.  Have you done it?  Doubt it.  I have, many times.
   Say I'm 3 levels deep and paste something 2 levels deep.  Like this:

for foo in bar:
if foo > 200:
print baz
else:
print spam

First off, that's an error in Python.  Don't believe me?

>>> if '1':
... if '2':
... for foo in bar:
... if foo > 200:
  File "", line 4
if foo > 200:
^
IndentationError: unindent does not match any outer indentation level

Secondly, as I stated earlier, any programmer's editor will be able to
indent by blocks.  I know vim and idle can, pretty sure emacs can as well for
those of that sect.  So you mark the four lines and indent twice.  Viola, you
have a working script!  The secret is that while the block may not match the
indentation of your code it pretty much will be consistent to itself.  If it
isn't you have far more problems than a simple block alignment.

Also, as I said, would you really trust someone who doesn't reindent their
code so they can read it even if they are cut and pasting code with braces?

> In languages like Perl, the indentation can automatically be done by
> the editor (and checked by the developer in real time), and after a
> copy-paste, the indentation can be fixed automatically, without any
> ambiguity.

Presumed ambiguity.  There is no ambiguity here.  The code runs as it is
indented, not how the computer sees it vs. how the human reads it.

> If you need to paste code from web pages (that could be mailing-list
> archives, for instance), whitespace can have already changed by
> generic tools.

Still not a problem.  Like I said, I've been doing this for years and so
far the gains from significant whitespace have far outstripped the exceedingly
rare times it ever was a problem for me.  I chose that phrasing because I feel
like it must have been a problem at least once but can't recall a single time.
 It is that insignificant.


-- 
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:
> On 2007-08-09 09:48:54 -0700, Steve Lamb wrote:
>> The same in Python but with far greater functionality:

> and a security hole!

And the one liner stopped this how, exactly?  I mean it was globbing the
file fer pete's sake!

>> result = os.system("lame -h -b 160 '%s' '%s'" % (file, mp3))

> Imagine a filename contains: ' `some command`

Ok, I'll imagine that.

>>> import os
>>> foo = "' `ls -l`"
>>> os.system("echo '%s'" % foo)
sh: -c: line 0: unexpected EOF while looking for matching `''
sh: -c: line 1: syntax error: unexpected end of file
512

But of course this is a red herring on your part because we're starting
this discussion from the point of wanting to do a process to files we,
presumably, have vetted.

> But remember that when you use "system" (available in many languages),
> this is a shell that will be started behind, with all the problems of
> a shell.

Yes, which is why I tend to go native as much as possible.  A feat far
easier in Python than Shell.  :P

> In Perl, when one calls system with more than one element in the list,
> this calls execvp instead of doing a conventional "system". Now, I
> assume that Python also has some way to call execvp.

http://python.active-venture.com/lib/os-process.html

> In portable POSIX sh, yes. But with superior shells such as zsh, this
> is trivial. However, for complex transformations, though this can
> often be written with few characters, this is completely unreadable!
> (See for instance, the advanced zsh completion functions.)

Which is why I strayed away from Perl into Python land.  And while zsh is
fairly ubiquitous in Linux/BSD land it is still shell with the problems that
come with it.  BTW, in case you feel I am coming from Bash land with my
anti-shell sentiments...

[EMAIL PROTECTED]:~} grep grey /etc/passwd
grey:x:1000:1007:Steve Lamb:/home/grey:/bin/zsh

...been on zsh for years.  I love its far superior completion and command
history.  Won't code in it, however, not as long as #!/bin/env python is
around.  And the joy of it is that if a box has zsh chances are high it'll
have python, too.  ;)


-- 
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
Nate Duehr wrote:
> Steve Lamb wrote:
> 
>> 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.

> To make your point, you'd need to do all of the above in one line of
> Python code.

> What a fanboi...

> "Quick, write a one-liner while I take 20 minutes to write a real program!"

Uh, no, fanboi.  I never said it had to remain a one liner.  In fact, that
was my point.  One liners rarely stay that way.  And when you venture past
your very narrow mindset you find the problems in shell.


-- 
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 23:08, Miles Bader wrote:
> Ron Johnson <[EMAIL PROTECTED]> writes:
>> For example, the DEC VT220 allowed you to change the tab stops, and
>> make as many as you wanted.  Not sure about the VT100, but wouldn't
>> be surprised.
> 
> The vt100 had a special setup screen for "setting tab stops", though I
> don't know what exactly was effected by it[*] -- nobody in their right
> mind ever actually used that feature...

Programmers and administrators?  No.

But actual *users*?  Sure they did.

> [*] E.g.., whether it changed the interpretation of TAB characters, or
> needed some special escape codes to use, etc.

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

iD8DBQFGu+6FS9HxQb37XmcRAh09AJoCMgq58vKJ3bKlOwMlAkGaCJyIywCgnleF
HcsNCErYCT9W114pYeQA7DA=
=AaMb
-END PGP SIGNATURE-


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



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

2007-08-09 Thread Jude DaShiell
Try typing lsusb -v  and see if things start to work after you do 
that.  I don't know why it is, but a usb iomega 250MB zip disk with a 
useable disk in it on this machine doesn't become useful until after I've 
done that command.





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




Re: Bzflag Segfaults

2007-08-09 Thread David Fox
On 8/7/07, Manaen Schlabach <[EMAIL PROTECTED]> wrote:
>
>
> I suppose it's bad form to reply to your own list message but maybe my
> experiences will help someone else out.  I have determined that it
> isn't just bzflag that has segmentation faults, xmms, and pan are also



I also noticed a segfault with pan (0.131 - locally compiled) after just
going into
an article from the article list pane. This happened after a dist-upgrade I
performed
earlier in the day (running lenny). I recall there was quite a bit of
changing going on
with glibc and other important system libraries, libgtk 2.0 as well, which
could be the
cause of the segfault problems. In any event, recompilation (of 0.132) and
installation
solved that problem.

I don't have bzflag installed so I am unfamiliar with it. But from
'apt-cache show bzflag' it
seems that at least some of the dependencies are libgl related (and I don't
remember upgrading
those all that recently) but I do see that libcurl3 is among the
dependencies. libcurl3 has some
problems I suppose that leads the dist-upgrade to want to remove
gnome-desktop-environment,
from what I could tell this morning.


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

2007-08-09 Thread Miles Bader
Ron Johnson <[EMAIL PROTECTED]> writes:
> For example, the DEC VT220 allowed you to change the tab stops, and
> make as many as you wanted.  Not sure about the VT100, but wouldn't
> be surprised.

The vt100 had a special setup screen for "setting tab stops", though I
don't know what exactly was effected by it[*] -- nobody in their right
mind ever actually used that feature...

[*] E.g.., whether it changed the interpretation of TAB characters, or
needed some special escape codes to use, etc.

-Miles

-- 
Freedom's just another word, for nothing left to lose   --Janis Joplin


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



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

2007-08-09 Thread Michael Habashy
Guys -I have been trying to send this email to the debian user list..but it
is not showing up...can you help ??

thanks
mjh


On 8/9/07, Michael Habashy <[EMAIL PROTECTED]> wrote:
>
> 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: trying to see and use usb devices on my machine.

2007-08-09 Thread Michael Habashy
On 8/9/07, Michael Habashy <[EMAIL PROTECTED]> wrote:
>
> 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: bash vs. python scripts - which one is better?

2007-08-09 Thread Vincent Lefevre
On 2007-08-09 13:27:31 -0700, David Brodbeck wrote:
> 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.

Yes. BTW, I wonder what happens if you want to embed python scripts
in Makefiles...

-- 
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: bash vs. python scripts - which one is better?

2007-08-09 Thread Vincent Lefevre
On 2007-08-09 10:19:51 -0700, 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.

Braces are not a problem: they are kept in a copy-paste, and if for
some reason a brace is missing (because you did a mistake), then you'll
get a syntax error (at least in Perl, where braces are mandatory).
In Python, you may need to re-indent (correctly!) all what you've
copy-pasted, and if you forget an indentation, the syntax will still
be valid.

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

In languages like Perl, the indentation can automatically be done by
the editor (and checked by the developer in real time), and after a
copy-paste, the indentation can be fixed automatically, without any
ambiguity.

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

If you need to paste code from web pages (that could be mailing-list
archives, for instance), whitespace can have already changed by
generic tools.

-- 
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: question about installing everything

2007-08-09 Thread Kamaraju S Kusumanchi
Pat wrote:

>  I know this may sound a little ridiculous to some, but I have been
> using Debian for several years now and was thinking about installing
> everything on a computer to experiment on etc.
>  Does anyone have any idea about how much hard-drive space this would
>  require? Is this even possible, given the number of confilcting programs?
>  Can you select install everything within dselect?

Some packages are architecture specific, some packages conflict with one
another. In general it is not possible to install all the packages on a
single machine.

hth
raju
-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


-- 
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 Kamaraju S Kusumanchi
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.
> 

What is your video card? This kind of problems can arise if you are using
incorrect video drivers.

When you do startx from the console and start X, do you see any error
messages?

Are there any error/warnings in /var/log/Xorg.0.log ? Are there any errors
in .xsession-errors?

hth
raju
-- 
Kamaraju S Kusumanchi
http://www.people.cornell.edu/pages/kk288/
http://malayamaarutham.blogspot.com/


-- 
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-09 09:48:54 -0700, Steve Lamb wrote:
> The same in Python but with far greater functionality:

and a security hole!

> 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

Imagine a filename contains: ' `some command`

where the command can be a "rm -rf" or something that will send private
data to some remote site...

You can also do such kind of things in Perl, with

  $result = system qw/lame -h -b 160/, $file, $mp3;

and this is much safer!

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

But remember that when you use "system" (available in many languages),
this is a shell that will be started behind, with all the problems of
a shell.

In Perl, when one calls system with more than one element in the list,
this calls execvp instead of doing a conventional "system". Now, I
assume that Python also has some way to call execvp.

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

In portable POSIX sh, yes. But with superior shells such as zsh, this
is trivial. However, for complex transformations, though this can
often be written with few characters, this is completely unreadable!
(See for instance, the advanced zsh completion functions.)

-- 
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: bash vs. python scripts - which one is better?

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

On 08/09/07 15:28, 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.

Shows how much you know.  Tab stops have been user-controllable
since the days of manual typewriters, and video terminals didn't
change that.

For example, the DEC VT220 allowed you to change the tab stops, and
make as many as you wanted.  Not sure about the VT100, but wouldn't
be surprised.

So what, you say?  DEC was *extremely* influential in setting
de-facto standards which became de jure standards.

VT100 control codes (which were then adopted by ANSI), and MCS
(which became the foundation of Unicode) spring quickly to mind.

> People playing silly tricks with tab-width is the main reason why using TABs
> in languages like Python is a bad idea.

I do have to agree with you there.

> 
> PS: Also remember that the Python interpreter can't read your .emacs to
> figure out the width of a TAB you intended.

So, tell your editor to insert spaces instead of ^I.

Minimizing bandwidth was *REALLY* important to teletypes running at
110 baud, but not so fscking important to cable modems and hard
drives where cost is measured in pennies per gigabyte.

> Haskell defines TABs as
> being 8 spaces apart and I expect Python to do the same.

Python should do it because Haskell does it??

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

iD8DBQFGu9htS9HxQb37XmcRAppsAJoCbKInODCaleJHbBhETpVjcb0wLQCeI9MF
dXs5sQb3jazzdXQCiY+jaAY=
=ujIB
-END PGP SIGNATURE-


-- 
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 Jeff D

On Thu, 9 Aug 2007, Adam Hardy wrote:


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


You can put your IP in /etc/hosts as:
192.168.1.150   mybox.mynet.net mybox

i just had 127.0.0.1 in mine, sorry for the confusion on that.

This machine also gets its network info through dhcp, which also over 
writes /etc/resolv.conf. If you want to keep certian info in there , like 
a search domain and specify a namserver, add to /etc/dhcp3/dhclient.conf :

supersede domain-name "mynet.net mynet.local";
prepend domain-name-servers 127.0.0.1;

then, /etc/init.d/networking restart

and you should see in /etc/resolv.conf:
search mynet.net mynet.local
nameserver 127.0.0.1
nameserver 192.168.1.10

you will still need to have your ISPs dns server listed in 
/etc/resolv.conf , as dnsmasq uses that as its name server.


then, you can add in hosts into /etc/hosts , restart dnsmasq and it will 
reread /etc/resolv.conf and /etc/hosts


I hope that clears up things a little.

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: Substituting one font for another system-wide?

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

On 08/09/07 21:49, Tim Hull wrote:
>> Ugly?  No.  xmms (a Gtk 1.2 app) has ugly fonts.
>>
>> Preferring Bitstream Vera Sans over Arial is just (valid) personal
>> opinion.
> 
> 
> Well, I guess I should qualify my statement.  Arial is ugly on Linux *with
> the autohinter on*.

Really?  I find that fonts are fuzzier without hinting.

But maybe the GNOME Font "hinting" selector is different than what
you are referring to.

> I just guess I'll file a bug asking for Arial substitutions in the default
> fontconfig setup, and look some more...

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

iD8DBQFGu9R6S9HxQb37XmcRAvL+AJ93qJyjRuLPlEa6dTx9t0hmX+b+UACgh2w0
7hDBaeU84/7BNM/ETU70Gqc=
=sbGv
-END PGP SIGNATURE-


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



Re: Strange video troubles (DPMS & nv driver)

2007-08-09 Thread Ralph Katz
On 08/09/2007 09:12 PM, cothrige wrote:

> I have gotten to thinking.  Does nv take any flags like nvidia does?
> Could there be a setting I could manipulate when loading it which could
> help with LCD monitors, or the like?  I must admit complete ignorance on
> this issue, as when I used nv consistently I had a very simple setup
> with a CRT as well.  I never needed to do anything but load the driver
> for it to work.

Maybe dpkg-reconfigure xorg will help?  iirc, there was an LCD question
asked.

>> fwiw, I have no Section "ServerFlags" in my xorg.conf on this etch box.
>>  There are no log entries indicating screen saver or dpms actions or
>> settings.
> 
> But, do you have dpms on?  If so how does it know when to set standby
> and so on?  Or do you use xscreensaver or the like?  Do you think
> removing the ServerFlags section and then using only xscreensaver may
> have an impact?  I may try that.

I don't know anything about ServerFlags.

DPMS is on:  ~$ grep DPMS /etc/X11/xorg.conf
Option  "DPMS"

My dpms settings are handled by xscreensaver ($ xscreensaver-demo).
Also, I sometimes call this from a script in ~/bin when not wanting to
wait for xscreensaver to kick in:
xset -display :0.0 dpms force  suspend
this also seems to work to reset everything to restore proper
xscreensaver preferences after using mplayer, etc.

Hope this helps,
Ralph


-- 
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 Tim Hull
> Ugly?  No.  xmms (a Gtk 1.2 app) has ugly fonts.
>
> Preferring Bitstream Vera Sans over Arial is just (valid) personal
> opinion.


Well, I guess I should qualify my statement.  Arial is ugly on Linux *with
the autohinter on*.
I just guess I'll file a bug asking for Arial substitutions in the default
fontconfig setup, and look some more...


Re: newbie here - system administration question

2007-08-09 Thread John W. Foster
On Thursday 09 August 2007 14:02, 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
-
Some advice; In a command line only environment that is used for a server, the 
most useful tool to managing the system is an application called 
mc  "Midnight Commander" it will make your efforts much more productive. It 
is a real good file management application with a huge array of features. I 
manage a small network of 5 servers and it is about all I use. I also use the 
older 'dselect' more frequently than 'aptitude' Since Debian is so huge the 
strongest feature of the entire system is the package management system. I 
also use dwww with apache2 for both documentation viewing and as my web 
server. With these tools you can easily find. and edit by hand the required 
files.
/etc/network/ x
/etc/resolv.conf
/etc/networks
/etc/hosts
and maybe :
/etc/mailname
these should get you up and running with a static ip address.
Welcome aboard!
-- 
John W. Foster


-- 
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 Carl Fink
On Thu, Aug 09, 2007 at 02:50:42PM -0500, Wu-Kung Sun wrote:
> 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

This shouldn't work.  "oac copy" means to copy the video unchanged, but then
you try to use the "lavcopts vcodec=mpeg1video", a flag that only works if
you select "oac lavc".
-- 
Carl Fink   [EMAIL PROTECTED] 

Read my blog at nitpickingblog.blogspot.com.  Reviews!  Observations!
Stupid mistakes you can correct!


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



Re: question about installing everything

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

Pat wrote:
>  I know this may sound a little ridiculous to some, but I have been
> using Debian for several years now and was thinking about installing
> everything on a computer to experiment on etc.
>  Does anyone have any idea about how much hard-drive space this would require?
>  Is this even possible, given the number of confilcting programs?
>  Can you select install everything within dselect?

I suggest that you download all the DVD:s and copy their contents to
your hd instead of actually /installing/ everything from those DVD:s.
That way you can predict how much space will be needed and you can alter
your /etc/apt/sources.list file to use your DVD files from your hd
instead of using the internet as a source for installing programs from.

I tend to install only programs I actually use to minimize the risk of
getting intruders due to security holes.

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

iD8DBQFGu8lE1iUg5vMWvSERAoRYAKDByJ9xPGX9AQIAcsBwUZUUKZNqRgCgpBQ1
aXQ9/8q01vyMRs9/3sudvq8=
=wfOA
-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 Miles Bader
Stefan Monnier <[EMAIL PROTECTED]> writes:
> 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.

Or to put it another way, the main reason why languages like Python are
a bad idea...

-Miles

-- 
"Don't just question authority,
Don't forget to question me."
-- Jello Biafra


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



question about installing everything

2007-08-09 Thread Pat
 I know this may sound a little ridiculous to some, but I have been
using Debian for several years now and was thinking about installing
everything on a computer to experiment on etc.
 Does anyone have any idea about how much hard-drive space this would require?
 Is this even possible, given the number of confilcting programs?
 Can you select install everything within dselect?


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



How to make phone call using modem in Linux

2007-08-09 Thread Kieu Minh Thang

Hi everyone,

I have used Linux on a computer with modem included. How to use this 
modem to make phone call. Is there a software like Phone Dialer on Windows?


Regards,

Thang Kieu


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




Re: Wine question

2007-08-09 Thread Kieu Minh Thang

Hi,

Copy fonts to Notepad++ directory is not a good idea, maybe you should 
try to copy fonts to /usr/share/fonts/

And then run fc-cache to update your fonts library.
Tell me if this can help ;)

Good luck,

Thang Kieu

Loeghmon T. Nejad wrote:

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, 



--
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 Mathias Brodala
Hi Jochen.

Jochen Schulz, 09.08.2007 23:42:
> 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).

Well, normally you’d use "desert" for gvim and "desert256" for terminals, when
$TERM is set to "xterm-256color".


Regards, Mathias

-- 
debian/rules



signature.asc
Description: OpenPGP digital signature


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

2007-08-09 Thread Kieu Minh Thang

Dear Anton Piatek,

I see that you have used the right drivers, I have 19" monitor and use 
it too (xserver-xorg-video-intel). It display perfectly.


Follow you error:

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

maybe you have misconfigure in hsync & vsync value
Let's try dpkg-reconfigure xserver-xorg
OR edit /etc/X11/xorg.conf manually with hsync & vsync value get from 
Monitor document (or you can get it using hwinfo package)


Good luck,

Thang Kieu

Anton Piatek wrote:

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

  



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




Re: Passwordless X login

2007-08-09 Thread Kieu Minh Thang

Hi,

I'm not KDE user, I'm using Gnome but I think it's the same.
I have seen some options from Login Manager that help me remember 
user/pass and automatic login after few seconds.

Take your time around to see it.

Good luck,

Thang Kieu

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.
 



  



--
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 19:07, Krzysztof Lubański wrote:
> On Thu, 2007-08-09 at 17:39 -0500, Ron Johnson wrote:
>>>   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.
>> Where?  I've looked and looked, but don't see it.  (I am getting
>> old, though, and do need glasses.)
> 
>   "[...]it's clearly stated" - I meant the difference between IA-64 and
> EM64T/AMD64 (emphasized right below "IA-64" heading at
> http://www.debian.org/ports/), not EM64T -> Intel 64 marketing name
> change.

I see reference to "Intel's first 64-bit architecture" and "Intel
64-bit extensions", but nothing that says that "Intel 64" is a new
marketing name.

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

iD8DBQFGu7vWS9HxQb37XmcRAuebAJ9zqFjp30Z44hgq1keTjVypFhiKxACfSzH1
uQi9QoyCf5jXjNOy9359rbg=
=QkyU
-END PGP SIGNATURE-


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



Re: Strange video troubles (DPMS & nv driver)

2007-08-09 Thread cothrige
Ralph Katz <[EMAIL PROTECTED]> writes:
>
> wrt dpms:
> Until you get a more knowledgable reply, man xset (especially, the 's'
> option) and man xscreensaver-command (-time) may help.

Many thanks.  I will read up on these right now.

> I use the nv driver, but have a crt.

I have gotten to thinking.  Does nv take any flags like nvidia does?
Could there be a setting I could manipulate when loading it which could
help with LCD monitors, or the like?  I must admit complete ignorance on
this issue, as when I used nv consistently I had a very simple setup
with a CRT as well.  I never needed to do anything but load the driver
for it to work.

> Sometimes, mplayer or another player disables the screen saver and
> forgets to re-enable it, which is annoying.  That accounts for failure
> to engage dpms actions for me for those cases.

I had not thought of this.  I have noticed that at times mplayer will
disable dpms and never reset it, apparently.  In most cases though it
only seems to turn off dpms during play, but perhaps if it dies for some
reason...?  I have also noticed that avidemux2 kills all dpms and does
not restart it.  I very, very rarely use that though, and not nearly as
often as the problem has appeared.  But, it very well could be some
other application I am not thinking of which I use just often enough to
be causing a problem.  Perhaps next time I notice the monitor refusing
to sleep I will try 'xset q' and just see if dpms has been disabled.  I
can't remember if I did that before, but it may be informative.

>
> fwiw, I have no Section "ServerFlags" in my xorg.conf on this etch box.
>  There are no log entries indicating screen saver or dpms actions or
> settings.

But, do you have dpms on?  If so how does it know when to set standby
and so on?  Or do you use xscreensaver or the like?  Do you think
removing the ServerFlags section and then using only xscreensaver may
have an impact?  I may try that.

>
> Good luck!
>
> Ralph Katz

Many thanks Ralph.

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 Anthony M Simonelli
On Thu, 2007-08-09 at 17:26 -0400, Stefan Monnier wrote:
> > 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
> 
> 
I prefer the 'info' command.  I provides more in-depth coverage, and if
no info documents exist, it just displays the man page anyway.  

Become familiar with apt (apt-get, apt-cache) since it is used to
install software in Debian.  This is one of the many beauties of Debian
since apt retrieves packages and their dependencies and makes installing
software a snap.  Aptitude is a front-end to apt and even provides more
functionality.


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

Ron Johnson wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/07 16:59, Mike McCarty wrote:


Andrei Popescu wrote:


lkml?


What is lkml?



This is not an insult, but a stunned question: You've been around
Linux this long and don't know what that means?


Since lower case, I thought some sort of Debian command to report
defects.

But, my GF isn't using Linux, she is using Debian Linux.
If it needs to go upstream, then Debian should make that decision.


And you didn't take 10 seconds to Google it  Shame on you!


This, I'll accept.

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 Wayne Topa
Per olof Ljungmark([EMAIL PROTECTED]) is reported to have said:
> Wayne Topa wrote:
> >Per olof Ljungmark([EMAIL PROTECTED]) is reported to have said:
> >>Hi debianites,
> >>
<>
> >>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.

It would have been better if I had not had a type there.  :-(

apt-cache is yet another package that will assist you in finding
packages you might want to install. For instance

apt-cache show debian-reference
Description: metapackage to install (all) translations of Debian Reference
 This Debian Reference (http://qref.sourceforge.net/) covers many
 aspects of system administration through shell-command examples.  Basic
 tutorials, tips, and other information are provided for topics
 including fundamental concepts of the Debian system, system installation
 hints, Debian package management, the Linux kernel under Debian, system
 tuning, building a gateway, text editors, CVS, programming, and GnuPG
 for non-developers.  For help with emergency system maintenance,
 proceed to Section 6.3, `Debian survival commands', immediately.  The
 latest official version is http://www.debian.org/doc/manuals/reference/
 and the latest development version is
 http://qref.sourceforge.net/quick/.  The project is hosted at
 http://qref.sourceforge.net/.


> 
> As always, it takes a while to get used to a new enviroment.
Yes it does, but once you get the hang of it you will be not be sorry.

> 
> bash: apr-cache: command not found
The typo again.  To see if you have apt-cache installed do
dpkg -l apt-cache   (This IS spelled correctly)  :-)

You install packages using either aptitude or apt-get.

For information on how to use a program do
man program-name 

so to see how to use apt-cache 
man apt-cache

Read the debian-reference.  Many things will become clear.

Being subscribed to this list was a good step upwards in your learning
curve. Keep it up and read, read, read.  We are here to help.

Welcome to the Debian Community.

Wayne

-- 
It works! Now if only I could remember what I did...
___


-- 
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 17:39 -0500, Ron Johnson wrote:
> >   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.
> 
> Where?  I've looked and looked, but don't see it.  (I am getting
> old, though, and do need glasses.)

  "[...]it's clearly stated" - I meant the difference between IA-64 and
EM64T/AMD64 (emphasized right below "IA-64" heading at
http://www.debian.org/ports/), not EM64T -> Intel 64 marketing name
change.

-- 
Krzysztof Lubanski



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



Re: Strange video troubles (DPMS & nv driver)

2007-08-09 Thread Ralph Katz
On 08/09/2007 04:43 PM, cothrige wrote:
> 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

wrt dpms:
Until you get a more knowledgable reply, man xset (especially, the 's'
option) and man xscreensaver-command (-time) may help.

I use the nv driver, but have a crt.

Sometimes, mplayer or another player disables the screen saver and
forgets to re-enable it, which is annoying.  That accounts for failure
to engage dpms actions for me for those cases.

fwiw, I have no Section "ServerFlags" in my xorg.conf on this etch box.
 There are no log entries indicating screen saver or dpms actions or
settings.

Good luck!

Ralph Katz


-- 
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 Nate Duehr

Steve Lamb wrote:


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.


To make your point, you'd need to do all of the above in one line of 
Python code.


What a fanboi...

"Quick, write a one-liner while I take 20 minutes to write a real program!"

You're pretty good for a laugh though, Steve.  :-)

Nate


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


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

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

On 08/09/07 11:50, andy wrote:
[snip]
> 
> Nope, unfortunately usbmount doesn't help.
> 
> Cheers for the suggestion though, it was worth a try

When the Import screen pops up, press .

Then open an xterm and use the command-line app gphoto2 to try to
extract the images.

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

iD8DBQFGu5mXS9HxQb37XmcRAmS3AKCE57bnxkXldOzi0RGTVsyhPyYaRgCg7VqO
0ON3vp7XcVjfbrjaK48pMs0=
=vC+B
-END PGP SIGNATURE-


-- 
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 Ron Johnson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/07 16:59, Mike McCarty wrote:
> Andrei Popescu wrote:
>>
>> lkml?
> 
> What is lkml?

This is not an insult, but a stunned question: You've been around
Linux this long and don't know what that means?


And you didn't take 10 seconds to Google it  Shame on you!

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

iD8DBQFGu5jfS9HxQb37XmcRAl02AJ9lpIbDZmfmboqHTJWVG2dKjF6llwCfa9SF
JohzBtZBI4dC6GK8V/j4ySA=
=mf4+
-END PGP SIGNATURE-


-- 
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 17:17, Linas Žvirblis wrote:
[snip]
> 
> 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.

Correct.  Many people do so.

But you must be careful when mixing packages from different arches.
 And apparently OP wasn't too careful.

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

iD8DBQFGu5gIS9HxQb37XmcRAtIuAKCbZItW6lCVqAHGP+6zTGq0qzUNDQCgx/Hm
Xw5G+W0H13Za4/TivTMJuh0=
=evyi
-END PGP SIGNATURE-


-- 
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 17:10, Krzysztof Lubański wrote:
> 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.

Where?  I've looked and looked, but don't see it.  (I am getting
old, though, and do need glasses.)

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

iD8DBQFGu5eJS9HxQb37XmcRAgV/AJ9PZIfWy+umCpv5bvR66MV6nKanmgCfRKNC
1wVh6E5ugJG+wiseZulJffE=
=09kX
-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: 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]



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




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




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



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



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




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



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




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




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




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




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,


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]




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]




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]



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: 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.


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




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



  1   2   >