Re: How I can remove my folder icons in desktop screen?

2011-07-18 Thread Stanisław Findeisen
On 2011-04-26 16:36, Camaleón wrote:
> On Tue, 26 Apr 2011 00:14:52 +0200, Jasper Noe wrote:
> 
>>> Maybe you are searching for another key:
>>>
>>> /apps/nautilus/preferences/show_desktop [ ]
>>>
>>> If you toogle this "off" all your icons will vanish.
>>
>> I think it is still another key:
>>
>> /apps/nautilus/preferences/desktop_is_home_dir
> 
> Well, I think with that option you are getting a different thing :-)
> 
> - To graphically turn off your desktop icons (while they're still 
> available via nautilus) one has to enable "/apps/nautilus/preferences/
> show_desktop"
> 
> - To use your "$HOME" dir as the folder container to be displayed in your 
> desktop (instead the default one located at "$HOME/Desktop"), you have to 
> enable "/apps/nautilus/preferences/desktop_is_home_dir"

Hm, I just deleted all those funny dirs in my $HOME: Music, Pictures...
and Desktop. When I rebooted (or so) I found all my $HOME subdirs (well,
at least many) on the desktop.

How to disable that?

I disabled /apps/nautilus/preferences/desktop_is_home_dir and I
recreated $HOME/Desktop, and even rebooted, but it didn't help.

??

This is Debian Squeeze (and GNOME).

-- 
http://people.eisenbits.com/~stf/
http://www.eisenbits.com/

OpenPGP: E3D9 C030 88F5 D254 434C  6683 17DD 22A0 8A3B 5CC0


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e252825.1050...@eisenbits.com



Re: kernel compile error in wheezy [solved!]

2011-07-18 Thread Frank Miles

Thanks to everyone who helped - yes, it was indeed something about
my environment.  In /etc/profile, I've long exported an environment
variable of the form:

export LIBRARY_PATH="/home/myname/devel/lib:."

I have a dim memory that when compiling cross-compilers that the
'.' directory is a problem.  Commenting this out allows the kernel
compile to proceed.  What's strange is that I've had this for many
years without any kernel-compile problem.  No longer!

There may be some gcc docs that warn of this, not sure exactly where,
but it might shed more light on this situation.

Thanks again, everyone-

Frank


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

Archive: 
http://lists.debian.org/alpine.lrh.2.01.1107182120300.6...@homer01.u.washington.edu



Re: firewall?

2011-07-18 Thread hadi motamedi
On 7/18/11, Johannes Obermueller  wrote:
> On 07/18/2011 05:27 AM, hadi motamedi wrote:
>> Dear All
>> I have put my windows machine behind my debian firewall server with
>> just one NIC. At now, the windows machine can ping 192.9.9.3 but
>> cannot resolve valid url (like www.google.com). I have set DNS for it
>> as well. Can you please let me know what is the missing step?
>> Thank you
>>
>>
>
> Did you check whether your firewall blocks port 53 (DNS)?
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/4e244ac6.6060...@gmx.at
>
>
Sorry. How it can be checked out?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+n+swhjubq2do0wvpcohbdtzpndyz2+x9tts9xsfboe1-6...@mail.gmail.com



Re: firewall?

2011-07-18 Thread hadi motamedi
On 7/18/11, Regid Ichira  wrote:
> hadi motamedi  gmail.com> writes:
>
>>
>> On 7/18/11, Tom Furie  furie.org.uk> wrote:
>> > On Mon, Jul 18, 2011 at 03:48:14AM -0400, hadi motamedi wrote:
>> >
>> >> I have set the same DNS on both my debian firewall and windows macine.
>> >
>> > And that would be what? You can ping an IP address from Windows, but
>> > can't resolve names. What is the situation with Debian?
>> >
>> > Cheers,
>> > Tom
>> >
>> > --
>> > Let me do my TRIBUTE to FISHNET STOCKINGS ...
>> >
>> My debian firewall can both ping and browse valid ip & url  .
>>
>>
>
>   Can you set your Windows machines to resolve names from other
> DNS, say google (8.8.8.8 and 8.8.4.4), or your ISP?  If this
> setup turns out to be working, can you repeat it for your Debian
> DNS?
>
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/loom.20110718t151759...@post.gmane.org
>
>
I tried for your comment but it did not change the situation. (I mean
changing the DNS is not successful)


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+n+swj+2hk6dzznbww81rr4emo5cxo+399ibthdc8vtwve...@mail.gmail.com



Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Stan Hoeppner
On 7/18/2011 1:39 PM, Tomas Kral wrote:
> On Sat, 2011-07-16 at 11:42 +0200, Stan Hoeppner wrote:
>> On 7/16/2011 3:52 AM, Tomas Kral wrote:
>>
>>> linux-image-2.6.32-5-686  2.6.32-35
>>>
>>> $ su -c'mount /dev/fd0 /media/floppy0' # or
>>> $ mount /floppy
>>
>>> [ 8744.146621] FAT: utf8 is not a recommended IO charset for FAT
>>> filesystems, filesystem will be case sensitive!
>>>
>>> But no floppy is really mounted
>>
>>> as it should as per fstab
>>> $ cat /etc/fstab | grep floppy
>>> /dev/fd0/media/floppy0  autorw,user,noauto  0   0
>>>
>>> Is there a floppy support in 2.6.32-5-686 at all?
>>> In /boot/config-2.6.32-5-686
>>> There is no floppy module set
>>> CONFIG_BLK_DEV_IDEFLOPPY=m
>>
>> Is this a standard floppy interface drive or an IDE floppy?
> 
> I think it is an IDE floppy, it has got a ribbon cable attaching it to
> the main board.

Both use ribbons.  If it's 34 pin it's old standard floppy interface.
If it's 40 pin it's IDE.

-- 
Stan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e24d973.8040...@hardwarefreak.com



Re: Experiences on using zram with ARM?

2011-07-18 Thread Luke Kenneth Casson Leighton
zram... there actually exists something called "Z-Ram", it was bought
by one of the major companies: it's actually 3D (stacked) ram and thus
you get a significantly higher memory density.  thus, the use of the
name "zram" caused some confusion, that you had access to this quite
rare type of RAM memory cell technology.

http://code.google.com/p/compcache/ which mentions "ramzswap" as part
of the name of the device, not zramswap?

so, to be clear: you mean compcache, which requires (for optimal
performance) notification from the linux kernel to the compcache
device, patches for which have not been accepted into mainline linux
kernel upstream.  if you *do not* want to use this notification
system, then you should just be able to build the invididual kernel
module and *not* recompile the entire linux kernel, but what the hell:
it's not a massive deal anyway.

i hear that there are other schemes besides compcache: you might wish
to investigate those as well.  some apparently do weird stuff like
optimise zero'd out pages (for which firefox is notorious...)

l.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAPweEDyU89J4=7yo34twduqbq1ne_i5bafq-r7ivtaxx-k7...@mail.gmail.com



Re: Why /etc/init.d/.depend.start did not caught editing to /etc/insserv.conf?

2011-07-18 Thread Regid Ichira
Bob Proulx  proulx.com> writes:

> 
> Looking at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634215 I
> see that you have found a problem related to @reboot with cron
> starting earlier using the dependency based booting than it did before
> with the legacy based manually specified number booting.  But there
> are some missing details.
> 
> I assume that you have an action in @reboot from cron that is now
> being run before ntp is started and that your hardware clock isn't
> functioning?  Because if your hardware clock is functioning then time
> should be pretty close to correct even without ntp running.  But I
> know if your hardware clock is dead, such as from a dead battery, then
> time will be very incorrect until ntp is finished running.  I assume
> that your @reboot action is having a problem because it is running in
> this intermediate time?  Could you clarify?
> 

  Yes.  Unless I am mistaken, my @reboot problem is due to the 
intermediate time.  I don't want to reboot the machine to verify that.
I will wait for a more subtle reason to reboot.

> 
> For what it is worth I think your customization of cron to add a
> dependency is the right way to go.  Did you try adding ntp to the
> "Should-Start" list?  I think that would be better.
> 

  That is what I eventually did.  To add ntp to the Should-Start line.
A system administrator can also modify rc.local, which has $all.  I
still think that with parallel boot sequence, something should be done
about the unexpected behavior of @reboot.  A naive, or senior, user
is likely to expect all system services to be available for the 
command of @reboot.

  As an aside, with parallel boot, do the 2 digit numbers of the
scripts at each run level have any significance?  How do those 2
digit numbers determined?




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/loom.20110719t001343-...@post.gmane.org



Re: vbox sid invalid mcookie

2011-07-18 Thread Cousin Stanley

Cousin Stanley wrote :

>> Using a debian squeeze host for a Virtual Box 4.0.12
>> debian sid guest, about a month ago I started having
>> invalid magic cookie problems when trying to do 
>> anything X related from a terminal  

Liam O'Toole replied :

> Are you running applications 
> entirely within the Virtual Box guest ? 

  Yes, just using it as a test-bed for sid
  and for a few packages that are not in squeeze.
 
> Or trying to forward output 
> to the host display ? 

  No, although I might want to try that
  in the future 


  I can ssh & scp from the sid guest
  to the squeeze host  

  However, if I  ssh -Y  to the squeeze host
  I get the invalid magic cookie message
  the same as only trying to start a local 
  X program from the terminal in the sid guest  

  X forwarding is enabled in the squeeze host,
  and I can  ssh -Y  into the host
  from ArchLinux and Ubuntu guests
  also under VirtualBox on the same host 
  without problems  


-- 
Stanley C. Kitching
Human Being
Phoenix, Arizona


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/j02asc$b22$1...@dont-email.me



Re: Experiences on using zram with ARM?

2011-07-18 Thread Rogério Brito
Hi.

2011/7/14 Rogério Brito :
> As many ARM systems (and other embedded architectures) happen to be
> memory-starved, I thought about playing with zram (the new name of
> "zramswap") on some of my systems, but I found out that not all platforms
> have zram enabled in the stock kernels in Debian.
>
> So, my question is: does anybody have experiences running zram with
> non-{i386,amd64} platforms? It would be nice to know before I start
> compiling many kernels and stuff.

I sent this message about 5 days ago and I didn't have any responses
in debian-arm. For that reason, I am resending it to debian-arm and
also crossposting it to debian-{powerpc,user}. Any experiences shared
here regarding the use of "compressed ram" would be more than welcome.

Just for the record, if the module is available, it should be simply a
matter of issuing:

modprobe zram # load the module
echo 67108864 > /sys/block/zram0/disksize # size of RAM to reserve to
be compressed
mkswap /dev/zram0 # create a swap in that area
swapon /dev/zram0 # use the swap on the compressed RAM

The basic idea here is that by compressing a portion of RAM:

* we may be able to hold more content in RAM.
* while we use some CPU cycles, it should beat the option of going to disk.

So, again, if anybody has any feedback on using this on a non-x86
arch, it would be very much appreciated.


Thanks,

-- 
Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFC
http://rb.doesntexist.org : Packages for LaTeX : algorithms.berlios.de
DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOtrxKMVO4J=t_nt5pe1q0foswrugkgs3vulponipoeka6g...@mail.gmail.com



Re: ASUS u52 builtin microphone (alsa-driver-linuxant)

2011-07-18 Thread Robert Blair Mason Jr.
On Sun, 10 Jul 2011 18:20:45 -0400
"Robert Blair Mason Jr."  wrote:

> Hello Everyone,
> 
> So I've been trying to get my laptop (ASUS u52) microphone to work.
> First off, if anybody knows how to get the builtin microphone to work
> without bothering with alsa-driver-linuxant, or if I didn't know the
> correct google-foo to find a binary package for alsa-driver-linuxant
> that works with debian, then please cut me off.
> 
> Beginning how I (unsuccessfully) attempted to solve the problem, I
> read at [1] that the workarounds at [2] worked for the u52. It says
> that installing the linuxant alsa drivers fixes problems with the
> microphone.  So, I grab the latest version of the driver, unzip, and
> try to install the deb package.  It fails on configure, so I install
> the kernel sources, make menuconfig (just accepting the defaults), etc
> until I have a completely prepared source distribution. After copying
> over version.h from /usr/include/linux, alsa-driver-linuxant
> configures correctly.
> 
> Here's where it begins to fall apart.  I'm running debian unstable
> amd64 on linux kernel version 2.6.39.  First I find that
> include/linux/smp_lock.h was removed from kernel 2.6.39.  I try to get
> away with just copying over the blob from version 2.6.38 (which seemed
> to work).  However, now CC is complaining about implicit declaration
> of functions, which means the headers are all included but the
> functions aren't there anymore AFAIK, which means that the interface
> changed, which makes me think that the whole driver is incompatible
> with kernel 2.6.39.  Is this true?
> 
> Is it possible for me to run the driver without downgrading the
> kernel?  Though I suppose it is an option...
> 
> Thanks for any and all help,
> 
> rbmj
> 
> PS:  If exact errors would help, I can supply.  This seems like a
> bigger issue (again, AFAIK) then just a normal compilation error.
> 
> [1] http://ubuntuforums.org/showthread.php?t=1668887
> [2] http://ubuntuforums.org/showthread.php?t=1460790
> 
> 

Update:  I went through some of the code and started to replace some of
the lines that caused errors with the latest alsa-driver git blobs.
These fixed some of the errors, but not all of them.  However, after
giving up, installing pulseaudio, giving up on that, rebooting a few
times, updating a few times, giving up on that, and then forgetting
about it, the microphone magically started working.

--

rbmj


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110718145556.16ce7...@blairasus.mason.homeunix.org



md driver - dropped disk still being used?

2011-07-18 Thread Sandra Escandor
Question:
I would like to confirm if I am interpreting the kernel log correctly.
The situation is that there was I/O going on to the RAID and then one of
the disks drop out - then the whole system completely hangs after
recovery finishes. I expected that the RAID would still be usable with 3
out of 4 disks (since it's in RAID10 configuration). Also, is this a
known issue?

My interpretation is the following:
1. There was a RAID member disk communication error with device sdc
(starts from ata layer).
2. The raid10 module handles this and disables sdc, then says that it
will continue working with 3 out of 4 devices.
3. md driver starts a recovery of the RAID (all four disks are still
physically in, but one has been disabled by the raid10 module).
4. After md driver says that the recovery is done, a kernel log message
shows that there is an unhandled error code from sdc (but sdc was
supposed to have been removed by the raid10 module, right?).

So, to get more specific with my question: If the raid10 module has
disabled sdc, why is there a kernel log message after recovery that
still involves sdc - no one should be talking to sdc, correct? I've
attached a kernel log snippet. I can post more if needed.

System info:
Kernel 2.6.32-5-amd64
mdadm 3.1.4
four member disk raid10 - using imsm metadata container

Kernel Log snippet:

Jul  8 14:48:06 ecs-1u kernel: [ 8200.901003] ata3.00: exception Emask
0x0 SAct 0x1ffc0 SErr 0x0 action 0x6 frozen
Jul  8 14:48:06 ecs-1u kernel: [ 8200.901052] ata3.00: failed command:
WRITE FPDMA QUEUED
Jul  8 14:48:06 ecs-1u kernel: [ 8200.901082] ata3.00: cmd
61/00:30:80:37:3f/04:00:44:00:00/40 tag 6 ncq 524288 out
Jul  8 14:48:06 ecs-1u kernel: [ 8200.901083]  res
40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
Jul  8 14:48:06 ecs-1u kernel: [ 8200.901163] ata3.00: status: { DRDY }
Jul  8 14:48:06 ecs-1u kernel: [ 8200.901183] ata3.00: failed command:
WRITE FPDMA QUEUED
Jul  8 14:48:06 ecs-1u kernel: [ 8200.901207] ata3.00: cmd
61/00:38:80:3b:3f/04:00:44:00:00/40 tag 7 ncq 524288 out
Jul  8 14:48:06 ecs-1u kernel: [ 8200.901208]  res
40/00:00:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
Jul  8 14:48:06 ecs-1u kernel: [ 8200.901282] ata3.00: status: { DRDY }

repeats...

Jul  8 14:57:19 ecs-1u kernel: [ 8753.699104] sd 2:0:0:0: [sdc]
Unhandled error code
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699107] sd 2:0:0:0: [sdc] Result:
hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699110] sd 2:0:0:0: [sdc] CDB:
Write(10): 2a 00 3e cf 18 00 00 04 00 00
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699117] end_request: I/O error,
dev sdc, sector 1053759488
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699144] raid10: Disk failure on
sdc, disabling device.
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699144] raid10: Operation
continuing on 3 devices.
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699301] sd 2:0:0:0: [sdc]
Unhandled error code
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699303] sd 2:0:0:0: [sdc] Result:
hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699306] sd 2:0:0:0: [sdc] CDB:
Write(10): 2a 00 3e cf 1c 00 00 04 00 00
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699311] end_request: I/O error,
dev sdc, sector 1053760512
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699430] sd 2:0:0:0: [sdc]
Unhandled error code
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699431] sd 2:0:0:0: [sdc] Result:
hostbyte=DID_OK driverbyte=DRIVER_TIMEOUT
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699434] sd 2:0:0:0: [sdc] CDB:
Write(10): 2a 00 3e cf 20 00 00 04 00 00
Jul  8 14:57:19 ecs-1u kernel: [ 8753.699439] end_request: I/O error,
dev sdc, sector 1053761536

repeats...

Jul  8 14:57:23 ecs-1u kernel: [ 8758.163655] md: recovery of RAID array
md126
Jul  8 14:57:23 ecs-1u kernel: [ 8758.163660] md: minimum _guaranteed_
speed: 1000 KB/sec/disk.
Jul  8 14:57:23 ecs-1u kernel: [ 8758.163662] md: using maximum
available idle IO bandwidth (but not more than 20 KB/sec) for
recovery.
Jul  8 14:57:23 ecs-1u kernel: [ 8758.163672] md: using 128k window,
over a total of 732572288 blocks.
Jul  8 14:57:23 ecs-1u kernel: [ 8758.163675] md: resuming recovery of
md126 from checkpoint.
Jul  8 14:57:23 ecs-1u kernel: [ 8758.163677] md: md126: recovery done.
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296414] RAID10 conf printout:
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296416]  --- wd:3 rd:4
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296417]  disk 0, wo:0, o:1,
dev:sdb
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296419]  disk 1, wo:1, o:0,
dev:sdc
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296420]  disk 2, wo:0, o:1,
dev:sdd
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296421]  disk 3, wo:0, o:1,
dev:sde
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296673] md: recovery of RAID array
md126
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296676] md: minimum _guaranteed_
speed: 1000 KB/sec/disk.
Jul  8 14:57:23 ecs-1u kernel: [ 8758.296679] md: using maximum
available idle IO bandwidth (but not more than 20 KB/sec) for
recovery.
Jul  

Re: vbox sid invalid mcookie

2011-07-18 Thread Liam O'Toole
On 2011-07-17, Cousin Stanley  wrote:
>
>   Using a debian squeeze host for a Virtual Box 4.0.12
>   debian sid guest, about a month ago I started having
>   invalid magic cookie problems when trying to do 
>   anything X related from a terminal  

(...)

Are you running applications entirely within the Virtual Box guest? Or
trying to forward output to the host display? Or something else?

-- 
Liam O'Toole
Cork, Ireland


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/slrnj295ld.5p0.liam.p.otoole@dipsy.tubbynet



Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Tomas Kral
On Mon, 2011-07-18 at 21:27 +0200, Brad Rogers wrote:
> On Mon, 18 Jul 2011 20:39:03 +0200
> Tomas Kral  wrote:
> 
> Hello Tomas,
> 
> > I think it is an IDE floppy, it has got a ribbon cable attaching it to
> > the main board.
> 
> Further to what Lisi says;
> 
> How many pins has the connector/cable got?  If it's a 40 way cable, then
> yes, it's IDE.  If fewer than 40, it's an ordinary floppy.
> 

The floppy ribbon belt is a wee bit narrower compared to CD-ROM, or HD
belts, I guess it is an ordinary floppy, then.

My main board manual just says: one floppy port supporting, 3,5" or
5,25"

I counted pins on the board layout 
Floppy port = 2 rows by 17, 34 pins
Both IDE ports = 2 rows by 20, 40 pins, though I use 80-wire cables on
CD/DVD and HD

Ordinary floppy, then.
Sorry for confusing it.

Many thanks
-- 
Tomas Kral 


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1311018567.2803.34.camel@lynx.localhost.localdomain



Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Tomas Kral
On Sat, 2011-07-16 at 11:42 +0200, Stan Hoeppner wrote:
> On 7/16/2011 3:52 AM, Tomas Kral wrote:
> 
> > linux-image-2.6.32-5-686  2.6.32-35
> > 
> > $ su -c'mount /dev/fd0 /media/floppy0' # or
> > $ mount /floppy
> 
> > [ 8744.146621] FAT: utf8 is not a recommended IO charset for FAT
> > filesystems, filesystem will be case sensitive!
> > 
> > But no floppy is really mounted
> 
> > as it should as per fstab
> > $ cat /etc/fstab | grep floppy
> > /dev/fd0/media/floppy0  autorw,user,noauto  0   0
> > 
> > Is there a floppy support in 2.6.32-5-686 at all?
> > In /boot/config-2.6.32-5-686
> > There is no floppy module set
> > CONFIG_BLK_DEV_IDEFLOPPY=m
> 
> Is this a standard floppy interface drive or an IDE floppy?
> 
> > Also noticed kernel boots with SCSI devices
> > /dev/sda.. /dev/sr..
> > But my hardware is IDE/ATAPI based.
> 
> Read about libata:  https://ata.wiki.kernel.org/index.php/Libata_FAQ
> 
> > How do I enable IDE on Squeeze?
> > Many thanks.
> 
> You don't.  It's already enabled.  Libata manages your IDE and SATA
> devices.  The old IDE drivers are deprecated.
> 
> -- 
> Stan
> 
> 

Just build my own custom kernel from linux-source-2.6.32 package
I enabled VIA module in the .config, since VIA is my chipset
And there comes up E-IDE at the boot up.

tcat@lynx:/usr/src/linux$
diff /boot/config-2.6.32-5-686 /boot/config-2.6.32-10.00.Custom

4c4
< # Sat Jun 11 19:11:36 2011 
---
> # Mon Jul 18 07:09:10 2011
1436a1437
> CONFIG_IDE_TIMINGS=y
1494c1495
< # CONFIG_BLK_DEV_VIA82CXXX is not set
---
> CONFIG_BLK_DEV_VIA82CXXX=m

It took a while to compile, about 8 hours.
Not sure what is better for me, end/user/wise, SCSI or E-IDE?
Devices in both kernels report themselves as UDMA-xxx (VIA vt82c686b),

I notice a slight performance gain in E-IDE one flavour.

-- 
Tomas Kral 


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1311017807.2803.21.camel@lynx.localhost.localdomain



Re: Dual Monitor How To?

2011-07-18 Thread Randy Kramer
On Monday 18 July 2011 02:37:40 pm Alan Chandler wrote:
> Life gets stranger.  A reboot this evening and this problem no longer
> occurs in dmesg
>
> I also eventually get the format of BusID options correct in my
> Xorg.conf file and now both screens are working again with the
> nouveau driver alongside the intel one EXCEPT as soon as I get both
> screens up (as opposed to just the intel one) the icons loose their
> transparency round the edge in Gnome Panel and Desktop/

Does that mean all is good?

I have sort of a piggyback question / subject to bring up.

I use two monitors on my system.  I tried it probably 5 years or so ago 
with two separate video cards and ran into a lot of little problem--it 
worked, but it was aggravating--things happened like when I dragged a 
window from one screen to the other, sometimes the window got stuck 
halfway, in any case it was often a very jerky movement.

After that, I got an nVidia card with what I think they call "TwinView".  
Basically, it has outputs for two monitors (sometimes two identical 
output connections, like the D15 connector, but some cards do the same 
thing with two different connectors).  

Anyway, at a certain level, to the computer, to a great extent, the two 
monitors seem like one--a drag from one screen to the other is just 
done internally on that one video card.  Less load on the CPU (or 
whatever--maybe some DMA?) and just a lot less hassle (for the computer 
and for me).

This even works:
   * for different size monitors (I run one 22" at 1124x768 and one 17" 
at 800x600--the two resolutions make the font size almost the same on 
the two monitors, and the views "abut" each other--the 800x600 screen 
is oriented so the top of it matches the top of the 1124x768 
screen--and I just don't (normally) put things at the missing bottom 
168 pixels of that screen.
   * things like Xinerama work, so, at some level, even if the CPU 
doesn't have to handle transfers between the two windows, the CPU knows 
there are two, and it is in the xorg.conf file (iirc) that I set things 
so that the small monitor is to the left of the large monitor and such.

I don't do gaming, but if I did, I would think this approach would be 
even better (unless I couldn't get the resolution I needed.  I could 
get higher resolution on these screens with the particular card I'm 
using, but the 1024x768 seems nice for me (e.g., the font size is what 
I've been used to for 10-12 years (or longer).

Randy Kramer




-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201107181533.39662.rhkra...@gmail.com



Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Brad Rogers
On Mon, 18 Jul 2011 20:39:03 +0200
Tomas Kral  wrote:

Hello Tomas,

> I think it is an IDE floppy, it has got a ribbon cable attaching it to
> the main board.

Further to what Lisi says;

How many pins has the connector/cable got?  If it's a 40 way cable, then
yes, it's IDE.  If fewer than 40, it's an ordinary floppy.

-- 
 Regards  _
 / )   "The blindingly obvious is
/ _)radnever immediately apparent"
Dream on white boy, dream on black girl
Original Sin - INXS


signature.asc
Description: PGP signature


Re: Dual Monitor How To?

2011-07-18 Thread Sven Joachim
On 2011-07-18 20:37 +0200, Alan Chandler wrote:

> Life gets stranger.  A reboot this evening and this problem no longer
> occurs in dmesg
>
> I also eventually get the format of BusID options correct in my
> Xorg.conf file and now both screens are working again with the nouveau
> driver alongside the intel one EXCEPT as soon as I get both screens up
> (as opposed to just the intel one) the icons loose their transparency
> round the edge in Gnome Panel and Desktop/

This could be because Xinerama is not really compatible with desktop
effects.  See http://nouveau.freedesktop.org/wiki/MultiMonitorDesktop,
especially the "Multiple Graphics Cards, or the story of Xinerama"
section.

Sven


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87bowrmlve@turtle.gmx.de



Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Lisi
On Monday 18 July 2011 19:39:03 Tomas Kral wrote:
> I think it is an IDE floppy, it has got a ribbon cable attaching it to
> the main board.

"Normal" floppies have a ribbon cable.  Is the ribbon cable attached to yours 
an *IDE* ribbon cable?

Lisi


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201107182008.29277.lisi.re...@gmail.com



Re: Re: Debian with HP ProLiant DL120 G7

2011-07-18 Thread Aniruddha
On Mon, Jul 18, 2011 at 2:16 PM, Simon Quantrill
 wrote:
> Im installing debian on a 120 G7 I can get Lenny installed but when I try to 
> upgrade or directly install to squeeze the raid controller seems to go 
> missing probably a firmware issue still fault finding but I found your 
> question so thought I would answer
>
Thanks for the reply, fortunately I don't need raid.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/campsvvyrmrru45wzf+ejsvepuyfw2+750yq95oz4jus-nhl...@mail.gmail.com



Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Tomas Kral
On Sat, 2011-07-16 at 11:42 +0200, Stan Hoeppner wrote:
> On 7/16/2011 3:52 AM, Tomas Kral wrote:
> 
> > linux-image-2.6.32-5-686  2.6.32-35
> > 
> > $ su -c'mount /dev/fd0 /media/floppy0' # or
> > $ mount /floppy
> 
> > [ 8744.146621] FAT: utf8 is not a recommended IO charset for FAT
> > filesystems, filesystem will be case sensitive!
> > 
> > But no floppy is really mounted
> 
> > as it should as per fstab
> > $ cat /etc/fstab | grep floppy
> > /dev/fd0/media/floppy0  autorw,user,noauto  0   0
> > 
> > Is there a floppy support in 2.6.32-5-686 at all?
> > In /boot/config-2.6.32-5-686
> > There is no floppy module set
> > CONFIG_BLK_DEV_IDEFLOPPY=m
> 
> Is this a standard floppy interface drive or an IDE floppy?

I think it is an IDE floppy, it has got a ribbon cable attaching it to
the main board.

> 
> > Also noticed kernel boots with SCSI devices
> > /dev/sda.. /dev/sr..
> > But my hardware is IDE/ATAPI based.
> 
> Read about libata:  https://ata.wiki.kernel.org/index.php/Libata_FAQ
> 
> > How do I enable IDE on Squeeze?
> > Many thanks.
> 
> You don't.  It's already enabled.  Libata manages your IDE and SATA
> devices.  The old IDE drivers are deprecated.
> 
> -- 
> Stan
> 
> 

-- 
Tomas Kral 


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1311014343.2607.10.camel@lynx.localhost.localdomain



Re: Why /etc/init.d/.depend.start did not caught editing to /etc/insserv.conf?

2011-07-18 Thread Bob Proulx
Regid Ichira wrote:
> Bob Proulx writes:
> > Regid Ichira wrote:
> > >   I have installed the ntp package.  I edited /etc/insserv.conf, and
> > > added +ntp to the $time line.
> > > 
> > > $ grep time /etc/insserv.conf
> > > # The system time has been set correctly
> > > $time   +hwclock +ntp
> > 
> > Why do you think this manual action is needed?  Why isn't simply
> > installing the ntp package sufficient?
> 
>   I tried to avoid adding $all for my case. $all was suggested by myself,
> in bts#634215: Having init.d/cron run early breaks the semantics of @reboot
> time specification.

Looking at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634215 I
see that you have found a problem related to @reboot with cron
starting earlier using the dependency based booting than it did before
with the legacy based manually specified number booting.  But there
are some missing details.

I assume that you have an action in @reboot from cron that is now
being run before ntp is started and that your hardware clock isn't
functioning?  Because if your hardware clock is functioning then time
should be pretty close to correct even without ntp running.  But I
know if your hardware clock is dead, such as from a dead battery, then
time will be very incorrect until ntp is finished running.  I assume
that your @reboot action is having a problem because it is running in
this intermediate time?  Could you clarify?

> > Won't adding that line create a circular dependency loop between
> > rsyslog and ntp?  rsyslog needs $time.  ntp needs $syslog.
> 
>   I tried that.  It was refused by insserv because of the circular loop.

Right.  And that shows that there is a problem.  These types of
problems have always existed.  I have run into them usually with DNS
nameservers and networking.  Everyone wants DNS nameservice, everyone
wants logging, everyone wants networking and no one is willing to
stage for the bootstrap process.  For the most part Debian has taken a
"head in the sand" approach of ignoring the problem.  But with
dependency based booting this issue is forced.  I think dealing with
the issue is better.  But that does mean that things are going to be
broken until it is really resolved in some reasonable way.  Welcome to
the front line of the battle.

For what it is worth I think your customization of cron to add a
dependency is the right way to go.  Did you try adding ntp to the
"Should-Start" list?  I think that would be better.

Bob


signature.asc
Description: Digital signature


Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Tomas Kral
On Sun, 2011-07-17 at 20:58 +0200, Bob Proulx wrote:
> Nico Kadel-Garcia wrote:
> > May I recommend sidestepping this entirely?  ...  The "mtools"
> > toolkit is vastly more efficient and safer, ...
> 
> +1 on the use of mtools.  It is definitely a good solution.
> 
> However if someone is wanting to mount the device then it is probably
> because they want to use a graphical file manager.  (Otherwise why
> mount it?  Just use the mtools.)  In which case mtools being command a
> line driven interface probably won't be a good fit for them.
> 
> Bob

In GNOME GUI if I clicked on "Floppy Drive" icon it says "No media
found".

I have to issue command,
$ udisks --mount /dev/fd0
Then "Floopy Drive" icon is not changed for the actual mounted floppy
state icon with the label name, it appears next to "Floppy Drive" as a
new icon.

Also I noticed that gfloopy was dropped in Squeeze, I cannot format
floppies anymore using GUI.

However, I can use any or both of:

superformat, mformat commands.

Disk Utility borrowed from RedHat refuses to format IDE floppy, perhaps
it can format USB sticks, haven't tested that one yet. Not sure if USB
sticks need formatting.

Cheers

-- 
Tomas Kral 


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/1311013887.2607.8.camel@lynx.localhost.localdomain



Re: Dual Monitor How To?

2011-07-18 Thread Alan Chandler

On 18/07/11 06:53, Alan Chandler wrote:

On 17/07/11 16:30, Sven Joachim wrote:

On 2011-07-17 16:22 +0200, Alan Chandler wrote:


I've recently upgraded by desktop computer so it now has Intel H67
Integrated Graphics built into the motherboard and I have an
additional Geforce 8400GS graphics card in the PCI-express slot. I
have two monitors, the primary an 24in Iiyama connected via hdmi cable
to the mother boards graphics and an older 17in Iiyama connected via
VGA (no other choice) cable to the Geforce card.

After a brief check of the BIOS settings, I got it to boot with the
primary monitor being the H67 integrated graphics

Booting up Debian (unstable) the graphics displayed fine on the
primary monitor and the secondary monitor gained a few diagnostic
messages during boot (seemingly related to its graphics card) but
nothing else.


Can you please show the output of "dmesg | grep -E '(drm|nouveau)'"?

Sven




[ 5.298727] [drm] Initialized drm 1.1.0 20060810
[ 5.536118] [drm] MTRR allocation failed. Graphics performance may suffer.
[ 5.536287] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[ 5.536288] [drm] Driver supports precise vblank timestamp query.
[ 5.549553] nouveau :01:00.0: enabling device ( -> 0003)
[ 5.549559] nouveau :01:00.0: PCI INT A -> GSI 16 (level, low) ->
IRQ 16
[ 5.549563] nouveau :01:00.0: setting latency timer to 64
[ 5.905240] fbcon: inteldrmfb (fb0) is primary device
[ 6.083714] fb0: inteldrmfb frame buffer device
[ 6.083715] drm: registered panic notifier
[ 6.083805] [drm] Initialized i915 1.6.0 20080730 for :00:02.0 on
minor 0
[ 6.084809] [drm] nouveau :01:00.0: Unsupported chipset 0x
[ 6.085247] nouveau :01:00.0: PCI INT A disabled
[ 6.085250] nouveau: probe of :01:00.0 failed with error -22



I've swapped back to trying to use this driver and my NON transparent
icon problem has disappeared, but I am left with this issue with the
nouveau driver; Quite which unsupported chipset it is refering to






Life gets stranger.  A reboot this evening and this problem no longer 
occurs in dmesg


I also eventually get the format of BusID options correct in my 
Xorg.conf file and now both screens are working again with the nouveau 
driver alongside the intel one EXCEPT as soon as I get both screens up 
(as opposed to just the intel one) the icons loose their transparency 
round the edge in Gnome Panel and Desktop/


--
Alan Chandler
http://www.chandlerfamily.org.uk


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

Archive: http://lists.debian.org/4e247d74.1050...@chandlerfamily.org.uk



Re: Debian on Acer Aspire 5745PG?

2011-07-18 Thread Lucas Lima
About the nvidia driver, you can try download it directly from the debian
repositories (wich is the best option) or download it from the nvidia site.
The file from nvidia's site is a ".run" so you just need to execute it and
follow the steps wich will be provided by the software itself.

2011/7/18 Brad Alexander 

> I'm visiting with my son-in-law and daughter and he wants to install Debian
> on this laptop. I was able to successfully install squeeze. However, the two
> remaining problems I have at this point are a) getting the nvidia drivers
> working and b) getting the touch screen to work. I know they are probably
> related...
>
> For the nvidia drivers, the laptop seems to have two video cards, an Intel
> and an nVidia 330M. When the installer set up X, it is using the Intel card.
> When I try to set up the nvidia drivers, I get "no screens found"...
>
> As for the touch screen, it responds, in that whenever you touch the
> screen, the cursor goes to the upper left corner.
>
> Has anyone had any success getting these features working on this laptop?
>
> Thanks,
> --b
>


Re: Does Debian 6.0.2.1 for amd64 work properly ?

2011-07-18 Thread Walter Hurry
On Mon, 18 Jul 2011 12:15:54 +1200, C.T.F. Jansen wrote:

> Greetings,
>Is Debian 6.0.2.1, or something more recent, for the amd64
> architecture OK ? It will be used to upgrade Debian 5.0.6 on an Asus
> PRO50G notebook. Thanks.

I'm using Squeeze x86_64 with no problems at all, if that helps:

walterh@saturn:~$ cat /proc/cpuinfo
processor   : 0
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 104
model name  : AMD Athlon(tm) 64 X2 Dual-Core Processor TK-42
stepping: 2
cpu MHz : 800.000
cache size  : 512 KB
physical id : 0
siblings: 2
core id : 0
cpu cores   : 2
apicid  : 0
initial apicid  : 0
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext 
fxsr_opt rdtscp lm 3dnowext 3dnow rep_good extd_apicid pni cx16 lahf_lm 
cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips: 1596.12
TLB size: 1024 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps

processor   : 1
vendor_id   : AuthenticAMD
cpu family  : 15
model   : 104
model name  : AMD Athlon(tm) 64 X2 Dual-Core Processor TK-42
stepping: 2
cpu MHz : 800.000
cache size  : 512 KB
physical id : 0
siblings: 2
core id : 1
cpu cores   : 2
apicid  : 1
initial apicid  : 1
fpu : yes
fpu_exception   : yes
cpuid level : 1
wp  : yes
flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext 
fxsr_opt rdtscp lm 3dnowext 3dnow rep_good extd_apicid pni cx16 lahf_lm 
cmp_legacy svm extapic cr8_legacy 3dnowprefetch
bogomips: 1596.12
TLB size: 1024 4K pages
clflush size: 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp tm stc 100mhzsteps

walterh@saturn:~$ 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/j01ruc$54m$1...@dough.gmane.org



Debian on Acer Aspire 5745PG?

2011-07-18 Thread Brad Alexander
I'm visiting with my son-in-law and daughter and he wants to install Debian
on this laptop. I was able to successfully install squeeze. However, the two
remaining problems I have at this point are a) getting the nvidia drivers
working and b) getting the touch screen to work. I know they are probably
related...

For the nvidia drivers, the laptop seems to have two video cards, an Intel
and an nVidia 330M. When the installer set up X, it is using the Intel card.
When I try to set up the nvidia drivers, I get "no screens found"...

As for the touch screen, it responds, in that whenever you touch the screen,
the cursor goes to the upper left corner.

Has anyone had any success getting these features working on this laptop?

Thanks,
--b


Re: Problem with libnss3-1d

2011-07-18 Thread auslands-kv
Very easy. Edit

/etc/java-6-openjdk/security/nss.cfg

and change

nssLibraryDirectory = /usr/lib

to

nssLibraryDirectory = /usr/lib/x86_64-linux-gnu

If you use a 64 bit system. If you use a 32 bit system, look into 'dpkg -L 
libnss3-1d' to find the location of libnss3.so and use that.

Cheers

Michael

Am Montag, 18. Juli 2011 schrieb DebianTR.WP:
> Hey,
> 
> I am having the same problem for several days and was googling around
> for an answer. I am very happy now that you did it :)
> 
> Can you explain how you edited the line?
> 
> Thanks
> 
> On Mon, 2011-07-18 at 08:56 +0200, Michael wrote:
> > The site works again. And great, the fix (edit /etc/java-6-
> > openjdk/security/nss.cfg) works for me.
> > 
> > Thanks a lot.
> > 
> > Michael


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201107181839.53084.auslands...@gmx.de



gcc using Pipes Done!

2011-07-18 Thread Martin McCormick
lee writes:
> And leftchannel_pipe is supposed to be an array?  Without seeing more of
> your program, we're left in the dark ...

Now that I got it working, here it is. All this does is
to give you an 8-bit 8000 sample per second audio feed from both
the left and right channels of the sound card as
/tmp/leftchannel and /tmp/rightchannel. For it to work, you must
cat both files in to either a program that continuously reads
them or cat both in to respective files because the fifo I ended
up using instead of pipes blocks if you stuff bytes in to the
input and there is nothing to read the fifo yet.

If you start this code without anything connected to
both fifos, it patiently blocks until both streams are going,
then it works fine.

There is a catch as to the type of audio you can use
with this code because it actually has to configure the sound
card to sample in stereo at 32000 samples per second. The
Nyquist low-pass filter needed on both the input and output of
the sound card is set to block sounds above 16000 HZ but the
sound streams we want can only carry audio at 4000 HZ. I do not
have any kind of Nyquist filtering built in to this code so the
best audio to feed it is audio from radio scanners,
communications receivers and any other device with a limited
audio bandwidth so that the low-pass filtering is already there.
Do anything else such as feeding music from a FM broadcast radio
or television sound source in to the splitter gives you sound
that is peculiar to listen to because frequencies above 4 KHZ
heterodyne with the sampling rate and produce what are called
aliases. Trust me. S sounds sound like tearing paper and chimes
or bells put one in mind of the world through a bad ear ache.

Here is the splitter code. I used sample code from
others to learn how to setup the sound card. Many thanks to all.

/*
Create 2 independent 8-bit sound streams
*/
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

#define RATE 32000   /* the sampling rate */
#define rightchbits 0b /*all left channel bits*/
#define highleftchbits 0b /*all high left 
channel bits*/
#define highrightchbits 0b /*all left channel 
bits*/
#define leftchbits 0b /*all left channel bits*/
#define SIZE 16  /* sample size: 8 or 16 bits */
#define CHANNELS 2  /* 1 = mono 2 = stereo */

signed long int sample = 0;
signed long int prevsample = 0;
signed long int rawleft = 0;
signed long int rawright = 0;
signed long int prevleft = 0;
signed long int prevright = 0;
signed long testsample = 0;
void cleanup();
int main(int argc, char **argv)
{ /*main start*/
  int fd;   /* sound device file descriptor */
  int arg;  /* argument for ioctl calls */
  int status;   /* return status of system calls */
signed long lefthighbytestore = 0;
signed long righthighbytestore = 0;
signed long highbytestore = 0;
unsigned char leftbyte = 0;
unsigned char rightbyte = 0;
char rightswitch = 0;
char *leftchannel_fifo = "/tmp/leftchannel";
char *rightchannel_fifo = "/tmp/rightchannel";
/*Code starts*/
/*Get rid of any old fifos.*/
cleanup();
  /* open sound device */
  fd = open("/dev/dsp", O_RDONLY);
  if (fd < 0) {
perror("open of /dev/dsp failed");
exit(1);
  }
  /* set sampling parameters */
  arg = SIZE;  /* sample size */
  status = ioctl(fd, SOUND_PCM_WRITE_BITS, &arg);
  if (status == -1)
perror("SOUND_PCM_WRITE_BITS ioctl failed");
  if (arg != SIZE)
perror("unable to set sample size");

  arg = CHANNELS;  /* mono or stereo */
  status = ioctl(fd, SOUND_PCM_WRITE_CHANNELS, &arg);
  if (status == -1)
perror("SOUND_PCM_WRITE_CHANNELS ioctl failed");
  if (arg != CHANNELS)
perror("unable to set number of channels");

  arg = RATE;  /* sampling rate */
  status = ioctl(fd, SOUND_PCM_WRITE_RATE, &arg);
  if (status == -1)
perror("SOUND_PCM_WRITE_WRITE ioctl failed");

if (mkfifo( leftchannel_fifo, 0600) < 0) {
  if (errno == EEXIST)
printf("Message Queue (i.e. FIFO) %s already exists\n", leftchannel_fifo);
  else {
perror("Unable to create UNIX FIFO\n");
return -1;
}
}
if (mkfifo( rightchannel_fifo, 0600) < 0) {
  if (errno == EEXIST)
printf("Message Queue (i.e. FIFO) %s already exists\n", rightchannel_fifo);
  else {
perror("Unable to create UNIX FIFO\n");
return -1;
}
}
 if ((leftchannel_fifo = fopen(leftchannel_fifo,"w")) == NULL) {
  perror("/tmp/leftchannel");
  exit(1);
 }
 if ((rightchannel_fifo = fopen(rightchannel_fifo,"w")) == NULL) {
  perror("/tmp/rightchannel");
  exit(1);
 }
  while (1) { /* loop until Control-C */
status = read(fd,& sample, sizeof(sample)); /*Get sample.*/
if (!(rightswitch & 3))
{/*process every 4TH sample.*/
/*This is how we get back to 8000 samples per second.*/
/*Start process here.*/
rawleft = (sample & leftchbits);
rawright = (sample & rightchbits);
righthigh

Re: firewall?

2011-07-18 Thread Johannes Obermueller

On 07/18/2011 05:27 AM, hadi motamedi wrote:

Dear All
I have put my windows machine behind my debian firewall server with
just one NIC. At now, the windows machine can ping 192.9.9.3 but
cannot resolve valid url (like www.google.com). I have set DNS for it
as well. Can you please let me know what is the missing step?
Thank you




Did you check whether your firewall blocks port 53 (DNS)?


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

Archive: http://lists.debian.org/4e244ac6.6060...@gmx.at



Re: Debian package building for single files or virtual packages?

2011-07-18 Thread Alex Mestiashvili

On 07/18/2011 03:36 PM, Nico Kadel-Garcia wrote:

I'm facing some locally used tools that consist of only single files,
such as "mkrdns". I'd love to wrap it up in a .deb, but the dh-make
and related tools seem oriented around software that comes in tarballs
and has Makefile or autoconf or Makefile.PL already built into them.
And while amazingly expert at RPM, I'm relatively new to Debian and
haven't been building my own packages.

Is there a package building guideliine, or a good example, for a
package that is simply one important script or file from an upstream
source?


   

Hi ,

The proper place to ask about packaging is debian-mentors@ list

In your case you'll normally need to have a $pkgname.install file (man 
dh_install)  which will "install" you script  to the proper location and 
a default (generated by dh_make) rules file .


Best regards ,
Alex


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

Archive: http://lists.debian.org/4e2443aa.30...@biotec.tu-dresden.de



Re: Getting Rid of Cruft in /var/lib/dpkg/status

2011-07-18 Thread Regid Ichira
David Baron  012.net.il> writes:

> 
> Get load of these on any dpkg/apt operation:
> 
> dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 39750 
> package 'libmal0':
>  missing architecture
> dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 40988 
> package 'hwdata-knoppix':
>  missing architecture
> 
> Not all of them are left over from the original Knoppix-3 installation.
> 
> How do I clean this up short of hand editing 1000s of entries one by one?
> 


  There could be a way to refresh the status file.  I am not
familiar with one.  You still might want to read dpkg man page,
or google for it.
  For start, you might want to have a list of the offending lines.
You can try grep, sed, or whatever textual tool you are familiar
with.  And you might divide and conquer: separate the grepping
for Knoppix left overs, and those that are not.





-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/loom.20110718t153120-...@post.gmane.org



Debian package building for single files or virtual packages?

2011-07-18 Thread Nico Kadel-Garcia
I'm facing some locally used tools that consist of only single files,
such as "mkrdns". I'd love to wrap it up in a .deb, but the dh-make
and related tools seem oriented around software that comes in tarballs
and has Makefile or autoconf or Makefile.PL already built into them.
And while amazingly expert at RPM, I'm relatively new to Debian and
haven't been building my own packages.

Is there a package building guideliine, or a good example, for a
package that is simply one important script or file from an upstream
source?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/caocn9rxt7yjfeefnbkaz6jbpcfjrefnjwpae_wtggn3ihgy...@mail.gmail.com



Re: firewall?

2011-07-18 Thread Regid Ichira
hadi motamedi  gmail.com> writes:

> 
> On 7/18/11, Tom Furie  furie.org.uk> wrote:
> > On Mon, Jul 18, 2011 at 03:48:14AM -0400, hadi motamedi wrote:
> >
> >> I have set the same DNS on both my debian firewall and windows macine.
> >
> > And that would be what? You can ping an IP address from Windows, but
> > can't resolve names. What is the situation with Debian?
> >
> > Cheers,
> > Tom
> >
> > --
> > Let me do my TRIBUTE to FISHNET STOCKINGS ...
> >
> My debian firewall can both ping and browse valid ip & url  .
> 
> 

  Can you set your Windows machines to resolve names from other
DNS, say google (8.8.8.8 and 8.8.4.4), or your ISP?  If this 
setup turns out to be working, can you repeat it for your Debian
DNS?



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/loom.20110718t151759...@post.gmane.org



Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Nico Kadel-Garcia
On Mon, Jul 18, 2011 at 6:48 AM, Roger Leigh  wrote:
> On Sun, Jul 17, 2011 at 12:57:46PM -0400, Nico Kadel-Garcia wrote:
>> On Sun, Jul 17, 2011 at 4:58 AM, Tomas Kral  wrote:
>>
>> May I recommend sidestepping this entirely? Mounted floppy drives have
>> *HORRIBLE* performance.
>
> Huh?  A mounted floppy should have vastly superior performance to
> mtools, precisely because it is mounted, and the kernel can do
> proper write caching and lazy flushing of data.  In comparison,
> mtools uses the block device directly, and can't do any caching.
> This should result in terrible performance for anything but
> occasional single file transfers, and even then you lose something.

No, directory duplication or access both ways is considerably faster
with mtools as well. Keeping a write-accessible filesystem mounted
makes a lot of assumptions about the ability to do things lke run the
kernel function "stat" and get filesystem information quickly, and is
issuing a lot of unnecesary queries against a very slow hardware when
it is mounted  It's really only necesasry occasionally for most floppy
operations, and keeping the filesystem mounted makes incredible user
delays in normal operations.

Try using mtools versus a mounted floppy. I predict that you'll
welcome the time saved, although you might have to change some habits.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/CAOCN9rzKifaD9_nsY8=6nsn92nnd9wjhwyubw_tzf0qcxyo...@mail.gmail.com



Re: Re: Debian with HP ProLiant DL120 G7

2011-07-18 Thread Simon Quantrill
Im installing debian on a 120 G7 I can get Lenny installed but when I try to 
upgrade or directly install to squeeze the raid controller seems to go missing 
probably a firmware issue still fault finding but I found your question so 
thought I would answer


Simon

PGP.sig
Description: This is a digitally signed message part


Re: Wrestling with Dell Precision laptop. You too? Discuss tips & experience

2011-07-18 Thread Wawrzek Niewodniczanski

On 07/17/11 20:33, Paul Johnson wrote:

Here's my progress report on Debian and the Dell Precision M4600.

[...]

I have worked A LOT on the touchpad question.

[...]

Thanks for great update. I have M6510 and the same problems, so I'm 
going to give the patch a try. BTW I'm left handed and I found 
additionally problem with touchpad. One click is 'bind' to left click 
rather to main click.


Cheers,
Wawrzek
--
Wawrzyniec (Wawrzek) Niewodniczan'ski - (niewod @ LinkedIn 
)

System Administrator - Engineering Services Team (XenServer)
Citrix Systems, Building 101, Cambridge Science Park, CB4 0FY, Cambridge
PhD in Quantum Chemistry, MSc in Molecular Engineering


New install -> Laptop, dual boot with Win7, config with LVM+LUKS fails if the encryption layer is on top of LVM layer

2011-07-18 Thread yudi v
I am trying to install Debian Squeeze 32bit on a laptop with 750Gb Advanced
Format WD drive.

the partition scheme I have in my mind is like this:

sda1 100GB  Win7
sda2 500GB  LVM (also the PV and the VG)
-LV 500MB /boot
-LV 15GB /root (encrypted)
-LV  50GB /home (encrypted)
-LV  4GB swap partition (encrypted)
- leave the rest unassigned for the time being
sda3 150GB  NTFS ( whatever is left)


I realize that Debian default install encrypts the whole PV not the
individual LVs, I tried couple of times to setup LUKS encryption on top of
the LVM as mentioned above but failed miserably, it always fails at the
stage where it is trying to install software. By the way I am using
debian-6.0.2.1-i386-DVD-1.iso

I would like to know couple of things:

1. Is the setup valid, is it possible to have all the partitions in the LVM
with some of them in encrypted containers (/, /home, swap). I know that this
is possible without encryption.
2. if this setup is possible, I would like to know if there is a way to
decrypt all the encrypted LVs with one pass phrase.

-- 
Kind regards,
Yudi


Re: firewall?

2011-07-18 Thread hadi motamedi
On 7/18/11, Tom Furie  wrote:
> On Mon, Jul 18, 2011 at 03:48:14AM -0400, hadi motamedi wrote:
>
>> I have set the same DNS on both my debian firewall and windows macine.
>
> And that would be what? You can ping an IP address from Windows, but
> can't resolve names. What is the situation with Debian?
>
> Cheers,
> Tom
>
> --
> Let me do my TRIBUTE to FISHNET STOCKINGS ...
>
My debian firewall can both ping and browse valid ip & url  .


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+n+swhet7cbszu6sowkd3mehqqddydesbtsoyfucqjawux...@mail.gmail.com



Re: Cannot mount floppies in Squeeze

2011-07-18 Thread Roger Leigh
On Sun, Jul 17, 2011 at 12:57:46PM -0400, Nico Kadel-Garcia wrote:
> On Sun, Jul 17, 2011 at 4:58 AM, Tomas Kral  wrote:
> 
> May I recommend sidestepping this entirely? Mounted floppy drives have
> *HORRIBLE* performance.

Huh?  A mounted floppy should have vastly superior performance to
mtools, precisely because it is mounted, and the kernel can do
proper write caching and lazy flushing of data.  In comparison,
mtools uses the block device directly, and can't do any caching.
This should result in terrible performance for anything but
occasional single file transfers, and even then you lose something.

> The "mtools" toolkit is vastly more efficient
> and safer, much less likely to corrupt a file in the midst of writing
> it to the floppy and ejecting the file during the write, or requiring
> a "sync" before hitting the eject button, and much more clear about
> the fact that "cp" to a mounted floppy may not preserve ownership and
> the file name the way you expect.

I'll agree that if you are using filesystems with ownership and
permissions on the floppy such as minixfs/extfs, these can cause
problems.  And not flushing/umounting a mounted filesystem before
ejecting can cause problems, but this shouldn't be any more
dangerous (i.e. corruption probability) than ejecting mid-write;
it's just easier to trigger if you aren't using mtools.


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.


signature.asc
Description: Digital signature


Re: firewall?

2011-07-18 Thread Tom Furie
On Mon, Jul 18, 2011 at 03:48:14AM -0400, hadi motamedi wrote:

> I have set the same DNS on both my debian firewall and windows macine.

And that would be what? You can ping an IP address from Windows, but
can't resolve names. What is the situation with Debian?

Cheers,
Tom

-- 
Let me do my TRIBUTE to FISHNET STOCKINGS ...


signature.asc
Description: Digital signature


Re: Problem with libnss3-1d

2011-07-18 Thread DebianTR.WP
Hey,

I am having the same problem for several days and was googling around
for an answer. I am very happy now that you did it :)

Can you explain how you edited the line?

Thanks

On Mon, 2011-07-18 at 08:56 +0200, Michael wrote: 
> The site works again. And great, the fix (edit /etc/java-6-
> openjdk/security/nss.cfg) works for me.
> 
> Thanks a lot.
> 
> Michael
> 
> 



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/1310982435.29228.2.camel@eren-deb64



RE: Multiple Network Gateways

2011-07-18 Thread Bonno Bloksma
Hi,

>> In here you have some duplicate information that is not needed. In the eth0
>> section the netmask 255.255.255.240 together with the ip-address of 
>> 10.10.98.100
>> automaticaly defines the network and broadcast address you give in the next
>> lines. You can leave them out.

> They are added by the Debian installer, not me. But yep, you are right.

[.]

> auto eth1
> iface eth1 inet static
>   address 192.168.100.100
>   netmask 255.255.255.0
>
> all of my 192.168.100.0/24 traffic will be routed through eth1. But the
> thing I don't understand here is that: Say I typed "ping 192.168.100.1".
> How will it know that it will need to use 192.168.100.98 as a gateway to
> 192.168.100.1?

If that is what you want then you have created an impossible combination of 
network adresses.
The 192.168.100.* addresses are ALL on the same network segment, that is what 
the netmask 255.255.255.0 is telling Linux. So it is impossible to have a 
192.168.100.x address routed via another 192.168.100.x address. 
I have looked once more at your original drawing a I do not see where 
192.168.100.1 is located in your network. It should be in the same segment as 
the reyiz eth1 interface and the pampa eth3 interface. If it is not then the 
address is wrong.

If pampa has another network connected to it, like 192.168.99.0 (netmask 
255.255.255.0) and you want all trafic for 192.168.99.0 routed via pampa then 
the eth1 section on reyiz becomes:

auto eth1
iface eth1 inet static
address 192.168.100.100
netmask 255.255.255.0
post-up ip route add 192.168.99.0/24 via 192.168.100.98
downip route del 192.168.99.0/24 via 192.168.100.98

In that case don't forget to tell pampa where to reach the other networks with 
the proper routing Lines.


>> You also have some dns lines in that interfaces file. As far as I know that 
>> is
>> not alowed and those lines should be in the /etc/resolv.conf file.

> Yep, /etc/resolv.conf solves the issue in a static manner, but the dns-*
> parameters I used in interfaces(8) are provided by the resolvconf
> package.

Ok, read somethings about that package. Did not know it existed. I have no need 
for it and a normal 'man interfaces' or 'info interfaces' on my systems does 
not mention this at all, which is why I thought there was something wrong.

Bonno






--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/009f01cc452e$12a754b0$37f5fe10$@blok...@tio.nl



Re: NumLock in console [SOLVED].

2011-07-18 Thread Sthu Deus
Thank You very much for Your time and answer, Stephen:

>If kbd is installed, a similar setting is available
>in /etc/kbd/config (LEDS=+num).  This setting works for the text
>consoles (by default, vt1 through vt6).

It worked for me w/o even console-tools installation.

The topic is closed.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e23fcac.10600e0a.350e.5...@mx.google.com



Re: Why /etc/init.d/.depend.start did not caught editing to /etc/insserv.conf?

2011-07-18 Thread Regid Ichira
Bob Proulx  proulx.com> writes:

> 
> Regid Ichira wrote:
> >   I have installed the ntp package.  I edited /etc/insserv.conf, and
> > added +ntp to the $time line.
> > 
> > $ grep time /etc/insserv.conf
> > # The system time has been set correctly
> > $time   +hwclock +ntp
> 
> Why do you think this manual action is needed?  Why isn't simply
> installing the ntp package sufficient?
> 

  I tried to avoid adding $all for my case. $all was suggested by myself,
in bts#634215: Having init.d/cron run early breaks the semantics of @reboot
time specification.

> Won't adding that line create a circular dependency loop between
> rsyslog and ntp?  rsyslog needs $time.  ntp needs $syslog.
> 

  I tried that.  It was refused by insserv because of the circular loop.

> Bob
> 





-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/loom.20110718t103942...@post.gmane.org



[SOLVED] Re: Virtually installing a virtual package?

2011-07-18 Thread Nuno Magalhães
Hi

>>There has to be a switch for that or maybe a better way to achieve it
>>without needing to lie the whole apt database about apache real status :-?

That was my first guess, but there was nothing (i could find) in the
manpage. Besides, the whole point of a package manager is to *prevent*
you from not installing packages you should in the first place ;)

The think is when i used checkinstall i forgot to set "Provides:
httpd". Thankfully, zabbix depends on apache or httpd.

> You might want to have a look at equivs, which basically creates
> dummy packages to fulfil dependencies.

Had some issues with the syntax at first but worked like a charm. Thanks  :)

-- 
"On the internet, nobody knows you're a dog."


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/cadqa9ubbcdeqgo1gswd+t8dncgycyrz+xpmlvwsxwgfjogy...@mail.gmail.com



Re: Multiple Network Gateways

2011-07-18 Thread Erwan David
On 18/07/11 10:21, Volkan YAZICI wrote:
> [Before going with the rest of the reply, I'd like to thank who (lee,
> William Hopkins, Johannes Obermueller, Bonno Bloksma, Andrew McGlashan,
> Camaleón) sincerely answered to my question.]
> 
> On Fri, 15 Jul 2011 23:31:05 +0200, "Bonno Bloksma" writes:
>> In here you have some duplicate information that is not needed. In the eth0
>> section the netmask 255.255.255.240 together with the ip-address of 
>> 10.10.98.100
>> automaticaly defines the network and broadcast address you give in the next
>> lines. You can leave them out.
> 
> They are added by the Debian installer, not me. But yep, you are right.
> 
>> A gateway statement means: send ANYTHING for which there is no specific 
>> route in
>> the routing table to this address which can be reached via this interface. 
>> There
>> is usualy just one gateway statement in the entire interfaces file unless one
>> wants to do multiple gateway routing, which is usualy done with the more
>> flexible and sophosticate ip statement.
>>
>> So the gateway statement in the eth1 section is what causes the problem. You 
>> do
>> NOT want the gateway statement there as that is NOT the address to send all
>> unspecified traffic to, that is what you want the eth0 interface to use the
>> 10.10.98.110 address for.
>>
>> The address and netmask statement together define which network is behind the
>> eth1 interface and which traffic should be send to the network behind that
>> interface. In this case that will automaticaly be all trafic for
>> 192.168.100.0/24, that is all trafic for 192.168.100.*
> 
> So you mean that, via a configuration as follows
> 
> --8<---cut here---start->8---
> auto lo
> iface lo inet loopback
> 
> auto eth0
> iface eth0 inet static
>   address 10.10.98.100
>   netmask 255.255.255.240
>   gateway 10.10.98.110
>   dns-nameservers 10.10.10.11 10.10.10.12
>   dns-search ozun.int
> 
> auto eth1
> iface eth1 inet static
>   address 192.168.100.100
>   netmask 255.255.255.0
> --8<---cut here---end--->8---
> 
> all of my 192.168.100.0/24 traffic will be routed through eth1. But the
> thing I don't understand here is that: Say I typed "ping 192.168.100.1".
> How will it know that it will need to use 192.168.100.98 as a gateway to
> 192.168.100.1?

It does not.
 iface eth1 inet static
   address 192.168.100.100
   netmask 255.255.255.0

tells the system that 192.168.100.1 is on the network connected to eth1.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e23ee68.4020...@rail.eu.org



Re: Multiple Network Gateways

2011-07-18 Thread Volkan YAZICI
[Before going with the rest of the reply, I'd like to thank who (lee,
William Hopkins, Johannes Obermueller, Bonno Bloksma, Andrew McGlashan,
Camaleón) sincerely answered to my question.]

On Fri, 15 Jul 2011 23:31:05 +0200, "Bonno Bloksma" writes:
> In here you have some duplicate information that is not needed. In the eth0
> section the netmask 255.255.255.240 together with the ip-address of 
> 10.10.98.100
> automaticaly defines the network and broadcast address you give in the next
> lines. You can leave them out.

They are added by the Debian installer, not me. But yep, you are right.

> A gateway statement means: send ANYTHING for which there is no specific route 
> in
> the routing table to this address which can be reached via this interface. 
> There
> is usualy just one gateway statement in the entire interfaces file unless one
> wants to do multiple gateway routing, which is usualy done with the more
> flexible and sophosticate ip statement.
>
> So the gateway statement in the eth1 section is what causes the problem. You 
> do
> NOT want the gateway statement there as that is NOT the address to send all
> unspecified traffic to, that is what you want the eth0 interface to use the
> 10.10.98.110 address for.
>
> The address and netmask statement together define which network is behind the
> eth1 interface and which traffic should be send to the network behind that
> interface. In this case that will automaticaly be all trafic for
> 192.168.100.0/24, that is all trafic for 192.168.100.*

So you mean that, via a configuration as follows

--8<---cut here---start->8---
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
  address 10.10.98.100
  netmask 255.255.255.240
  gateway 10.10.98.110
  dns-nameservers 10.10.10.11 10.10.10.12
  dns-search ozun.int

auto eth1
iface eth1 inet static
  address 192.168.100.100
  netmask 255.255.255.0
--8<---cut here---end--->8---

all of my 192.168.100.0/24 traffic will be routed through eth1. But the
thing I don't understand here is that: Say I typed "ping 192.168.100.1".
How will it know that it will need to use 192.168.100.98 as a gateway to
192.168.100.1?

> You also have some dns lines in that interfaces file. As far as I know that is
> not alowed and those lines should be in the /etc/resolv.conf file.

Yep, /etc/resolv.conf solves the issue in a static manner, but the dns-*
parameters I used in interfaces(8) are provided by the resolvconf
package.


Best.


--
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87d3h82e3c@alamut.ozun.int



Problem with gnome-panel on Sid

2011-07-18 Thread José Luis Segura Lucas

Hello!

I'm using Debian sid on several computers without any problem, but 
yesterday I boot one od them, recently updated and I have a lot of 
problem with gnome panels.


I usually had two panels (top and bottom), but when I started my gnome 
session, I can't see any of them.


When I press Alt+F1 the menu, and the entire top panel, is shown. The 
bottom panel is not shown, but if I maximize a Window, the space for the 
panel is still there. If I press the mouse right button in this space, I 
get the usual response of the desktop (change wallpaper, create 
folder...) instead the panel menu.


Today, with a second screen, I have a strange left-panel on it. It 
doesn't allow to add any applet, and if I look at its properties, I can 
see that is configured on the right side (it is shown on the left of the 
second screen).


Are somebody having a similar problem?
How can I check what upgraded package are causing the problem?
Can it be a problem with the Gnome3 packages recently added to sid?

Thanks in advance and best regards :-)


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

Archive: http://lists.debian.org/4e23e950.8000...@gmx.es



Re: firewall?

2011-07-18 Thread hadi motamedi
On 7/18/11, Stan Hoeppner  wrote:
> On 7/18/2011 2:12 AM, hadi motamedi wrote:
>
>> Yes, you are right. I have set for the DNS on my windows machine but
>> it cannot still browse valid ulr.
>
> What IP address did you plug into the Windows machine toi use for DNS
> resolution?  Sun's (Oracle's) 192.9.9.3 name server is not a public
> resolver AFAIK.  Did you try using the same resolver as that configured
> on your Debian host?
>
> --
> Stan
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/4e23e277.7080...@hardwarefreak.com
>
>
I have set the same DNS on both my debian firewall and windows macine.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+n+swjbyljxladd8z5qjoq8mris6k1399kk3zg9qdd22xn...@mail.gmail.com



Re: firewall?

2011-07-18 Thread Stan Hoeppner
On 7/18/2011 2:12 AM, hadi motamedi wrote:

> Yes, you are right. I have set for the DNS on my windows machine but
> it cannot still browse valid ulr.

What IP address did you plug into the Windows machine toi use for DNS
resolution?  Sun's (Oracle's) 192.9.9.3 name server is not a public
resolver AFAIK.  Did you try using the same resolver as that configured
on your Debian host?

-- 
Stan


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/4e23e277.7080...@hardwarefreak.com



Getting Rid of Cruft in /var/lib/dpkg/status

2011-07-18 Thread David Baron
Get load of these on any dpkg/apt operation:

dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 39750 
package 'libmal0':
 missing architecture
dpkg-query: warning: parsing file '/var/lib/dpkg/status' near line 40988 
package 'hwdata-knoppix':
 missing architecture

Not all of them are left over from the original Knoppix-3 installation.

How do I clean this up short of hand editing 1000s of entries one by one?


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201107181012.42033.d_ba...@012.net.il



Re: firewall?

2011-07-18 Thread hadi motamedi
On 7/18/11, Csanyi Pal  wrote:
> hadi motamedi  writes:
>
>> On 7/18/11, Csanyi Pal  wrote:
>>> hadi motamedi  writes:
>>>
 Dear All
 I have put my windows machine behind my debian firewall server with
 just one NIC. At now, the windows machine can ping 192.9.9.3 but
 cannot resolve valid url (like www.google.com). I have set DNS for it
 as well. Can you please let me know what is the missing step?
 Thank you
>>>
>>> You must setup Windows system to automatically get nameservers IP
>>> address, or must setup this manually.
>
>> I have done Internet sharing on my debian and its eth0 is connected to
>> the Internet. I have put windows machine on the subnet of its eth0:1
>> and set windows default gw as debian eth0:1 . I have set DNS for
>> windows machine as well. At now, it can ping valid ip addresses but
>> cannot browse valid url.
>
> So resolving DNS doesn't works on you Windows system, right?
>
> --
> Regards, Pal
> 
>
>
> --
> To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmas...@lists.debian.org
> Archive: http://lists.debian.org/87y5zwax59.fsf@debian-asztal.excito
>
>
Yes, you are right. I have set for the DNS on my windows machine but
it cannot still browse valid ulr.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/ca+n+swhxtdw7chcf_k+y5jzt-opkesp2eypejmn4vstw8+9...@mail.gmail.com



Re: firewall?

2011-07-18 Thread Csanyi Pal
hadi motamedi  writes:

> On 7/18/11, Csanyi Pal  wrote:
>> hadi motamedi  writes:
>>
>>> Dear All
>>> I have put my windows machine behind my debian firewall server with
>>> just one NIC. At now, the windows machine can ping 192.9.9.3 but
>>> cannot resolve valid url (like www.google.com). I have set DNS for it
>>> as well. Can you please let me know what is the missing step?
>>> Thank you
>>
>> You must setup Windows system to automatically get nameservers IP
>> address, or must setup this manually.

> I have done Internet sharing on my debian and its eth0 is connected to
> the Internet. I have put windows machine on the subnet of its eth0:1
> and set windows default gw as debian eth0:1 . I have set DNS for
> windows machine as well. At now, it can ping valid ip addresses but
> cannot browse valid url.

So resolving DNS doesn't works on you Windows system, right?

-- 
Regards, Pal



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/87y5zwax59.fsf@debian-asztal.excito