Re: Does anyone understand terminal job control?

2009-02-07 Thread Adrian Levi
2009/2/8 Daniel Burrows :
>  Hello list,
>
>  I've been banging my head on this one for a while.
>
>  I have a need to write some code that can manage job control on a
> terminal.  More specifically, I need to run a single process and stuff
> it into the background at will, so that it gets suspended when it tries
> to read from the terminal.  So, there's a "controller" process and
> a "subprocess" process.
>
> controller  --> subprocess
>   manages

You cant send the equivalent of ^z then fg to resume?
AFAIK the process will be suspended until you type bg to run the
process in the background or fg to bring it back into the foreground.

Hope this helps you.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
 hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


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



Re: No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread Mark Allums

S D wrote:

Is there a way to disable Google "safebrowsing" feature in IceWeasel? I want to 
have as little as possible with Google, even if it only means repeatedly downloading some 
black-list file from their servers.

Thanks


$ uname -a
Linux test 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686 GNU/Linux

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081202 
Iceweasel/2.0.0.19 (Debian-2.0.0.19-0etch1)


  





Consider upgrading Iceweasel to 3.0.6.  It' pretty stable now, and 
doesn't appear to have that problem, and it has quite a few nice 
features beside.


Mark Allums



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




Re: 24 bit usb sound on lenny

2009-02-07 Thread Joel Roth
On Sat, Feb 07, 2009 at 03:54:41PM +0100, Johannes Wiedersich wrote:
> Hallo all!
> 
> On switching my usb sound card to 24bit audio, all applications using
> the card will crash/segfault:
> 
> $ aplay led_zeppelin-houses_of_the_holy-a.wav
> Playing WAVE 'led_zeppelin-houses_of_the_holy-a.wav' : Signed 16 bit
> Little Endian, Rate 44100 Hz, Stereo
> Segmentation fault

There are many wrinkles and ways of solving problems 
with Linux audio.

At the ALSA level, the 'default' pcm device as provided by modern
kernels automatically performs format conversion. Maybe some
of the others, too. 

$ aplay -L

provides a list of your system's ALSA pcm sound devices.

okay, here's a test with a 24-bit mono file outputing to
my 16-bit soundcard.

aplay organ_6.wav -D default  (plays normally)

Now for your system, you should reboot or unplug and replug
your USB sound device after changing to 24-bit to ensure the
ALSA driver reads the 24-bit configuration.

You can also choose to specify in your $HOME/.asoundrc file what the
output format to the soundcard should be for a particular
device.

I find the Ecasound provides an easy way to handle
format conversions. 

$ ecasound -i cd-stereo.wav -f:s24_le,2,44100 -o alsa,hw:0

Ecasound is a swiss-army knife of audio processing,
can do many common audio processing tasks.

> kaffeine, amarok, xine etc. all just crash.

It sounds like a configuration problem, maybe ALSA
needs to be told that your USB soundcard is set to 24 bits.

>
> Trying to record some anaolg input with 24bit also fails:
> 
> 
> $ arecord -f S24_LE -c 2 -r48000 24-48k-testa.wav
> Recording WAVE '24-48k-testa.wav' : Signed 24 bit Little Endian, Rate
> 48000 Hz, Stereo
> ^CAborted by signal Interrupt...
> 
> appears to behave as expected, but the generated file is finishes at 44
> bit.
> 
> Everything works nice on 16 bit/48 kHz:
> 
> 14:30:43-johan...@e13-v21:/home/audio/wav$ aplay
> led_zeppelin-houses_of_the_holy-a.wav
> Playing WAVE 'led_zeppelin-houses_of_the_holy-a.wav' : Signed 16 bit
> Little Endian, Rate 44100 Hz, Stereo

This suggests that you are 99% there, since your ALSA driver is
already taking care of converting the signal from 44100 to
48000 Hz.

Good luck with that last 1%. 24 bits will help if you
are doing multitrack stuff. In which case you might
consider Audacity (friendly GUI), Ardour (total pro)
or even Nama (http://ecmd.infogami.com) which I have
developed using Ecasound for audio processing.

HTH
 
> *Does anyone have 24 bit sound working with debian lenny?*
> 
> FWIW, I have a Terratec phase 26 usb sound card. It features a switch to
> change it's audio quality settings for 16 bit/48 kHz, 24/48, 24/96.
> 
> My modprobe settings to load it as card 0:
> 
> $ more /etc/modprobe.d/sound
> alias snd-card-0 snd-usb-audio
> options snd-usb-audio index=0
> 
> Any help and pointers to improve my sound experience are well appreciated!
> 
> Thanks,
> 
> Johannes
> 



-- 
Joel Roth


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



Re: Strange arp problem

2009-02-07 Thread Celejar
On Sun, 8 Feb 2009 17:13:11 +1100
Alex Samad  wrote:

> On Sat, Feb 07, 2009 at 08:10:43PM -0500, Celejar wrote:
> > I've posted about this before, but I still have no solution.
> > 
> > I have a machine with an Atheros WiFi card.  From lspci:
> > 
> > 02:0a.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213
> > Multiprotocol MAC/baseband processor (rev 01)
> > 
> > >From dmesg:
> > 
> > ath5k phy0: Atheros AR2414 chip found (MAC: 0x79, PHY: 0x45)
> > 
> > The card is supported by the in-kernel ath5k driver; I have previously
> > used it with Madwifi.
> > 
> > I frequently see that arp fails on the machine.  The card continues to
> > function; I can access the internet via my home router, and I can even
> > (sometimes) ssh into it from the internet (the router forwards port 22
> > to that machine), but any attempt to connect to it from the local
> > wireless network times out, and looking at the other machine's arp
> > table indicates that arp is failing (table shows 'incomplete').
> > Manually adding an arp entry with 'arp -s ip_addr mac_addr' fixes the
> > problem, at least for a while.  What could be causing this?  I believe
> > that I have experienced this problem even when the card was controlled
> > by Madwifi.  Could this be a hardware issue?
> 
> Not sure if I can help but.
> 
> 
> My understanding is, that wireless networks work in 2 modes, one where
> each node can see each other and the other is where they can't see each
> other.  But I believe the ap should have a record of each currently
> connected node, maybe you machine is disassociating itself from the
> wireless network ?
> 
> The AP should be able to see it at all times

Thanks, but I don't think that's it.  The problematic machine remains
connected to the AP; as I mentioned, it can access the internet fine.

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


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



Re: Which programming Language

2009-02-07 Thread Daryl Styrk
How about including recommended reading material along with language
recommendations and opinions?


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



Re: Strange arp problem

2009-02-07 Thread Alex Samad
On Sat, Feb 07, 2009 at 08:10:43PM -0500, Celejar wrote:
> I've posted about this before, but I still have no solution.
> 
> I have a machine with an Atheros WiFi card.  From lspci:
> 
> 02:0a.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213
> Multiprotocol MAC/baseband processor (rev 01)
> 
> >From dmesg:
> 
> ath5k phy0: Atheros AR2414 chip found (MAC: 0x79, PHY: 0x45)
> 
> The card is supported by the in-kernel ath5k driver; I have previously
> used it with Madwifi.
> 
> I frequently see that arp fails on the machine.  The card continues to
> function; I can access the internet via my home router, and I can even
> (sometimes) ssh into it from the internet (the router forwards port 22
> to that machine), but any attempt to connect to it from the local
> wireless network times out, and looking at the other machine's arp
> table indicates that arp is failing (table shows 'incomplete').
> Manually adding an arp entry with 'arp -s ip_addr mac_addr' fixes the
> problem, at least for a while.  What could be causing this?  I believe
> that I have experienced this problem even when the card was controlled
> by Madwifi.  Could this be a hardware issue?

Not sure if I can help but.


My understanding is, that wireless networks work in 2 modes, one where
each node can see each other and the other is where they can't see each
other.  But I believe the ap should have a record of each currently
connected node, maybe you machine is disassociating itself from the
wireless network ?

The AP should be able to see it at all times


> 
> Celejar
> --
> mailmin.sourceforge.net - remote access via secure (OpenPGP) email
> ssuds.sourceforge.net - A Simple Sudoku Solver and Generator
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> 
> 

-- 
"I try to go for longer runs, but it's tough around here at the White House on 
the outdoor track. It's sad that I can't run longer. It's one of the saddest 
things about the presidency. "

- George W. Bush
interview with Runners World, Aug. 2002


signature.asc
Description: Digital signature


Re: Which programming Language

2009-02-07 Thread Michael Pobega
On Sat, Feb 07, 2009 at 08:20:30PM -0500, Douglas A. Tutty wrote:
> On Sat, Feb 07, 2009 at 11:40:29AM -0500, Michael Pobega wrote:
> > On Sat, Feb 07, 2009 at 09:39:20AM -0500, Douglas A. Tutty wrote:
> > > On Fri, Feb 06, 2009 at 06:25:31PM +0100, Abdelkader Belahcene wrote:
>  
> > > I've done a lot in Python.  I have a lot of python programs.  The new
> > > version of python will change the print statement to a print function
> > > (among other language changes) which will mean porting old stuff to new.
> > > Yuck.
> > > 
> > 
> > Doug, from what I understand the new version of Python won't replace
> > Python 2.x, but instead it will be somewhat of a fork -- there are still
> > plans for development of a Python 2.7, as to not break compatibility
> > while still allowing for improvements (though, it is suggested that you
> > port everything to new)
>  
> Yes, I understand that there will be a substantial overlap period,
> however, this means that while I'm maintaining old stuff and writing
> new, I have to remember which dialect I'm using.  Sort of like having
> two different FORTRAN compliers in one shop.
> 
> This is why I'm transitioning to Ada.  If I have to port anyway, I may
> as well port to a compiled language.  Ada was written as a standard long
> before the first compiler was done, then the compilers had to meet the
> standard.  Ada programs are totally portable from one machine to another
> (unless, of course, you import a non-Ada function that is not the same
> on all machines).  Ada is designed to allow for the long-term
> maintenance of programs.  
> 
> Which is another issue.  I still have Fortran77 code in production.
> Fortran77 won't change.  In 15 years, there may not be a 2.x python
> interpreter available (i.e. maintained for security issues).  If I stuck
> with python, in 15 years I'd still have to remember how to code in 2.x
> and 3.x (and 4.x?).  In 15 years, Ada95 will still be Ada95.
> 
> Think how long sh scripts have been around.  You could take the first sh
> script and run it today unmodified.  When your software has a long
> lifespan, there's a lot to be said for it to be written in a language
> with a standard behind it.
> 
> Doug.
> 
> 

As true as this is, are there any good libraries written for Ada?

also, you can just compile your Python code and you won't run into that
problem.

-- 
  http://pobega.wordpress.com
http://identica/pobega


signature.asc
Description: Digital signature


Re: Does anyone understand terminal job control?

2009-02-07 Thread Boyd Stephen Smith Jr.
On Saturday 07 February 2009 22:59:25 Douglas A. Tutty wrote:
> On Sat, Feb 07, 2009 at 10:43:11PM -0600, Boyd Stephen Smith Jr. wrote:
> > On Saturday 07 February 2009 18:58:13 Daniel Burrows wrote:
> > >   I've been banging my head on this one for a while.
> >
> > The source for /bin/dash and /bin/bash are available.  You might should
> > be able to peruse them and find the correct way to
> > suspend/resume/detach/etc. processes.
>
> Would the screen program (or its sources) be of any help?

My first guess would be no.  Screen does not multiplex the terminal the same 
way job control does.  In particular, processes in a screen window that is no 
active that attempt to write to the terminal are *not* suspended (via signal 
or otherwise).  Instead, each screen window is its own "pseudo"-tty, so the 
processes can write to them while one of them is reflected in the tty attached 
to screen.

(I could be wrong though, I'm not a expert in the source of any of these 
programs.)
-- 
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: No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread Michael Wagner
* Michael Wagner  07.02.2009
> * S D  07.02.2009
>  
> > Is there a way to disable Google "safebrowsing" feature in IceWeasel?
> > I want to have as little as possible with Google, even if it only
> > means repeatedly downloading some black-list file from their servers.
>  
> You can use the "CustomizeGoogle" with which you can customize a few
> things more than only the *safebrowsing* feature.

I opined the "CustomizeGoogle" Addon from the mozilla website.

Michael

-- 
A hacker's interpretation of the 1st & 2nd amendments:
  They can have my computer, 
  when they pry the gun from my cold dead fingers.


signature.asc
Description: Digital signature


Re: Does anyone understand terminal job control?

2009-02-07 Thread Douglas A. Tutty
On Sat, Feb 07, 2009 at 10:43:11PM -0600, Boyd Stephen Smith Jr. wrote:
> On Saturday 07 February 2009 18:58:13 Daniel Burrows wrote:
> >   I've been banging my head on this one for a while.
> 
> The source for /bin/dash and /bin/bash are available.  You might should be 
> able to peruse them and find the correct way to suspend/resume/detach/etc. 
> processes.

Would the screen program (or its sources) be of any help?  

Doug


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



Re: Does anyone understand terminal job control?

2009-02-07 Thread Boyd Stephen Smith Jr.
On Saturday 07 February 2009 18:58:13 Daniel Burrows wrote:
>   I've been banging my head on this one for a while.

The source for /bin/dash and /bin/bash are available.  You might should be 
able to peruse them and find the correct way to suspend/resume/detach/etc. 
processes.
-- 
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: mount foo.img problem

2009-02-07 Thread Boyd Stephen Smith Jr.
On Saturday 07 February 2009 16:24:51 Thomas H. George wrote:
> On Sat, Feb 07, 2009 at 03:28:20PM -0600, Boyd Stephen Smith Jr. wrote:
> > On Saturday 07 February 2009 13:37:46 Thomas H. George wrote:
> > > On Sat, Feb 07, 2009 at 10:44:47AM -0600, Boyd Stephen Smith Jr. wrote:
> > > > On Saturday 07 February 2009 10:31:17 Thomas H. George wrote:
> > > > Could you run "file debxo-awesome.ext3.img" can provide the output?
> > > dragon:/data/olpc# file debxo-awesome.ext3.img
> > > debxo-awesome.ext3.img: x86 boot sector; partition 1: ID=0x83, active,
> > > starthead 1, startsector 32, 3848160 sectors dragon:/data/olpc# exit
> > It looks like it is a whole-disk image -- the first part of it appears to
> > be an MBR.  I think you only need to skip 512 bytes... could
> > you try: tail -c +513 debxo-awesome.ext3.img | file -
> > and see if that reports that it found an ext3 filesystem.
> dragon:/data/olpc# tail -c +513 debxo-awesome.ext3.img | file -
> /dev/stdin: GRand Unified Bootloader stage1_5 version 3.2, identifier 0x2,
> GRUB version 0.97, configuration file \377 dragon:/data/olpc# exit

Still probably not the beginning of a ext3 filesystem.

The idea to fdisk the image is not bad.  You might try:
fdisk -l debxo-awesome.ext3.img
To attempt to find the beginning of the ext3 filesystem.

> Script started on Sat 07 Feb 2009 05:20:59 PM EST
> dragon:/data/olpc# mount -o loop.offset=512 -t ext3 debxo-awesome.ext3.img
  ^
The '.' should be a ','.
-- 
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: Which programming Language

2009-02-07 Thread Boyd Stephen Smith Jr.
On Saturday 07 February 2009 19:20:30 Douglas A. Tutty wrote:
> This is why I'm transitioning to Ada.
> Ada was written as a standard long
> before the first compiler was done, then the compilers had to meet the
> standard.  Ada programs are totally portable from one machine to another
> (unless, of course, you import a non-Ada function that is not the same
> on all machines).
>
> I still have Fortran77 code in production.
> Fortran77 won't change.
> In 15 years, Ada95 will still be Ada95.
>
> Think how long sh scripts have been around.  You could take the first sh
> script and run it today unmodified.  When your software has a long
> lifespan, there's a lot to be said for it to be written in a language
> with a standard behind it.

Yay! for standards.  It's one of the reasons I recommend C, which not only has 
a backing standard, but also standardized bindings to OS level interfaces.  I 
wish the standard was freely available and under a free license, but the fact 
that it exists puts it ahead of languages without an established standard.

It's good to have guarantees written is technical, but readable prose instead 
of the "correct" behavior being whatever the implementation did the first time 
someone complained it changed.
-- 
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: Cloning methods

2009-02-07 Thread Kelly Harding
2009/2/8 Stefan Monnier :
>> What's the best method for cloning a partition? [searching for an
>> open-source software alternateive for it :P]

If you use XFS the xfsdump/xfsrestore programs are very good.

Theres also clonezilla which should do the job.

Kelly


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



Re: No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread John Hasler
S D writes:
> You probably have Iceweasel version earlier than "Iceweasel/2.0.0.19
> (Debian-2.0.0.19-0etch1)". I remember I used to be able to do that
> too. Not anymore.

I have 3.0.5.  I can change it.
-- 
John Hasler


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



Re: Cloning methods

2009-02-07 Thread Stefan Monnier
> What's the best method for cloning a partition? [searching for an
> open-source software alternateive for it :P]

- dump&restore
- tar
- cpio
- rsync -a
- cp -a


Stefan


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



Re: No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread S D


-- End of message -


--- On Sat, 2/7/09, Eduardo M KALINOWSKI  wrote:

> That's strange, I've just changed mine
> successfully.

You probably have Iceweasel version earlier than "Iceweasel/2.0.0.19 
(Debian-2.0.0.19-0etch1)". I remember I used to be able to do that too. Not 
anymore.


> You could try editing prefs.js in the iceweasel profile
> directory.

Yes, that should work. I've looked into prefs.js and I actually do have 
"safebrowsing" disabled:

  user_pref("browser.safebrowsing.enabled", false);
  user_pref("browser.safebrowsing.remoteLookups", false);

So the GUI doesn't allow me to *enable* it. That's weird but whatever, I want 
it disabled.

Thanks for your help.




  


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



Re: Which programming Language

2009-02-07 Thread Celejar
On Sat, 7 Feb 2009 15:18:16 +0200
Micha Feigin  wrote:

...

> be written using these (same goes for python BTW). Take for example 
> wicd-client
> and tomboy. Using 15mb real and 215mb shared for wicd-client (python) may be
> borderline but 32mb/303mb for tomboy (c#) is a bit extreme.

Your shared memory seems high:

$ ps axv | grep wicd-client
11343 ?Ss 0:02 16  1002 29081 19536  0.9 python 
/usr/share/wicd/wicd-client.py
15574 pts/3R+ 0:00  092  3023   720  0.0 grep wicd-client

Am I misunderstanding something?

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


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



Re: Which programming Language

2009-02-07 Thread Douglas A. Tutty
On Sat, Feb 07, 2009 at 11:40:29AM -0500, Michael Pobega wrote:
> On Sat, Feb 07, 2009 at 09:39:20AM -0500, Douglas A. Tutty wrote:
> > On Fri, Feb 06, 2009 at 06:25:31PM +0100, Abdelkader Belahcene wrote:
 
> > I've done a lot in Python.  I have a lot of python programs.  The new
> > version of python will change the print statement to a print function
> > (among other language changes) which will mean porting old stuff to new.
> > Yuck.
> > 
> 
> Doug, from what I understand the new version of Python won't replace
> Python 2.x, but instead it will be somewhat of a fork -- there are still
> plans for development of a Python 2.7, as to not break compatibility
> while still allowing for improvements (though, it is suggested that you
> port everything to new)
 
Yes, I understand that there will be a substantial overlap period,
however, this means that while I'm maintaining old stuff and writing
new, I have to remember which dialect I'm using.  Sort of like having
two different FORTRAN compliers in one shop.

This is why I'm transitioning to Ada.  If I have to port anyway, I may
as well port to a compiled language.  Ada was written as a standard long
before the first compiler was done, then the compilers had to meet the
standard.  Ada programs are totally portable from one machine to another
(unless, of course, you import a non-Ada function that is not the same
on all machines).  Ada is designed to allow for the long-term
maintenance of programs.  

Which is another issue.  I still have Fortran77 code in production.
Fortran77 won't change.  In 15 years, there may not be a 2.x python
interpreter available (i.e. maintained for security issues).  If I stuck
with python, in 15 years I'd still have to remember how to code in 2.x
and 3.x (and 4.x?).  In 15 years, Ada95 will still be Ada95.

Think how long sh scripts have been around.  You could take the first sh
script and run it today unmodified.  When your software has a long
lifespan, there's a lot to be said for it to be written in a language
with a standard behind it.

Doug.


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



Strange arp problem

2009-02-07 Thread Celejar
I've posted about this before, but I still have no solution.

I have a machine with an Atheros WiFi card.  From lspci:

02:0a.0 Ethernet controller: Atheros Communications Inc. AR5212/AR5213
Multiprotocol MAC/baseband processor (rev 01)

>From dmesg:

ath5k phy0: Atheros AR2414 chip found (MAC: 0x79, PHY: 0x45)

The card is supported by the in-kernel ath5k driver; I have previously
used it with Madwifi.

I frequently see that arp fails on the machine.  The card continues to
function; I can access the internet via my home router, and I can even
(sometimes) ssh into it from the internet (the router forwards port 22
to that machine), but any attempt to connect to it from the local
wireless network times out, and looking at the other machine's arp
table indicates that arp is failing (table shows 'incomplete').
Manually adding an arp entry with 'arp -s ip_addr mac_addr' fixes the
problem, at least for a while.  What could be causing this?  I believe
that I have experienced this problem even when the card was controlled
by Madwifi.  Could this be a hardware issue?

Celejar
--
mailmin.sourceforge.net - remote access via secure (OpenPGP) email
ssuds.sourceforge.net - A Simple Sudoku Solver and Generator


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



Does anyone understand terminal job control?

2009-02-07 Thread Daniel Burrows
  Hello list,

  I've been banging my head on this one for a while.

  I have a need to write some code that can manage job control on a
terminal.  More specifically, I need to run a single process and stuff
it into the background at will, so that it gets suspended when it tries
to read from the terminal.  So, there's a "controller" process and
a "subprocess" process.

 controller  --> subprocess
   manages

  The man-pages and glibc info documentation make this look simple:
disable TOSTOP if it's enabled via tc[gs]etattr(), then start the
subprocess in a new process group (using setpgid); once it's going,
you can put it in the "foreground" or "background" by calling
tcsetpgrp() to set the terminal's foreground process group.  If you
set it to the subprocess, the subprocess will be the foreground group;
otherwise, the controller will be the foreground group.  Whenever the
subprocess is in the background, it will be sent SIGTTIN if it tries to
read from the terminal.

  I have everything working -- except for the very last sentence of
that last paragraph.  I can see my processes being put into the right
process group, and I can see them going into the foreground and the
background, e.g.:

STAT CMD   PID  PGID TPGID  PPID   SID
Ss+  ./src/aptitude  26989 26989 26989 26980 26989
S./src/aptitude  26991 26991 26989 26989 26989
S/bin/sh -c /usr/sbin/dpkg-p 27027 26991 26989 26991 26989
S/usr/bin/perl -w /usr/sbin/ 27028 26991 26989 27027 26989
Z[dpkg-preconfigu]  27034 26991 26989 27028 26989
S/bin/sh -e /tmp/lynx-cur.co 27039 26991 26989 27028 26989
Swhiptail --backtitle Packag 27043 26991 26989 27028 26989

  and then if I move the background process into the foreground:

STAT CMD   PID  PGID TPGID  PPID   SID
Ss   ./src/aptitude  26989 26989 26991 26980 26989
S+   ./src/aptitude  26991 26991 26991 26989 26989
S+   /bin/sh -c /usr/sbin/dpkg-p 27027 26991 26991 26991 26989
S+   /usr/bin/perl -w /usr/sbin/ 27028 26991 26991 27027 26989
Z+   [dpkg-preconfigu]  27034 26991 26991 27028 26989
S+   /bin/sh -e /tmp/lynx-cur.co 27039 26991 26991 27028 26989
S+   whiptail --backtitle Packag 27043 26991 26991 27028 26989

  Note that the background process is not suspended.  If I manually
suspend the process group with "kill -TTIN -26991", it stops as
expected:

TAT CMD   PID  PGID TPGID  PPID   SID
Ss   ./src/aptitude  26989 26989 26991 26980 26989
T+   ./src/aptitude  26991 26991 26991 26989 26989
T+   /bin/sh -c /usr/sbin/dpkg-p 27027 26991 26991 26991 26989
T+   /usr/bin/perl -w /usr/sbin/ 27028 26991 26991 27027 26989
Z+   [dpkg-preconfigu]  27034 26991 26991 27028 26989
T+   /bin/sh -e /tmp/lynx-cur.co 27039 26991 26991 27028 26989
T+   whiptail --backtitle Packag 27043 26991 26991 27028 26989

  So the signal isn't being blocked or ignored.  I can also run
programs in the shell (e.g., "links &") and watch them
auto-suspend, but the same thing doesn't happen when I start them
directly under my controller process.  It's not even that they're
starting as foreground processes: I can start them without access to
the controlling terminal, and they never see a SIGTTIN.



  Does anyone have a clue what's going on?  Hopefully it's as simple
as a flag I have to set somewhere...

  Oh, and for extra fun, this is all happening inside a VTE terminal
widget.  That shouldn't make a difference (after all, it's what
gnome-terminal uses, and TTIN behaved as expected when I tested it
there), but who knows, it might be relevant.

 Thanks,
  Daniel


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



Re: mount foo.img problem

2009-02-07 Thread Aneurin Price
On Sat, Feb 7, 2009 at 10:24 PM, Thomas H. George  wrote:
> On Sat, Feb 07, 2009 at 03:28:20PM -0600, Boyd Stephen Smith Jr. wrote:
>> On Saturday 07 February 2009 13:37:46 Thomas H. George wrote:
>> > On Sat, Feb 07, 2009 at 10:44:47AM -0600, Boyd Stephen Smith Jr. wrote:
>> > > On Saturday 07 February 2009 10:31:17 Thomas H. George wrote:
>> > > > What must I do to be able to mount this image file?
>> > > Could you run "file debxo-awesome.ext3.img" can provide the output?
>> > dragon:/data/olpc# file debxo-awesome.ext3.img
>> > debxo-awesome.ext3.img: x86 boot sector; partition 1: ID=0x83, active,
>> > starthead 1, startsector 32, 3848160 sectors dragon:/data/olpc# exit
>>
>> It looks like it is a whole-disk image -- the first part of it appears to be
>> an MBR.  You'll need to use some loopback parameters to skip the MBR and
>> partition table.  I think you only need to skip 512 bytes... could you try:
>> tail -c +513 debxo-awesome.ext3.img | file -
>> and see if that reports that it found an ext3 filesystem.
>
>
> Script started on Sat 07 Feb 2009 05:14:12 PM EST
> dragon:/data/olpc# tail -c +513 debxo-awesome.ext3.img | file -
> /dev/stdin: GRand Unified Bootloader stage1_5 version 3.2, identifier 0x2, 
> GRUB version 0.97, configuration file \377
> dragon:/data/olpc# exit
>
> Script done on Sat 07 Feb 2009 05:15:09 PM EST
>
> So I tried
>
>
> Script started on Sat 07 Feb 2009 05:20:59 PM EST
> dragon:/data/olpc# mount -o loop.offset=512 -t ext3 debxo-awesome.ext3.img 
> /medi a/sdloop
> mount: /data/olpc/debxo-awesome.ext3.img is not a block device (maybe try `-o 
> loop'?)
> dragon:/data/olpc# exit
>
> which seemed to be what the Debian Reference suggested but I guess this
> is not quite right.
>
> Script done on Sat 07 Feb 2009 05:21:57 PM EST
>>
>> > The image was meant to be transfered to a USB device but the
>> > instructions said that if the device was less than 2 Gb it could be loop
>> > mounted as ext3 in order to copy the guts of the image to a smaller USB
>> > device.
>>
>> It can be, but in this case it's not as simple as just using the loop mount
>> option, unfortunately.  You'll probably need just the additional offset
>> option.  Once we find the offset, things should be "easy"; although, after 
>> you
>> move the files over, you'll also want to dd the MBR over as well.

You could try a slightly more heavy-handed approach:

for ((i=0 ; $i < 1 ; i=$i + 1)) ; do
mount -o loop,offset=$(($i * 512)) debxo-awesome.ext3.img
/media/sdloop && break
done

You might even be able to use fdisk on the image to get some more information,
but I don't know about that.

Nye


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



Re: mount foo.img problem

2009-02-07 Thread Thomas H. George
Out of town for a week, I'll try again next week.

Tom


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



Re: totem player

2009-02-07 Thread John Hasler
> At 6hrs I had to restart my browser and access the web site to restart
> Totem. Is the some kind of time limit setting that I can disable or is
> this controlled from the originating site?

Some "Internet radio stations" do seem to have timeouts, but I don't know
why you would have had to restart your browser.
-- 
John Hasler


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



totem player

2009-02-07 Thread John Lindsay
I have spent the day updating my one computer (running  m$crap) whilst 
listening to my favourite station on my Debian computer (which has been 
up and running since Dec1 without a reboot which is more than I can say 
about the other OS!!!)). At 6hrs I had to restart my browser and access 
the web site to restart Totem. Is the some kind of time limit setting 
that I can disable or is this controlled from the originating site?



Thanks

John


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




Re: mount foo.img problem

2009-02-07 Thread Thomas H. George
On Sat, Feb 07, 2009 at 03:28:20PM -0600, Boyd Stephen Smith Jr. wrote:
> On Saturday 07 February 2009 13:37:46 Thomas H. George wrote:
> > On Sat, Feb 07, 2009 at 10:44:47AM -0600, Boyd Stephen Smith Jr. wrote:
> > > On Saturday 07 February 2009 10:31:17 Thomas H. George wrote:
> > > > What must I do to be able to mount this image file?
> > > Could you run "file debxo-awesome.ext3.img" can provide the output?
> > dragon:/data/olpc# file debxo-awesome.ext3.img
> > debxo-awesome.ext3.img: x86 boot sector; partition 1: ID=0x83, active,
> > starthead 1, startsector 32, 3848160 sectors dragon:/data/olpc# exit
> 
> It looks like it is a whole-disk image -- the first part of it appears to be 
> an MBR.  You'll need to use some loopback parameters to skip the MBR and 
> partition table.  I think you only need to skip 512 bytes... could you try:
> tail -c +513 debxo-awesome.ext3.img | file -
> and see if that reports that it found an ext3 filesystem.


Script started on Sat 07 Feb 2009 05:14:12 PM EST
dragon:/data/olpc# tail -c +513 debxo-awesome.ext3.img | file -
/dev/stdin: GRand Unified Bootloader stage1_5 version 3.2, identifier 0x2, GRUB 
version 0.97, configuration file \377
dragon:/data/olpc# exit

Script done on Sat 07 Feb 2009 05:15:09 PM EST

So I tried 


Script started on Sat 07 Feb 2009 05:20:59 PM EST
dragon:/data/olpc# mount -o loop.offset=512 -t ext3 debxo-awesome.ext3.img 
/medi a/sdloop
mount: /data/olpc/debxo-awesome.ext3.img is not a block device (maybe try `-o 
loop'?)
dragon:/data/olpc# exit

which seemed to be what the Debian Reference suggested but I guess this
is not quite right.

Script done on Sat 07 Feb 2009 05:21:57 PM EST
> 
> > The image was meant to be transfered to a USB device but the
> > instructions said that if the device was less than 2 Gb it could be loop
> > mounted as ext3 in order to copy the guts of the image to a smaller USB
> > device.
> 
> It can be, but in this case it's not as simple as just using the loop mount 
> option, unfortunately.  You'll probably need just the additional offset 
> option.  Once we find the offset, things should be "easy"; although, after 
> you 
> move the files over, you'll also want to dd the MBR over as well.
> -- 
> Boyd Stephen Smith Jr.   ,= ,-_-. =.
> b...@iguanasuicide.net   ((_/)o o(\_))
> ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
> http://iguanasuicide.net/\_/
> 



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



Re: No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread Michael Wagner
* S D  07.02.2009
 
> Is there a way to disable Google "safebrowsing" feature in IceWeasel?
> I want to have as little as possible with Google, even if it only
> means repeatedly downloading some black-list file from their servers.
 
You can use the "CustomizeGoogle" with which you can customize a few
things more than only the *safebrowsing* feature.

Hth Michael

-- 
Programmers don't die, they just GOSUB without RETURN.


signature.asc
Description: Digital signature


Re: mount foo.img problem

2009-02-07 Thread Boyd Stephen Smith Jr.
On Saturday 07 February 2009 13:37:46 Thomas H. George wrote:
> On Sat, Feb 07, 2009 at 10:44:47AM -0600, Boyd Stephen Smith Jr. wrote:
> > On Saturday 07 February 2009 10:31:17 Thomas H. George wrote:
> > > What must I do to be able to mount this image file?
> > Could you run "file debxo-awesome.ext3.img" can provide the output?
> dragon:/data/olpc# file debxo-awesome.ext3.img
> debxo-awesome.ext3.img: x86 boot sector; partition 1: ID=0x83, active,
> starthead 1, startsector 32, 3848160 sectors dragon:/data/olpc# exit

It looks like it is a whole-disk image -- the first part of it appears to be 
an MBR.  You'll need to use some loopback parameters to skip the MBR and 
partition table.  I think you only need to skip 512 bytes... could you try:
tail -c +513 debxo-awesome.ext3.img | file -
and see if that reports that it found an ext3 filesystem.

> The image was meant to be transfered to a USB device but the
> instructions said that if the device was less than 2 Gb it could be loop
> mounted as ext3 in order to copy the guts of the image to a smaller USB
> device.

It can be, but in this case it's not as simple as just using the loop mount 
option, unfortunately.  You'll probably need just the additional offset 
option.  Once we find the offset, things should be "easy"; although, after you 
move the files over, you'll also want to dd the MBR over as well.
-- 
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: mount foo.img problem

2009-02-07 Thread Adrian Levi
2009/2/8 Thomas H. George :

> Script started on Sat 07 Feb 2009 02:26:44 PM EST
> dragon:/data/olpc# file debxo-awesome.ext3.img
> debxo-awesome.ext3.img: x86 boot sector; partition 1: ID=0x83, active, 
> starthead 1, startsector 32, 3848160 sectors
> dragon:/data/olpc# exit
>
> Script done on Sat 07 Feb 2009 02:27:12 PM EST
>
> The image was meant to be transfered to a USB device but the
> instructions said that if the device was less than 2 Gb it could be loop
> mounted as ext3 in order to copy the guts of the image to a smaller USB
> device.

Try mounting it as ext2, there might be something funny happening with
the journal.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
 hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


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



Re: Cloning methods

2009-02-07 Thread Adrian Levi
2009/2/8 Nagy Daniel :
> Hi, again :) :S
>
> What's the best method for cloning a partition? [searching for an
> open-source software alternateive for it :P]
> I mean cloning like in norton ghost, a program that could "leave" bad
> blocks behind, when cloning, and not making a 10 GByte output file
> [like the partition size is], but just a eg.: a 3 GByte file [because
> 3 GByte was used in that partition, all other 7 GByte was free]?
> [The main goal is to install os on eg.: 15 computers, but only with
> one physically install in the "reality"]
>
> Thank you!

Dump / restore

Was a lot less painful than I thought it would be.

Adrian

-- 
24x7x365 != 24x7x52 Stupid or bad maths?
 hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


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



Re: No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread Eduardo M KALINOWSKI
S D wrote:
> --- On Sat, 2/7/09, Jeff D  wrote:
>   
>> type in about:config in the address bar ,in filter put in
>> browser.safebrowsing.enabled , then click on the line that
>> shows up,
>> should turn it to false
>> 
> That won't work. The "browser.safebrowsing.enabled" property is LOCKED and 
> can't be changed from about:config.
>   

That's strange, I've just changed mine successfully.

You could try editing prefs.js in the iceweasel profile directory. Be
sure to do it while the browser is not running, or the setting will be
overwritten when the program closes.


-- 
The more I want to get something done, the less I call it work.
-- Richard Bach, "Illusions"

Eduardo M KALINOWSKI
edua...@kalinowski.com.br
http://move.to/hpkb


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



Re: No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread S D

--- On Sat, 2/7/09, Jeff D  wrote:

> 
> type in about:config in the address bar ,in filter put in
> browser.safebrowsing.enabled , then click on the line that
> shows up,
> should turn it to false


That won't work. The "browser.safebrowsing.enabled" property is LOCKED and 
can't be changed from about:config.





  


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



Re: mount foo.img problem

2009-02-07 Thread Thomas H. George
On Sat, Feb 07, 2009 at 10:44:47AM -0600, Boyd Stephen Smith Jr. wrote:
> On Saturday 07 February 2009 10:31:17 Thomas H. George wrote:
> > I have carefullly followed the instructions in man mount and in the
> > Debian Reference manual, for example
> >
> > mount -o loop -t ext3 debxo-awesome.ext3.img /media/sdloop
> >
> > or
> >
> > mount dexo-awesome.ext3.img /media/sdloop -t ext3 -o loop
> 
> Either of those commands are correct.
> 
> > In both cases the mount command exits with a message:
> >
> > Can't find ext3 filesystem on dev loop0.
> 
> Could mean a few things, but it generally means your image file is either 
> corrupt or was never ext3 formatted.
> 
> > What must I do to be able to mount this image file?
> 
> Could you run "file debxo-awesome.ext3.img" can provide the output?
> -- 
OK, here it is: 


Script started on Sat 07 Feb 2009 02:26:44 PM EST
dragon:/data/olpc# file debxo-awesome.ext3.img
debxo-awesome.ext3.img: x86 boot sector; partition 1: ID=0x83, active, 
starthead 1, startsector 32, 3848160 sectors
dragon:/data/olpc# exit

Script done on Sat 07 Feb 2009 02:27:12 PM EST

The image was meant to be transfered to a USB device but the
instructions said that if the device was less than 2 Gb it could be loop
mounted as ext3 in order to copy the guts of the image to a smaller USB
device.


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



Re: iceweasel segfault

2009-02-07 Thread Hugo Vanwoerkom

Hugo Vanwoerkom wrote:

Hi,

Using a link in the New York Times to the transcript of Flight 1549, 
Iceweasel segfaults scrolling through the document.


http://www.scribd.com/doc/11719666/Tracon-Transcript

Anyone verify this?



After upgrade of flashplayer no longer segfaults:

h...@debian:~$ apt-cache policy flashplayer-mozilla
flashplayer-mozilla:
  Installed: 1:10.0.15.3-0.1
  Candidate: 1:10.0.15.3-0.1
  Version table:
 *** 1:10.0.15.3-0.1 0
500 http://www.debian-multimedia.org sid/main Packages
100 /var/lib/dpkg/status

But I can't scroll the doc.

h...@debian:~$ apt-cache policy iceweasel
iceweasel:
  Installed: 3.0.6-1
  Candidate: 3.0.6-1
  Version table:
 *** 3.0.6-1 0
500 http://ftp.de.debian.org unstable/main Packages
100 /var/lib/dpkg/status

Hugo


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




Re: Cloning methods

2009-02-07 Thread Alex Samad
On Sat, Feb 07, 2009 at 06:05:44PM -0200, Eduardo M KALINOWSKI wrote:
> Nagy Daniel wrote:
> > Hi, again :) :S
> >
> > What's the best method for cloning a partition? [searching for an
> > open-source software alternateive for it :P]
> > I mean cloning like in norton ghost, a program that could "leave" bad
> > blocks behind, when cloning, and not making a 10 GByte output file
> > [like the partition size is], but just a eg.: a 3 GByte file [because
> > 3 GByte was used in that partition, all other 7 GByte was free]?
> > [The main goal is to install os on eg.: 15 computers, but only with
> > one physically install in the "reality"]

systemimager
mondoresue



> >   
> 
> You may want to take a look at the partimage program.
> 
> 
> -- 
> "Jesus may love you, but I think you're garbage wrapped in skin."
>   -- Michael O'Donohugh
> 
> Eduardo M KALINOWSKI
> edua...@kalinowski.com.br
> http://move.to/hpkb
> 
> 
> -- 
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
> with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
> 
> 

-- 
The smiling Spring comes in rejoicing,
And surly Winter grimly flies.
Now crystal clear are the falling waters,
And bonnie blue are the sunny skies.
Fresh o'er the mountains breaks forth the morning,
The ev'ning gilds the oceans's swell:
All creatures joy in the sun's returning,
And I rejoice in my bonnie Bell.

The flowery Spring leads sunny Summer,
The yellow Autumn presses near;
Then in his turn come gloomy Winter,
Till smiling Spring again appear.
Thus seasons dancing, life advancing,
Old Time and Nature their changes tell;
But never ranging, still unchanging,
I adore my bonnie Bell.
-- Robert Burns, "My Bonnie Bell"


signature.asc
Description: Digital signature


Re: No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread Jeff D
On Sat, 7 Feb 2009, S D wrote:

>
> Is there a way to disable Google "safebrowsing" feature in IceWeasel? I want 
> to have as little as possible with Google, even if it only means repeatedly 
> downloading some black-list file from their servers.
>
> Thanks
>

type in about:config in the address bar ,in filter put in
browser.safebrowsing.enabled , then click on the line that shows up,
should turn it to false

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


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



Re: Cloning methods

2009-02-07 Thread Eduardo M KALINOWSKI
Nagy Daniel wrote:
> Hi, again :) :S
>
> What's the best method for cloning a partition? [searching for an
> open-source software alternateive for it :P]
> I mean cloning like in norton ghost, a program that could "leave" bad
> blocks behind, when cloning, and not making a 10 GByte output file
> [like the partition size is], but just a eg.: a 3 GByte file [because
> 3 GByte was used in that partition, all other 7 GByte was free]?
> [The main goal is to install os on eg.: 15 computers, but only with
> one physically install in the "reality"]
>   

You may want to take a look at the partimage program.


-- 
"Jesus may love you, but I think you're garbage wrapped in skin."
-- Michael O'Donohugh

Eduardo M KALINOWSKI
edua...@kalinowski.com.br
http://move.to/hpkb


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



Re: Which programming Language

2009-02-07 Thread Michael Madden

Abdelkader Belahcene wrote:

HI,
There are many and many programming languages (mainly : C,C++,java,
Shell, Perl, python, php). which learn and use, in which circonstances
use that language instead of the other.

In many situations we can use anyone, but which is better.

thanks a lot
bela
__




You may want to read the following article.  It compares C, C++, Java, 
Python, and Perl.


http://www.linuxjournal.com/article/4402


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




Cloning methods

2009-02-07 Thread Nagy Daniel
Hi, again :) :S

What's the best method for cloning a partition? [searching for an
open-source software alternateive for it :P]
I mean cloning like in norton ghost, a program that could "leave" bad
blocks behind, when cloning, and not making a 10 GByte output file
[like the partition size is], but just a eg.: a 3 GByte file [because
3 GByte was used in that partition, all other 7 GByte was free]?
[The main goal is to install os on eg.: 15 computers, but only with
one physically install in the "reality"]

Thank you!

regards
david


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



Re: using modem with phone

2009-02-07 Thread David Baron
On Saturday 07 February 2009 01:04:19 debian-user-digest-
requ...@lists.debian.org wrote:
> On Fri, Feb 06, 2009 at 09:17:45PM +, Bhasker C V wrote:
> > Hi all,
> >
> >  I tried to google around but could not even get a match near to what i  
> > want. In fact i am running short of terminologies to exactly define what
> > i want.
> >
> >  What i want is, i want to use the internal modem of a system to work
> > as a PSTN gateway so that i can control my telephone when connected to  
> > my modem. This way, i can make my telephone ring through my software. I  
> > can re-route my audio in/out to the phone. Is this possible ? does the  
> > modem protocol support this ?
>
> A standard modem will not do what you want.  Look up Asterisk
> (http://www.asterisk.org).  I think you will find this software
> is what you are looking for, and there are some hardware suggestions
> on the site too.
>
> Pat

I do not claim to be an expert. I have written and daily use a kde4 plasma-
applet to control a speaker-phone modem (get it a kde-apps.org). Needed this 
because I do not have a phone-set by the machine. This way, I "do" :-)

To make phone ring through software, xringd (available in repositories) will 
let you do that. I used parts of that code to monitor rings in my applet.

To route the audio, besides running cables to the sound card, I do not see how 
to do this (unless the modem specifically supports such a thing). I wonder if 
alsa drivers are around special for voice modems.

Asterisk is a very large pbx oriented suite but it probably the best developed 
of any of the telephony programs. Might take a look.


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



Re: postgresql postrm script needs work

2009-02-07 Thread Eugene V. Lyubimkin
Jude DaShiell wrote:
> Having failed to install postgresql on sid for reasons already discussed
> on this list, I ran updatedb then did locate postgresql | less to see
[snip]
I doubt postgresql maintainers read this. File a bug.

-- 
Eugene V. Lyubimkin aka JackYF, JID: jackyf.devel(maildog)gmail.com
C++/Perl developer, Debian Maintainer



signature.asc
Description: OpenPGP digital signature


postgresql postrm script needs work

2009-02-07 Thread Jude DaShiell
Having failed to install postgresql on sid for reasons already discussed 
on this list, I ran updatedb then did locate postgresql | less to see what 
I could find.  Not to my surprise, I found all kinds of postgresql cruft 
littering my system after having done aptitude remove --purge postgresql 
in all of its suffix variations.  When that script fails to do an install, 
it also fails to clean up after itself too.  The exim4 package and 
firebird packages are also the same in this respect.  What I'm wondering 
about is what happens if a dirty system results as a result of a failed 
installation and later a good installation happens is it expected under 
debian standards that the system will be innocent of any old cruft from 
that failed installation?




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




No way to disable Google "safebrowsing" in IceWeasel?

2009-02-07 Thread S D

Is there a way to disable Google "safebrowsing" feature in IceWeasel? I want to 
have as little as possible with Google, even if it only means repeatedly 
downloading some black-list file from their servers.

Thanks


$ uname -a
Linux test 2.6.18-6-686 #1 SMP Fri Dec 12 16:48:28 UTC 2008 i686 GNU/Linux

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.19) Gecko/20081202 
Iceweasel/2.0.0.19 (Debian-2.0.0.19-0etch1)


  


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



Re: audacious-crossfade

2009-02-07 Thread T o n g
On Thu, 05 Feb 2009 22:09:29 +0100, Florian Ernst wrote:

>> But it no longer exist from the official site. Does it ever exist? 
> 
> According to the last package maintainer audacious-crossfade is
> "impossible to use reliably with audacious 1.5" . . .

Thanks a lot Florian for your comprehensive explanation. 

Just for the record, I really miss the crossfading feature, While looking 
for solutions, I found another tools, aqualung, which "has the feature of 
inserting no gaps between adjacent tracks". But it is no where close to 
crossfading. However, I think I'll keep it to replace audacious, because 
I just like its simplicity, and its even supporting some "weird" sound 
formats (that I have) like MOD & Speex. 

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


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



Re: mount foo.img problem

2009-02-07 Thread Boyd Stephen Smith Jr.
On Saturday 07 February 2009 10:31:17 Thomas H. George wrote:
> I have carefullly followed the instructions in man mount and in the
> Debian Reference manual, for example
>
> mount -o loop -t ext3 debxo-awesome.ext3.img /media/sdloop
>
> or
>
> mount dexo-awesome.ext3.img /media/sdloop -t ext3 -o loop

Either of those commands are correct.

> In both cases the mount command exits with a message:
>
> Can't find ext3 filesystem on dev loop0.

Could mean a few things, but it generally means your image file is either 
corrupt or was never ext3 formatted.

> What must I do to be able to mount this image file?

Could you run "file debxo-awesome.ext3.img" can provide the output?
-- 
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: mount foo.img problem

2009-02-07 Thread Ding Honghui
Thomas H. George wrote:
> I have carefullly followed the instructions in man mount and in the
> Debian Reference manual, for example
> 
> mount -o loop -t ext3 debxo-awesome.ext3.img /media/sdloop
> 
> or
> 
> mount dexo-awesome.ext3.img /media/sdloop -t ext3 -o loop
> 
> In both cases the mount command exits with a message:
> 
> Can't find ext3 filesystem on dev loop0.
> 
> 
> What must I do to be able to mount this image file?
> 
> Tom
> 
> 
There are no ext3 filesystem in file dexo-awesome.ext3.img. Maybe no
filesystem or filesystem such as ntfs,vfat(fat32) in dexo-awesome.ext3.img.
If you would like to create ext3 filesystem on this file, please run

mkfs.ext3 dexo-awesome.ext3.img


Regards,
Ding Honghui


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



Re: Which programming Language

2009-02-07 Thread Michael Pobega
On Sat, Feb 07, 2009 at 09:39:20AM -0500, Douglas A. Tutty wrote:
> On Fri, Feb 06, 2009 at 06:25:31PM +0100, Abdelkader Belahcene wrote:
> > HI,
> > There are many and many programming languages (mainly : C,C++,java,
> > Shell, Perl, python, php). which learn and use, in which circonstances
> > use that language instead of the other.
> > 
> > In many situations we can use anyone, but which is better.
> 
> If you are running on *NIX, the ability to at least read a sh script is
> very helpful.  I haven't spent enough time figuring out the syntax of
> test (multiple [ with or without spaces); seems too arcane unless you do
> it every day.  I use sh the way DOS uses .bat files.  If its more
> complicated, I go to something else.
> 
> I've done a lot in Python.  I have a lot of python programs.  The new
> version of python will change the print statement to a print function
> (among other language changes) which will mean porting old stuff to new.
> Yuck.
> 

Doug, from what I understand the new version of Python won't replace
Python 2.x, but instead it will be somewhat of a fork -- there are still
plans for development of a Python 2.7, as to not break compatibility
while still allowing for improvements (though, it is suggested that you
port everything to new)

-- 
  http://pobega.wordpress.com
http://identica/pobega


signature.asc
Description: Digital signature


mount foo.img problem

2009-02-07 Thread Thomas H. George
I have carefullly followed the instructions in man mount and in the
Debian Reference manual, for example

mount -o loop -t ext3 debxo-awesome.ext3.img /media/sdloop

or

mount dexo-awesome.ext3.img /media/sdloop -t ext3 -o loop

In both cases the mount command exits with a message:

Can't find ext3 filesystem on dev loop0.


What must I do to be able to mount this image file?

Tom


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



Re: [POSSIBLE SPAM] Which programming Language

2009-02-07 Thread Boyd Stephen Smith Jr.
On Saturday 07 February 2009 02:50:09 Magnus Therning wrote:
> Mitchell Laks wrote:
> > Common Lisp!
> The only language with an oxymoron for a name ;-)  Any serious person
> would of course start with Haskell!

Woohoo!

Going through the "Wizard Book" and doing all the exercises in Haskell instead 
of MIT Scheme would give you an amazing foundation, but make you hate C/C++ 
forever.
-- 
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: mounting dvdrw in latest etch

2009-02-07 Thread Ron Johnson

On 02/07/2009 07:36 AM, lhuizi...@iinet.net.au wrote:

Hi,
I am trying to mount my sohw1693s liteon dvd rw drive in etch amd_64.

I think I have edited /etc/fstab nearly out of existence and can't 
remember the original settings that didn't work.


I recently did a netinstall of debian amd64.  I have a gigabyte intel 
chipset 945 board with two sata hdd one with win xp and the other with 
linux on them.  I simply use bios to select which drive to boot with.  
All is fine, installed with kde3.5 and i can even see my usb drive when 
plugged in. 

However, I cannot find my dvd rw drive and have no idea of how to set 
it up for automatic mounting etc (maybe in HAL?).  It is an ide drive 
and i have set the jumper to slave for now as master wasn't working.  
My fstab is set to the following:


# /etc/fstab: static file system information.
#
#
proc/proc   procdefaults0   0
/dev/sda1   /   ext3defaults,errors=remount-ro 0   
1

/dev/sda5   noneswapsw  0   0
#/dev/sdc/media/cdrom0   iso9660  user,noauto,ro 0   0

I have commented out the last line out of frustration and thought 
perhaps i shouldn't have a line in fstab as HAL might take care of 
this.


As a first step, I'd do:
# grep LITE /var/log/dmesg

--
Ron Johnson, Jr.
Jefferson LA  USA

Supporting World Peace Through Nuclear Pacification


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




24 bit usb sound on lenny

2009-02-07 Thread Johannes Wiedersich
Hallo all!

On switching my usb sound card to 24bit audio, all applications using
the card will crash/segfault:

$ aplay led_zeppelin-houses_of_the_holy-a.wav
Playing WAVE 'led_zeppelin-houses_of_the_holy-a.wav' : Signed 16 bit
Little Endian, Rate 44100 Hz, Stereo
Segmentation fault

kaffeine, amarok, xine etc. all just crash.

Trying to record some anaolg input with 24bit also fails:


$ arecord -f S24_LE -c 2 -r48000 24-48k-testa.wav
Recording WAVE '24-48k-testa.wav' : Signed 24 bit Little Endian, Rate
48000 Hz, Stereo
^CAborted by signal Interrupt...

appears to behave as expected, but the generated file is finishes at 44
bit.

Everything works nice on 16 bit/48 kHz:

14:30:43-johan...@e13-v21:/home/audio/wav$ aplay
led_zeppelin-houses_of_the_holy-a.wav
Playing WAVE 'led_zeppelin-houses_of_the_holy-a.wav' : Signed 16 bit
Little Endian, Rate 44100 Hz, Stereo

*Does anyone have 24 bit sound working with debian lenny?*

FWIW, I have a Terratec phase 26 usb sound card. It features a switch to
change it's audio quality settings for 16 bit/48 kHz, 24/48, 24/96.

My modprobe settings to load it as card 0:

$ more /etc/modprobe.d/sound
alias snd-card-0 snd-usb-audio
options snd-usb-audio index=0

Any help and pointers to improve my sound experience are well appreciated!

Thanks,

Johannes



signature.asc
Description: OpenPGP digital signature


Re: Cannot compile gspca

2009-02-07 Thread Sridhar M.A.
On Sat, Feb 07, 2009 at 04:18:13AM -0500, Brad Sawatzky wrote:
   > 
   > The gspca driver is merged into the mainline kernel for 2.6.27 and up.  Use
   > 'make xconfig' to enable it, delete /usr/src/modules/gspca/ if it exists,
   > then rebuild and install the kernel package.
   > 
The gspca drivers included in the kernel do not function. I tried them
first and only after it failed did I try the gspca-source. 

   > #   See http://moinejf.free.fr/gspca_README.txt

In fact I have even tried compiling the stuff from

  http://linuxtv.org/hg/~jfrancois/gspca

as mentioned in the above README. It did not work. I suspect some
forgotten steps from my side. I will try again and post back.

Thanks for your reply.

Regards,

-- 
Sridhar M.A. GPG KeyID : F6A35935
  Fingerprint: D172 22C4 7CDC D9CD 62B5  55C1 2A69 D5D8 F6A3 5935

"...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and
the Ugly)."
(By Matt Welsh)


signature.asc
Description: Digital signature


Re: Which programming Language

2009-02-07 Thread Douglas A. Tutty
On Fri, Feb 06, 2009 at 06:25:31PM +0100, Abdelkader Belahcene wrote:
> HI,
> There are many and many programming languages (mainly : C,C++,java,
> Shell, Perl, python, php). which learn and use, in which circonstances
> use that language instead of the other.
> 
> In many situations we can use anyone, but which is better.

If you are running on *NIX, the ability to at least read a sh script is
very helpful.  I haven't spent enough time figuring out the syntax of
test (multiple [ with or without spaces); seems too arcane unless you do
it every day.  I use sh the way DOS uses .bat files.  If its more
complicated, I go to something else.

I've done a lot in Python.  I have a lot of python programs.  The new
version of python will change the print statement to a print function
(among other language changes) which will mean porting old stuff to new.
Yuck.

If you want to do system programming on *NIX, you'll need C.  Even if
you use another language, you'll end up using C library functions
(importing or whatever) so you'd at least want to understand the syntax
examples in the man pages (manpages-dev).

If you want to learn for a job, ask some employers.  

If you want to lean for your self, I'd suggest Ada.

Ada can do simple stuff.  Ada can do anything that any other language
can do.  Ada can do OO if you want.  There are excellent books available
free on-line (www.adahome.com, www.adaic.org, www.adapower.com).

Contrary to popular belief, it was not designed by committee.  It was
chosen by committee after a competition.  The US military wanted to
reduce the thousands of different languages and dialects used in its
software (for everything from mainframe to imbedded) and wanted a single
lanugage that could do everything.  The winning team started with Pascal
(which itself was designed to teach good programming) and tightened it
up, extended it, etc.  They looked at all the different domains (usages)
for the desired language and ensured that it would be efficient (for
both the programmer and the machine) in all of them.  

Compiling is a one-step process.  If your source code is in foo.adb

$ adamake foo.adb

gives you your executable, assuming that you didn't make any errors that
would be caught at compile time.  One of the design goals of Ada was
that errors would get propogated to compile time to reduce the number of
run-time errors, but also that logic errors would get propogated to
run-time errors rather than have the program produce garbage.

There are bindings (add-ons) for GUI, database (sql) interfacing,
whatever.  

The compiler is part of gcc, known as gnat.

I have a document (I likely got it from one of the web sites noted
above, but I forget) caled "Understanding Programming Languages" by M.
Ben-Ari  2006 originally published by John Wiley & Sons.  If you
can't find it on-line, I could email it and the other docs I have (I
could tarball it all up); just contact me off-list.

Have fun.

Doug.


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



mounting dvdrw in latest etch

2009-02-07 Thread lhuizi...@iinet.net.au
Hi,
I am trying to mount my sohw1693s liteon dvd rw drive in etch amd_64.

I think I have edited /etc/fstab nearly out of existence and can't 
remember the original settings that didn't work.

I recently did a netinstall of debian amd64.  I have a gigabyte intel 
chipset 945 board with two sata hdd one with win xp and the other with 
linux on them.  I simply use bios to select which drive to boot with.  
All is fine, installed with kde3.5 and i can even see my usb drive when 
plugged in. 

However, I cannot find my dvd rw drive and have no idea of how to set 
it up for automatic mounting etc (maybe in HAL?).  It is an ide drive 
and i have set the jumper to slave for now as master wasn't working.  
My fstab is set to the following:

# /etc/fstab: static file system information.
#
#
proc/proc   procdefaults0   0
/dev/sda1   /   ext3defaults,errors=remount-ro 0   
1
/dev/sda5   noneswapsw  0   0
#/dev/sdc/media/cdrom0   iso9660  user,noauto,ro 0   0

I have commented out the last line out of frustration and thought 
perhaps i shouldn't have a line in fstab as HAL might take care of 
this.

Any help is accepted with wide open arms.
Cheers,
Larry




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



Re: umask problem

2009-02-07 Thread Ding Honghui
Boyd Stephen Smith Jr. wrote:
> On Wednesday 04 February 2009 20:55:50 Ding Honghui wrote:
>> Bash will not read the profile when in notty mode.
>> The /etc/profile and .bash_profile both set the umask to 022, so after
>> login, the hostA and hostB any user have same umask.
>> The problem occurs in notty mode.
> 
> Perhaps .bashrc then?  That should be run for all interactive shells 
> (including some shells that look interactive, but aren't).
Not the .bashrc, any other possible clue?


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



Re: Which programming Language

2009-02-07 Thread Micha Feigin
On Fri, 6 Feb 2009 20:45:03 -0600
"Boyd Stephen Smith Jr."  wrote:

> On Friday 06 February 2009 16:46:13 Nuno Magalhães wrote:
> > The fact that it was developed by MS kinda creeps be but it has been
> > standardized... 
> 
> I understand the distrust of MS, but C# is actually a pretty nice language,
> at least on par with Java.
> 

i wouldn't call java nice. It is strict object oriented but sometimes way too
strict making some things a real pain to achieve, at times having to pipe about
five streams to get what you want.

Another issue with java (not sure about how c# works) is that it gets you used
not to worry about memory usage and clearing memory, you just let the runtime
do the garbage collection, and it can bite you in the ass moving to more
hardware related languages.

Another issue is that both of them are memory hogs. May not be and issue for
single run big applications, but things that need to run constantly shouldn't
be written using these (same goes for python BTW). Take for example wicd-client
and tomboy. Using 15mb real and 215mb shared for wicd-client (python) may be
borderline but 32mb/303mb for tomboy (c#) is a bit extreme.

> > Is it "backward-compatible" with C++?
> 
> No.
> 
> > Would you use it
> > for cross-platform programming?
> 
> C# only compiles to one platform: CLR (Common Language Runtime).  There are 
> implementations of the CLR on a number of platforms, though.

Depends on what cross paltform programing you want to do. For applications such
as jabref (java) it works, for things that need to be efficient I would use
c/c++ with cross platform libraries (wxWidjets is one I like for gui, boost
does a lot of other things, most of the math ones are cross platform)


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



Re: Term not set

2009-02-07 Thread Frank McCormick
Angus Auld wrote:
> 
> --- On Fri, 2/6/09, Frank McCormick  wrote:
> 
>> From: Frank McCormick 
>> Subject: Re: Term not set
>> To: l.glidewell.li...@gmail.com
>> Cc: debian-user@lists.debian.org
>> Date: Friday, February 6, 2009, 2:11 PM
>> L Glidewell wrote:
>>> On Thursday 05 February 2009 20:06:54 Frank McCormick
>> wrote:
 Frank McCormick wrote:
> Lately when the terminal is running in
>> update-manager installing
> packages, it says "Term not set" so
>> Dialog won't work. It falls back to
> readline.
> How can I fix this?
   Nobody ??
>>> Well, the question isn't completely clear. How do
>> you run this application, 
>>> and in what context do you receive this error message?
>>
>> Simple. Click on update-manager...if there are no updates
>> to be
>> installed...click on "check". If there are
>> updates, click on "Install".
>> When the installation begins I presume update-manager runs
>> a terminal,
>> because that is where I see the message "Term not
>> set"
>>
>>
>> How does the terminal
>>> run "in" update-manager? Wouldn't it be
>> the other way around? 
>>
>> Update-manager is a GTK program...so it'll run from the
>> desktop.
>>
>> What dialogue
>>> isn't working? What do you mean by readline?
>> Readline I gather is the default the system uses when
>> Dialog isn't
>> available.
> 
> This has to do with debconf, I sorted this issue by running 
> "configure-debian", then choosing subsection "admin", then choose program 
> "debconf", then choose the interface and priority level you want to use. I 
> use KDE, so naturally I choose the KDE interface. 


   This is great. Thanks. Never even knew configure-debian existed...but
it fixed my problem.

Cheers



signature.asc
Description: OpenPGP digital signature


Re: Solid DSL gateway for server environment

2009-02-07 Thread Aiko Barz
On Fri, Feb 06, 2009 at 10:42:39AM +0100, Chris Thompson wrote:
> Hi all.
> I run two mail and web servers from my house on a DSL line. Until a few
> weeks ago I was on cable but a new ISP launched some good SME offers and I
> decided to make the switch.

And I drop all connections to port 25 from IP addresses, that have a
reverse DNS entry like dsl.foo.bar, dynamic.foo.bar, dhcp.foo.bar.
There is a 99.999% chance, that a botnet is talking to you.

I hope, you are using a smarthost and do not send directly.

So long,
Aiko
-- 
:wq ✉


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



Re: Cannot compile gspca

2009-02-07 Thread Brad Sawatzky
On Sat, 07 Feb 2009, Sridhar M.A. wrote:

> I have installed linux-image-2.6.28-1-686 from the kernel trunk and the
> corresponding header files (after building linux-kbuild from source).
> Everything works fine except my webcam. The webcam works perfectly under
> the kernel 2.6.26-1-686 from debian/testing. 
> 
> I have downloaded the gspca-source and when I try to compile, I get the
> following error (tried make as well as m-a) :
[ . . . ]

The gspca driver is merged into the mainline kernel for 2.6.27 and up.  Use
'make xconfig' to enable it, delete /usr/src/modules/gspca/ if it exists,
then rebuild and install the kernel package.

There is an API change though[*].  You'll need to install the 'libv4l-0'
compatibility package (backport if you're running etch) and use the
following wrapper:

--  cut here ---
#! /bin/bash
# Needed for gspca in kernel 2.6.27 and up
#   See http://moinejf.free.fr/gspca_README.txt
# This requires the libv4l-0 debian package (which contains the compat lib
# below).

exe=`basename "$0"`
LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so "/usr/bin/${exe}"
--  cut here ---

Save the script as $HOME/bin/fix_webcam_app and then symlink your webcam
programs to it.  For example
 % ln -s $HOME/bin/fix_webcam_app $HOME/bin/effectv
 % ln -s $HOME/bin/fix_webcam_app $HOME/bin/camstream
or whatever.  (The script obviously assumes the original binary lies in
/usr/bin/ and will fail, modify to taste.)

[*] I still run Debian Etch.  Maybe everything has been recompiled for the
new API and works out of the box with Lenny?  YMMV.

-- Brad


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



Re: Which programming Language

2009-02-07 Thread frank
On Fri, 2009-02-06 at 11:44 -0600, Michael Shuler wrote:
> On 02/06/2009 11:25 AM, Abdelkader Belahcene wrote:
> > which is better.
> 
> Similar to:
> 
> what is the best ice cream flavor?

Hagen Dazs - Pralines & Cream

> what is the best car?

Audi TT 3.2 (The new one)

frank


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



Re: [POSSIBLE SPAM] Which programming Language

2009-02-07 Thread Magnus Therning
Mitchell Laks wrote:
> On 18:25 Fri 06 Feb , Abdelkader Belahcene wrote:
>> HI,
>> There are many and many programming languages (mainly : C,C++,java,
>> Shell, Perl, python, php). which learn and use, in which circonstances
>> use that language instead of the other.
>>
>> In many situations we can use anyone, but which is better.
> 
> 
> 
> Common Lisp!

The only language with an oxymoron for a name ;-)  Any serious person
would of course start with Haskell!

/M

-- 
Magnus Therning (OpenPGP: 0xAB4DFBA4)
magnus@therning.org Jabber: magnus@therning.org
http://therning.org/magnus

Haskell is an even 'redder' pill than Lisp or Scheme.
 -- PaulPotts



signature.asc
Description: OpenPGP digital signature


Re: No more automatic standby with new controller card

2009-02-07 Thread Malte Forkel
Malte Forkel schrieb:
> Hello list,
> 
> after switching to a new controller card, the attached disk is not set
> into standby mode anymore as configured in /etc/hdparm.conf.
> 
> I recently installed a Delock 89143 PCI Express to SATA II x2 and PATA
> Host Controller
> (http://www.delock.com/produkte/gruppen/pci-express/PCI_Express_Controller_Karte_2x_SATA_1x_IDE_89143.html?setLanguage=EN)
> that is based on a JMicron JMB363 chip. Currently, there is only a
> single IDE disk drive connected to the controller. That drive is a
> Samsung SP1614N.
> 
> The PC is running Debian Etch with kernel 2.6.18 and hdparm 6.9. Due to
> an entry in /etc/hdparm.conf, the drive should go into standby after 5
> minutes of inactivity. That entry is 'hdparm -S 60 /dev/hde'. But
> unfortenately the drive stays idle/inactive.
> 
> This setup worked flawlessly while the drive was connected to a Promise
> Ultra133 TX2. Since I replaced that controller by the Delock 89143, the
> drive does not automatically enter standby mode anymore. Instead, it
> stays in mode inactive/idle.
> 
> Executing 'hdparm -y /dev/hde' by hand successfully puts the drive into
> standby mode.
> 
> Any ideas what might be going on?
> 
> Thanks, Malte
> 
> 

Just for the record: The new controller had assigned the disk to a
different device, /dev/hde instead of /dev/hdg. I updated various places
accordingly, but forgot about /etc/default/hddtemp. So the hddtemp
daemon prevented the disk from ever falling asleep. Stupid me. Lame
excuse: Why is the hddtemp configuration stored in /etc/default/hddtemp
instead of /etc/hddtemp.conf?

Malte


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