Re: your mail

2018-01-17 Thread Jude DaShiell

On Tue, 16 Jan 2018, josh cha wrote:


Date: Wed, 17 Jan 2018 01:15:12
From: josh cha 
To: debian-user@lists.debian.org
Resent-Date: Wed, 17 Jan 2018 06:33:10 + (UTC)
Resent-From: debian-user@lists.debian.org

Hello again. Too all the debain users.
I realised linksys AE6000 wifi usb SUPPORT IS DEAD LOL or maybe im not
checking the right places. Other wise is there a usb wifi that i can buy
That is compatible to debian.

I found that a Realtek Semiconductor Corp. RTL8187B Wireless 802.11g 
54Mbps Network Adapter works real well.
It also has Linux kernel support.  Your best bet is going to be to buy 
from thinkpenguin.com since all they're selling is linux-compatible 
hardware and software and it's how I got this adapter.  That being said, 
this works only on 2.4 band and coming standard will require a 5.0 adapter 
and all of those thinkpenguin.com sold at the time I bought mine needed to 
be bracket mounted internally.  Maybe choices have expanded since then I 
don't know.


 --



Re: your mail

2018-01-17 Thread Jude DaShiell

On Tue, 16 Jan 2018, josh cha wrote:


Date: Wed, 17 Jan 2018 01:15:12
From: josh cha 
To: debian-user@lists.debian.org
Resent-Date: Wed, 17 Jan 2018 06:33:10 + (UTC)
Resent-From: debian-user@lists.debian.org

Hello again. Too all the debain users.
I realised linksys AE6000 wifi usb SUPPORT IS DEAD LOL or maybe im not
checking the right places. Other wise is there a usb wifi that i can buy
That is compatible to debian.

By the way in order to get you that spec, I ran lsusb and did a cut and 
paste operation on its output so that spec will be correct.



--



Re: Problem using "dpkg -i"

2018-01-17 Thread Curt
On 2018-01-16, Michael Lange  wrote:
> On Tue, 16 Jan 2018 11:13:05 + (UTC)
> Curt  wrote:
>
>> On 2018-01-16, Michael Lange  wrote:
>> >
>> > To the OP: 
>> > a quick web search showed another alternative that (iirc) has not been
>> > mentioned before, see http://bluegriffon.org/ . I don't know anything
>> > about this program, except that it appears to be commercial but open
>> > source and they have a deb package available (which may or may not
>> > work with debian) and it apparently can be used for free with a
>> > somewhat reduced feature set. 
>> 
>>  Buy User's Manual
>>  €7.50 (+VAT inside EU).
>> 
>> Software whose user manual is for sale; sign me up, please, that's for
>> me!
>
> Yes sure, I did not intend to advertise that app. 
> But then, if you buy the "basic" license (for just 75.00 €) you get the
> manual for free!! :-)

I was wondering about that. So you if you download the free and crippled
version, and don't want to pay 7.50 €, you're on your own.

Apparently they like decimal multiples of 7.50 (I'm guessing a lifetime update
and license option must cost 750.00).

My brief visit to the site did not reveal to me the system requirements
for the app; maybe I missed them somehow (or maybe they're not there).

> Still, if one is looking for such a tool there are not too many
> competitors out there. If the free version is usable without buying the
> manual I cannot tell (and I do not feel much inclination to find out).
> And besides, I don't think we should condemn the developers because they
> try to earn money with the work they are doing. Some way or other all of
> us have to earn their living. At least they give away a free and open
> source version of their app and sell the manual, I think that is better
> than the other way around.

Yes, but before I take a test drive I like to read the manual first.
Maybe I'm funny that way.

> Regards
>
> Michael
>
> .-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.
>
> Without followers, evil cannot spread.
>   -- Spock, "And The Children Shall Lead", stardate 5029.5
>
>


-- 
Though I speak with the tongues of men and of angels, and have not charity, I
am become as sounding brass, or a tinkling cymbal.  And though I have the gift
of prophecy, and understand all mysteries, and all knowledge; and though I have
all faith, so that I could remove mountains, and have not charity, I am nothing.



Re: Problem using "dpkg -i"

2018-01-17 Thread Curt
On 2018-01-16, Michael Lange  wrote:
> On Tue, 16 Jan 2018 18:52:51 +0100
> deloptes  wrote:
>
>> Curt wrote:
>> > 
>> > I thought it was merely not recommended for upgrades.
>> > 
>> 
>> might be we check to see what is official statement on that
>
> Maybe Curt refers to the following from
> https://www.debian.org/releases/stretch/amd64/release-notes/ch-upgrading.en.html#upgradingpackages
>
> "The recommended way to upgrade from previous Debian releases is to use
> the package management tool apt-get. In previous releases, aptitude was
> recommended for this purpose, but recent versions of apt-get provide
> equivalent functionality and also have proven to more consistently give
> the desired upgrade results. "

I was indeed; beyond that caveat above, I'm unaware of any obsolatation
(yeah, I made that word up) of aptitude.

> Regards
>
> Michael
>
>
> .-.. .. ...- .   .-.. --- -. --.   .- -. -..   .--. .-. --- ... .--. . .-.
>
> It would be illogical to kill without reason.
>   -- Spock, "Journey to Babel", stardate 3842.4
>
>


-- 
Though I speak with the tongues of men and of angels, and have not charity, I
am become as sounding brass, or a tinkling cymbal.  And though I have the gift
of prophecy, and understand all mysteries, and all knowledge; and though I have
all faith, so that I could remove mountains, and have not charity, I am nothing.



Re: Problem using "dpkg -i"

2018-01-17 Thread Richard Owlett

On 01/16/2018 03:51 PM, Michael Lange wrote:

On Tue, 16 Jan 2018 15:29:57 -0600
Richard Owlett  wrote:


On 01/16/2018 04:17 AM, Michael Lange wrote:

[snip]

To the OP:
a quick web search showed another alternative that (iirc) has not been
mentioned before, see http://bluegriffon.org/ . I don't know anything
about this program, except that it appears to be commercial but open
source and they have a deb package available (which may or may not
work with debian) and it apparently can be used for free with a
somewhat reduced feature set.



That looks interesting. The only problem is I'm still using i386 flavor.


Maybe you could try to build from source? The instructions at
https://github.com/therealglazou/bluegriffon
at a quick glance look quite detailed, and I assume you are not
interested in the expensive extra-features from the binary packages
anyway?


Thank you.
The original problem which originally prompted me to investigate
"dpkg -i" has been resolved.

*HOWEVER* your post leads to solving a more important problem.
It has been suggested several times "to build from source". I couldn't
find instructions suitable to my lack of background. The closest I've 
come was working in 8080 assembler ~40 years ago ;} Your reference and 
the educational material at https://www.mercurial-scm.org/ should 
resolve that problem.




Or, the (maybe) easier way, try to pick one of the older releases from
http://bluegriffon.org/freshmeat/ and see if one of these can be installed
and run on your system (2.3.1 appears to be the latest that comes with a
386 deb).

Regards

Michael





Re: Acrobat Reader stops works

2018-01-17 Thread Kamil Jońca
deloptes  writes:

> Kamil Jońca wrote:
>
>> 1. With strace I checked which libraries were open, then (with dpkg -S )
>> found packages - no differences on *.so files.
>> 2. Moreover I copied  proper *.so files from "working"  to "non-working"
>> computer, to dedicatd directory, and with LD_LIBRARY_PATH forced to use
>> them - no success.
>> Something strange must be with data (fonts? preferences? I don't know)
[...]

> #exec ${1+"$@"}
> ldd ${1+"$@"}

I tried this also, on working and not working machine. No differences
in list of libraries.

KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
You can't kiss a girl unexpectedly -- only sooner than she thought you would.



Re: Secure email server setup

2018-01-17 Thread rhkramer
On Monday, January 15, 2018 01:51:30 PM rhkra...@gmail.com wrote:
> (My understanding of SMTP may be faulty, but, AIUI, if your ISP is your
> SMTP server, email is stored there (unless deleted) (so that you can
> access it from more than one of your computers.  

For the record:

   1) My statement above is wrong / misleading.  It turns out that I was 
thinking of IMAP when I described a server that keeps email stored on the 
(computer with) the IMAP server (often your ISP).

   2) I should usually refrain from discussions on email, although  I set up a 
few email servers a long time ago (15 years??) they were cookie cutter copies 
of each other, and didn't deal with many things that should be dealt with 
these days (and probably should have been dealt with back then).



Re: NFS4 file transfers fail or are very slow

2018-01-17 Thread Dan Ritter
On Tue, Jan 16, 2018 at 11:41:05PM +0100, Michael wrote:
> Hello guys,
> 
> I have recently installed Debian Stretch 9.3 on a new PC and I'd just like
> to provide some NFS shares for other Linux machines in the LAN (1GBit). With
> small files everything works fine, but if I try to copy, e.g., a 7GB file
> with rsync it starts with a high transmission rate above 160MB/s and then
> goes down to around 70-90MB/s. After a random but short time there's no more
> progress going on for about 10-15 seconds. When the process then continues,
> the speed goes down to around 20MB/s and then up to about 200MB/s. It seems
> to continue transferring data, but rsync gives me an error message in the
> end.

Max throughput on 1Gb/s ethernet is slightly less than 125 MB
per second. Bits versus bytes, you know.

Anytime you see a rate above that, you're actually seeing
compression ratios rather than on-the-line bytes. Rsync is doing
that for you,

90MB/s is a normalish large-file transfer rate for
not-very-compressible data being read off of a spinning disk.

rsync also makes an awful lot of disk seeks in the attempt to
not transfer data that it doesn't need to transfer. 

> Exactly the same share is able to write more than 105MB/s via SMB/CIFS, so I
> would expect an NFS speed in a similar range.

Protocol overhead. Have you tried running a network benchmark?

-dsr-



Re: Acrobat Reader stops works

2018-01-17 Thread deloptes
Kamil Jońca wrote:

> I tried this also, on working and not working machine. No differences
> in list of libraries.

you could replace ldd with gdb or valgrind and get the stack where it fails





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

2018-01-17 Thread Brian
On Wed 10 Jan 2018 at 21:01:13 +0100, to...@tuxteam.de wrote:

> On Wed, Jan 10, 2018 at 07:10:03PM +, Brian wrote:
> > On Wed 10 Jan 2018 at 17:13:09 +0100, to...@tuxteam.de wrote:
> 
> [...]
> 
> > > Downside is that it does the panoramic tour via PS and thus generates
> > > fairly hefty PDFs.
> > 
> > With plain text files as an input?
> 
> [...]
> 
> > brian@desktop3:~$ ls -l
> > -rw-r--r-- 1 brian brian  28853 Jan 10 18:58 output1.pdf
> > -rw-r--r-- 1 brian brian  66557 Jan 10 18:58 output1.ps
> > -rw-r--r-- 1 brian brian  36221 Jan 10 18:58 output2.pdf
> > -rw-r--r-- 1 brian brian 219186 Jan 10 18:59 output3.pdf
> > 
> > output3.pdf contains the complete DejaVuSansMono glyph set.
> > 
> > The finger is often pointed at ps2pdf as a file bloating command.
> > Unjustifiably, it would seem, in this case. A counter example with a
> > text file?
> 
> Thanks for actually trying out. I stand corrected...

A gracious response. However, my data were in the context of using a2ps
to go from text to PS. Your "hefty PDFs" would be entirely correct if
paps had been used for the conversion. The result is a 156551 sized file
for me. gs2pdf comes up with a whopping 11540827 and takes 18 s to do so.

An explantation is given by a Ghostscript developer at

  
https://stackoverflow.com/questions/26066535/ps2pdf-creates-a-very-big-pdf-file-from-paps-created-ps-file

The same page has 

 > As the author of paps,...I have just released a new version of paps...

The new version's README has

 > paps is a command line program for converting Unicode text
 > encoded in UTF-8 to postscript and pdf by using pango.

That was in 2015, Debian's paps does not relect the existence of a
7.0 version. I wonder why?

-- 
Brian.



Re: Problem using "dpkg -i"

2018-01-17 Thread Michael Lange
On Wed, 17 Jan 2018 06:50:09 -0600
Richard Owlett  wrote:

(...)
> *HOWEVER* your post leads to solving a more important problem.
> It has been suggested several times "to build from source". I couldn't
> find instructions suitable to my lack of background. The closest I've 
> come was working in 8080 assembler ~40 years ago ;} Your reference and 
> the educational material at https://www.mercurial-scm.org/ should 
> resolve that problem.

The most common way to build applications from source on linux systems
uses a "configure" script; the way to build such an app is usually quite
straightforward. 
First thing I usually do is to cd into the source directory and call

$ .configure --help

which will print out a number of available options how the build can be
configured. Next thing is to actually run the configure script with

$ .configure 
followed by 
$ make
and
$ make install
That's it (if all went well)!

One problem that may cause confusion in that procedure is when .configure
stops with an error message saying something like "libfoo not found"
although libfoo is installed. In such a case the solution is to install
the missing header files, usually in a package as "libfoo-dev". 
By default programs compiled like this will install into /usr/local; if
it is desired to neatly separate that app from the system this
can be overridden with configure's --prefix option, as in
$ .configure --prefix=/opt/appname

Some apps of course (as apparently that blue griffon) use a different
approach, so reading the build instructions first is certainly always a
good idea :-)

Regards

Michael

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

Change is the essential process of all existence.
-- Spock, "Let That Be Your Last Battlefield", stardate
5730.2



Re: scriptable way to list packages that are not installed

2018-01-17 Thread Darac Marjal


On 17/01/18 02:17, Charlie Gibbs wrote:
> On 16/01/18 12:15 PM, david...@freevolt.org wrote:
>
>> Is there a natural law or something, that every email message sent
>> must contain at least one distracting error that is totally beside the
>> point?
>>
>> Anyways, over and out.
>
> "Over" means "My transmission is finished; I expect a reply."
> "Out" means "My transmission is finished; I do not expect a reply."
>
> One more distracting error... :-)
>
Surely it depends on your context. If you're communicating over a radio,
then sure, they mean what you mean. But perhaps it's a quotation
(wiktionary states that "over and out" is mostly used in TV and films).
Perhaps it's a reference to cricket (as in "The over is complete, AND
the batsman is out").



signature.asc
Description: OpenPGP digital signature


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

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

On Wed, Jan 17, 2018 at 06:21:31PM +, Brian wrote:
> On Wed 10 Jan 2018 at 21:01:13 +0100, to...@tuxteam.de wrote:

[...]

> > Thanks for actually trying out. I stand corrected...
> 
> A gracious response. However, my data were in the context of using a2ps
> to go from text to PS. Your "hefty PDFs" would be entirely correct if
> paps had been used for the conversion. The result is a 156551 sized file
> for me. gs2pdf comes up with a whopping 11540827 and takes 18 s to do so.

Heh. I've been called all sort of names, but gracious... :-)

> That was in 2015, Debian's paps does not relect the existence of a
> 7.0 version. I wonder why?

Yes, that might be the root of my dim memories.

Thanks for your thorough investigation

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

iEYEARECAAYFAlpfrDMACgkQBcgs9XrR2kYFGACeL5J7MFpQSDa3F96kHNjq6D7H
DFMAn0w5jLhnXV492+EJQeORz3LhQqoX
=t1V6
-END PGP SIGNATURE-



Re: scriptable way to list packages that are not installed

2018-01-17 Thread davidson

On Wed, 17 Jan 2018, Darac Marjal wrote:

On 17/01/18 02:17, Charlie Gibbs wrote:

On 16/01/18 12:15 PM, david...@freevolt.org wrote:


Is there a natural law or something, that every email message sent
must contain at least one distracting error that is totally beside
the point?

Anyways, over and out.


"Over" means "My transmission is finished; I expect a reply."


Ah. Like on television news shows: "Over to you, Chris!"


"Out" means "My transmission is finished; I do not expect a reply."


Got it.


One more distracting error... :-)


Noooes! It's errors all the way down!

Making errors, so I can learn from them, so I can make more errors


Surely it depends on your context. If you're communicating over a
radio, then sure, they mean what you mean. But perhaps it's a
quotation (wiktionary states that "over and out" is mostly used in
TV and films).  Perhaps it's a reference to cricket (as in "The over
is complete, AND the batsman is out").


My own exposure to the phrase comes entirely from television
entertainment programming, and by it I meant only to say "my
contributions end here".

But I'm glad to learn it has a more rigorous, contradictory meaning.

Thanks, all!

--

Wolff's book seems to occupy a middle ground: between the writing of
White House newspaper reporters, who exercise preternatural restraint
when writing about the Administration, and the late-night comedians,
who offer a sense of release from that restraint because they are not
held to journalistic standards of veracity. That middle ground, where
there is neither restraint nor accuracy, shouldn't exist.

Masha Gessen
https://www.newyorker.com/news/our-columnists/fire-and-fury-is-a-book-all-too-worthy-of-the-president



exim4 on Debian stretch

2018-01-17 Thread John Foster
I have been following a process for setting up my e-mail server, link below:

http://t-machine.org/index.php/2014/06/27/webmail-on-your-debian-server-exim4-dovecot-roundcube/

 After doing all the steps I finally got to restart everything with the
following commands
1 /etc/init.d/apache2 restart
2 /etc/init.d/exim4 restart
3 /etc/init.d/dovecot restart
apache2 and dovecot restarted as expected but exim4 failed with this
message:

Myuser@myserver:/home/frosty# /etc/init.d/apache2 restart
[ ok ] Restarting apache2 (via systemctl): apache2.service.

Myuser@myserver:/home/frosty# /etc/init.d/exim4 restart
[] Restarting exim4 (via systemctl): exim4.serviceJob for exim4.service
failed because the control process exited with error code.
See "systemctl status exim4.service" and "journalctl -xe" for details.
 failed!

Diagnostics below:
Myuser@myserver/home/frosty# systemctl status exim4.service
 exim4.service - LSB: exim Mail Transport Agent
   Loaded: loaded (/etc/init.d/exim4; generated; vendor preset: enabled)
   Active: failed (Result: exit-code) since Wed 2018-01-17 07:24:34 CST;
39min ago
 Docs: man:systemd-sysv-generator(8)
  Process: 18525 ExecStop=/etc/init.d/exim4 stop (code=exited,
status=0/SUCCESS)
  Process: 18538 ExecStart=/etc/init.d/exim4 start (code=exited,
status=1/FAILURE)

Jan 17 07:24:34 myserver systemd[1]: Starting LSB: exim Mail Transport
Agent...
Jan 17 07:24:34 myserver exim4[18538]: Starting MTA:2018-01-17 07:24:34
Exim configuration error in line 576 of
/var/lib/exim4/config.autogenerated.tmp:
Jan 17 07:24:34 myserver exim4[18538]:   option "AND" unknown
Jan 17 07:24:34 myserver exim4[18538]: Invalid new configfile
/var/lib/exim4/config.autogenerated.tmp, not installing
Jan 17 07:24:34 myserver exim4[18538]:
/var/lib/exim4/config.autogenerated.tmp to
/var/lib/exim4/config.autogenerated
Jan 17 07:24:34 myserver systemd[1]: exim4.service: Control process exited,
code=exited status=1
Jan 17 07:24:34 myserver systemd[1]: Failed to start LSB: exim Mail
Transport Agent.
Jan 17 07:24:34 myserver systemd[1]: exim4.service: Unit entered failed
state.
Jan 17 07:24:34 myserver systemd[1]: exim4.service: Failed with result
'exit-code'.
Myuser@myserver/home/frosty# update-exim4.conf
2018-01-17 08:41:17 Exim configuration error in line 576 of
/var/lib/exim4/config.autogenerated.tmp:
  option "AND" unknown
Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not
installing
/var/lib/exim4/config.autogenerated.tmp to
/var/lib/exim4/config.autogenerated

Myuser@myserver/home/frosty# /etc/init.d/dovecot restart
[ ok ] Restarting dovecot (via systemctl): dovecot.service.


anyone here that tried this?
Any suggestions for what to do with exim4 to get it restarted.
I do not know what the error messeges here are referencing. Im very
inexperienced with setting up email.




-- 
John Foster


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

2018-01-17 Thread Joel Wirāmu Pauling
**cough** $convert

imagemagick

$convert somefile.whatever somefile.pdf

---

On 18 January 2018 at 09:04,  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> On Wed, Jan 17, 2018 at 06:21:31PM +, Brian wrote:
> > On Wed 10 Jan 2018 at 21:01:13 +0100, to...@tuxteam.de wrote:
>
> [...]
>
> > > Thanks for actually trying out. I stand corrected...
> >
> > A gracious response. However, my data were in the context of using a2ps
> > to go from text to PS. Your "hefty PDFs" would be entirely correct if
> > paps had been used for the conversion. The result is a 156551 sized file
> > for me. gs2pdf comes up with a whopping 11540827 and takes 18 s to do so.
>
> Heh. I've been called all sort of names, but gracious... :-)
>
> > That was in 2015, Debian's paps does not relect the existence of a
> > 7.0 version. I wonder why?
>
> Yes, that might be the root of my dim memories.
>
> Thanks for your thorough investigation
>
> cheers
> - -- tomás
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlpfrDMACgkQBcgs9XrR2kYFGACeL5J7MFpQSDa3F96kHNjq6D7H
> DFMAn0w5jLhnXV492+EJQeORz3LhQqoX
> =t1V6
> -END PGP SIGNATURE-
>
>


Re: exim4 on Debian stretch

2018-01-17 Thread Joe
On Wed, 17 Jan 2018 14:38:44 -0600
John Foster  wrote:

> I have been following a process for setting up my e-mail server, link
> below:
> 
> http://t-machine.org/index.php/2014/06/27/webmail-on-your-debian-server-exim4-dovecot-roundcube/
> 
>  After doing all the steps I finally got to restart everything with
> the following commands
> 1 /etc/init.d/apache2 restart
> 2 /etc/init.d/exim4 restart
> 3 /etc/init.d/dovecot restart
> apache2 and dovecot restarted as expected but exim4 failed with this
> message:
> 

> Myuser@myserver/home/frosty# update-exim4.conf
> 2018-01-17 08:41:17 Exim configuration error in line 576 of
> /var/lib/exim4/config.autogenerated.tmp:
>   option "AND" unknown
> Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not
> installing
> /var/lib/exim4/config.autogenerated.tmp to
> /var/lib/exim4/config.autogenerated
> 
> Myuser@myserver/home/frosty# /etc/init.d/dovecot restart
> [ ok ] Restarting dovecot (via systemctl): dovecot.service.
> 
> 
> anyone here that tried this?
> Any suggestions for what to do with exim4 to get it restarted.
> I do not know what the error messeges here are referencing.

Neither do we. The broken file referred to is basically a program with
subroutines, some external. We don't know what line 576 contains.

The first step would be to copy and paste here that line 576, with two
or three lines before and after it. If the code is inline, we can
probably make some suggestion for improvement, if it refers to a macro
we would need to look a bit further. But with luck, there is an obvious
syntax error on line 576 itself. As the file is autogenerated, it isn't
going to be a typo, but it's probably looking for a variable that isn't
initialised, or something like that. It might conceivably be a typo in
a user configuration file which gets built into this autogenerated one.

I doubt that the exim4 configuration is standard enough that someone
else can find the answer from their own line 576. The version of exim4
I'm running is older and does its configuration differently, so I
can't help directly. 

-- 
Joe



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

2018-01-17 Thread Ben Caradoc-Davies

On 18/01/18 10:15, Joel Wirāmu Pauling wrote:

**cough** $convert
imagemagick
$convert somefile.whatever somefile.pdf


+1 for ImageMagick convert to generate PDFs from scanned pages (images). 
I found that this works best with -page and -density specified. However, 
I have not tried using it for text, which I think was the problem facing 
the original poster.


Kind regards,

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




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

2018-01-17 Thread Joel Wirāmu Pauling
Works fine for txt, although as it rasterizes things it's not going to be
optimized for size.

On 18 January 2018 at 10:33, Ben Caradoc-Davies  wrote:

> On 18/01/18 10:15, Joel Wirāmu Pauling wrote:
>
>> **cough** $convert
>> imagemagick
>> $convert somefile.whatever somefile.pdf
>>
>
> +1 for ImageMagick convert to generate PDFs from scanned pages (images). I
> found that this works best with -page and -density specified. However, I
> have not tried using it for text, which I think was the problem facing the
> original poster.
>
> Kind regards,
>
> --
> Ben Caradoc-Davies 
> Director
> Transient Software Limited 
> New Zealand
>
>


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

2018-01-17 Thread Ben Caradoc-Davies

On 18/01/18 10:37, Joel Wirāmu Pauling wrote:

Works fine for txt, although as it rasterizes things it's not going to be
optimized for size.


Yes, typically, but for large fonts and low resolution outputs with few 
pages, rasterised pages may be smaller.


Kind regards,

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



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

2018-01-17 Thread Chris Ramsden
On 17/01/18 21:42, Ben Caradoc-Davies wrote:
> On 18/01/18 10:37, Joel Wirāmu Pauling wrote:
>> Works fine for txt, although as it rasterizes things it's not going to be
>> optimized for size.
>
> Yes, typically, but for large fonts and low resolution outputs with few 
> pages, rasterised pages may be smaller.
>
> Kind regards,
>
If I feed it a text file, it gives me an error:

convert: improper image header `self_spam.txt' @ error/txt.c/ReadTXTImage/439.

What's the trick to making it work with a text file as input?
-- 
Chris



Re: NFS4 file transfers fail or are very slow

2018-01-17 Thread Michael

Am 17.01.2018 um 16:37 schrieb Dan Ritter:
> On Tue, Jan 16, 2018 at 11:41:05PM +0100, Michael wrote:
>> Hello guys,
>>
>> I have recently installed Debian Stretch 9.3 on a new PC and I'd 
just like
>> to provide some NFS shares for other Linux machines in the LAN 
(1GBit). With
>> small files everything works fine, but if I try to copy, e.g., a 7GB 
file
>> with rsync it starts with a high transmission rate above 160MB/s and 
then
>> goes down to around 70-90MB/s. After a random but short time there's 
no more
>> progress going on for about 10-15 seconds. When the process then 
continues,
>> the speed goes down to around 20MB/s and then up to about 200MB/s. 
It seems
>> to continue transferring data, but rsync gives me an error message 
in the

>> end.
>
> Max throughput on 1Gb/s ethernet is slightly less than 125 MB
> per second. Bits versus bytes, you know.
>
> Anytime you see a rate above that, you're actually seeing
> compression ratios rather than on-the-line bytes. Rsync is doing
> that for you,
>
> 90MB/s is a normalish large-file transfer rate for
> not-very-compressible data being read off of a spinning disk.

Just for clarification: my given rates were read from SSD and written to a
spinning disk (WD Red).

> rsync also makes an awful lot of disk seeks in the attempt to
> not transfer data that it doesn't need to transfer.

But it does that via NFS as well as via SMB, doesn't it?

>> Exactly the same share is able to write more than 105MB/s via 
SMB/CIFS, so I

>> would expect an NFS speed in a similar range.
>
> Protocol overhead. Have you tried running a network benchmark?

I installed and ran iperf, but I don't know whether that provides 
reasonable

results:

Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)

[  4] local 192.168.192.10 port 5001 connected with 192.168.192.20 port 
44282

[ ID] Interval   Transfer Bandwidth
[  4]  0.0-10.0 sec  1.09 GBytes   936 Mbits/sec

When I copy the same file 3 times onto the same share I get an average of
108 MB/s with SMB/CIFS
 84 MB/s with NFS (async,no_subtree_check)

But in many/most comparisons you can find in the internet, NFS is having a
higher performance. So isn't that the case in real worldapplications?

> -dsr-
Michael



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

2018-01-17 Thread Dan Ritter
On Wed, Jan 17, 2018 at 09:47:01PM +, Chris Ramsden wrote:
> On 17/01/18 21:42, Ben Caradoc-Davies wrote:
> > On 18/01/18 10:37, Joel Wirāmu Pauling wrote:
> >> Works fine for txt, although as it rasterizes things it's not going to be
> >> optimized for size.
> >
> > Yes, typically, but for large fonts and low resolution outputs with few 
> > pages, rasterised pages may be smaller.
> >
> > Kind regards,
> >
> If I feed it a text file, it gives me an error:
> 
> convert: improper image header `self_spam.txt' @ error/txt.c/ReadTXTImage/439.
> 
> What's the trick to making it work with a text file as input?

Use pandoc instead.


-dsr-



Re: NFS4 file transfers fail or are very slow

2018-01-17 Thread Michael Stone

On Wed, Jan 17, 2018 at 10:55:21PM +0100, Michael wrote:

When I copy the same file 3 times onto the same share I get an average of
108 MB/s with SMB/CIFS
 84 MB/s with NFS (async,no_subtree_check)


What's the server? Also try 
grep MOUNTPOINT /proc/mounts

(where MOUNTPOINT is /whatever your NFS share is)
you should see either nfs2, nfs3, or nfs4 in the second field, then 
rsize= and wsize= and further down proto=tcp or proto=udp. It would be 
helpful to know what those are on your system.


Mike Stone



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

2018-01-17 Thread Brian
On Wed 17 Jan 2018 at 21:04:03 +0100, to...@tuxteam.de wrote:

> On Wed, Jan 17, 2018 at 06:21:31PM +, Brian wrote:
> > On Wed 10 Jan 2018 at 21:01:13 +0100, to...@tuxteam.de wrote:
> 
> [...]
> 
> > > Thanks for actually trying out. I stand corrected...
> > 
> > A gracious response. However, my data were in the context of using a2ps
> > to go from text to PS. Your "hefty PDFs" would be entirely correct if
> > paps had been used for the conversion. The result is a 156551 sized file
> > for me. gs2pdf comes up with a whopping 11540827 and takes 18 s to do so.
> 
> Heh. I've been called all sort of names, but gracious... :-)
> 
> > That was in 2015, Debian's paps does not relect the existence of a
> > 7.0 version. I wonder why?
> 
> Yes, that might be the root of my dim memories.
> 
> Thanks for your thorough investigation

Anyone can take part. Supporting data is always an advantage,

Anyway, I think I'll abandon my flirtation with paps and return to
something more suitable for efficiently converting text to a searchable
PDF.

-- 
Brian.



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

2018-01-17 Thread Brian
On Thu 18 Jan 2018 at 10:15:45 +1300, Joel Wirāmu Pauling wrote:

> **cough** $convert
> 
> imagemagick
> 
> $convert somefile.whatever somefile.pdf

**splutter, splutter**.

convert(1)

  convert - convert between image formats

Plain text is an image format? One lives and learns.

-- 
Brian.




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

2018-01-17 Thread Brian
On Wed 17 Jan 2018 at 17:06:26 -0500, Dan Ritter wrote:

> On Wed, Jan 17, 2018 at 09:47:01PM +, Chris Ramsden wrote:
> > On 17/01/18 21:42, Ben Caradoc-Davies wrote:
> > > On 18/01/18 10:37, Joel Wirāmu Pauling wrote:
> > >> Works fine for txt, although as it rasterizes things it's not going to be
> > >> optimized for size.
> > >
> > > Yes, typically, but for large fonts and low resolution outputs with few 
> > > pages, rasterised pages may be smaller.
> > >
> > > Kind regards,
> > >
> > If I feed it a text file, it gives me an error:
> > 
> > convert: improper image header `self_spam.txt' @ 
> > error/txt.c/ReadTXTImage/439.
> > 
> > What's the trick to making it work with a text file as input?
> 
> Use pandoc instead.

I'd like to nominate this response as the most useless of 2018.

"it" obviously refers to the imagemagick convert utility.

-- 
Brian.



Re: Making a driver for the Matrox P650 card.

2018-01-17 Thread peter
*   From: Dan Ritter d...@randomstring.org
*   Date: Tue, 16 Jan 2018 16:11:29 -0500
> Have you tried asking Matrox? They might have someone who 
> can tell you definitively.

Submitted this to their Web based input yesterday.
  One of your P650 dual output PCI cards is here and I wonder whether it 
  can work in Debian 9.  The 1.4.6 and 1.4.7 installer each fails with 
  an error message.   Any chance of either case being resolved?

  The log is rather long in each case.  I won't try to impose it here.
  
The reply is essentially a duplication of the information from  
their Web site.  
"For the P650, those are the supported distributions:
- Red Hat Enterprise Linux 4 WS (updates 7 and 8)
- Red Hat Enterprise Linux 5 WS (updates 2 and 3)
- SuSE Linux Enterprise Server 10 (sp2)
- SuSE Linux Enterprise Desktop 11
- Fedora 10
- OpenSuse 10.3 and 11.1
- Ubuntu 8.04 and 8.10"

 And "... try using one of those distributions."  I won't be 
installing Ubuntu 8  to make an old video card work but still wonder 
how far a driver which  makes in Ubuntu 8 is from making in Debian 9.  
If anyone has a tip to  resolve the failure reported in my preceeding 
message, please let me know.
 
Thanks,  ... Peter E.
 

-- 

123456789 123456789 123456789 123456789 123456789 123456789 123456789
Tel: +1 360 639 0202  Pender Is.: +1 250 629 3757
http://easthope.ca/Peter.html  Bcc: peter at easthope. ca



Re: exim4 on Debian stretch

2018-01-17 Thread Brian
On Wed 17 Jan 2018 at 14:38:44 -0600, John Foster wrote:

> I have been following a process for setting up my e-mail server, link below:
> 
> http://t-machine.org/index.php/2014/06/27/webmail-on-your-debian-server-exim4-dovecot-roundcube/

[Snip]

> Exim configuration error in line 576 of
> /var/lib/exim4/config.autogenerated.tmp:
> Jan 17 07:24:34 myserver exim4[18538]:   option "AND" unknown
> Jan 17 07:24:34 myserver exim4[18538]: Invalid new configfile
> /var/lib/exim4/config.autogenerated.tmp, not installing
> Jan 17 07:24:34 myserver exim4[18538]:
> /var/lib/exim4/config.autogenerated.tmp to
> /var/lib/exim4/config.autogenerated

exim doesn't like what you have done to it.

[Another snip]

> anyone here that tried this?
> Any suggestions for what to do with exim4 to get it restarted.
> I do not know what the error messeges here are referencing. Im very
> inexperienced with setting up email.

I would initially forget about what your link advises and set up exim
per the Debian documentation to get reliable sending and receiving of
mail. Then I would add the rest in.

---



Re: exim4 on Debian stretch

2018-01-17 Thread David Wright
On Wed 17 Jan 2018 at 21:29:51 (+), Joe wrote:
> On Wed, 17 Jan 2018 14:38:44 -0600
> John Foster  wrote:
> 
> > I have been following a process for setting up my e-mail server, link
> > below:
> > 
> > http://t-machine.org/index.php/2014/06/27/webmail-on-your-debian-server-exim4-dovecot-roundcube/
> > 
> >  After doing all the steps I finally got to restart everything with
> > the following commands
> > 1 /etc/init.d/apache2 restart
> > 2 /etc/init.d/exim4 restart
> > 3 /etc/init.d/dovecot restart
> > apache2 and dovecot restarted as expected but exim4 failed with this
> > message:
> > 
> 
> > Myuser@myserver/home/frosty# update-exim4.conf
> > 2018-01-17 08:41:17 Exim configuration error in line 576 of
> > /var/lib/exim4/config.autogenerated.tmp:
> >   option "AND" unknown
> > Invalid new configfile /var/lib/exim4/config.autogenerated.tmp, not
> > installing
> > /var/lib/exim4/config.autogenerated.tmp to
> > /var/lib/exim4/config.autogenerated
> > 
> > Myuser@myserver/home/frosty# /etc/init.d/dovecot restart
> > [ ok ] Restarting dovecot (via systemctl): dovecot.service.
> > 
> > 
> > anyone here that tried this?
> > Any suggestions for what to do with exim4 to get it restarted.
> > I do not know what the error messeges here are referencing.
> 
> Neither do we. The broken file referred to is basically a program with
> subroutines, some external. We don't know what line 576 contains.
> 
> The first step would be to copy and paste here that line 576, with two
> or three lines before and after it. If the code is inline, we can
> probably make some suggestion for improvement, if it refers to a macro
> we would need to look a bit further. But with luck, there is an obvious
> syntax error on line 576 itself. As the file is autogenerated, it isn't
> going to be a typo, but it's probably looking for a variable that isn't
> initialised, or something like that. It might conceivably be a typo in
> a user configuration file which gets built into this autogenerated one.
> 
> I doubt that the exim4 configuration is standard enough that someone
> else can find the answer from their own line 576. The version of exim4
> I'm running is older and does its configuration differently, so I
> can't help directly. 

We could hazard a guess though. Mine would be that the OP tried
to put multiple smarthosts, say, by connecting them with AND rather
than ";".

But I would ask that the OP post their /etc/exim4/update-exim4.conf.conf
in the first instance, suitably recused of course.

Cheers,
David.



Re: Problem using "dpkg -i"

2018-01-17 Thread SDA
On Mon, Jan 15, 2018 at 01:23:30PM -0600, Richard Owlett wrote:
> On 01/15/2018 11:38 AM, Sven Joachim wrote:
> > On 2018-01-15 01:32 -0600, Richard Owlett wrote:
> > > [snip]
> > > 2. Is there a recommended HTML editor in the repository that"
> > > A. simple UI
> > > B. can render the code so I can tell if my changes display
> > >as intended?
> > 
> > There is bluefish, but it only supports previews via an external browser
> > (according to the package description, I have not used it myself).
> > 
> 
> Not for this project. But the manual hints it would useful for other things.
> Much reading ahead.
> 
> Thanks
 
Bluefish isn't WYSIWYG, whereas Blue Griffon is - It's a pretty fair WebPage 
Editor. If you're not comfortable with markup, best use BlueGriffon. I've 
been happy with the latest version.
 



Debian stable Mate wifi work but don't connect

2018-01-17 Thread michael caron couturier
I just tested after an issue was reported to confirm it, the mate live
iso has an issue with wireless, the first user is fairly unexperienced
and I'm fairly skilled as a linux community manager but uncertified
for Linux [sysadmin] (tried twice on my case).

On my system, Lxde live iso work perfectly so it could be a
misconfiguration of Mate, the drivers don't seem the issue.

The first system was also checked by a programmer that don't found
anything suspicious, the drivers is there but it don't work.

root@debian:~# iwconfig
wlx10bef5fd230c  IEEE 802.11  ESSID:off/any
  Mode:Managed  Access Point: Not-Associated   Tx-Power=20 dBm
  Retry short limit:7   RTS thr:off   Fragment thr:off
  Encryption key:off
  Power Management:off

eno1  no wireless extensions.

lono wireless extensions.

Just ask if needed for more informations.

-- 
Michaël Caron Couturier



Re: scriptable way to list packages that are not installed

2018-01-17 Thread Charlie Gibbs

On 17/01/18 11:38 AM, Darac Marjal wrote:


On 17/01/18 02:17, Charlie Gibbs wrote:

>

On 16/01/18 12:15 PM, david...@freevolt.org wrote:


Is there a natural law or something, that every email message sent
must contain at least one distracting error that is totally beside the
point?

Anyways, over and out.


"Over" means "My transmission is finished; I expect a reply."
"Out" means "My transmission is finished; I do not expect a reply."

One more distracting error... :-)


Surely it depends on your context. If you're communicating over a radio,
then sure, they mean what you mean. But perhaps it's a quotation
(wiktionary states that "over and out" is mostly used in TV and films).


The reason it's mostly used in TV and films is that the writers don't 
know any better.  Or they're pandering to viewers don't know any better. 
 But it is not, and has never been, proper procedure for anyone who 
uses a radio in real life.


And don't call me Shirley.


Perhaps it's a reference to cricket (as in "The over is complete, AND
the batsman is out").


An interesting back-formation...

What a delightfully distracting error this is turning into!

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



Re: NFS4 file transfers fail or are very slow

2018-01-17 Thread Michael

Am 17.01.2018 um 23:22 schrieb Michael Stone:

On Wed, Jan 17, 2018 at 10:55:21PM +0100, Michael wrote:
When I copy the same file 3 times onto the same share I get an 
average of

108 MB/s with SMB/CIFS
 84 MB/s with NFS (async,no_subtree_check)


What's the server? Also try grep MOUNTPOINT /proc/mounts
(where MOUNTPOINT is /whatever your NFS share is)
you should see either nfs2, nfs3, or nfs4 in the second field, then 
rsize= and wsize= and further down proto=tcp or proto=udp. It would be 
helpful to know what those are on your system.


Mike Stone


The server is a self-built machine with an ASRock J4205-ITX mainboard, 
8GB RAM, a Samsung 470 SSD as system disk and 2x WD Reds as data disks. 
It's running the Debian backport kernel 4.13 (4.14 since yesterday).


The result of 'mount | grep /mnt/temp' on the client is

rw,relatime,vers=4.2,rsize=1048576,wsize=1048576,namlen=255,soft,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr=192.168.192.20,local_lock=none,addr=192.168.192.10

where I just set 'soft,proto=tcp', the others were set as default.

Michael



Re: Printing problem Sadly NOT SOLVED

2018-01-17 Thread arne
This printer Brother HL-L2340DW has buggy firmware.

When re-installed it killed my CUPS.
.

I can no longer use my local CUPS webpage, my root/admin password is not
accepted.

I instead use system-config-printer, which runs fine.
Thanks to this program I can at least print as root.

But I cannot recommend Brother

On my second PC it runs OK, I never installed it here, just now after
the fiaso on my main PC.

So my hint is: never change a running system!

 The Japanese at Brother just want to sell more printers, at least,
 that is my assumption.

Have a good New Year!

PS never update your Brother laser printer and never buy them.
.
On Sun, 14 Jan 2018 20:30:02 +0100
arne  wrote:

> Hi,
> 
> My printer suddenly didn't show up in the Print Windows
> of Libre Office, Firefox and a lot of other programs.
> 
> I can however Print to File in pdf or ps and print those with lpr
> from the command line.
> 
> The printer shows up in CUPS page and I can print the test page from
> CUPS.
> 
> I did try reinstalling its driver software, removed and added the
> printer with CUPS again.
> 
> 
> It is a WiFi Brother HL-L2340DW laserprinter.
> 
> some data I collected, I can not find any error there:
> ###
> # lpstat -t
> scheduler is running
> system default destination: HLL2340D
> device for BrGenML1: usb://dev/usb/lp0
> device for HLL2340D: socket://192.168.2.7
> device for PDF: cups-pdf:/
> BrGenML1 accepting requests since Sun 14 Jan 2018 06:19:20 PM CET
> HLL2340D accepting requests since Sun 14 Jan 2018 07:56:30 PM CET
> PDF accepting requests since Sun 14 Jan 2018 04:39:50 PM CET
> printer BrGenML1 is idle.  enabled since Sun 14 Jan 2018 06:19:20 PM
> CET printer HLL2340D is idle.  enabled since Sun 14 Jan 2018 07:56:30
> PM CET printer PDF is idle.  enabled since Sun 14 Jan 2018 04:39:50
> PM CET
> 
> 
> To find the available printers, at a terminal type:
> # lpstat -p -d
> printer BrGenML1 is idle.  enabled since Sun 14 Jan 2018 06:19:20 PM
> CET printer HLL2340D is idle.  enabled since Sun 14 Jan 2018 07:56:30
> PM CET printer PDF is idle.  enabled since Sun 14 Jan 2018 04:39:50
> PM CET system default destination: HLL2340D
> 
> 
> Then to pick one as the default lpd printer, type:
> # lpoptions -d HLL2340D
> copies=1 device-uri=socket://192.168.2.7 finishings=3
> job-cancel-after=10800 job-hold-until=no-hold job-priority=50
> job-sheets=none,none marker-change-time=1515956190
> marker-colors=#00,none marker-levels=-1,97 marker-names='Black\
> Tone
> 
> 
> Then type lpq to see if the printer you selected is now the default:
> # lpq
> HLL2340D is ready
> no entries
> 
> To show all printers that accept jobs:
> # lpstat -a
> BrGenML1 accepting requests since Sun 14 Jan 2018 06:19:20 PM CET
> HLL2340D accepting requests since Sun 14 Jan 2018 07:56:30 PM CET
> PDF accepting requests since Sun 14 Jan 2018 04:39:50 PM CET
> 
> 
> # lpoptions -p HLL2340D -l
> PageSize/Media Size: Custom.WIDTHxHEIGHT Letter Legal Executive
> FanFoldGermanLegal *A4 A5 A6 Env10 EnvMonarch EnvDL EnvC5 ISOB5 B5
> ISOB6 B6 4x6 Postcard DoublePostcardRotated EnvYou4 195x270mm
> 184x260mm 197x273mm CUSTOM1 CUSTOM2 CUSTOM3 BrMediaType/MediaType:
> *PLAIN THIN THICK THICKERPAPER2 BOND ENV ENVTHICK ENVTHIN RECYCLED
> InputSlot/InputSlot: MANUAL *TRAY1 Duplex/Duplex: DuplexTumble
> *DuplexNoTumble None Resolution/Resolution: 300dpi 600dpi *2400x600dpi
> TonerSaveMode/Toner Save: *OFF ON Sleep/Sleep Time [Min.]:
> *PrinterDefault 2minutes 10minutes 30minutes
> 
> ###
> Any ideas about where to look further?
> 
> Thanks!
>