<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 2, 2015 at 11:47 AM, Санакоев Владимир <span dir="ltr"><<a href="mailto:wladimir-san@ya.ru" target="_blank">wladimir-san@ya.ru</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:15.36px;line-height:21.504px">Hi! </div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm;display:inline!important">I'm having trouble using the Your site "<a href="http://lists.freedesktop.org" target="_blank">lists.freedesktop.org</a>", also because my english is not forceful. </p>Sorry, I'll change that.</div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm">My main problem in the error unit "xl2tpd.service" and in "nss-hostname". The terminal displays the message to me, I can not understand. This terminal also displays your address and I therefore appeal for your support.</p><p lang="zxx" style="margin-bottom:0cm">I have. Debian-8. Distribution from official repository. Install from iso-file: debian-8.0.0-i386-DVD-1.iso.With the Implementation of protocol of L2TP tunnel heving Problems. Start Daemon xl2tpd is failed:</p><p lang="zxx" style="margin-bottom:0cm">This <b>from terminal</b> exited:</p><p lang="zxx" style="margin-bottom:0cm">"<b>Start Daemon xl2tpd is failed:</b></p><p lang="zxx" style="margin-bottom:0cm"><b></b><b>xl2tpd.service: control process exited, code-exited, status-1</b></p><p lang="zxx" style="margin-bottom:0cm"><b>Starting xl2tpd: Failed to start.</b></p><p lang="zxx" style="margin-bottom:0cm"><b>DAEMON_OPTS: not found. /etc/default/xl2tpd</b></p><p lang="zxx" style="margin-bottom:0cm"><b>Unit xl2tpd.service is Failed.</b></p></div></div></blockquote><div><br></div><div>The error message is a bit unclear; can you try after `export LC_MESSAGES=en_US` or `export LC_MESSAGES=C`? </div><div><br></div><div>Anyway, it seems like a problem with xl2tpd itself – not systemd. Check the system logs.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm"><b>Successfully activated service: 'org,freedesktop.hostname1'.</b></p><p lang="zxx" style="margin-bottom:0cm"><b>Warning: nss-hostname is not installed.</b></p><p lang="zxx" style="margin-bottom:0cm"><b>Changing the local hostname make it unresolveable.</b></p><p lang="zxx" style="margin-bottom:0cm"><b>Please install nss-myhostname.</b>"</p></div></div></blockquote><div><br></div><div>This is not related to xl2tpd at all – it's just a warning printed by "hostnamectl set-hostname".</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm"><u>My note:</u> I have tried to reload unit or make to enable it, is no result, because this unit does not exist in list. Command: 'systemctl list-unit-files', displays list, in which unit does not exist. But packet xl2tpd is installed! Files edited. What must I to make additional yet?</p></div></div></blockquote><div><br></div><div>Debian's xl2tpd package doesn't actually <i>have</i> a systemd unit yet. So when you try to `systemctl start`, it uses a virtual unit that just runs "/etc/init.d/xl2tpd start".</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm"><u>I have <b>questions</b>:</u></p><p lang="zxx" style="margin-bottom:0cm">1. What is "nss-myhostname" or "nss-hostname"?</p></div></div></blockquote><div><br></div><div>It is a glibc module. Glibc uses nss modules for resolving various kinds of names (user names to UIDs, host names to IP addresses, etc), for example, libnss_dns is used for DNS lookups, and libnss_files is used for /etc/hosts & /etc/passwd & /etc/group.</div><div><br></div><div>Similarly, libnss_myhostname is a very simple module that only translates "localhost" & the machine's own hostname to 127.0.0.1 & [::1].</div><div><br></div><div>Some programs require that the computer's hostname can be resolved to an IP address, so people used to have things like "127.0.0.1 myComputer localhost" in /etc/hosts. But it's easy to forget to update this file, so nss-myhostname was created to make it work automatically.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm">2. <b>How to install</b> "nss-hostname"?</p></div></div></blockquote><div><br></div><div>On Debian, it's the "libnss-myhostname" package. After installing it, make sure /etc/nsswitch.conf has "hosts: files dns myhostname" or something similar.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm">3. How to include the unit "xl2tpd.service" in the units list?</p></div></div></blockquote><div><br></div><div>As mentioned above, this unit doesn't actually exist, so you'll have to write it first. </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm">4.<b>Why</b> terminal writes: " ...make it <b>unresolveable</b>"? I don't understand it. It may be need to write : "... make it <b>resolvable</b>"?</p></div></div></blockquote><div><br></div><div>The hostname is already resolvable; the warning is trying to tell you that something could <i>break</i> it.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div><div style="font-size:15.36px;line-height:21.504px"><p lang="zxx" style="margin-bottom:0cm"><span style="font-size:15.36px;line-height:21.504px">4. </span><strong style="font-size:15.36px;line-height:21.504px">DAEMON_OPTS = " "</strong><span style="font-size:15.36px;line-height:21.504px"> ? Probably, the value of this "DAEMON_OPTS" need to write in file: /</span><b style="font-size:15.36px;line-height:21.504px">etc/default/xl2tpd </b><span style="font-size:15.36px;line-height:21.504px">? If is so, I don't know, what must to write. My provider also can't help me.</span></p></div></div></blockquote><div><br></div><div>The variable just contains the options that will be passed to /usr/sbin/xl2tpd, for example:</div><div><br></div><div>DAEMON_OPTS="-c /etc/xl2tpd/xl2tpd.conf"</div><div><br></div><div>But usually xl2tpd doesn't need any special options, I think.</div></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>