mariadb ldap auth

2018-09-06 Thread mj

Hi,

I have installed mariadb and configured pam authentication, and 
configured a mysql pam module like this:



/etc/pam.d/mysql
auth  required   pam_winbind.so
account   required   pam_winbind.so


which basically gives my samba winbind users access to mysql with their 
windows credentials:



root@mysqlserver:~# mysql -udomain_username -p
Enter password: 
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 6
Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> 


So I was happy.

But this seems to work only from the localhost mariadb is running on. 
Trying this from a remote mysql client gives:



user@e7470 ~ $ mysql -udomain_user -p -h mysqlserver.full.address
Enter password: 
ERROR 2059 (HY000): Authentication plugin 'dialog' cannot be loaded: /usr/lib/mysql/plugin/dialog.so: cannot open shared object file: No such file or directory


and searching for /usr/lib/mysql/plugin/dialog.so gives no results:


user@e7470 ~ $ dpkg --search /usr/lib/mysql/plugin/dialog.so
dpkg-query: no path found matching pattern /usr/lib/mysql/plugin/dialog.so
user@e7470 ~ $ 


Anyone here with a good suggestion how to achieve this from a remote 
mysql client?


MJ



changing the desktop environment

2018-09-06 Thread mick crane

hello,
It is a long time since I fiddled with the display.
is buster.
there are the names
display manager which is lightdm
desktop environment which is mate
and window manager which I think is part of mate

If I want to change desktop environment do I need a window manager ?
I'm not seeing anything looks like a window manager in output
of "ps ax"

How do I change desktop environment ?
Is it
"update-alternatives --config x-window-manager"

just asking because I don't want to bugger it up

mick

--
Key ID4BFEBB31



Re: changing the desktop environment

2018-09-06 Thread Eric S Fraga
On Thursday,  6 Sep 2018 at 11:53, mick crane wrote:
> How do I change desktop environment ?

If you are using lightdm, there should be a pull down menu in the login
screen where you can choose a different window manager.

-- 
Eric S Fraga via Emacs 27.0.50 & org 9.1.11 on Debian buster/sid



Re: changing the desktop environment

2018-09-06 Thread mick crane

On 2018-09-06 12:14, Eric S Fraga wrote:

On Thursday,  6 Sep 2018 at 11:53, mick crane wrote:

How do I change desktop environment ?


If you are using lightdm, there should be a pull down menu in the login
screen where you can choose a different window manager.


Ah, Ok. I see it now.

cheers

mick
--
Key ID4BFEBB31



Sid: pulseaudio & xfce4

2018-09-06 Thread Grzegorz Sójka

Hi there,

I figured out that I do not have sound in some applications because 
pulseadio is not running. To fix the problem it's enough to open 
terminal and issue pulseaudio command.
I'm using xfce4. What is the proper way of automatically start 
pulseaudio? Should I add a new item to the Application Autostart?? Is 
there any package responsible for starting pulseaudio?


--
Pozdrawiam
Grzesiek

Wysłane z kompa wolnego od wirusów Billa Gatesa.



Encrypted e-mails?

2018-09-06 Thread Torben Schou Jensen
We have more focus on Internet security now, than 5-10 years ago.
We have smartphones with software from Apple and Google, but we are unsure
if they look in our data.
We use Facebook and we know they sell info we share to other companies.
Each day we use Internet and visit websites, but behind we find trackers
that register our visit.
It is now more common than before to use HTTPS for a website to protect
traffic against data sniffers.

But it is still very common to send unencrypted e-mails, open post cards.
So why not use OpenPGP to encrypt e-mails, it is free, I am trying to find
out how to?

With OpenPGP you create a personal keypair, a secret and public key.
You send public key to friends, and they can encrypt e-mails to you, but
only you can open with secret key.

My primary e-mail is based on webmail with SquirrelMail on own private web
server.
A plugin named G/PGP Encryption is available, but not updated since 2007.
Written in PHP, interfacing with GnuPG, I found that it not work on Debian
Stable Linux and PHP 7.0.
But after hunting bugs, I have been able to fix it to send encrypted
e-mails between users within my server, not perfect, but working.
Now thinking about coding a new plugin.

In case I get it working, then I need friends outside my server to use
OpenPGP also.
To my knowledge it is not available very many places.
You normally get free e-mail without encryption, without encryption easier
for microsoft or google to look in your e-mails.

A week ago I got mail from google, that they now automatic add
appointments from my google e-mail to my google calendar.
I had then received copy of a hotel reservation from a friend, and
suddenly google added this as my hotel reservation.
So google in fact monitor my e-mails, scary, but not easy to have Android
smartphone without google account.

With https://protonmail.com/ we have webmail with focus on encrypted
e-mails, but it require your friends also have account there to make full
use of it.

We try to be secure on Internet, but still not easy to use secure e-mails???

https://www.openpgp.org/
https://squirrelmail.org/plugin_view.php?id=153




Re: Encrypted e-mails?

2018-09-06 Thread Dan Purgert
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

Torben Schou Jensen wrote:
> [...]
> But it is still very common to send unencrypted e-mails, open post cards.
> So why not use OpenPGP to encrypt e-mails, it is free, I am trying to find
> out how to?

Thunderbird, plus enigmail (plus gpg, obviously ;) ).

> With OpenPGP you create a personal keypair, a secret and public key.
> You send public key to friends, and they can encrypt e-mails to you, but
> only you can open with secret key.

Precisely.
 
> My primary e-mail is based on webmail with SquirrelMail on own private web
> server.
> A plugin named G/PGP Encryption is available, but not updated since 2007.
> Written in PHP, interfacing with GnuPG, I found that it not work on Debian
> Stable Linux and PHP 7.0.
>
> But after hunting bugs, I have been able to fix it to send encrypted
> e-mails between users within my server, not perfect, but working.
> Now thinking about coding a new plugin.

Issue was probably mainly centered around assumptions of GPG 1.x, huh?
Good deal that you got it working :)

>
> In case I get it working, then I need friends outside my server to use
> OpenPGP also.

Or at least PGP/GPG compliant software of their chosing.

> To my knowledge it is not available very many places.
> You normally get free e-mail without encryption, without encryption easier
> for microsoft or google to look in your e-mails.
>
> A week ago I got mail from google, that they now automatic add
> appointments from my google e-mail to my google calendar.
> I had then received copy of a hotel reservation from a friend, and
> suddenly google added this as my hotel reservation.
> So google in fact monitor my e-mails, scary, but not easy to have Android
> smartphone without google account.

Well, you do kind of allow it by virtue of using their service.  I mean,
sure it's a message "destined(tm)" for you, but it's on *their* servers.
Same kind of "invasion of privacy(tm)" happens in most office
environments -- all the emails that you send/receive are subject to
being read by your IT department if required.

>
> With https://protonmail.com/ we have webmail with focus on encrypted
> e-mails, but it require your friends also have account there to make full
> use of it.

Meh, never bothered with their service, pgp is easy enough; even through
google, etc.

>
> We try to be secure on Internet, but still not easy to use secure
> e-mails???

Mostly because people don't care.  They see "mail" in the name, and
think it's exactly like reglar mail and no one but the intended
recipient is allowed to look at it.



-BEGIN PGP SIGNATURE-

iQEzBAEBCAAdFiEEBcqaUD8uEzVNxUrujhHd8xJ5ooEFAluRPX0ACgkQjhHd8xJ5
ooHxnAgAgktK7rxQJILraJuSynZqz+/GdtDaaTYpcU5WHNbISz2mbWGnyKBrDsKt
P+vbVu/mGAnyGKjWiUT2jLpczNoM6MJ5d1P9v+0x1TkThk/1PcBl4xYB/E722i3s
OHZdyZ1RQR6+N/LkDTJZk7Z8JpI7yEwjXQjr34R1FAFiE8Qv5969AxRUUbBhll5B
rdJvTBIXdvsIpYNbs6PHEMtQsisjV+6m35pLU1wtgFGDwaiSr3DLUmjYuhy/7NeS
3nlqdWR3nbhcfPh6s1+TjW/tT4lVPkinfyAxYpgXNVTHavyhdfSidulznbtUdpum
vVAi4jLM0bPqOGbdIQsOELElTKPnFQ==
=vpu1
-END PGP SIGNATURE-

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



Decision makers from Financial services industry

2018-09-06 Thread donna . wright

Hi,


I just wanted to check if you would be interested in a list of Managed  
Service Providers (MSPs) and Managed Security Service Providers (MSSPs)?


We also have the data intelligence of:

•Managed Service Providers (MSP’s) – 25,000 unique companies
•Managed Security Service Providers (MSSP’s) – 7,520 unique  
companies

•IT Decision Makers – 6million across all industry
•Business Decision Makers – 10 million across all industry
•Value Added Resellers- VARs
•Independent Software Vendors- ISVs
•System Integrators- SIs
•VoIP Service Providers.
•Telecommunications Service Providers (TSPs)
•Application Service Providers (ASPs)
•IT Managed Services Providers (ITMSP)
•Storage Service Providers (SSPs)

Kindly review and let me know if I can share more information on this.

I look forward to hearing from you.

Donna Wright
Marketing Specialist


Re: OpenVPN & Debian Stretch

2018-09-06 Thread Wayne Sallee

Thanks.

I'll install openvpn, and easy-rsa on a test computer and see what it does, 
before installing it on my server.

Wayne Sallee
wa...@waynesallee.com
http://www.WayneSallee.com

On 09/05/2018 08:51 AM, Dan Ritter wrote:

easy-rsa is basically a series of scripts to get openssl to do
the right thing for you, consistently.




Re: Encrypted e-mails?

2018-09-06 Thread John Hasler
Torben Schou Jensen writes:
> A week ago I got mail from google, that they now automatic add
> appointments from my google e-mail to my google calendar.  I had then
> received copy of a hotel reservation from a friend, and suddenly
> google added this as my hotel reservation.  So google in fact monitor
> my e-mails...

Did you think Gmail was a charity?  It costs them *money*.  They offer it
free in order to add value to their advertising services, which are their
main business.  Of course they mine Gmail for data.

"Security" can mean protection against fraud: keeping malware off your
computer, preventing your passwords from being broken.  It can also mean
secrecy: preventing anyone other than the intended recipient from
reading your messages.  Most people aren't saying anything that they
can't bear to have Google's software scan.
-- 
John Hasler 
jhas...@newsguy.com
Elmwood, WI USA



Bash-Problem with cursor position after calling a function with READLINE_LINE

2018-09-06 Thread Norbert Gruener
Hi all,

In my Bash shell (».bashrc«) I have »bind« a command to the »F1« key
   bind -x '"\eOP":"_bash_man"'# F1 man 

The script »_bash_man«  looks like (it is simplified only for test reasons)

   echo "${READLINE_LINE}"


When I type »aaa« and then press »F1«, I see a new line on the screen
containing the string »aaa« and the cursor is positioned behind the
string. The »Backspace« key is doing nothing, and pressing the four
»arrow« keys just give that result

   bash^[[D^[[C^[[B^[[A

but does not move the cursor in any direction. When I press

  aaa^Az»Enter«

then the output on the screen is

  bash: zaaa: command not found

Apparently the cursor position is not set correctly and the cursor
movements are not done on the screen.


Technical detail:
  Debian: Debian GNU/Linux 9.5.0 _Stretch_
  Bash:   GNU bash, version 4.4.12(1)-release (x86_64-pc-linux-gnu)


Any help or any information would be very much appreciated.

Cheers,
Norbert
-- 



Re: changing the desktop environment

2018-09-06 Thread Patrick Bartek
On Thu, 06 Sep 2018 11:53:19 +0100
mick crane  wrote:

> hello,
> It is a long time since I fiddled with the display.
> is buster.
> there are the names
> display manager which is lightdm
> desktop environment which is mate
> and window manager which I think is part of mate
> 
> If I want to change desktop environment do I need a window manager ?
> I'm not seeing anything looks like a window manager in output
> of "ps ax"
> 
> How do I change desktop environment ?
> Is it
> "update-alternatives --config x-window-manager"
> 
> just asking because I don't want to bugger it up

To change desktop environment, you must install another one.  Seems you
only have Mate installed.  Do a search for "Installing Debian Desktop"
for the details.

B



Re: Bash-Problem with cursor position after calling a function with READLINE_LINE

2018-09-06 Thread Thomas Schmitt
Hi,

i replayed this on Jessie.
I get printed lines "aaa" for every F1 i press.
No shell prompts get printed inbetween, but rather the shell prompt
and the text "aaa" stay in the base line of the xterm.
The text "aaa" can be edited and the new text gets printed with F1.

Like after three times pressing F1:
  $
  aaa
  aaa
  abc
  $ abc

(This brings F1 back to normal:
   bind -x '"\eOP"':
)

If not your other commands in the script are to blame, then maybe your
terminal ? I use /usr/bin/xterm (which refuses to tell me its version).


Have a nice day :)

Thomas



Re: changing the desktop environment

2018-09-06 Thread Josh Horn
‐‐‐ Original Message ‐‐‐
On 6 September 2018 11:20 AM, Patrick Bartek  wrote:

> On Thu, 06 Sep 2018 11:53:19 +0100
> mick crane mick.cr...@gmail.com wrote:
>
> > hello,
> > It is a long time since I fiddled with the display.
> > is buster.
> > there are the names
> > display manager which is lightdm
> > desktop environment which is mate
> > and window manager which I think is part of mate
> > If I want to change desktop environment do I need a window manager ?
> > I'm not seeing anything looks like a window manager in output
> > of "ps ax"
> > How do I change desktop environment ?
> > Is it
> > "update-alternatives --config x-window-manager"
> > just asking because I don't want to bugger it up
>
> To change desktop environment, you must install another one. Seems you
> only have Mate installed. Do a search for "Installing Debian Desktop"
> for the details.
>
> B

There are several desktops to install, KDE - GNOME, XFCE as well as many other 
just "window managers". For example to install XFCE: sudo apt-get install xfce4 
xfce4-goodies, for GNOME: sudo apt-get install task-gnome-desktop, or for any 
one of the window managers. sudo apt-get install twm or sudo apt-get install 
blackbox etc.

Josh



Re: Bash-Problem with cursor position after calling a function with READLINE_LINE

2018-09-06 Thread Norbert Gruener
Hi Thomas,

On 9/6/18 6:28 PM, Thomas Schmitt wrote:
> Hi,
> 
> i replayed this on Jessie.

under Jessie this was working for me too.  But after my upgrade to
Stretch I got these problems   :-(

Cheers,
Norbert
-- 



dhcp service problem on stretch

2018-09-06 Thread Bonno Bloksma
Hi,

Just installed my first stretch server using the 9.5 DVD1, installed the normal 
system environment, no desktop just a ssh server, and added the isc dhcp server.
I transferred my original dhcpf.conf file, stripped what I did not need in the 
new environment and expected no problems. However...

It seems the dhcp service does not want to start but I have no idea why.
I have stripped my dhcpd.conf down to barely nothing and a regular test gives 
no errors but the service refuses to start, why?

Testing the config, no error
=
linom1:~# /usr/sbin/dhcpd -t -cf /etc/dhcp/dhcpd.conf
Internet Systems Consortium DHCP Server 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
linom1:~#

Starting the service, error
=
linom1:~# service isc-dhcp-server start
Job for isc-dhcp-server.service failed because the control process exited with 
error code.
See "systemctl status isc-dhcp-server.service" and "journalctl -xe" for details.

And just for the fun of it, the /etc/dhcpd/dhcpd.conf file

linom1:~# cat /etc/dhcp/dhcpd.conf
shared-network om1-lan.tio.nl {
  subnet 172.16.72.0 netmask 255.255.254.0 {
option routers 172.16.72.1;
option domain-name "tio.nl";
# Dyanamic range
range 172.16.73.200 172.16.73.240;
  }
}

And the 172.16.72.0/23 network is definitely in range for this dhcp server

linom1:~# ip addr
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group 
default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
   valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
   valid_lft forever preferred_lft forever
2: ens192:  mtu 1500 qdisc pfifo_fast state UP 
group default qlen 1000
link/ether 00:50:56:8a:3c:ee brd ff:ff:ff:ff:ff:ff
inet 172.16.72.19/23 brd 172.16.73.255 scope global ens192
   valid_lft forever preferred_lft forever
inet6 fe80::250:56ff:fe8a:3cee/64 scope link
   valid_lft forever preferred_lft forever

Also the logging is not very helpful
=
linom1:~# systemctl status isc-dhcp-server.service
● isc-dhcp-server.service - LSB: DHCP server
   Loaded: loaded (/etc/init.d/isc-dhcp-server; generated; vendor preset: 
enabled)
   Active: failed (Result: exit-code) since Thu 2018-09-06 17:47:42 CEST; 12min 
ago
 Docs: man:systemd-sysv-generator(8)
  Process: 1668 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, 
status=1/FAILURE)
Tasks: 1 (limit: 4915)
   CGroup: /system.slice/isc-dhcp-server.service
   └─1409 /usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf

Sep 06 17:47:42 linom1 systemd[1]: Starting LSB: DHCP server...
Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: /etc/init.d/isc-dhcp-server: 50: 
/etc/init.d/isc-dhcp-server: cannot open /etc/dhcp/dhcpd6.conf: No
Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Launching both IPv4 and IPv6 
servers (please configure INTERFACES in /etc/default/isc-dhcp-server if
Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Starting ISC DHCPv4 server: 
dhcpddhcpd service already running (pid file /var/run/dhcpd.pid currenty
Sep 06 17:47:42 linom1 systemd[1]: isc-dhcp-server.service: Control process 
exited, code=exited status=1
Sep 06 17:47:42 linom1 systemd[1]: Failed to start LSB: DHCP server.
Sep 06 17:47:42 linom1 systemd[1]: isc-dhcp-server.service: Unit entered failed 
state.
Sep 06 17:47:42 linom1 systemd[1]: isc-dhcp-server.service: Failed with result 
'exit-code'.
lines 1-17/17 (END)

Who can help me?

Bonno Bloksma



Re: KDE Bluedevil

2018-09-06 Thread David Wright
On Wed 22 Aug 2018 at 22:58:00 (-0400), Timothy M Butterworth wrote:
> On 8/21/18, David Wright  wrote:
> > On Mon 20 Aug 2018 at 20:12:57 (-0400), Timothy M Butterworth wrote:
> >> In Debian 9.5 KDE Bluedevil is unable to add devices. Is their any fix
> >> for this other then using GNOME Blueman tool.
> >
> > In the absence of other replies, can you explain what you mean by
> > "add devices".
> >
> > I use bluetooth, bluez, bluez-tools and bluez-obexd for what I do,
> > but that might not be all you and others do.

> When I try to pair a new device it fails with Bluedevil. I tried to
> pair multiple devices. I installed GNOME Blueman and was able to pair
> the devices. Now that the devices have been paired I can connect to
> and disconnect from them with Bluedevil.

I don't use GUIs to pair, but run bluetoothctl to pair a new device
in an xterm. Here's a typical conversation:

$ bluetoothctl
[NEW] Controller 0C:xx:xx:xx:xx:xx wren [default]
[NEW] Device 50:xx:xx:xx:xx:xx already
[NEW] Device 0B:xx:xx:xx:xx:xx paired
[NEW] Device 00:xx:xx:xx:xx:xx devices
[bluetooth]# agent on
Agent registered
[bluetooth]# default-agent
Default agent request successful
[bluetooth]# pairable on
Changing pairable on succeeded
[bluetooth]# discoverable on
Changing discoverable on succeeded
[CHG] Controller 0C:xx:xx:xx:xx:xx Discoverable: yes ← pair after this line 
received
[NEW] Device F8:xx:xx:xx:xx:xx F8-xx-xx-xx-xx-xx
[CHG] Device F8:xx:xx:xx:xx:xx 
[CHG] Device F8:xx:xx:xx:xx:xx ServicesResolved: yes
[CHG] Device F8:xx:xx:xx:xx:xx Paired: yes
[CHG] Device F8:xx:xx:xx:xx:xx ServicesResolved: no
[CHG] Device F8:xx:xx:xx:xx:xx Connected: no
[bluetooth]# quit
Agent unregistered
[DEL] Controller 0C:xx:xx:xx:xx:xx wren [default]
$ 

The main use I have is transfer of files (photos, music, etc) back and
forth. I always have a command running (started in ~/.xsession):
$ yes | bt-obex -s /tmp/
The idea is that I don't have to intervene on the PC to transfer a
file to it (or even be in the same room necessarily).
I should point out that the /tmp/ argument is ignored in stretch;
files arrive in ~/.cache/obexd/ regardless.

To send files from the PC, I use the command
$ bt-obex -p galaxy path/to/file
where galaxy is the bluetooth name of the device. In this case, I
obviously have to remember to turn bluetooth on in the device.
(Leaving bluetooth on will discharge the battery more quickly.)

I haven't had much success with  bt-obex -f  (ie the FTP service)
so I don't bother with that.

One wrinkle when pairing: to get the bluetooth name of the device sent
to the PC, the device should be paired while it is visible to other
devices (rather than hidden). Otherwise it will still pair, but
without setting a name, so to send files to the device you have to
use its MAC (long and unmemorable) rather than its name (memorable
and short).

And finally, this method does not work (on an older laptop) in jessie:
it refuses to make itself discoverable. It still works with wheezy,
which runs using the older method, bluetooth-agent.

Cheers,
David.



Re: Bash-Problem with cursor position after calling a function with READLINE_LINE

2018-09-06 Thread Thomas Schmitt
Hi,

Norbert Gruener wrote:
> after my upgrade to Stretch I got these problems   :-(

Did you already check whether it is a matter of the terminal program ?
If it is a bit rot problem between readline and terminal, then you
might get lucky with a different one.


Have a nice day :)

Thomas



Re: dhcp service problem on stretch

2018-09-06 Thread Roberto C . Sánchez
On Thu, Sep 06, 2018 at 05:33:39PM +, Bonno Bloksma wrote:
> Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: /etc/init.d/isc-dhcp-server: 
> 50: /etc/init.d/isc-dhcp-server: cannot open /etc/dhcp/dhcpd6.conf: No
> Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Launching both IPv4 and IPv6 
> servers (please configure INTERFACES in /etc/default/isc-dhcp-server if
> 

I am not sure what is unclear about the message there.  Your
configuration obviously has both IPv4 and IPv6 enabled, but you did not
supply a configuration file for IPv6.  Either supply a configuration
file for IPv6, or disable IPv6.

Regards,

-Roberto

-- 
Roberto C. Sánchez



Re: dhcp service problem on stretch

2018-09-06 Thread Ulf Volmer
On Thu, Sep 06, 2018 at 05:33:39PM +, Bonno Bloksma wrote:

> Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Launching both IPv4 and IPv6 
> servers (please configure INTERFACES in /etc/default/isc-dhcp-server if

Please edit the file above and place your network interfaces there.

best regards
Ulf



Re: dhcp service problem on stretch

2018-09-06 Thread Reco
Hi.

On Thu, Sep 06, 2018 at 05:33:39PM +, Bonno Bloksma wrote:
> It seems the dhcp service does not want to start but I have no idea why.
> I have stripped my dhcpd.conf down to barely nothing and a regular test gives 
> no errors but the service refuses to start, why?
...
> Also the logging is not very helpful

I always said that less is more.
You see, the trick with these logs is to know where to look, so ...


> linom1:~# systemctl status isc-dhcp-server.service
> ● isc-dhcp-server.service - LSB: DHCP server
>Loaded: loaded (/etc/init.d/isc-dhcp-server; generated; vendor preset: 
> enabled)
>Active: failed (Result: exit-code) since Thu 2018-09-06 17:47:42 CEST; 
> 12min ago
>  Docs: man:systemd-sysv-generator(8)
>   Process: 1668 ExecStart=/etc/init.d/isc-dhcp-server start (code=exited, 
> status=1/FAILURE)
> Tasks: 1 (limit: 4915)
>CGroup: /system.slice/isc-dhcp-server.service
>└─1409 /usr/sbin/dhcpd -4 -q -cf /etc/dhcp/dhcpd.conf

This is your usual systemd blurb, showing that you have dhcpd running
already.


> Sep 06 17:47:42 linom1 systemd[1]: Starting LSB: DHCP server...

Useless.

> Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: /etc/init.d/isc-dhcp-server: 
> 50: /etc/init.d/isc-dhcp-server: cannot open /etc/dhcp/dhcpd6.conf: No
> Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Launching both IPv4 and IPv6 
> servers (please configure INTERFACES in /etc/default/isc-dhcp-server if

Scary, but they are warnings, not errors.
Yes, it takes reading initscript to understand that.


> Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Starting ISC DHCPv4 server: 
> dhcpddhcpd service already running (pid file /var/run/dhcpd.pid currenty

And this shows us that you cannot start what's been started already
(another instance of dhcpcd is using a pidfile).


I assume that your dhcpd.conf is OK, so the problem should solve itself
via simple:

service isc-dhcp-server stop
service isc-dhcp-server start
service isc-dhcp-server status

Reco



Re: dhcp service problem on stretch

2018-09-06 Thread Joe
On Thu, 6 Sep 2018 17:33:39 +
Bonno Bloksma  wrote:

> Hi,
> 
> Just installed my first stretch server using the 9.5 DVD1, installed
> the normal system environment, no desktop just a ssh server, and
> added the isc dhcp server. I transferred my original dhcpf.conf file,
> stripped what I did not need in the new environment and expected no
> problems. However...
> 
> It seems the dhcp service does not want to start but I have no idea
> why. I have stripped my dhcpd.conf down to barely nothing and a
> regular test gives no errors but the service refuses to start, why?
> 

> No Sep 06 17:47:42 linom1 isc-dhcp-server[1668]: Launching both IPv4
> and IPv6 servers (please configure INTERFACES
> in /etc/default/isc-dhcp-server if Sep 06 17:47:42 linom1

> 
> Who can help me?
> 

I'll have a go. Do what it says about /etc/default/isc-dhcp-server.
I'll make a guess that the ethernet interface(s) now have different
names and you need to modify the file to suit, or the file may even
have no interfaces listed. I'm assuming you've done the same in the
dhcpd.conf.

I've just hit the same thing, switching an obsolete drive into an old
machine to boot it for the last few times, and found that it insists on
calling the two ethernets eth2 and eth3, instead of 0 and 1 as in the
previous hardware. Yes, I know why, it's just a nuisance.

-- 
Joe



NFS mounts failing at boot (stretch)

2018-09-06 Thread Matthew Pounsett
I've got an NFS mount on a Debian 9 box which is failing to mount at boot
time, but mounts cleanly and quickly once the system is up and running.

I've added the _netdev option to fstab, which according to mount(8) should
cause the mount attempt to be delayed until the network is up, but that
doesn't seem to have helped.

192.168.1.36:/pool3   /data/pool3   nfs   _netdev,rw,nolock,nfsvers=3   0
 0

I've done some googling on the subject, and all the results I've found are
either assertions that _netdev should do the trick, or reports of it not
working.  The only case I've found of someone making it work is the
unacceptable workaround of adding the mount to /etc/rc.local.

Does anyone know if the _netdev option is actually expected to work in
Debian 9, and if not, what the proper way to set an NFS mount at boot
actually is?

Thanks.


Re: Bash-Problem with cursor position after calling a function with READLINE_LINE

2018-09-06 Thread Norbert Gruener
Hi Thomas,

On 9/6/18 8:30 PM, Thomas Schmitt wrote:
> Hi,
> 
> Norbert Gruener wrote:
>> after my upgrade to Stretch I got these problems   :-(
> 
> Did you already check whether it is a matter of the terminal program ?
> If it is a bit rot problem between readline and terminal, then you
> might get lucky with a different one.

I have tried »xterm«, »uxterm«, and »xfce4-terminal«. The behavior was
identical in all three terminals.

Cheers,
Norbert
--