Re: Debian iso installation incorrectly sets sources.list

2018-01-14 Thread Pascal Hambourg

Le 10/01/2018 à 05:34, The Wanderer a écrit :


the sizes of the images, particularly in the
case of multi-image sets, are determined based on what is expected to be
able to fit on a DVD or a CD.


Not only. Otherwise, the #1 (bootable) DVD images would have a size of 
4.7 GB, like subsequent DVD images. Instead, they have a size of 4 GB 
only. AFAIK, this is so that it can fit in a 4-GB USB stick or as a file 
in a FAT filesystem.




Re: scriptable way to list packages that are not installed

2018-01-14 Thread Eduardo M KALINOWSKI
On 14-01-2018 01:52, Vasyl Vavrychuk wrote:
> I would like to list not installed packages in my script.
aptitude search '!~i'
is a start

It's possible to configure the output, see the manpage.

-- 
Any excuse will serve a tyrant.
-- Aesop

Eduardo M KALINOWSKI
edua...@kalinowski.com.br



Re: Debian iso installation incorrectly sets sources.list

2018-01-14 Thread Steve McIntyre
Pascal wrote:
>Le 10/01/2018 à 05:34, The Wanderer a écrit :
>> 
>> the sizes of the images, particularly in the
>> case of multi-image sets, are determined based on what is expected to be
>> able to fit on a DVD or a CD.
>
>Not only. Otherwise, the #1 (bootable) DVD images would have a size of 
>4.7 GB, like subsequent DVD images. Instead, they have a size of 4 GB 
>only. AFAIK, this is so that it can fit in a 4-GB USB stick or as a file 
>in a FAT filesystem.

Exactly designed to fit on a 4GB USB stick, yes. But otherwise sizes
are designed to fit various optical media. I *have* pondered about
doing slightly-undersized "DL-DVD" sized media again to fit on 8GB
media, but not sure tbh...

-- 
Steve McIntyre, Cambridge, UK.st...@einval.com
"I suspect most samba developers are already technically insane... Of
 course, since many of them are Australians, you can't tell." -- Linus Torvalds



bash array

2018-01-14 Thread Gokan Atmaca
Hello

I have the user list and the password list. I shot them with BASH. I
want to give passwords to the usernames in these separate files in
order.

File names:
Users.list
Passwords.list

In a loop, I have to not throw them into users of these passwords. I
did this for it, but it did not work.

#!bin/bash
passwords = $ (cat passwords.list)
for i in $ (cat passwordlist); do my program $ i $passwords; done


How do I make an Array? Or how can I solve it?



Re: scriptable way to list packages that are not installed

2018-01-14 Thread Roberto C . Sánchez
On Sun, Jan 14, 2018 at 05:52:45AM +0200, Vasyl Vavrychuk wrote:
> I would like to list not installed packages in my script. Currently I do
> 
> dpkg-query -W -f='${db:Status-Abbrev}${binary:Package}\n'
> $PACKAGES | grep -v "^ii" | awk '{print $2}'
> 

You may want to consider libdpkg-perl, python-debian, or ruby-debian
instead.  If it really has to be something you can access fro a shell
script, then you can write a small wrapper that does what you need.

Regards,

-Roberto

-- 
Roberto C. Sánchez



history issue - bug?

2018-01-14 Thread Hans
Hi folks, 

try this:

1. login as normal user

2. become root with "su -"

3. delete history with "history -c"

4. Check history, history is gone

5. logout from root by "CTL + D" or "exit"

6. relogin as root with "su -"

7. Check history, voila, it appears again.

What is wrong? Is it a bug or am I doing the wrong way?

Any comment will help.

Best regards

Hans



Re: bash array

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

On Sun, Jan 14, 2018 at 03:46:06PM +0300, Gokan Atmaca wrote:
> Hello
> 
> I have the user list and the password list. I shot them with BASH. I
> want to give passwords to the usernames in these separate files in
> order.
> 
> File names:
> Users.list
> Passwords.list
> 
> In a loop, I have to not throw them into users of these passwords. I
> did this for it, but it did not work.
> 
> #!bin/bash
> passwords = $ (cat passwords.list)
> for i in $ (cat passwordlist); do my program $ i $passwords; done

Too little context; what exactly doesn't work?

I'd suggest going in little chunks. First try:

  for i in $(cat passwords.list) ; do echo "<$i>" ; done

Does that do what you want?

Unrelated question: why are you doing in your first line

  passwords=$(cat passwords.list)

when in the second line you're doing $(cat passwordlist) anyway?
And shouldn't the second line be $(cat passwords.list?

(NOTE: to assign a shell variable, *no* space before the '='; this
won't work: the shell will read first 'passwords' then  and
try to interpret passwords as a command; but this first line seems
superfluous anyway).

> How do I make an Array? Or how can I solve it?

I don't think you need an array for what you are trying. But it
would make sense to get the shell basics straight, first.

Come back with more questions!

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

iEYEARECAAYFAlpbY1cACgkQBcgs9XrR2kbYKACfZp0o9RthqaaibDo3Agva/UVz
47gAnjnzfrc7U8m5oUIKqtf6Hd9EufCd
=M0N3
-END PGP SIGNATURE-



Re: history issue - bug?

2018-01-14 Thread David Wright
On Sun 14 Jan 2018 at 14:07:01 (+0100), Hans wrote:
> Hi folks, 
> 
> try this:
> 
> 1. login as normal user
> 
> 2. become root with "su -"

… which reads ~/.bash_history into what I call the command recall buffer.

> 3. delete history with "history -c"

… which deletes all the entries in the recall buffer, those just read
  in and those commands typed since logging in.

> 4. Check history, history is gone

Presumably you mean you just tried to recall a command and failed.
Make that command "ls -l ~/.bash_history" and you'll see the file
is still there.

> 5. logout from root by "CTL + D" or "exit"
> 
> 6. relogin as root with "su -"

… which reads ~/.bash_history.

> 7. Check history, voila, it appears again.

… as expected.

> What is wrong?

Distinguish between history list and history file.

To eliminate your history, you need to remove/empty the file and
also clear the list just before you logout.

Cheers,
David.



Re: scriptable way to list packages that are not installed

2018-01-14 Thread Bernd Gruber
Vasyl Vavrychuk wrote:

> I would like to list not installed packages in my script. 

could this help you (if I understood right, that you want to know, if some 
of the packages (in this case) gawk, git, cmake  are not installed:

dpkg -l gawk git cmake |  awk /^un/'{print $2}'

cmake
git

Bernd



Bug or Feature in mate-search-tool ?

2018-01-14 Thread Richard Owlett

If a file is in a folder below a hidden folder, it will *NOT* be found.
This happens even when "Show hidden and backup files" is chosen.
It does not matter if logged-in as superuser.
I proved it by copying a folder under a hidden folder to a normal 
folder. Target file was found.


I installed from a purchased DVD of Debian 9.1.0 .




Re: history issue - bug?

2018-01-14 Thread Hans
Am Sonntag, 14. Januar 2018, 08:41:21 CET schrieb David Wright:
Hi David,

thanks for enlightening me. I always though, that "history -c" would clear all 
the history and its files as the help file says:

-cclear the history list by deleting all of the entries

So IMO this should delete all related history files, even bash_history. 

And as far as I remember, this did it do in former times. 

In my eyes this is a security hole, as someone, who gaines root somehow (what 
already is bad eneough) might get more informations of commands, root did in 
the past. 

As I said, history -c should delete ALL traces of history, just as the help 
files tells, shouldn't it? As you confirmed, it does not and you also 
confirmed, that this is normal behaviour. 

In this case, I recommend this as a failure-by-design.

Again, thanks for your clearence, I will file a bug report.

Best 

Hans
> On Sun 14 Jan 2018 at 14:07:01 (+0100), Hans wrote:
> > Hi folks,
> > 
> > try this:
> > 
> > 1. login as normal user
> > 
> > 2. become root with "su -"
> 
> … which reads ~/.bash_history into what I call the command recall buffer.
> 
> > 3. delete history with "history -c"
> 
> … which deletes all the entries in the recall buffer, those just read
>   in and those commands typed since logging in.
> 
> > 4. Check history, history is gone
> 
> Presumably you mean you just tried to recall a command and failed.
> Make that command "ls -l ~/.bash_history" and you'll see the file
> is still there.
> 
> > 5. logout from root by "CTL + D" or "exit"
> > 
> > 6. relogin as root with "su -"
> 
> … which reads ~/.bash_history.
> 
> > 7. Check history, voila, it appears again.
> 
> … as expected.
> 
> > What is wrong?
> 
> Distinguish between history list and history file.
> 
> To eliminate your history, you need to remove/empty the file and
> also clear the list just before you logout.
> 
> Cheers,
> David.




Re: history issue - bug?

2018-01-14 Thread Felipe Salvador
On Sun, Jan 14, 2018 at 02:07:01PM +0100, Hans wrote:
> Hi folks, 
> 
> try this:
> 
> 1. login as normal user
> 
> 2. become root with "su -"
> 
> 3. delete history with "history -c"

Then run "history -w" to "write the current history to the history
file"

> 4. Check history, history is gone
> 
> 5. logout from root by "CTL + D" or "exit"
> 
> 6. relogin as root with "su -"
> 
> 7. Check history, voila, it appears again.
> 
> What is wrong? Is it a bug or am I doing the wrong way?
> 
> Any comment will help.
> 
> Best regards
> 
> Hans

Regards

-- 
Felipe Salvador



Re: history issue - bug?

2018-01-14 Thread Hans
Am Sonntag, 14. Januar 2018, 12:14:47 CET schrieb bw:
> On Sun, 14 Jan 2018, Hans wrote:
> > Am Sonntag, 14. Januar 2018, 08:41:21 CET schrieb David Wright:
> > Hi David,
> > 
> > thanks for enlightening me. I always though, that "history -c" would clear
> > all the history and its files as the help file says:
> > 
> > -cclear the history list by deleting all of the entries
> > 
> > So IMO this should delete all related history files, even bash_history.
> 
> Shouldn't it do what it says it will do?
> 
> It says "clear... the list" it does not say delete files.  I can't answer
> the question about how long it has been this way, but I'm sure it is
> documented, so maybe look that up before fiing a bug about it?

It looks like we understand different. 

-cclear the history list by deleting all of the entries

It says: .ALL of the entries

IMHO all means ALL, regardless in which file or if in memory.
Otherwise this command would not make any sense, too.

Of course, one can see it in another way than me...

Cheers

Hans





Re: Secure email server setup

2018-01-14 Thread rhkramer
On Sunday, January 14, 2018 10:36:40 AM J.W. Foster wrote:
> I am looking for a reliable step by step process for setting up an email
> server located on an existing website server. I have installed;  exim4
> light, dovecot, Thunderbird, OpenSSL, and TLS security. I have tried
> following several bits of documentation regarding this with some success,
> but as with every time I try this, I open up my system to SPAM at a
> ridiculous rate. I want to eliminate that and get this mail server fully
> operational. I am seeking a well-documented approach that I can follow. I
> am using current Debian Stretch and the server is primarily a Mediawiki
> system where I NEED  mail available. Any tips are appreciated. Thanks!John

Some clarification would help:

   * Do youi really need an email server on this machine, or do you just need 
the capability to send and receive email?  I guess I'm not familiar enough 
with Mediawiki--does it need an email server?

In my (old) installations of TWiki, the ability to send and receive email was 
all I needed.



Re: history issue - bug?

2018-01-14 Thread rhkramer
On Sunday, January 14, 2018 12:14:47 PM bw wrote:
> On Sun, 14 Jan 2018, Hans wrote:
> > Am Sonntag, 14. Januar 2018, 08:41:21 CET schrieb David Wright:
> > Hi David,
> > 
> > thanks for enlightening me. I always though, that "history -c" would
> > clear all the history and its files as the help file says:
> > 
> > -cclear the history list by deleting all of the entries
> > 
> > So IMO this should delete all related history files, even bash_history.
> 
> Shouldn't it do what it says it will do?
> 
> It says "clear... the list" it does not say delete files.  I can't answer
> the question about how long it has been this way, but I'm sure it is
> documented, so maybe look that up before fiing a bug about it?

I don't know if I want to comment or not.  To me, it takes a fairly savvy user 
to recognize that list and file are not synonymous--for many casual users 
(including me, and I consider myself generally as something more than just a 
casual user), that documentation is not sufficient.

At the risk of overkill, I would have written the documentation with a note to 
clarify exactly what I said above--something like (with a not full 
understanding of where / how the list is stored):

"clear ... the list, but please note that there is both a list with the 
command history, and a file.  History -c clears that list, but not the file, 
and 
when events occuur (like a new login), the history list is restored from the 
history file.  The history file is in , and if you want to eradicate 
most traces of the history file, you must also delete that file, and, 
potentially, if that critical, any backups.

To me, if it will not be considered a bug in the implementation of the history 
command, it is a bug in the documentation.  (Of course, I haven't gone looking 
for documentation on the history command, perhaps this behavior is reasonably 
documented.  I would think it should be covered under the -h option, or maybe 
if several options need to discuss the existence of the history file, at least 
a note under the -h option something like: : see  for discussion of 
the history file and the distinction between it and the history list.



Stretch Lite

2018-01-14 Thread David
Dear group,

I know there is a version of Rasbian called Stretch Lite.

Is there a version of Debian to run headless without the excess clutter
of office etc?

I've tried removing the bits I don't need, but made an awful mess of it,
better not to load it in the first place.

David.




IAX VoIP in Debian 9.

2018-01-14 Thread peter
Hello,

Can VoIP be achieved using IAX in Debian 9?  If so, can any notes 
about installation and configuration be recommended?

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: apt uninstall apparmor

2018-01-14 Thread solitone
On 12/01/18 21:37, Brian wrote:
> Do you have a plan to inform the AppArmor team of your detailed findings?

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887163
Apparently it's a well known issue.

Cheers



Re: IAX VoIP in Debian 9.

2018-01-14 Thread deloptes
pe...@easthope.ca wrote:

> Hello,
> 
> Can VoIP be achieved using IAX in Debian 9?  If so, can any notes
> about installation and configuration be recommended?
> 
> Thanks,   ... Peter E.

aren't there enough documents around asterisk? what do you expect - debian
howto?





Re: IAX VoIP in Debian 9.

2018-01-14 Thread Ionel Mugurel Ciobîcă
On 14-01-2018, at 09h 26'27", pe...@easthope.ca wrote about "IAX VoIP in Debian 
9."
> Hello,
> 
> Can VoIP be achieved using IAX in Debian 9?  If so, can any notes 
> about installation and configuration be recommended?
> 
> Thanks,   ... Peter E.
> 

I do not know about IAX, but I run yate and in the config files there
are mentioning IAX several times. You may want to have a look... You
can install yate with apt or aptitude, etc.


Ionel



Re: Stretch Lite

2018-01-14 Thread basti
Hello,
first of all you can use tasksel to select or deselect Desktop
Environment, Printserver etc. or perhaps you can export the package list
from Stretch Lite.

Best Regards

On 14.01.2018 18:54, David wrote:
> Dear group,
> 
> I know there is a version of Rasbian called Stretch Lite.
> 
> Is there a version of Debian to run headless without the excess clutter
> of office etc?
> 
> I've tried removing the bits I don't need, but made an awful mess of it,
> better not to load it in the first place.
> 
> David.
> 
> 



Re: Secure email server setup

2018-01-14 Thread deloptes
J.W. Foster wrote:

> I am looking for a reliable step by step process for setting up an email
> server located on an existing website server. I have installed;  exim4
> light, dovecot, Thunderbird, OpenSSL, and TLS security. I have tried
> following several bits of documentation regarding this with some success,
> but as with every time I try this, I open up my system to SPAM at a
> ridiculous rate. I want to eliminate that and get this mail server fully
> operational. I am seeking a well-documented approach that I can follow. I
> am using current Debian Stretch and the server is primarily a Mediawiki
> system where I NEED  mail available. Any tips are appreciated. Thanks!John

you don't usually install a mail server for each application and make it
public

you usually relay the mail traffic to dedicated mail server.
this dedicated mail server takes care of the mail exchange with the world.
this mail server is responsible for filtering spam or signing messages, so
that they won't be rejected by other mail servers.

reconsider your design. otherwise you should set up an official mail server
with all it takes.

regards



Re: history issue - bug?

2018-01-14 Thread Brian
On Sun 14 Jan 2018 at 18:25:09 +0100, Hans wrote:

> Am Sonntag, 14. Januar 2018, 12:14:47 CET schrieb bw:
> > On Sun, 14 Jan 2018, Hans wrote:
> > > Am Sonntag, 14. Januar 2018, 08:41:21 CET schrieb David Wright:
> > > Hi David,
> > > 
> > > thanks for enlightening me. I always though, that "history -c" would clear
> > > all the history and its files as the help file says:
> > > 
> > > -cclear the history list by deleting all of the entries
> > > 
> > > So IMO this should delete all related history files, even bash_history.
> > 
> > Shouldn't it do what it says it will do?
> > 
> > It says "clear... the list" it does not say delete files.  I can't answer
> > the question about how long it has been this way, but I'm sure it is
> > documented, so maybe look that up before fiing a bug about it?
> 
> It looks like we understand different. 

Indeed. It's not unusual for this to happen, even amongst native
speakers of English (or any other language, I presumme).
 
> -cclear the history list by deleting all of the entries
> 
> It says: .ALL of the entries

Correct.
 
> IMHO all means ALL, regardless in which file or if in memory.
> Otherwise this command would not make any sense, too.

You are the one who is imposing "...in which file or if in memory".
All does mean ALL (you're not a politician, are you :) ). The commands
used in a session are saved in memory in a *list* and written to a
*file* when you log out.
 
> Of course, one can see it in another way than me...

Search on "history list" in the bash manual.

-- 
Brian.


> Cheers
> 
> Hans
> 
> 
> 



Re: Secure email server setup

2018-01-14 Thread basti
exim users mailing list would be a good place for your question I think.

On 14.01.2018 19:40, deloptes wrote:
> J.W. Foster wrote:
> 
>> I am looking for a reliable step by step process for setting up an email
>> server located on an existing website server. I have installed;  exim4
>> light, dovecot, Thunderbird, OpenSSL, and TLS security. I have tried
>> following several bits of documentation regarding this with some success,
>> but as with every time I try this, I open up my system to SPAM at a
>> ridiculous rate. I want to eliminate that and get this mail server fully
>> operational. I am seeking a well-documented approach that I can follow. I
>> am using current Debian Stretch and the server is primarily a Mediawiki
>> system where I NEED  mail available. Any tips are appreciated. Thanks!John
> 
> you don't usually install a mail server for each application and make it
> public
> 
> you usually relay the mail traffic to dedicated mail server.
> this dedicated mail server takes care of the mail exchange with the world.
> this mail server is responsible for filtering spam or signing messages, so
> that they won't be rejected by other mail servers.
> 
> reconsider your design. otherwise you should set up an official mail server
> with all it takes.
> 
> regards
> 



[Resolved] Re: Bug or Feature in mate-search-tool ?

2018-01-14 Thread Richard Owlett

On 01/14/2018 10:23 AM, Richard Owlett wrote:

If a file is in a folder below a hidden folder, it will *NOT* be found.
This happens even when "Show hidden and backup files" is chosen.
It does not matter if logged-in as superuser.
I proved it by copying a folder under a hidden folder to a normal
folder. Target file was found.

I installed from a purchased DVD of Debian 9.1.0 .


I just did a Netinstall of 9.3 on another machine.
The problem is no longer there ;)






Re: Stretch Lite

2018-01-14 Thread basti
Hello,
first of all you can use tasksel to select or deselect Desktop
Environment, Printserver etc. or perhaps you can export the package list
from Stretch Lite.

Best Regards

On 14.01.2018 18:54, David wrote:
> Dear group,
> 
> I know there is a version of Rasbian called Stretch Lite.
> 
> Is there a version of Debian to run headless without the excess clutter
> of office etc?
> 
> I've tried removing the bits I don't need, but made an awful mess of it,
> better not to load it in the first place.
> 
> David.
> 
> 



Re: apt uninstall apparmor

2018-01-14 Thread Brian
On Sun 14 Jan 2018 at 19:31:46 +0100, solitone wrote:

> On 12/01/18 21:37, Brian wrote:
> > Do you have a plan to inform the AppArmor team of your detailed findings?
> 
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=887163
> Apparently it's a well known issue.
> 
> Cheers

Kudos for your detailed reporting of the issue. And, don't you think,
worth the effort? The bug was explained and an interim solution given.
intrigeri and the AppArmor team have invested a considerable effort
into the present experimental project for buster. I wouldn't have
expected less than the response you got.

-- 
Brian.



Re: history issue - bug?

2018-01-14 Thread David Wright
On Sun 14 Jan 2018 at 17:46:51 (+0100), Hans wrote:
> Am Sonntag, 14. Januar 2018, 08:41:21 CET schrieb David Wright:
> Hi David,
> 
> thanks for enlightening me. I always though, that "history -c" would clear 
> all 
> the history and its files as the help file says:
> 
> -cclear the history list by deleting all of the entries
> 
> So IMO this should delete all related history files, even bash_history. 

Sorry, but that wouldn't be how the English in that statement would
normally be understood.

> And as far as I remember, this did it do in former times. 

Not in bash 2.

> In my eyes this is a security hole, as someone, who gaines root somehow (what 
> already is bad eneough) might get more informations of commands, root did in 
> the past. 

If this concerns you, truncate ~/.bash_history and chmod a=r.

> As I said, history -c should delete ALL traces of history, just as the help 
> files tells, shouldn't it?

No. you lose functionality.

> As you confirmed, it does not and you also 
> confirmed, that this is normal behaviour. 

Yes, and it follows the documentation.

> In this case, I recommend this as a failure-by-design.

> Again, thanks for your clearence, I will file a bug report.

I would prefer you didn't.

> > On Sun 14 Jan 2018 at 14:07:01 (+0100), Hans wrote:
> > > Hi folks,
> > > 
> > > try this:
> > > 
> > > 1. login as normal user
> > > 
> > > 2. become root with "su -"
> > 
> > … which reads ~/.bash_history into what I call the command recall buffer.
> > 
> > > 3. delete history with "history -c"
> > 
> > … which deletes all the entries in the recall buffer, those just read
> >   in and those commands typed since logging in.
> > 
> > > 4. Check history, history is gone
> > 
> > Presumably you mean you just tried to recall a command and failed.
> > Make that command "ls -l ~/.bash_history" and you'll see the file
> > is still there.
> > 
> > > 5. logout from root by "CTL + D" or "exit"
> > > 
> > > 6. relogin as root with "su -"
> > 
> > … which reads ~/.bash_history.
> > 
> > > 7. Check history, voila, it appears again.
> > 
> > … as expected.
> > 
> > > What is wrong?
> > 
> > Distinguish between history list and history file.
> > 
> > To eliminate your history, you need to remove/empty the file and
> > also clear the list just before you logout.

Cheers,
David.



Re: apt uninstall apparmor

2018-01-14 Thread solitone
On 14/01/18 20:08, Brian wrote:
> don't you think worth the effort?

Yes, I do. And I've reinstalled apparmor, and will try intrigeri's solution.



Re: Secure email server setup

2018-01-14 Thread Brian
On Sun 14 Jan 2018 at 15:36:40 +, J.W. Foster wrote:

> I am looking for a reliable step by step process for setting up an
> email server located on an existing website server. I have installed; 
> exim4 light, dovecot, Thunderbird, OpenSSL, and TLS security. I have
> tried following several bits of documentation regarding this with some
> success, but as with every time I try this, I open up my system to
> SPAM at a ridiculous rate. I want to eliminate that and get this mail
> server fully operational. I am seeking a well-documented approach that
> I can follow. I am using current Debian Stretch and the server is
> primarily a Mediawiki system where I NEED  mail available. Any tips
> are appreciated. Thanks!John

I have a similar setup but don't use spam control. First get the mail
server sending and receiving reliably. Then add spam filters. No links
from me, I'm afaid; you should be able to locate plenty. It could be
exim4-daemon-heavy is a better fit for your situation.

-- 
Brian.



Re: Secure email server setup

2018-01-14 Thread Brian
On Sun 14 Jan 2018 at 12:49:46 -0500, rhkra...@gmail.com wrote:

> On Sunday, January 14, 2018 10:36:40 AM J.W. Foster wrote:
> > I am looking for a reliable step by step process for setting up an email
> > server located on an existing website server. I have installed;  exim4
> > light, dovecot, Thunderbird, OpenSSL, and TLS security. I have tried
> > following several bits of documentation regarding this with some success,
> > but as with every time I try this, I open up my system to SPAM at a
> > ridiculous rate. I want to eliminate that and get this mail server fully
> > operational. I am seeking a well-documented approach that I can follow. I
> > am using current Debian Stretch and the server is primarily a Mediawiki
> > system where I NEED  mail available. Any tips are appreciated. Thanks!John
> 
> Some clarification would help:
> 
>* Do youi really need an email server on this machine, or do you just need 
> the capability to send and receive email?  I guess I'm not familiar enough 
> with Mediawiki--does it need an email server?
> 
> In my (old) installations of TWiki, the ability to send and receive email was 
> all I needed.

If you did not use a mail server, you were not *receiving* email but,
more than likely, *collecting* it.

-- 
Brian.



Printing problem

2018-01-14 Thread arne
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!



Re: apt uninstall apparmor

2018-01-14 Thread Brian
On Sun 14 Jan 2018 at 20:22:13 +0100, solitone wrote:

> On 14/01/18 20:08, Brian wrote:
> > don't you think worth the effort?
> 
> Yes, I do. And I've reinstalled apparmor, and will try intrigeri's
> solution.

I am sure your feedback will prove invaluable.

-- 
Brian.



Re: [Resolved] Re: Bug or Feature in mate-search-tool ?

2018-01-14 Thread Curt
On 2018-01-14, Richard Owlett  wrote:
> On 01/14/2018 10:23 AM, Richard Owlett wrote:
>> If a file is in a folder below a hidden folder, it will *NOT* be found.
>> This happens even when "Show hidden and backup files" is chosen.
>> It does not matter if logged-in as superuser.
>> I proved it by copying a folder under a hidden folder to a normal
>> folder. Target file was found.
>>
>> I installed from a purchased DVD of Debian 9.1.0 .
>
> I just did a Netinstall of 9.3 on another machine.
> The problem is no longer there ;)
>
>

They must have called in the RIT (rapid intervention team).

-- 
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: history issue - bug?

2018-01-14 Thread David Wright
On Sun 14 Jan 2018 at 12:59:55 (-0500), rhkra...@gmail.com wrote:
> On Sunday, January 14, 2018 12:14:47 PM bw wrote:
> > On Sun, 14 Jan 2018, Hans wrote:
> > > Am Sonntag, 14. Januar 2018, 08:41:21 CET schrieb David Wright:
> > > Hi David,
> > > 
> > > thanks for enlightening me. I always though, that "history -c" would
> > > clear all the history and its files as the help file says:
> > > 
> > > -cclear the history list by deleting all of the entries
> > > 
> > > So IMO this should delete all related history files, even bash_history.
> > 
> > Shouldn't it do what it says it will do?
> > 
> > It says "clear... the list" it does not say delete files.  I can't answer
> > the question about how long it has been this way, but I'm sure it is
> > documented, so maybe look that up before fiing a bug about it?
> 
> I don't know if I want to comment or not.  To me, it takes a fairly savvy 
> user 
> to recognize that list and file are not synonymous--for many casual users 
> (including me, and I consider myself generally as something more than just a 
> casual user), that documentation is not sufficient.

[…]

>  (Of course, I haven't gone looking 
> for documentation on the history command, perhaps this behavior is reasonably 
> documented.

!

man bash

Cheers,
David.



Re: black screen after hibernation

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

[...]
>
> what versions do you have there

Well. I cannot reproduce this - have some disaster on this system, and
reinstalled debian.
With fresh installation resuming works :/

KJ

-- 
http://stopstopnop.pl/stop_stopnop.pl_o_nas.html
Mount St. Helens should have used earth control.



Re: Secure email server setup

2018-01-14 Thread Joe
On Sun, 14 Jan 2018 15:36:40 + (UTC)
"J.W. Foster"  wrote:

> I am looking for a reliable step by step process for setting up an
> email server located on an existing website server.

As you say, you won't have trouble finding basic instructions. What you
probably won't find is exactly what you're looking for.

> I have
> installed;  exim4 light, dovecot, Thunderbird, OpenSSL, and TLS
> security. I have tried following several bits of documentation
> regarding this with some success, but as with every time I try this,
> I open up my system to SPAM at a ridiculous rate.

There *is* a ridiculous amount of spam flying about, there's nothing
you can do about that. It's a lot less than it used to be, my record
for mail server rejections in a day is over 12,000. Yes, that's three
noughts, though it was many years ago.

> I want to eliminate that 

That's probably too ambitious. What you should be able to do is to
reduce it to a manageable amount.

I've taken this further than many people: nearly twenty years ago, I
tried challenging the orthodox position that posting to Usenet and
other fora should be done from a mangled or disposable address. I
decided to use a normal, valid email address, and see what the
consequences were. I've tried SpamAssassin, but that seemed to need a
great deal of maintenance, being an arms race between the spammers and
me. Every couple of weeks, they would find a new technique that had to
be explicitly dealt with.

So now, in order of effectiveness:

1. Don't implement a catch-all address, this will indeed catch all of
the spam. The greatest single anti-spam technique is for the SMTP
server to accept mail only for the server's named users, which is the
default. It's not quite as effective as it used to be, as almost all
spam used to be NDR spam: deliberately misaddressed, in order to get a
POP3-based system to bounce it to a forged Reply-To address, thereby
laundering it. Much less NDR spam these days, only five out of my 13
rejects yesterday were NDR.

2. Refuse mail where there is no proper reverse DNS record (PTR) for
the sender address. This is slightly risky, as a few small businesses
use mail 'providers' who seem less than clued-up about running mail
servers. You *do* have a static address and a proper A-PTR DNS record
pair for your mail server, don't you? There will be trouble otherwise.
I do drop the occasional debian-user email as the d-u DNS server seems
a bit slow to respond sometimes. The Debian exim4 setup only provides a
warning message about faulty reverse DNS, but I and most others change
this to 'deny'. Four of the 13 rejects fell foul of this one.

3. Refuse mail from non-existent domains. Exim4 has fine control over
sender verification, in that for senders with domains not hosted on the
server, it can verify the domain only, while verifying the full email
address for hosted domains. This allows rejection of made-up domains,
which helps a little, though spammers can register unlimited silly
domain names fairly cheaply. The sender verify will also pick up
spammers claiming to be random users on your domain, a common trick.

4. Keep blacklists of IP CIDR blocks, spamming domain names and, if
your business model allows, entire top-level domains.The
files /etc/exim4/local_host and .._sender blacklists and whitelists are
a convenient place for these. My current local_host_blacklist contains
just over 500 CIDR blocks, including three /8 blocks. I also have a list
of 34 country codes and the TLDs .win, .biz, .click and .zip, and reject
sender address PTRs and HELO strings containing them.

There is a certain amount of spam that won't be caught this way. I have
a ~.forward file on the server that routes half a dozen types of
machine email, including debian-user and logcheck stuff, into IMAP
folders. I route about another forty entries into the Spam folder, such
as 'medica', 'iploma' and other likely string fragments in the Subject:
header, and 'googlegroups' and others in the From: header.

After all that, I still pick one or two spams a day out of my inbox,
but I can live with that, and if any of them offend me sufficiently I
might modify one of the defences to deal with it. Sometimes I do
contact the senders' ISP where that may be helpful (from an .edu
domain, for example) but usually it's a waste of effort. The big email
providers like Google and Yahoo pretty much don't accept email abuse
complaints, which is naughty.

As others have said, if you allow your mail server to be used as a
relay, such as by applications, you need to allow relaying only of
authenticated email from only those sources. There's loads of
information about that on the Net, if you allow anyone who connects
from outside to your mail server to relay (send email to someone your
server doesn't store email for) then you will be found by spammers and
your IP address blacklisted almost instantly. There are numerous
websites which will test your mail server, and one of the tests is
invariably for relaying

Re: scriptable way to list packages that are not installed

2018-01-14 Thread Vasyl Vavrychuk
Hi, John,

On Sun, Jan 14, 2018 at 8:48 AM, john doe  wrote:
> On 1/14/2018 7:28 AM, john doe wrote:
>
> $ dpkg-query -W -f='${db:Status-Abbrev}${binary:Package}\n' awk git gawk
> cmake 2>&1 | awk '!/^ii/ || !/^un/{print $6}'
> git
> gawk
> cmake

I also tried to parse stderr, but then I realized that relying on the output

   dpkg-query: no packages found matching

is not correct since it might be localized and is not suitable for scripting.



Re: Secure email server setup

2018-01-14 Thread deloptes
basti wrote:

> exim users mailing list would be a good place for your question I think.
> 

basti, first of all we do not top post and second we reply to the message we
intend to answer.
As I've been using exim extensively and was part of team supporting cloud
with exim and imap (dovecot), I can tell you what OP is doing is wrong.
I don't think you want to send me to the exim list

regards



Re: Secure email server setup

2018-01-14 Thread rhkramer
On Sunday, January 14, 2018 02:26:03 PM Brian wrote:
> On Sun 14 Jan 2018 at 12:49:46 -0500, rhkra...@gmail.com wrote:
> > On Sunday, January 14, 2018 10:36:40 AM J.W. Foster wrote:
> > > I am looking for a reliable step by step process for setting up an
> > > email server located on an existing website server. I have installed; 
> > > exim4 light, dovecot, Thunderbird, OpenSSL, and TLS security. I have
> > > tried following several bits of documentation regarding this with some
> > > success, but as with every time I try this, I open up my system to
> > > SPAM at a ridiculous rate. I want to eliminate that and get this mail
> > > server fully operational. I am seeking a well-documented approach that
> > > I can follow. I am using current Debian Stretch and the server is
> > > primarily a Mediawiki system where I NEED  mail available. Any tips
> > > are appreciated. Thanks!John
> > 
> > Some clarification would help:
> >* Do youi really need an email server on this machine, or do you just
> >need
> > 
> > the capability to send and receive email?  I guess I'm not familiar
> > enough with Mediawiki--does it need an email server?
> > 
> > In my (old) installations of TWiki, the ability to send and receive email
> > was all I needed.
> 
> If you did not use a mail server, you were not *receiving* email but,
> more than likely, *collecting* it.

Ok, but it worked and did what I needed to do.  And how many people would 
perceive a difference between receiving it and collecting it in casual usage of 
those words and in this context?



Re: IAX VoIP in Debian 9.

2018-01-14 Thread peter
*   From: deloptes delop...@gmail.com
*   Date: Sun, 14 Jan 2018 19:37:20 +0100
> aren't there enough documents around asterisk?

A PBX is necessary to have a IAX client?  Whew!

> what do you expect

Nothing.

> debian howto?

Would be nice but don't expect it.

Thanks, ... P.

-- 

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: IAX VoIP in Debian 9.

2018-01-14 Thread peter
*   From: Ionel Mugurel Ciobîcă i.m.ciob...@upcmail.nl
*   Date: Sun, 14 Jan 2018 19:21:02 +0100
> I do not know about IAX, but I run yate and in the config files there
> are mentioning IAX several times. You may want to have a look... You
> can install yate with apt or aptitude, etc.

Will have a look.  Thanks Ionel,   ... P.


-- 

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: scriptable way to list packages that are not installed

2018-01-14 Thread Michael Lange
Hi,

On Sun, 14 Jan 2018 22:18:26 +0200
Vasyl Vavrychuk  wrote:

> Hi, John,
> 
> On Sun, Jan 14, 2018 at 8:48 AM, john doe  wrote:
> > On 1/14/2018 7:28 AM, john doe wrote:
> >
> > $ dpkg-query -W -f='${db:Status-Abbrev}${binary:Package}\n' awk git
> > gawk cmake 2>&1 | awk '!/^ii/ || !/^un/{print $6}'
> > git
> > gawk
> > cmake
> 
> I also tried to parse stderr, but then I realized that relying on the
> output
> 
>dpkg-query: no packages found matching
> 
> is not correct since it might be localized and is not suitable for
> scripting.

if you need the English output messages you can get these simply with

LC_ALL=C dpkg-query ...

Maybe you could alternatively use the apt list command (however it
should be noted that the developers still say the apt command
should be used only with care in scripts (see man apt)).

The output of apt list here looks like:

$ LC_ALL=C apt list gawk git cmake konsole foobar 2> /dev/null | grep installed
cmake/stable,now 3.7.2-1 amd64 [installed]
gawk/stable,now 1:4.1.4+dfsg-1 amd64 [installed]
git/stable,stable,now 1:2.11.0-3+deb9u2 amd64 [installed]

$ LC_ALL=C apt list gawk git cmake konsole foobar 2> /dev/null | grep -v 
installed
Listing...
konsole/stable 4:16.12.0-4 amd64

The non-existing "foobar" package simply appears in neither of these
commands' output.
Not sure what exactly you want to achieve, maybe this might be a way to go.

Best regards

Michael

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

You're too beautiful to ignore.  Too much woman.
-- Kirk to Yeoman Rand, "The Enemy Within", stardate
   unknown



Re: Stretch Lite

2018-01-14 Thread Felix Miata
David composed on 2018-01-14 17:54 (UTC):

> I know there is a version of Rasbian called Stretch Lite.

> Is there a version of Debian to run headless without the excess clutter
> of office etc?

> I've tried removing the bits I don't need, but made an awful mess of it,
> better not to load it in the first place.

Start the installer with the following included on the boot cmdline:

tasks=standard base-installer/install-recommends=false

All my own installations start that way, normally as a part of network
installation, downloading little in advance of starting the installation:

https://www.debian.org/CD/netinst/
-- 
"Wisdom is supreme; therefore get wisdom. Whatever else you
get, get wisdom." Proverbs 4:7 (New Living Translation)

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

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



Re: USB camera;

2018-01-14 Thread peter
>> Is any USB camera working in Debian 9?

*   From: Reco recovery...@gmail.com
*   Date: Fri, 3 Nov 2017 18:11:57 +0300
> This one does, at least right now it did with mpv.
> lsusb tells me that it's:
> 
> 058f:5608 Alcor Micro Corp

*   From: deloptes delop...@gmail.com
*   Date: Fri, 03 Nov 2017 18:04:40 +0100
> ID 0471:2036 Philips (or NXP) Webcam SPC1030NC
> 
> works very well - already ~10y in use

At PC Galore I found a Logitech M/N: V-U0006, P/N: 860-000177, 
PID: LZ944BN which gives a good image.

peter@dalton:~$ lsusb | grep Logi
Bus 001 Device 005: ID 046d:0807 Logitech, Inc. Webcam B500

Now will return to the machine with the Hauppauge framegrabber and 
have another try at extracting an image.  If the camera is sending PAL 
and the framegrabber recognizes only NTSC it might not work.

Thanks Reco and Deloptes,
   ... P.
   


-- 

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: Secure email server setup

2018-01-14 Thread Brian
On Sun 14 Jan 2018 at 16:43:53 -0500, rhkra...@gmail.com wrote:

> On Sunday, January 14, 2018 02:26:03 PM Brian wrote:
> > On Sun 14 Jan 2018 at 12:49:46 -0500, rhkra...@gmail.com wrote:
> > > On Sunday, January 14, 2018 10:36:40 AM J.W. Foster wrote:
> > > > I am looking for a reliable step by step process for setting up an
> > > > email server located on an existing website server. I have installed; 
> > > > exim4 light, dovecot, Thunderbird, OpenSSL, and TLS security. I have
> > > > tried following several bits of documentation regarding this with some
> > > > success, but as with every time I try this, I open up my system to
> > > > SPAM at a ridiculous rate. I want to eliminate that and get this mail
> > > > server fully operational. I am seeking a well-documented approach that
> > > > I can follow. I am using current Debian Stretch and the server is
> > > > primarily a Mediawiki system where I NEED  mail available. Any tips
> > > > are appreciated. Thanks!John
> > > 
> > > Some clarification would help:
> > >* Do youi really need an email server on this machine, or do you just
> > >need
> > > 
> > > the capability to send and receive email?  I guess I'm not familiar
> > > enough with Mediawiki--does it need an email server?
> > > 
> > > In my (old) installations of TWiki, the ability to send and receive email
> > > was all I needed.
> > 
> > If you did not use a mail server, you were not *receiving* email but,
> > more than likely, *collecting* it.
> 
> Ok, but it worked and did what I needed to do.  And how many people would 
> perceive a difference between receiving it and collecting it in casual usage 
> of 
> those words and in this context?

Not many in this context, probably. But precision and the desire to
educate has never been amongst the strong points of commentators on
email. You would soon notice the difference if you had to collect
your mail from a Royal Mail office instead of having it delivered.
Apart from having to travel to collect it, "spam" control is handled
differently in each case.

-- 
Brian.



Re: [semi-OT] temperature/humidity/flood sensor recommendations

2018-01-14 Thread Miroslav Skoric

On 01/08/2018 04:57 PM, Roberto C. Sánchez wrote:


Hi all,

This is semi-OT but I am curious to know what temperature/humidity/flood
sensors everyone out there has experience with.

I am looking for something to use at home, but I would like to stay away
from WiFi and smart home devices.  Basically, I am looking for something
simple, which plugs into Ethernet, and makes its data available via HTTP
and/or telnet (or any other simple text-based protocol).  If it includes
some other fancy features (e.g., sending email alerts, SNMP traps, etc.)
then that is OK too.  I don't care whether it does onboard data storage.

I intend to integrate this with my own existing monitoring solution that
already includes Icinga, some custom scripts, logcheck alerts, and a few
other odds and ends (e.g., email alerts from apcupsd for power outages).

Any suggestions?

Regards,

-Roberto



Maybe you could think about some of those sensors:

https://www.modmypi.com/electronics/sensors-347/temperhum-usb-temperature-and-humidity-sensor/
https://www.modmypi.com/electronics/sensors-347/temper-gold-original-usb-temperature-sensor
https://www.modmypi.com/electronics/sensors-347/temper2-usb-dual-temperature-sensor/

For example, I managed to get some incomplete results with TEMPerHUM 
temperature & humidity sensor and temper-python 
(https://github.com/padelt/temper-python) in Wheezy. I sent my reports 
to ModMyPi, www.modmypi.com, to post them on their website. You may 
check there. I wish I had an option to get the monitored data written 
into a file that, in turn, my amateur radio software could recognize as 
a source of APRS 'weather data'. (When I experimented with that sensor, 
a command executed in CLI only returned a single line of data at a time, 
so that did not satisfy my needs. So I would appreciate whether 
temper-python or some other software could be upgraded in that direction.)


Misko



setting gpg keyserver & source-list in 443-https

2018-01-14 Thread sejobud33
how-to setting gpg keyserver & source-list in 443-https

- gpg (2.1.18) was installed by default without .conf & .dirmngr
i followed this how-to but it does not work.
https://sks-keyservers.net/overview-of-pools.php
hkps.pool.sks-keyservers.net
This is a pool containing only servers available using hkps.


- the sources-list (stable 9.3) was installed by default without https.
installing apt-transport-http should solve it.
https://packages.debian.org/stretch/apt-transport-https
If you specify https:// URLs in /etc/apt/sources.list and
/etc/apt/sources.list.d/*, then APT will use HTTPS.


but it does not work ...
gpg is still set in hkp & the sources-list are downloaded in http.
do you know an updated how-to or the reason why it does not work using
443/https ?



Re: Debian iso installation incorrectly sets sources.list

2018-01-14 Thread Charlie Gibbs

On 14/01/18 03:00 AM, Steve McIntyre wrote:

> "I suspect most samba developers are already technically insane...
> Of course, since many of them are Australians, you can't tell."
>   -- Linus Torvalds

It's probably the exposure to Windows that does it.

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



Re: Printing problem

2018-01-14 Thread arne
amd64 both systems
OS: Daily updated Linux Stretch

After 5 hours of googling, countless unnecessary rebooting
I still can only print from thin client
,
Not from PC (Only pdf and postscript from files using lpr)
Both macines are running debian stretch updated daily
No complaints from CUPS, but their drivers don't show up
Both are running amd64
 
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!
> 



Re: setting gpg keyserver & source-list in 443-https

2018-01-14 Thread deloptes
sejobu...@bitmessage.de wrote:

> how-to setting gpg keyserver & source-list in 443-https
> 
> - gpg (2.1.18) was installed by default without .conf & .dirmngr
> i followed this how-to but it does not work.
> https://sks-keyservers.net/overview-of-pools.php
> hkps.pool.sks-keyservers.net
> This is a pool containing only servers available using hkps.
> 
> 
> - the sources-list (stable 9.3) was installed by default without https.
> installing apt-transport-http should solve it.
> https://packages.debian.org/stretch/apt-transport-https
> If you specify https:// URLs in /etc/apt/sources.list and
> /etc/apt/sources.list.d/*, then APT will use HTTPS.
> 
> 
> but it does not work ...
> gpg is still set in hkp & the sources-list are downloaded in http.
> do you know an updated how-to or the reason why it does not work using
> 443/https ?

So gpg is working for you?

The source lists have nothing to do with gpg. The signing keys are verified
via gpg and you have to download the signing keys - there is instruction in
each release how to do this.

The question was already ask and it was explained why it is safe to download
the list(s) via http

regards



Problem using "dpkg -i"

2018-01-14 Thread Richard Owlett
A long time ago I had used Amaya, a HTML editor available at 
.

I know, it's OLD. But I've used it ;/

I did:
dpkg -i /home/richard/Downloads/amaya_11.4.7-1_i386.deb

Received error message:
dpkg: dependency problems prevent configuration of amaya:
 amaya depends on libssl0.9.8 (>= 0.9.8m-1); however:
  Package libssl0.9.8 is not installed.

However Synaptic indicates that libssl1.0.2 is installed.

Questions:
1. Can I "fix" the install?
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?

TIA



Re: Printing problem

2018-01-14 Thread deloptes
arne wrote:

> amd64 both systems
> OS: Daily updated Linux Stretch
> 
> After 5 hours of googling, countless unnecessary rebooting
> I still can only print from thin client
> ,
> Not from PC (Only pdf and postscript from files using lpr)
> Both macines are running debian stretch updated daily
> No complaints from CUPS, but their drivers don't show up
> Both are running amd64

In /etc/cups/client.conf I usually put the server name

#ServerName myhost.domain.com

ServerName 


then 

lpstat -a

$ lpstat -a
HP_LaserJet_5L accepting requests since Thu 14 Dec 2017 09:40:38 PM CET
HP_LaserJet_M402dn accepting requests since Sun 14 Jan 2018 11:52:07 PM CET

you need 'shared' configured on the print server for the printer(s)

regards