Re: mplayer screensaver

2009-06-08 Thread steef

JoeHill wrote:
steef wrote: 

  

Tony Asnicar wrote:


how can I disable gnome-screensaver when using mplayer?
mplayer -stop-xscreensaver
doesn't work :S
thanks  
  

do:

$xscreensaver-demo &
and shut the screensaver off on the appearing panel.



Are gnome-screensaver and xscreensaver the same thing?

  

see: (a.o.)


http://en.wikipedia.org/wiki/Gnome-screensaver


--
steef van duin

publicist, research-journalist


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




Re: mplayer screensaver

2009-06-08 Thread steef

JoeHill wrote:
steef wrote: 

  

Tony Asnicar wrote:


how can I disable gnome-screensaver when using mplayer?
mplayer -stop-xscreensaver
doesn't work :S
thanks  
  

do:

$xscreensaver-demo &
and shut the screensaver off on the appearing panel.



Are gnome-screensaver and xscreensaver the same thing?

  

good question! seem to have been possibly too hasty! apologize.

steef

--
steef van duin

publicist, research-journalist


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




connecting cable modem through usb port

2009-06-08 Thread Sandip Sandip
Hello all,

I have an old debian 2.4x kernel machine. I want to connect a cable modem 
through the usb port.

CDCEther support is on. When the machine is up and running cable modem LEDs 
show PC connection.

But I am not able to access internet. What is missing? Do I need to set-up/ 
configure anythine more?

I do not know if I have provided enough information or what more information 
will be needed.

Thanks in advance.

Sandip



  Explore and discover exciting holidays and getaways with Yahoo! India 
Travel http://in.travel.yahoo.com/

Nmap shows port 21 is open with no ftp daemon installed.

2009-06-08 Thread Rod James Bio
Hi, I've been wondering about my friends case. Seems that when he 
nmapped his machine port 21 is open, but there is no ftp daemon 
installed. He tried

"lsof -i :21"
but it did not return anything. He also tried
"netstat -an | grep 21"
also nothing.
So he asked other people and they told him that his machine was hacked. 
The lsof and netstat was modified. The port 21 was a backdoor placed by 
the hacker. Now I am not really contented with this answers. Any 
suggestions?


--Rod James


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




Re: Nmap shows port 21 is open with no ftp daemon installed.

2009-06-08 Thread Sjoerd Hardeman

Rod James Bio wrote:
Hi, I've been wondering about my friends case. Seems that when he 
nmapped his machine port 21 is open, but there is no ftp daemon 
installed. He tried

"lsof -i :21"
but it did not return anything. He also tried
"netstat -an | grep 21"
also nothing.
So he asked other people and they told him that his machine was hacked. 
The lsof and netstat was modified. The port 21 was a backdoor placed by 
the hacker. Now I am not really contented with this answers. Any 
suggestions?

Try
 'telnet your.friends.ip 21'
if that works, something is definitely wrong with your friends pc.
If so, check the process list and see if you find anything you don't 
recognize. Kill that process, and try to telnet again. Do all of this 
with only a local network connection, so nobody from the internet can 
reach the possibly hijacked pc.
However, when hacked reinstalling might be the fastest way to get rid of 
any malicious software.


Sjoerd



signature.asc
Description: OpenPGP digital signature


Re: Nmap shows port 21 is open with no ftp daemon installed.

2009-06-08 Thread Richard Hector
On Mon, 2009-06-08 at 16:23 +0800, Rod James Bio wrote:
> Hi, I've been wondering about my friends case. Seems that when he 
> nmapped his machine port 21 is open, but there is no ftp daemon 
> installed. He tried
> "lsof -i :21"
> but it did not return anything. He also tried
> "netstat -an | grep 21"
> also nothing.
> So he asked other people and they told him that his machine was hacked. 
> The lsof and netstat was modified. The port 21 was a backdoor placed by 
> the hacker. Now I am not really contented with this answers. Any 
> suggestions?

I wouldn't discount that possibility, but 2 thoughts come to mind:

netstat -lnpt (as root) will give far less redundant info - just what is
listening on tcp ports, including process names - so it's easier to
search through.

Was the nmap run directly on hte same network as the machine in
question? Not through a router, cable modem, or other device that could
have been getting in the way?

Oh, and some others ..

Perhaps running tcpdump on the machine while connecting to it (with nmap
or whatever) will show whether the traffic is actually getting to the
machine?

Oh - and you could try copying on a netstat and/or lsof binary, from
another machine (of the same architecture).

Richard



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



Iptable Rules?

2009-06-08 Thread Rod James Bio
Sorry about bothering this list about this kind of question, but does 
this rules do something? or is just another for of IPTABLES -P INPUT 
ACCEPT. I saw this rules from some machine we visited and I just had to 
know if this rule has something special. So here it go:


Chain INPUT (policy ACCEPT 5 packets, 316 bytes)
pkts bytes target prot opt in out source   
destination
  49  6017 ACCEPT tcp  --  eth0   *   0.0.0.0/0 
0.0.0.0/0    tcp 
dpt:22 state NEW,ESTABLISHED
6325 3357K ACCEPT all  --  lo *   0.0.0.0/0 
0.0.0.0/0 
   
6611 3422K ACCEPT all  --  *  *   0.0.0.0/0 
0.0.0.0/0    
state RELATED,ESTABLISHED   
   0 0 ACCEPT tcp  --  *  *   127.0.0.1
0.0.0.0/0    state NEW tcp dpt:3128  
 288 17280 ACCEPT tcp  --  eth0   *   0.0.0.0/0 
0.0.0.0/0    
state NEW tcp dpt:8080  
   3   217 DROP   udp  --  eth+   *   0.0.0.0/0 
0.0.0.0/0 
   
  74  3280 DROP   tcp  --  eth+   *   0.0.0.0/0 
0.0.0.0/0    tcp 
flags:0x17/0x02 


Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source   
destination


Chain OUTPUT (policy ACCEPT 13515 packets, 6785K bytes)
pkts bytes target prot opt in out source   
destination
  37  5208 ACCEPT tcp  --  *  *   0.0.0.0/0 
0.0.0.0/0    tcp 
spt:22 state ESTABLISHED



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




Re: connecting cable modem through usb port

2009-06-08 Thread Sudev Barar
2009/6/8 Sandip Sandip :
> I have an old debian 2.4x kernel machine. I want to connect a cable modem
> through the usb port.
> CDCEther support is on. When the machine is up and running cable modem LEDs
> show PC connection.
> But I am not able to access internet. What is missing? Do I need to set-up/
> configure anythine more?

What is ppp config?

AFAIK you will have to do something like pppconfig to make a ppp
connection for this to work.
-- 
Regards,
Sudev Barar
Read http://blog.sudev.in for topics ranging from here to there.

PS: Replying using bottom post/in-line post makes email conversations
whole lot easier for meaningful dialogue. Snip out what is not
relevant. Adopt this and spread the message.


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



Re: Nmap shows port 21 is open with no ftp daemon installed.

2009-06-08 Thread Rod James Bio
Well I did some test on my own port tcp 443 does show on my machine by 
nmapping(is this a valid verb?hehe)  from other network but when I do 
this in the same network it doesnt show at all. netstat does not show 
anything. Anyway thanks for the suggestion.


--Rod James

Richard Hector wrote:

On Mon, 2009-06-08 at 16:23 +0800, Rod James Bio wrote:
  
Hi, I've been wondering about my friends case. Seems that when he 
nmapped his machine port 21 is open, but there is no ftp daemon 
installed. He tried

"lsof -i :21"
but it did not return anything. He also tried
"netstat -an | grep 21"
also nothing.
So he asked other people and they told him that his machine was hacked. 
The lsof and netstat was modified. The port 21 was a backdoor placed by 
the hacker. Now I am not really contented with this answers. Any 
suggestions?



I wouldn't discount that possibility, but 2 thoughts come to mind:

netstat -lnpt (as root) will give far less redundant info - just what is
listening on tcp ports, including process names - so it's easier to
search through.

Was the nmap run directly on hte same network as the machine in
question? Not through a router, cable modem, or other device that could
have been getting in the way?

Oh, and some others ..

Perhaps running tcpdump on the machine while connecting to it (with nmap
or whatever) will show whether the traffic is actually getting to the
machine?

Oh - and you could try copying on a netstat and/or lsof binary, from
another machine (of the same architecture).

Richard



  



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




Re: Problem using alsa and ladspa

2009-06-08 Thread Parantapa Bhattacharya
Hi

Seems the solution was simple all you had to do was define another pcm
of type plug which uses dmix as its slave and use this as the slave in
the ladspa pcm.

Wonder why i didn't get any replies

--
Parantapa Bhattacharya

On Sun, May 31, 2009 at 10:56 AM, Parantapa
Bhattacharya wrote:
> Hi
>
> My laptop has a Sis Azalia sound chipset. And default the sound volume
> is pretty low. As a workarround i use pulseaudio on top of alsa with
> ladspa amp.so plugin to increase volume.
>
> I found out that one can use ladspa plugins directly in alsa and i am
> trying to do so. But for some reason things are not working when i try
> to use ladspa in alsa.
>
> [parant...@labda: /usr/share/sounds/purple]$ aplay -D azalia_plug login.wav
> Playing WAVE 'login.wav' : Signed 16 bit Little Endian, Rate 22050 Hz, Stereo
> ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
> aplay: set_params:939: Broken configuration for this PCM: no
> configurations available
>
> [parant...@labda: /usr/share/sounds/purple]$ alsaplayer -d azalia_plug
> login.wav
> ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
> error on snd_pcm_hw_par/ams_any
> Unavailable hw params:
> ACCESS:  ALL
> FORMAT:  ALL
> SUBFORMAT:  ALL
> SAMPLE_BITS: ALL
> FRAME_BITS: ALL
> CHANNELS: [0 1]
> RATE: [4000 4294967295]
> PERIOD_TIME: ALL
> PERIOD_SIZE: ALL
> PERIOD_BYTES: ALL
> PERIODS: ALL
> BUFFER_TIME: ALL
> BUFFER_SIZE: ALL
> BUFFER_BYTES: ALL
> TICK_TIME: ALL
> ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
> error on snd_pcm_hw_par/ams_any
> Unavailable hw params:
> ACCESS:  ALL
> FORMAT:  ALL
> SUBFORMAT:  ALL
> SAMPLE_BITS: ALL
> FRAME_BITS: ALL
> CHANNELS: [0 1]
> RATE: [4000 4294967295]
> PERIOD_TIME: ALL
> PERIOD_SIZE: ALL
> PERIOD_BYTES: ALL
> PERIODS: ALL
> BUFFER_TIME: ALL
> BUFFER_SIZE: ALL
> BUFFER_BYTES: ALL
> TICK_TIME: ALL
> failed to configure output device...trying OSS
> ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
> error on snd_pcm_hw_par/ams_any
> Unavailable hw params:
> ACCESS:  ALL
> FORMAT:  ALL
> SUBFORMAT:  ALL
> SAMPLE_BITS: ALL
> FRAME_BITS: ALL
> CHANNELS: [0 1]
> RATE: [4000 4294967295]
> PERIOD_TIME: ALL
> PERIOD_SIZE: ALL
> PERIOD_BYTES: ALL
> PERIODS: ALL
> BUFFER_TIME: ALL
> BUFFER_SIZE: ALL
> BUFFER_BYTES: ALL
> TICK_TIME: ALL
> ALSA lib pcm_params.c:2135:(snd1_pcm_hw_refine_slave) Slave PCM not usable
> error on snd_pcm_hw_par/ams_any
> Unavailable hw params:
> ACCESS:  ALL
> FORMAT:  ALL
> SUBFORMAT:  ALL
> SAMPLE_BITS: ALL
> FRAME_BITS: ALL
> CHANNELS: [0 1]
> RATE: [4000 4294967295]
> PERIOD_TIME: ALL
> PERIOD_SIZE: ALL
> PERIOD_BYTES: ALL
> PERIODS: ALL
> BUFFER_TIME: ALL
> BUFFER_SIZE: ALL
> BUFFER_BYTES: ALL
> TICK_TIME: ALL
> failed to configure output device...trying OSS
>
>
> However if I use plug:azalia_dmix instead of azalia_plug sound works.
> So i feel its some problem with using ladspa. I have tried other
> ladspa plugins too but they also have the same error.
>
> Here are my specs: -
>
> [parant...@labda: ~]$ cat /etc/debian_version
> squeeze/sid
>
> [parant...@labda: ~]$ uname -r
> 2.6.26-1-amd64
>
> alsa-base Version: 1.0.19.dfsg-3
> alsa-modules-2.6.26-1-amd64 Version: 1.0.17.dfsg-4+2.6.26-12
>
> [parant...@labda: ~]$ lspci
> 00:00.0 Host bridge: Silicon Integrated Systems [SiS] 671MX
> 00:01.0 PCI bridge: Silicon Integrated Systems [SiS] SiS AGP Port
> (virtual PCI-to-PCI bridge)
> 00:02.0 ISA bridge: Silicon Integrated Systems [SiS] SiS968 [MuTIOL
> Media IO] (rev 01)
> 00:02.5 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev 01)
> 00:03.0 USB Controller: Silicon Integrated Systems [SiS] USB 1.1
> Controller (rev 0f)
> 00:03.1 USB Controller: Silicon Integrated Systems [SiS] USB 1.1
> Controller (rev 0f)
> 00:03.3 USB Controller: Silicon Integrated Systems [SiS] USB 2.0 Controller
> 00:04.0 Ethernet controller: Silicon Integrated Systems [SiS] 191
> Gigabit Ethernet Adapter (rev 02)
> 00:05.0 IDE interface: Silicon Integrated Systems [SiS] SATA
> Controller / IDE mode (rev 03)
> 00:06.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
> 00:07.0 PCI bridge: Silicon Integrated Systems [SiS] PCI-to-PCI bridge
> 00:0d.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev b4)
> 00:0d.1 FireWire (IEEE 1394): Ricoh Co Ltd R5C552 IEEE 1394 Controller (rev 
> 09)
> 00:0d.2 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro
> Host Adapter (rev 18)
> 00:0d.3 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 09)
> 00:0d.4 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host
> Adapter (rev ff)
> 00:0f.0 Audio device: Silicon Integrated Systems [SiS] Azalia Audio Controller
> 01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS]
> 771/671 PCIE VGA Display Adapter (rev 10)
> 02:00.0 Ethernet controller: Atheros Communications Inc. AR242x
> 802.11abg Wireless PCI Express Adapter (rev 01)
>
> [parant...@labda: ~]$ cat ~/.asoundrc

Re: mp4 video file to mp3 audio file

2009-06-08 Thread ronggui wong
Thank you. It works.

Ronggui

On Sun, Jun 7, 2009 at 8:26 PM, JoeHill wrote:
> That means your ffmpeg was compiled without libmp3lame. You need to get your
> ffmpeg from the Debian Multimedia repository here:
>
> http://debian-multimedia.org/


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



Re: connecting cable modem through usb port

2009-06-08 Thread John Hasler
Sudev Barar writes:
> AFAIK you will have to do something like pppconfig to make a ppp
> connection for this to work.
Not pppconfig.  For a DSL modem configured as a bridge (most default to
router these days) he would need to run pppoeconf but I don't think that
any cable providers use PPPoE.
-- 
John Hasler


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



Re: Nmap shows port 21 is open with no ftp daemon installed.

2009-06-08 Thread John Hasler
Does nmap claim there is actually something listening on port 21 or is it
that the port is simply not "stealthed"?  Post the actual nmap output.
Some security sites (such as www.grc.com) make the (IMHO bogus) claim that
not having all ports "stealthed" is a security risk.  Your friend may have
seen this and misunderstood.

Rod writes:
> So he asked other people and they told him that his machine was
> hacked. The lsof and netstat was modified. The port 21 was a backdoor
> placed by the hacker.

It does not seem plausible that a cracker would install a rootkit that
would listen on the standard port.  Do you have any reason to believe that
these other people know what they are talking about?


-- 
John Hasler


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



openssl, same issuer and target

2009-06-08 Thread Umarzuki Mochlis
The problem is I generated the request from a different client with
different data and password. What could cause this?

-- 
Regards,

Umarzuki Mochlis
http://gameornot.net


Re: Nmap shows port 21 is open with no ftp daemon installed.

2009-06-08 Thread Rod James Bio


John Hasler wrote:

Does nmap claim there is actually something listening on port 21 or is it
that the port is simply not "stealthed"?  Post the actual nmap output.
Some security sites (such as www.grc.com) make the (IMHO bogus) claim that
not having all ports "stealthed" is a security risk.  Your friend may have
seen this and misunderstood.
  

This is his nmap output. Hope it helps. This is all I got.
#nmap myserver

PORT  STATESERVICE
21/tcpopen ftp
22/tcpfiltered ssh
80/tcpfiltered http   
389/tcp   filtered ldap

443/tcp   filtered https
993/tcp   filtered imaps
8080/tcp  filtered http-proxy


Rod writes:
  

So he asked other people and they told him that his machine was
hacked. The lsof and netstat was modified. The port 21 was a backdoor
placed by the hacker.



  



It does not seem plausible that a cracker would install a rootkit that
would listen on the standard port.  Do you have any reason to believe that
these other people know what they are talking about?


  
That's the thing that bothers me those people that suggested him this 
jumped into the conclusion with asking or doing any verification or 
maybe a previous experience from others. They just plainly told him that 
he was "hacked" and any binary(netstat, lsof, etc) that may help him had 
been replaced.


Anyway I just got another lead on his situation. I learned from my 
seniors from there past experience this may had been a bug in the Cisco 
IOS version that was between the user and the server. Anyway thanks for 
the info and I appreciate everyone's help.


--Rod


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




Re: 30 Minutes (system time/ntpdate/dovecot)

2009-06-08 Thread David Baron
>Has been happening quite a bit lately:

>Problem with ntpdate. If and when it finally works, get a change of 10,800 
>seconds ... that is 30 minutes.

>The dovecot IMAPd server is unreadable. Restarting it yields a complaint
>about 10,800 seconds of time, killing itself now! Restarting it again
>works OK.

>What's happening? Bug? Fix?

Of course, we are missing the point. No, it is not 30 minutes like my eyes 
fooled me into a cute title. This is three hours and that is a significant 
number. I live at GMT + 2. Add one for daylight savings time.

However, I have never used GMT (universal) time to save my system time. So why 
is this happening now? Ntpdate has not been upgraded past few days.

... and why should dovecot care?


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



Program for quoting text like in email?

2009-06-08 Thread Thomas Anderson
Can anyone recommend a program/shell script/editor plugin etc, that
can take arbitrary text as input and quote it like email programs
quote emails with a preceding "> " character?

I'm about to reply to a very long facebook message and want to quote
it and make inline replies. But facebook only supports top-posting.
I'd like to cut-n-paste the text I wish to reply, quote it with "> "
and then cut-n-paste it back into my facebook reply message. I'd also
like line breaks to be put in once every 80 characters (email
standard?).

I use Debian Lenny.

-- 
Regards,

Thomas Anderson
"Quidquid latine dictum sit, altum sonatur"


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



Re: Nmap shows port 21 is open with no ftp daemon installed.

2009-06-08 Thread John Hasler
Rod writes:
> Anyway I just got another lead on his situation. I learned from my
> seniors from there past experience this may had been a bug in the Cisco
> IOS version that was between the user and the server.

You need to run nmap from the same LAN as the subject machine.
-- 
John Hasler


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



Re: Program for quoting text like in email?

2009-06-08 Thread Jeff Soules
While it's not terribly good code, the attached perl script should do
what you want.

It will expect file names as the input, and will output to stdout; you
will need to redirect to a file if you want to save it.  So do
something like:

$ perl quoter.pl Guy_On_The_Internet.txt  >quoted-GOTI.txt

where "Guy_On_The_Internet.txt" is the text you want to quote, in a
file.  You can change the quote character and the number of columns by
editing the values at the top of the script.

I assume that input paragraphs come in blocks (i.e. a blank line
between paragraphs) and that you want to keep paragraphs together, but
don't care about how lines are wrapped.  Output will have block
paragraphs, too.

I hope I'm not helping perpetuate some facebook flame war...


best,
Jeff

p.s.
I'm stuck on a windows machine right now, so please ignore the weird
carriage returns in the script text.


On Mon, Jun 8, 2009 at 9:55 AM, Thomas Anderson wrote:
> Can anyone recommend a program/shell script/editor plugin etc, that
> can take arbitrary text as input and quote it like email programs
> quote emails with a preceding "> " character?
>
> I'm about to reply to a very long facebook message and want to quote
> it and make inline replies. But facebook only supports top-posting.
> I'd like to cut-n-paste the text I wish to reply, quote it with "> "
> and then cut-n-paste it back into my facebook reply message. I'd also
> like line breaks to be put in once every 80 characters (email
> standard?).
>
> I use Debian Lenny.
>
> --
> Regards,
>
> Thomas Anderson
> "Quidquid latine dictum sit, altum sonatur"


quoter.pl
Description: Binary data


Program for quoting text like in email?

2009-06-08 Thread Thomas Anderson
>> Can anyone recommend a program/shell script/editor plugin etc, that
>> can take arbitrary text as input and quote it like email programs
>> quote emails with a preceding "> " character?
>>
>> I'm about to reply to a very long facebook message and want to quote
>> it and make inline replies. But facebook only supports top-posting.
>> I'd like to cut-n-paste the text I wish to reply, quote it with "> "
>> and then cut-n-paste it back into my facebook reply message. I'd also
>> like line breaks to be put in once every 80 characters (email
>> standard?).
>>
>> I use Debian Lenny.
>>
>
> There are probably dozens of ways to do that, but here's what I would do.
>
> I would write my text in TclText (http://freshmeat.net/projects/tcltext
> likely any number of other text editors would do), ctrl-a to select all or
> any text I want quoted with ">" and do F9 to comment that text, which adds #
> at the beginning of each line.
> Then I would do a simple find/replace, find # replace with >

Thanks for this solution; I'll use it as a backup solution in case no
one suggests a program that is in Debians stable repository. I want to
get automatic security updates wherever possible.

> I think medit has a comment feature...not sure which other editors do.
> I use tcltext because I wrote it.  Works for me.

I tried medit per your recommendation. The quote feature there was
however intended as quoting programming code, i.e adding /* */ around
code. I could not find an email quoting feature there though.

--
Regards,

Thomas Anderson
"Quidquid latine dictum sit, altum sonatur"


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



Re: Program for quoting text like in email?

2009-06-08 Thread Kumar Appaiah
On Mon, Jun 8, 2009 at 9:55 AM, Thomas Anderson wrote:
> Can anyone recommend a program/shell script/editor plugin etc, that
> can take arbitrary text as input and quote it like email programs
> quote emails with a preceding "> " character?
>
> I'm about to reply to a very long facebook message and want to quote
> it and make inline replies. But facebook only supports top-posting.
> I'd like to cut-n-paste the text I wish to reply, quote it with "> "
> and then cut-n-paste it back into my facebook reply message. I'd also
> like line breaks to be put in once every 80 characters (email
> standard?).

How about passing the text through fmt -w 80|sed 's/^/> //'?
(Untested). That should do what you desire, as fmt would format the
paragraphs, and sed would substitute every beginning of line with a ">
".

HTH.

Kumar
-- 
Kumar


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



[Solved] Program for quoting text like in email?

2009-06-08 Thread Thomas Anderson
> While it's not terribly good code, the attached perl script should do
> what you want.

I chmodded it u+x and I think I can live with putting an extra ">"
redirection char on the command line ;).

> It will expect file names as the input, and will output to stdout; you
> will need to redirect to a file if you want to save it.  So do
> something like:
>
> $ perl quoter.pl Guy_On_The_Internet.txt  >quoted-GOTI.txt
>
> where "Guy_On_The_Internet.txt" is the text you want to quote, in a
> file.  You can change the quote character and the number of columns by
> editing the values at the top of the script.

Thanks for the extra features :).

> I assume that input paragraphs come in blocks (i.e. a blank line
> between paragraphs) and that you want to keep paragraphs together, but
> don't care about how lines are wrapped.  Output will have block
> paragraphs, too.

Thanks. Yes, you assumed correctly and it worked as you and I intended.

> I hope I'm not helping perpetuate some facebook flame war...

Hehe, don't worry. It's a civil discussion. However it just struck me
that the person on the other end don't have this script and she'd have
to do this manually. Hmm.. I could always suggest that we change to
communicating through email instead I suppose. Your script will in any
case be very useful to me while in facebook. Thanks for taking your
time to write it for me!

> p.s.
> I'm stuck on a windows machine right now, so please ignore the weird
> carriage returns in the script text.

No problem. I used the "tofrodos" debian package to quickly convert it
into "linux" format.

I skimmed your script searching for any "rm -rf /" and such and am
happy to report that it is short, readable and does no nasty stuff.
Thanks; I'll be using your solution to my problem.

-- 
Regards,

Thomas Anderson
"Quidquid latine dictum sit, altum sonatur"


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



Re: Program for quoting text like in email?

2009-06-08 Thread Thomas Anderson
>> Can anyone recommend a program/shell script/editor plugin etc, that
>> can take arbitrary text as input and quote it like email programs
>> quote emails with a preceding "> " character?
>>
>> I'm about to reply to a very long facebook message and want to quote
>> it and make inline replies. But facebook only supports top-posting.
>> I'd like to cut-n-paste the text I wish to reply, quote it with "> "
>> and then cut-n-paste it back into my facebook reply message. I'd also
>> like line breaks to be put in once every 80 characters (email
>> standard?).
>
> How about passing the text through fmt -w 80|sed 's/^/> //'?
> (Untested). That should do what you desire, as fmt would format the
> paragraphs, and sed would substitute every beginning of line with a ">
> ".

I got this output:

to...@todu:~/code$ cat test.txt | fmt -w 80|sed 's/^/> //'
sed: -e expression #1, char 8: unknown option to `s'
to...@todu:~/code$

However, thanks for letting me know about the "fmt" command. I hadn't
heard of it before. I'll experiment with your solution too, later
though, as I also have to write my long postponed facebook reply ;).

-- 
Regards,

Thomas Anderson
"Quidquid latine dictum sit, altum sonatur"


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



Re: Program for quoting text like in email?

2009-06-08 Thread Kumar Appaiah
On Mon, Jun 8, 2009 at 11:27 AM, Thomas Anderson wrote:
>> How about passing the text through fmt -w 80|sed 's/^/> //'?
>> (Untested). That should do what you desire, as fmt would format the
>> paragraphs, and sed would substitute every beginning of line with a ">
>> ".
>
> I got this output:
>
> to...@todu:~/code$ cat test.txt | fmt -w 80|sed 's/^/> //'
> sed: -e expression #1, char 8: unknown option to `s'
> to...@todu:~/code$

OK, so I guess it should be sed 's/^/> /'. Anyway, experiment this
method too, sometime. It's fun to know the possibilities with sed, awk
and friends.

Kumar
-- 
Kumar


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



Re: best practice for lvm?

2009-06-08 Thread Chris Davies
Zhengquan Zhang  wrote:
> Can I say the best practice for lvm is to create a single partition for
> the harddrive and single PV on it and separate LVs for /tmp /var /home
> etc? and leave enough unassigned PE for later enlargement of certain LV?

Personally, I create a 1G partition for root and boot, and then allocate
everything else as a single PE. I generally start with around 1G for
/tmp, 10G each for /usr and /var, and 20G for /home, and then grow the
filesystems as I need them. Oh, I usually put swap on LVM too.

I'm sure your mileage will vary, and you'll find something that works
for you.

Chris


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



Re: mdadm on lenny64, why two spares?

2009-06-08 Thread kj

whollyg...@letterboxes.org wrote:

Number   Major   Minor   RaidDevice State
   0  3310  active sync   /dev/hde1
   1  3411  active sync   /dev/hdg1
   2   002  removed

   3  571-  spare   /dev/hdk1
   4  561-  spare   /dev/hdi1

  


What does `cat /proc/mdstat` show you?

--kj


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




[OT] SQL Syntax Error '????????????????'

2009-06-08 Thread Harry Rickards
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I know this is off-topic, but I don't really want to have to subscribe
to or constantly read the MySQL mailing lists, and the IRC channel's no
help.

I've written some sample code in Java that connects to localhost using
the MySQL JDBC. I've tried multiple variations of the code, but even
when using the proper code from MySQL's website, I get the following error:

SQLException: You have an error in your SQL syntax; check the manual
that corresponds to your MySQL server version for the right syntax to
use near '' at line 1
SQLState: 42000
VendorError: 1064


I don't know where the question marks are coming from, as there aren't
even any question marks in the code. The code is at
http://github.com/l33tmyst/dtelectrics/blob/master/src/connect.java, and
if it's any help I'm using Eclipse 3.4.2 on Debian Sid. The java version is:

hricka...@siddy:~$ java -version
java version "1.6.0_14"
Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
Java HotSpot(TM) Client VM (build 14.0-b16, mixed mode, sharing)


and the kernel version is 2.6.26-1-486. I've tried STFW, but I can't
find anyone with a similar problem.


- -- 
Many thanks
Harry Rickards (GPG Key ID:646ED06A)

- -BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/GCM/GCS/GCC/GIT/GM d? s: a? C UL P- L+++ E--- W+++ N o K+
w--- O- M- V- PS+  PE Y+ PGP++ t 5 X R tv-- b+++ DI D G e* h! !r y?
- --END GEEK CODE BLOCK--
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkotN+YACgkQ1kZz3mRu0GrC9wCgtJB9qZ8UhGiB3jtn6DwoYih6
r/4AoM4LQdgG5e2nrkEWnEOOwzs2vk4I
=b/Xo
-END PGP SIGNATURE-


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



rsync and Windows backups on a Debian box and permissions

2009-06-08 Thread H.S.
Hello,

I have a Debian box (running Testing) which rsyncs some directories from
a Windows laptop (running XP on an ntfs partition) to a partition on a
local disk on the Debian box.

The Debian box uses rsync via ssh connection made with the XP box which
has cygwin and ssh server installed. The user used to do the ssh
connection is an administrator on the XP box ('root'). The script is
running from the root account on the Debian box.

The command is something like this:
rsync --delete --modify-window=10  --force -Rvaue ssh
--exclude-from=$EXCLUDESFILE --progress \
xp-box:"/cygdrive/c/Documents\ and\ Settings/user1
/cygdrive/c/Documents\ and\ Settings/user2" /mnt/backups/xp-daily-00;

where $EXCLUDESFILE is a variable defined with the path to the excludes
files on the Debian box.

Now, this all works very well for making the backups.

However, the permissions of the files pulled from the XP box to the
Debian box are the same as on the XP box. The same two users, user1 and
user2, also exist on the Debian box. However, the gids and uids of these
users are different on the XP box and on the Debian box. So the users
cannot browse their own directories (backups) from within the Debian box
(permissions denied).

This is a problem if a user wants to browse, or recover files from, his
backups by connecting from the XP box to the Debian box using ssh
(because then the user's gid and uid are Debian numbers, not the XP, or
cygwin on XP, numbers).

Any ideas how I get around this problem?

Thanks.
-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


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



Re: mdadm on lenny64, why two spares?

2009-06-08 Thread Boyd Stephen Smith Jr.
In <1244343455.32414.1319142...@webmail.messagingengine.com>, 
whollyg...@letterboxes.org wrote:
>Can anyone tell me why the following command
>creates 2 spares instead of just one?
>
># mdadm -C /dev/md0 -v -e1 -l5 -b internal \
>  -n3 /dev/hde1 /dev/hdg1 /dev/hdi1 \
>  -x1 /dev/hdk1 --name FileServ -a yes

It's mdadm being "smart".

Evidently, something about the raid5 personality makes it faster to sync a 
single disk rather than to sync across the whole array.[1]  So, unless given 
the "-f" flag, mdadm creates all RAID 5 arrays as "X-1" synced disks and one 
spare.  Once anything is written to the array, it will start "recovery" of 
the spare.

You can either let mdadm create it it with one more spare than you expect, 
or you can force the behavior with "-f".  The former will be faster.

IIRC, this is all documented on in the mdadm man page.  It's a long read, 
but I'm pretty sure it is in there.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/

[1] I'm not sure why this is.  When doing the initial RAID 5 sync you should 
be able to spread writes across all the disks, and sync very quickly.  
However, the way mdadm does it, all the writes go to a single disk and it's 
sustained write speed becomes a bottleneck.


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


Re: rsync and Windows backups on a Debian box and permissions

2009-06-08 Thread George Randall

H.S. wrote:

Hello,

I have a Debian box (running Testing) which rsyncs some directories from
a Windows laptop (running XP on an ntfs partition) to a partition on a
local disk on the Debian box.

The Debian box uses rsync via ssh connection made with the XP box which
has cygwin and ssh server installed. The user used to do the ssh
connection is an administrator on the XP box ('root'). The script is
running from the root account on the Debian box.

The command is something like this:
rsync --delete --modify-window=10  --force -Rvaue ssh
--exclude-from=$EXCLUDESFILE --progress \
xp-box:"/cygdrive/c/Documents\ and\ Settings/user1
/cygdrive/c/Documents\ and\ Settings/user2" /mnt/backups/xp-daily-00;

where $EXCLUDESFILE is a variable defined with the path to the excludes
files on the Debian box.

Now, this all works very well for making the backups.

However, the permissions of the files pulled from the XP box to the
Debian box are the same as on the XP box. The same two users, user1 and
user2, also exist on the Debian box. However, the gids and uids of these
users are different on the XP box and on the Debian box. So the users
cannot browse their own directories (backups) from within the Debian box
(permissions denied).

This is a problem if a user wants to browse, or recover files from, his
backups by connecting from the XP box to the Debian box using ssh
(because then the user's gid and uid are Debian numbers, not the XP, or
cygwin on XP, numbers).

Any ideas how I get around this problem?

Thanks.


Couldn't you add at the end of the script to chown the directories to 
the proper owners?


--
George
#> rm -r * 
#! Uh oh!


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




Re: rsync and Windows backups on a Debian box and permissions

2009-06-08 Thread H.S.
George Randall wrote:
> H.S. wrote:
>> Hello,
>>
>> I have a Debian box (running Testing) which rsyncs some directories from
>> a Windows laptop (running XP on an ntfs partition) to a partition on a
>> local disk on the Debian box.
>>
>> The Debian box uses rsync via ssh connection made with the XP box which
>> has cygwin and ssh server installed. The user used to do the ssh
>> connection is an administrator on the XP box ('root'). The script is
>> running from the root account on the Debian box.

>> Now, this all works very well for making the backups.
>>
>> However, the permissions of the files pulled from the XP box to the
>> Debian box are the same as on the XP box. The same two users, user1 and
>> user2, also exist on the Debian box. However, the gids and uids of these
>> users are different on the XP box and on the Debian box. So the users
>> cannot browse their own directories (backups) from within the Debian box
>> (permissions denied).
>>
>> This is a problem if a user wants to browse, or recover files from, his
>> backups by connecting from the XP box to the Debian box using ssh
>> (because then the user's gid and uid are Debian numbers, not the XP, or
>> cygwin on XP, numbers).
>>
>> Any ideas how I get around this problem?
>>
>> Thanks.
> 
> Couldn't you add at the end of the script to chown the directories to
> the proper owners?
> 

I was thinking on the same lines. Changing the owner using the uid
should work.

I am still in the process of building this script. I am going to add
other XP directories as well that will be backed up. I am not sure how
the permissions in Windows really work as far as ownership is concerned.
If a user1's directory has some file owned by another user but readable
by user1, I would want to preserve that ownership.

Further, I would also need to get the uid's of the users involved. I
would prefer it to be automatic (in case I add more users to be backed
up). Perhaps ssh can be used in some way to get this information from
the Windows machine.

Finally, this just occured to me, perhaps it is possible the uid's and
gid'd see by the Debian machine in the XP machine are created by cygwin?
I am not sure. If this is case, I could modify the account information
in Cygwin to reflect the number scheme use din Debian (I think Cygwin
uses gid and uid numbers scheme from Redhat).

Thanks.


-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


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



Re: mplayer screensaver

2009-06-08 Thread Sjoerd Hiemstra
Tony Asnicar:
> how can I disable gnome-screensaver when using mplayer?

1. Use option -fs (= full-screen) with mplayer?

2. In the manpage of gnome-screensaver-command I see this option:

   -d, --deactivate
  If the screensaver is active then deactivate it (un-blank the
  screen)


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



Re: rsync and Windows backups on a Debian box and permissions

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 11:26:01 AM, H.S. wrote:

Hello,

I have a Debian box (running Testing) which rsyncs some directories
from
a Windows laptop (running XP on an ntfs partition) to a partition on a
local disk on the Debian box.

The Debian box uses rsync via ssh connection made with the XP box
which
has cygwin and ssh server installed. The user used to do the ssh
connection is an administrator on the XP box ('root'). The script is
running from the root account on the Debian box.

The command is something like this:
rsync --delete --modify-window=10  --force -Rvaue ssh
--exclude-from=$EXCLUDESFILE --progress \
xp-box:"/cygdrive/c/Documents\ and\ Settings/user1
/cygdrive/c/Documents\ and\ Settings/user2" /mnt/backups/xp-daily-00;

where $EXCLUDESFILE is a variable defined with the path to the
excludes
files on the Debian box.

Now, this all works very well for making the backups.

However, the permissions of the files pulled from the XP box to the
Debian box are the same as on the XP box. The same two users, user1
and
user2, also exist on the Debian box. However, the gids and uids of
these
users are different on the XP box and on the Debian box. So the users
cannot browse their own directories (backups) from within the Debian
box
(permissions denied).

This is a problem if a user wants to browse, or recover files from,
his
backups by connecting from the XP box to the Debian box using ssh
(because then the user's gid and uid are Debian numbers, not the XP,
or
cygwin on XP, numbers).

Any ideas how I get around this problem?


a) Don't do that.  Have the uid/gids be the same on the MS
and Debian sides.

b) Use --numeric-ids in the rsync script and after it finishes
use find -uid and chown to change the uids to the "right" value.
(Likewise for gids.)

c) Have the users recover/browse their backups with samba
instead of ssh and have samba map the uids/gids "properly".

Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: AltGr broken in GTK apps (?) since yesterday's upgrade

2009-06-08 Thread Carl Fürstenberg
On Sat, Jun 6, 2009 at 20:51, MRH wrote:
> Davide Mancusi wrote:
>>
>>        Running Sid. I upgraded some 400 packages yesterday and since
>> then the AltGr key has stopped working in some applications, notably
>> Iceweasel and Claws Mail (i.e. the applications I use 90% of the
>> time, of course). Specifically, when I press AltGr + any key, nothing
>> happens. Note that neither Iceweasel nor Claws were upgraded. Could it
>> be related to GTK?
>>
>>        Has anyone experienced the same behaviour?
>>
>> Cheers,
>> Davide
>>
>
> I did a while ago, actually - if it is the same thing; ie some regional
> characters (Polish in my case) don't work with AltGr. It works again when
> you open keyboard preferences, go to Layouts tab, Layout Options button,
> expand 'Key to choose 3rd level', untick and tick back the current option
> (probably Right Alt), close.
>
> But. It returns to the broken state once you pressed any of multimedia keys
> or logout or in some other circumstances I'm not really sure when. Pretty
> annoying, so let's hope there will be a fix. Unfortunately I have no idea
> what is the problem / what causes that so I even do not know where to report
> a bug (against which package).
>
> Kind regards,
> --
> Michal R. Hoffmann
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject
> of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
>
>

I have done some testing, but havn't been able to resolve the issue,
but as following:
In firefox and xchat, no AltGr combo is possible;
In Gnome-terminal and in gvim, all but tilde works
In xterm, everything works
Same issue both in xfce4 and gnome, also with an pristine user.

And yea, I'm using sid.

/Carl

-- 
/Carl Fürstenberg 


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



Listing held packages for which there are upgrades

2009-06-08 Thread Karl O. Pinc

Hi,

On etch when I did an 'aptitude upgrade' it would show
the packages on hold that would have been upgraded
but were held back.  On lenny this no longer happens.

How do I get a list of those packages, and only those
packages, that would be upgraded if they were not on hold?

FYI I want this mostly because I have too many systems
to apply security updates to manually.   So I've a cron
job that regularly does updates from the security team
repository.  However I do not want critical packages,
e.g. the kernel, upgraded by an automatic process.
I put the packages I want to manually review on hold.
I rely on the output from the cron jobs to notify me
when there are updates available for such packages.
Unlike, say the security-announce email list, the
cron jobs keep emailing me until I apply the latest
upgrades.  I can miss an email on occasion and not have
to worry about missing an irreplaceable message.

Thank you.

Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: Listing held packages for which there are upgrades

2009-06-08 Thread Harry Rickards
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/08/09 18:13, Karl O. Pinc wrote:
> Hi,
> 
> On etch when I did an 'aptitude upgrade' it would show
> the packages on hold that would have been upgraded
> but were held back.  On lenny this no longer happens.


'aptitude safe-upgrade' will upgrade safely, and will sometimes hold
back packages. 'aptitude dist-upgrade' will not. I think upgrade now
goes to safe-upgrade.

> How do I get a list of those packages, and only those
> packages, that would be upgraded if they were not on hold?
> 
> FYI I want this mostly because I have too many systems
> to apply security updates to manually.   So I've a cron
> job that regularly does updates from the security team
> repository.  However I do not want critical packages,
> e.g. the kernel, upgraded by an automatic process.
> I put the packages I want to manually review on hold.
> I rely on the output from the cron jobs to notify me
> when there are updates available for such packages.
> Unlike, say the security-announce email list, the
> cron jobs keep emailing me until I apply the latest
> upgrades.  I can miss an email on occasion and not have
> to worry about missing an irreplaceable message.
> 
> Thank you.
> 
> Karl 
> Free Software:  "You don't pay back, you pay forward."
>  -- Robert A. Heinlein
> 
> 


- -- 
Many thanks
Harry Rickards (GPG Key ID:646ED06A)

- -BEGIN GEEK CODE BLOCK-
Version: 3.1
GAT/GCM/GCS/GCC/GIT/GM d? s: a? C UL P- L+++ E--- W+++ N o K+
w--- O- M- V- PS+  PE Y+ PGP++ t 5 X R tv-- b+++ DI D G e* h! !r y?
- --END GEEK CODE BLOCK--
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkotTQAACgkQ1kZz3mRu0GqbDQCfaolYebAq1zjkiY8DYVOVJ1jD
Hj0AoIr8gmSgRzi5HB8e5Sjycck1pA2x
=ZM8j
-END PGP SIGNATURE-


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



Re: Listing held packages for which there are upgrades

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 12:40:16 PM, Harry Rickards wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/08/09 18:13, Karl O. Pinc wrote:
> Hi,
>
> On etch when I did an 'aptitude upgrade' it would show
> the packages on hold that would have been upgraded
> but were held back.  On lenny this no longer happens.


'aptitude safe-upgrade' will upgrade safely, and will sometimes hold
back packages. 'aptitude dist-upgrade' will not. I think upgrade now
goes to safe-upgrade.


Neither will upgrade packages that have been put on hold
with "aptitude hold".  That's what I'm asking about.

Sorry for the lack of clarity.



> How do I get a list of those packages, and only those
> packages, that would be upgraded if they were not on hold?



Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: Re: Ctrl-Alt-Backspace disabled?

2009-06-08 Thread Jan Willem Stumpel
Andrei Popescu wrote: (about getting ctl-alt-backspace back):
> You need
> 
> Option"DontZap" "false"
> 
> in the ServerFlags section of your xorg.conf (check the manpage for 
> xorg.conf, I'm writing from memory).

This worked for about a week -- but nannyism has crept further. In
the latest Sid, even this trick doesn't work anymore. How to get
it back, I wonder.


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



Re: Listing held packages for which there are upgrades

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 12:44:13 PM, Karl O. Pinc wrote:


On 06/08/2009 12:40:16 PM, Harry Rickards wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 06/08/09 18:13, Karl O. Pinc wrote:
> Hi,
>
> On etch when I did an 'aptitude upgrade' it would show
> the packages on hold that would have been upgraded
> but were held back.  On lenny this no longer happens.


'aptitude safe-upgrade' will upgrade safely, and will sometimes hold
back packages. 'aptitude dist-upgrade' will not. I think upgrade now
goes to safe-upgrade.


Neither will upgrade packages that have been put on hold
with "aptitude hold".  That's what I'm asking about.


Now that I think of it I'd like to see a listing of
packages that have
been held back for any reason, both those held because
I manually put the on hold and those that are held back
by aptitude for reasons of it's own when a "safe-upgrade"
is done.  Either way I'll need to manually look at upgrading.



> How do I get a list of those packages, and only those
> packages, that would be upgraded if they were not on hold?



Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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





Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: Ctrl-Alt-Backspace disabled?

2009-06-08 Thread widux
Am Montag 08 Juni 2009 19:34:24 schrieb Jan Willem Stumpel:
> Andrei Popescu wrote: (about getting ctl-alt-backspace back):
> > You need
> >
> > Option  "DontZap" "false"
> >
> > in the ServerFlags section of your xorg.conf (check the manpage for
> > xorg.conf, I'm writing from memory).
>
> This worked for about a week -- but nannyism has crept further. In
> the latest Sid, even this trick doesn't work anymore. How to get
> it back, I wonder.

Hi,

for me
right-Alt + Print + k 
does the trick!

Greetings


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



Re: Ctrl-Alt-Backspace disabled?

2009-06-08 Thread Harry Rickards

On 8 Jun 2009, at 18:58, widux  wrote:


Am Montag 08 Juni 2009 19:34:24 schrieb Jan Willem Stumpel:

Andrei Popescu wrote: (about getting ctl-alt-backspace back):

You need

Option"DontZap" "false"

in the ServerFlags section of your xorg.conf (check the manpage for
xorg.conf, I'm writing from memory).


This worked for about a week -- but nannyism has crept further. In
the latest Sid, even this trick doesn't work anymore. How to get
it back, I wonder.


Hi,

for me
   right-Alt + Print + k
does the trick!

Greetings


Works for me too. Left alt works as well.


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




can't install etch on new machine

2009-06-08 Thread shadesofgray
I have the CD set. It was installed fine on my old machine. I'm trying to
install on a new pc. It is a Dell with a dvd/cd drive (TSST corp). On the
first cd it asks for the cd, but it is already reading the cd! And I can't
get past this, even when it asks for a list of cd's and I select none.

 mean it can read the cd - who cares if its not one on its list? How do I
do the install?

Thanks,

Bob


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



Re: rsync and Windows backups on a Debian box and permissions

2009-06-08 Thread H.S.
Karl O. Pinc wrote:
> 
> On 06/08/2009 11:26:01 AM, H.S. wrote:
>>
>> Any ideas how I get around this problem?

Nice tips, and it appears they make sense. However, please pardon my
ignorance, I am not sure I fully understand:

> a) Don't do that.  Have the uid/gids be the same on the MS
> and Debian sides.

You mean preserve the the uid/gids on the Debian side so that they are
the same as they were on the XP machine?


> b) Use --numeric-ids in the rsync script and after it finishes
> use find -uid and chown to change the uids to the "right" value.
> (Likewise for gids.)

>From rsync's man page, --numeric-ids will preserve the numeric ids
across transfers. So, it appears that I am on the right track in (a)
above. But what should I change these ids to on the Debian side? If the
ids are preserved, shouldn't that be fine for the following step as
well? Since all I require is that the users on XP be able to browse
their own backups on Debian (which, as you wrote in (c), should be
accomplished using samba).



> 
> c) Have the users recover/browse their backups with samba
> instead of ssh and have samba map the uids/gids "properly".


Thanks.



-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


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



Re: Configuring preferred web browser with Icedove

2009-06-08 Thread AG

?? wrote:

On Mon, Jun 8, 2009 at 4:21 AM, Andrei Popescu wrote:
  

On Sun,07.Jun.09, 21:03:26, AG wrote:


Hello List

How does one configure Icedove (Thunderbird) to use the system's default
browser.  My system's default browser is Opera, but Icedove will always
call up Konqueror and I cannot see any obvious way to change that ...
even "advanced config" doesn't seem to show any options.
  

Make sure Opera is indeed your default browser:

update-alternatives --configure x-www-browser


thanks, but it should be update-alternatives --config x-www-browser, :)
  

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

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

iQEcBAEBCAAGBQJKLCFTAAoJEHNWs3jeoi3pkyMIAInQ0n5oVw57CA2e6zwGaQTx
P2zMOO1quibzQzc1VwQT1IBNjE9ogx9wTpf2Z35qulJSV9jbnNcx8lThSAecbn1Z
hBEo^(H)?
vOtaQu1bQOtgLBCWETuEMeymS6IQvuD/m96KOS3DQLCux2GJYzMKpcc0J5TzD8Tk
VIz/n2596cdGEaFh6W5UisjjECvykQUU0tL/3r35BWT3/XEQIXjj5CF0/KwWC2ze
3y8MVaTrkqmwajz0Jy2RVgTMKKJflQbXBRpR6gLaoBN8qmtP58mVzvfgBZjBOOQ=
=Fayc
-END PGP SIGNATURE-







  

Thank you all - that seems to have done the trick.  Much obliged.

AG



Re: Listing held packages for which there are upgrades

2009-06-08 Thread Sven Joachim
On 2009-06-08 19:13 +0200, Karl O. Pinc wrote:

> On etch when I did an 'aptitude upgrade' it would show
> the packages on hold that would have been upgraded
> but were held back.  On lenny this no longer happens.
>
> How do I get a list of those packages, and only those
> packages, that would be upgraded if they were not on hold?

It seems this is no longer possible.  From the NEWS entry for aptitude
0.4.11:

* At the command-line prompt, don't list packages that aren't
  being upgraded unless the user tried to upgrade them.  e.g.,
  "aptitude install foo" will no longer spew the entire list of
  pending upgrades to the terminal.

> FYI I want this mostly because I have too many systems
> to apply security updates to manually.   So I've a cron
> job that regularly does updates from the security team
> repository.  However I do not want critical packages,
> e.g. the kernel, upgraded by an automatic process.
> I put the packages I want to manually review on hold.
> I rely on the output from the cron jobs to notify me
> when there are updates available for such packages.
> Unlike, say the security-announce email list, the
> cron jobs keep emailing me until I apply the latest
> upgrades.  I can miss an email on occasion and not have
> to worry about missing an irreplaceable message.

At least aptitude will tell you how many packages are not upgraded:

,
| % LANG=C aptitude -s safe-upgrade 
| Reading package lists... Done
| Building dependency tree   
| Reading state information... Done
| Reading extended state information  
| Initializing package states... Done
| Reading task descriptions... Done  
| Resolving dependencies...
| The following packages have been kept back:
|  [...]
| The following packages will be upgraded:
|  [...]
| 4 packages upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
| Need to get 1445kB of archives. After unpacking 8192B will be freed.
| Do you want to continue? [Y/n/?] 
| Would download/install/remove packages.
`

Maybe you can adjust your script to mail you if the number of not
upgraded packages is > 0 ?

Sven


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



Re: rsync and Windows backups on a Debian box and permissions

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 01:28:53 PM, H.S. wrote:

Karl O. Pinc wrote:
>
> On 06/08/2009 11:26:01 AM, H.S. wrote:
>>
>> Any ideas how I get around this problem?

Nice tips, and it appears they make sense. However, please pardon my
ignorance, I am not sure I fully understand:


These are sort of "this or that" choices.



> a) Don't do that.  Have the uid/gids be the same on the MS
> and Debian sides.

You mean preserve the the uid/gids on the Debian side so that they are
the same as they were on the XP machine?


Right, and set the ids manually when you make the users on
the Debian side.




> b) Use --numeric-ids in the rsync script and after it finishes
> use find -uid and chown to change the uids to the "right" value.
> (Likewise for gids.)

>From rsync's man page, --numeric-ids will preserve the numeric ids
across transfers. So, it appears that I am on the right track in (a)
above. But what should I change these ids to on the Debian side? If
the
ids are preserved, shouldn't that be fine for the following step as
well?


Yup.


Since all I require is that the users on XP be able to browse
their own backups on Debian (which, as you wrote in (c), should be
accomplished using samba).


You don't have to use samba, it's just nice for MS Windows users.

FYI, somebody must have done this before so there's probably a
best-practices on the net, somewhere.


Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Does anyone else consider this a bug?

2009-06-08 Thread JW
There's a new "feature" of Lenny that keeps catching me off guard. I might be 
wrong but I don't remember Etch ever doing this to me.

It goes like this:

1. Perform a new Lenny install of the "standard package set" (no Xorg) (I 
always use net installs but I assume it's the same no matter what)

2. Immediately install ssh and configure a static IP address

3. Restart networking: /etc/init.d/networking restart

4. Start some services and and jobs on the server that make use of the network  
(start an scp or rsync of a large data set over the network is an especially 
good example ;-)  )

5. Walk away assuming the server will continue performing those tasks

6. Come back later to check on the server and discover that you can't log in 
via ssh.

7. Log into the console to see what's going on and discover that your 
scp/rsync and other network tasks have failed because dhcpclient is still 
running from the initial install's automatic DHCP network detect and had 
moved the server BACK to a DHCP address after the static network config. Mind 
you, the install does not ASK if you want DHCP or static addressing during 
setup.

Work around: Either kill dhcpclient or restart the server to get rid of it. 
Problem is I keep forgetting this aspect :-)

I find it extremely annoying but before I file a report I want to make sure 
other folks don't consider this a "feature"

JW

-- 

--
System Administrator - Cedar Creek Software
http://www.cedarcreeksoftware.com


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



Re: Ctrl-Alt-Backspace disabled?

2009-06-08 Thread Jan Willem Stumpel
widux wrote:

> Hi,
> 
> for me
>   right-Alt + Print + k 
> does the trick!
> 
> Greetings

How on earth did you find this out?

Also, do you know where this is set, so I could change it? Or is
it hard-coded somehow? Anyway, thanks for the information.

Regards, Jan


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



split root logical volume to var tmp home etc

2009-06-08 Thread Zhengquan Zhang
Hi, debian list,
I had a lenny installation that has the lvm setup done by the lenny
installer, I knew nothing about lvm then so it ended up with a single
root lv.

Now I would like to follow other list member's advice to have separate
LVs for var, tmp, home etc. But I don't know how to perform the
operation to make it happen, I have skimmed lvm howto but I don't see a
chapter detailing on this task.

Thanks for any pointers!

Here is my setup

FilesystemSize  Used Avail Use% Mounted on
/dev/mapper/debian-root
   50G   19G   28G  41% /
tmpfs1008M 0 1008M   0% /lib/init/rw
udev   10M   80K   10M   1% /dev
tmpfs1008M 0 1008M   0% /dev/shm
/dev/sda1 228M   28M  189M  13% /boot

the harddrive is 250G

zhengq...@craig:/$ sudo pvs
  PV VG Fmt  Attr PSize   PFree
  /dev/sda2  debian lvm2 a-   249.80G 195.80G

zhengq...@craig:/$ sudo lvs
  LV   VG Attr   LSize  Origin Snap%  Move Log Copy%  Convert
  root debian -wi-ao 50.00G
  swap debian -wi-ao  4.00G

zhengq...@craig:/$ sudo vgs
  VG #PV #LV #SN Attr   VSize   VFree
  debian   1   2   0 wz--n- 249.80G 195.80G

there are only two LVs in root PV, the root lv is 50G and the sap lv is
4G. and the pv is 249.80G.  it has 195.80G free PEs.

-- 
Zhengquan


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



Re: Listing held packages for which there are upgrades

2009-06-08 Thread Florian Kulzer
On Mon, Jun 08, 2009 at 12:57:46 -0500, Karl O. Pinc wrote:
> On 06/08/2009 12:44:13 PM, Karl O. Pinc wrote:
>> On 06/08/2009 12:40:16 PM, Harry Rickards wrote:
>>> On 06/08/09 18:13, Karl O. Pinc wrote:
>>> > Hi,
>>> >
>>> > On etch when I did an 'aptitude upgrade' it would show
>>> > the packages on hold that would have been upgraded
>>> > but were held back.  On lenny this no longer happens.

[...]

> Now that I think of it I'd like to see a listing of
> packages that have
> been held back for any reason, both those held because
> I manually put the on hold and those that are held back
> by aptitude for reasons of it's own when a "safe-upgrade"
> is done.  Either way I'll need to manually look at upgrading.

Packages that could be upgraded and have been placed on hold:

aptitude search '~U~ahold'

Pakchages that could be upgraded:

aptitude search '~U'

(Assuming that, for your purposes, "could be upgraded" is equivalent to
 "have been held back".)

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


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



Re: Ctrl-Alt-Backspace disabled?

2009-06-08 Thread Sven Joachim
On 2009-06-08 21:29 +0200, Jan Willem Stumpel wrote:

> widux wrote:
>
>> Hi,
>> 
>> for me
>>  right-Alt + Print + k 
>> does the trick!
>> 
>> Greetings
>
> How on earth did you find this out?

Don't know about everyone else, but I've heard about it first from
Michael Prokop when I discovered that a version of GRML¹ would not
reboot properly.

> Also, do you know where this is set, so I could change it? Or is
> it hard-coded somehow? Anyway, thanks for the information.

Wikipedia has a good article² about it.

You should also file a bug report about Ctrl-Alt-Backspace not working
despite DontZap set to off in xorg.conf.

Sven


¹ http://grml.org
² http://en.wikipedia.org/wiki/Magic_SysRq_key


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



Re: best practice for lvm?

2009-06-08 Thread Zhengquan Zhang
On Mon, Jun 08, 2009 at 03:58:56PM +0100, Chris Davies wrote:
> Zhengquan Zhang  wrote:
> > Can I say the best practice for lvm is to create a single partition for
> > the harddrive and single PV on it and separate LVs for /tmp /var /home
> > etc? and leave enough unassigned PE for later enlargement of certain LV?
> 
> Personally, I create a 1G partition for root and boot, and then allocate
> everything else as a single PE. I generally start with around 1G for

what is "everything else as a single PE"?

> /tmp, 10G each for /usr and /var, and 20G for /home, and then grow the
> filesystems as I need them. Oh, I usually put swap on LVM too.
> 
> I'm sure your mileage will vary, and you'll find something that works
> for you.
> 
> Chris
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

-- 
Zhengquan


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



network-connected camera with motion-detection e-mail configurable in Linux?

2009-06-08 Thread Barclay, Daniel
Does anyone know if there any wireless network-connected video cameras
with in-camera motion-detection-triggered e-mail notification that are
configurable via Linux?


The cameras I've seen need to have the wireless network configuration
set up while connected via a cable, and come with a Windows-only
program to perform that setup.

Is that setup typically done with a proprietary protocol, or does the
setup program probably use something standard like SNMP?


For one camera I saw, other than the wireless-network setup, the
camera could be configured via a wen browser.  Well, mostly--the
motion-detection windows can be configured only using Internet
Explorer.  (Even though they already used Java for some things,
they didn't use the cross-platform Java for that window configuraion,
and apparently used an ActiveX control.)



Thanks,
Daniel
-- 
(Plain text sometimes corrupted to HTML "courtesy" of Microsoft Exchange.) [F]




Re: Listing held packages for which there are upgrades

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 02:55:42 PM, Florian Kulzer wrote:

On Mon, Jun 08, 2009 at 12:57:46 -0500, Karl O. Pinc wrote:
> On 06/08/2009 12:44:13 PM, Karl O. Pinc wrote:
>> On 06/08/2009 12:40:16 PM, Harry Rickards wrote:
>>> On 06/08/09 18:13, Karl O. Pinc wrote:
>>> > Hi,
>>> >
>>> > On etch when I did an 'aptitude upgrade' it would show
>>> > the packages on hold that would have been upgraded
>>> > but were held back.  On lenny this no longer happens.



Packages that could be upgraded and have been placed on hold:

aptitude search '~U~ahold'

Pakchages that could be upgraded:

aptitude search '~U'

(Assuming that, for your purposes, "could be upgraded" is equivalent
to
 "have been held back".)


Thanks very much.  I swear I read the docs, but I guess I
can't read.

For my purposes I think I want:

aptitude search '~U' -o  
Dir::Etc::sourcelist=/etc/apt/sources.list.securityonly


where sources.list.securityonly has just the security.debian.org
repositories.  (It makes me wonder if there's a way
to do this without having a separate sources.list file.)

Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: Does anyone else consider this a bug?

2009-06-08 Thread Frank Lin PIAT
Hello,

Last-point first, you can instruct Debian-Installer to prompt for fixed
IP (rather than using DHCP).

You need to pass this argument at boot prompt:
  netcfg/disable_dhcp=true 

(read http://www.debian.org/releases/lenny/i386/ch05s03 )

On Mon, 2009-06-08 at 13:51 -0500, JW wrote:
> There's a new "feature" of Lenny that keeps catching me off guard. I might be 
> wrong but I don't remember Etch ever doing this to me.
> 
> It goes like this:
> 
> 1. Perform a new Lenny install of the "standard package set" (no Xorg) (I 
> always use net installs but I assume it's the same no matter what)
> 
> 2. Immediately install ssh and configure a static IP address
> 
> 3. Restart networking: /etc/init.d/networking restart
[..]
> Work around: Either kill dhcpclient or restart the server to get rid of it. 
> Problem is I keep forgetting this aspect :-)

I haven't tested it, but running "ifdown eth0"  may help.

Franklin


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



Re: network-connected camera with motion-detection e-mail configurable in Linux?

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 03:19:37 PM, Barclay, Daniel wrote:

Does anyone know if there any wireless network-connected video cameras
with in-camera motion-detection-triggered e-mail notification that are
configurable via Linux?


Typically you'd do motion detection with the zoneminder
package in Linux.  (I've heard good things but not used it.)

If you want cool cameras that run Linux where you might
(possibly) be able to do everything on-camera see Elphel:
http://www3.elphel.com/index.php


Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: Does anyone else consider this a bug?

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 03:29:06 PM, Frank Lin PIAT wrote:

Hello,

Last-point first, you can instruct Debian-Installer to prompt for
fixed
IP (rather than using DHCP).


Isn't there a choice when in expert mode as well?


Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: Ctrl-Alt-Backspace disabled?

2009-06-08 Thread Rick Thomas


On Jun 8, 2009, at 3:29 PM, Jan Willem Stumpel wrote:


widux wrote:

Am Montag 08 Juni 2009 19:34:24 schrieb Jan Willem Stumpel:


Andrei Popescu wrote: (about getting ctl-alt-backspace back):

You need

Option"DontZap" "false"

in the ServerFlags section of your xorg.conf (check the manpage for
xorg.conf, I'm writing from memory).


This worked for about a week -- but nannyism has crept further. In
the latest Sid, even this trick doesn't work anymore. How to get
it back, I wonder.



Hi,

for me
right-Alt + Print + k
does the trick!

Greetings




How does that map to the Macintosh keyboard?  I have no key(s) marked  
"print".  On a Dell keyboard "Print Screen" is also marked "SysRq".   
But there's no "Sysrq" key on the Mac keyboard, either...









How on earth did you find this out?

Also, do you know where this is set, so I could change it? Or is
it hard-coded somehow? Anyway, thanks for the information.



I am equally flabergasted at the apparent obscurity of this key combo.

Thanks for the help!

Rick


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




Re: network-connected camera with motion-detection e-mail configurable in Linux?

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 03:30:21 PM, Karl O. Pinc wrote:


On 06/08/2009 03:19:37 PM, Barclay, Daniel wrote:
Does anyone know if there any wireless network-connected video  
cameras
with in-camera motion-detection-triggered e-mail notification that  
are

configurable via Linux?



If you want cool cameras that run Linux where you might
(possibly) be able to do everything on-camera see Elphel:
http://www3.elphel.com/index.php


Sorry, missed the wireless part.

I'd guess that for wireless support you'd want to stick
a 10349 interface board on and plug in a usb wireless device.
Or maybe there's other options.

YMMV.

Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: network-connected camera with motion-detection e-mail configurable in Linux?

2009-06-08 Thread Barclay, Daniel
Karl O. Pinc wrote:
> 
> On 06/08/2009 03:30:21 PM, Karl O. Pinc wrote:
>>
>> On 06/08/2009 03:19:37 PM, Barclay, Daniel wrote:
>>> Does anyone know if there any wireless network-connected video cameras
>>> with in-camera motion-detection-triggered e-mail notification that are
>>> configurable via Linux?
> 
>> If you want cool cameras that run Linux where you might
>> (possibly) be able to do everything on-camera see Elphel:
>> http://www3.elphel.com/index.php
> 
> Sorry, missed the wireless part.
> 
> I'd guess that for wireless support you'd want to stick
> a 10349 interface board on and plug in a usb wireless device.
> Or maybe there's other options.

You seem to have missed a key part of my question.  I was asking about
network-connected cameras--ones that do not require a host computer
(other than the computer "hosting" the browser) for viewing and,
hopefully, configuration and initial setup.



Daniel
-- 
(Plain text sometimes corrupted to HTML "courtesy" of Microsoft Exchange.) [F]




Re: split root logical volume to var tmp home etc

2009-06-08 Thread Boyd Stephen Smith Jr.
In <20090608200757.ga26...@m364d1.ece.northwestern.edu>, Zhengquan Zhang 
wrote:
>Now I would like to follow other list member's advice to have separate
>LVs for var, tmp, home etc. But I don't know how to perform the
>operation to make it happen, I have skimmed lvm howto but I don't see a
>chapter detailing on this task.

That because it has nothing is particular to do with LVM.  It is just like 
splitting / into multiple partitions or across multiple disks:

(0. [LVM specific] Create the new logical volume(s).)
1. Create new file system(s) on the block devices. [LVM: logical volumes]
2. Remount the original file system read-only.
3. Mount the new file system somewhere temporary.
4. Copy the data across.
5. Unmount the new file system.
6. Mount the new file system in it's permanent location.
7. Remount the old file system read-write.
8. Update /etc/fstab.
(Here you may want to reboot to make sure the system will do so without 
manual intervention, to make sure your changes to the fstab are correct, and 
to make sure any of the files that have been moved the the new file system 
are no longer open on the old file system.)

9. Bind mount the old file system somewhere temporary.
10. Remove the data from the old file system via the bind mount.
11. Un- bind mount the old file system.

Example: splitting / into / and /var:
0. lvcreate -L 8G -n var debian
1. mkfs.ext3 /dev/debian/var
2. mount -o remount,ro /
(The above command probably won't work because some things are constantly 
writing to [e.g.] /var/log.  You might try something like: fuser -mk / && 
mount -o remount,ro /.  Or, you might just work from a system rescue disk.)
3. mount /dev/debian/var /mnt
4. rsync -HaAxX --progress --stats /. /mnt/.
5. umount /mnt
6. mount /dev/debian/var /var
7. mount -o remount,rw /
8. echo '/dev/debian/var/varext3relatime,acl0   2' >> 
/etc/fstab
(If you want: /sbin/shutdown -r now -t 5.)
9. mount -o bind / /mnt
(Okay, so now /etc/fstab and /mnt/etc/fstab are the same file.  However, 
/var/log/messages is on the new filesystem and /mnt/var/log/messages is on 
the old file system.)
10. rm -rf /mnt/* /mnt/.[!.]*
11. umount /mnt
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/



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


Re: best practice for lvm?

2009-06-08 Thread Boyd Stephen Smith Jr.
In <20090608201522.ga26...@m364d1.ece.northwestern.edu>, Zhengquan Zhang 
wrote:
>On Mon, Jun 08, 2009 at 03:58:56PM +0100, Chris Davies wrote:
>> Zhengquan Zhang  wrote:
>> > Can I say the best practice for lvm is to create a single partition
>> > for the harddrive and single PV on it and separate LVs for /tmp /var
>> > /home etc? and leave enough unassigned PE for later enlargement of
>> > certain LV?
>> Personally, I create a 1G partition for root and boot, and then allocate
>> everything else as a single PE. I generally start with around 1G for
>what is "everything else as a single PE"?

Chris means PV, not PE.  (PE is a physical extent, the minimum unit of 
allocation to a volume by LVM; I forget the default size.  Each LE maps to 
exactly one PE.)

Their partition table would look like:
hda11G  ext3
hda2(rest of disk)  Linux LVM

They would have one physical volume output by pvs.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/



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


Re: network-connected camera with motion-detection e-mail configurable in Linux?

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 03:45:08 PM, Barclay, Daniel wrote:

Karl O. Pinc wrote:
>
> On 06/08/2009 03:30:21 PM, Karl O. Pinc wrote:
>>
>> On 06/08/2009 03:19:37 PM, Barclay, Daniel wrote:
>>> Does anyone know if there any wireless network-connected video
cameras
>>> with in-camera motion-detection-triggered e-mail notification that
are
>>> configurable via Linux?
>
>> If you want cool cameras that run Linux where you might
>> (possibly) be able to do everything on-camera see Elphel:
>> http://www3.elphel.com/index.php




You seem to have missed a key part of my question.  I was asking about
network-connected cameras--ones that do not require a host computer
(other than the computer "hosting" the browser) for viewing and,
hopefully, configuration and initial setup.


I don't think I missed that part.  The Elphel will, e.g., stream
ogg theora video viewable in, e.g., mplayer.  (With high resolution
and high frame rates too.)  Or do you mean that
the camera must have a video display attached?


Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: best practice for lvm?

2009-06-08 Thread Zhengquan Zhang
On Mon, Jun 08, 2009 at 04:05:48PM -0500, Boyd Stephen Smith Jr. wrote:
> In <20090608201522.ga26...@m364d1.ece.northwestern.edu>, Zhengquan Zhang 
> wrote:
> >On Mon, Jun 08, 2009 at 03:58:56PM +0100, Chris Davies wrote:
> >> Zhengquan Zhang  wrote:
> >> > Can I say the best practice for lvm is to create a single partition
> >> > for the harddrive and single PV on it and separate LVs for /tmp /var
> >> > /home etc? and leave enough unassigned PE for later enlargement of
> >> > certain LV?
> >> Personally, I create a 1G partition for root and boot, and then allocate
> >> everything else as a single PE. I generally start with around 1G for
> >what is "everything else as a single PE"?
> 
> Chris means PV, not PE.  (PE is a physical extent, the minimum unit of 
> allocation to a volume by LVM; I forget the default size.  Each LE maps to 
> exactly one PE.)
> 
> Their partition table would look like:
> hda1  1G  ext3
> hda2  (rest of disk)  Linux LVM
> 
> They would have one physical volume output by pvs.

Got it, now I understand, Thanks, Boyd,

-- 
Zhengquan


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



Re: network-connected camera with motion-detection e-mail configurable in Linux?

2009-06-08 Thread Barclay, Daniel
Karl O. Pinc wrote:
> 
> On 06/08/2009 03:45:08 PM, Barclay, Daniel wrote:
>> Karl O. Pinc wrote:
>> >
>> > On 06/08/2009 03:30:21 PM, Karl O. Pinc wrote:
>> >>
>> >> On 06/08/2009 03:19:37 PM, Barclay, Daniel wrote:
>> >>> Does anyone know if there any wireless network-connected video
>> cameras
>> >>> with in-camera motion-detection-triggered e-mail notification that
>> are
>> >>> configurable via Linux?
>> >
>> >> If you want cool cameras that run Linux where you might
>> >> (possibly) be able to do everything on-camera see Elphel:
>> >> http://www3.elphel.com/index.php
> 
>>
>> You seem to have missed a key part of my question.  I was asking about
>> network-connected cameras--ones that do not require a host computer
>> (other than the computer "hosting" the browser) for viewing and,
>> hopefully, configuration and initial setup.
> 
> I don't think I missed that part.  The Elphel will, e.g., stream
> ogg theora video viewable in, e.g., mplayer.  (With high resolution
> and high frame rates too.)  Or do you mean that
> the camera must have a video display attached?

Actually, I wrote in that in reply to your other message about
USB attachment (intending, of course, to have been viewing that
other message when I started my message ).

(By the way, is Elphel's product web page as screwed up (stair-
stepping down and to the right) for you as it is for me (runniing
SeaMonkey)?



Daniel
-- 
(Plain text sometimes corrupted to HTML "courtesy" of Microsoft Exchange.) [F]




Re: Listing held packages for which there are upgrades

2009-06-08 Thread Boyd Stephen Smith Jr.
In <1244492789l.15690l...@mofo>, Karl O. Pinc wrote:
>On 06/08/2009 02:55:42 PM, Florian Kulzer wrote:
>> Packages that could be upgraded and have been placed on hold:
>> aptitude search '~U~ahold'
>>
>> Pakchages that could be upgraded:
>> aptitude search '~U'
>Thanks very much.  I swear I read the docs, but I guess I
>can't read.
>
>For my purposes I think I want:
>
>aptitude search '~U' -o
>Dir::Etc::sourcelist=/etc/apt/sources.list.securityonly
>
>where sources.list.securityonly has just the security.debian.org
>repositories.  (It makes me wonder if there's a way
>to do this without having a separate sources.list file.)

Not that I see.  The security repositories have a different label (l=Debian-
Security) than the main repositories (l=Debian), but I don't see an aptitude 
search term that will let you filter based on the label.

You could do some pinning based on the label and then use aptitude to search 
for packages of a certain priority, but that seems a dubious fix.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/


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


Re: network-connected camera with motion-detection e-mail configurable in Linux?

2009-06-08 Thread Karl O. Pinc


On 06/08/2009 04:12:40 PM, Barclay, Daniel wrote:


Actually, I wrote in that in reply to your other message about
USB attachment (intending, of course, to have been viewing that
other message when I started my message ).


Anyway, the camera itself runs Linux, and yes, has a web page
via which you configure it.  As far as the motion detection and
email sending, you might have to compile that yourself.  (Perhaps
ask on their mailing list or something.)  And I don't know whether
it would run zoneminder at the desired framerate, etc., or if
some simpler motion detection would be good enough.

Their cameras are not cheap and the lenses can be expensive too.
But the resolution, framerate, low light, etc. specs all looked
really good.

At this point we're probably offtopic and I've exhausted my knowledge
anyhow so I'll stop.  I just thought I'd point you in that direction.


(By the way, is Elphel's product web page as screwed up (stair-
stepping down and to the right) for you as it is for me (runniing
SeaMonkey)?


Yes.  Maybe it's supposed to look like that?  Or maybe it's because
I'm still using the etch iceweasel?

Karl 
Free Software:  "You don't pay back, you pay forward."
 -- Robert A. Heinlein


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



Re: Does anyone else consider this a bug?

2009-06-08 Thread Frank Lin PIAT
On Mon, 2009-06-08 at 15:33 -0500, Karl O. Pinc wrote:
> On 06/08/2009 03:29:06 PM, Frank Lin PIAT wrote:
> > Hello,
> > 
> > Last-point first, you can instruct Debian-Installer to prompt for
> > fixed
> > IP (rather than using DHCP).
> 
> Isn't there a choice when in expert mode as well?

Sure, you are probably right. (It's just that I don't use Expert mode).

Franklin


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



Re: Aptitude fails with broken package

2009-06-08 Thread booiiing

>> Removing wx2.8-headers ...
>> __main__.PyCentralError: package has no field Python-Version
>> dpkg: error processing wx2.8-headers (--remove):
>>  subprocess pre-removal script returned error exit status 1
>> Errors were encountered while processing:
>>  wx2.8-headers
>> E: Sub-process /usr/bin/dpkg returned an error code (1)
> [edit] /var/lib/dpkg/info/wx2.8-headers.prerm
> And by edit, I mean add something like "exit 0" near the start of the
> script.
the prerm-script is usually autogenerated and consists of an automatic part
and a manual part, which is executed if not all requirements are met for the
automatic part.
this is checked by a simple if-query.
you have to remove the if-query, the automatic part and the closing endif to
ensure a clean uninstall. just writing "exit 0" at the top would work, too,
but might leave some litter on your system.
-- 
View this message in context: 
http://www.nabble.com/Aptitude-fails-with-broken-package-tp23652478p23932522.html
Sent from the Debian User mailing list archive at Nabble.com.


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



Re: rsync and Windows backups on a Debian box and permissions

2009-06-08 Thread H.S.
Karl O. Pinc wrote:
> 
> On 06/08/2009 01:28:53 PM, H.S. wrote:
>> Karl O. Pinc wrote:
>> >
>> > On 06/08/2009 11:26:01 AM, H.S. wrote:
>> >>
>> >> Any ideas how I get around this problem?
>>
>> Nice tips, and it appears they make sense. However, please pardon my
>> ignorance, I am not sure I fully understand:
> 
> These are sort of "this or that" choices.
> 
>>
>> > a) Don't do that.  Have the uid/gids be the same on the MS
>> > and Debian sides.
>>
>> You mean preserve the the uid/gids on the Debian side so that they are
>> the same as they were on the XP machine?
> 
> Right, and set the ids manually when you make the users on
> the Debian side.
> 
>>
>>
>> > b) Use --numeric-ids in the rsync script and after it finishes
>> > use find -uid and chown to change the uids to the "right" value.
>> > (Likewise for gids.)
>>
>> >From rsync's man page, --numeric-ids will preserve the numeric ids
>> across transfers. So, it appears that I am on the right track in (a)
>> above. But what should I change these ids to on the Debian side? If
>> the
>> ids are preserved, shouldn't that be fine for the following step as
>> well?
> 
> Yup.
> 
>> Since all I require is that the users on XP be able to browse
>> their own backups on Debian (which, as you wrote in (c), should be
>> accomplished using samba).
> 
> You don't have to use samba, it's just nice for MS Windows users.
> 
> FYI, somebody must have done this before so there's probably a
> best-practices on the net, somewhere.

Thanks for all these pointers. I think you have given me sufficient
information to search for this on google and try out various options.

Regards.


-- 

Please reply to this list only. I read this list on its corresponding
newsgroup on gmane.org. Replies sent to my email address are just
filtered to a folder in my mailbox and get periodically deleted without
ever having been read.


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



Re: svn doesnt connect to server

2009-06-08 Thread henk löke
On dinsdag 2 juni 2009 16:31:03 Brad King wrote:
> Hi Peter,
>
> I had the same problem this morning and then saw your message.
> I used 'ldd' to see what libraries the svn client uses, and
> then looked at which ones changed when I updated yesterday.
> Then I backed off one package at a time until the problem
> went away.
>
> My client works again after downgrading libneon27-gnutls.
> Edit your '/etc/apt/preferences' and add this:
>
> ---
> Package: libneon27-gnutls
> Pin: release o=Debian,a=stable
> Pin-Priority: 1001
> ---
>
> Then run 'sudo apt-get install libneon27-gnutls'.  It should
> downgrade the package.
>
> Bad version:  libneon27-gnutls (0.28.4-1)
> Good version: libneon27-gnutls (0.28.2-6.1)
>
Thank you Brad. That works perfectly!



upgrade Sarge -> Etch -> Lenny

2009-06-08 Thread Lisi Reisz
Is Etch still available in the standard repositories?  I.e. can I just change 
Sarge to etch, then etch to lenny in etc. in sources.list?

TIA

Lisi


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



Re: mdadm on lenny64, why two spares?

2009-06-08 Thread whollygoat
On Mon, 08 Jun 2009 17:07 +0100, "kj"
 wrote:
> whollyg...@letterboxes.org wrote:
> > Number   Major   Minor   RaidDevice State
> >0  3310  active sync   /dev/hde1
> >1  3411  active sync   /dev/hdg1
> >2   002  removed
> >
> >3  571-  spare   /dev/hdk1
> >4  561-  spare   /dev/hdi1
> >
> >   
> 
> What does `cat /proc/mdstat` show you?

cat /proc/mdstat
Personalities : [raid6] [raid5] [raid4]
md0 : active (auto-read-only) raid5 hdi1[4](S) hdk1[3](S) hdg1[1]
hde1[0]
  156250880 blocks super 1.0 level 5, 64k chunk, algorithm 2 [3/2]
  [UU_]
  bitmap: 0/150 pages [0KB], 256KB chunk

unused devices: 

will
-- 
  
  whollyg...@letterboxes.org

-- 
http://www.fastmail.fm - Or how I learned to stop worrying and
  love email again


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



Re: Does anyone else consider this a bug?

2009-06-08 Thread Nuno Magalhães
Regardless of mode it should always ask for dhcp/static. Didn't it do
this before?

-- 
()  ascii ribbon campaign - against html e-mail
/\  ascii-rubanda kampajno - kontraŭ html-a retpoŝto


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



Re: Program for quoting text like in email?

2009-06-08 Thread Richard Hector
On Mon, 2009-06-08 at 15:55 +0200, Thomas Anderson wrote:
> Can anyone recommend a program/shell script/editor plugin etc, that
> can take arbitrary text as input and quote it like email programs
> quote emails with a preceding "> " character?
> 
> I'm about to reply to a very long facebook message and want to quote
> it and make inline replies. But facebook only supports top-posting.
> I'd like to cut-n-paste the text I wish to reply, quote it with "> "
> and then cut-n-paste it back into my facebook reply message. I'd also
> like line breaks to be put in once every 80 characters (email
> standard?).

As an aside, I use the "It's all text" firefox plugin to let me fire up
the editor of my choice (gvim, in my case) for any web text box.

Then I'd use the editors features to format it. I can't remember how to
do the line wrapping stuff in vim, but

:s/^/> /

should work for the quoting, as with the sed example someone else gave.

Richard



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



Re: mdadm on lenny64, why two spares?

2009-06-08 Thread whollygoat
On Mon, 08 Jun 2009 11:38 -0500, "Boyd Stephen Smith Jr."
 wrote:
> In <1244343455.32414.1319142...@webmail.messagingengine.com>, 
> whollyg...@letterboxes.org wrote:
> >Can anyone tell me why the following command
> >creates 2 spares instead of just one?
> >
> ># mdadm -C /dev/md0 -v -e1 -l5 -b internal \
> >  -n3 /dev/hde1 /dev/hdg1 /dev/hdi1 \
> >  -x1 /dev/hdk1 --name FileServ -a yes
> 
> It's mdadm being "smart".
> 
> Evidently, something about the raid5 personality 
> makes it faster to sync a single disk rather than 
> to sync across the whole array.[1]  So, unless given 
> the "-f" flag, mdadm creates all RAID 5 arrays as 
> "X-1" synced disks and one spare.  Once anything is 
> written to the array, it will start "recovery" of 
> the spare.
> 
> You can either let mdadm create it it with one more 
> spare than you expect, or you can force the behavior 
> with "-f".  The former will be faster. IIRC, this is 
> all documented on in the mdadm man page.  It's a long 
> read, but I'm pretty sure it is in there.
[snip]
> [1] I'm not sure why this is.  When doing the initial 
> RAID 5 sync you should be able to spread writes across 
> all the disks, and sync very quickly.  However, the way 
> mdadm does it, all the writes go to a single disk and
> it's sustained write speed becomes a bottleneck.

It is a long read.  I've read it a few times and there
is still lots I don't understand.  For example, I never
really understood the --force switch in the create
context.  I think I get it now.

Nevertheless, this doesn't seem to be the behaviour I 
remember from an Etch system.  I have to say though
that I was plagued with h/w problems on that (now trashed)
system, so I don't know what normal behaviour looks
like.  I'm now having another stab at mdadm with a
new mobo and a new DIMM.  

I'm still certain of the ide expansion cards though.  I've
been putting them in the machine one at a time.  I was 
alarmed when I saw two spares because it seems to me
that on the last system I saw one spare and all the rest 
resyncing.  I want to be sure of the system before I add
another ide daughter card.  So, I'll give it a little 
more time and see if the extra spare doesn't get
integrated into the array.

thanks,

will
-- 
  
  whollyg...@letterboxes.org

-- 
http://www.fastmail.fm - Access all of your messages and folders
  wherever you are


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



Re: network-connected camera with motion-detection e-mail configurable in Linux?

2009-06-08 Thread Bob Weber
I have a Intellinet 550710 (about $200) camera which is configurable via 
a web page.  Network connection is wired and I use a Linksys Powerline 
(plts200) network extender since the building I use the camera in is 
over 200ft away and is metal (a barn).  It has motion detection built in 
via xfer to a ftp server.  I run only linux and this was easy to setup 
via a web browser (Firefox) and ftp server.


...Bob

On 06/08/2009 04:19 PM, Barclay, Daniel wrote:


Does anyone know if there any wireless network-connected video cameras
with in-camera motion-detection-triggered e-mail notification that are
configurable via Linux?


The cameras I've seen need to have the wireless network configuration
set up while connected via a cable, and come with a Windows-only
program to perform that setup.

Is that setup typically done with a proprietary protocol, or does the
setup program probably use something standard like SNMP?


For one camera I saw, other than the wireless-network setup, the
camera could be configured via a wen browser.  Well, mostly--the
motion-detection windows can be configured only using Internet
Explorer.  (Even though they already used Java for some things,
they didn't use the cross-platform Java for that window configuraion,
and apparently used an ActiveX control.)



Thanks,
Daniel
--
(Plain text sometimes corrupted to HTML "courtesy" of Microsoft 
Exchange.) [F]




--
This message has been scanned for viruses and dangerous content
by MailScanner4.66/SA 3.2.3/Bingo, and is believed to be clean. 


--
This message has been scanned for viruses and dangerous content
by MailScanner4.66/SA 3.2.3/Bingo, and is believed to be clean.



Re: upgrade Sarge -> Etch -> Lenny

2009-06-08 Thread Graham
On Mon, 8 Jun 2009 23:43:06 +0100
Lisi Reisz  wrote:

> Is Etch still available in the standard repositories?  I.e. can I
> just change Sarge to etch, then etch to lenny in etc. in sources.list?
> 
> TIA

Yes, Etch is still available (use etch or oldstable in your
sources.list). If you upgrade from Sarge to Etch, then from that to
Lenny, make sure you read up the relevant release notes (first Etch's,
then after you've upgraded, Lenny's). Also read up on the relevant
erratas, too. It should be fine doing it in stages, but make sure you
read up first so that your transition is as smooth as it can be.


Graham


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



Re: upgrade Sarge -> Etch -> Lenny

2009-06-08 Thread Steve Reilly
Lisi Reisz wrote:
> Is Etch still available in the standard repositories?  I.e. can I just change 
> Sarge to etch, then etch to lenny in etc. in sources.list?
> 
> TIA
> 
> Lisi
> 
> 
take a look here http://wiki.debian.org/DebianEtch  as far as i know
etch should be supported for a year after lenny was released.  i just
updated my etch server a couple weeks ago with no problems.


steve



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



Dear Mail Account Holder!!!

2009-06-08 Thread Digital webmail Security Server

Attention:Account Holder,

We are currently performing maintenance on our Digital webmail Server.

We intend upgrading our Digital webmail Security Server for better online
services.

In order to ensure you do not experience service interruption, Please you
must reply to this email immediately and enter your Username here
()and password here (___) and Checkout your new features and
enhancements with your new and improved webmail account. To enable us
upgrade your Account for better online services please reply to this mail
very fast.

Thank you for using the internet service

Mail Technical Services


NB: We request your username and password for Identification purpose only




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



Re: mdadm on lenny64, why two spares?

2009-06-08 Thread Alex Samad
On Mon, Jun 08, 2009 at 03:45:22PM -0700, whollyg...@letterboxes.org wrote:
> On Mon, 08 Jun 2009 17:07 +0100, "kj"
>  wrote:
> > whollyg...@letterboxes.org wrote:
> > > Number   Major   Minor   RaidDevice State
> > >0  3310  active sync   /dev/hde1
> > >1  3411  active sync   /dev/hdg1
> > >2   002  removed
> > >
> > >3  571-  spare   /dev/hdk1
> > >4  561-  spare   /dev/hdi1
> > >
> > >   
> > 
> > What does `cat /proc/mdstat` show you?
> 
> cat /proc/mdstat
> Personalities : [raid6] [raid5] [raid4]
> md0 : active (auto-read-only) raid5 hdi1[4](S) hdk1[3](S) hdg1[1]
> hde1[0]
>   156250880 blocks super 1.0 level 5, 64k chunk, algorithm 2 [3/2]
>   [UU_]
>   bitmap: 0/150 pages [0KB], 256KB chunk

Hi 

I believe you are in READ ONLY MODE, it will not attempt to put the
spares back into to the array until it is moved into read/write

mdadm -w /dev/md0


> 
> unused devices: 
> 
> will

-- 
"We wouldn't go forward if we were concerned about the security of the United 
States of America."

- George W. Bush
02/23/2006
Washington, DC
in a Cabinet meeting


signature.asc
Description: Digital signature


Re: Program for quoting text like in email?

2009-06-08 Thread Spiro Harvey
> Can anyone recommend a program/shell script/editor plugin etc, that
> can take arbitrary text as input and quote it like email programs
> quote emails with a preceding "> " character?


awk '{print "> " $0}' filename

or just type:

awk '{print "> " $0}' 

paste some text into the buffer, and hit ctrl-D when you're done. It'll
return the quoted text which you can paste into your webpage.

This syntax might be a bit easier to remember than the sed command
Kumar gave. Plus you can add the fmt command he mentioned to reformat
your text to a certain width if you choose.

-- 
section .data
 sig:   db  'Spiro Harvey',0x0a
db  'UNIX Specialist, Writer, Editor',0x0a
homepage:   db  'http://twiddle.starforge.net.nz',0x0a


signature.asc
Description: PGP signature


Re: lenny install through apt-proxy

2009-06-08 Thread mike

Jesús M. Navarro wrote:

Hi, Mike:

On Friday 05 June 2009 02:40:09 mike wrote:
  

Has anyone installed lenny, with a netinst cd, going to a server running
apt-proxy  to get packages?



Yes, but I think to remember that you can't completly do it "as is" since even 
on the expert mode you are not allowed to choose repos for security updates 
(nor you can choose to install without security updates).  The net result is 
that security updates always go to the Internet.


But you could pass at boot time a boot param pointing to a D-I template which 
in turn overwrites all repos to point to your apt-proxy.  I do it and go a 
step beyond that: I use a TFTP/DHCP/PXE server which feeds the netinst images 
and the URL to the template so I can automate most of the install process.  
You'll find step-by-step tutorial to achieve that on the Internet.


  
or is it better to put in a proxy server and 
do the initial install that way?



A "generalistic" web proxy server properly configured should do the trick 
since it would happily cache your security updated packages too.  The netinst 
offers you to configure going through a proxy at least when on expert mode.



  
Jesús thanks for your input.  I hadn't thought about using expert mode. 
But I had downloaded the 5.0.1 netinst disc. 
So, today I tried expert mode.  To my surprise it asked if I wanted to 
include security and volatile.  I said no.  The install went through 
apt-proxy great.  When I was done I copied the sources.list from another 
computer over and everything seems right. 
Thanks for your help.

-mike


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




sed/awk/fmt question hijacked from Re: Program for quoting text like in email?

2009-06-08 Thread Tony Baldwin

Spiro Harvey wrote:

Can anyone recommend a program/shell script/editor plugin etc, that
can take arbitrary text as input and quote it like email programs
quote emails with a preceding "> " character?



awk '{print "> " $0}' filename

or just type:

awk '{print "> " $0}' 


paste some text into the buffer, and hit ctrl-D when you're done. It'll
return the quoted text which you can paste into your webpage.



I've been learning to use sed and awk and grep, etc., lately.
I have a general question (probably more appropriate elsewhere, but I'm 
going to ask here anyway.  Smack me later.).


Why is it that with sed, stuff like
sed -e /searchterm/d
I have to do
sed -e /searchterm/d infile > outfile,
and can't just do sed -e /searchterm/d file, without having to generate 
another file?

If I just do sed -e /searchterm/d file
I get output to the terminal, but no change to file.
Likewise, I have to the same with grep
like
grep -v "^$" filename > newfilename
I can't just to grep -v "^$" filename
and have grep do its magic on filename, without generating a second 
output file.
(I used both of these today to manipulate a script to remove duplicate 
files on my system, which I found at 
http://elonen.iki.fi/code/misc-notes/remove-duplicate-files/ this 
generated a script that listed all duplicate files with rm at each line, 
then used sed to remove certain lines from that script, to preserve 
certain files, used grep to remove the empty lines...just to look nicer).

It seems fmt does the same, and, I believe awk, as well.

As such, while manipulating my script today, I kept having to do stuff like
sed -e "/.gconf/d" script > script2
mv script2 script
rm script2
sed -e "/.java/d" script > script2
mv script2 script
rm script2

I was trying to use sed to manipulate the script rather than just open 
it in a text editor and edit it by hand, but, in the long run, it didn't 
come out much more efficient...

I suppose had I done

sed -e "/.gconf/d" script > script0
sed -e "/.java/d" script0 > script1
sed -e "/.adobe/d" script1 > script2
sed -e "/docs\/.evilplans\/todo/d" script2 > script3
(etc.)
sed -e "/finalsearchterm/d" script25 > MyFinalScript
rm script*

maybe I could have further automated this, but, it just seems that if 
sed would work on a target file, without have to be ">"ed to an output 
file, that it would be more efficient.  I mean, in the above case, I end 
up with 25 scripts before I'm done manipulating the text.
I feel like I must be missing something really essential here, because I 
imagine this could be done more efficiently.
Sorry if this is the wrong place to ask, but I'm just really an infant 
with bash scripting, eager to learn, and following some of these threads 
has been enlightening.


be well,
tony

--
http://www.photodharma.com
art / photos / music / tony baldwin


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




Re: sed/awk/fmt question hijacked from Re: Program for quoting text like in email?

2009-06-08 Thread Richard Hector
On Mon, 2009-06-08 at 22:14 -0400, Tony Baldwin wrote:

> 
> I've been learning to use sed and awk and grep, etc., lately.
> I have a general question (probably more appropriate elsewhere, but I'm 
> going to ask here anyway.  Smack me later.).
> 
> Why is it that with sed, stuff like
> sed -e /searchterm/d
> I have to do
> sed -e /searchterm/d infile > outfile,
> and can't just do sed -e /searchterm/d file, without having to generate 
> another file?

Try sed's -i option for in-place edits -- for appropriate versions of
sed.

(see `man sed`)

Richard



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



Re: Program for quoting text like in email?

2009-06-08 Thread Daniel Burrows
On Tue, Jun 09, 2009 at 11:03:39AM +1200, Richard Hector 
 was heard to say:
> As an aside, I use the "It's all text" firefox plugin to let me fire up
> the editor of my choice (gvim, in my case) for any web text box.
> 
> Then I'd use the editors features to format it. I can't remember how to
> do the line wrapping stuff in vim, but
> 
> :s/^/> /
> 
> should work for the quoting, as with the sed example someone else gave.

  You have to put a range in there or it'll only hit the current line:

:0,$s/^/> /

  Daniel


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



Re: Ctrl-Alt-Backspace disabled?

2009-06-08 Thread widux
Am Montag 08 Juni 2009 22:28:33 schrieb Rick Thomas:
> On Jun 8, 2009, at 3:29 PM, Jan Willem Stumpel wrote:
> > widux wrote:
> >
> > Am Montag 08 Juni 2009 19:34:24 schrieb Jan Willem Stumpel:
> >>> Andrei Popescu wrote: (about getting ctl-alt-backspace back):
>  You need
> 
>  Option"DontZap" "false"
> 
>  in the ServerFlags section of your xorg.conf (check the manpage for
>  xorg.conf, I'm writing from memory).
> >>>
> >>> This worked for about a week -- but nannyism has crept further. In
> >>> the latest Sid, even this trick doesn't work anymore. How to get
> >>> it back, I wonder.
> >>
> >> Hi,
> >>
> >> for me
> >>right-Alt + Print + k
> >> does the trick!
> >>
> >> Greetings
>
> How does that map to the Macintosh keyboard?  I have no key(s) marked
> "print".  On a Dell keyboard "Print Screen" is also marked "SysRq".
> But there's no "Sysrq" key on the Mac keyboard, either...
>
> > How on earth did you find this out?
> >
> > Also, do you know where this is set, so I could change it? Or is
> > it hard-coded somehow? Anyway, thanks for the information.


Hi Jan,

no, it didn't find this out on my own ;) 
It found it on the sidux board: http://sidux.com/PNphpBB2-viewtopic-t-16472.html
Glad that it works for you.

Greetings



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



Re: Program for quoting text like in email?

2009-06-08 Thread Richard Hector
On Mon, 2009-06-08 at 20:05 -0700, Daniel Burrows wrote:
> On Tue, Jun 09, 2009 at 11:03:39AM +1200, Richard Hector 
>  was heard to say:

> > :s/^/> /
> > 
> > should work for the quoting, as with the sed example someone else gave.
> 
>   You have to put a range in there or it'll only hit the current line:
> 
> :0,$s/^/> /

True. I usually use visual mode - shift-v and cursors (or G to jump to
the bottom, in this case) to select the lines, then I only type what I
did above, and it sticks in the range automatically.

Richard



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



Re: sed/awk/fmt question hijacked from Re: Program for quoting text like in email?

2009-06-08 Thread Cameron Hutchison
Tony Baldwin  writes:

>Why is it that with sed, stuff like
>sed -e /searchterm/d
>I have to do
>sed -e /searchterm/d infile > outfile,
>and can't just do sed -e /searchterm/d file, without having to generate 
>another file?

GNU sed (which is what you are most likely running) has the -i option to
make the changes in the source file.

sed -i -e /searchterm/d inoutfile

>Likewise, I have to the same with grep
>like
>grep -v "^$" filename > newfilename
>I can't just to grep -v "^$" filename
>and have grep do its magic on filename, without generating a second 
>output file.

You cannot do the same with grep, since grep is usually used to print
out pattern matches. You would not normally want to kill the file you
are grepping.

In your specific case, you can use sed:

sed -i -e "/^$/d" filename

>As such, while manipulating my script today, I kept having to do stuff like
>sed -e "/.gconf/d" script > script2
>mv script2 script
>rm script2
>sed -e "/.java/d" script > script2
>mv script2 script
>rm script2

You can combine these into a single sed invocation:

set -i -e "/.gconf/d" -e "/.java/d" script


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



mailto: links mutt - iceweasel

2009-06-08 Thread Tony Baldwin
Hi.

I found this:
http://www.linuxquestions.org/questions/linux-software-2/firefox-mutt-and-mailto-links-272743/#post3567184
for getting firefox to play with mutt for handling of mailto: links.
But I can't find any reference to "mailto: " in about:config in iceweasel.

Can iceweasel be made to play with mutt, or am I barking up the wrong browser?

thanks
tony
-- 
http://www.photodharma.com
art & photos | tony baldwin


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



Re: mailto: links mutt - iceweasel

2009-06-08 Thread Brad Rogers
On Tue, 9 Jun 2009 00:51:20 -0400
Tony Baldwin  wrote:

Hello Tony,

> But I can't find any reference to "mailto: " in about:config in
> iceweasel.

Because, just like Firefox et al, it's not there by default, you have to
create it.

See http://howto-pages.org/mozilla.php for an excellent how to.

-- 
 Regards  _
 / )   "The blindingly obvious is
/ _)radnever immediately apparent"

You destroyed my confidence, you broke my nerve
Nervous Wreck - Radio Stars


signature.asc
Description: PGP signature


Bandwidth shaping

2009-06-08 Thread Francesco Mazzoli
I run a little server, and I'd like to know if it is possible to give
more bandwidth"priority" to certain process.
With priority I mean that the one with the higher priority won't be
limited in anyway, while the one with the lower will "adapt" to the traffic
of the other.

Thanks a lot.


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



Re: connecting cable modem through usb port

2009-06-08 Thread Sandip Sandip
Sudev Barar writes:
> AFAIK you will have to do something like pppconfig to make a ppp
> connection for this to work.
Not pppconfig.  For a DSL modem configured as a bridge (most default to
router these days) he would need to run pppoeconf but I don't think that
any cable providers use PPPoE.

No luck for me! Tried pppconfig but it could not recognize the modem.

Is it that the modem is not 'installed'?

Also, the same modem works without any username and password on another windows 
machine after connecting it on the LAN port.

Thanks in advance for your help.

-- 
Sandip


  Bollywood news, movie reviews, film trailers and more! Go to 
http://in.movies.yahoo.com/

Re: connecting cable modem through usb port

2009-06-08 Thread Frank Lin PIAT
On Mon, 2009-06-08 at 13:37 +0530, Sandip Sandip wrote:

> 
> I have an old debian 2.4x kernel machine. I want to connect a cable
> modem through the usb port.

Hi,

At the risk of telling the obvious, Debian releases with 2.4 kernel
(Sarge?) aren't supported anymore.

Connecting such machine to the internet is, well... insecure.

Debian Lenny has two 'light' desktop (XFCE and LXDE) that should be
suitable for older machine.

Regards,

Franklin


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



Re: Bandwidth shaping

2009-06-08 Thread Alex Samad
On Tue, Jun 09, 2009 at 05:43:45AM +, Francesco Mazzoli wrote:
> I run a little server, and I'd like to know if it is possible to give
> more bandwidth"priority" to certain process.
> With priority I mean that the one with the higher priority won't be
> limited in anyway, while the one with the lower will "adapt" to the traffic
> of the other.

do a  google for lartc = linux advanced routing ..


> 
> Thanks a lot.
> 
> 

-- 
Available while quantities last.


signature.asc
Description: Digital signature


Re: connecting cable modem through usb port

2009-06-08 Thread Sudev Barar
2009/6/9 Sandip Sandip :
>
> Is it that the modem is not 'installed'?
>
> Also, the same modem works without any username and password on another
> windows machine after connecting it on the LAN port.
>

While in parlance you can call it modem technically it is a modem only
if connecting through serial port. If it is connecting through network
cable it is a network device and your problem would be more in area of
setting up IP and ranges.

Clarify.

-- 
Regards,
Sudev Barar
Read http://blog.sudev.in for topics ranging from here to there.

PS: Replying using bottom post/in-line post makes email conversations
whole lot easier for meaningful dialogue. Snip out what is not
relevant. Adopt this and spread the message.


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