Re: [gentoo-user] Permissions error on starting X.

2018-11-05 Thread Neil Bothwick
On Mon, 5 Nov 2018 05:06:13 +0100, tu...@posteo.de wrote:

> > > Is it safe to run X.org suid set?  
> > 
> > Why take a chance when it is unnecessary?

> ...not answering my question, sorry.

It's not, it's saying that if you are concerned about using suid (and you
should always think about that) you may prefer to know that there is no
need to do it in this case, as I posted earlier.


-- 
Neil Bothwick

You are about to give someone a piece of your mind,
something you can ill afford...


pgpOXl5qorx24.pgp
Description: OpenPGP digital signature


[gentoo-user] Re: What's with KDE?

2018-11-05 Thread Grant Edwards
On 2018-11-03, wabe  wrote:

> After KDE3 wasn't supported any longer and KDE4 was unusable in my 
> opinion, I tested IceWM, Windowmaker and Sawfish/Sawmill. Finally I 
> switched to XFCE which I still use.

I used XFCE for many, many years.  But, I was forced to give up on it
a few years ago when it stopped supporting multiple screens.  I've
been using openbox since then.

-- 
Grant Edwards   grant.b.edwardsYow! Don't hit me!!  I'm in
  at   the Twilight Zone!!!
  gmail.com




[gentoo-user] Re: Permissions error on starting X.

2018-11-05 Thread Grant Edwards
On 2018-11-03, Alan Mackenzie  wrote:
> Hello, Gentoo.
>
> HEADS UP!!!
>
> If you start your X server from the command line with, e.g. startx, you
> now need to set the new(?) suid USE flag for the xorg-server package.

Yep, I tripped over this yesterday, when all of a sudden I couldn't
start X anymore.  Thanks for the advanced notice on that one!

> The developers, in this instance, failed to raise the ebuild's version
> number from 1.20.3 when making this change, and also didn't notify users
> by a NEWS item, that I can see.

Yea, that seems like a major foul-up to me.  I had to log in as root
so that I could start X, so that I could use google to try to figure
out what went wrong.

-- 
Grant Edwards   grant.b.edwardsYow! My LESLIE GORE record
  at   is BROKEN ...
  gmail.com




[gentoo-user] Re: Permissions error on starting X.

2018-11-05 Thread Grant Edwards
On 2018-11-04, Nikos Chantziaras  wrote:
> On 03/11/2018 16:01, Alan Mackenzie wrote:
>> The developers, in this instance, failed to raise the ebuild's version
>> number from 1.20.3 when making this change, and also didn't notify users
>> by a NEWS item, that I can see.
>
> Emerge will catch this, no need for revbump. Unless you're not using -D 
> (--deep) when updating world. Which you should.

What do you mean "catch this"?

I always use -D, and the change broke my system.

-- 
Grant Edwards   grant.b.edwardsYow! Why is everything made
  at   of Lycra Spandex?
  gmail.com




[gentoo-user] Re: Permissions error on starting X.

2018-11-05 Thread Nikos Chantziaras

On 05/11/2018 17:30, Grant Edwards wrote:

On 2018-11-04, Nikos Chantziaras  wrote:

On 03/11/2018 16:01, Alan Mackenzie wrote:

The developers, in this instance, failed to raise the ebuild's version
number from 1.20.3 when making this change, and also didn't notify users
by a NEWS item, that I can see.


Emerge will catch this, no need for revbump. Unless you're not using -D
(--deep) when updating world. Which you should.


What do you mean "catch this"?

I always use -D, and the change broke my system.


I mean that a USE flag change will trigger a rebuild of the package, and 
the USE flag in question is shown by portage. So you'll know something 
has changed. If you went ahead and allowed it to rebuild, it would of 
course break xorg, but you'd know why since you've seen the USE flag 
change and know that the breakage most probably had something to do with 
that USE flag.





Re: [gentoo-user] Re: Permissions error on starting X.

2018-11-05 Thread Rich Freeman
On Mon, Nov 5, 2018 at 11:27 AM Nikos Chantziaras  wrote:
>
> On 05/11/2018 17:30, Grant Edwards wrote:
> > On 2018-11-04, Nikos Chantziaras  wrote:
> >> On 03/11/2018 16:01, Alan Mackenzie wrote:
> >>> The developers, in this instance, failed to raise the ebuild's version
> >>> number from 1.20.3 when making this change, and also didn't notify users
> >>> by a NEWS item, that I can see.
> >>
> >> Emerge will catch this, no need for revbump. Unless you're not using -D
> >> (--deep) when updating world. Which you should.
> >
> > What do you mean "catch this"?
> >
> > I always use -D, and the change broke my system.
>
> I mean that a USE flag change will trigger a rebuild of the package

-D will not cause USE flag changes to trigger a rebuild of a package.

You're thinking of --newuse in this particular case.  I'm not sure if
--changed-use would cause a rebuild if the previous flag was defaulted
to enabled and not explicitly enabled (of course, if it were
explicitly enabled you wouldn't have run into this issue).

-- 
Rich



[gentoo-user] Re: What's with KDE?

2018-11-05 Thread Nikos Chantziaras

On 03/11/2018 06:43, Alan Grimes wrote:

How did they make it so that 40% of ordinary zip files I try to open
with konqueror fail CRC (but work perfectly from the command line)

It used to have nice large icon mode with previews, and nice small-icons
in normal mode... Broken too for many months now. =\

Akregator crashes all the time if I simply try to close a tab... It went
about three years without saving anything to disk when it's supposed to
buffer my RSS feeds. Now it's just crashtastic in the extreme...


Plasma in itself is not too bad. I use Plasma, but not Konqueror or 
Akregator. Find the applications that work best for you. Just because 
you use Plasma doesn't mean you need to use the rest of KDE's 
applications ;-)


My browser is Firefox, my email client is Thunderbird, my image viewer 
is eog (Eye of GNOME), etc, etc.


I think my only KDE application is my file manager, which is Dolphin.




[gentoo-user] Re: Permissions error on starting X.

2018-11-05 Thread Nikos Chantziaras

On 05/11/2018 18:35, Rich Freeman wrote:

On Mon, Nov 5, 2018 at 11:27 AM Nikos Chantziaras  wrote:


On 05/11/2018 17:30, Grant Edwards wrote:

On 2018-11-04, Nikos Chantziaras  wrote:

On 03/11/2018 16:01, Alan Mackenzie wrote:

The developers, in this instance, failed to raise the ebuild's version
number from 1.20.3 when making this change, and also didn't notify users
by a NEWS item, that I can see.


Emerge will catch this, no need for revbump. Unless you're not using -D
(--deep) when updating world. Which you should.


What do you mean "catch this"?

I always use -D, and the change broke my system.


I mean that a USE flag change will trigger a rebuild of the package


-D will not cause USE flag changes to trigger a rebuild of a package.

You're thinking of --newuse in this particular case. 


Oops, yes. I meant -N (--newuse). Not -D. Got confused. I always upgrade 
using:


emerge -auDN --changed-deps @world

The "N" was the important flag here, not the "D".




Re: [gentoo-user] Re: What's with KDE?

2018-11-05 Thread Peter Humphrey
On Monday, 5 November 2018 16:35:09 GMT Nikos Chantziaras wrote:

> I think my only KDE application is my file manager, which is Dolphin.

Wot, not even kmail?   ;)

-- 
Regards,
Peter.






Re: [gentoo-user] Android studio emulator without PulseAudio

2018-11-05 Thread Pouru Lasse
Andrew Savchenko  writes:

> On Tue, 30 Oct 2018 11:53:33 + Pouru Lasse wrote:
>> "Davyd McColl"  writes:
>> 
>> > Would apulse not do the trick?
>> >
>> > -d
>> > On 2018-10-30 11:15:14, Pouru Lasse  wrote:
>> >
>> > Is it possible to run the emulator included with Android Studio without
>> > having PulseAudio installed? When I try to launch the emulator, it
>> > instantly crashes because it can't find libpulse.so.0. My QEMU package
>> > is compiled without PulseAudio, but Android SDK comes with its own
>> > version of QEMU.
>> >
>> > Setting QEMU_AUDIO_DRV=none, as instructed in Android Studio manual,
>> > seems to have no effect, and the Gentoo wiki page on Android Studio just
>> > tells you to install PulseAudio.
>> >
>> > I don't mind having no audio at all, I just don't want to install
>> > PulseAudio. Any options?
>> >
>> > - Lasse
>> 
>> I already had apulse installed, but apparently the emulator doesn't look
>> for the library in the right directory. I copied all the libpulse.*
>> files under ~/Android/Sdk/emulator/lib/ and
>> ~/Android/Sdk/emulator/lib64/ and now it seems to work.
>
> You should run emulator as:
> $ apulse command_to_run_emulator
>
> Or install the latest apulse with USE=sdk.
>
> Best regards,
> Andrew Savchenko

What exactly is the purpose of the sdk USE flag? To provide the files
required for development with PulseAudio? Compiling apulse with the sdk
flag had no noticeable effect on Android Studio, but it did cause Unity
(the game engine) to crash at startup. I'm not sure if this is a problem
with Unity (happened with all versions I tested) or the apulse package.

- Lasse



[gentoo-user] Re: What's with KDE?

2018-11-05 Thread Nikos Chantziaras

On 05/11/2018 19:07, Peter Humphrey wrote:

On Monday, 5 November 2018 16:35:09 GMT Nikos Chantziaras wrote:


I think my only KDE application is my file manager, which is Dolphin.


Wot, not even kmail?   ;)


Nope. When I try to emerge kmail, I get this:

https://pastebin.com/raw/H2QG6vzg

And I run away screaming like a little child that's just been told Santa 
Claus died violently in a horrible car crash...





Re: [gentoo-user] Re: What's with KDE?

2018-11-05 Thread R0b0t1
On Mon, Nov 5, 2018 at 5:36 PM Nikos Chantziaras  wrote:
>
> On 03/11/2018 06:43, Alan Grimes wrote:
> > How did they make it so that 40% of ordinary zip files I try to open
> > with konqueror fail CRC (but work perfectly from the command line)
> >
> > It used to have nice large icon mode with previews, and nice small-icons
> > in normal mode... Broken too for many months now. =\
> >
> > Akregator crashes all the time if I simply try to close a tab... It went
> > about three years without saving anything to disk when it's supposed to
> > buffer my RSS feeds. Now it's just crashtastic in the extreme...
>
> Plasma in itself is not too bad. I use Plasma, but not Konqueror or
> Akregator. Find the applications that work best for you. Just because
> you use Plasma doesn't mean you need to use the rest of KDE's
> applications ;-)
>
> My browser is Firefox, my email client is Thunderbird, my image viewer
> is eog (Eye of GNOME), etc, etc.
>
> I think my only KDE application is my file manager, which is Dolphin.
>

Plasma has some rough patches but the code quality is a lot better
than previous KDE frameworks. It improves regularly, so please keep
complaints current.

I do understand though - it has gotten a bit less stable since I last
tried it, but I think it is time to try it again. For my daily driver
I tend to use i3 though.

Cheers,
R0b0t1



Re: [gentoo-user] What's with KDE?

2018-11-05 Thread Dale
Mick wrote:
> On Saturday, 3 November 2018 22:44:32 GMT Dale wrote:
>> Peter Humphrey wrote:
>>> On Saturday, 3 November 2018 16:28:58 GMT wabe wrote:
 I would like to try Trinity Desktop (based on KDE3) but unfortunately
 there is no Gentoo package. I don't know if there is an Gentoo overlay
 containing Trinity, but I never used overlays and don't have time to
 fiddle around anyway.
>>> In that case, from what I've seen I'd say you shouldn't even wonder about
>>> trinity. You'd have to go back a long way with all manner of programs, and
>>> even then perhaps not get everything you want.
>>>
>>> /2p
>> I installed KDE3 for a friend with a very low powered computer several
>> years ago.  At the time, it was in the sunset overlay.  Even then it was
>> a headache and took some effort to install.  Some newer programs outside
>> of KDE wanted newer versions of libs and KDE3 wanted older ones.  I had
>> to install older versions of several programs just to make KDE3 happy. 
>> Given the changes that have been made over the years since, I doubt it
>> is doable.  I seem to recall that KDE3 wasn't well maintained back then
>> and figure it may even be worse now if it is maintained at all with
>> regards to Gentoo. 
>>
>> If had to do a install today for a low powered system, I'd find
>> something besides KDE3 even tho I still miss some things about it too. 
>> There's plenty of more maintained desktops out there to look at. 
>>
>> Dale
>>
>> :-)  :-) 
> I also liked KDE-3 more than anything which succeeded it from the KDE stable 
> and have mourned its passing.  I also particularly liked Konqueror's 
> integration with file management.  The current Konqueror maintainer is trying 
> single-handedly to keep it running as a simple browser and does not have the 
> (human) resources to recreate the FM functionality of KDE 3 on it.  He has 
> asked for devs to join him, but had no takers.
>
> I've tried Trinity in the past, but at the time it was nowhere near developed 
> enough to use on a daily basis.
>


Dolphin stopped allowing root access a while back.  When that happened,
I starting looking for another file manager that isn't constantly making
changes that don't work for me.  Currently I'm using Krusader.  It works
as root so I can edit files in /etc, /root and such.  While I get that
in most distros that setting may be good, it isn't for Gentoo where we
have to edit files as root.  I also have a couple others installed as a
backup to Krusader. 

One thing that concerns me about Konqueror and KDE3, security issues. 
Unless there is enough people involved to fix security issues, they
shouldn't be used at least for anything network/internet related
depending on the situation of course.  One should always consider
security fixes. 

I suspect there isn't enough people wanting Trinity on Gentoo is the
reason it isn't available.  That said, if it was and was well
maintained, I'd certainly give it a look.  Sadly tho, I think
Trinity/KDE3 was be dying at some point. 

Dale

:-)  :-)



[gentoo-user] Problem executing pgAdmin4

2018-11-05 Thread Petric Frank
Hello,

pgadmin3 is masked now. So i installed pgadmin4 (current stable verion 3.0). 
Installed w/o problems.

But when executing it (in a terminal window) i get a dialog box saying
  An error occurred initialising the application server:
  An error occurred initialising the application server:
  %1

and the terminal window is filled pagewise with
--- cut ---
Python path:  "/usr/lib64/python3.6/site-packages" 
Python Home:  ""
Webapp path:  "/usr/share/pgadmin4/web/pgAdmin4.py"
"Failed to launch the application server, server thread exiting.
\u➑\u\u\u榠\u1C93翱\u먀ᰆ翱
\u\u\u\u\u\u\u\u\u\u000F\u\u\u$
\u09FF-&Ͽ\u\u0005\u0A0E+(\u07FE\u\u"\u,攍兇须꾭懰䀌翱\u\uEAB0ᜊ翱
\u㙔\uE4C8帚꿧\u\u\u\u\u\u\u\u盚饇䥟璊Ꙑ䀌翱
\u\uA8C8ᜉ翱\u鯩슄鼗䷷\u0E70䀋翱\u偈䀌翱\u✠徰⼬蘉좸⠪翱\uꃘᜋ翱\uⷬ행膀ꈋꈨ䀌翱
\u垀ᜋ翱\u沦⻋䎛緒짐⠪翱\u嚠ᜋ翱\u段ꉀꒅ텣遰⠤翱\u撈ᜋ翱\u⻲幕炈멕胰䀌翱\u攐ᜋ翱
\u\uE6A3ᓐ溪껊쫨⠪翱\u斘ᜋ翱\u\uF42F끒䙭㔋昰䀌翱\u映ᜋ翱\u盰\uE66A⍷캪限ᮑ翱\u
좸ᜊ翱\u뱾ס⏤鱑룰⠁翱\u춸ᜊ翱\uꢦ蔞蠹꾞㨈䀐翱\u츈ᜊ翱\u\uF20E㥑䶫텓움⡌翱\u饠\u1CBB
...
--- cut ---

Selecting "Ok " in the dialog box i get an other tabbed dialog box asking for 
a browser command (currently empty) and Python paths (preset values seem ok).

Entering "/usr/bin/firefox %URL%" as browser command does not change anything.

Any hints ?

Info:
  Kernel 4.14.65 (Gentoo)
  KDE Plasma (kde-plasma/plasma-meta-5.13.5)
  Memory 16 G
  Apache installed but not running
  Browsers konqueror and firefox available
  pgadmin3 still installed
  Python 2.7, 3.6 and 3.5 installed (= "eselect python list" output)

regards
  Petric


Re: [gentoo-user] What's with KDE?

2018-11-05 Thread Philip Webb
181105 Dale wrote:
> Currently I'm using Krusader.  It works as root,
> so I can edit files in /etc, /root and such.

I can recommend Krusader to any KDE user.
I do most file management from CLI, but sometimes need heavy lifting.
If anyone tries it, they should look into its many features :
there's a PDF help doc available.

-- 
,,
SUPPORT ___//___,   Philip Webb
ELECTRIC   /] [] [] [] [] []|   Cities Centre, University of Toronto
TRANSIT`-O--O---'   purslowatchassdotutorontodotca




Re: [gentoo-user] What's with KDE?

2018-11-05 Thread Dale
Philip Webb wrote:
> 181105 Dale wrote:
>> Currently I'm using Krusader.  It works as root,
>> so I can edit files in /etc, /root and such.
> I can recommend Krusader to any KDE user.
> I do most file management from CLI, but sometimes need heavy lifting.
> If anyone tries it, they should look into its many features :
> there's a PDF help doc available.
>


That's my thinking as well.  It is different from Konqueror but it does
the job pretty well and seems to be pretty light and fast.  The biggest
thing, it allows running as root. 

I've been really busy recently.  My Mom was in the hospital for several
weeks, that's a long time here.  After that, she was in a nursing home
trying to get her strength back and had a few set backs while there. 
She comes home tomorrow and is in better shape than she was over a year
ago.  Maybe even a couple years ago.  That has kept me busy and pretty
much wore out at times.  I have health issues of my own.  So, I haven't
been able to really dig deep into Krusader as yet.  Basically, I got it
to where I can edit files in /etc and /root and pretty much left it as
is.  The one thing I'd like to change, being able to click/double click
on a file and it open.  That's how Dolphin and the old Konqueror was set
up.  As it is, you have to hit F4 to edit which opens Kwrite/Kate
depending on settings for text files.  I also wish it wouldn't separate
the file name and the extension.  I prefer them to be together.  Heck, I
might use Krusader as a regular user if I could get that last one
configured right.  ;-) 

I really do need to research that more.  Do you have a link to that
pdf?  I'm on version 2.7.1. but any recent version would be nice. 

Thanks.

Dale

:-)  :-)



Re: [gentoo-user] Re: What's with KDE?

2018-11-05 Thread Neil Bothwick
On Mon, 05 Nov 2018 17:07:55 +, Peter Humphrey wrote:

> > I think my only KDE application is my file manager, which is
> > Dolphin.  
> 
> Wot, not even kmail?   ;)

Especially not KMail! Most of the KDE-related problems posted to this
list involve KMail.


-- 
Neil Bothwick

deja noo - reminds you of the last time you visited Scotland


pgpzDexSq28je.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] What's with KDE?

2018-11-05 Thread dsonck

On 2018-11-05 21:40, Dale wrote:

Philip Webb wrote:

181105 Dale wrote:

Currently I'm using Krusader.  It works as root,
so I can edit files in /etc, /root and such.

I can recommend Krusader to any KDE user.
I do most file management from CLI, but sometimes need heavy lifting.
If anyone tries it, they should look into its many features :
there's a PDF help doc available.




That's my thinking as well.  It is different from Konqueror but it does
the job pretty well and seems to be pretty light and fast.  The biggest
thing, it allows running as root. 

I've been really busy recently.  My Mom was in the hospital for several
weeks, that's a long time here.  After that, she was in a nursing home
trying to get her strength back and had a few set backs while there. 
She comes home tomorrow and is in better shape than she was over a year
ago.  Maybe even a couple years ago.  That has kept me busy and pretty
much wore out at times.  I have health issues of my own.  So, I haven't
been able to really dig deep into Krusader as yet.  Basically, I got it
to where I can edit files in /etc and /root and pretty much left it as
is.  The one thing I'd like to change, being able to click/double click
on a file and it open.  That's how Dolphin and the old Konqueror was 
set

up.  As it is, you have to hit F4 to edit which opens Kwrite/Kate
depending on settings for text files.  I also wish it wouldn't separate
the file name and the extension.  I prefer them to be together.  Heck, 
I

might use Krusader as a regular user if I could get that last one
configured right.  ;-) 

I really do need to research that more.  Do you have a link to that
pdf?  I'm on version 2.7.1. but any recent version would be nice. 

Thanks.

Dale

:-)  :-)


I've been reading through this discussion and seen several references to 
"run as root". As I've been guilty of doing that myself for a while (and 
not realizing it was actually actively prevented since some time), I 
decided to look into the reasoning why it's not possible anymore.


Apparently, it wasn't taken lightheartedly. The reasoning behind it was 
that the terminal (which also has root now) can be activated and used by 
injecting keystrokes (through XTest). Whether that's a concern of the 
end user is up for them to decide (if you don't allow any external party 
to access your system by not allowing ssh etc. you'd basically be 
perfectly safe), but it's an interesting backdoor. However, KDE also 
planned to bring in a more fine-grained approach by allowing KIO to use 
PolicyKit to allow editing of restricted files. This would mean that 
Dolphin, KWrite and Kate all get their "root" back, but in the form of a 
"you require elevated rights to do this, please specify your password" 
which can be protected better.


Then again, this raises the issue of whether PolicyKit is such a great 
feature. I've been having problems with that myself as it can and will 
be DoS'd when it gets too many requests (had a rogue libvirt client 
which did several requests all of which needed to go through PolicyKit 
to verify access). While the failure mode is safe, it will block any 
attempt at authorizing, it's a big nuisance because other things may 
depend on it.


Lastly, Qt also advises against being used under root due to the sheer 
scope of the project which would mean that even krusader might not be 
totally safe.


I wanted to share this for those that read this discussion to reiterate 
the implications allowing root, and allowing it in these GUI 
applications. Of course, if it works for you and you don't see any risk, 
by any means go for it. But also keep in mind that there are apparently 
fair reasons behind this change. That said, I also started to look into 
krusader and I might use it more.


Greetings,

Daniel Sonck



Re: [gentoo-user] Problem executing pgAdmin4

2018-11-05 Thread Jack

On 2018.11.05 14:21, Petric Frank wrote:

Hello,

pgadmin3 is masked now. So i installed pgadmin4 (current stable  
verion 3.0).

Installed w/o problems.

But when executing it (in a terminal window) i get a dialog box saying
  An error occurred initialising the application server:
  An error occurred initialising the application server:
  %1

and the terminal window is filled pagewise with
--- cut ---
Python path:  "/usr/lib64/python3.6/site-packages"
Python Home:  ""
Webapp path:  "/usr/share/pgadmin4/web/pgAdmin4.py"
"Failed to launch the application server, server thread exiting.
\u➑\u\u\u榠\u1C93翱\u먀ᰆ翱
\u\u\u\u\u\u\u\u\u\u000F\u\u\u$
\u09FF-&Ͽ\u\u0005\u0A0E+(\u07FE\u\u"\u,攍兇须꾭懰䀌翱\u\uEAB0ᜊ翱
\u㙔\uE4C8帚꿧\u\u\u\u\u\u\u\u盚饇䥟璊Ꙑ䀌翱
\u\uA8C8ᜉ翱\u鯩슄鼗䷷\u0E70䀋翱\u偈䀌翱\u✠徰⼬蘉좸⠪翱\uꃘᜋ翱\uⷬ행膀ꈋꈨ䀌翱
\u垀ᜋ翱\u沦⻋䎛緒짐⠪翱\u嚠ᜋ翱\u段ꉀꒅ텣遰⠤翱\u撈ᜋ翱\u⻲幕炈멕胰䀌翱\u攐ᜋ翱
\u\uE6A3ᓐ溪껊쫨⠪翱\u斘ᜋ翱\u\uF42F끒䙭㔋昰䀌翱\u映ᜋ翱\u盰\uE66A⍷캪限ᮑ翱\u
좸ᜊ翱\u뱾ס⏤鱑룰⠁翱\u춸ᜊ翱\uꢦ蔞蠹꾞㨈䀐翱\u츈ᜊ翱\u\uF20E㥑䶫텓움⡌翱\u饠\u1CBB
...
--- cut ---

Selecting "Ok " in the dialog box i get an other tabbed dialog box  
asking for
a browser command (currently empty) and Python paths (preset values  
seem ok).


Entering "/usr/bin/firefox %URL%" as browser command does not change  
anything.


Any hints ?

Info:
  Kernel 4.14.65 (Gentoo)
  KDE Plasma (kde-plasma/plasma-meta-5.13.5)
  Memory 16 G
  Apache installed but not running
  Browsers konqueror and firefox available
  pgadmin3 still installed
  Python 2.7, 3.6 and 3.5 installed (= "eselect python list" output)

regards
  Petric


Interesting.  I only get
-
Python path:  "/usr/lib64/python3.6/site-packages"
Python Home:  ""
Webapp path:  "/usr/share/pgadmin4/web/pgAdmin4.py"

And then a popup that says  "The application server could not be  
contacted."


This is with eselect postgresql set to either 9.6 or 10.  Also - all  
above running as myself, although I get the same results with root or  
postgres.  It looks like although I have 10 installed, I never  
initialized it, although 9.6 should work OK.


I'm now emerging the test version of pgAdmin4 to see if it makes any  
difference.


Jack


Re: [gentoo-user] What's with KDE?

2018-11-05 Thread Dale
dsonck wrote:
> On 2018-11-05 21:40, Dale wrote:
>> Philip Webb wrote:
>>> 181105 Dale wrote:
 Currently I'm using Krusader.  It works as root,
 so I can edit files in /etc, /root and such.
>>> I can recommend Krusader to any KDE user.
>>> I do most file management from CLI, but sometimes need heavy lifting.
>>> If anyone tries it, they should look into its many features :
>>> there's a PDF help doc available.
>>>
>>
>>
>> That's my thinking as well.  It is different from Konqueror but it does
>> the job pretty well and seems to be pretty light and fast.  The biggest
>> thing, it allows running as root. 
>>
>> I've been really busy recently.  My Mom was in the hospital for several
>> weeks, that's a long time here.  After that, she was in a nursing home
>> trying to get her strength back and had a few set backs while there. 
>> She comes home tomorrow and is in better shape than she was over a year
>> ago.  Maybe even a couple years ago.  That has kept me busy and pretty
>> much wore out at times.  I have health issues of my own.  So, I haven't
>> been able to really dig deep into Krusader as yet.  Basically, I got it
>> to where I can edit files in /etc and /root and pretty much left it as
>> is.  The one thing I'd like to change, being able to click/double click
>> on a file and it open.  That's how Dolphin and the old Konqueror was set
>> up.  As it is, you have to hit F4 to edit which opens Kwrite/Kate
>> depending on settings for text files.  I also wish it wouldn't separate
>> the file name and the extension.  I prefer them to be together.  Heck, I
>> might use Krusader as a regular user if I could get that last one
>> configured right.  ;-) 
>>
>> I really do need to research that more.  Do you have a link to that
>> pdf?  I'm on version 2.7.1. but any recent version would be nice. 
>>
>> Thanks.
>>
>> Dale
>>
>> :-)  :-)
>
> I've been reading through this discussion and seen several references
> to "run as root". As I've been guilty of doing that myself for a while
> (and not realizing it was actually actively prevented since some
> time), I decided to look into the reasoning why it's not possible
> anymore.
>
> Apparently, it wasn't taken lightheartedly. The reasoning behind it
> was that the terminal (which also has root now) can be activated and
> used by injecting keystrokes (through XTest). Whether that's a concern
> of the end user is up for them to decide (if you don't allow any
> external party to access your system by not allowing ssh etc. you'd
> basically be perfectly safe), but it's an interesting backdoor.
> However, KDE also planned to bring in a more fine-grained approach by
> allowing KIO to use PolicyKit to allow editing of restricted files.
> This would mean that Dolphin, KWrite and Kate all get their "root"
> back, but in the form of a "you require elevated rights to do this,
> please specify your password" which can be protected better.
>
> Then again, this raises the issue of whether PolicyKit is such a great
> feature. I've been having problems with that myself as it can and will
> be DoS'd when it gets too many requests (had a rogue libvirt client
> which did several requests all of which needed to go through PolicyKit
> to verify access). While the failure mode is safe, it will block any
> attempt at authorizing, it's a big nuisance because other things may
> depend on it.
>
> Lastly, Qt also advises against being used under root due to the sheer
> scope of the project which would mean that even krusader might not be
> totally safe.
>
> I wanted to share this for those that read this discussion to
> reiterate the implications allowing root, and allowing it in these GUI
> applications. Of course, if it works for you and you don't see any
> risk, by any means go for it. But also keep in mind that there are
> apparently fair reasons behind this change. That said, I also started
> to look into krusader and I might use it more.
>
> Greetings,
>
> Daniel Sonck
>
>


I've read that too plus that some distros just don't need root much if
any.  Thing is, with Gentoo, root is required at times.  Sometimes, it
is the only way to edit certain files.  Since I am almost always in a
GUI, I prefer to use GUI tools, plus it is much easier to copy and paste
as well.  That said, I don't have ssh open here.  I only have one system
anyway so there is nothing to ssh in with.  I also only open Krusader as
root for short periods of time.  Generally, during OS updates which I'm
about two or three weeks late on I think.  While it is safe for me, it
may not be for others.  Either way, sometimes you have to be root while
doing updates.  With Gentoo, it is just that way. 

As you rightly point out tho, in some situations, doing that could open
a door.  If one has those situations, they may want to either wait for a
better solution or access those files some other way, nano on a console
or something.  As with anything, ones has to take into account
security.  Of course, I'm on DSL and behind a ro

Re: [gentoo-user] Android studio emulator without PulseAudio

2018-11-05 Thread Andrew Savchenko
On Mon, 5 Nov 2018 17:21:14 + Pouru Lasse wrote:
> Andrew Savchenko  writes:
[...]
> > You should run emulator as:
> > $ apulse command_to_run_emulator
> >
> > Or install the latest apulse with USE=sdk.
> >
> > Best regards,
> > Andrew Savchenko
> 
> What exactly is the purpose of the sdk USE flag? To provide the files
> required for development with PulseAudio?

To install apulse as a (partial) replacement of PulseAudio: it
installs header files, pkgconfig files and places libraries at
standard system paths, so that apulse wrapper is no longer needed.

However, apulse is not a full PA replacement by design, so this
will work only with limited set of applications.

Best regards,
Andrew Savchenko


pgpvAYzCWB2vv.pgp
Description: PGP signature


Re: [gentoo-user] Problem executing pgAdmin4

2018-11-05 Thread Petric Frank


Am Dienstag, 6. November 2018, 01:00:04 CET schrieb Jack:
> On 2018.11.05 14:21, Petric Frank wrote:
> > Hello,
> > 
> > pgadmin3 is masked now. So i installed pgadmin4 (current stable
> > verion 3.0).
> > Installed w/o problems.
> > 
> > But when executing it (in a terminal window) i get a dialog box saying
> > 
> >   An error occurred initialising the application server:
> >   An error occurred initialising the application server:
> >   %1
> > 
> > and the terminal window is filled pagewise with
> > --- cut ---
> > Python path:  "/usr/lib64/python3.6/site-packages"
> > Python Home:  ""
> > Webapp path:  "/usr/share/pgadmin4/web/pgAdmin4.py"
> > "Failed to launch the application server, server thread exiting.
> > \u➑\u\u\u榠\u1C93翱\u먀ᰆ翱
> > \u\u\u\u\u\u\u\u\u\u000F\u\u\u
> > $
> > \u09FF-&Ͽ\u\u0005\u0A0E+(\u07FE\u\u"\u,攍兇须꾭懰䀌翱\u\uEAB
> > 0ᜊ翱 \u㙔\uE4C8帚꿧\u\u\u\u\u\u\u\u盚饇䥟璊Ꙑ䀌翱
> > \u\uA8C8ᜉ翱\u鯩슄鼗䷷\u0E70䀋翱\u偈䀌翱\u✠徰⼬蘉좸⠪翱\uꃘᜋ翱\uⷬ행膀ꈋ
> > ꈨ䀌翱
> > \u垀ᜋ翱\u沦⻋䎛緒짐⠪翱\u嚠ᜋ翱\u段ꉀꒅ텣遰⠤翱\u撈ᜋ翱\u⻲幕炈멕胰䀌翱\u攐
> > ᜋ翱
> > \u\uE6A3ᓐ溪껊쫨⠪翱\u斘ᜋ翱\u\uF42F끒䙭㔋昰䀌翱\u映ᜋ翱\u盰\uE66A⍷캪限ᮑ翱\
> > u
> > 좸ᜊ翱\u뱾ס⏤鱑룰⠁翱\u춸ᜊ翱\uꢦ蔞蠹꾞㨈䀐翱\u츈ᜊ翱\u\uF20E㥑䶫텓움⡌翱\u饠\
> > u1CBB ...
> > --- cut ---
> > 
> > Selecting "Ok " in the dialog box i get an other tabbed dialog box
> > asking for
> > a browser command (currently empty) and Python paths (preset values
> > seem ok).
> > 
> > Entering "/usr/bin/firefox %URL%" as browser command does not change
> > anything.
> > 
> > Any hints ?
> > 
> > Info:
> >   Kernel 4.14.65 (Gentoo)
> >   KDE Plasma (kde-plasma/plasma-meta-5.13.5)
> >   Memory 16 G
> >   Apache installed but not running
> >   Browsers konqueror and firefox available
> >   pgadmin3 still installed
> >   Python 2.7, 3.6 and 3.5 installed (= "eselect python list" output)
> > 
> > regards
> > 
> >   Petric
> 
> Interesting.  I only get
> -
> Python path:  "/usr/lib64/python3.6/site-packages"
> Python Home:  ""
> Webapp path:  "/usr/share/pgadmin4/web/pgAdmin4.py"
> 
> And then a popup that says  "The application server could not be
> contacted."
> 
> This is with eselect postgresql set to either 9.6 or 10.  Also - all
> above running as myself, although I get the same results with root or
> postgres.  It looks like although I have 10 installed, I never
> initialized it, although 9.6 should work OK.
> 
> I'm now emerging the test version of pgAdmin4 to see if it makes any
> difference.
> 
> Jack

Hello Jack,

if i remove the .pgadmin directory in my home i get - after a long wait a 
dialog box saying 
 The application server could not be contacted.

In the terminal it prints:
-- cut --
Python path:  "/usr/lib64/python3.6/site-packages" 
Python Home:  ""
Webapp path:  "/usr/share/pgadmin4/web/pgAdmin4.py"
NOTE: Configuring authentication for DESKTOP mode.
-- cut --

Starting pgAdmin4 again i get the output and dialogs i wrote initially in this 
thread.

regards
  Petric