Re: set default print options on printer

2018-03-07 Thread mick crane

On 2018-03-08 02:35, Gary Dale wrote:

I have a Samsung C410 printer attached to a Stretch server via USB and
also available via wifi. There doesn't seem to be a default print
setting for paper size but the cups listing for the printer shows:

   Defaults:job-sheets=none, none media=na_letter_8.5x11in 
sides=one-sided


which is correct. However when I try to print a PDF using Okular, the
paper size is set to A4. If I forget to change it to letter, the print
gets chopped off at the top.

Any ideas on what is causing this and how do I correct it?

Thanks.


Had something similar printing from windows via Cups with it trying to 
get paper from the wrong tray.
Possible that the software helpfully sends instruction which overrides 
cups Setting ?



mick

--
Key ID  4BFEBB31



Re: update bios from debian

2018-03-07 Thread Forest Dean Feighner
On Mar 8, 2018 12:22 AM, "Don Armstrong"  wrote:

Just:

sudo apt install grub-imageboot;
sudo cp 7wuj43uc.iso /boot/images;
sudo update-grub2;

then reboot, and select the right cd image in your grub menu.


Going OT a little but is that all you have to do to add ISOs to grub!?




--
Don Armstrong  https://www.donarmstrong.com

Live and learn
or die and teach by example
 -- a softer world #625
http://www.asofterworld.com/index.php?id=625


Re: update bios from debian

2018-03-07 Thread Don Armstrong
On Wed, 07 Mar 2018, emetib wrote:
> found a cd image, yet don't have any cd's to burn one to. i only use
> usb sticks now. doing more searching and it seems others have updated
> their bios' from linux, so i'll keep reading.

Just:

sudo apt install grub-imageboot;
sudo cp 7wuj43uc.iso /boot/images;
sudo update-grub2;

then reboot, and select the right cd image in your grub menu.

-- 
Don Armstrong  https://www.donarmstrong.com

Live and learn
or die and teach by example
 -- a softer world #625
http://www.asofterworld.com/index.php?id=625



Re: update bios from debian

2018-03-07 Thread Jape Person
On 03/07/2018 10:37 PM, emetib wrote:
> has anyone tried to update their bios from debian or linux in general?
> 
> i've looked at these pages ->
> https://wiki.debian.org/FlashBIOS
> https://support.lenovo.com/us/en/downloads/DS038945
> 
> and have downloaded the packages that they say to get, and have also 
> downloaded the new bios from lenovo's website.
> 
> don't really want to turn my laptop into a brick, so i'm curious if anyone 
> has done this before, and if so anything that i should worry, not worry 
> about?  
> 
> the lenovo site say to just click on the .exe, yet i don't know if it needs 
> windows to do the install or not.
> 
> any thoughts?
> thanks.
> em
> 
> 

I looked at the Lenovo support site and saw no evidence of a
bootable BIOS update CD for the G405 and G505.

For the Lenovo systems I've seen before those images are
available alongside the Windows executable (.exe) updater that
you've downloaded. The .exe will not work from within Linux, and
you don't want to try using it from within WINE.

You should ask Lenovo if they can supply the bootable BIOS
update CD.

Here's a quote from the Lenovo site regarding the BIOS Update
CDs available for Thinkpad laptops:

The BIOS Update CD can boot the computer disregarding the
operating systems and update the UEFI BIOS (including system
program and Embedded Controller program) stored in the ThinkPad
computer to fix problems, add new functions, or expand functions
as noted below.

I think that's the type of BIOS / UEFI updater you want. You can
use such an image by burning it to CD and booting from the CD,
or you can use information from one of the many locations online
like

https://workaround.org/article/updating-the-bios-on-lenovo-laptops-from-linux-using-a-usb-flash-stick/

to create and use a bootable usb flash drive as the basis for
updating the system.

I'm concerned that Lenovo doesn't seem to make the update CD
image for the G405/G505. Do they only provide them for
Thinkpads? If so, not cool.

Hope you find a solution.

JP



Re: update bios from debian

2018-03-07 Thread emetib
On Wednesday, March 7, 2018 at 10:00:05 PM UTC-6, emetib wrote:
> has anyone tried to update their bios from debian or linux in general?
> 
> i've looked at these pages ->
> https://wiki.debian.org/FlashBIOS
> https://support.lenovo.com/us/en/downloads/DS038945
> 
> and have downloaded the packages that they say to get, and have also 
> downloaded the new bios from lenovo's website.
> 
> don't really want to turn my laptop into a brick, so i'm curious if anyone 
> has done this before, and if so anything that i should worry, not worry 
> about?  
> 
> the lenovo site say to just click on the .exe, yet i don't know if it needs 
> windows to do the install or not.
> 
> any thoughts?
> thanks.
> em

found a cd image, yet don't have any cd's to burn one to.  i only use usb 
sticks now.  doing more searching and it seems others have updated their bios' 
from linux, so i'll keep reading.

thank you.



Re: update bios from debian

2018-03-07 Thread emetib
On Wednesday, March 7, 2018 at 10:00:05 PM UTC-6, emetib wrote:
> has anyone tried to update their bios from debian or linux in general?
> 
> i've looked at these pages ->
> https://wiki.debian.org/FlashBIOS
> https://support.lenovo.com/us/en/downloads/DS038945
> 
> and have downloaded the packages that they say to get, and have also 
> downloaded the new bios from lenovo's website.
> 
> don't really want to turn my laptop into a brick, so i'm curious if anyone 
> has done this before, and if so anything that i should worry, not worry 
> about?  
> 
> the lenovo site say to just click on the .exe, yet i don't know if it needs 
> windows to do the install or not.
> 
> any thoughts?
> thanks.
> em

don't have a lenovo cd.  don't know if i ever got one, i'll have to take a look 
around for one online.



Re: update bios from debian

2018-03-07 Thread Don Armstrong
On Wed, 07 Mar 2018, emetib wrote:
> has anyone tried to update their bios from debian or linux in general?

In the past, I've used Lenovo's CD image to update the bios; it's
generally easier and better tested.

For server hardware, HP's and Dells firmware update packages have worked
well when I've used them.

-- 
Don Armstrong  https://www.donarmstrong.com

A people living under the perpetual menace of war and invasion is very
easy to govern. It demands no social reforms. It does not haggle over
expenditures on armaments and military equipment. It pays without
discussion, it ruins itself, and that is an excellent thing for the
syndicates of financiers and manufacturers for whom patriotic terrors
are an abundant source of gain.
 -- Anatole France



update bios from debian

2018-03-07 Thread emetib
has anyone tried to update their bios from debian or linux in general?

i've looked at these pages ->
https://wiki.debian.org/FlashBIOS
https://support.lenovo.com/us/en/downloads/DS038945

and have downloaded the packages that they say to get, and have also downloaded 
the new bios from lenovo's website.

don't really want to turn my laptop into a brick, so i'm curious if anyone has 
done this before, and if so anything that i should worry, not worry about?  

the lenovo site say to just click on the .exe, yet i don't know if it needs 
windows to do the install or not.

any thoughts?
thanks.
em



Re: set default print options on printer

2018-03-07 Thread Doug


On 03/07/2018 09:35 PM, Gary Dale wrote:
I have a Samsung C410 printer attached to a Stretch server via USB and 
also available via wifi. There doesn't seem to be a default print 
setting for paper size but the cups listing for the printer shows:


   Defaults:job-sheets=none, none media=na_letter_8.5x11in 
sides=one-sided


which is correct. However when I try to print a PDF using Okular, the 
paper size is set to A4. If I forget to change it to letter, the print 
gets chopped off at the top.


Any ideas on what is causing this and how do I correct it?

Thanks.


I have had similar problems with various programs, especially Master PDF 
Editor 4, but not exclusively.  I think there may be some kind of fault 
in cups that keeps changing the specified


page size to A4, regardless of what you have set it to. Running PCLOS 
KDE5, and this problem did not exist in KDE4, but I have no idea where 
the fault actually lies. I hope someone figures


it out and comes up with a cure. The latest updates seem to allow one to 
correct the page size on a job by job basis--i.e., open the printer 
properties for each item you want to print and


set it to Letter (8½ x 11) and it will usually stay for that instance. 
PITA! One of my two printers seems to work better in that area--go figure!


--doug



set default print options on printer

2018-03-07 Thread Gary Dale
I have a Samsung C410 printer attached to a Stretch server via USB and 
also available via wifi. There doesn't seem to be a default print 
setting for paper size but the cups listing for the printer shows:


   Defaults:job-sheets=none, none media=na_letter_8.5x11in sides=one-sided

which is correct. However when I try to print a PDF using Okular, the 
paper size is set to A4. If I forget to change it to letter, the print 
gets chopped off at the top.


Any ideas on what is causing this and how do I correct it?

Thanks.



Re: Open socket not connected to any real process

2018-03-07 Thread Roberto C . Sánchez
On Wed, Mar 07, 2018 at 11:08:05PM +0100, Sven Hartge wrote:
> 
> This is why you use libpam-ldapd (instead of libpam-ldap) in combination
> with libnss-ldapd (instead of libnss-ldap).
> 
> Its design with a separate daemon (nslcd) doing the actual LDAP
> connection is far superior compared to the original lib*-ldap code.
> 
> It also means that libldap itself is only mapped into the central
> server process and not into every process on the system. 
> 
Personally, I found sssd (along with libpam-sss and libnss-sss) to be
much better behaved.

Regards,

-Roberto

-- 
Roberto C. Sánchez



Re: Add kernel parameter to specific kernel using grub?

2018-03-07 Thread Marc Auslander
Boyan Penkov  writes:

>Hello folks,
>
>Let's say I have two kernels -- the default that's maintained by the
>distro, and one that I'm playing with that I compile from source to
>get dpkgs. Call the distro one linux4.4 and "mine" -- linux4.16 (for
>reference, all this is playing out on an ubuntu system...not sure if
>that will garner me some eyerolls ;) ).
>
>I'm using 4.16 to test the effects of BFQ, and 4.4 because I need a
>fallback. With that in mind, I'd like to pass the kernel parameter
>"elevator=bfq" to 4.16 ONLY (and not 4.4).
>
>Does anybody know where to look to add this to /etc/default/grub.cfg
>without passing the parameter to all kernels that are then found after
>grub-mkconfig (which will inevitably run after a few instances of sudo
>apt-get update && sudo apt-get dist-upgrade)?
>
>Cheers!
what i know works is to put a custom menu definition in /etc/grub.d
which then gets including in grub.cfg.  You can copy one from grub.cfg
and modify it. it goes in 01-vmlinuz or 40_custom depending on where you
want them in grub.cfg.



Re: NUC7i3DNKE + écrans qui clignotent

2018-03-07 Thread JF Straeten

Re,


On Wed, Mar 07, 2018 at 06:43:47PM +0100, JF Straeten wrote:

[...]
> J'ai pu essayer ceci :

[...]
> - différents câbles / autre écran : j'ai testé le NUC sur un Iiyama
>   ProLite B2403WS, 24", en 1920x1200 (le max), en HDMI des deux côtés
>   (avec un câble HDMI Philips qui semble de bonne facture) : et bien
>   ici, aucun problème !
> 
>   L'image est parfaitement stable, même avec des tas d'rxvt, Mutt et
>   applications texte... Ça ne bouge pas et fonctionne normalement.
> 
>   Même résultat sur un projecteur Optoma GT5000+, en 1920x1080 (le
>   max) : tout passe absolument parfaitement.


Oublié de préciser ceci : sur le DELL U3011 aussi, en passant par le
connecteur HDMI (même test que ci-dessus), l'image est parfaitement
stable également.

Il y a toutefois dans ce cas que la résolution 1920x1200 est émulée
par le DELL (et n'est franchement pas terrible), mais sur le principe
ça marche.

A+


-- 

JFS.



Add kernel parameter to specific kernel using grub?

2018-03-07 Thread Boyan Penkov

Hello folks,

Let's say I have two kernels -- the default that's maintained by the 
distro, and one that I'm playing with that I compile from source to get 
dpkgs.  Call the distro one linux4.4 and "mine" -- linux4.16 (for 
reference, all this is playing out on an ubuntu system...not sure if 
that will garner me some eyerolls ;) ).


I'm using 4.16 to test the effects of BFQ, and 4.4 because I need a 
fallback.  With that in mind, I'd like to pass the kernel parameter 
"elevator=bfq" to 4.16 ONLY (and not 4.4).


Does anybody know where to look to add this to /etc/default/grub.cfg 
without passing the parameter to all kernels that are then found after 
grub-mkconfig (which will inevitably run after a few instances of sudo 
apt-get update && sudo apt-get dist-upgrade)?


Cheers!




Re: Open socket not connected to any real process

2018-03-07 Thread Sven Hartge
David Parker  wrote:

> Well, crap.  It turns out this isn't a problem.  PAM is configured for
> LDAP authentication and so it opens a connection each time I log in,
> owned by my sshd process, even though it's not using LDAP
> authentication for root.  And the other LDAP queries I'm seeing are
> being sent when users authenticate via sendmail.  Case closed!

This is why you use libpam-ldapd (instead of libpam-ldap) in combination
with libnss-ldapd (instead of libnss-ldap).

Its design with a separate daemon (nslcd) doing the actual LDAP
connection is far superior compared to the original lib*-ldap code.

It also means that libldap itself is only mapped into the central
server process and not into every process on the system. 

Grüße,
Sven

-- 
Sigmentation fault. Core dumped.



Re: Q: RAID1 and chunk size

2018-03-07 Thread Darac Marjal


On 07/03/18 21:13, Steve Keller wrote:
> I have a RAID1 array with 2 disks (/dev/sda1 and /dev/sdb1) of 2 TB
> each.  By running mdadm -X /dev/sda1 I see that the chunk size is 64 MB:
>
> # mdadm -X /dev/sda1
> Filename : /dev/sda1
> Magic : 6d746962
> Version : 4
> UUID : 300551ed:f6690dfb:1c939898:af5509c6
> Events : 257
> Events Cleared : 257
> State : OK
> Chunksize : 64 MB
> Daemon : 5s flush period
> Write Mode : Normal
> Sync Size : 1953381376 (1862.89 GiB 2000.26 GB)
> Bitmap : 29807 bits (chunks), 2 dirty (0.0%)
>
> What exactly does the chunk sized mean?  My question is how reads and
> writes on an array are done.  Will the kernel always read or write a
> complete chunk?  If so, does that mean that writing a single 4 KB
> block to a file system will cause a 64 MB read, i.e one chunk, change
> the 4 KB block in that chunk and write back the 64 MB chunk?

Yes, my understanding is that chunk size is the size of area upon which
parity is calculated, or the size of data which is allocated before
moving onto the next drive etc.

My guess, though, is that there is a balance to be struck. Yes, if the
chunk size is small, then there is very little write amplification. But
if the chunk size is too small, then you need to wait for that chunk to
pass the read-write head again, you need to be switching between sectors
very often etc. With a bigger chunk, you can take better advantage of
caching. These days, 64Mb is a relatively small amount to pull into a
buffer, it can be pulled in, modified and rewritten virtually
instantanously.

There's a nice article on the effect of different chunk sizes here:
http://louwrentius.com/linux-raid-level-and-chunk-size-the-benchmarks.html

>
> Wouldn't that mean a massive performance problem?
>
> Steve
>




signature.asc
Description: OpenPGP digital signature


Re: Open socket not connected to any real process

2018-03-07 Thread David Parker
Well, crap.  It turns out this isn't a problem.  PAM is configured for LDAP
authentication and so it opens a connection each time I log in, owned by my
sshd process, even though it's not using LDAP authentication for root.  And
the other LDAP queries I'm seeing are being sent when users authenticate
via sendmail.  Case closed!

On Wed, Mar 7, 2018 at 4:16 PM, David Parker  wrote:

> Hello,
>
> I have an SMTP server running Debian Wheezy (64-bit).  A few weeks ago, I
> stopped nscd on it, because it was holding a connection open to our LDAP
> server and sending a ton of unnecessary queries to it.
>
> Even though nscd is not running, I am once again seeing nscd-type queries
> on the LDAP server from this SMTP server, and a connection is open from the
> SMTP server.  But I can't seem to figure out what process is using that
> connection.  Every time I check using netstat or lsof, it just reports that
> the socket is owned by my current sshd process.
>
> An example:
>
> root@smtp:~# netstat -anp | grep 389
> tcp0  0 :58786   :389ESTABLISHED
> *10249/0*
>
> root@smtp:~# lsof -n -i :389
> COMMAND   PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
> sshd*10249 root*4w  IPv4 86936230  0t0  TCP
> :58786->:ldap (ESTABLISHED)
>
> root@smtp:~# ps -ef | grep 10249
> *root 10249 17111  0 15:49 ?00:00:00 sshd: root@pts/0*
> root 10251 10249  0 15:50 pts/000:00:00 -bash
> root 10286 10251  0 15:54 pts/000:00:00 grep 10249
>
> So I log out and back in, and the PID for this socket changes to my new
> sshd process:
>
> root@smtp:~# netstat -anp | grep 389
> tcp0  0 :58798   :389ESTABLISHED
> *10288/0*
>
> root@smtp:~# lsof -n -i :389
> COMMAND   PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
> sshd*10288 root*4w  IPv4 86936319  0t0  TCP
> :58798->:ldap (ESTABLISHED)
>
> root@smtp:~# ps -ef | grep 10288
> *root 10288 17111  0 15:54 ?00:00:00 sshd: root@pts/0*
> root 10290 10288  0 15:54 pts/000:00:00 -bash
> root 10304 10290  0 15:55 pts/000:00:00 grep 10288
>
> And all the while, LDAP queries continue to be sent over this connection.
> Does anyone have any idea why I can't seem to track down the real process
> which is holding this socket open?
>
> Thanks!
> Dave
>
> --
> Dave Parker '11
> Database & Systems Administrator
> Utica College
> Integrated Information Technology Services
> (315) 792-3229
> Registered Linux User #408177
>



-- 
Dave Parker '11
Database & Systems Administrator
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177


Q: RAID1 and chunk size

2018-03-07 Thread Steve Keller
I have a RAID1 array with 2 disks (/dev/sda1 and /dev/sdb1) of 2 TB
each.  By running mdadm -X /dev/sda1 I see that the chunk size is 64 MB:

# mdadm -X /dev/sda1
Filename : /dev/sda1
Magic : 6d746962
Version : 4
UUID : 300551ed:f6690dfb:1c939898:af5509c6
Events : 257
Events Cleared : 257
State : OK
Chunksize : 64 MB
Daemon : 5s flush period
Write Mode : Normal
Sync Size : 1953381376 (1862.89 GiB 2000.26 GB)
Bitmap : 29807 bits (chunks), 2 dirty (0.0%)

What exactly does the chunk sized mean?  My question is how reads and
writes on an array are done.  Will the kernel always read or write a
complete chunk?  If so, does that mean that writing a single 4 KB
block to a file system will cause a 64 MB read, i.e one chunk, change
the 4 KB block in that chunk and write back the 64 MB chunk?

Wouldn't that mean a massive performance problem?

Steve



Q: Host protected area (HPA), hdparm, and 4 KB sectors

2018-03-07 Thread Steve Keller
I have a couple of questions concerning the host protected area (HPA)
on SATA disks.  All the following is no problem with my Linux system,
I just want to understand things:

1. My two Seagate Barracuda 2 TB disks were not bought as part of a
   completely installed computer but separately as single parts.
   I.e. there should be no recovery or installation software or
   similar in the HPA.  However, both drives have a HPA of about 1 MB.
   What could be the reason for Seagate to do that?

  # hdparm -N /dev/sda

  /dev/sda:
   max sectors   = 3907027055/3907029168, HPA is enabled

2. The man page of hdparm warns about changing the HPA using hdparm -N,
   because data loss is extremely likely.  Is that only because of the
   possibility of using the command incorrectly or are there other
   risks, too? Otherwise, I'd like to disable the HPA and see what's
   in that ~1 MB space.

3. Does the kernel or hdparm have a problem with HPA and disks that
   use 4 KB sectors?  I have an external 4 TB USB hard disk that is
   shown like this:

  # fdisk -l /dev/sdc

  Disk /dev/sdc: 3.7 TiB, 4000787030016 bytes, 976754646 sectors
  Units: sectors of 1 * 4096 = 4096 bytes
  Sector size (logical/physical): 4096 bytes / 4096 bytes
  I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  Disklabel type: dos
  Disk identifier: 0xb6217b1c

  Device Boot Start   End   Sectors  Size Id Type
  /dev/sdc1 256 976754645 976754390  3.7T 8e Linux LVM
  
  # hdparm -I /dev/sdc | sed /^Cap/q

  /dev/sdc:

  ATA device, with non-removable media
  Model Number:   ST4000DM000-1F2168
  Serial Number:  S301JQ3M
  Firmware Revision:  CC54
  Transport:  Serial, SATA 1.0a, SATA II Extensions, SATA 
Rev 2.5, SATA Rev 2.6, SATA Rev 3.0
  Standards:
  Used: unknown (minor revision code 0x001f)
  Supported: 9 8 7 6 5
  Likely used: 9
  Configuration:
  Logical max current
  cylinders   16383   16383
  heads   16  16
  sectors/track   63  63
  --
  CHS current addressable sectors:   16514064
  LBAuser addressable sectors:  268435455
  LBA48  user addressable sectors: 7814037168
  Logical  Sector size:   512 bytes
  Physical Sector size:  4096 bytes
  Logical Sector-0 offset:  0 bytes
  device size with M = 1024*1024: 3815447 MBytes
  device size with M = 1000*1000: 4000787 MBytes (4000 GB)
  cache/buffer size  = unknown
  Form Factor: 3.5 inch
  Nominal Media Rotation Rate: 5900
  Capabilities:

   Interestingly, fdisk shows 976754646 logical sectors of size 4096
   bytes while hdparm reports 7814037168 sectors of 512 bytes.

   But when showing the HPA of that disk I get

  # hdparm -N /dev/sdc

  /dev/sdc:
   max sectors   = 7814037168/7801454256(18446744072933654192?), HPA 
setting seems invalid

   The native max address is 12582912 sectors (exactly 6 GiB) smaller
   than the end of the accessible disk, i.e beginning of HPA.
   Nevertheless, I can dd up to the end of the disk without any
   problem.

   So what is wrong with this disk?

Steve



Re: Multichannel audio listening

2018-03-07 Thread Rodolfo Medina
rhkra...@gmail.com writes:

> The Amazon page I looked at:
>
> https://www.amazon.com/s/?ie=UTF8=behringer+umc404hd=googhydr-20=aps=178390564539=1t2=g=939372652501756766===e=c===9006968=kwd-113850346562=pd_sl_18vyq1e9hy_e


Fantastic...  On the back of the device I read `PLAYBACK OUTPUTS'.  I wish to
better understand those entries: two white, two red and four black.  Please
what's the difference between them, and how do they work?  Do they support four
couples of loud speakers...?  Further on the right, one more couple of black
entries, L and R, and then MAIN OUT: what for...?

Thanks

Rodolfo



Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread Kamil Jońca
kjo...@poczta.onet.pl (Kamil Jońca) writes:


[...]
Thanks for everybodys' replies.
Now I think about brother  DCP-1510E.

We'll see ...
KJ


-- 
http://wolnelektury.pl/wesprzyj/teraz/
When the government bureau's remedies don't match your problem, you modify
the problem, not the remedy.



Re: Re: Re: dnsmasq and SOA

2018-03-07 Thread RODARY Jacques
Sorry for my last post: I sent a draft mail instead of the corrected 
one.  Let's go back to my own concern: dnsmasq and soa, 
if you don't mind. Here is my dnsmasq.conf file: 
resolv-file=/etc/dnsmasqresolv.conf

interface=eno1
interface=wlp3s0
no-dhcp-interface=enp2s0

auth-zone=rodary.net

auth-soa=2018022800,root.ns.rodary.net,10800,3600,10800

dhcp-range=10.42.0.20,10.42.0.200,infinite

 As you guessed enp2s0 (eth0 now) is my INET interface.
 
Shouldn't I add a "auth-peer=217.70.177.40" line for AXFR to 
ns6.gandi.net? With all my stupid previous acts, I don't dare to try it, 
specially when it could affect outside hosts e.g. my registrar.

Jacques



Open socket not connected to any real process

2018-03-07 Thread David Parker
Hello,

I have an SMTP server running Debian Wheezy (64-bit).  A few weeks ago, I
stopped nscd on it, because it was holding a connection open to our LDAP
server and sending a ton of unnecessary queries to it.

Even though nscd is not running, I am once again seeing nscd-type queries
on the LDAP server from this SMTP server, and a connection is open from the
SMTP server.  But I can't seem to figure out what process is using that
connection.  Every time I check using netstat or lsof, it just reports that
the socket is owned by my current sshd process.

An example:

root@smtp:~# netstat -anp | grep 389
tcp0  0 :58786   :389ESTABLISHED *10249/0*

root@smtp:~# lsof -n -i :389
COMMAND   PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
sshd*10249 root*4w  IPv4 86936230  0t0  TCP
:58786->:ldap (ESTABLISHED)

root@smtp:~# ps -ef | grep 10249
*root 10249 17111  0 15:49 ?00:00:00 sshd: root@pts/0*
root 10251 10249  0 15:50 pts/000:00:00 -bash
root 10286 10251  0 15:54 pts/000:00:00 grep 10249

So I log out and back in, and the PID for this socket changes to my new
sshd process:

root@smtp:~# netstat -anp | grep 389
tcp0  0 :58798   :389ESTABLISHED *10288/0*

root@smtp:~# lsof -n -i :389
COMMAND   PID USER   FD   TYPE   DEVICE SIZE/OFF NODE NAME
sshd*10288 root*4w  IPv4 86936319  0t0  TCP
:58798->:ldap (ESTABLISHED)

root@smtp:~# ps -ef | grep 10288
*root 10288 17111  0 15:54 ?00:00:00 sshd: root@pts/0*
root 10290 10288  0 15:54 pts/000:00:00 -bash
root 10304 10290  0 15:55 pts/000:00:00 grep 10288

And all the while, LDAP queries continue to be sent over this connection.
Does anyone have any idea why I can't seem to track down the real process
which is holding this socket open?

Thanks!
Dave

-- 
Dave Parker '11
Database & Systems Administrator
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177


Re: Multichannel audio listening

2018-03-07 Thread Joel Roth
Rodolfo Medina wrote:
>  I want to buy one of those multichannel
> soundcards...  Do you think this one could be all right...?
> 
> 
> https://www.strumentimusicali.net/product_info.php/products_id/51790/behringer-umc404hd.html?gclid=Cj0KCQiAuP7UBRDiARIsAFpxiRKgsptPW1qxkEw793ahs684ltlhyh5dcIgzLJXtDh39CZA8IEX3qgIaAnquEALw_wcB
> 
> Rodolfo

I looked around a bit, and the UMC404HD seems to be 'class
compliant' which means that the linux USB audio drivers can
access the most important functions. Behringer is definitely
on the low-cost end of things, but a lot of their hardware
seems to be of decent quality. 

A useful feature of this card is hardware monitoring, so
that you can listen to the audio during recording without a
time lag. 

Now that you've described your application (recording piano,
possibly with vocals) I think -- unless you're especially
comfortable and patient with low-level commands such as
ecasound provides -- you may like to run some kind of
multitrack recorder or DAW application. This will let you
adjust volume levels and add various plugins to the
different tracks. It's also common to duplicate a mono
signal to stereo and adjust the position right or left in a
stereo mix (e.g. panning).  

Someone already mentioned Audacity, which is quite easy to
use.

More sophisticated software lets you apply effects in
realtime, so it's easier to diddle with parameters. 

For professional quality with all possible features,
there is Ardour. Another very well developed application is
Qtractor. 

I'll also shamelessly mention a lightweight DAW called Nama
that provides the most important functions for recording and
mixing.  It's an application layer driven by text commands,
hotkeys and/or a simple GUI that runs Ecasound to provide
the signal processing. The debianized version is slightly
out of date, but you can at least get an idea of what it
looks like.  One of several unusual features is a preset
system that lets you set plugin defaults, re-use chains of
plugins, and create templates for groups of tracks or entire
projects. I'm the biased author ;-) 

For hardware or software questions you cannot answer by
reading the docs or doing a web search, I'll refer you to
the many experts on the Linux Audio Users mailing list
(LAU).

cheers,

-- 
Joel Roth
  



Re: A recomended guide to vim - was {Re: Does bash have a tool ?}

2018-03-07 Thread Curt
On 2018-03-07, Richard Owlett  wrote:
> On 03/05/2018 04:27 AM, Richard Owlett wrote:
>> On 03/04/2018 11:27 AM, Curt wrote:
>>> On 2018-03-04, Richard Owlett  wrote:
 My eventual goal is to create a personalized FAQ.
 To that end I've collected all my outgoing mail which DOES NOT have
 "Re:" in the Subject into a single file {used standard SeaMonkey tools}.

 Using a text editor's search function I've placed "KEY1" at the
 beginning of the body of each message. Similarly, I've placed "KEY2" at
 the end of each body.

 Searches led to  which
 describes tools to do word frequency tasks, primarily with bash 
 builtins.

 First I need to eliminate the irrelevant text between "KEY2" of the
 previous message and "KEY1" of the message of interest. It should be
 straight forard to do in BASIC.
>>>
>>> vim (hit escape to get into command mode)
>>>
>>> :/KEY2/+1;/KEY1/-1d
>>>
>>> will delete everything between KEY2 and KEY1, excluding the
>>> matching lines.
>> 
>> Haven't looked up the syntax you referenced. HOWEVER, an initial browse 
>> of vim.org immediately led to a half dozen pages of interest which an 
>> additional half dozen (at least) things that are inherent in vim that I 
>> had not mentioned. As today should be chilly and damp, I suspect where I 
>> will be warm, dry, and becoming educated.
>> 
>> Thank you.
>> 
>>[snip]
>
> I've installed GVIM using Synaptic.
> I have browsed vim.org but in the abundance of documentation I haven't 
> appropriate introductory material aimed at my mindset - I learn by doing.
>
> For example, GVIM launches with an unreadably small font.
> I have found the instructions to do ":set guifont=*".
> However I wish to set things appropriately in ~/.vimrc .
> I ended up in  a sample script to insert.
> However I could find no links to how to find how find a list of 
> designation of a font-face.
>
> I've not yet parsed the example given me
 :/KEY2/+1;/KEY1/-1d
>
> That may be longer relevant as my reading at vim.org has suggested 
> better ways to approach my problem [ vim appears to have a world-view 
> similar to Digital Equipment's TECO which I used ~40 years ago].
>
> Where should I be looking for:
>   1. how to parse the given example.

http://vimregex.com/

The above link seems edifying.

 3.2 Range of Operation, Line Addressing and Marks
 ...

 /Section 1/+,/Section 2/-

 - all lines between Section 1 and Section 2, non-inclusively, i.e. the
   lines containing Section 1 and Section 2 will not be affected.

It would appear the 1 (in '/KEY2/+1' and '/KEY1/-1d') is superfluous in
the sense that if you omit the number after + or - it defaults to 1 (one).

Maybe it's better to be explicit.

'd' means delete.

>   2. how to have found it as a possible solution to my problem statement?

You said text editor so I thought of vim. I used a search engine to look
up how to do it. 

-- 
Bah, the latest news, the latest news is not the last.
Samuel Beckett



Re: serveur CalDAV/CardDAV multi-users/multi-comptes

2018-03-07 Thread Sébastien NOBILI
Le vendredi 02 février 2018 à  9:40, fab a écrit :
> > J'utilise Radicale (la version de Stretch) et j'en suis pleinement 
> > satisfait.
> Tu utilises quelle version (strech/sid/exprimental) ? bizarre, il n'y a rien
> pour buster.

J’ai pris une version de stretch à une époque que j’ai backportée moi-même vers
Jessie. Je n’ai pas suivi ce qu’il en était (mais visiblement il a été sorti de
testing…)

> > Si j'ai choisi Radicale, c'est parce qu'il stocke ses données dans des 
> > fichiers et non pas dans une base SQL.
> +1
> 
> J'en profite pour rajouter: https://www.davdroid.com/tested-with/radicale/

Oui, je confirme, ça fonctionne à merveille chez moi depuis plusieurs années.

Sébastien



Re: serveur CalDAV/CardDAV multi-users/multi-comptes

2018-03-07 Thread Sébastien NOBILI
Salut,

Désolé du temps de réponse, je ne suis plus très assidu…

Le vendredi 02 février 2018 à 10:59, Jean-Marc a écrit :
> > J'utilise Radicale (la version de Stretch) et j'en suis pleinement 
> > satisfait.
> > 
> > Si j'ai choisi Radicale, c'est parce qu'il stocke ses données dans des 
> > fichiers et non pas dans une base SQL.
> 
> Quelques questions :
> - tu l'utilises comment ?
> - Tu l'as installé sur un serveur ?
> - Tu fais aussi du multi-users / multi-comptes ?

Je l’utilise pour stocker mes agendas et carnets d’adresses. Quand j’ai besoin
d’un nouvel agenda ou carnet d’adresses, je le crée depuis Thunderbird (de
mémoire ça fonctionne, mais ça fait longtemps que je n’ai pas eu à le faire…).
J’ai différents clients qui y accèdent :
- mon téléphone Android
- un Thunderbird que je n’utilise que pour la visualisation d’agenda
- un pycardsyncer pour accéder aux carnets d’adresses depuis Mutt
- un RainLoop
- un CalDavZAP

Il est installé sur mon serveur derrière un reverse-proxy Ngin.

Je fais du multi-utilisateurs artisanal :) J’ai créé un compte à ma femme et un
à ma fille. Mais je suis loin d’« industrialiser » le processus de création de
compte…

Sébastien



Re: jessie powermac yboot: ybin fails [solved]

2018-03-07 Thread John Paul Adrian Glaubitz
On 03/07/2018 08:40 PM, Frank Scheiner wrote:
>> 1.3.16 on Jessie. I've never discovered any indication anything newer than
>> Jessie was available for a G4. If I s/jessie/stretch/g sources.list, I get 5
>> errors from apt-get update for failing to find index files.
> 
> IIC, powerpc is only existing in Sid currently.

It is. The only change that happened with powerpc after Jessie was released is
that it the release team disabled the testing migration and hence effectively
ignored it for the next stable release.

Everything else remained unchanged. Packages for powerpc are still built as they
were before. Please note that normally all new packages for any architecture
are built on unstable first. The packages built in unstable just propagate
into testing after a given period of time.

You can continue to use Debian on powerpc as before. You just don't get to have
a stable release at the moment but you must track unstable. However, we are
planning to eventually support Debian testing in Debian Ports. This involves
setting up an instance of a software called Britney which is what is responsible
for migrating packages from unstable to testing.

>> Simply removing the macosx=/dev/hda10 line from yaboot.conf solved the 
>> problem.
>> Ybin simply runs with no visible output. :-D
> 
> So either the double usage of the macosx stanza or the non-existing device is 
> the problem.

The main problem here is that we still haven't migrated from Yaboot to GRUB
on PowerPC Macintoshes :(.

Adrian

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaub...@debian.org
`. `'   Freie Universitaet Berlin - glaub...@physik.fu-berlin.de
  `-GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913



Re: jessie powermac yboot: ybin fails

2018-03-07 Thread Frank Scheiner

Hi Rick,

On 03/05/2018 04:01 AM, Rick Thomas wrote:

For what it’s worth, here is the /etc/yaboot.conf on my PowerMac G5 that has 
both OSX and Debian Sid


Thanks for the info. I now tried several variations on my Mac mini G4 
and it looks like `ybin` only complains if it cannot translate the value 
of the first macosx stanza to an OF path. If a non-existing device is 
used in a second macosx stanza `ybin` does not complain if the device in 
the first macosx stanza can be translated.


Not sure why it worked for Felix to remove the second stanza then, but 
maybe we can conclude that multiple macosx stanzas in a yaboot.conf are 
wrong.


Cheers,
Frank



Re: Multiple monitors...

2018-03-07 Thread deloptes
Nimrod wrote:

> I need to show some movies on different monitors using a video card
> with 8 HDMI ports on a workstation, and I need to have all done

perhaps reveal the make and model of this "misterious" card first.

second you may need appropriate xorg configuration (either xorg.conf) or via
xrandr from user space. For example

xrandr --output HDMI-1 --auto --right-of HDMI-2 --auto

and so on

check with xrandr without arguments and post output here.

regards



Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread Erwan David
Le 03/07/18 à 21:19, Erwan David a écrit :
> Le 03/07/18 à 06:00, Kamil Jońca a écrit :
>> I am not sure if it is best group for this question but I am tired with
>> searching over numerous web pages :(
>>
>> I need to buy device to scan and print which:
>> - can scan with sane
>> - can print from my debian box (strongly prefer without binary/closed
>> drivers[1], I'm not sure about hplip[2])
>> - no bigger than ~ (H x D x W) 308 mm x 363 mm x 437 mm [3]
>> - can be shared to Windows machines (with HP 1120MFP I could not do that)
>>
>>
>> Any suggestions?
>>
>> KJ
>>
>> [1] - like Brother, but I heard that they give source code for driver too?
>> [2] - hplip has a lot of bloat in his dependecies
>> [3] - sizes of my current hp 1120 MFP device
>>
>>
>>
>>
> I can not test for windows, but otherwise I have a HP LaserJet Pro MFP
> m125nw which could work, except it needs a proprietary plugin to hplip.
>
> Since it is a network printer, I do not see why it could not be used by
> windows and debian at the same time.
>
I should add that it is a B laser printer. An avantage of laser is
that ink does not dry...



Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread Erwan David
Le 03/07/18 à 06:00, Kamil Jońca a écrit :
> I am not sure if it is best group for this question but I am tired with
> searching over numerous web pages :(
>
> I need to buy device to scan and print which:
> - can scan with sane
> - can print from my debian box (strongly prefer without binary/closed
> drivers[1], I'm not sure about hplip[2])
> - no bigger than ~ (H x D x W) 308 mm x 363 mm x 437 mm [3]
> - can be shared to Windows machines (with HP 1120MFP I could not do that)
>
>
> Any suggestions?
>
> KJ
>
> [1] - like Brother, but I heard that they give source code for driver too?
> [2] - hplip has a lot of bloat in his dependecies
> [3] - sizes of my current hp 1120 MFP device
>
>
>
>

I can not test for windows, but otherwise I have a HP LaserJet Pro MFP
m125nw which could work, except it needs a proprietary plugin to hplip.

Since it is a network printer, I do not see why it could not be used by
windows and debian at the same time.



Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread Doug


On 03/07/2018 02:37 PM, rhkra...@gmail.com wrote:

On Wednesday, March 07, 2018 07:07:20 AM Dan Purgert wrote:

Kamil Jońca wrote:
Good luck there.  Brother, HP, everyone that makes quality hardware has
a binary driver.


- no bigger than ~ (H x D x W) 308 mm x 363 mm x 437 mm [3]

That's a bit on the small side, but you could probably find something.

+1--your size limititations make it rather tough.

Bbut I'll mention that I'm partial to Canon, and now that they've come out
with the line of printers that you can refill on board ink tanks, I wish I
hadn't bought something else recently.  The one disappointment I see with
those Canon printers (there are two that I'm aware of) is that they can'd do
auto duplex printing.



If it ever is up to me, I would SHUN any printer with ink tanks! I do NOT
want to have to deal with liquid ink! I think that's the worst idea I have
ever seen!

--doug



Scary things about Linux (was: Re: gnats user)

2018-03-07 Thread Reco
Hi.

On Wed, Mar 07, 2018 at 02:13:07PM -0500, rhkra...@gmail.com wrote:
> On Wednesday, March 07, 2018 01:16:06 AM Reco wrote:
> > Along with other uid<100 users, 'gnats' is there for a long time,
> > nobody's sure what will break if it's removed from passwd(5), 
> 
> Wow!  (I am not the OP, but that is disappointing (but not surprising, I 
> suspect the same or similar about other things buried in Linux one place or 
> another) and scary.

You want scary - I'll give you one. Have you ever thought what do these
number in uptime(1) mean?
If you thought 'a number of processes that's waiting for CPU' - think
again - [1]. And yes, only Linux kernel counts uninterruptible sleep as
load average.

As for the disappointment - I have it too. Fresh one:

Mar  7 09:11:17 xxx kernel: [315045.065234] systemd-udevd invoked
oom-killer: ...
Mar  7 09:11:18 xxx kernel: [315045.301642] Free swap  = 3887244kB
Mar  7 09:11:18 xxx kernel: [315045.305155] Total swap = 3903484kB
Mar  7 09:11:18 xxx kernel: [315045.308669] 65536 pages RAM

Use swap, they said. If you don't configure swap, big scary
out-of-memory killer will take your processes, they said.

[1] http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html

Reco



Re: jessie powermac yboot: ybin fails [solved]

2018-03-07 Thread Frank Scheiner

On 03/05/2018 01:34 AM, Felix Miata wrote:

what Debian release are you actually running and what yaboot version
(shown above yaboot boot prompt) have you installed? I'm running Sid
(just upgraded all packages minutes ago) and yaboot 1.3.17.


1.3.16 on Jessie. I've never discovered any indication anything newer than
Jessie was available for a G4. If I s/jessie/stretch/g sources.list, I get 5
errors from apt-get update for failing to find index files.


IIC, powerpc is only existing in Sid currently.




On 03/02/2018 04:51 PM, Felix Miata wrote:



# ybin
ofpath: Device: /dev/ata-ST is not supported
ybin: Unable to determine OpenFirmware path for 
macosx=/dev/disk/by-id/ata-ST340015A_5LA13M03-part10 macosx=/dev/hda10
ybin: Try specifying the real OpenFirmware path for 
macosx=/dev/disk/by-id/ata-ST340015A_5LA13M03-part10 macosx=/dev/hda10 in 
/etc/yaboot.conf



It looks like you have the "macosx=" option twice in your `yaboot.conf`
on top and at the bottom. I'm unsure if this is an issue though. Does
someone with Debian and Mac OS X on their machine know more?



But does `/dev/hda10` really exist on your machine?


I remember only having trouble finding helpful docs on trying to customize
yaboot.conf. It might have been a pre-sata doc I was working from. sda1-14
exist, but no hda*, and fdisk finds neither, hence my use of parted. Still I'd
like to know something that can distinguish or explain sda2-7.

Simply removing the macosx=/dev/hda10 line from yaboot.conf solved the problem.
Ybin simply runs with no visible output. :-D


So either the double usage of the macosx stanza or the non-existing 
device is the problem.




Re: Multichannel audio listening

2018-03-07 Thread rhkramer
On Wednesday, March 07, 2018 02:37:46 PM Jeremy Nicoll wrote:
> On Wed, 7 Mar 2018, at 09:06, Rodolfo Medina wrote:
> > Fantastic...  thanks, Joel.  I want to buy one of those multichannel
> > soundcards...  Do you think this one could be all right...?

> You also of course require the thing to do what you want muscially.  There
> will be lots of reviews around.I'd suggest you read all the reviews on
> Amazon and other sellers - it's when people mention the things they don't
> like about some unit that you'll learn more than when they talk about
> things that just work.

+1



Re: Multichannel audio listening

2018-03-07 Thread Jeremy Nicoll
On Wed, 7 Mar 2018, at 09:06, Rodolfo Medina wrote:

> Fantastic...  thanks, Joel.  I want to buy one of those multichannel
> soundcards...  Do you think this one could be all right...?

> https://www.strumentimusicali.net/product_info.php/products_id/51790/behringer-umc404hd.html?gclid=Cj0KCQiAuP7UBRDiARIsAFpxiRKgsptPW1qxkEw793ahs684ltlhyh5dcIgzLJXtDh39CZA8IEX3qgIaAnquEALw_wcB


You have two sets of requirements... the first is whether any box you select 
will 
actually work with linux (and of course Debian).  This discussion suggests it 
may
be ok:

https://linuxmusicians.com/viewtopic.php?t=17231

but there's always a risk that a firmware update on a box might alter the way it
works.  I'd suggest you google for more recent discussions of that box and 
linux.

You also of course require the thing to do what you want muscially.  There will 
be
lots of reviews around.I'd suggest you read all the reviews on Amazon and 
other
sellers - it's when people mention the things they don't like about some unit 
that 
you'll learn more than when they talk about things that just work.

-- 
Jeremy Nicoll - my opinions are my own.



Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread rhkramer
On Wednesday, March 07, 2018 07:07:20 AM Dan Purgert wrote:
> Kamil Jońca wrote:
> Good luck there.  Brother, HP, everyone that makes quality hardware has
> a binary driver.
> 
> > - no bigger than ~ (H x D x W) 308 mm x 363 mm x 437 mm [3]
> 
> That's a bit on the small side, but you could probably find something.

+1--your size limititations make it rather tough.

Bbut I'll mention that I'm partial to Canon, and now that they've come out 
with the line of printers that you can refill on board ink tanks, I wish I 
hadn't bought something else recently.  The one disappointment I see with 
those Canon printers (there are two that I'm aware of) is that they can'd do 
auto duplex printing.



Re: Multichannel audio listening

2018-03-07 Thread rhkramer
On Wednesday, March 07, 2018 04:06:12 AM Rodolfo Medina wrote:
> Joel Roth  writes:
> > On Mon, Mar 05, 2018 at 10:39:19AM +0100, Rodolfo Medina wrote:
> >> After learning, some months ago, thanks to listers' help, how to live
> >> record into a multi channel audio file, I was wondering about the
> >> reverse problem: now I have my multi channel audio file, e.g. composed
> >> by three different channels.  Is it possibile (I guess it is), and
> >> how?, to send each of the three outputs into a different loud speaker
> >> and so listen to the song...?
> > 
> > Hi Rodolfo,
> > 
> > Ecasound is pretty convenient for routing audio.
> > 
> > If you connect three powered speakers to the first three
> > channels of a (sufficiently capable) soundcard and you're
> > using ALSA (the default low-level linux audio API), it's
> > pretty simple:
> > 
> > For example,
> > 
> > ecasound -i:3ch.wav -f:16,3,44100 -o:alsa,default
> > 
> > If you need to fool around with the routing, you can do
> > almost anything. For example, assuming  you have an
> > 8-channel soundcard and want to route ch1 to ch5, ch2 to ch6
> > and ch3 to ch7:
> > 
> > ecasound -i:3ch.wav \
> > -f:16,8,44100  \
> > -chmove:1,5 \
> > -chmove:2,6 \
> > -chmove:3,7 \
> > -o:alsa,default
> > 
> > Maybe you need to add separate effects (e.g. volume control) to each
> > channel:
> > 
> > ecasound \
> > -a:in -i:3ch.wav -o:loop,3ch \
> > -a:ch1,ch2,ch3 -i:loop,3ch \
> > -a:ch1 -chmove:1,5 -ea:80 \
> > -a:ch2 -chmove:2,6 -ea:70 \
> > -a:ch3 -chmove:3,7 -ea:60 \
> > -a:ch1,ch2,ch3 -f:16,8,44100 -o:alsa,default
> > 
> > There's a lot more you can do with ecasound, and there are
> > various front ends that provide a higher level of
> > abstraction.
> 
> Fantastic...  thanks, Joel.  I want to buy one of those multichannel
> soundcards...  Do you think this one could be all right...?
> 
> 
> https://www.strumentimusicali.net/product_info.php/products_id/51790/behrin
> ger-umc404hd.html?gclid=Cj0KCQiAuP7UBRDiARIsAFpxiRKgsptPW1qxkEw793ahs684ltl
> hyh5dcIgzLJXtDh39CZA8IEX3qgIaAnquEALw_wcB

Well, I'm not Joel, and I didn't read the description of that device 
thoroughly (actually I google for it and then read a little bit about it in 
English on Amazon), but I don't think that's what I had in mind when I 
suggested something like 1 5.2 or 7.2 (or should that be 5.1 or 7.1) 
soundcard.

The Amazon page I looked at:

https://www.amazon.com/s/?ie=UTF8=behringer+umc404hd=googhydr-20=aps=178390564539=1t2=g=939372652501756766===e=c===9006968=kwd-113850346562=pd_sl_18vyq1e9hy_e

Starting with the obvious, it's not a sound card (it is a separate standalone 
device which can presumably be hooked to a computer, but I think the computer 
would still require a sound card in addition to this device, because) it is 
not clear to me that your computer can use this device to deliver 5 (or 7, or 
4) separate "channels" of sound to it.

So, I wouild read carefully and hope  for some more input from Joel.




Re: gnats user

2018-03-07 Thread rhkramer
On Wednesday, March 07, 2018 01:16:06 AM Reco wrote:
> Along with other uid<100 users, 'gnats' is there for a long time,
> nobody's sure what will break if it's removed from passwd(5), 

Wow!  (I am not the OP, but that is disappointing (but not surprising, I 
suspect the same or similar about other things buried in Linux one place or 
another) and scary.

> and it's
> not that someone will use uid=41 for anything else.



Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread Celejar
On Wed, 7 Mar 2018 12:07:20 - (UTC)
Dan Purgert  wrote:

> Kamil Jońca wrote:
> >
> > I am not sure if it is best group for this question but I am tired with
> > searching over numerous web pages :(

I understand, but do see this thread:

https://lists.debian.org/debian-user/2017/07/msg00121.html

> I'd go for something from Brother.  Ideally, networkable (rather than
> needing to share via CUPS, etc.)

+1

My experience with my Brother HL-2280DW has been very good:

https://lists.debian.org/debian-user/2017/07/msg00183.html

I'm pretty sure that this model has been superseded by newer ones, but
I have the impression that the situation is similar with those newer
models in the same or similar product families:

http://www.brother-usa.com/productpages/ataglance2.aspx?PG=4=43

> > I need to buy device to scan and print which:
> > - can scan with sane
> Last I looked, Brother can do this.  That being said, I'm using one of
> their "MFC" series, and just scan PDFs to a network share (this does
> mean, ofc that I lose out on OCR, but for what I scan, that's minor).

My HL-2280DW works fine with sane.

> > - can print from my debian box (strongly prefer without binary/closed
> > drivers[1], I'm not sure about hplip[2])
> 
> Good luck there.  Brother, HP, everyone that makes quality hardware has
> a binary driver.

I use Brother's binary drivers. The printer can actually be made to
work without them, albeit with missing functionality and some apparent
difference in output quality:

https://lists.debian.org/debian-user/2017/07/msg00314.html
https://lists.debian.org/debian-user/2017/07/msg00448.html
https://lists.debian.org/debian-user/2017/08/msg00417.html

Celejar



[SOLVED] Re: Stretch and Gnome 3 : defining a new keyboard shortcut

2018-03-07 Thread Bernard



On 07/03/2018 17:17, Rol Ham wrote:

Hi Bernard,

On 07.03.2018 15:32, Bernard wrote:

Hi to Everyone,

On my new Debian Stretch with Gnome 3.22, I wanted to define a keyboard
shortcut to launch an Xterm. If I go to 'Settings' ==> 'Parameters' ==>
'Keyboard', and '+' at the bottom of the list so as to add a new
personnalized shortcut, a new box get displayed, in which I am supposed
to write a name, a command name, and define a shortcut. As for 'name', I
entered 'Terminal', and as for command name, I wrote :'gnome-terminal',
since this is what works in a terminal whenever you want to open an
extra one.


I have done it the same way (command 'gnome-terminal') and the shortcut
works fine. Maybe the choosen shortcut is already in use? So far as I
remember I had to disable a shortcut in use before reassigning it.



I tested a bit more, and succeeded to get this to work. Things to 
remember are as follow :


 - After pressing the '+' sign to add a new shortcut, record the chosen 
keyboard shortcut FIRST. You can't do anything else until you have done 
that first. Only after this can you successfully seize names and command.


  - Don't expect the new shortcut to work right away. You will have to 
reboot your system before it work.


Thanks for your help

Bernard



Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread Doug


On 03/07/2018 01:06 PM, Charlie Gibbs wrote:

On 06/03/18 09:00 PM, Kamil Jońca wrote:


I am not sure if it is best group for this question but I am tired with
searching over numerous web pages :(

I need to buy device to scan and print which:
- can scan with sane
- can print from my debian box (strongly prefer without binary/closed
drivers[1], I'm not sure about hplip[2])
- no bigger than ~ (H x D x W) 308 mm x 363 mm x 437 mm [3]
- can be shared to Windows machines (with HP 1120MFP I could not do 
that)


Any suggestions?


I have an Epson WF-2760 which seems to do what you need.  It sits on 
our LAN; from my Debian box I can use it to scan using xsane, and 
after setting it up in CUPS it prints with no problems.  Dunno about 
Windows, but my wife's Macbook accesses it just fine too.


I also have an Epson. Mine is WP-4530. It prints in color, scans, copies 
(reducing and enlarging on request) and sends and receives faxes. It 
uses large ink cartridges, unlike another Epson
printer I bought which uses little tiny ink sources that hardly last at 
all, so research your Epson choice carefully. I think the WP-4530 is a 
really excellent machine for all those purposes, and
it works perfectly with SANE. However, you will probably have to go to 
Epson and download drivers for it. I also don't know if it is still 
available.


--doug



Re: File and directory permissions

2018-03-07 Thread Dan Purgert
 wrote:
>
> On Wed, Mar 07, 2018 at 11:54:06AM -, Dan Purgert wrote:
>
> [...]
>
>> Think of it as being somewhat like a parking lot / garage with a gate at the
>> entrance.
>
> Uh-oh. A car analogy :)
>
>> You enter the lot / garage, get your ticket, and are admitted in.  Now
>> you're free to go anywhere in the lot to find a space (equivalent of
>> opening / editing files).  
>> 
>> While you're driving around the lot, the attendant closes the gate and
>> puts up a "Lot Full" sign [...]
>
> Nice metaphor, thanks!

Once in a while, car analogies work :)


-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread Charlie Gibbs

On 06/03/18 09:00 PM, Kamil Jońca wrote:


I am not sure if it is best group for this question but I am tired with
searching over numerous web pages :(

I need to buy device to scan and print which:
- can scan with sane
- can print from my debian box (strongly prefer without binary/closed
drivers[1], I'm not sure about hplip[2])
- no bigger than ~ (H x D x W) 308 mm x 363 mm x 437 mm [3]
- can be shared to Windows machines (with HP 1120MFP I could not do that)

Any suggestions?


I have an Epson WF-2760 which seems to do what you need.  It sits on our 
LAN; from my Debian box I can use it to scan using xsane, and after 
setting it up in CUPS it prints with no problems.  Dunno about Windows, 
but my wife's Macbook accesses it just fine too.


--
cgi...@surfnaked.ca (Charlie Gibbs)



Re: NUC7i3DNKE + écrans qui clignotent

2018-03-07 Thread JF Straeten

Chère Liste,


On Tue, Mar 06, 2018 at 05:23:51PM +0100, JF Straeten wrote:
[...]
> On Mon, Mar 05, 2018 at 06:59:51PM +0100, Christophe De Natale wrote:

[...]
> > Comment être certain que le standard est respecté ou compatible sur
> > le câble dvi/hdmi ?

> Ah ça bien sûr... Je ne peux que faire confiance aux câbles que
> j'ai.

> Mais la question est pertinente parce que ce sont les deux mêmes,
> achetés en même temps, et neufs, donc par définition non testés ou du
> moins on n'en a pas de preuve... Si ça se trouve, ils viennent d'un
> même lot qui pourrait être défectueux ?

Petit retour sur les tests réalisés depuis hier...

En synthèse, pour mémoire, on avait épinglé ceci au fur et à mesure de
la discussion :

- LTSP avec chiffrement ;
- câbles différents ;
- autre écran ;
- sur live-cd ;
- avec une install locale.


J'ai pu essayer ceci :

- LTSP avec chiffrement en premier, puisque c'est une variable à
  changer dans un fichier. Résultat : que dalle, ça le fait, même si
  c'est un peu moins et uniquement sur l'écran de gauche. C'est
  beaucoup plus rare à droite ;

NB. curieusement, c'est sur des applications en mode texte
(Mutt, rxvt, etc.) ou affichant beaucoup de texte (Thunar)
que ça foire. Avec un Gimp + gLabels à l'écran, ça ne bouge
pas. Strange...


- différents câbles / autre écran : j'ai testé le NUC sur un Iiyama
  ProLite B2403WS, 24", en 1920x1200 (le max), en HDMI des deux côtés
  (avec un câble HDMI Philips qui semble de bonne facture) : et bien
  ici, aucun problème !

  L'image est parfaitement stable, même avec des tas d'rxvt, Mutt et
  applications texte... Ça ne bouge pas et fonctionne normalement.

  Même résultat sur un projecteur Optoma GT5000+, en 1920x1080 (le
  max) : tout passe absolument parfaitement.


  Donc, fort de ce constat technologique de pointe, j'ai trépigné
  toute la journée jusqu'à avoir 5 minutes pour foncer ventre à terre
  chez les margoulins d'électronique du coin, histoire de trouver
  d'autres câbles HDMI to DVI-D DL. Y a pas, évidemment, que du SL...
  
  Je me rabats donc sur des adaptateurs HDMI to DVD-D (voire même I),
  de marque Ewent, que je teste sans même enlever mon paletot, sûr
  d'être dans le bon :-)

  Et ben non : foire totale ! C'est pire que tout. Même sur le bureau
  et l'écran d'accueil. À la limite, penser à lancer Mutt suffit à
  faire déconner l'affichage.

  Le seul constat possible est que la résolution 2560x1600 passe à
  travers, mais ça ne va pas plus loin, et même pas du tout en
  fait :-[

  Je pense nécessaire d'essayer d'autres câbles du type requis, de
  bonne facture (et si vous en avez qui fonctionne, les références
  m'intéressent évidemment) parce qu'on a ici manifestement une piste
  exploitable. Ou bien, vous pensez que je perds mon temps ?
  

- avec un live-cd [non testé] 
- avec un disque USB et une install locale [non testé]

  Ceci ne vaut pas la peine pour le moment si l'électronique est en
  cause à la base, à mon humble avis...


NB1. les adaptateurs HDMI to DVI : d'une manière générale, ils ne
sont à mon avis pas recommandables au delà des tests : il est
évident que ça va forcer sur les connecteurs de la machine vu la
disproportion des extrémités, sans parler du câble DVI aussi lourd
que rigide qui va empirer les choses ;

NB2. spécialement dans le cas du NUC... Il n'y a pas moyen de le
brancher côté câble d'alimentation, sauf à en bidouiller le plug.
En un sens, c'est ballot, je sais, mais j'étais chaud comme une
baraque à frites un soir de kermesse sur ma résolution de problème
et ai donc sacrifié ces détails sur l'autel de la R, même si ça
ne serait pas à faire en prod' :-)


Je me réjouis de voir si vous aurez d'autres idées et remarques après
au moins un test concluant et confirmé, mais qui ne va pas encore loin
assez : je *dois* arriver à la résolution native des écrans,
2560x1600, c'est contractuellement non négociable :-)

Merci encore à tous d'avance, en tout cas & A+,


-- 

JFS.



Multiple monitors...

2018-03-07 Thread Nimrod
Hi,

I need to show some movies on different monitors using a video card
with 8 HDMI ports on a workstation, and I need to have all done
automatically everytime the workstation starts, without use
intervention. I had no time yet to practice with this card, but I also
have a card with two HDMI and a VGA ports on my PC at work, so I made
some experiments.

I'm using GNOME on Debian Stretch, and GNOME allows me only to arrange
the two monitors as a unique virtual bigger screen (besides other
configurations such as mirroring I'm not interested in). If I have to
show a window on a specific monitor I can only use some sort of
xdotool/wmctrl command.

Also, I see some confusion between displays and workspace. I can move
or show a new window on a specific workspace, but that's useless for
me.

I got some decent results using xrandr to put the two monitors side by
side (they have different resolution, but this is not a problem for me)
and then using xdotool to move a window to the right far enough to have
it on the second monitor. But this is rather complicated.

My first thought was using the DISPLAY variable this way:

$ DISPLAY=:0.0 xterm
$ DISPLAY=:0.1 gedit

The first command works, but the second says "cannot open display
:0.1".

I'm sure there must be an easier solution.

Thanks in advance.


-- 
Nimrod 

Re: Stretch and Gnome 3 : defining a new keyboard shortcut

2018-03-07 Thread Rol Ham
Hi Bernard,

On 07.03.2018 15:32, Bernard wrote:
> Hi to Everyone,
> 
> On my new Debian Stretch with Gnome 3.22, I wanted to define a keyboard
> shortcut to launch an Xterm. If I go to 'Settings' ==> 'Parameters' ==>
> 'Keyboard', and '+' at the bottom of the list so as to add a new
> personnalized shortcut, a new box get displayed, in which I am supposed
> to write a name, a command name, and define a shortcut. As for 'name', I
> entered 'Terminal', and as for command name, I wrote :'gnome-terminal',
> since this is what works in a terminal whenever you want to open an
> extra one.

I have done it the same way (command 'gnome-terminal') and the shortcut
works fine. Maybe the choosen shortcut is already in use? So far as I
remember I had to disable a shortcut in use before reassigning it.

> But this didn't work !  Once this entered, the system did not allow me
> to define a keyboard shortcut, only to 'modify'.
> 
> I tried to replace 'gnome-terminal' by '/usr/bin/gnome-terminal' and by
> './/usr/bin/gnome-terminal', but none of these worked either.
> 
> What should I do to enter that personalized keyboard shortcut ?
> 
> Thanks in advance for your help
> 
> Bernard
> 
> 



Debian/testing does not resume from hibernate

2018-03-07 Thread Hans
Hi folks, 

I am still working on a bug. 

As I wrote some time ago, my EEEPC is working fine, when suspend-to-ram 
(hibernate and restore is working like a charm), but when I 
suspend-to-disk then hibnernation works, but resume is crashing (loads the 
content from 
swap, then shuts off and booting from BIOS).

I googled, and found many many questions to the same problem - but no answer or 
a 
solution.

As suspend-to-disk and resume worked some time ago, I believe it might have 
changed 
with the introduction of systemd. However, it worked also a long time, after 
systemd was 
implemented. But things might change, so before I go further, this is to be 
cleared:

Which packages have to be minimal needed to be installed, when I want to use 
hibernation with suspend-to-ram 

I have now

laptop-mode-tools
uswsusp
hibernate
lphdisk
eeepc-acpi-scripts
acpi
acpi-support
tuxonice-userui
upower

and of course all theire dependencies.

Maybe some packages interfere each other. However, I never changed the working 
configuration, just updated the system.

Thanks for the answer.

Best regards

Hans

P.S. I already filed a bugreport a long time ago, but the bahviour is still not 
fixed.


Soporte de equipos de computo y electronicos...publicidad

2018-03-07 Thread Laptops All Digital - Laptops
Reparacion de televisores Led ,Lcd, Smart
Le ofrecemos un servicio integral de Soluciones Informáticas,
Reparación, Mantenimiento
Diagnóstico de Computadoras, Laptops, Monitores, Impresoras y Fotocopiadoras, 
Proyectores, Cámaras de seguridad
Soporte Técnico Online
Recuperación de Datos del Disco Duro,
Instalacion de Software, Antivirus,
Cableado y Configuración de Redes para Internet e intranet.
Reparación de Computadoras, Mantenimiento Preventivo y Correctivo, Diagnostico
Cableado estructurado y Configuración de la Red, Instalación de Softwares
Ventas de cámaras de seguridad e instalación

Con una sola llamada, usted podrá solucionar cualquier problema con su 
computadora o duda informática en su hogar o en su oficina.



Pronta respuesta frente a una Emergencia.

Empresa de confianza
Contacto : Raul Figueroa
Email: laptopsalldigi...@gmail.com Telf. Fijo: 4225402
Rpm: #998853163
Movistar: 998853163 Whatsapp 998853163
Rpc: 944568722



Por favor si este anuncio no es de su interes envienos un titulo con el asunto 
retirar o remover de lista a:   laptopsalldigi...@gmail.com



Re-mapping AltGr and PrtSc keys globally

2018-03-07 Thread coco...@t-online.de
Hi.

Debian MATE 9.2.1.

My laptop's keyboard has Alt Gr followed by PrtSc to the immediate right of 
the Space bar. I'd like to globally remap those keys to Super and Right Alt 
respectively.

I've tried various things with my laptop's BIOS, xmodmap and the MATE 
settings without success. Does anyone know how to accomplish this?

Thanks.


 
Gesendet mit Telekom Mail  - kostenlos 
und sicher für alle!

A recomended guide to vim - was {Re: Does bash have a tool ?}

2018-03-07 Thread Richard Owlett

On 03/05/2018 04:27 AM, Richard Owlett wrote:

On 03/04/2018 11:27 AM, Curt wrote:

On 2018-03-04, Richard Owlett  wrote:

My eventual goal is to create a personalized FAQ.
To that end I've collected all my outgoing mail which DOES NOT have
"Re:" in the Subject into a single file {used standard SeaMonkey tools}.

Using a text editor's search function I've placed "KEY1" at the
beginning of the body of each message. Similarly, I've placed "KEY2" at
the end of each body.

Searches led to  which
describes tools to do word frequency tasks, primarily with bash 
builtins.


First I need to eliminate the irrelevant text between "KEY2" of the
previous message and "KEY1" of the message of interest. It should be
straight forard to do in BASIC.


vim (hit escape to get into command mode)

:/KEY2/+1;/KEY1/-1d

will delete everything between KEY2 and KEY1, excluding the
matching lines.


Haven't looked up the syntax you referenced. HOWEVER, an initial browse 
of vim.org immediately led to a half dozen pages of interest which an 
additional half dozen (at least) things that are inherent in vim that I 
had not mentioned. As today should be chilly and damp, I suspect where I 
will be warm, dry, and becoming educated.


Thank you.

[snip]


I've installed GVIM using Synaptic.
I have browsed vim.org but in the abundance of documentation I haven't 
appropriate introductory material aimed at my mindset - I learn by doing.


For example, GVIM launches with an unreadably small font.
I have found the instructions to do ":set guifont=*".
However I wish to set things appropriately in ~/.vimrc .
I ended up in  a sample script to insert.
However I could find no links to how to find how find a list of 
designation of a font-face.


I've not yet parsed the example given me

:/KEY2/+1;/KEY1/-1d


That may be longer relevant as my reading at vim.org has suggested 
better ways to approach my problem [ vim appears to have a world-view 
similar to Digital Equipment's TECO which I used ~40 years ago].


Where should I be looking for:
 1. how to parse the given example.
 2. how to have found it as a possible solution to my problem statement?

TIA






Re: adsl bridge mode

2018-03-07 Thread Dan Ritter
On Wed, Mar 07, 2018 at 01:17:01AM +0300, Gokan Atmaca wrote:
> Hello
> 
> I got ADSL bridge mode. I can get ip address from DHCP from the
> service provider.
> How do I  configure it ?

Let's assume that the Debian machine is connected to the ADSL
modem on eth0

The basic configuration in /etc/network/interfaces:

auto eth0

iface eth0 inet dhcp

And that's it; on reboot or 'ifup eth0' you should get an IP
address through DHCP, and also a default route, possibly a
nameserver, ntp server, and chocolate cake.

-dsr-



Stretch and Gnome 3 : defining a new keyboard shortcut

2018-03-07 Thread Bernard

Hi to Everyone,

On my new Debian Stretch with Gnome 3.22, I wanted to define a keyboard 
shortcut to launch an Xterm. If I go to 'Settings' ==> 'Parameters' ==> 
'Keyboard', and '+' at the bottom of the list so as to add a new 
personnalized shortcut, a new box get displayed, in which I am supposed 
to write a name, a command name, and define a shortcut. As for 'name', I 
entered 'Terminal', and as for command name, I wrote :'gnome-terminal', 
since this is what works in a terminal whenever you want to open an 
extra one.


But this didn't work !  Once this entered, the system did not allow me 
to define a keyboard shortcut, only to 'modify'.


I tried to replace 'gnome-terminal' by '/usr/bin/gnome-terminal' and by 
'.//usr/bin/gnome-terminal', but none of these worked either.


What should I do to enter that personalized keyboard shortcut ?

Thanks in advance for your help

Bernard



Re: File and directory permissions

2018-03-07 Thread Greg Wooledge
On Wed, Mar 07, 2018 at 12:42:19PM +0100, epsilon...@tutanota.com wrote:
> OK thanks for the explanations.
> To make sure:
> 1.) To prevent this scenario, I have to do recursive chown and chmod.

No, to prevent this scenario, use the correct owner and permissions in
the first place instead of setting things up with the wrong permissions,
waiting for someone to start exploiting it, and then correcting the
permissions too late.

Assuming I understand what you mean by "this scenario".  And my
understanding is "I set up a directory with the wrong permissions,
and people did bad things there, and then I fixed the permissions,
but they continued to do bad things, but only until I rebooted."



Re: Origin of /var/run contents

2018-03-07 Thread Greg Wooledge
On Tue, Mar 06, 2018 at 11:26:19PM +, Jonathan de Boyne Pollard wrote:
> Greg Wooledge:
> 
> > Wheezy used sysvinit and related pacakges, not systemd. Jessie does have
> > the file-hierarchy(7) man page that Jonathan mentioned.
> > 
> Debian 7 had systemd, and the sharp-eyed who read the URL will have noticed
> that I pointed to the Debian 7 version of that manual page.

Not by default.

ebase@ebase-adm:~$ cat /etc/debian_version 
7.11
ebase@ebase-adm:~$ man file-hierarchy
No manual entry for file-hierarchy

Optionally installable "technology preview" packages like wheezy's
unripe systemd do not count.



Re: (solved) Re: wireless fail after stretch installation

2018-03-07 Thread Ian Jackson
bw writes ("Re: (solved) Re: wireless fail after stretch installation"):
> On Tue, 6 Mar 2018, Ian Jackson wrote:
> > I have read the bug logs and Trent Buck's message here
> >   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694068#47
> > seems to suggest a way forward.
> > 
> > Perhaps someone would care to write and test a patch to d-i's network
> > configuration arrangements, to implement Trent's suggestion ?  I think
> > that the people who don't have network-manager would probably prefer
> > this to use ifupdown, and making a whole new udeb will be work, so
> > Trent's second suggestion seems sensible.
> 
> Second suggestion being networkd preferred over ifupdown?  yeah, I had 
> thought this was going to come up eventually.  State it in plain english, 
> if ifupdown is to be replaced, then let's get on with it.

I appreciate that you have reason for your paranoia, but in this case
it is entirely misplaced.  You have misunderstood me.  I meant this
part of Trent's suggestion:

|  If you don't want to udebify wpa_passphrase, you can do it by hand:
|
|  cat >"/etc/wpa_supplicant/wpa_supplicant-$iface.conf" < I think the whole thread is unfortunate, because it was started by a 
> person (Long Wind) who earlier posted a request for help about how to hack 
> into their neighbor's wireless network to steal internet service.

"Whatever".  Now, this thread is about Bug#694068.  Which is annoying
a number of people and should be fixed.

> I'm really shocked that anybody would try and make wireless easier to use 
> for thieves.  They should be shunned, not used as example clueless users 
> to implement fixes or new features.

I struggle to see how fixing #694068 is about helping "thieves".

Ian.

-- 
Ian Jackson    These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.



Re: (solved) Re: wireless fail after stretch installation

2018-03-07 Thread Ian Jackson
bw writes ("Re: (solved) Re: wireless fail after stretch installation"):
> On Tue, 6 Mar 2018, Brian wrote:
> > One user calls it a "sick joke". After five years and with no attempt
> > to rectify the situation, I'm beginning to have sympathy with that view.

Debian, like all ordinary software, is full of bugs.  Many bugs
languish unfixed for years.  This is not malice, or a "sick joke".
It's just that there is too much to do and too few people to do it.

There are rare cases where horrible people deliberately sabotage
things.  They are very high profile because they are so outrageous,
but they are not the norm.  I see no evidence in relation to this bug
that anyone is sabotaging anything.

The correct approach to this bug is to figure out how to fix it, and
send a patch.

> Brute forcing this thing with wifi to /e/n/i might not be the best 
> approach?  What about people who want a different config than the 
> installer?  What about people who don;t want to be UP (auto) on bootup?  
> What about static configs?  Wifi is by nature a mobile environment, what 
> about security or several devices?  Let's help the devs by hashing out the 
> pros and cons and making a coherent proposal?

We are considering the situation where the user has installed a
barebones system, with no GUI network management tools.

Such a user will probably *expect* to edit a configuration file when
they want to change their network configuration, whether because their
needs change, or because their needs are different to those of the
majority of people.

Consequently, there is no problem in principle with setting up /e/n/i
to have the wifi configuration from the install.  That is what most
people who do this will want; and if it doesn't suit them, they can
change it.  (It is easier to change it or delete it, than it is to set
it up from scratch.)

AFAICT from reading #694068, the reason d-i currently strips this
information out of the installed system is because it contains the
wifi password in /e/n/i, a world-readable file.  That would obviously
be wrong.

Someone should implement and test the suggestion made by Trent Buck,
here,
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=694068#47

Specifically:

|  If you don't want to udebify wpa_passphrase, you can do it by hand:
|
|  cat >"/etc/wpa_supplicant/wpa_supplicant-$iface.conf" <   These opinions are my own.

If I emailed you from an address @fyvzl.net or @evade.org.uk, that is
a private address which bypasses my fierce spamfilter.



Re: File and directory permissions

2018-03-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Mar 07, 2018 at 01:11:52PM +0100, epsilon...@tutanota.com wrote:
> Tomas and Dan, thanks for the explanations. So if the process have already a 
> handle (file descriptor) to apple, it can continue using it, even when I 
> chmod 700 one of its parents. On the other hand, any new process trying to 
> get a handle to apple MUST traverse the directory tree. This is what I 
> understand. Thanks again for the explanations.

Yes, that sounds about right, perhaps with a small correction:
it doesn't have to traverse the whole path from root if it
has a handle to an intermediate directory: that's what the
system call openat() is for.

Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqf1/8ACgkQBcgs9XrR2kZqIQCfYYuI6+7LShtFutPaatg2wd48
CioAnRU9aCHc4ZvDE9hwllp7fCeTA653
=7+m3
-END PGP SIGNATURE-



Re: File and directory permissions

2018-03-07 Thread Thomas Schmitt
Hi,

epsilon...@tutanota.com wrote:
> So what you say is this: if there is an open terminal before chmod 700, then
> I can use that terminal to access "apple", but after I close terminal B,
> there is no way to access that apple directory? Neither with a shall window,
> nor with another software?

It is not about the terminal but about the way how you get to directory
/opt/experiment/apple. If you are already in it, then you do not need
to read /opt/experiment where you have no permission.

  $ mkdir experiment
  $ mkdir experiment/apple
  $ cd experiment/apple
  $ chmod a-rwx ..
  $ touch aaa
  $ touch ../../experiment/apple/x
  touch: cannot touch ‘../../experiment/apple/x’: Permission denied
  $ touch ../../experiment/apple/aaa
  touch: cannot touch ‘../../experiment/apple/aaa’: Permission denied
  $ ls -ld ../../experiment/apple
  ls: cannot access ../../experiment/apple: Permission denied
  $ ls -ld .
  drwxr-xr-x 2 thomas thomas 4096 Mar  7 12:38 .

The reason is that nobody is allowed to read ../../experiment and thus
to find ../../experiment/apple where i have permission to write.


> even in the same terminal, vi can't access the file aaa.

My vim can do on the first try.
I can store my edited file and exit vim.

But on the next try i get

  Swap file ".aaa.swp" already exists!

although "ps -ef" confirms that no vim is editing "aaa".
After removing the swap file, i can edit and store again.
Again, the file ".aaa.swp" is not removed.

So vim has a problem with the nailed up parent directory. (Maybe because
it stores its absolute path after having created it by local path ?)


> 1.) To prevent this scenario, I have to do recursive chown and chmod.

At least it would be a less tricky situation.

Equal rights for all files of a tree !
But on the other hand, some files are more equal than others ...


Have a nice day :)

Thomas



Re: File and directory permissions

2018-03-07 Thread epsilon491
Tomas and Dan, thanks for the explanations. So if the process have already a 
handle (file descriptor) to apple, it can continue using it, even when I chmod 
700 one of its parents. On the other hand, any new process trying to get a 
handle to apple MUST traverse the directory tree. This is what I understand. 
Thanks again for the explanations.

7. Mar 2018 15:05 by to...@tuxteam.de:


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wed, Mar 07, 2018 at 11:54:06AM -, Dan Purgert wrote:
>
> [...]
>
>> Think of it as being somewhat like a parking lot / garage with a gate at the
>> entrance.
>
> Uh-oh. A car analogy :)
>
>> You enter the lot / garage, get your ticket, and are admitted in.  Now
>> you're free to go anywhere in the lot to find a space (equivalent of
>> opening / editing files).  
>>
>> While you're driving around the lot, the attendant closes the gate and
>> puts up a "Lot Full" sign [...]
>
> Nice metaphor, thanks!
>
> Cheers
> - -- t
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlqf1ZcACgkQBcgs9XrR2kbOWACdFPkI+DDHLgP7IUmVRWNxktJB
> l0wAn1MoVVSAAQ/X3175kLWFlzvhywhq
> =dG8K
> -END PGP SIGNATURE-

Re: Multifunction (printer + scanner) recommendation?

2018-03-07 Thread Dan Purgert
Kamil Jońca wrote:
>
> I am not sure if it is best group for this question but I am tired with
> searching over numerous web pages :(

I'd go for something from Brother.  Ideally, networkable (rather than
needing to share via CUPS, etc.)

>
> I need to buy device to scan and print which:
> - can scan with sane
Last I looked, Brother can do this.  That being said, I'm using one of
their "MFC" series, and just scan PDFs to a network share (this does
mean, ofc that I lose out on OCR, but for what I scan, that's minor).

> - can print from my debian box (strongly prefer without binary/closed
> drivers[1], I'm not sure about hplip[2])

Good luck there.  Brother, HP, everyone that makes quality hardware has
a binary driver.
> - no bigger than ~ (H x D x W) 308 mm x 363 mm x 437 mm [3]

That's a bit on the small side, but you could probably find something.
> - can be shared to Windows machines (with HP 1120MFP I could not do that)

Sounds like you might've missed a step then, since cups has been able to
share forever.

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Re: File and directory permissions

2018-03-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Mar 07, 2018 at 11:54:06AM -, Dan Purgert wrote:

[...]

> Think of it as being somewhat like a parking lot / garage with a gate at the
> entrance.

Uh-oh. A car analogy :)

> You enter the lot / garage, get your ticket, and are admitted in.  Now
> you're free to go anywhere in the lot to find a space (equivalent of
> opening / editing files).  
> 
> While you're driving around the lot, the attendant closes the gate and
> puts up a "Lot Full" sign [...]

Nice metaphor, thanks!

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqf1ZcACgkQBcgs9XrR2kbOWACdFPkI+DDHLgP7IUmVRWNxktJB
l0wAn1MoVVSAAQ/X3175kLWFlzvhywhq
=dG8K
-END PGP SIGNATURE-



Re: File and directory permissions

2018-03-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Mar 07, 2018 at 12:42:19PM +0100, epsilon...@tutanota.com wrote:
> OK thanks for the explanations.
> To make sure:
> 1.) To prevent this scenario, I have to do recursive chown and chmod.

I don't quite understand what you mean by "scenario": that a process
under the uid of "aristo" can modify the subdirectory "apple"? If you
don't want that, yes, you'll have to change its owner (or group) and
set its permissions accordingly.

> 2.) If I chmod only /opt/experiment, there is absolutely no other way to 
> access apple, other than an already open terminal.

Forget the terminal. It's the shell (in this case: it could be any
process in other cases). There are other ways, see below:

> Correct?

Not quite: try

  su
  cd /opt/experiments/apple
  su aristo
  touch ccc # now I modified dir apple as user aristo

Or better with sudo, anyway:

  sudo -s
  cd /opt/experiments/apple
  sudo -u aristo -s
  touch ccc # now I modified dir apple as user aristo

"You" just need a "helper process" which can traverse experiments and
gives "you" [1] an open descriptor to "apple". There are other ways
to pass open file descriptors around in Unix-like systems. Quite
possibly you can use them in a similar way.

[1] "You" is here just a shorthand for "the process running under the
  aristo UID which can't by itself open the whole path /opt/experiments/apple)

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqf1JMACgkQBcgs9XrR2kaklACfSWlqj3k/6iQwTxYs0RkOZaih
hB4An1eP+iVNa8uy7W1rrgQyS0KA1AIc
=uHKo
-END PGP SIGNATURE-



Re: File and directory permissions

2018-03-07 Thread Dan Purgert
 wrote:
> Sorry, it is very counter intuitive to me.
> So what you say is this: if there is an open terminal before chmod
> 700, then I can use that terminal to access "apple", but after I close
> terminal B, there is no way to access that apple directory? Neither
> with a shall window, nor with another software?

The shell is already in "apple", so yes it can continue doing things in
that directory. Once you leave (or log out of that terminal), you will
no longer have access.

Think of it as being somewhat like a parking lot / garage with a gate at the
entrance.

You enter the lot / garage, get your ticket, and are admitted in.  Now
you're free to go anywhere in the lot to find a space (equivalent of
opening / editing files).  

While you're driving around the lot, the attendant closes the gate and
puts up a "Lot Full" sign; someone coming in after you (barring them
being one of those "I can use a 'reserved' spot" types) gets turned
away. (or you'll get turned away if you leave, and try re-entering).

> In some cases this may lead to serious security issues, doesn't it?
> Let me ask this specific question: is there any way to access apple,
> otheri than the already open terminal B? If not, then it is ok, but
> there is any w ay to access apple, then I have to do recursive chown
> and chmod to make sure nobody can access anything below /opt/experiment.

No, why would you think that creates a security issue?  

No, once access to apple (or any directory in the chain) is revoked, it
is impossible for users to access the "apple" directory.

-- 
|_|O|_| Registered Linux user #585947
|_|_|O| Github: https://github.com/dpurgert
|O|O|O| PGP: 05CA 9A50 3F2E 1335 4DC5  4AEE 8E11 DDF3 1279 A281



Re: File and directory permissions

2018-03-07 Thread epsilon491
OK thanks for the explanations.
To make sure:
1.) To prevent this scenario, I have to do recursive chown and chmod.
2.) If I chmod only /opt/experiment, there is absolutely no other way to access 
apple, other than an already open terminal.
Correct?

7. Mar 2018 14:34 by to...@tuxteam.de:


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wed, Mar 07, 2018 at 12:19:06PM +0100, > epsilon...@tutanota.com>  wrote:
>> Addition to previous email:
>> Example:
>> In terminal B I can still modify a files as follows:
>> touch aaa
>> echo "123" > aaa
>> But when I do,
>> vi aaa
>> even in the same terminal, vi can't access the file aaa.
>
> That's because vi probably converts the path to absolute before
> trying to open it. It wouldn't need to, see the openat() system
> call for how.
>
> Cheers
> - -- tomás
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlqfzl0ACgkQBcgs9XrR2kbInQCeKypOpyRgw6WvzqAUShF/sTX7
> 3sEAnAwqb3Yo4lyQsQ29Yo2108Hvzv2F
> =tvgn
> -END PGP SIGNATURE-

Re: File and directory permissions

2018-03-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Mar 07, 2018 at 12:19:06PM +0100, epsilon...@tutanota.com wrote:
> Addition to previous email:
> Example:
> In terminal B I can still modify a files as follows:
> touch aaa
> echo "123" > aaa
> But when I do,
> vi aaa
> even in the same terminal, vi can't access the file aaa.

That's because vi probably converts the path to absolute before
trying to open it. It wouldn't need to, see the openat() system
call for how.

Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqfzl0ACgkQBcgs9XrR2kbInQCeKypOpyRgw6WvzqAUShF/sTX7
3sEAnAwqb3Yo4lyQsQ29Yo2108Hvzv2F
=tvgn
-END PGP SIGNATURE-



Re: File and directory permissions

2018-03-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Mar 07, 2018 at 12:14:10PM +0100, epsilon...@tutanota.com wrote:
> Sorry, it is very counter intuitive to me.
> So what you say is this: if there is an open terminal before chmod 700,
> then I can use that terminal to access "apple", but after I close terminal
> B, there is no way to access that apple directory?

No. The decisive point is that the first shell has access to the
subdirectory "apple" (via its "current working directory"), while
a new shell can't resolve the whole path "/opt/experiment/apple",
because it will fail at the step "experiment".

> Neither with a shall window, nor with another software?

Any software shares the shell's limitations; after all, it
has to invoke the operating system's services: if it wants to
access this directory by traversing the path -- that's it.

> In some cases this may lead to serious security issues, doesn't it?

Can you make up an example?

> Let me ask this specific question: is there any way to access apple, other 
> than the already open terminal B? If not, then it is ok, but there is any way 
> to access apple, then I have to do recursive chown and chmod to make sure 
> nobody can access anything below /opt/experiment.

The "terminal" is unimportant here. It's the process doing the
access (in your concrete case it's the shell running in the
terminal): it it has already access to the directory in question
(e.g. by an open file descriptor, which it has, courtesy of the
"current working directory"), then just that directory's permission
apply. If you want to travel the whole way down (e.g. in the case
of "open", when provided with a full path), all the intermediate
directories play a role.

Read the manpage. Very instructive.

Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqfzgQACgkQBcgs9XrR2kYfiwCeLBgYBIFzeWbFa+hPvEpkGtVL
52kAniuOGfVG6rAsNz4XW2JTuAZr7vIG
=fztW
-END PGP SIGNATURE-



Re: File and directory permissions

2018-03-07 Thread epsilon491
Addition to previous email:
Example:
In terminal B I can still modify a files as follows:
touch aaa
echo "123" > aaa
But when I do,
vi aaa
even in the same terminal, vi can't access the file aaa.

7. Mar 2018 14:14 by epsilon...@tutanota.com:


> Sorry, it is very counter intuitive to me.
> So what you say is this: if there is an open terminal before chmod 700, then 
> I can use that terminal to access "apple", but after I close terminal B, 
> there is no way to access that apple directory? Neither with a shall window, 
> nor with another software?
> In some cases this may lead to serious security issues, doesn't it?
> Let me ask this specific question: is there any way to access apple, other 
> than the already open terminal B? If not, then it is ok, but there is any way 
> to access apple, then I have to do recursive chown and chmod to make sure 
> nobody can access anything below /opt/experiment.
>
> 7. Mar 2018 14:06 by > to...@tuxteam.de> :
>
>
>> -BEGIN PGP SIGNED MESSAGE-
>> Hash: SHA1
>>
>> On Wed, Mar 07, 2018 at 11:54:43AM +0100, >> epsilon...@tutanota.com>>  
>> wrote:
>>> 7. Mar 2018 11:27 by >>> to...@tuxteam.de>>> :
>>>
>>> > I can't reproduce, either. Once the chown to root happens, non-root
>>> > user can't touch files in directory. Ext4.
>>>
>>> I double checked. Sorry the previous example was not good. To reproduce the 
>>> issue, you have to create another directory inside the top one. Here is a 
>>> working example:
>>>
>>> # terminal A
>>>
>>> su
>>>
>>> mkdir /opt/experiment/
>>>
>>> chown aristo:aristo /opt/experiment
>>>
>>> mkdir /opt/experiment/apple
>>>
>>> chown aristo:aristo /opt/experiment/apple
>>>
>>> # terminal B,
>>>
>>> whoami # aristo
>>>
>>> cd /opt/experiment/apple
>>>
>>> touch aaa # OK
>>
>> So far so good. Not surprising, IMO.
>>
>>> # terminal A
>>>
>>> chown root:root /opt/experiment
>>>
>>> chmod 700 /opt/experiment
>>>
>>>
>>>
>>>
>>> # terminal B
>>>
>>> pwd # Gives /opt/experiment/apple
>>>
>>>
>>> touch bbb # OK bbb is created
>>
>> Also OK. Or is that surprising to you? Aristo has write permissions for
>> apple.
>>
>>> cd /opt/experiment/apple # Gives permission denied
>>
>> That's also OK. While aristo has permissions for apple (x is relevant
>> here), it hasn't for experiment, so it can't "traverse" it.
>>
>>> # new terminal C
>>>
>>> cd /opt/experiment/apple # Denied
>>>
>>> touch /opt/experiment/apple/ccc # Denied
>>
>> Same as above: the resolution of the whole path requires traversing
>> each path's element in turn, and it fails at "experiment". There's
>> even a man page for that: see "man path_resolution" (part of the
>> manpages package).
>>  
>>> Note that, after chmod 700, in terminal B you can still create files, 
>>> although you cannot cd into apple.
>>
>> Yes, it is supposed to work like that.
>>
>> Cheers
>> - -- tomás
>> -BEGIN PGP SIGNATURE-
>> Version: GnuPG v1.4.12 (GNU/Linux)
>>
>> iEYEARECAAYFAlqfx8YACgkQBcgs9XrR2kYdEQCdFdtZP3/AlpzwuUtWJSu8T9V3
>> fb4An3WxROamXckNGTdH8FRaO9H1IFfo
>> =MbqQ
>> -END PGP SIGNATURE-

Re: File and directory permissions

2018-03-07 Thread epsilon491
Sorry, it is very counter intuitive to me.
So what you say is this: if there is an open terminal before chmod 700, then I 
can use that terminal to access "apple", but after I close terminal B, there is 
no way to access that apple directory? Neither with a shall window, nor with 
another software?
In some cases this may lead to serious security issues, doesn't it?
Let me ask this specific question: is there any way to access apple, other than 
the already open terminal B? If not, then it is ok, but there is any way to 
access apple, then I have to do recursive chown and chmod to make sure nobody 
can access anything below /opt/experiment.

7. Mar 2018 14:06 by to...@tuxteam.de:


> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wed, Mar 07, 2018 at 11:54:43AM +0100, > epsilon...@tutanota.com>  wrote:
>> 7. Mar 2018 11:27 by >> to...@tuxteam.de>> :
>>
>> > I can't reproduce, either. Once the chown to root happens, non-root
>> > user can't touch files in directory. Ext4.
>>
>> I double checked. Sorry the previous example was not good. To reproduce the 
>> issue, you have to create another directory inside the top one. Here is a 
>> working example:
>>
>> # terminal A
>>
>> su
>>
>> mkdir /opt/experiment/
>>
>> chown aristo:aristo /opt/experiment
>>
>> mkdir /opt/experiment/apple
>>
>> chown aristo:aristo /opt/experiment/apple
>>
>> # terminal B,
>>
>> whoami # aristo
>>
>> cd /opt/experiment/apple
>>
>> touch aaa # OK
>
> So far so good. Not surprising, IMO.
>
>> # terminal A
>>
>> chown root:root /opt/experiment
>>
>> chmod 700 /opt/experiment
>>
>>
>>
>>
>> # terminal B
>>
>> pwd # Gives /opt/experiment/apple
>>
>>
>> touch bbb # OK bbb is created
>
> Also OK. Or is that surprising to you? Aristo has write permissions for
> apple.
>
>> cd /opt/experiment/apple # Gives permission denied
>
> That's also OK. While aristo has permissions for apple (x is relevant
> here), it hasn't for experiment, so it can't "traverse" it.
>
>> # new terminal C
>>
>> cd /opt/experiment/apple # Denied
>>
>> touch /opt/experiment/apple/ccc # Denied
>
> Same as above: the resolution of the whole path requires traversing
> each path's element in turn, and it fails at "experiment". There's
> even a man page for that: see "man path_resolution" (part of the
> manpages package).
>  
>> Note that, after chmod 700, in terminal B you can still create files, 
>> although you cannot cd into apple.
>
> Yes, it is supposed to work like that.
>
> Cheers
> - -- tomás
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlqfx8YACgkQBcgs9XrR2kYdEQCdFdtZP3/AlpzwuUtWJSu8T9V3
> fb4An3WxROamXckNGTdH8FRaO9H1IFfo
> =MbqQ
> -END PGP SIGNATURE-

Re: File and directory permissions

2018-03-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Mar 07, 2018 at 11:54:43AM +0100, epsilon...@tutanota.com wrote:
> 7. Mar 2018 11:27 by to...@tuxteam.de:
> 
> > I can't reproduce, either. Once the chown to root happens, non-root
> > user can't touch files in directory. Ext4.
> 
> I double checked. Sorry the previous example was not good. To reproduce the 
> issue, you have to create another directory inside the top one. Here is a 
> working example:
> 
> # terminal A
> 
> su
> 
> mkdir /opt/experiment/
> 
> chown aristo:aristo /opt/experiment
> 
> mkdir /opt/experiment/apple
> 
> chown aristo:aristo /opt/experiment/apple
> 
> # terminal B,
> 
> whoami # aristo
> 
> cd /opt/experiment/apple
> 
> touch aaa # OK

So far so good. Not surprising, IMO.

> # terminal A
> 
> chown root:root /opt/experiment
> 
> chmod 700 /opt/experiment
> 
> 
> 
> 
> # terminal B
> 
> pwd # Gives /opt/experiment/apple
> 
> 
> touch bbb # OK bbb is created

Also OK. Or is that surprising to you? Aristo has write permissions for
apple.

> cd /opt/experiment/apple # Gives permission denied

That's also OK. While aristo has permissions for apple (x is relevant
here), it hasn't for experiment, so it can't "traverse" it.

> # new terminal C
> 
> cd /opt/experiment/apple # Denied
> 
> touch /opt/experiment/apple/ccc # Denied

Same as above: the resolution of the whole path requires traversing
each path's element in turn, and it fails at "experiment". There's
even a man page for that: see "man path_resolution" (part of the
manpages package).
 
> Note that, after chmod 700, in terminal B you can still create files, 
> although you cannot cd into apple.

Yes, it is supposed to work like that.

Cheers
- -- tomás
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqfx8YACgkQBcgs9XrR2kYdEQCdFdtZP3/AlpzwuUtWJSu8T9V3
fb4An3WxROamXckNGTdH8FRaO9H1IFfo
=MbqQ
-END PGP SIGNATURE-



Re: File and directory permissions

2018-03-07 Thread epsilon491
7. Mar 2018 11:27 by to...@tuxteam.de:

> I can't reproduce, either. Once the chown to root happens, non-root
> user can't touch files in directory. Ext4.




I double checked. Sorry the previous example was not good. To reproduce the 
issue, you have to create another directory inside the top one. Here is a 
working example:




# terminal A


su

mkdir /opt/experiment/

chown aristo:aristo /opt/experiment

mkdir /opt/experiment/apple

chown aristo:aristo /opt/experiment/apple




# terminal B,

whoami # aristo

cd /opt/experiment/apple

touch aaa # OK




# terminal A

chown root:root /opt/experiment

chmod 700 /opt/experiment




# terminal B

pwd # Gives /opt/experiment/apple


touch bbb # OK bbb is created


cd /opt/experiment/apple # Gives permission denied





# new terminal C

cd /opt/experiment/apple # Denied

touch /opt/experiment/apple/ccc # Denied




Note that, after chmod 700, in terminal B you can still create files, although 
you cannot cd into apple.




 

 


Re: Multichannel audio listening

2018-03-07 Thread Rodolfo Medina
Joel Roth  writes:

> On Mon, Mar 05, 2018 at 10:39:19AM +0100, Rodolfo Medina wrote:
>> After learning, some months ago, thanks to listers' help, how to live record
>> into a multi channel audio file, I was wondering about the reverse problem:
>> now I have my multi channel audio file, e.g. composed by three different
>> channels.  Is it possibile (I guess it is), and how?, to send each of the
>> three outputs into a different loud speaker and so listen to the song...?
>> 
>
> Hi Rodolfo,
>
> Ecasound is pretty convenient for routing audio.
>
> If you connect three powered speakers to the first three
> channels of a (sufficiently capable) soundcard and you're
> using ALSA (the default low-level linux audio API), it's
> pretty simple:
>
> For example,
>
> ecasound -i:3ch.wav -f:16,3,44100 -o:alsa,default
>  
> If you need to fool around with the routing, you can do
> almost anything. For example, assuming  you have an
> 8-channel soundcard and want to route ch1 to ch5, ch2 to ch6
> and ch3 to ch7:
>
> ecasound -i:3ch.wav \
> -f:16,8,44100  \
> -chmove:1,5 \
> -chmove:2,6 \
> -chmove:3,7 \
> -o:alsa,default
>
> Maybe you need to add separate effects (e.g. volume control) to each channel:
>
> ecasound \
> -a:in -i:3ch.wav -o:loop,3ch \
> -a:ch1,ch2,ch3 -i:loop,3ch \
> -a:ch1 -chmove:1,5 -ea:80 \
> -a:ch2 -chmove:2,6 -ea:70 \
> -a:ch3 -chmove:3,7 -ea:60 \
> -a:ch1,ch2,ch3 -f:16,8,44100 -o:alsa,default
>
> There's a lot more you can do with ecasound, and there are
> various front ends that provide a higher level of
> abstraction.


Fantastic...  thanks, Joel.  I want to buy one of those multichannel
soundcards...  Do you think this one could be all right...?


https://www.strumentimusicali.net/product_info.php/products_id/51790/behringer-umc404hd.html?gclid=Cj0KCQiAuP7UBRDiARIsAFpxiRKgsptPW1qxkEw793ahs684ltlhyh5dcIgzLJXtDh39CZA8IEX3qgIaAnquEALw_wcB

Rodolfo



Re: cant configure drawing tablet in debian stretch cinnamon

2018-03-07 Thread Tomaž Šolc

Hi

On 06. 03. 2018 18:36, Thomas Waldl wrote:
I just installed the latest debian stretch net installer with cinnamon, 
and I happen to not be able to configure my wacom tablet throught the 
menu options. Configuring it manually via console and xsetwacom commands 
works perfectly.


You really should provide more details if you want someone to help you. 
What does "not be able to configure" mean? Is it not detected at all or 
do the settings (which ones?) not have any effect? What Wacom tablet 
exactly are you using? Did it work for you on Jessie?


I am using a Wacom CTL480 with Stretch and GNOME 3 and the settings 
under "Wacom Tablet" in the GNOME control center work correctly for me. 
I don't use Cinnamon though, so I don't know what could be wrong in your 
case.


Best regards
Tomaž



Re: File and directory permissions

2018-03-07 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Wed, Mar 07, 2018 at 02:46:05PM +1300, Ben Caradoc-Davies wrote:
> On 07/03/18 13:56, epsilon...@tutanota.com wrote:
> >On terminal A,
> >chown root:root /opt/experiment/
> >chmod 700 /opt/experiment
> >On terminal B,
> >whoami #aristo
> >touch bbb
> ># OK bbb is created in /opt/experiment/
> >cd /opt/experiment/
> ># Gives permission denied
> >ls -la
> ># Gives correct listing
> >pwd
> ># Gives /opt/experiment
> 
> I cannot reproduce this behaviour on a local ext4 filesystem. As
> soon as access is removed, a nonprivileged user cannot cd to or list
> contents of the test directory.

I can't reproduce, either. Once the chown to root happens, non-root
user can't touch files in directory. Ext4.

Cheers
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlqfomIACgkQBcgs9XrR2kYFvACfaUppx+DNfR3DdU8HhwuAL+IM
i5UAn0uBEShvWRc/gfk9agkfwFecUpLI
=Nwky
-END PGP SIGNATURE-