Re: tigervnc and multiple users

2018-01-06 Thread Mark Fletcher
> Happy New Year to the list!
> 
> I use tigervnc on Stretch to provide remote access to my machine from
> a 
> variety of devices. I'm running VNC over an OpenVPN VPN but I don't 
> THINK that is relevant to the problem.
>
> If I start tigervnc as the same user I log into Gnome as, I have no 
> problem. I find I can connect from a variety of client devices
including 
> iDevices, Windows machines, and Android devices, and it works very
well.
>
> However, I would like to use this mechanism to also allow a friend
to 
> access my machine remotely, the friend is a Mac user. I have no need
> or 
> desire to access the existing X session, just getting any graphical 
> desktop environment remotely is the goal. Sitting in front of his Mac
> I 
> can connect to my machine and log in as me and it all works. But I
want 
> him to log in as him, not me. I believe that is going to require a 
> second instance of tigervnc server, especially as it is possible that
> in 
> the future we might both be accessing the machine remotely at the
same 
> time from different places. If I try to run an additional tigervnc 
> server on my machine as HIS account on my machine, that fails to
start with:
> 
> $ tigervncserver
> 
> Warning: kazuki.local:1 is taken because of /tmp/.X11-unix/X1
> Remove this file if there is no X server kazuki.local:1
> /usr/bin/xauth:  timeout in locking authority file
/run/user/1000/gdm/Xauthority
> /usr/bin/xauth:  timeout in locking authority file
/run/user/1000/gdm/Xauthority
> 
> New 'kazuki.local:2 (richard)' desktop at :2 on machine kazuki.local
> 
> Starting applications specified in /etc/X11/Xvnc-session
> Log file is /home/richard/.vnc/kazuki.local:2.log
>
> Use xtigervncviewer -SecurityTypes VncAuth,TLSVnc -passwd
/home/richard/.vnc/passwd kazuki.local:2 to connect to the VNC server.
>
>
> tigervncserver: Failed command '/etc/X11/Xvnc-session': 256!
> 
> === tail -15 /home/richard/.vnc/kazuki.local:2.log 
===
> Killing Xtigervnc process ID 12775... which seems to be deadlocked.
Using SIGKILL!
> 
> Xvnc TigerVNC 1.7.0 - built Apr  9 2017 14:38:13
> Copyright (C) 1999-2016 TigerVNC Team and many others (see
README.txt)
> See http://www.tigervnc.org for information on TigerVNC.
> Underlying X server release 11903000, The X.Org Foundation
> 
> 
> Sun Dec 31 23:34:35 2017
>  vncext:  VNC extension running!
>  vncext:  Listening for VNC connections on all interface(s), port
5902
>  vncext:  created VNC server for screen 0
> XIO:  fatal IO error 11 (Resource temporarily unavailable) on X
server ":2"
 >  after 173 requests (173 known processed) with 0 events
remaining. 
> Killing Xtigervnc process ID 13234... which seems to be deadlocked.
> Using SIGKILL!
>
>
===
> ===
> 
> 
> Starting applications specified in /etc/X11/Xvnc-session has failed.
> Maybe try something simple first, e.g.,
> tigervncserver -xstartup /usr/bin/xterm
> 
> 
> 
> I understand that the very first two lines of the above are not a 
> problem, just tigervnc reporting that it found the local X
environment 
> (Gnome) running on the machine that I use when I am sitting in front
of 
> it. But the rest doesn't look healthy...
> 
> 
> /etc/X11/Xvnc-session contains:
> 
> #! /bin/sh
> 
> test x"$SHELL" = x"" && SHELL=/bin/bash
> test x"$1" = x"" && set -- default
> 
> vncconfig -iconic &
> $SHELL -l < exec /etc/X11/Xsession "$@"
> EOF
> vncserver -kill $DISPLAY
> 
> 
> Now there is no way I wrote that, so I either copied it from a
webpage 
> somewhere or that is what the tigervnc package installs by default.
> 
> As I say this works when I run the server as me and try to log into
it 
> as me. How can I set things up so I can log in as me, my friend can
log 
> in as him, and not have to share passwords (which I just will not
do, 
> come what may)?
>
> Googling about multiuser access to tigervnc results in a lot of
pages 
> referring to files /etc/sysconfig/ which I guess is not a Debian
thing 
> as my box doesn't have an /etc/sysconfig directory.
> 
> Thanks
> 
> Mark

One additional thing I have found -- the user richard had never logged
into Gnome directly on the box. If I did that, I could then start a
tigervnc instance as richard as normal. And, while logged into Gnome
locally as richard, I also _could_ launch an instance of tigervnc as me
 after su - 'ing to my account (mark). I got the timeout errors but the
server successfully started. Logging out of everything and logging back
in as me, I can again start a server as me but attempting to start it
as richard gets the same result as in my original post.

I must be missing something obvious -- items I have found with Google
either don't touch on this or else expect it to just work -- any
suggestions where to look for a solution?

Thanks

Mark



Re: [Stable/AMD64] Changing gdm background

2018-01-06 Thread Floris
Op Fri, 05 Jan 2018 18:38:29 +0100 schreef Leandro Noferini  
:



Leandro Noferini  writes:


I would like to change the default background of gdm login screen on my
laptop (to put into my contacts); I looked for a solution but none of my
findings worked: is there a way to change this background that actually
works?


Any help?

In the meantime I installed lightdm and I have changed the login screen
with the utility lightdm-gtk-greeter-settings but I would like to use
gdm.



There is no easy way to change the gdm3 theme, but you can. The Arch Wiki  
has a small how-to:

https://wiki.archlinux.org/index.php/GDM

Floris



Re: GRUB and boot partition

2018-01-06 Thread Richard Hector
On 06/01/18 03:56, Gary Dale wrote:
> One once-popular code was to replace all words in a message with 2
> numbers each, referring to a page & word number within an agreed-upon
> book. If you used it electronically, you could send a binary file where
> each original word was reduced to 2 bytes.

That would restrict your choice of book quite a bit - or at least, you'd
only be able to use a small part of most/many books. I guess you can
optimise it by not splitting the numbers at the byte boundary.

Richard



signature.asc
Description: OpenPGP digital signature


Re: Experiences with BTRFS -- is it mature enough for enterprise use?

2018-01-06 Thread Richard Hector
On 03/01/18 14:02, Gene Heskett wrote:
> ... so 
> used to winslow ...

...

> Will it actually happen? Chances are I'd have better results offering a 
> bridge in Sun City AZ for sale...

Is someone used to Winslow likely to be confused in Sun City?

(I've never been to either (or, within my memory, the US at all))

Richard



signature.asc
Description: OpenPGP digital signature


MTP devices leave multiple copies under Devices in file managers

2018-01-06 Thread Carl Fink

I'm sure this is a known problem but I can't figure out what the
correct search terms would be.

I have a couple of Android devices that mount using MTP. Recently I was
trying to install LineageOS on one (which failed because the USB port on
the phone physically failed halfway through, but that's a side-issue).
As a result, apparently, both caja and thunar now show 21 separate
entries under "Devices", of which 19 or 20 are dead and useless. (I
can't test the Samsung Galaxy Note links because, well, the physical
USB port is broken.)

I am sure these are lines in a file somewhere, but I do not know where
and of course documentation exists, somewhere, but I do not know where.

Relevant software installed:

   Debian Testing
   gmtp
   go-mtpfs
   jmtpfs
   mtp-tools

How can I clean this up?

Thanks.

-- Carl Fink c...@finknetwork.com Thinking and logic and stuff at 
Reasonably Literate http://reasonablyliterate.com




Re: How to create a PDF-Printer from the command line

2018-01-06 Thread Brian
On Fri 05 Jan 2018 at 21:06:22 -0600, Jason wrote:

> On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> print files to. I only know how to do this with the GUI program
> system-config-printer but I don't want to install that on this
> Pi. What shell command do I need to create a PDF printer on the Pi (or
> on any Debian, for that matter)?

lpadmin. The wiki should help.

-- 
Brian.



systemd errors

2018-01-06 Thread Michael Grant
I'm seeing the following errors in my daemon.log:

Jan  5 05:05:30 debian systemd[1]: File
/lib/systemd/system/systemd-journald.service:35 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
Jan  5 05:05:30 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:30 debian systemd[1]: File
/lib/systemd/system/systemd-logind.service:37 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
Jan  5 05:05:30 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:30 debian systemd[1]: File
/lib/systemd/system/systemd-udevd.service:34 configures an IP firewall
(IPAddressDeny=any), but the local system does not support BPF/cgroup
based firewalling.
Jan  5 05:05:30 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:30 debian systemd[1]:
/lib/systemd/system/user@.service:21: Failed to parse boolean value,
ignoring: pids cpu
Jan  5 05:05:30 debian systemd[1]:
/lib/systemd/system/user@.service:21: Failed to parse boolean value,
ignoring: pids cpu
Jan  5 05:05:31 debian systemd[1]: Reloading.
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-journald.service:35 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-logind.service:37 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-udevd.service:34 configures an IP firewall
(IPAddressDeny=any), but the local system does not support BPF/cgroup
based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]:
/lib/systemd/system/user@.service:21: Failed to parse boolean value,
ignoring: pids cpu
Jan  5 05:05:31 debian systemd[1]:
/lib/systemd/system/user@.service:21: Failed to parse boolean value,
ignoring: pids cpu
Jan  5 05:05:31 debian systemd[1]: Reloading.
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-journald.service:35 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-logind.service:37 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-udevd.service:34 configures an IP firewall
(IPAddressDeny=any), but the local system does not support BPF/cgroup
based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]:
/lib/systemd/system/user@.service:21: Failed to parse boolean value,
ignoring: pids cpu
Jan  5 05:05:31 debian systemd[1]:
/lib/systemd/system/user@.service:21: Failed to parse boolean value,
ignoring: pids cpu
Jan  5 05:05:31 debian systemd[1]: Reloading.
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-journald.service:35 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-logind.service:37 configures an IP
firewall (IPAddressDeny=any), but the local system does not support
BPF/cgroup based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/systemd-udevd.service:34 configures an IP firewall
(IPAddressDeny=any), but the local system does not support BPF/cgroup
based firewalling.
Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
Jan  5 05:05:31 debian systemd[1]:
/lib/systemd/system/user@.service:21: Failed to parse boolean value,
ignoring: pids cpu
Jan  5 05:05:31 debian systemd[1]:
/lib/systemd/system/user@.service:21: Failed to parse boolean value,
ignoring: pids cpu
Jan  5 05:05:31 debian systemd[1]: Reexecuting.
Jan  5 05:05:31 debian systemd[1]: systemd 236 running in system mode.
(+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP
+LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS
+KMOD -IDN2 +IDN default-hierarchy=hybrid)
Jan  5 05:05:31 debian systemd[1]: Detected virtualization kvm.
Jan  5 05:05:31 debian systemd[1]: Detected architecture x86-64.
Jan  5 05:05:31 debian systemd[1]: File
/lib/systemd/system/syst

Re: MTP devices leave multiple copies under Devices in file managers

2018-01-06 Thread Cindy-Sue Causey
On 1/6/18, Carl Fink  wrote:
> I'm sure this is a known problem but I can't figure out what the
> correct search terms would be.
>
> I have a couple of Android devices that mount using MTP. Recently I was
> trying to install LineageOS on one (which failed because the USB port on
> the phone physically failed halfway through, but that's a side-issue).
> As a result, apparently, both caja and thunar now show 21 separate
> entries under "Devices", of which 19 or 20 are dead and useless. (I
> can't test the Samsung Galaxy Note links because, well, the physical
> USB port is broken.)
>
> I am sure these are lines in a file somewhere, but I do not know where
> and of course documentation exists, somewhere, but I do not know where.
>
> Relevant software installed:
>
> Debian Testing
> gmtp
> go-mtpfs
> jmtpfs
> mtp-tools
>
> How can I clean this up?


Hi, Carl.. I'm just here to commiserate. I don't have an answer. My
experience has been that this ebbs and flows with Debian development
progress, particularly since you mentioned using Debian Testing.

Mine will occasionally go absolutely bananas when viewing file
managers as root user. It will have nothing to do with anything MTP,
either.

Today, *this second*, under root in Stable, it's only *blessedly*
showing pts, proc, sys, and Filesystem root (which flips focus back to
File System if clicked).

For Thunar run as normal users, elf and candycane, none of those above
show, but mounted partitions and USB attached devices show duplicate
entries. Those duplicate entries default to their originating device
entry sitting above them if left clicked.

Additionally, I've noticed that right click options vary slightly over
the originating device entry versus the sibling that appears if the
originating device entry is clicked or otherwise mounted. The original
device entry will present "unmount' while its sibling will only offer
disconnect and/or eject (OUCH!).

FURTHERMORE... root's Thunar only offers disconnect for BOTH device
entries... which both (furthermore) look the same name-wise this
second, too, by the way and now that you consciously brought this
topic up.

I always fence sit when I see this going on. It's distracting as freak
for *my* brain, but it has the appearance of a possibly useful perk
for someone who knows what they're doing deep in development.

Cindy :)
-- 
Cindy-Sue Causey
Talking Rock, Pickens County, Georgia, USA

* Happiest of Happy New Years *



Re: systemd errors

2018-01-06 Thread Sven Joachim
On 2018-01-06 16:13 +, Michael Grant wrote:

> I'm seeing the following errors in my daemon.log:

They are warnings, not errors.  And systemd 236 only shows one of them.

> Jan  5 05:05:30 debian systemd[1]: File
> /lib/systemd/system/systemd-journald.service:35 configures an IP
> firewall (IPAddressDeny=any), but the local system does not support
> BPF/cgroup based firewalling.
> Jan  5 05:05:30 debian systemd[1]: Proceeding WITHOUT firewalling in effect!
> [ Many similar warnings skipped. ]

> Jan  5 05:05:31 debian systemd[1]: Reexecuting.
> Jan  5 05:05:31 debian systemd[1]: systemd 236 running in system mode.

So it seems that you upgraded to systemd 236 this morning, correct?

> Jan  5 05:05:31 debian systemd[1]: File
> /lib/systemd/system/systemd-journald.service:35 configures an IP
> firewall (IPAddressDeny=any), but the local system does not support
> BPF/cgroup based firewalling.
> Jan  5 05:05:31 debian systemd[1]: Proceeding WITHOUT firewalling in
> effect! (This warning is only shown for the first loaded unit using IP
> firewalling.)

This should be the last warning of this kind in the log until you
reboot.

> I'm running debian-testing, and I'm running a Linode kernel.
>
> Some searches say to enable CONFIG_BPF_SYSCALL in the kernel config,
> however, I running a Linode kernel, 4.14.12.  I really do not want to
> get into compiling my own kernel.  Is there some easier way to fix
> this?

You could also compile systemd and patch the warning out, but I think it
is easiest to just ignore it.  As I said, it should only appear once per
boot in the future.

See https://github.com/systemd/systemd/issues/7188 for more information.

Cheers,
   Sven



Re: MTP devices leave multiple copies under Devices in file managers

2018-01-06 Thread Ben Caradoc-Davies

On 07/01/18 03:54, Carl Fink wrote:

I have a couple of Android devices that mount using MTP. Recently I was
trying to install LineageOS on one (which failed because the USB port on
the phone physically failed halfway through, but that's a side-issue).
As a result, apparently, both caja and thunar now show 21 separate
entries under "Devices", of which 19 or 20 are dead and useless. (I
can't test the Samsung Galaxy Note links because, well, the physical
USB port is broken.)


What kernel version? Do the entries disappear on reboot?

With kernel 4.14, and stale entries disappearing on reboot, see these 
reports (one by me):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883425
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882353
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884067

Kind regards,

--
Ben Caradoc-Davies 
Director
Transient Software Limited 
New Zealand



Re: How to create a PDF-Printer from the command line

2018-01-06 Thread Brian
On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:

> On 1/6/2018 4:06 AM, Jason wrote:
> > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> > print files to. I only know how to do this with the GUI program
> > system-config-printer but I don't want to install that on this
> > Pi. What shell command do I need to create a PDF printer on the Pi (or
> > on any Debian, for that matter)?
> > 
> 
> Why do you want to"print" if you can convert to pdf using the command line?
> Based on the original file extension you simply search for a utility that
> will convert your original file to pdf.

How does one convert a text file to a PDF using the command line?

-- 
Brian



Re: MTP devices leave multiple copies under Devices in file managers

2018-01-06 Thread Carl Fink

On 01/06/2018 03:06 PM, Ben Caradoc-Davies wrote:

On 07/01/18 03:54, Carl Fink wrote:

I have a couple of Android devices that mount using MTP. Recently I was
trying to install LineageOS on one (which failed because the USB port on
the phone physically failed halfway through, but that's a side-issue).
As a result, apparently, both caja and thunar now show 21 separate
entries under "Devices", of which 19 or 20 are dead and useless. (I
can't test the Samsung Galaxy Note links because, well, the physical
USB port is broken.)


What kernel version? Do the entries disappear on reboot?


4.14.0-2.

No idea, because I don't want to reboot now.

With kernel 4.14, and stale entries disappearing on reboot, see these 
reports (one by me):

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=883425
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=882353
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884067 


I see you already added to the bug report on this. Thanks. That does
look like the same problem I'm seeing. If it's a kernel bug I'm sure
it will get fixed soon.

--
Carl Fink  c...@finknetwork.com
Thinking and logic and stuff at Reasonably Literate
http://reasonablyliterate.com



Re: How to create a PDF-Printer from the command line

2018-01-06 Thread john doe

On 1/6/2018 9:15 PM, Brian wrote:

On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:


On 1/6/2018 4:06 AM, Jason wrote:

On a RasperryPi with Raspbian, I would like to create a PDF Printer to
print files to. I only know how to do this with the GUI program
system-config-printer but I don't want to install that on this
Pi. What shell command do I need to create a PDF printer on the Pi (or
on any Debian, for that matter)?



Why do you want to"print" if you can convert to pdf using the command line?
Based on the original file extension you simply search for a utility that
will convert your original file to pdf.


How does one convert a text file to a PDF using the command line?



Using enscript and ps2pdf (goastscript) for example.

https://www.gnu.org/software/enscript/
https://www.ghostscript.com/doc/current/Ps2pdf.htm
https://askubuntu.com/questions/27097/how-to-print-a-regular-file-to-pdf-from-command-line
https://unix.stackexchange.com/questions/17406/how-to-convert-txt-to-pdf

--
John Doe



Re: How to create a PDF-Printer from the command line

2018-01-06 Thread Curt
On 2018-01-06, Brian  wrote:
> On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
>
>> On 1/6/2018 4:06 AM, Jason wrote:
>> > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
>> > print files to. I only know how to do this with the GUI program
>> > system-config-printer but I don't want to install that on this
>> > Pi. What shell command do I need to create a PDF printer on the Pi (or
>> > on any Debian, for that matter)?
>> > 
>> 
>> Why do you want to"print" if you can convert to pdf using the command line?
>> Based on the original file extension you simply search for a utility that
>> will convert your original file to pdf.
>
> How does one convert a text file to a PDF using the command line?
>

 unoconv -f pdf text.txt
 cupsfilter text.txt > text.pdf
 enscript text.txt -o - | ps2pdf - text.pdf

The above works here.

-- 
"An autobiography is only to be trusted when it reveals something disgraceful.
A man who gives a good account of himself is probably lying, since any life
when viewed from the inside is simply a series of defeats."
— George Orwell



what is the difference between a source package and a package (want alsa-lib in stretch)

2018-01-06 Thread Dan Hitt
I'm trying to build some software, and one of the long list of items
to install prior to configuring is 'alsa-lib'.

I tried
'sudo apt-get install alsa-lib'
but got the message
'E: Unable to locate package alsa-lib'

So i looked around on the internet, and saw a page for an alsa-lib
package on debian stretch:
https://packages.debian.org/source/stretch/alsa-lib

I had just installed libjansson-dev, so i didn't think i had anything
wrong with my local state, and it had a similar page
https://packages.debian.org/sid/libjansson-dev

However, the page for jansson identified it as a 'package', while the
page for alsa-lib identified it as a 'source package'.

So i suppose that a source package needs to be installed in some other
way, different than the way a 'package' is installed?

It's conceivable that i already somehow have alsa-lib installed in
some form (e.g., 'dpkg --get-selections' shows i have an alsa-utils).

Anyhow, would appreciate any clues.

I imagine that what i need are the libraries and the include files in
order to build this other software that asks for alsa-lib.

Thanks for any info!

dan



Re: what is the difference between a source package and a package (want alsa-lib in stretch)

2018-01-06 Thread Roberto C . Sánchez
On Sat, Jan 06, 2018 at 01:38:06PM -0800, Dan Hitt wrote:
> I'm trying to build some software, and one of the long list of items
> to install prior to configuring is 'alsa-lib'.
> 
> I tried
> 'sudo apt-get install alsa-lib'
> but got the message
> 'E: Unable to locate package alsa-lib'
> 
> So i looked around on the internet, and saw a page for an alsa-lib
> package on debian stretch:
> https://packages.debian.org/source/stretch/alsa-lib
> 
That page lists all the binary packages that are produced by the
alsa-lib source package.  In Debian, maintainers maintain source
packages which each produce one or more binary packages.  Typically
things like libraries, headers, utilities, and documentation are
sometimes placed into separate binary packages so that you are not
forced to install components you may not need or want.

In your case, you most likely need to install the libasound2-dev
package.

Regards,

-Roberto

-- 
Roberto C. Sánchez



Re: what is the difference between a source package and a package (want alsa-lib in stretch)

2018-01-06 Thread Thomas Schmitt
Hi,

have a look at

  https://tracker.debian.org/pkg/alsa-lib

To the lower left is a list of links titled "binaries". Those are the
readily installable packages which stem from source package "als-lib":
  https://packages.debian.org/source/stretch/alsa-lib
Normally you don't build from source package but rather install binary
packages.


Dan Hitt wrote:
> I'm trying to build some software, and one of the long list of items
> to install prior to configuring is 'alsa-lib'.

So you will probably at least need to do
  apt-get install libasound2-dev


Have a nice day :)

Thomas



Re: what is the difference between a source package and a package (want alsa-lib in stretch)

2018-01-06 Thread tomas
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sat, Jan 06, 2018 at 01:38:06PM -0800, Dan Hitt wrote:
> I'm trying to build some software, and one of the long list of items
> to install prior to configuring is 'alsa-lib'.
> 
> I tried
> 'sudo apt-get install alsa-lib'
> but got the message
> 'E: Unable to locate package alsa-lib'

There's no binary package 'alsa-lib'. Often, several binary packages
are built from one source package, each one can then be installed
independently.

> So i looked around on the internet, and saw a page for an alsa-lib
> package on debian stretch:
> https://packages.debian.org/source/stretch/alsa-lib

In your case, the page you mention lists all binary packages built
from alsa-lib (libasound, libasound-data, and a couple of others).

Typically, at least one -dev (e.g. for libraries, containing the
headers, when you want to build against the libs), and -doc are
built as separate binary packages: in systems with restricted
storage page, you don't always want the full documentation, for
example. The -udeb [1] there is, for example, a stripped down
version meant for the installer (in the installer you want just
naked functionality, to keep things small).

If you run the build scripts from the source package, it'll
generate all the binary packages.

Cheers
[1] https://d-i.alioth.debian.org/doc/talks/debconf6/paper/index.html#id2535182
- -- t
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlpRRhkACgkQBcgs9XrR2kZMfQCfbbh3u1uOKNSkxPJCg6oaZCmd
EvYAn1RMrepEzBVrK1C49thn3knoqhji
=717+
-END PGP SIGNATURE-



Re: what is the difference between a source package and a package (want alsa-lib in stretch)

2018-01-06 Thread Dan Hitt
On Sat, Jan 6, 2018 at 1:56 PM,   wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Sat, Jan 06, 2018 at 01:38:06PM -0800, Dan Hitt wrote:
>> I'm trying to build some software, and one of the long list of items
>> to install prior to configuring is 'alsa-lib'.
>>
>> I tried
>> 'sudo apt-get install alsa-lib'
>> but got the message
>> 'E: Unable to locate package alsa-lib'
>
> There's no binary package 'alsa-lib'. Often, several binary packages
> are built from one source package, each one can then be installed
> independently.
>
>> So i looked around on the internet, and saw a page for an alsa-lib
>> package on debian stretch:
>> https://packages.debian.org/source/stretch/alsa-lib
>
> In your case, the page you mention lists all binary packages built
> from alsa-lib (libasound, libasound-data, and a couple of others).
>
> Typically, at least one -dev (e.g. for libraries, containing the
> headers, when you want to build against the libs), and -doc are
> built as separate binary packages: in systems with restricted
> storage page, you don't always want the full documentation, for
> example. The -udeb [1] there is, for example, a stripped down
> version meant for the installer (in the installer you want just
> naked functionality, to keep things small).
>
> If you run the build scripts from the source package, it'll
> generate all the binary packages.
>
> Cheers
> [1] 
> https://d-i.alioth.debian.org/doc/talks/debconf6/paper/index.html#id2535182

Thanks Tomas, Thomas S, and Roberto for the explanation of what a
source package is, and the suggestion of which of the alsa-lib
packages i should install.

(I ended up installing libasound2-dev, and as a precaution,
libasound2-doc just in case i need to look over the docs for whatever
reason.)

dan



Re: How to create a PDF-Printer from the command line

2018-01-06 Thread Brian
On Sat 06 Jan 2018 at 21:02:15 +, Curt wrote:

> On 2018-01-06, Brian  wrote:
> > On Sat 06 Jan 2018 at 05:54:00 +0100, john doe wrote:
> >
> >> On 1/6/2018 4:06 AM, Jason wrote:
> >> > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> >> > print files to. I only know how to do this with the GUI program
> >> > system-config-printer but I don't want to install that on this
> >> > Pi. What shell command do I need to create a PDF printer on the Pi (or
> >> > on any Debian, for that matter)?
> >> > 
> >> 
> >> Why do you want to"print" if you can convert to pdf using the command line?
> >> Based on the original file extension you simply search for a utility that
> >> will convert your original file to pdf.
> >
> > How does one convert a text file to a PDF using the command line?
> >
> 
>  unoconv -f pdf text.txt

50+ megabytes of the libreoffice stack to install, But yes, that will
do it. A sledgehammer to crack a nut.

>  cupsfilter text.txt > text.pdf

I think you mean /usr/sbin/cupsfilter, unless you are assuming a user
has to be root. I like this one; unlike unoconv, it will probably be
on the system already and the command is flexible. Unfortunately, the
output doesn't have searchable or extractable text, desirable features
in a PDF. You pays your money and ... .

>  enscript text.txt -o - | ps2pdf - text.pdf

If UTF-8 doesn't matter to you, why indeed not use enscript?
 
> The above works here.

They all work here, too. As does printer-driver-cups-pdf, the OP's
target software.

-- 
Brian.



vbox cannot find headers, although they are installed

2018-01-06 Thread Harry Putnam
Having a problem getting the vbox guest additions on a `testing'
install to allow for larger monitor resolution.

When I attempt to install the additions the ouput says it cannot find
the headers for the running kernel.

I have checked, rechecked and reinstalled the headers but still get
the message that they cannot be found and the kernel module build then
fails.

(Note: All debian systems mentioned below are running as guests on an
`openindiana' (a solaris offshoot) host)

(Full output of attempted guest additions install are at the end)

But briefly . . . . 
>From the host with the failure:

  uname -r 4.14.0-2-amd64

  aptitude search headers |grep ^i

  i  linux-headers-4.14.0-2-amd64 - Header files for Linux 4.14.0-2-amd64
  i A linux-headers-4.14.0-2-common - Common header files for Linux 4.14.0-2

,
| On two other debian systems (both running stretch, not `testing') everything 
works as
| expected and the kernel module build succeeds... monitor settings then
| act accordingly.
| 
| From 2 stretch hosts:
| Of course, it is a different kernel and headers (4.9.0-5-amd64) on the
| `stretch' systems and with like named header files.
| 
|   i A linux-headers-4.9.0-5-common
|   i A linux-headers-4.9.0-5-amd64
| 
| With those in place on the stretch systems the guest additions build
| just like they should.
`

What am I missing?

=

Terminal output from attempting install of guest additions
=

[Did not post the full log referred to in the output below... it is
very long... but I can post it if necessary]

root # bash ./VBoxLinuxAdditions.run 
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.0.40 Guest Additions for Linux
VirtualBox Guest Additions installer
Removing installed version 5.0.40 of VirtualBox Guest Additions...
Removing existing VirtualBox non-DKMS kernel modules ...done.
update-initramfs: Generating /boot/initrd.img-4.14.0-2-amd64
Copying additional installer modules ...
Installing additional modules ...
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

Building the main Guest Additions module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.



Re: How to create a PDF-Printer from the command line

2018-01-06 Thread Erik Christiansen
On 07.01.18 00:19, Brian wrote:
> On Sat 06 Jan 2018 at 21:02:15 +, Curt wrote:
> > On 2018-01-06, Brian  wrote:
> >  unoconv -f pdf text.txt
> 
> 50+ megabytes of the libreoffice stack to install, But yes, that will
> do it. A sledgehammer to crack a nut.

This may be more delicate?:   https://www.gnu.org/software/a2ps/

Erik



Re: How to create a PDF-Printer from the command line

2018-01-06 Thread Jason
I am grateful for all the suggestions. The reason I would like to
setup a PDF printer is so that I can use the lp command to print most
of the common file formats that might come as email attachments to the
PDF printer to have them all end up in the ~/PDF folder. For example:

lp -d PDF-Printer image.jpg

This way if there is no physical printer accessible from the Pi, one
can just print to the PDF printer and print a hard copy later from the
generated PDFs.

On Sat, Jan 06, 2018 at 03:28:48PM +, Brian wrote:
> On Fri 05 Jan 2018 at 21:06:22 -0600, Jason wrote:
> 
> > On a RasperryPi with Raspbian, I would like to create a PDF Printer to
> > print files to. I only know how to do this with the GUI program
> > system-config-printer but I don't want to install that on this
> > Pi. What shell command do I need to create a PDF printer on the Pi (or
> > on any Debian, for that matter)?
> 
> lpadmin. The wiki should help.
> 

I had looked into lpadmin and thought that might be what I need but
couldn't find in the man page how to add a printer. I don't have web
access so am asking here rather than looking on the wiki.

So basically what I'm asking is how to add a printer (this could apply
to any printer, not just PDF) without needing to install a printer
configuration GUI.

Thanks.
-- 
Jason



Re: How to create a PDF-Printer from the command line

2018-01-06 Thread Erik Christiansen
On 07.01.18 13:26, Erik Christiansen wrote:
> 
> This may be more delicate?:   https://www.gnu.org/software/a2ps/

Hmmm ... and if ps2pdf isn't yet installed at your end, then an apt-get
fixes that. It produces sterling pdf from ps for me - big prints come
out perfectly at the local printer.

Erik



Kernel problem?

2018-01-06 Thread Rob Hurle
Hi All,

  I'm running Stretch and yesterday I did my normal:

sudo apt-get update
sudo apt-get upgrade

It seemed to install vmlinuz-4.9.0-5-686-pae (and associated config and
image files, etc) in place of 4.9.0-4-686-pae versions.  Now the system
won't boot at all.  I have reverted to 4.9.0-4-686-pae and all is well.  My
questions are:

1.  Does anyone else see this?

2.  How can I revert without losing my working 4.9.0-4-686-pae system?  Can
I just change the soft links for initrd.img and vmlinuz at / to point to
the 4.9.0-4-686-pae versions instead of the 4.9.0-5-686-pae ones?  Will
this break something else for a future upgrade?

Any help much appreciated.  Thank you.

Cheers, Rob Hurle

-
Rob Hurle
e-mail:rob1...@gmail.com
Mobile:   +61 417 293 603 (Australia)
Telephone:  (02) 6236 3895
28 Mirrormere Rd, Burra, NSW 2620, Australia