Re: [gentoo-user] Attic files (app-admin/rackview) removed?

2016-06-07 Thread Stroller

> On Tue, 7 June 2016, at 5:53 pm, James  wrote:
> 
> It has been tree-cleansed. ok. So I went to the (gentoo) attic::
> 
> https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/
> rackview/?hideattic=0
> 
> rackview-0.09-r3.ebuild  seems to have been removed from the attic?

I don't understand. 

   wget 
https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/rackview/rackview-0.09-r3.ebuild?revision=1.2

Doesn't this work for you?

Stroller.




[gentoo-user] Re: Attic files (app-admin/rackview) removed?

2016-06-07 Thread Jonathan Callen
On 06/07/2016 01:09 PM, James wrote:
> 
> 
>> https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/
>> rackview/?hideattic=0
> 
>>  rackview-0.09-r3.ebuild  seems to have been removed from the attic?
> 
> 
> I have to revert to using 'wget' to snag the files and a copy
> of the latest ebuild. I thought the command string given the the page::
> 
> vs -d :pserver:anonym...@anoncvs.gentoo.org:/var/cvsroot co
> gentoo-x86/app-admin/rackview/files
> 
> was support to download the files and the ebuild, manifest etc etc.?
> 
> Is there a single (anoncvs) command syntax to use, in general to pull
> complete (theoretically compilable) sources from the archive? It's been 
> a while so my cvs could easily be incorrect
> 
> wget is a champ.
> 
> curiously,
> James
> 

Because the entire directory in question is (now) empty, the
requirements are a bit different.

First, you must do the `cvs co` *without* the "-P" flag (check your
~/.cvsrc). You can bypass a ~/.cvsrc by passing "-f" to cvs, like so:

CVSROOT=":pserver:anonym...@anoncvs.gentoo.org:/var/cvsroot"
cvs -f -d "$CVSROOT" co gentoo-x86/app-admin/rackview

You can then cd into the directory in question
(gentoo-x86/app-admin/rackview), and for each file that you want,
determine the revision of the file just before it was removed (subtract
0.1 from the revision shown on the web view, or read the output of `cvs
log`).

You can then do `cvs up -r1.X file`, replacing "1.X" with the CVS
revision and "file" with the filename in question.  Note that CVS
tracked every file separately, so the revisions will differ between files.

-- 
Jonathan Callen



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Change from udev to eudev?

2016-06-07 Thread Dale
wabe wrote:
> Dale  wrote:
>
>> wabe wrote:
>>> Hi,
>>>
>>> emerge wants to install eudev. Now I wonder if this is ok 
>>> and if so, how I can do this without breaking my system.
>>>
>>> Any help is greatly appreciated.
>>>
>>> This is the output from emerge:
> [...]
>> I switched mine back when eudev was new and not even stable yet.  It
>> was as simple as unmerge udev and emerge eudev.  I don't recall even
>> doing a reboot, which I rarely do here anyway. 
> THX for your answer.
>
> That's also what I normally do in such a case but I was not sure if
> the systems keeps running when I remove udev. I will make a backup 
> before I remove udev. Then I should be on the safe side.
>
> But I wonder why portage wanna change udev to eudev on my system. It
> seems that this is not the case for everyone else. I'm using a stable
> hardened gentoo system and did not change USE flags or other settings.
> Just started my regular update process.
>
> @R0b0t1: THX also for your answer.
>
> --
> Regards
> wabe
>
>


Add the -t option and it should show what is pulling it in.  I don't
know why, I always forget to add that when something confusing happens
on my end but I always think about it when it happens to someone else. 
I think it could be age related.  lol 

If I recall correctly, I was logged into KDE when I did mine.  Keep in
mind, it just adds new stuff that you connect.  If for example you plug
in something during the switch, that could cause it to not recognize the
device.  As long as you don't connect/disconnect anything, it should
work fine.  The only problem I might could see is if you have a
mouse/keyboard with a flaky connection.   Likely a rare thing to happen
tho, without you already noticing. 

Dale

:-)  :-) 




Re: [gentoo-user] Change from udev to eudev?

2016-06-07 Thread wabe
Dale  wrote:

> wabe wrote:
> > Hi,
> >
> > emerge wants to install eudev. Now I wonder if this is ok 
> > and if so, how I can do this without breaking my system.
> >
> > Any help is greatly appreciated.
> >
> > This is the output from emerge:
[...]
> I switched mine back when eudev was new and not even stable yet.  It
> was as simple as unmerge udev and emerge eudev.  I don't recall even
> doing a reboot, which I rarely do here anyway. 

THX for your answer.

That's also what I normally do in such a case but I was not sure if
the systems keeps running when I remove udev. I will make a backup 
before I remove udev. Then I should be on the safe side.

But I wonder why portage wanna change udev to eudev on my system. It
seems that this is not the case for everyone else. I'm using a stable
hardened gentoo system and did not change USE flags or other settings.
Just started my regular update process.

@R0b0t1: THX also for your answer.

--
Regards
wabe



[gentoo-user] Re: Attic files (app-admin/rackview) removed?

2016-06-07 Thread James
R0b0t1  gmail.com> writes:

>  > man cvs::
>  > Process  directories  recursively.   This is the default for all cvs
>  > commands, with the exception of ls & rls.

>  > So, I have a '/usr/local/portage/app-admin/rackview/' dir.

>  > What is the correct syntax string (I borked this a few times
>  > to no avail)?

> `cd /usr/portage && wget -r $url`
> or
> `wget -P /usr/portage -r $url`



No problems with wget, I was referrring to cvs syntax.

Reread the first email. The problem/question was on cvs syntaxonly.


James





Re: [gentoo-user] Change from udev to eudev?

2016-06-07 Thread Dale
wabe wrote:
> Hi,
>
> emerge wants to install eudev. Now I wonder if this is ok 
> and if so, how I can do this without breaking my system.
>
> Any help is greatly appreciated.
>
> This is the output from emerge:
>
>
> ~# emerge -avuD --verbose-conflicts --keep-going --changed-use --with-bdeps=y 
> --backtrack=999 @world
>
> These are the packages that would be merged, in order:
>
> Calculating dependencies... done!
> [ebuild  N ] sys-fs/eudev-3.1.5::gentoo  USE="hwdb kmod -introspection 
> -rule-generator (-selinux) -static-libs {-test}" ABI_X86="(64) -32 (-x32)" 
> 1.705 KiB
> [ebuild  N ] dev-libs/libgudev-230::gentoo  USE="-debug -introspection 
> -static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
> [blocks B  ] sys-fs/udev ("sys-fs/udev" is blocking sys-fs/eudev-3.1.5)
> [blocks B  ] sys-fs/udev[gudev(-)] ("sys-fs/udev[gudev(-)]" is blocking 
> dev-libs/libgudev-230)
> [blocks B  ] dev-libs/libgudev ("dev-libs/libgudev" is blocking 
> sys-fs/udev-216)
>
> Total: 2 packages (2 new), Size of downloads: 1.705 KiB
> Conflict: 3 blocks (3 unsatisfied)
>
>  * Error: The above package list contains packages which cannot be
>  * installed at the same time on the same system.
>
>   (sys-fs/udev-216:0/0::gentoo, installed) pulled in by
> 
> >=sys-fs/udev-208-r1:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,gudev(-),introspection(-)?,static-libs?]
>  (>=sys-fs/udev-208-r1:0/0[abi_x86_64(-),gudev(-)]) required by 
> (virtual/libgudev-215-r3:0/0::gentoo, installed)
> 
> >=sys-fs/udev-208-r1:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,static-libs?]
>  (>=sys-fs/udev-208-r1:0/0[abi_x86_64(-)]) required by 
> (virtual/libudev-215-r1:0/1::gentoo, installed)
>
>   (dev-libs/libgudev-230:0/0::gentoo, ebuild scheduled for merge) pulled in by
> 
> dev-libs/libgudev:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,introspection?,static-libs?]
>  (dev-libs/libgudev:0/0[abi_x86_64(-)]) required by 
> (virtual/libgudev-215-r3:0/0::gentoo, installed)
>
>   (sys-fs/eudev-3.1.5:0/0::gentoo, ebuild scheduled for merge) pulled in by
> >=sys-fs/eudev-1.3 required by (virtual/udev-215:0/0::gentoo, installed)
> 
> >=sys-fs/eudev-1.3:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,static-libs?]
>  (>=sys-fs/eudev-1.3:0/0[abi_x86_64(-)]) required by 
> (virtual/libudev-215-r1:0/1::gentoo, installed)
>
>
> --
> Regards
> wabe
>
>


I switched mine back when eudev was new and not even stable yet.  It was
as simple as unmerge udev and emerge eudev.  I don't recall even doing a
reboot, which I rarely do here anyway. 

Dale

:-)  :-) 



Re: [gentoo-user] Re: Attic files (app-admin/rackview) removed?

2016-06-07 Thread R0b0t1
On Jun 7, 2016 5:00 PM, "James"  wrote:
>
> R0b0t1  gmail.com> writes:
>
>
> > > vs -d :pserver:anonymous  anoncvs.gentoo.org:/var/cvsroot co
> > > gentoo-x86/app-admin/rackview/files
> > >
> > > was support to download the files and the ebuild, manifest etc etc.?
> > >
> > > Is there a single (anoncvs) command syntax to use, in general to pull
> > > complete (theoretically compilable) sources from the archive? It's
been
> > > a while so my cvs could easily be incorrect
> > >
> > > wget is a champ.
> > >
> > > curiously,
> > > James
> > >
> > Use the recursive option. Save the files to your portage tree.
>
>
> man cvs::
> -R
> Process  directories  recursively.   This is the default for all cvs
> commands, with the exception of ls & rls.
>
> So, I have a '/usr/local/portage/app-admin/rackview/' dir.
>
> What is the correct syntax string (I borked this a few times
> to no avail)?
>
>
> curiously,
> James
> ???
> James
>

`cd /usr/portage && wget -r $url`
or
`wget -P /usr/portage -r $url`
or
`wget --help`


[gentoo-user] Re: Attic files (app-admin/rackview) removed?

2016-06-07 Thread James
R0b0t1  gmail.com> writes:


> > vs -d :pserver:anonymous  anoncvs.gentoo.org:/var/cvsroot co
> > gentoo-x86/app-admin/rackview/files
> >
> > was support to download the files and the ebuild, manifest etc etc.?
> >
> > Is there a single (anoncvs) command syntax to use, in general to pull
> > complete (theoretically compilable) sources from the archive? It's been
> > a while so my cvs could easily be incorrect
> >
> > wget is a champ.
> >
> > curiously,
> > James
> >
> Use the recursive option. Save the files to your portage tree.
 

man cvs::
-R
Process  directories  recursively.   This is the default for all cvs
commands, with the exception of ls & rls.

So, I have a '/usr/local/portage/app-admin/rackview/' dir.

What is the correct syntax string (I borked this a few times
to no avail)?


curiously,
James
???
James







Re: [gentoo-user] Change from udev to eudev?

2016-06-07 Thread R0b0t1
Unmerge udev.


[gentoo-user] Change from udev to eudev?

2016-06-07 Thread wabe
Hi,

emerge wants to install eudev. Now I wonder if this is ok 
and if so, how I can do this without breaking my system.

Any help is greatly appreciated.

This is the output from emerge:


~# emerge -avuD --verbose-conflicts --keep-going --changed-use --with-bdeps=y 
--backtrack=999 @world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N ] sys-fs/eudev-3.1.5::gentoo  USE="hwdb kmod -introspection 
-rule-generator (-selinux) -static-libs {-test}" ABI_X86="(64) -32 (-x32)" 
1.705 KiB
[ebuild  N ] dev-libs/libgudev-230::gentoo  USE="-debug -introspection 
-static-libs" ABI_X86="(64) -32 (-x32)" 0 KiB
[blocks B  ] sys-fs/udev ("sys-fs/udev" is blocking sys-fs/eudev-3.1.5)
[blocks B  ] sys-fs/udev[gudev(-)] ("sys-fs/udev[gudev(-)]" is blocking 
dev-libs/libgudev-230)
[blocks B  ] dev-libs/libgudev ("dev-libs/libgudev" is blocking 
sys-fs/udev-216)

Total: 2 packages (2 new), Size of downloads: 1.705 KiB
Conflict: 3 blocks (3 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (sys-fs/udev-216:0/0::gentoo, installed) pulled in by

>=sys-fs/udev-208-r1:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,gudev(-),introspection(-)?,static-libs?]
 (>=sys-fs/udev-208-r1:0/0[abi_x86_64(-),gudev(-)]) required by 
(virtual/libgudev-215-r3:0/0::gentoo, installed)

>=sys-fs/udev-208-r1:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,static-libs?]
 (>=sys-fs/udev-208-r1:0/0[abi_x86_64(-)]) required by 
(virtual/libudev-215-r1:0/1::gentoo, installed)

  (dev-libs/libgudev-230:0/0::gentoo, ebuild scheduled for merge) pulled in by

dev-libs/libgudev:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,introspection?,static-libs?]
 (dev-libs/libgudev:0/0[abi_x86_64(-)]) required by 
(virtual/libgudev-215-r3:0/0::gentoo, installed)

  (sys-fs/eudev-3.1.5:0/0::gentoo, ebuild scheduled for merge) pulled in by
>=sys-fs/eudev-1.3 required by (virtual/udev-215:0/0::gentoo, installed)

>=sys-fs/eudev-1.3:0/0[abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?,static-libs?]
 (>=sys-fs/eudev-1.3:0/0[abi_x86_64(-)]) required by 
(virtual/libudev-215-r1:0/1::gentoo, installed)


--
Regards
wabe



Re: [gentoo-user] Re: Attic files (app-admin/rackview) removed?

2016-06-07 Thread R0b0t1
On Jun 7, 2016 12:11 PM, "James"  wrote:
>
> James  tampabay.rr.com> writes:
>
>
> > https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/
> > rackview/?hideattic=0
>
> >  rackview-0.09-r3.ebuild  seems to have been removed from the attic?
>
>
> I have to revert to using 'wget' to snag the files and a copy
> of the latest ebuild. I thought the command string given the the page::
>
> vs -d :pserver:anonym...@anoncvs.gentoo.org:/var/cvsroot co
> gentoo-x86/app-admin/rackview/files
>
> was support to download the files and the ebuild, manifest etc etc.?
>
> Is there a single (anoncvs) command syntax to use, in general to pull
> complete (theoretically compilable) sources from the archive? It's been
> a while so my cvs could easily be incorrect
>
> wget is a champ.
>
> curiously,
> James
>

Use the recursive option. Save the files to your portage tree.


[gentoo-user] Re: Attic files (app-admin/rackview) removed?

2016-06-07 Thread James
James  tampabay.rr.com> writes:


> https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/
> rackview/?hideattic=0

>  rackview-0.09-r3.ebuild  seems to have been removed from the attic?


I have to revert to using 'wget' to snag the files and a copy
of the latest ebuild. I thought the command string given the the page::

vs -d :pserver:anonym...@anoncvs.gentoo.org:/var/cvsroot co
gentoo-x86/app-admin/rackview/files

was support to download the files and the ebuild, manifest etc etc.?

Is there a single (anoncvs) command syntax to use, in general to pull
complete (theoretically compilable) sources from the archive? It's been 
a while so my cvs could easily be incorrect

wget is a champ.

curiously,
James







[gentoo-user] Attic files (app-admin/rackview) removed?

2016-06-07 Thread James
Hello,

So I used rackview many years ago. It's ok, simple to use.

It has been tree-cleansed. ok. So I went to the (gentoo) attic::

https://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/app-admin/
rackview/?hideattic=0

 rackview-0.09-r3.ebuild  seems to have been removed from the attic?


Are the devs now cleansing the attic?  I thought those were suppose to
remain into perpetuity, for a variety of reasons.


stumped,
James






Re: [gentoo-user] xdg-open opens pdf with gimp

2016-06-07 Thread sven.garbade
thanks for the hint. I found the following strange configuration:

as a normal user:

> xdg-mime query default application/pdf
zathura-pdf-poppler.desktop;

> xdg-mime default zathura-pdf-poppler.desktop application/pdf

xdg-open still uses gimp.

As root:

root > xdg-mime query default application/pdf
zzz-gimp.desktop

I deleted zzz-gimp.desktop from /usr/share/applications/, then xdg-open
uses zathura.

Thanks, Sven


On Tue, Jun 07 2016 at 02:16:03 PM, Paul Colquhoun wrote:
> On Tue, 7 Jun 2016 13:42:11 sven.garb...@evall.org wrote:
>> Hi,
>> 
>> xdg-open opens a pdf file with Gimp. I have the following configuration:
>> > xdg-mime query filetype tmp/arulesViz.pdf
>> 
>> application/pdf
>
>
> This tells you what the mime type of the file is, not what opens it.
>
> Try running:
>   xdg-mime query default application/pdf
>
> to see what the default application is for that mime type.
>
> Then you can run
>   xdg-mime default insert-your-application-here application/pdf
>
> to change the application that opens that mime type.




Re: [gentoo-user] Safe systemd "reload" command

2016-06-07 Thread Michael Orlitzky
On 06/07/2016 06:17 AM, Tom H wrote:
> 
> I've just looked at your script.
> 
> Do
>   systemctl try-restart spamassassin
> and
>   systemctl try-restart amavisd
> need "2>/dev/null" if you're booted with sysvinit+openrc but have
> systemd installed like the rc-service invocations in the opposite
> case? or do they fail silently?
> 

Beats me, I don't have any way to test it. I am planning to do another
revision bump at some point with ExecReload for spamd, so if anyone
tells me that I need 2>/dev/null on those lines, I'll fix it.




Re: [gentoo-user] xdg-open opens pdf with gimp

2016-06-07 Thread Paul Colquhoun
On Tue, 7 Jun 2016 13:42:11 sven.garb...@evall.org wrote:
> Hi,
> 
> xdg-open opens a pdf file with Gimp. I have the following configuration:
> > xdg-mime query filetype tmp/arulesViz.pdf
> 
> application/pdf


This tells you what the mime type of the file is, not what opens it.

Try running:
  xdg-mime query default application/pdf

to see what the default application is for that mime type.

Then you can run
  xdg-mime default insert-your-application-here application/pdf

to change the application that opens that mime type.


-- 
Reverend Paul Colquhoun, ULC. http://andor.dropbear.id.au/
  Asking for technical help in newsgroups?  Read this first:
 http://catb.org/~esr/faqs/smart-questions.html#intro




[gentoo-user] xdg-open opens pdf with gimp

2016-06-07 Thread sven.garbade
Hi,

xdg-open opens a pdf file with Gimp. I have the following configuration:

> xdg-mime query filetype tmp/arulesViz.pdf 
application/pdf

but, 

> xdg-open tmp/arulesViz.pdf
Opening "tmp/arulesViz.pdf" with GNU Image Manipulation Program  
(application/pdf)

I also tried

> xdg-mime default zathura-pdf-poppler.desktop application/pdf

but xdg-open still chooses gimp.

Any ideas what goes wrong?

Thanks, Sven



Re: [gentoo-user] Safe systemd "reload" command

2016-06-07 Thread Tom H
On Tue, Jun 7, 2016 at 12:59 AM, Michael Orlitzky  wrote:
> On 06/06/2016 06:04 PM, Tom H wrote:


>> 1) I've never used systemd on Gentoo but I assume that you can
>> co-install openrc and systemd. So you'd want to check whether systemd
>> is running:
>>
>> [ -d /run/systemd/system ]
>
> I think the way I did this, it will be a no-op if systemd is not running
> (or if e.g. spamd is not running *under* systemd). I committed the cron
> job yesterday, so I'll hear about it if it doesn't work.

I've just looked at your script.

Do
systemctl try-restart spamassassin
and
systemctl try-restart amavisd
need "2>/dev/null" if you're booted with sysvinit+openrc but have
systemd installed like the rc-service invocations in the opposite
case? or do they fail silently?


>> 2) spamassassin.service is running
>> 3) reload or restart spamassassin.service
>>
>> systemctl try-reload-or-restart spamassassin.service
>> if sa is running, it'll reload it if sa supports a reload, otherwise
>> it'll restart it
>
> Ah, that sounds like an improvement. It looks like amavisd.service
> supports reloading, but spamd.service doesn't. The way we do it in
> spamd.init is to send a HUP signal to the spamd process (determined from
> its PID file). Google tells me that
>
> ExecReload=/bin/kill -HUP $MAINPID
>
> should work...

It's the canonical way.



Re: [gentoo-user] Systemd to manage (DNS) security?

2016-06-07 Thread Tom H
On Mon, Jun 6, 2016 at 8:19 PM, Rich Freeman  wrote:
> On Mon, Jun 6, 2016 at 12:29 PM, James  wrote:
>>
>> https://lists.dns-oarc.net/pipermail/dns-operations/2016-June/014964.html
>
> That's pretty old news. In any case, you certainly don't need to use
> systemd as your DNS resolver if you don't want to.
>
> Systemd also doesn't touch /etc/resolv.conf contrary to what that
> email states. It only touches /run/systemd/resolve/resolv.conf which
> does absolutely nothing on its own unless you choose to symlink
> /etc/resolv.conf to it. The obvious options using systemd and
> resolv.conf are:
>
> 1. Don't use it at all - just put whatever you want in
> /etc/resolv.conf and it works like you'd expect it to.
>
> 2. Have systemd-networkd populate /run/systemd/resolve/resolv.conf
> with whatever DNS servers were discovered using DHCP and then symlink
> that to /etc/resolv.conf so that your system uses it. This is
> basically the behavior you typically expect from the likes of dhcpcd
> and such but instead of tampering with a file in /etc it just messes
> with a transient file in /run.

It's resolved that populates "/run/systemd/resolve/resolv.conf".

In the past, if you used "DNS=..." in a .network unit, networkd would
populate "/etc/resolv.conf".

>From an old man page of systemd.network:

DNS=
   A DNS server address, which must be in the format described in
   inet_pton(3). This option may be specified more than once.

>From a new man page of systemd.network:

DNS=
   A DNS server address, which must be in the format described in
   inet_pton(3). This option may be specified more than once. This
   setting is read by systemd-resolved.service(8).


> 3. Run systemd-resolved as a caching forwarding-only DNS server and
> have that end up in /run/systemd/resolve/resolv.conf.

IIUC, resolved'll be a dns server if you have nss-resolve installed
(which, looking at the systemd ebuild, seems to be included by default
because there isn't a use flag for it and there's no script removing
it) and if you change "hosts: files dns" to "hosts: files resolve" in
"/etc/nsswitch.conf". Otherwise, resolved is basically an openresolv
replacement.



Re: [gentoo-user] Safe systemd "reload" command

2016-06-07 Thread Tom H
On Sun, Jun 5, 2016 at 6:27 PM, J.  wrote:
> El dom, 05-06-2016 a las 12:09 -0400, Michael Orlitzky escribió:
>>
>> Does that happen with rc-service, too? Or only with the init script
>> (which uses openrc-run)? I recently updated the job on the wiki to
>> use rc-service after we've checked that it exists.
>>
>> If it still prints the error, I'll just redirect stderr to /dev/null
>> during the check.
>
> It does, seems rc-service is just a wrapper to run stuff in
> /etc/init.d/

"/sbin/service" in Debian/Fedora/RHEL/Ubuntu/FreeBSD/NetBSD basically
runs "env -i set_some_env_vars /path/to/daemon command" so there's no
reason for OpenRC to do something different.



Re: [gentoo-user] Recommended way to shut down akonadi

2016-06-07 Thread J. Roeleveld
On Monday, June 06, 2016 07:22:09 PM Mick wrote:
> On Monday 06 Jun 2016 03:25:42 J. Roeleveld wrote:
> > On June 6, 2016 12:13:16 AM GMT+02:00, Mick 
>
> wrote:
> > >I run enlightenment DE with a few KDE apps, including KDEPIM and with
> > >the
> > >arrival of Plasma5 I have migrated most of my systems to this set up.
> > >
> > >On my laptop I run a stand-alone postgresql for KDEPIM's akonadi,
> > >instead of
> > >mysql.  Everything was working fine, until a week ago.  Shutdown now
> > >takes a
> > >while with akonadi apparently trying to restart, before it eventually
> > >gives
> > >up.  This can take up to 90 seconds.  The delay goes away if I close
> > >Kmail and
> > >run 'akonadictl stop' in a terminal, before I shutdown from the GUI,
> > >but not
> > >if I just add it in my .xsession.  Perhaps my syntax is wrong, or there
> > >may be
> > >a better way to achieve the same.  The contents of my .xsession are:
> > >
> > >==> > >#!/bin/sh
> > >if [ -x /usr/bin/gpg-agent ]; then
> > >
> > > kill $(ps ux | awk '/gpg-agent/ && !/awk/ {print $2}') >/dev/null 2>&1
> > >
> > >fi
> > >
> > >if [ -x /usr/bin/gpg-agent ]; then
> > >
> > >  eval "$(/usr/bin/gpg-agent --daemon)"
> > >
> > >fi
> > >
> > ># Uncomment the following lines to start rxvt-unicode which has the
> > >ability to
> > ># run multiple terminals in one single process, thus starting up faster
> > >and
> > ># saving resources.
> > ># The --opendisplay ensures that the daemon quits when the X server
> > >terminates,
> > ># therefore we don't need matching lines in agent-shutdown.sh.
> > >
> > >if [ -x /usr/bin/urxvtd ]; then
> > >
> > >/usr/bin/urxvtd --opendisplay --fork --quiet
> > >
> > >fi
> > >
> > >#exec ck-launch-session /usr/bin/enlightenment_start
> > >exec /usr/bin/enlightenment_start
> > >/usr/bin/akonadictl stop
> > >wait 4
> > >===>
> [snip ...]
>
> > >Is there something I need to correct in my .xsession syntax?
> >
> > Running KDE, I don't see this behaviour.
>
> Well I didn't see this behaviour on this box with the above .xsession file
> up until a week ago.  I expect that when KDE shuts down it takes care of
> all its 'children' and none are left behind running amok.  ;-)
>
> > I think you want to kill the 'kde session' that is started by the kde
> > application(s) during the shutdown process. I'm not certain which process
> > to look for, I'll have a look later when I'm with my desktop.
> >
> > Alternatively, kill all programs actually using akonadi. Like kmail and
> > all
> > the systray apps from the kdepim set.
>
> I do not have KDEPIM systray enabled and I shutdown Kmail before I shutdown
> the PC.
>
> These are the relevant processes I see:
>
> 29961 ?SNl0:09 kmail -caption KMail
> 29968 ?SNl0:00 /usr/bin/akonadi_control
> 29970 ?SNl0:08  \_ akonadiserver
> 29998 ?SNl0:00  \_ /usr/bin/akonadi_agent_launcher
> akonadi_akonotes_resource akonadi_akonotes_resource_0
> 2 ?SN 0:00  \_ /usr/bin/akonadi_archivemail_agent
> --identifier akonadi_archivemail_agent
> 3 ?SN 0:02  \_ /usr/bin/akonadi_baloo_indexer --identifier
> akonadi_baloo_indexer
> 30001 ?SNl0:00  \_ /usr/bin/akonadi_agent_launcher
> akonadi_contacts_resource akonadi_contacts_resource_1
> 30002 ?SN 0:00  \_ /usr/bin/akonadi_followupreminder_agent --
> identifier akonadi_followupreminder_agent
> 30007 ?SNl0:00  \_ /usr/bin/akonadi_imap_resource --identifier
> akonadi_imap_resource_0
> 30008 ?SNl0:02  \_ /usr/bin/akonadi_imap_resource --identifier
> akonadi_imap_resource_1
> 30009 ?SNl0:00  \_ /usr/bin/akonadi_agent_launcher
> akonadi_maildir_resource akonadi_maildir_resource_0
> 30010 ?SN 0:00  \_ /usr/bin/akonadi_maildispatcher_agent --
> identifier akonadi_maildispatcher_agent
> 30013 ?SN 0:00  \_ /usr/bin/akonadi_mailfilter_agent
> --identifier akonadi_mailfilter_agent
> 30014 ?SN 0:00  \_ /usr/bin/akonadi_migration_agent --identifier
> akonadi_migration_agent
> 30015 ?SN 0:00  \_ /usr/bin/akonadi_newmailnotifier_agent --
> identifier akonadi_newmailnotifier_agent
> 30016 ?SN 0:00  \_ /usr/bin/akonadi_sendlater_agent --identifier
> akonadi_sendlater_agent
> 30023 ?SNl0:00  \_ /usr/bin/akonadi_agent_launcher
> akonadi_vcard_resource akonadi_vcard_resource_1

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] how to use two graphics cards with one display

2016-06-07 Thread R0b0t1
Use Bumblebee. It is the FOSS version of Optimus.