Re: reaching a machine with a dynamic IP address.

2007-01-28 Thread x_debian-user_x
> The puzzling detail is how to address the home machine
> which has a dynamic address assigned by cablelan. 

Sign up for an account with dyndns.org and create a domain name.

Install and configure 'ddclient' to update dyndns each time your IP
changes (e.g. using an ip-up script if you're on ppp dialup.)

Then you can ssh to your domain name instead of IP address.


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



Re: ls and globbing and full pathnames

2007-01-28 Thread x_debian-user_x
> > I need the
> > full filepaths, something like this:
> > ---
> > /var/www/site1/index.html, /var/www/site1/some_image.jpg,
> > /var/www/site2/index.html, /var/www/site2/some_other_file
> > ---
> > Is there any known way to get that kind of output instead?
> 
> find /var/www
> 
> then you get the full joy of using find's many features too. 

And certainly some of those options are needed to print just "all of
the files in the root directories...  "

find /var/www/* -follow -maxdepth 1 -type f

> if you really want a comma seperated list, the check out sed or cut.

Maybe this would suffice (note it prints directories as well):

ls -dm /var/www/*/*


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



Re: ls and globbing and full pathnames

2007-01-29 Thread x_debian-user_x
> > find /var/www/* -follow -maxdepth 1 -type f
> 
> this will not work, except you only have one non-dot entry in /var/www - the
> first argument can only be one directory, where /var/www/* will be expanded
> to list of all files/directories (except those beginning with a dot) in
> /var/www.

Ummm, it works for me... ;-) Using GNU 'find' as supplied with Debian.

> 
> > > if you really want a comma seperated list, the check out sed or cut.
> > 
> > Maybe this would suffice (note it prints directories as well):
> > 
> > ls -dm /var/www/*/*
> 
> yes, this might work

Indeed it does too.


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



Re: apt is killing my machine

2008-02-25 Thread x_debian-user_x
I run Sarge on an openz vps with strictly allocated 64MB RAM.  apt-get
upgrade will fall over with dpkg malloc errors.  So instead I have a
script which effectively does:

apt-get update
apt-get upgrade --download-only -y
dpkg -Ri /var/cache/apt/archives/
apt-get clean

So far this has always worked, whereas plain 'apt-get upgrade' will
not.  Packages can be installed using a similar method.


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



Re: strange /etc/network/interfaces behaviour

2008-06-20 Thread x_debian-user_x
On Fri, Jun 20, 2008 at 09:35:39PM +0300, Mario Spinthiras wrote:

> Possible ifupdown bug?

Yes it doesn't sound right to me either.  If you do not receive any
further replies then I suggest to file a bug report against ifupdown.

Otherwise post your entire /etc/network/interfaces verbatim in case
someone can spot an error.


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



wlan0 fails to obtain dhcp lease at startup

2008-08-10 Thread x_debian-user_x
Hi,

I have a problem with wlan0 failing to get a dhcp lease at startup.

At startup, the following messages are issued:

Sun Aug 10 20:20:07 2008: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 
interval 3
Sun Aug 10 20:20:10 2008: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 
interval 8
Sun Aug 10 20:20:18 2008: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 
interval 15
Sun Aug 10 20:20:33 2008: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 
interval 10
Sun Aug 10 20:20:43 2008: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 
interval 10
Sun Aug 10 20:20:53 2008: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 
interval 15
Sun Aug 10 20:21:08 2008: No DHCPOFFERS received.
Sun Aug 10 20:21:08 2008: No working leases in persistent database - sleeping.

*After* startup however, 'ifdown wlan0; ifup wlan0' succeeds with a
lease at the first attempt.  Similarly 'dhclient wlan0' will obtain a
lease after startup.

The machine is a Dell Latitude D630 laptop.  I'm running Etch since
the machine was set up, and reecently did an apt-get upgrade after a
prolonged period offline.  I am reasonably certain that dhcp on wlan0
at startup did work when I originally set the machine up and suggest
that something has changed to cause this problem.

The server running dhcpd logs no attempt to obtain a lease from this
machine at the time of boot.

Below is paste of dmesg, bootlog, lspci, and /etc/network/interfaces.

Any insight to the cause of this problem would be much appreciated!

Cheers.

~# dmesg
Linux version 2.6.22-4-686 (Debian 2.6.22-6~bpo40+2) ([EMAIL PROTECTED]) (gcc 
version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Tue Feb 12 
16:29:32 UTC 2008
BIOS-provided physical RAM map:
 BIOS-e820:  - 0009f000 (usable)
 BIOS-e820: 0009f000 - 000a (reserved)
 BIOS-e820: 0010 - 7fe5b800 (usable)
 BIOS-e820: 7fe5b800 - 8000 (reserved)
 BIOS-e820: f400 - f800 (reserved)
 BIOS-e820: fec0 - fec1 (reserved)
 BIOS-e820: fed18000 - fed1c000 (reserved)
 BIOS-e820: fed2 - fed9 (reserved)
 BIOS-e820: feda - feda6000 (reserved)
 BIOS-e820: fee0 - fee1 (reserved)
 BIOS-e820: ffe0 - 0001 (reserved)
1150MB HIGHMEM available.
896MB LOWMEM available.
Entering add_active_range(0, 0, 523867) 0 entries of 256 used
Zone PFN ranges:
  DMA 0 -> 4096
  Normal   4096 ->   229376
  HighMem229376 ->   523867
early_node_map[1] active PFN ranges
0:0 ->   523867
On node 0 totalpages: 523867
  DMA zone: 32 pages used for memmap
  DMA zone: 0 pages reserved
  DMA zone: 4064 pages, LIFO batch:0
  Normal zone: 1760 pages used for memmap
  Normal zone: 223520 pages, LIFO batch:31
  HighMem zone: 2300 pages used for memmap
  HighMem zone: 292191 pages, LIFO batch:31
DMI 2.4 present.
ACPI: RSDP 000FBB00, 0024 (r2 DELL  )
ACPI: XSDT 7FE5D200, 0064 (r1 DELLM08 27D8011E ASL61)
ACPI: FACP 7FE5D09C, 00F4 (r4 DELLM08 27D8011E ASL61)
ACPI: DSDT 7FE5D800, 6152 (r2 INT430 SYSFexxx 1001 INTL 20050624)
ACPI: FACS 7FE6C000, 0040
ACPI: HPET 7FE5D300, 0038 (r1 DELLM081 ASL61)
ACPI: APIC 7FE5D400, 0068 (r1 DELLM08 27D8011E ASL47)
ACPI: ASF! 7FE5D000, 007E (r32 DELLM08 27D8011E ASL61)
ACPI: MCFG 7FE5D3C0, 003E (r16 DELLM08 27D8011E ASL61)
ACPI: TCPA 7FE5D700, 0032 (r10 ASL 0)
ACPI: SLIC 7FE5D49C, 0176 (r1 DELLM08 27D8011E ASL61)
ACPI: SSDT 7FE5B9C0, 04CC (r1  PmRefCpuPm 3000 INTL 20050624)
ACPI: PM-Timer IO Port: 0x1008
ACPI: Local APIC address 0xfee0
ACPI: LAPIC (acpi_id[0x00] lapic_id[0x00] enabled)
Processor #0 6:15 APIC version 20
ACPI: LAPIC (acpi_id[0x01] lapic_id[0x01] enabled)
Processor #1 6:15 APIC version 20
ACPI: LAPIC_NMI (acpi_id[0x00] high edge lint[0x1])
ACPI: LAPIC_NMI (acpi_id[0x01] high edge lint[0x1])
ACPI: IOAPIC (id[0x02] address[0xfec0] gsi_base[0])
IOAPIC[0]: apic_id 2, version 32, address 0xfec0, GSI 0-23
ACPI: INT_SRC_OVR (bus 0 bus_irq 0 global_irq 2 dfl dfl)
ACPI: INT_SRC_OVR (bus 0 bus_irq 9 global_irq 9 high level)
ACPI: IRQ0 used by override.
ACPI: IRQ2 used by override.
ACPI: IRQ9 used by override.
Enabling APIC mode:  Flat.  Using 1 I/O APICs
ACPI: HPET id: 0x8086a201 base: 0xfed0
Using ACPI (MADT) for SMP configuration information
Allocating PCI resources starting at 8800 (gap: 8000:7400)
Built 1 zonelists.  Total pages: 519775
Kernel command line: root=/dev/sda5 ro
mapped APIC to d000 (fee0)
mapped IOAPIC to c000 (fec0)
Enabling fast FPU save and restore... done.
Enabling unmasked SIMD FPU exception support... done.
Initializing CPU#0
PID hash table entries: 4096 (order: 12, 16384 bytes)
Detected 2194.615 MHz processor.
Console: colour VGA+ 8

Sound recorder records only silence

2007-06-19 Thread x_debian-user_x
Hi,

I hope someone can help with this problem...

I'm trying to get the microphone input working (actually for use with
Skype).  I'm using audacity, arecord, and the gnome sound recorder to
test the mic input and whichever app I use it records only silence.

In the Gnome volume control: 
Playback tab - Microphone slider is set to 100, and not muted
Capture tab - Both sliders set to 100 and not muted
Switches tab - Microphone Capture is ticked
Options tab - Mic Select set to Mic1, Mono select set to Mic

Blowing or touching the microphone can be clearly heard on the PC
speakers, holding the mic next to the speakers causes a feedback
'howl', speech is distorted.

However, any recording records just silence:

~# arecord -d 10 test.wav
Recording WAVE 'test.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
~# hd test.wav
  52 49 46 46 a4 38 01 00  57 41 56 45 66 6d 74 20  |RIFF.8..WAVEfmt |
0010  10 00 00 00 01 00 01 00  40 1f 00 00 40 1f 00 00  |[EMAIL 
PROTECTED]@...|
0020  01 00 08 00 64 61 74 61  80 38 01 00 80 80 80 80  |data.8..|
0030  80 80 80 80 80 80 80 80  80 80 80 80 80 80 80 80  ||
*
000138a0  80 80 80 80 80 80 80 80  80 80 80 80  ||
000138ac
~# arecord -l
 List of CAPTURE Hardware Devices 
card 0: CS46xx [Sound Fusion CS46xx], device 0: CS46xx [CS46xx]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
~# amixer info
Card default 'CS46xx'/'Sound Fusion CS46xx at 0xfcffe000/0xfce0, irq 193'
  Mixer name: 'Cirrus Logic CS4297A rev 4'
  Components: 'AC97a:43525914'
  Controls  : 45
  Simple ctrls  : 26
~# man amixer
Reformatting amixer(1), please wait...
~# amixer scontents
Simple mixer control 'Master',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 63
  Mono:
  Front Left: Playback 48 [76%] [on]
  Front Right: Playback 48 [76%] [on]
Simple mixer control 'Master Mono',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 31
  Mono: Playback 24 [77%] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 24 [77%] [on]
  Front Right: Playback 24 [77%] [on]
Simple mixer control '3D Control - Center',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control '3D Control - Depth',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 0 - 15
  Mono: 0 [0%]
Simple mixer control '3D Control - Switch',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'PCM',0
  Capabilities: pvolume pswitch pswitch-joined
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono:
  Front Left: Playback 28 [90%] [on]
  Front Right: Playback 28 [90%] [on]
Simple mixer control 'Line',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 0 [0%] [off] Capture [off]
  Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'CD',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 25 [81%] [on] Capture [off]
  Front Right: Playback 25 [81%] [on] Capture [off]
Simple mixer control 'Mic',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch 
cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 31 [100%] [on]
  Front Left: Capture [on]
  Front Right: Capture [on]
Simple mixer control 'Mic Boost (+20dB)',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Mic Select',0
  Capabilities: enum
  Items: 'Mic1' 'Mic2'
  Item0: 'Mic1'
Simple mixer control 'Video',0
  Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Front Left: Playback 0 [0%] [off] Capture [off]
  Front Right: Playback 0 [0%] [off] Capture [off]
Simple mixer control 'Phone',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch 
cswitch-exclusive
  Capture exclusive group: 0
  Playback channels: Mono
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 31
  Mono: Playback 0 [0%] [off]
  Front Left: Capture [off]
  Front Right: Captur

Re: Sound recorder records only silence

2007-06-20 Thread x_debian-user_x
> Try running alsaconf as root and check that you are configuring the right 
> sound
> card (there may be sound built into the motherboard as well as a PCI card).

Hi, thanks for the suggestions.

I did already run alsaconf as root prior to the transcript pasted in
my last post.  There is no PCI sound card, only the onboard sound
which I am using.

What is bizarre is that I have this same problem on two very different
machines - a Dell Precision 420 desktop, and an IBM Thinkpad T21
laptop.  Which leads to the suspicion either of a bug in 'etch', or
more likely something that I have done wrong.  It certainly looks like
a bug from where I'm sitting, even if it works for everyone else! ;-/

Any other suggestions much appreciated...

Cheers,
-bernie.

(email address is valid)


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



Re: Sound recorder records only silence

2007-06-20 Thread x_debian-user_x
> What is bizarre is that I have this same problem on two very different
> machines...

Just to follow up on this, it seems both PCs use the same soundcard
chipset:

Dell Precision 420 desktop:-

02:06.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24 [CrystalClear 
SoundFusion Audio Accelerator] (rev 01)
Subsystem: Dell Unknown device 0096
Flags: bus master, medium devsel, latency 64, IRQ 193
Memory at fcffe000 (32-bit, non-prefetchable) [size=4K]
Memory at fce0 (32-bit, non-prefetchable) [size=1M]
Capabilities: [40] Power Management version 2

IBM Thinkpad T21 laptop:-

00:05.0 Multimedia audio controller: Cirrus Logic CS 4614/22/24 [CrystalClear 
SoundFusion Audio Accelerator] (rev 01)
Subsystem: IBM ThinkPad A20m
Flags: bus master, slow devsel, latency 64, IRQ 11
Memory at e8122000 (32-bit, non-prefetchable) [size=4K]
Memory at e800 (32-bit, non-prefetchable) [size=1M]
Capabilities: [40] Power Management version 2

Perhaps someone has the same onboard soundcard, and a working
microphone attached, that can confirm whether recording works or not
please?

Cheers,
-bernie.

(email address is valid)


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



Re: Sound recorder records only silence

2007-06-20 Thread x_debian-user_x
> 1. In the past I have had problems caused by the Enlightenment Sound Daemon. 
> You
> can turn it off in Gnome from the Desktop menu:
> 
> Desktop -> Preferences -> Sound -> Sounds tab -> Enable software sound mixing
> (ESD) (untick)

It was already off (unticked).  Also I checked the following:

~# ps alx | grep art
0 0 11137  3845  18   0   2848   712 pipe_w S+   pts/2  0:00 grep art
~# ps alx | grep esd
0 0 11143  3845  18   0   2848   708 -  R+   pts/2  0:00 grep esd
~# ps alx | grep alsa
0 0 11147  3845  18   0   2852   716 pipe_w S+   pts/2  0:00 grep alsa


> 2. Have you turned the mic on in the mixer? Try setting your levels in
> alsamixer. In the past, this has worked better than alsamixergui.

Using alsamixer:

In 'Capture view', above Mic is written CAPTUR, also above Capture is
written CAPTUR and the Capture slider is set to 100<>100.

In 'Playback view' the Mic slider is set to 100, and not muted [00].


With these setting, the mic sounds are heard through the PC speakers
but Audacity records only silence.


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



Curious file-permissions problem

2007-11-27 Thread x_debian-user_x
Hi,

I wonder if someone can throw some light on this file-permissions
issue please?

It came to light as rsync complained:
rsync: failed to set times on "/var/www/mirror/foo/.": Operation not permitted 
(1)

An strace revealed the failure is effectively a result of:
cd /var/www/mirror/foo; touch -m .

The directory is group writable and with ownership root.staff, rysnc
is running as a user who is a member of group staff.

Now maybe there's a better way to manage the file permissions for
mirroring with rysnc, and maybe someone will comment on that as a side
discussion, but mainly I'm curious why the directory mtime cannot be
set in this way.

Some testing at the command line indeed confirms that it's not
possible to 'touch -m' or 'touch -a' a directory without direct
ownership, but plain 'touch' will succeed as long as group permissions
include write access.

My suspicion is this is a security feature, but I fail to see it
because the same as 'touch -m' can be achieved by simply creating and
then deleting a dummy file within the directory, as demonstrated
below.

This is also at http://pastebin.com/m6896ed8a for those who might
prefer to view it there.

Total respect due to any guru who can explain this... I've asked
around already and received no satisfactory explanation!

~$ ls -la /tmp/foo
total 8
drwxrwxr-x  4 root staff 1024 2007-11-26 22:53 .
drwxrwxrwt 17 root root  5120 2007-11-27 00:08 ..
drwxrwxr-x  2 gm   gm1024 2007-11-27 00:40 bar
drwxrwxr-x  2 root staff 1024 2007-11-27 00:40 baz
~$ groups
gm dialout cdrom floppy audio src video plugdev staff users powerdev ssh-login
~$ touch /tmp/foo/bar
~$ stat /tmp/foo/bar
  File: `/tmp/foo/bar'
  Size: 1024Blocks: 2  IO Block: 4096   directory
Device: 308h/776d   Inode: 132531  Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  gm)   Gid: ( 1000/  gm)
Access: 2007-11-27 00:40:36.0 +
Modify: 2007-11-27 00:40:36.0 +
Change: 2007-11-27 00:40:36.0 +
~$ touch -a /tmp/foo/bar
~$ touch -m /tmp/foo/bar
~$ stat /tmp/foo/bar
  File: `/tmp/foo/bar'
  Size: 1024Blocks: 2  IO Block: 4096   directory
Device: 308h/776d   Inode: 132531  Links: 2
Access: (0775/drwxrwxr-x)  Uid: ( 1000/  gm)   Gid: ( 1000/  gm)
Access: 2007-11-27 00:40:50.0 +
Modify: 2007-11-27 00:40:56.0 +
Change: 2007-11-27 00:40:56.0 +
~$ touch /tmp/foo/baz
~$ stat /tmp/foo/baz
  File: `/tmp/foo/baz'
  Size: 1024Blocks: 2  IO Block: 4096   directory
Device: 308h/776d   Inode: 132530  Links: 2
Access: (0775/drwxrwxr-x)  Uid: (0/root)   Gid: (   50/   staff)
Access: 2007-11-27 00:41:08.0 +
Modify: 2007-11-27 00:41:08.0 +
Change: 2007-11-27 00:41:08.0 +
~$ touch -a /tmp/foo/baz
touch: setting times of `/tmp/foo/baz': Operation not permitted
~$ touch -m /tmp/foo/baz
touch: setting times of `/tmp/foo/baz': Operation not permitted
~$ stat /tmp/foo/baz
  File: `/tmp/foo/baz'
  Size: 1024Blocks: 2  IO Block: 4096   directory
Device: 308h/776d   Inode: 132530  Links: 2
Access: (0775/drwxrwxr-x)  Uid: (0/root)   Gid: (   50/   staff)
Access: 2007-11-27 00:41:08.0 +
Modify: 2007-11-27 00:41:08.0 +
Change: 2007-11-27 00:41:08.0 +
~$ touch /tmp/foo/baz/file; rm /tmp/foo/baz/file
~$ stat /tmp/foo/baz
  File: `/tmp/foo/baz'
  Size: 1024Blocks: 2  IO Block: 4096   directory
Device: 308h/776d   Inode: 132530  Links: 2
Access: (0775/drwxrwxr-x)  Uid: (0/root)   Gid: (   50/   staff)
Access: 2007-11-27 00:41:08.0 +
Modify: 2007-11-27 00:41:37.0 +
Change: 2007-11-27 00:41:37.0 +
~$
~$
~$

-grummund


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