modifying debian installer image

2017-08-08 Thread Fourhundred Thecat
I have downloaded debian netinstaller:

wget
http://ftp.debian.org/debian/dists/stretch/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz

I have unpacked the image, and I was looking around to try to understand
how it works. I assumed, there was some config file with a list of all
the packages that are going to be installed.

I would like to modify that list, and replace systemd with sysvinit-core.

I don't see any such package list in the installer, and I could not find
much information on how the installer works.

Could somebody please help me understand, where the installer gets the
list of packages it installs ? And how I can change that list?

PS: I know I can remove systemd and install sysvinit-core *after* the
installation. But I am trying to avoid installing systemd and then
removing it. I would like to install sysvinit-core right away.

I am also using preseeding for installation, but as far as I know, this
cannot be achieved with preseeding alone.

thanks,




Re: Help with USB audio card

2017-08-08 Thread Rodolfo Medina
David Christensen  writes:

> On 08/08/17 00:38, Rodolfo Medina wrote:
>>
>> $ cat /etc/debian_version
>> buster/sid
>
> Have you tried the USB audio interface with the stable version of Debian?
>
>
>> $ uname -a
>> Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64
>> GNU/Linux
>
> Okay.
>
>
>> `dmesg | grep -i cm108 -A 10 -B 10' produced no output at all...
>
> Try running the command after you plug in the USB audio interface.


I had done so...  no output.

Thanks
Rodolfo



Re: Debian8 is not playing with Synology using NFS/CIFS

2017-08-08 Thread Joerg Desch
Am Tue, 08 Aug 2017 14:31:33 + schrieb Curt:

> Did you look on the innertubes? This seems to be quite a popular
> question. No help here, for instance?
> 
> https://superuser.com/questions/860553/user-id-mapping-with-nfs-on-
synology-nas
> 
> If not I'm sorry for wasting your time.

Thanks for the link. I think the whole NFS stuff is a really ugly and 
partly broken dinosaur. I'm using NFS (v3) for decades now, and all the 
glitches are still not really solved. And CIFS for Linux clients seems to 
be no way to go.

I'm afraid I have to setup Kerberos to work-around the broken ipmapd 
stuff. More than a little bit "oversized"...

Thanks for the help!



Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Teemu Likonen
Teemu Likonen [2017-08-09 07:42:43+03] wrote:

> rm --force "$HOME/bin"

Fix:

rm --force --recursive "$HOME/bin"

-- 
/// Teemu Likonen   - .-..    //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///


signature.asc
Description: PGP signature


Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Teemu Likonen
spp mg [2017-08-09 04:56:58+08] wrote:

> For example , some guy put a "rm" but named "ls" to ~/bin . This "ls"
> can be virus or ransomware , user may not know it's not which he
> want("ls").

The "some guy" who does that will also modify the ~/.profile file or
similar startup scripts to _ensure_ that their program is in the
beginning of the PATH, no matter what the PATH variable was originally.

If $USER has a malicious program running with their $UID the program can
do everything the $USER can do. It's a game over situation and default
settings in ~/.profile or similar do not matter.

But sometimes it may be useful to write a root-owner startup script (one
example: /etc/X11/Xsession.d/50custom-stuff) which could do something
like

rm --force "$HOME/bin"
cp --recursive --force /etc/skel/. "$HOME"

so that some default files are restored at every login.

-- 
/// Teemu Likonen   - .-..    //
// PGP: 4E10 55DC 84E9 DFF6 13D7 8557 719D 69D3 2453 9450 ///


signature.asc
Description: PGP signature


Re: Help with USB audio card

2017-08-08 Thread David Christensen

On 08/08/17 00:38, Rodolfo Medina wrote:


$ cat /etc/debian_version
buster/sid


Have you tried the USB audio interface with the stable version of Debian?



$ uname -a
Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 GNU/Linux


Okay.



`dmesg | grep -i cm108 -A 10 -B 10' produced no output at all...


Try running the command after you plug in the USB audio interface.


David



Re: Help with USB audio card

2017-08-08 Thread Rodolfo Medina
deloptes  writes:

> Rodolfo Medina wrote:
>
>>   hw_ptr   : 0
>> #+ | 00%^C
>> Aborted by signal Interrupt...
>> #+ | 00%
>> 
>
> Before you abort, did you see any indication - these percent signs are
> actually indicating the level of the input.


This is the output without abortion:

$ arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null
Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Route conversion PCM (sformat=S16_LE)
  Transformation table:
0 <- 0
1 <- 0
Its setup is:
  stream   : CAPTURE
  access   : RW_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 2
  rate : 44100
  exact rate   : 44100 (44100/1)
  msbits   : 16
  buffer_size  : 22050
  period_size  : 5513
  period_time  : 125011
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min: 5513
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 22050
  silence_threshold: 0
  silence_size : 0
  boundary : 6206523236469964800
Slave: Hardware PCM card 2 'USB PnP Sound Device' device 0 subdevice 0
Its setup is:
  stream   : CAPTURE
  access   : MMAP_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 1
  rate : 44100
  exact rate   : 44100 (44100/1)
  msbits   : 16
  buffer_size  : 22050
  period_size  : 5513
  period_time  : 125011
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min: 5513
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 22050
  silence_threshold: 0
  silence_size : 0
  boundary : 6206523236469964800
  appl_ptr : 0
  hw_ptr   : 0
#+ | 00%


> If not, is it perhaps muted?
>
> You can use to unmute
>
> alsamixer -c 2
>
> -c 2 is for the second card not to mix up with arecord -c1 which is telling
> arecord to use mono input

I unmuted it from within alsamixer menu: F6 and went into the USB card table.
Then I gave the command...

Cheers,
Rodolfo



Re: Help with USB audio card

2017-08-08 Thread deloptes
Rodolfo Medina wrote:

>   hw_ptr   : 0
> #+ | 00%^C
> Aborted by signal Interrupt...
> #+ | 00%
> 

Before you abort, did you see any indication - these percent signs are
actually indicating the level of the input.


If not, is it perhaps muted?

You can use to unmute

alsamixer -c 2

-c 2 is for the second card not to mix up with arecord -c1 which is telling
arecord to use mono input


regards





Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Michael Lange
Hi,

On Wed, 9 Aug 2017 04:56:58 +0800
spp mg  wrote:

(...)
> For example , some guy put a "rm" but named "ls" to ~/bin . This "ls"
> can be virus or ransomware , user may not know it's not which he
> want("ls").

a user without administrator privilege can generally put "malware"
anywhere in *his own* home directory and it could possibly cause the same
damage from there (if the system is configured properly hopefully not
that much), so this does not matter, I think.

I think you forget that your "some guy" must be either the user him- or
herself or the system administrator (root)! If your users or
sysadmins desperately want to shoot themselves in the foot, don't worry,
they will find some way, you will not be able to stop them. But why would
normal people do such a thing? And any malware programmer who secretly
"injects" something bad into your system will probably not rely on ~/bin
being at the start of PATH, these people have other ways.

> 
> So I think put ~/bin to tail of $PATH has better security for normal
> user.

Why? If the user puts a program called "evilmalware" there, it simply
does not matter where in PATH it is. And when the user does something
sane instead, as in my "poedit" example, it will no longer work :(

> 
> For me, I will avoid use same name with exist command, and for user
> who want use same name , I believe he know or will learn how to modify
> $PATH.
> 
> 
> I mean , put ~/bin in tail of $PATH will batter for default setting,
> so does developer has another reason to put to beginning ?

I think the reason is exactly as I and others have said, the benefit to
security you get by omitting ~/bin from the beginning of PATH is more
"feeling" than "reality", the real dangers are waiting somewhere else :)
And the benefit of this default setting is that a user without privilege
may override a system default command. 

Best regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Where there's no emotion, there's no motive for violence.
-- Spock, "Dagger of the Mind", stardate 2715.1



Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread spp mg
2017-08-09 4:04 GMT+08:00 Michael Lange :
> Hi,
>
> On Wed, 9 Aug 2017 03:11:48 +0800
> spp mg  wrote:
>
>> Hi all
>>
>> In the ~/.profile has below default setting:
>>
>> --
>> # set PATH so it includes user's private bin if it exists
>> if [ -d "$HOME/bin" ] ; then
>> PATH="$HOME/bin:$PATH"
>> fi
>> --
>>
>> Why put ~/bin beginning ? Is that dangerous ?
>
> like other people already pointed out there shouldn't be anything
> dangerous about this.
> One possible use case is for example that you could put there a
> minimal script that temporarily overrides some environment variable, like
> one I have here which reads:
>
> #!/bin/bash
> GTK_IM_MODULE=gtk /usr/bin/poedit $@
> exit $?
>
> This way I can conveniently call "poedit " with the desired
> setting of GTK_IM_MODULE without either having to type the whole thing
> each time or else having to permanently change GTK_IM_MODULE's setting
> (the default value of which I modified for other reasons).
>
> Best regards
>
> Michael
>
> .-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.
>
> Fascinating, a totally parochial attitude.
> -- Spock, "Metamorphosis", stardate 3219.8
>

Thinks to reply (very fast :D)

I think it's may dangerous because generally system command should be
highter older then user's command.

For example , some guy put a "rm" but named "ls" to ~/bin . This "ls"
can be virus or ransomware , user may not know it's not which he
want("ls").

So I think put ~/bin to tail of $PATH has better security for normal user.

For me, I will avoid use same name with exist command, and for user
who want use same name , I believe he know or will learn how to modify
$PATH.


I mean , put ~/bin in tail of $PATH will batter for default setting,
so does developer has another reason to put to beginning ?



Re: Laser Printer recommendation...

2017-08-08 Thread Jape Person

On 08/08/2017 02:01 PM, Doug wrote:
...

It always amazes me that people who get a driver made specifically
for a device, a driver that has significantly more capability than
one that came with their Linux os, would refuse to use it. It hasn't
cost them anything, just as the Linux os hasn't cost them anything,
so it is FREE. (Don't tell me they paid for it with the
printer--they couldn't have bought the printer without subsidizing
the driver, so essentially it is free.)  Same goes for video drivers.
It's like trying to swim with one hand tied behind your back.

--doug




It always amazes me that people think that something that didn't cost 
them any additional money is necessarily free. We live in a society 
chock full of nefarious operators (commercial, governmental, and 
free-lance). There can be a lot of issues with just accepting a 
manufacturer's software. I've seen the support disc for a printer 
install a half-dozen or more services (and set them to run automatically 
at system start) without any notification whatsoever to the user.


I'd also say that the Open Source drivers available for many devices do 
not differ significantly in usable functionality (as opposed to lacking 
special "features" from the proprietary ones. Furthermore, many users 
don't even need all of the regular functionality provided by the 
proprietary drivers. How many of us have multi-function printing devices 
at home which include fax capability? How many of us actually use that 
fax capability at home? If you don't need it, why install additional 
software to support it?


Some of the proprietary driver packages I've seen appear to be a 
hodge-podge of Open Source / Freeware / Proprietary software collected 
by support groups that are barely holding on by their fingernails. How 
often is that stuff perused for security or functional issues? They're 
barely getting it out of the door to keep up with the plethora of new 
printer models! It can be a bit horrifying to watch a truly ugly 
installation process grinding away for minutes doing whatever it wants 
under the root account -- often without signifying just what it's doing 
to ownership and permissions or what it may be altering in config files 
or just what it's dumping in system folders.


I'm pretty sure that the vendors don't always know just what they're 
providing in their driver packages. Whoever wrote the installation notes 
for some of the commercial printer drivers I've played with recently 
definitely didn't know how to install those drivers -- on any OS.


I'd rather use drivers from the official repos. The people who put those 
packages together know the OS and its desktop environments, ostensibly 
are following the policies of the distro, are communicating with members 
of other teams pertinent to use of the driver, and are presenting their 
packages for an assessment process by testing and unstable users and 
release teams. Me likey.


A proprietary driver has to at least appear to be well made, provide 
reasonable documentation, and offer me something very special to make my 
risk / benefit analysis go its way. And, no matter how great the 
proprietary driver is, I won't use it if the only real difference 
between it and the Open Source driver is that it supports something I 
don't use.


Just some thoughts on what some of the people who amaze you may be thinking.

Or you could read Brian's response, which is far more pithy and succinct.

:-)



Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Michael Lange
Hi,

On Wed, 9 Aug 2017 03:11:48 +0800
spp mg  wrote:

> Hi all
> 
> In the ~/.profile has below default setting:
> 
> --
> # set PATH so it includes user's private bin if it exists
> if [ -d "$HOME/bin" ] ; then
> PATH="$HOME/bin:$PATH"
> fi
> --
> 
> Why put ~/bin beginning ? Is that dangerous ?

like other people already pointed out there shouldn't be anything
dangerous about this.
One possible use case is for example that you could put there a
minimal script that temporarily overrides some environment variable, like
one I have here which reads:

#!/bin/bash
GTK_IM_MODULE=gtk /usr/bin/poedit $@
exit $?

This way I can conveniently call "poedit " with the desired
setting of GTK_IM_MODULE without either having to type the whole thing
each time or else having to permanently change GTK_IM_MODULE's setting
(the default value of which I modified for other reasons).

Best regards

Michael

.-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.

Fascinating, a totally parochial attitude.
-- Spock, "Metamorphosis", stardate 3219.8



Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread Nicolas George
Le duodi 22 thermidor, an CCXXV, spp mg a écrit :
> Why put ~/bin beginning ? Is that dangerous ?

No.

-- 
  Nicolas George



Re: Why debian put ~/bin beginning of $PATH

2017-08-08 Thread John Elliot V
On 09/08/17 05:11, spp mg wrote:
> In the ~/.profile has below default setting:
> 
> --
> # set PATH so it includes user's private bin if it exists
> if [ -d "$HOME/bin" ] ; then
> PATH="$HOME/bin:$PATH"
> fi
> --
> 
> Why put ~/bin beginning ?

So that your own stuff has precedence...

> Is that dangerous ?

Not really. Only you or a system administrator would have write access
to ~/bin. What makes you think it might be dangerous?

-- 
E: j...@jj5.net
P: +61 4 3505 7839
W: https://www.jj5.net/
<>

[no subject]

2017-08-08 Thread . .


Gesendet von Mail für Windows 10
Hallo du chreieb ich hab dich was gefrackt was habich dich gefrackt antwort 
danke


Why debian put ~/bin beginning of $PATH

2017-08-08 Thread spp mg
Hi all

In the ~/.profile has below default setting:

--
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
--

Why put ~/bin beginning ? Is that dangerous ?

Thanks .



Re: Laser Printer recommendation...

2017-08-08 Thread Brian
On Tue 08 Aug 2017 at 13:01:30 -0500, Doug wrote:

> It always amazes me that people who get a driver made specifically for a
> device, a driver that has significantly more capability than one that came
> with their Linux os,
> would refuse to use it. It hasn't cost them anything, just as the Linux os
> hasn't cost them anything, so it is FREE. (Don't tell me they paid for it
> with the printer--they
> couldn't have bought the printer without subsidizing the driver, so
> essentially it is free.)  Same goes for video drivers. It's like trying to
> swim with one hand tied behind your back.

It's strange, isn't it, that some people do not want to knuckle under
and do what they are told is best for them. The same people want some
control over the goods they own and the services they use. Wierdos.

Ignore them and join the hive.

-- 
Brian



Re: LibreOffice - middle click paste does not work.

2017-08-08 Thread Kamil Jońca
Ben Finney  writes:

> kjo...@poczta.onet.pl (Kamil Jońca) writes:
>
>> Sid box with libreoffice.
>> After recent upgrade I realized that paste selection with Middle Mouse
>> button does not work. Can anyone confirm? I do not know if I have to
>> report bug :)
>
> Thanks for asking first.
>
> You'll need to describe the behaviour in a similar way as if you were
> reporting a bug, though.
>
> For example: What did you upgrade, from what version to what version?
If I can believe "/var/log/apt/history.log"
--8<---cut here---start->8---
Upgrade: libreoffice-math:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-script-provider-js:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-report-builder-bin:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-sdbc-postgresql:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-java-common:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-base:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), libreoffice-core:amd64 
(1:5.3.5~rc1-3, 1:5.4.0-1), libreoffice-sdbc-firebird:amd64 (1:5.3.5~rc1-3, 
1:5.4.0-1), python3-uno:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-style-galaxy:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-base-core:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-impress:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), ure:amd64 (5.3.5~rc1-3, 
5.4.0-1), libreoffice-writer:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-common:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), uno-libs3:amd64 
(5.3.5~rc1-3, 5.4.0-1), libreoffice-help-en-us:amd64 (1:5.3.5~rc1-3, 
1:5.4.0-1), libreoffice-calc:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-base-drivers:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-draw:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1), 
libreoffice-avmedia-backend-gstreamer:amd64 (1:5.3.5~rc1-3, 1:5.4.0-1)
--8<---cut here---end--->8---
it was upgrade frrom 5.3.5~rc1 to 5.4.0-1


> Can you give a repeatable sequence of steps that others can also try to
> reproduce what you're seeing?
1. Open Writer or Calc window 
2. Open emacs or xterm  window,  write some random text.
3.Select this text (but DON'T use Ctrl-Insert or sth)
4. change focus to Calc or Writer window
5. push middle mouse button
So far this makes paste selected text into Calc window.


> Is there anything special about your
> environment that we should know?

I tested it on two boxes.
1. Box with "ancient" configuration (fvwm, no kde or gnome)
2. laptop with xfce desktop
KJ


-- 
http://wolnelektury.pl/wesprzyj/teraz/
Leibowitz's Rule:
When hammering a nail, you will never hit your
finger if you hold the hammer with both hands.



Re: disable orange progress running apt

2017-08-08 Thread Felix Miata
Brian composed on 2017-08-08 13:49 (UTC+0100):

> Apologies. I missed off a ";" when translating the changelog entry to
> be used in your 99mono file. Also Progress-Fancy turns out to be not
> what you want.

> "-o Apt::Color=0" works for me not to see the orange colour in stable
> and unstable. In a file it works on stable but not on unstable. There
> seems to be a bug here.

Success in Stretch using

Apt::Color "false";

:-D

>From what documentation did Curt and you determine Apt::Color was the solution?
Google turns up "Apt::Color "false";" or "Apt::Color 0" nowhere except in this
thread's archive.

Thanks to all who responded!
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



Re: Help with USB audio card

2017-08-08 Thread Rodolfo Medina
deloptes  writes:

> Rodolfo Medina wrote:
>
>> I just bought an external USB audio card.  I plugged it into the USB port
>> of my
>> PC and plugged a 3.5mm jack microphone into the `mic' input of the card. 
>> It is shown in lsusb:
>> 
>> $ lsusb
>> Bus 002 Device 005: ID 17ef:602e Lenovo
>> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
>> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
>> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio
>> Controlle Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp.
>> RTS5129 Card Reader Bus 001 Device 002: ID 0438:7900 Advanced Micro
>> Devices, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root
>> hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
>> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> 
>> 
>> and also in arecord:
>> 
>> $ arecord --list-devices
>>  List of CAPTURE Hardware Devices 
>> card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662
>> rev3 Analog]
>>   Subdevices: 0/1
>>   Subdevice #0: subdevice #0
>> card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog
>> [ALC662 rev3 Alt Analog]
>>   Subdevices: 1/1
>>   Subdevice #0: subdevice #0
>> card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
>>   Subdevices: 1/1
>>   Subdevice #0: subdevice #0
>> 
>> Besides, I ran alsamixer, selected the USB card and unmuted everything. 
>> But
>> then, when I try to record, no sound is recorded.  I do:
>> 
>>  $ sox -t alsa hw:2,0 output.wav
>> 
>> , or
>> 
>>  $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav
>> 
>> , or also within Audacity.  But nothing, my voice is not recorded.  Please
>> help whoever can.
>
>
> A short howto I wrote years ago
>
> 1) find out cards and inputs
>
> shell> cat /proc/asound/cards
>  0 [Intel  ]: HDA-Intel - HDA Intel
>   HDA Intel at 0xff95 irq 22
>  1 [HVR900 ]: USB-Audio - WinTV HVR-900
>   WinTV HVR-900 at usb-:00:1a.7-3, high speed
>  2 [Webcam ]: USB-Audio - Philips SPC 1000NC Webcam
>   Philips CE Philips SPC 1000NC Webcam at
> usb-:00:1a.7-5.4, high speed
>
> => I'm going to use the Webcam built in mic => card # 2
>
> 2) find out the input
>
> shell> cat /proc/asound/devices
>   0: [ 0]   : control
>   1:: sequencer
>   6: [ 0- 2]: hardware dependent
>   7: [ 0- 3]: hardware dependent
>  16: [ 0- 0]: digital audio playback
>  17: [ 0- 1]: digital audio playback
>  19: [ 0- 3]: digital audio playback
>  24: [ 0- 0]: digital audio capture
>  32: [ 1]   : control
>  33:: timer
>  56: [ 1- 0]: digital audio capture
>  64: [ 2]   : control
>  88: [ 2- 0]: digital audio capture
>
> => my input is the capture on the second card
>
>  88: [ 2- 0]: digital audio capture
>
> 3) so no we can test the mic
>
> shell> arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null



Here are my outputs:

$ cat /proc/asound/cards
 0 [HDMI   ]: HDA-Intel - HDA ATI HDMI
  HDA ATI HDMI at 0xfea64000 irq 39
 1 [Generic]: HDA-Intel - HD-Audio Generic
  HD-Audio Generic at 0xfea6 irq 16
 2 [Device ]: USB-Audio - USB PnP Sound Device
  C-Media Electronics Inc. USB PnP Sound Device at 
usb-:00:12.0-1.3, full spe



$ cat /proc/asound/devices
  2: [ 0]   : control
  3: [ 0- 3]: digital audio playback
  4: [ 0- 0]: hardware dependent
  5: [ 1]   : control
  6: [ 1- 0]: digital audio playback
  7: [ 1- 0]: digital audio capture
  8: [ 1- 2]: digital audio capture
  9: [ 1- 0]: hardware dependent
 10: [ 2]   : control
 11: [ 2- 0]: digital audio playback
 12: [ 2- 0]: digital audio capture
 33:: timer


$ arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null
Recording WAVE '/dev/null' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Route conversion PCM (sformat=S16_LE)
  Transformation table:
0 <- 0
1 <- 0
Its setup is:
  stream   : CAPTURE
  access   : RW_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 2
  rate : 44100
  exact rate   : 44100 (44100/1)
  msbits   : 16
  buffer_size  : 22050
  period_size  : 5513
  period_time  : 125011
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  period_step  : 1
  avail_min: 5513
  period_event : 0
  start_threshold  : 1
  stop_threshold   : 22050
  silence_threshold: 0
  silence_size : 0
  boundary : 6206523236469964800
Slave: Hardware PCM card 2 'USB PnP Sound Device' device 0 subdevice 0
Its setup is:
  stream   : CAPTURE
  access   : MMAP_INTERLEAVED
  format   : S16_LE
  subformat: STD
  channels : 1
  rate : 44100
  exact rate   : 44100 (44100/1)
  msbits   : 16
  buffer_size  : 22050
  period_size  : 5513
  period_time  : 125011
  tstamp_mode  : NONE
  tstamp_type  : MONOTONIC
  per

Re: Laser Printer recommendation...

2017-08-08 Thread Doug


On 08/08/2017 09:29 AM, Celejar wrote:

On Tue, 4 Jul 2017 12:03:45 +0100
Brian  wrote:


On Mon 03 Jul 2017 at 19:15:19 -0400, Celejar wrote:


On Mon, 3 Jul 2017 14:46:08 -0400
Dan Ritter  wrote:

...


A Brother with all of:

- ethernet networking
- duplex
- BR/Script3 (Their PostScript clone, which I think is actually
   GhostScript)

will not need a driver.

Current examples: HL-L5100N ($170), HL-L6200DW ($250)

Very interesting, thanks. Is this documented / explained anywhere? I
think I understand why 1 and 3 might be relevant to the need for
drivers, but 2?

FWIW, my HL-2280DW meets 1 and 2, but not (apparently) 3, and indeed
does seem to require a driver.

I do not see why 1 and 2 are in any way necessary to use a printer
without a proprietary driver. PostScript or PCL6 emulation is, however,
a pre-condition. The HL-2280DW has PCL6 emulation.

Very interesting, thanks. I (re)dipped my toes into the mysteries of
printer setup, and (eventually) configured another version of my
HL-2280 using CUPS settings of "Generic / Generic PCL Laser Printer".
The CUPS test page printed out correctly, although I see that many
options exposed by the Brother proprietary drivers do not seem to be
exposed by the generic one, which makes sense, I suppose. I do like
those options, though (e.g., duplexing and "toner save" / quality
options).

I'll have to do more testing to see whether the core printing
funnctionality, at least, is on par with the proprietary driver's.

Thanks again,

Celejar


It always amazes me that people who get a driver made specifically for a 
device, a driver that has significantly more capability than one that 
came with their Linux os,
would refuse to use it. It hasn't cost them anything, just as the Linux 
os hasn't cost them anything, so it is FREE. (Don't tell me they paid 
for it with the printer--they
couldn't have bought the printer without subsidizing the driver, so 
essentially it is free.)  Same goes for video drivers. It's like trying 
to swim with one hand tied behind your back.


--doug



Background will not change.

2017-08-08 Thread Default User
Hi.

- Debian Unstable.
- Cinnamon desktop environment.
- Updated 2017-08-07, then shut down.
- On 2017-08-08, booted up.

Now, background is the Debian 9 default "Flipper" image.  Background can
not be changed.

What to check / what to do?


Re: Help with USB audio card

2017-08-08 Thread deloptes
Rodolfo Medina wrote:

> Hi all.
> 
> I just bought an external USB audio card.  I plugged it into the USB port
> of my
> PC and plugged a 3.5mm jack microphone into the `mic' input of the card. 
> It is shown in lsusb:
> 
> $ lsusb
> Bus 002 Device 005: ID 17ef:602e Lenovo
> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio
> Controlle Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp.
> RTS5129 Card Reader Bus 001 Device 002: ID 0438:7900 Advanced Micro
> Devices, Inc. Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root
> hub Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> 
> 
> and also in arecord:
> 
> $ arecord --list-devices
>  List of CAPTURE Hardware Devices 
> card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662
> rev3 Analog]
>   Subdevices: 0/1
>   Subdevice #0: subdevice #0
> card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog
> [ALC662 rev3 Alt Analog]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
>   Subdevices: 1/1
>   Subdevice #0: subdevice #0
> 
> Besides, I ran alsamixer, selected the USB card and unmuted everything. 
> But
> then, when I try to record, no sound is recorded.  I do:
> 
>  $ sox -t alsa hw:2,0 output.wav
> 
> , or
> 
>  $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav
> 
> , or also within Audacity.  But nothing, my voice is not recorded.  Please
> help whoever can.
> 
> Thanks,
> 
> Rodolfo


A short howto I wrote years ago

1) find out cards and inputs

shell> cat /proc/asound/cards
 0 [Intel  ]: HDA-Intel - HDA Intel
  HDA Intel at 0xff95 irq 22
 1 [HVR900 ]: USB-Audio - WinTV HVR-900
  WinTV HVR-900 at usb-:00:1a.7-3, high speed
 2 [Webcam ]: USB-Audio - Philips SPC 1000NC Webcam
  Philips CE Philips SPC 1000NC Webcam at
usb-:00:1a.7-5.4, high speed

=> I'm going to use the Webcam built in mic => card # 2

2) find out the input

shell> cat /proc/asound/devices
  0: [ 0]   : control
  1:: sequencer
  6: [ 0- 2]: hardware dependent
  7: [ 0- 3]: hardware dependent
 16: [ 0- 0]: digital audio playback
 17: [ 0- 1]: digital audio playback
 19: [ 0- 3]: digital audio playback
 24: [ 0- 0]: digital audio capture
 32: [ 1]   : control
 33:: timer
 56: [ 1- 0]: digital audio capture
 64: [ 2]   : control
 88: [ 2- 0]: digital audio capture

=> my input is the capture on the second card

 88: [ 2- 0]: digital audio capture

3) so no we can test the mic

shell> arecord -c1 -Dplughw:2,0 -f cd -vv /dev/null


regards



RE: Ik zou mijn opgewonden lichaamsdelen tellen. Jennifer

2017-08-08 Thread Robert Corveleyn
Wens dergelijke berichten niet meer te ontvangen dank U

-Oorspronkelijk bericht-
Van: Jennifer Elkasmi [mailto:i...@ecodemgroup.it] 
Verzonden: dinsdag 8 augustus 2017 10:35
Aan: debian-user@lists.debian.org
Onderwerp: Ik zou mijn opgewonden lichaamsdelen tellen. Jennifer

Maar laten we op jou richten - zijn ze zo zoet als de mijne?

http://bit.ly/2vIo5D3



Re: xsane scanner

2017-08-08 Thread JP
On Tuesday, 8 August 2017 12:49:18 BST Stephen Grant Brown wrote:
> How do I configure a scanner for xsane?
> I am printing to the Canon MG6150, but it is not being recognized as a
> scanner.

Should probably be supported by this:

https://manpages.debian.org/stretch/libsane-common/sane-pixma.5.en.html#FILES

You'll need to put the IP in /etc/sane.d/pixma.conf as described in that 
section, eg. bjnp://

For my MG3250 it sometimes gives an error trying to connect the first time, but 
it wakes the scanner parts and it works the second time.

Regards



Re: Help with USB audio card

2017-08-08 Thread Rodolfo Medina
David Wright  writes:

> On Tue 08 Aug 2017 at 09:38:40 (+0200), Rodolfo Medina wrote:
>> David Christensen  writes:
>> 
>> > On 08/07/17 05:15, Rodolfo Medina wrote:
>> >> Hi all.
>> >>
>> >> I just bought an external USB audio card.  I plugged it into the USB port
>> >> of my PC and plugged a 3.5mm jack microphone into the `mic' input of the
>> >> card.  It is shown in lsusb:
>> >>
>> >> $ lsusb
>> >> Bus 002 Device 005: ID 17ef:602e Lenovo
>> >> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
>> >> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
>> >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> >> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio
>> >> Controlle
>
>  
>> > Please run the following commands, and cut and past the commands and their
>> > outputs into a reply:
>> >
>> > cat /etc/debian_version
>> >
>> > uname -a
>> >
>> > dmesg | grep -i cm108 -A 10 -B 10
>> 
>> 
>> Thanks...
>> 
>> $ cat /etc/debian_version
>> buster/sid
>> 
>> $ uname -a
>> Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64
>> GNU/Linux
>> 
>> `dmesg | grep -i cm108 -A 10 -B 10' produced no output at all...
>
> Assuming dmesg is producing any output (some systems may require
> root), try the address above instead (keeping the -i).
>
> dmesg | grep -i 013c -A 10 -B 10



# dmesg | grep -i 013c -A 10 -B 10
[   68.109662] hid-generic 0003:17EF:602E.0003: input,hidraw1: USB HID v1.11 
Mouse [PixArt USB Optical Mouse] on usb-:00:13.0-1.4/input0
[  124.794483] usb 2-1.4: USB disconnect, device number 5
[  126.295343] usb 2-1.4: new low-speed USB device number 6 using ehci-pci
[  126.407744] usb 2-1.4: New USB device found, idVendor=17ef, idProduct=602e
[  126.407751] usb 2-1.4: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[  126.407755] usb 2-1.4: Product: USB Optical Mouse
[  126.407759] usb 2-1.4: Manufacturer: PixArt
[  126.410985] input: PixArt USB Optical Mouse as 
/devices/pci:00/:00:13.0/usb2/2-1/2-1.4/2-1.4:1.0/0003:17EF:602E.0004/input/input15
[  126.468103] hid-generic 0003:17EF:602E.0004: input,hidraw1: USB HID v1.11 
Mouse [PixArt USB Optical Mouse] on usb-:00:13.0-1.4/input0
[12578.608934] usb 1-1.3: new full-speed USB device number 4 using ehci-pci
[12578.718654] usb 1-1.3: New USB device found, idVendor=0d8c, idProduct=013c
[12578.718660] usb 1-1.3: New USB device strings: Mfr=1, Product=2, 
SerialNumber=0
[12578.718664] usb 1-1.3: Product: USB PnP Sound Device
[12578.718668] usb 1-1.3: Manufacturer: C-Media Electronics Inc.  
[12578.723544] input: C-Media Electronics Inc.   USB PnP Sound Device as 
/devices/pci:00/:00:12.0/usb1/1-1/1-1.3/1-1.3:1.3/0003:0D8C:013C.0005/input/input16
[12578.781249] hid-generic 0003:0D8C:013C.0005: input,hidraw2: USB HID v1.00 
Device [C-Media Electronics Inc.   USB PnP Sound Device] on 
usb-:00:12.0-1.3/input3
[12578.875986] usbcore: registered new interface driver snd-usb-audio


Thanks,
cheers
Rodolfo



Re: Laser Printer recommendation...

2017-08-08 Thread Celejar
On Fri, 7 Jul 2017 11:36:10 +0100
Brian  wrote:

> On Wed 05 Jul 2017 at 15:31:51 +0100, Brian wrote:
> 
> > On Tue 04 Jul 2017 at 09:05:21 -0400, Celejar wrote:
> > 
> > > On Tue, 4 Jul 2017 12:03:45 +0100
> > > Brian  wrote:
> > > 
> > > > On Mon 03 Jul 2017 at 19:15:19 -0400, Celejar wrote:
> > > > 
> > > > > On Mon, 3 Jul 2017 14:46:08 -0400
> > > > > Dan Ritter  wrote:
> > > > > 
> > > > > ...
> > > > > 
> > > > > > A Brother with all of:
> > > > > > 
> > > > > > - ethernet networking
> > > > > > - duplex
> > > > > > - BR/Script3 (Their PostScript clone, which I think is actually
> > > > > >   GhostScript)
> > > > > > 
> > > > > > will not need a driver.
> > > > > > 
> > > > > > Current examples: HL-L5100N ($170), HL-L6200DW ($250)
> > > > > 
> > > > > Very interesting, thanks. Is this documented / explained anywhere? I
> > > > > think I understand why 1 and 3 might be relevant to the need for
> > > > > drivers, but 2?
> > > > > 
> > > > > FWIW, my HL-2280DW meets 1 and 2, but not (apparently) 3, and indeed
> > > > > does seem to require a driver.
> > > > 
> > > > I do not see why 1 and 2 are in any way necessary to use a printer
> > > > without a proprietary driver. PostScript or PCL6 emulation is, however,
> > > > a pre-condition. The HL-2280DW has PCL6 emulation.
> > > 
> > > I know that it has PCL6 emulation, but the fact is that I have never
> > > been able to get it working properly without Brother's binary blob
> > > drivers, nor have I seen any reports of anyone who has.
> > 
> > Depends what you mean by "properly".
> > 
> > The PPD in /etc/cups/ppd has a line beginning *cupsFilter:. . Alter
> > the line to read
> > 
> >   *cupsFilter: "application/vnd.cups-raster 50 rastertohp"
> > 
> > Restart cups and do
> > 
> >   lp -d  /etc/nsswitch
> > 
> > That file prints out perfectly on my PCL/PCLX capable LaserJet. (I used
> > a Brother PPD, with the altered line, for your printer).
> > 
> > I am unsure about "50" in the *cupsFilter: line. "0" might be better.

This seems to work (I used "0", since the existing line had "0"),
except for the fact that each time I print a page (via the CUPS "Print
Test Page" feature), it prints out twice. Why? [I commented out, and
then actually removed, the original cupsFilter line, restarting CUPS
each time.]

> Reports of success from Brother printer users would be of benefit.
> 
> Another technique would be to use a Generic PCL6 (or maybe PCL5) PPD or
> the pxlmono one; a disadvantage might be that needed printer features
> are missing from them but they have been reported to work.

Ah, I guess this is what a reported trying in my other email. As you
suggest, it works, but important features seem to be missing.

Celejar



Re: Debian8 is not playing with Synology using NFS/CIFS

2017-08-08 Thread Curt
On 2017-08-08, Joerg Desch  wrote:
> It drives me crazy. Really. The company I'm working for is switching from 
> a Dell server running Ubuntu to a Synology HA solution. On my desktop, 
> I'm using Debian 8 and only Debian (Yes I know, I can be lucky ;-)).
>
> My first try was to mount the new shares using NFS4 and taraa... 
> imapd. This fails because the ID mapping does not work. On both sides, 
> the (same) domain is inserted into "/etc/imapd.conf". Without any 
> changes. For now, I'm not really sure what ipmapd is for. A hoax? Fun?

Quote:

 For NFSv4 ID mapping to work properly, both client and server must be running
 the idmapd ID Mapper daemon and have the same Domain configured in 
/etc/idmapd.conf.  

Did you look on the innertubes? This seems to be quite a
popular question. No help here, for instance?

https://superuser.com/questions/860553/user-id-mapping-with-nfs-on-synology-nas

If not I'm sorry for wasting your time.

> The second try was the ugly solution using CIFS. The bad insight this 
> morning... Synology disables the "unix extensions". The second... There 
> is no ID mapping too. My hope with CIFS was, that die total user and 
> group stuff is done using "names" and not IDs.
>
> So, if anybody out there is running a Synology server. Is there a working 
> solution to get uid/gip mapping, unix access flags and symlinks?
>
> I'm happy for every (positive) answer. ;-)
>
>


-- 
“Certitude is not the test of certainty.”
--Oliver Wendell Holmes, Jr.



Re: Laser Printer recommendation...

2017-08-08 Thread Celejar
On Tue, 4 Jul 2017 12:03:45 +0100
Brian  wrote:

> On Mon 03 Jul 2017 at 19:15:19 -0400, Celejar wrote:
> 
> > On Mon, 3 Jul 2017 14:46:08 -0400
> > Dan Ritter  wrote:
> > 
> > ...
> > 
> > > A Brother with all of:
> > > 
> > > - ethernet networking
> > > - duplex
> > > - BR/Script3 (Their PostScript clone, which I think is actually
> > >   GhostScript)
> > > 
> > > will not need a driver.
> > > 
> > > Current examples: HL-L5100N ($170), HL-L6200DW ($250)
> > 
> > Very interesting, thanks. Is this documented / explained anywhere? I
> > think I understand why 1 and 3 might be relevant to the need for
> > drivers, but 2?
> > 
> > FWIW, my HL-2280DW meets 1 and 2, but not (apparently) 3, and indeed
> > does seem to require a driver.
> 
> I do not see why 1 and 2 are in any way necessary to use a printer
> without a proprietary driver. PostScript or PCL6 emulation is, however,
> a pre-condition. The HL-2280DW has PCL6 emulation.

Very interesting, thanks. I (re)dipped my toes into the mysteries of
printer setup, and (eventually) configured another version of my
HL-2280 using CUPS settings of "Generic / Generic PCL Laser Printer".
The CUPS test page printed out correctly, although I see that many
options exposed by the Brother proprietary drivers do not seem to be
exposed by the generic one, which makes sense, I suppose. I do like
those options, though (e.g., duplexing and "toner save" / quality
options).

I'll have to do more testing to see whether the core printing
funnctionality, at least, is on par with the proprietary driver's.

Thanks again,

Celejar



Re: Help with USB audio card

2017-08-08 Thread David Wright
On Tue 08 Aug 2017 at 09:38:40 (+0200), Rodolfo Medina wrote:
> David Christensen  writes:
> 
> > On 08/07/17 05:15, Rodolfo Medina wrote:
> >> Hi all.
> >>
> >> I just bought an external USB audio card.  I plugged it into the USB port 
> >> of
> >> my PC and plugged a 3.5mm jack microphone into the `mic' input of the card.
> >> It is shown in lsusb:
> >>
> >> $ lsusb
> >> Bus 002 Device 005: ID 17ef:602e Lenovo
> >> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
> >> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
> >> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
> >> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio 
> >> Controlle

 
> > Please run the following commands, and cut and past the commands and their
> > outputs into a reply:
> >
> > cat /etc/debian_version
> >
> > uname -a
> >
> > dmesg | grep -i cm108 -A 10 -B 10
> 
> 
> Thanks...
> 
> $ cat /etc/debian_version
> buster/sid
> 
> $ uname -a
> Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 
> GNU/Linux
> 
> `dmesg | grep -i cm108 -A 10 -B 10' produced no output at all...

Assuming dmesg is producing any output (some systems may require
root), try the address above instead (keeping the -i).

dmesg | grep -i 013c -A 10 -B 10

Cheers,
David.



Chi sei

2017-08-08 Thread maurizioberny

Mordermi no ma se mi vuoi accarezzare volentieri ciao 



Inviato da Libero Mail per iOS


Re: disable orange progress running apt

2017-08-08 Thread Brian
On Tue 08 Aug 2017 at 05:32:04 -0400, Felix Miata wrote:

> Frank composed on 2017-08-08 10:31 (UTC+0200):
> 
> > Felix Miata composed:
> 
> >> Brian composed on 2017-08-07 33:42 (UTC+0100):
> 
> >>> Of course they work. They just do not fit your purpose.
> 
> >> Work how? Do what? How do I find evidence that either actually do 
> >> anything? So
> >> far all I've seen is that you've said so, here, & earlier, 2017-08-07 18:03
> >> (UTC+0100):
> 
> > It's possible some configuration file already has a line which sets 
> > Dpkg::Progress-Fancy and/or Dpkg::Progress-Fancy::Progress-Bg. Did you 
> > check the files in /etc/apt/apt.conf.d? 
> 
> Yes, then I created a new file there just to install Brian's suggestion, and
> after it failed the other permutations I tried.

Apologies. I missed off a ";" when translating the changelog entry to
be used in your 99mono file. Also Progress-Fancy turns out to be not
what you want.

"-o Apt::Color=0" works for me not to see the orange colour in stable
and unstable. In a file it works on stable but not on unstable. There
seems to be a bug here.

-- 
Brian.



Re: Live recording

2017-08-08 Thread Rodolfo Medina
Jeremy Nicoll  writes:

> On Mon, 7 Aug 2017, at 23:41, Rodolfo Medina wrote:
>
>> Fascinating...!  But now I got very interested in the multi channel audio
>> interface you suggest...  Before looking for one to buy, I'd like to
>> better
>> know and understand how it works...  
>
> They're just boxes which can have more than two mics (or line-level signals
> eg from instruments) plugged into them.  Inside there's multiple analogue-
> to-digital converters.  The digital data from all of these is then sent along
> the USB connection to the computer.  Some interfaces might send all the
> channels so they arrive in a single file on the computer, which then contains
> multiple separate channels, others may directly generate separate files on
> the computer.
>
> It's unimportant which you get because a file containing multiple channels
> can be split into separate files (with eg sox), or a set of files can be
> combined (with eg sox).
>
>
> I can't advise you on what to buy...  because I suspect you're going to spend
> a great deal less than I did when I last bought one...  That was a Tascam
> box:
>
> http://tascam.com/product/us-2000/
>
> which you'll see can handle 16 separate inputs at once...  There's a more
> recent version of that these days...  A box like that is aimed at people used
> to using professional audio equipment.


Your explanation is just what I was looking for...  Very simple and clear.
Here:

 
https://stackoverflow.com/questions/14950823/sox-exe-mixing-mono-vocals-with-stereo-music

it is shown how to operate with sox the way you said.


> There will be lower-spec interfaces around too, but you obviously need to
> find one that's known to work with linux.  You also probably don't want one
> with eg XLR sockets for mics.


Yes, as far as I understand this is probably the main problem: find something
that works with Linux...

Thanks indeed,

Cheers,

Rodolfo



xsane scanner

2017-08-08 Thread Stephen Grant Brown
Hi All,
How do I configure a scanner for xsane?
I am printing to the Canon MG6150, but it is not being recognized as a scanner.
Yours Sincerely 
Stephen Grant Brown

Re: Debian8 is not playing with Synology using NFS/CIFS

2017-08-08 Thread Joerg Desch
Am Tue, 08 Aug 2017 11:34:58 +0100 schrieb Darac Marjal:

> On Tue, Aug 08, 2017 at 10:09:42AM +, Joerg Desch wrote:
>>Am Tue, 08 Aug 2017 11:01:12 +0100 schrieb Darac Marjal:
>>
>>> I'll assume that the Synology is a black box, and so we can't work out
>>> how it's configured.
>>
>>Yes, more or less.
>>
>>
>>> Try "mount -v -t nfs name.or.ip.of.synology:/ /some/mountpoint" and
>>> see what errors result.
>>
>>Mounting isn't the problem. The mount is working without errors
>>
>>mount.nfs: trying text-based options
>>'hard,intr,vers=4,addr=192.168.1.1,clientaddr=192.168.1.88'
>>
>>My only problem is the (very old) goal to get different uid/gid working.
> 
> OK, that's good. NFSv4 doesn't send UIDs/GIDs over the wire any more, it
> sends Usernames and Groups.

Hmm. I'm not so sure

On my local workstation, my ID is 3000. On the Synology, the id is 1027. 
On both machines, my user name is "jd". SO, if the mapping is "name 
based", I should see all the files with uid 1027 on the servers with the 
correct name on the client.

This is not the case! A "ls -l" shows me all the different UIDs, but 
neither the corresponding name, nor "nobody".

I try cp/chmod/chgrp again tomorrow morning and post the result here.

Thanks so far...



Macbook Air - Stretch - getting rather hot

2017-08-08 Thread kelsang sherab
The last few days my machine seems to be getting hot more than usual -
any suggestion of what can i do?

cheers

-Computer-
Processor   : 4x Intel(R) Core(TM) i5-3317U CPU @ 1.70GHz
Memory  : 3955MB (1589MB used)
Operating System: Debian GNU/Linux 9.1
User Name   : sherab 
Date/Time   : Tue 08 Aug 2017 12:41:28 BST
-Display-
Resolution  : 1366x768 pixels
OpenGL Renderer : Mesa DRI Intel(R) Ivybridge Mobile 
X11 Vendor  : The X.Org Foundation
-Multimedia-
Audio Adapter   : HDA-Intel - HDA Intel PCH
-Input Devices-
 Lid Switch
 Power Button
 Sleep Button
 Power Button
 PC Speaker
 FaceTime HD Camera (Built-in)
 Video Bus
 bcm5974
 Apple Inc. Apple Internal Keyboard / Trackpad
 lircd-uinput
 HDA Intel PCH Headphone
 HDA Intel PCH HDMI/DP,pcm  : 3=
 HDA Intel PCH HDMI/DP,pcm  : 7=
 HDA Intel PCH HDMI/DP,pcm  : 8=
 Microsoft Wedge Mobile Keyboard
-Printers-
No printers found



Re: Live recording

2017-08-08 Thread Jeremy Nicoll
On Mon, 7 Aug 2017, at 23:41, Rodolfo Medina wrote:

> Fascinating...!  But now I got very interested in the multi channel audio
> interface you suggest...  Before looking for one to buy, I'd like to
> better
> know and understand how it works...  

They're just boxes which can have more than two mics (or line-level
signals
eg from instruments) plugged into them.  Inside there's multiple
analogue-
to-digital converters.  The digital data from all of these is then sent
along 
the USB connection to the computer.  Some interfaces might send all the 
channels so they arrive in a single file on the computer, which then
contains
multiple separate channels, others may directly generate separate files
on 
the computer.

It's unimportant which you get because a file containing multiple
channels
can be split into separate files (with eg sox), or a set of files can be
combined
(with eg sox).


I can't advise you on what to buy...  because I suspect you're going to
spend a
great deal less than I did when I last bought one...   That was a Tascam
box:

http://tascam.com/product/us-2000/

which you'll see can handle 16 separate inputs at once...  There's a
more recent 
version of that these days...   A box like that is aimed at people used
to using 
professional audio equipment.  

There will be lower-spec interfaces around too, but you obviously need
to find 
one that's known to work with linux.  You also probably don't want one
with 
eg XLR sockets for mics.

-- 
Jeremy Nicoll - my opinions are my own.



Re: Debian8 is not playing with Synology using NFS/CIFS

2017-08-08 Thread Darac Marjal

On Tue, Aug 08, 2017 at 10:09:42AM +, Joerg Desch wrote:

Am Tue, 08 Aug 2017 11:01:12 +0100 schrieb Darac Marjal:


I'll assume that the Synology is a black box, and so we can't work out
how it's configured.


Yes, more or less.



Try "mount -v -t nfs name.or.ip.of.synology:/ /some/mountpoint" and see
what errors result.


Mounting isn't the problem. The mount is working without errors

   mount.nfs: trying text-based options
   'hard,intr,vers=4,addr=192.168.1.1,clientaddr=192.168.1.88'

My only problem is the (very old) goal to get different uid/gid working.


OK, that's good. NFSv4 doesn't send UIDs/GIDs over the wire any more, it 
sends Usernames and Groups. So, if "fred" on your client is UID 1001, 
but 'fred' on the server is UID 1005, then the file will get saved with 
UID 1005. On reading it back, you should get the reverse mapping - 
there's a file belonging to UID 1005, on the server that's "fred" so 
"fred" is sent over the wire and the client sees that as it's own 
version of "fred".


The problem comes when "bill" tries to access the share. "bill" doesn't 
have an account on the server, so he will get mapped to "nobody". This 
probably gives bill read access, but not write access and, certainly, if 
bill CAN write files, they won't end up belonging to them.


So, ideally, you need to find a way to synchronise the user lists. You 
can either manage /etc/passwd (and similar on the Synology) manually, or 
you can look at some sort of Active Directory system whereby clients are 
registered with a central server and perform their name lookups against 
that.





Thanks




--
For more information, please reread.


signature.asc
Description: PGP signature


Re: How to change default umask in Stretch?

2017-08-08 Thread Reco
Hi.

On Mon, Aug 07, 2017 at 03:47:48PM -0500, David Wright wrote:
> On Mon 07 Aug 2017 at 20:00:10 (+), Garrett R. wrote:
> > Does anybody know, this gnome/systemd bug of umask, it this something that 
> > I will have to wait for Debian 10 before it is fixed? Or will Debian 9 
> > implement a fix when/if gnome/systemd issues a fix?
> > 
> > I was hoping to be able to move to Stretch, but it's looking unlikely now.
> 
> My suggestion is simple, but would be tedious to implement. I use it
> to run a program as a different user, overriding their default umask.
> 
> /home/other/bin/my-program.sh contains
> 
> #!/bin/bash
> umask u=rwx,go=
> /usr/bin/real-program "$@"
> 
> But it's tedious to have to replace real-program by 
> /home/other/bin/my-program.sh
> in all the places it/they might get called from. I only have to do
> this once (in .bashrc) because I'm a bash/xterm/fvwm guy using
> bash functions.

Or find gnome-session (or gnome-shell - I don't recall who exactly
spawns user applications in GNOME) process pid, execute something like
this on login:

gdb -p $(pidof gnome-session) -ex 'p umask(0077)' --batch

You'll need gdb to be installed, of course.

Reco



Re: Unable to change mouse acceleration and threshold in Stretch

2017-08-08 Thread Siard
On Thu, 3 Aug 2017, Илья Валеев wrote:
> I'm unable to change mouse acceleration and threshold in Stretch.
> 
> It does not depend on DE. There are no error appears. For example, in
> KDE settings applies correctly, ~/.kde/share/config/kcminputrc creates
> and contain properly values, but mouse behavior does not changes.
> 'xset m 3 1' also does not change anything.
> 
> It does not depend on:
> - Stretch 9.0 or Stretch 9.1
> - is it clean install or not
> - mouse
> - is it virtual machine with Jessie host or real system

(Responding late because of vacation.) Starting with Stretch, mouse
acceleration is controlled by libinput.  It was mentioned in the Release
Notes BTW.  Here is a clear explanation of its possibilities:
https://wiki.archlinux.org/index.php/Libinput
See 'man libinput' for the available options.

In short, you create the file /etc/X11/xorg.conf.d/10-libinput.conf,
containing something like this:

Section "InputClass"
  Identifier "mouse"
  Driver "libinput"
  Option "AccelProfile" "flat"
  Option "AccelSpeed" "-0.5"
EndSection

Mouse acceleration is set with 'Option "AccelSpeed"'.
Its value ranges from -1 to 1. Negative means slower.



Re: Debian8 is not playing with Synology using NFS/CIFS

2017-08-08 Thread Joerg Desch
Am Tue, 08 Aug 2017 11:01:12 +0100 schrieb Darac Marjal:

> I'll assume that the Synology is a black box, and so we can't work out
> how it's configured.

Yes, more or less.

> 
> Try "mount -v -t nfs name.or.ip.of.synology:/ /some/mountpoint" and see
> what errors result.

Mounting isn't the problem. The mount is working without errors

mount.nfs: trying text-based options
'hard,intr,vers=4,addr=192.168.1.1,clientaddr=192.168.1.88'

My only problem is the (very old) goal to get different uid/gid working.


Thanks




Re: Debian8 is not playing with Synology using NFS/CIFS

2017-08-08 Thread Darac Marjal

On Tue, Aug 08, 2017 at 09:43:58AM +, Joerg Desch wrote:
It drives me crazy. Really. The company I'm working for is switching from 
a Dell server running Ubuntu to a Synology HA solution. On my desktop, 
I'm using Debian 8 and only Debian (Yes I know, I can be lucky ;-)).


My first try was to mount the new shares using NFS4 and taraa... 
imapd. This fails because the ID mapping does not work. On both sides, 
the (same) domain is inserted into "/etc/imapd.conf". Without any 
changes. For now, I'm not really sure what ipmapd is for. A hoax? Fun?


I'll assume that the Synology is a black box, and so we can't work out 
how it's configured.


Try "mount -v -t nfs name.or.ip.of.synology:/ /some/mountpoint" and see 
what errors result. Note that you generally want to start by mounting 
"/" from the server. NFSv4 *may* use a 'chroot'-style layout where all 
the exported directories appear under a virtual root, or it *may* use 
the NFSv3-style layout where you need to know the location of each 
export.


Does the Synology offer NFSv3 and V2 as well? Is the NFSv4 that the 
Synology offers "kerberized"? 

If the Synology offers NFSv3, you can try "showmount -e 
name.or.ip.of.synology" to see what's exported (as I understand it, 
showmount no longer works with NFSv4).




The second try was the ugly solution using CIFS. The bad insight this 
morning... Synology disables the "unix extensions". The second... There 
is no ID mapping too. My hope with CIFS was, that die total user and 
group stuff is done using "names" and not IDs.


So, if anybody out there is running a Synology server. Is there a working 
solution to get uid/gip mapping, unix access flags and symlinks?


I'm happy for every (positive) answer. ;-)



--
For more information, please reread.


signature.asc
Description: PGP signature


Re: disable orange progress running apt

2017-08-08 Thread Felix Miata
Curt composed on 2017-08-08 08:17 (UTC):

> On 2017-08-07, Felix Miata wrote:

>>> Try "APT::Color "false";".
>> That was the last I tried with Stretch before giving up and posting here, in
>> /etc/apt/apt.conf.d/99mono. Also fails in Sid.

>> Could this somehow be coming from bash rather than apt?

> Did you try first at the command line? 

No.

>  apt update -o Apt::Color=0 

It works!

> I suppose if that worked you could create an alias until someone figures
> out where and how to put it.

It might if I didn't have so many different installations scattered about and
multiple aliases to create. Better to suffer horri-colors until an Apt config
that works can be found.

In openSUSE we have Zypper as wrapper around rpm more or less the way apt works
with dpkg. Color on/off in Zypper is easy to deal with because of integrated
comments that work so much better than virtually empty config directories, e.g.:

...
## Whether to use colors
##
## Valid values: always, never, or autodetect
## Default value: autodetect
##
 useColors = never
...
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



Debian8 is not playing with Synology using NFS/CIFS

2017-08-08 Thread Joerg Desch
It drives me crazy. Really. The company I'm working for is switching from 
a Dell server running Ubuntu to a Synology HA solution. On my desktop, 
I'm using Debian 8 and only Debian (Yes I know, I can be lucky ;-)).

My first try was to mount the new shares using NFS4 and taraa... 
imapd. This fails because the ID mapping does not work. On both sides, 
the (same) domain is inserted into "/etc/imapd.conf". Without any 
changes. For now, I'm not really sure what ipmapd is for. A hoax? Fun?

The second try was the ugly solution using CIFS. The bad insight this 
morning... Synology disables the "unix extensions". The second... There 
is no ID mapping too. My hope with CIFS was, that die total user and 
group stuff is done using "names" and not IDs.

So, if anybody out there is running a Synology server. Is there a working 
solution to get uid/gip mapping, unix access flags and symlinks?

I'm happy for every (positive) answer. ;-)



Re: Tutte le membra del mio corpo sono eccitate. Letizia

2017-08-08 Thread paolo . dinoi72

Io li tengo duro
--
Inviato da Libero Mail per Android Martedì, 08 Agosto 2017, 10:56AM +02:00 da 
Letizia Meijden  emili...@infinito.it :

>
>
>Ma veniamo a te, anche tu ti senti nella mia stessa maniera? 
>http://bit.ly/2vIvd2r


Re: disable orange progress running apt

2017-08-08 Thread Felix Miata
Frank composed on 2017-08-08 10:31 (UTC+0200):

> Felix Miata composed:

>> Brian composed on 2017-08-07 33:42 (UTC+0100):

>>> Of course they work. They just do not fit your purpose.

>> Work how? Do what? How do I find evidence that either actually do anything? 
>> So
>> far all I've seen is that you've said so, here, & earlier, 2017-08-07 18:03
>> (UTC+0100):

> It's possible some configuration file already has a line which sets 
> Dpkg::Progress-Fancy and/or Dpkg::Progress-Fancy::Progress-Bg. Did you 
> check the files in /etc/apt/apt.conf.d? 

Yes, then I created a new file there just to install Brian's suggestion, and
after it failed the other permutations I tried.
-- 
"The wise are known for their understanding, and pleasant
words are persuasive." Proverbs 16:21 (New Living Translation)

 Team OS/2 ** Reg. Linux User #211409 ** a11y rocks!

Felix Miata  ***  http://fm.no-ip.com/



djbwares version 6

2017-08-08 Thread Jonathan de Boyne Pollard

djbwares is now at version 6.

* http://jdebp.eu./Softwares/djbwares/
* http://jdebp.info./Softwares/djbwares/

The main changes here are in dnscache and ftpd.

dnscache now has a built-in  resource record for localhost, like it 
already had a built-in A resource record.  I've slightly improved the 
way that it caches  resource record sets, to match the way that it 
was handling A resource record sets.  And it now caches SOA resource 
records.  There are also some minor improvements to the logging to 
decode SRV, A, and  records rather than print them in raw 
hexadecimal format.


The changes to ftpd were motivated by my pointing several WWW browsers 
at a publicfile FTP site and discovering that the WWW browsers adhere to 
the RFCs far less than they used to at the turn of the century.  You can 
read some of the saddening discoveries in the Hall of Shame.  I have 
enhanced publicfile ftpd to support OPTS, FEAT, SIZE, EPSV, and HOST; to 
interoperate better with some faulty FTP ALGs that cannot cope with an 
FTP server that one does not need to log in to; to interoperate better 
with some faulty WWW browsers that misuse CWD as a type testing 
mechanism; and to log things more clearly in order to diagnose such 
faults from server logs.  HOST support means that ftpd supports virtual 
hosting on FTP, which is explained in the manual, although it is hard to 
find any FTP client that employs this.


* http://jdebp.eu./FGA/web-browser-ftp-hall-of-shame.html
* http://jdebp.info./FGA/web-browser-ftp-hall-of-shame.html

A further minor addition is a host command, a subset of the host 
commands from ISC and from KnotDNS that uses the same DNS client library 
from djbdns as all of the other djbdns query tools do.  Of course, the 
conventional djbdns client tools have a simpler syntax and more regular 
behaviours than the host command, and are preferable.  Moreover, the 
subset excludes rarities that djbdns has never supported, such as non-IN 
class queries.




Re: disable orange progress running apt

2017-08-08 Thread Frank

Op 08-08-17 om 02:57 schreef Felix Miata:

Brian composed on 2017-08-07 33:42 (UTC+0100):

Of course they work. They just do not fit your purpose.


Work how? Do what? How do I find evidence that either actually do anything? So
far all I've seen is that you've said so, here, & earlier, 2017-08-07 18:03
(UTC+0100):


It's possible some configuration file already has a line which sets 
Dpkg::Progress-Fancy and/or Dpkg::Progress-Fancy::Progress-Bg. Did you 
check the files in /etc/apt/apt.conf.d?


Regards,
Frank



Re: disable orange progress running apt

2017-08-08 Thread Curt
On 2017-08-07, Felix Miata  wrote:
>
>> Try "APT::Color "false";".
> That was the last I tried with Stretch before giving up and posting here, in
> /etc/apt/apt.conf.d/99mono. Also fails in Sid.
>
> Could this somehow be coming from bash rather than apt?

Did you try first at the command line?

 apt update -o Apt::Color=0

I suppose if that worked you could create an alias until someone figures
out where and how to put it.

-- 
“Certitude is not the test of certainty.”
--Oliver Wendell Holmes, Jr.



Re: changing the ethernet interface name

2017-08-08 Thread Pierre Frenkiel

On Tue, 8 Aug 2017, Zenaan Harkness wrote:



Interesting.

Perhaps mine comes from an older version of Debian, or perhaps it's
just something that must be manually created (which I did a few years
ago now), IDK sorry.

I've attacked mine in case it's useful for you - just add lines in
there acccording to each relevant MAC address, restart networking and
you should be good to go. Replace the lines I've got there.



  I suppose that it actually comes from an older version.
  Mine is now Stretch, but I have this 70-persistent-net.rules file from my 
previous
  release, i.e. Jessie, which I saved on disk before doing the Stretch install..
  Anyway, the kernel option method works fine for the eth name, and I put it 
the grub config.

best regards,
--
Pierre Frenkiel



Re: Help with USB audio card

2017-08-08 Thread Rodolfo Medina
David Christensen  writes:

> On 08/07/17 05:15, Rodolfo Medina wrote:
>> Hi all.
>>
>> I just bought an external USB audio card.  I plugged it into the USB port of
>> my PC and plugged a 3.5mm jack microphone into the `mic' input of the card.
>> It is shown in lsusb:
>>
>> $ lsusb
>> Bus 002 Device 005: ID 17ef:602e Lenovo
>> Bus 002 Device 003: ID 046d:c312 Logitech, Inc. DeLuxe 250 Keyboard
>> Bus 002 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
>> Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 001 Device 010: ID 0d8c:013c C-Media Electronics, Inc. CM108 Audio 
>> Controlle
>> Bus 001 Device 003: ID 0bda:0129 Realtek Semiconductor Corp. RTS5129 Card 
>> Reader
>> Bus 001 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>> Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
>> Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>>
>>
>> and also in arecord:
>>
>> $ arecord --list-devices
>>  List of CAPTURE Hardware Devices 
>> card 1: Generic [HD-Audio Generic], device 0: ALC662 rev3 Analog [ALC662 
>> rev3 Analog]
>>   Subdevices: 0/1
>>   Subdevice #0: subdevice #0
>> card 1: Generic [HD-Audio Generic], device 2: ALC662 rev3 Alt Analog [ALC662 
>> rev3 Alt Analog]
>>   Subdevices: 1/1
>>   Subdevice #0: subdevice #0
>> card 2: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
>>   Subdevices: 1/1
>>   Subdevice #0: subdevice #0
>>
>> Besides, I ran alsamixer, selected the USB card and unmuted everything.  But
>> then, when I try to record, no sound is recorded.  I do:
>>
>>  $ sox -t alsa hw:2,0 output.wav
>>
>> , or
>>
>>  $ arecord -f S16_LE -D hw:2,0 -r 96000 test.wav
>>
>> , or also within Audacity.  But nothing, my voice is not recorded.  Please
>> help whoever can.
>
> STFW I found some information that might be useful.
>
>
> Here is the chip makers web site:
>
> https://www.cmedia.com.tw/EN/index.html
>
>
> It looks like two versions of the chip are currently made:
>
> https://www.cmedia.com.tw/products/USB20_FULL_SPEED/CM108AH
>
> https://www.cmedia.com.tw/products/USB20_FULL_SPEED/CM108B
>
>
> This link indicates that some version of the chip worked on some Linux 
> machines
> at some point in time:
>
> https://linux-hardware.org/index.php?id=usb:0d8c-013c
>
>
> More links:
>
> http://www.linux-usb.org/USB-guide/x319.html
>
> https://linux-hardware.org/index.php?id=usb:0d8c-013c
>
>
> There are several links for people with Raspberry Pi boards running Raspian.
> They made changes to their ALSA configuration to use a CM108 USB audio
> interface.  I don't know if those instructions apply to Debian.
>
>
> Please run the following commands, and cut and past the commands and their
> outputs into a reply:
>
> cat /etc/debian_version
>
> uname -a
>
> dmesg | grep -i cm108 -A 10 -B 10


Thanks...

$ cat /etc/debian_version
buster/sid

$ uname -a
Linux lenovo 4.9.0-3-amd64 #1 SMP Debian 4.9.30-2 (2017-06-12) x86_64 GNU/Linux

`dmesg | grep -i cm108 -A 10 -B 10' produced no output at all...



Cheers,
Rodolfo