Re: [gentoo-user] How to get nginx serving pages?

2016-11-07 Thread Poison BL.
On Mon, Nov 7, 2016 at 11:20 AM, Peter Humphrey  wrote:
> Hello list,
>
> Several years ago I set up an apache2 web server to host a development site,
> and I had quite a struggle to get it all set up. Now I want to do it again,
> but I decided to try nginx instead. I've followed the instructions here:
>
> https://wiki.gentoo.org/wiki/Nginx
>
> ...but I get Connection Refused in www-client/links running on the same
> machine, or in Firefox over the LAN. I can run links as myself or as root,
> with the same result. But:
>
> $ curl http://localhost
> Hello, world!
>
> # netstat -tulpen | grep :80
> tcp  0  0 127.0.0.1:80  0.0.0.0:*  LISTEN  0  60680  19196/nginx: master
>
> # cat /var/log/nginx/error_log
> 2016/11/07 16:06:19 [notice] 19195#0: using the "epoll" event method
> 2016/11/07 16:06:19 [notice] 19195#0: nginx/1.10.1
> 2016/11/07 16:06:19 [notice] 19195#0: OS: Linux 4.4.26-gentoo
> 2016/11/07 16:06:19 [notice] 19195#0: getrlimit(RLIMIT_NOFILE): 1024:4096
> 2016/11/07 16:06:19 [notice] 19196#0: start worker processes
> 2016/11/07 16:06:19 [notice] 19196#0: start worker process 19197
>
> /etc/nginx/nginx.conf is untouched since installation.
>
> Shorewall isn't logging anything.
>
> What have I overlooked?
>
> --
> Regards
> Peter
>
>

>From the configuration in the aforementioned guide:

server {
listen 127.0.0.1;
server_name localhost;

access_log /var/log/nginx/localhost.access_log main;
error_log /var/log/nginx/localhost.error_log info;

root /var/www/localhost/htdocs;
}

This specifically instructs nginx to listen only on 127.0.0.1, so even
connections from the same machine to its hostname or external IP
address will not hit nginx there. You'll need to change the 'listen'
value to determine what connections it should be answering. See the
nginx documetation on that here:

http://nginx.org/en/docs/http/ngx_http_core_module.html#listen

I would suspect for your internal network use-case, you'll want:

listen *:80;

-- 
Poison [BLX]
Joshua M. Murphy



Dale: Re: [gentoo-user] flash plugin in seamonkey, user problem

2016-11-07 Thread David M . Fellows
Forwarded per Dale's request
DaveF
--- Begin Message ---
David M. Fellows wrote:
>> Neil Bothwick wrote:
>>> On Thu, 3 Nov 2016 01:25:14 -0500, Dale wrote:
>>>
 [I--] [??] www-plugins/adobe-flash-11.2.202.635:0
 [IP-] [  ] www-plugins/adobe-flash-23.0.0.205:22
>>>  
 Don't ask me
 how two versions can be installed at the same time tho.  I dunno.  I
 don't think it is supposed to do that for this package tho.
>>> They are in different slots, notice the slot number at the end of the
>>> atom, slot 0 for the older one and slot 22 for the newer one.
>>>
>>> You clearly don't have the older slot in @world or it would have been
>>> updated, the only slot 0 version in the tree is 11.2.202.643 so I would
>>> have expected depclean to remove this if it were no longer needed.
>>>
>>>
>>
>> That explains it.  I didn't even think about the slots.  I wasn't
>> expecting it I guess.  I just wonder how long I been using that old
>> package instead of the new one. 
> To reiterate:
> If you are using firefox and friends and relations, eg. seamonkey,
> then you *need* to explictly emerge adobe-flash:0 so that it gets added
> to your @world set.
>
> If you are using chromium
> then you should explicitly emerge adobe-flash:22
>
> Unless you are on amd_64 architcture and want to dig into installing the
> freshplayerplugin firefox cannot use and will not recognize the flash
> plugin provided by adobe-flash:22.
>
> flash is a soft runtime dependency of firefox. Portage  does not seem to
> track the dependencies.
>
> If you originally installed adobe-flash prior to the recent slotting
> it will be in your world set as just adobe-flash.
> Portage will diligently update this to the latest version as it comes along.
> They will be the slot 22 versions. It does not automatically remove the
> slot:0.
> So firefox will use the aging slot:0 version resulting in the pesky warnings.
> If you do a depclean emerge will remove the slot 0 version as unneeded which
> leaves a firefox user with no flash.
>
> See https://wiki.gentoo.org/wiki/Adobe_Flash
>
> Last, but not least, all of the above statements are likely to become
> false in the forseeable future due to the fact that Adobe has changed its
> mind about how it supports flash on Linux and Gentoo will have to change its
> packaging in some way.
>
>> At least I got rid of that pesky warning on every single video I tried
>> to watch.  That thing is annoying, which I guess is the point.
> Yes, and deservedly so.
>
> DaveF
>> Dale
>>
>> :-)  :-) 
>>


I think you are right.  While youtube and some other video sites worked
fine with the very new version, it appears I have at least one site I
visit that wants the old version.  I use a .gov website for my weather
radar.  Without the slot 0 version, it wouldn't load.  Once installed,
with the newer slot 0 version, it worked fine. 

I think the reason I, and maybe the OP as well, got the error message,
since neither of us had it in the world file, it wasn't getting updated,
even tho one was available.  So, we do need to add it to the world file
IF we use any sites that require the old version instead of the new and
much improved crap that youtube and some other sites uses.  ROFL  I
couldn't pass it up.  Sorry.  That way both slots gets updated and not
just the latest and greatest crap. 

I just realized that this is off list.  You may want to add this to the
thread for the OP.  Plus, it may help someone else reading this as
well.  If you want, just forward this email to the mailing list. 

Dale

:-)  :-) 
--- End Message ---


[gentoo-user] How to get nginx serving pages?

2016-11-07 Thread Peter Humphrey
Hello list,

Several years ago I set up an apache2 web server to host a development site, 
and I had quite a struggle to get it all set up. Now I want to do it again, 
but I decided to try nginx instead. I've followed the instructions here:

https://wiki.gentoo.org/wiki/Nginx

...but I get Connection Refused in www-client/links running on the same 
machine, or in Firefox over the LAN. I can run links as myself or as root, 
with the same result. But:

$ curl http://localhost
Hello, world!

# netstat -tulpen | grep :80
tcp  0  0 127.0.0.1:80  0.0.0.0:*  LISTEN  0  60680  19196/nginx: master 

# cat /var/log/nginx/error_log
2016/11/07 16:06:19 [notice] 19195#0: using the "epoll" event method
2016/11/07 16:06:19 [notice] 19195#0: nginx/1.10.1
2016/11/07 16:06:19 [notice] 19195#0: OS: Linux 4.4.26-gentoo
2016/11/07 16:06:19 [notice] 19195#0: getrlimit(RLIMIT_NOFILE): 1024:4096
2016/11/07 16:06:19 [notice] 19196#0: start worker processes
2016/11/07 16:06:19 [notice] 19196#0: start worker process 19197

/etc/nginx/nginx.conf is untouched since installation.

Shorewall isn't logging anything.

What have I overlooked?

-- 
Regards
Peter




[gentoo-user] s3tc enable for Firefox 49?

2016-11-07 Thread Miroslav Rovis
Hi!

I'm not sure, but I've been struggling with this bug:

media-libs/mesa-13.0.0_rc2: libGL crashes on hardened AMD64
https://bugs.gentoo.org/show_bug.cgi?id=598593

( my duplicate is at:
=www-client/firefox-49.0 segfaults with >=media-libs/mesa-13.0.0_rc1 on
>=4.4.8-hardened-r1
https://bugs.gentoo.org/show_bug.cgi?id=598700
)

and it looks like (I had better show you the standard output when
starting firefox 49.0 on plain 4.8.3 kernel:

ATTENTION: default value of option force_s3tc_enable overridden by
environment.
GLib-GIO-Message: Using the 'memory' GSettings backend.  Your settings
will not be saved or shared with other applications.
1478449652215   addons.productaddonsWARNFailed downloading XML,
status: 0, reason: error

(firefox:5208): GLib-GIO-CRITICAL **: g_loadable_icon_load: assertion
'G_IS_LOADABLE_ICON (icon)' failed

and a few more lines to that effect.

After some ducking for info I see that:
https://en.wikipedia.org/wiki/S3_Texture_Compression
is mostly used for games (and I'm not a gamer.)

But it looks like, apart from mesa alleged fix (see in the bug report)
not having propagated to us, [it looks like] that s3tc functionality is
missing for my Firefox to behave...

There have been various tips in the various distro flavors about
enabling s3tc, but I couldn't get it to work in Gentoo.
Such as after emerging:

# emerge media-libs/libtxc_dxtn

and issuing:

$ force_s3tc_enable=true firefox

That still got me the line:

ATTENTION: default value of option force_s3tc_enable overridden by
environment.

Also, the useflag:

https://packages.gentoo.org/useflags/s3tc

only has:

app-emulation/wine

as sole customer at this time...

I wasn't sure this was a post for the bug report that I linked to above, so I'm 
asking here on the users list.

Anyone has any more clue about this issue?

Regards!

-- 
Miroslav Rovis
Zagreb, Croatia
http://www.CroatiaFidelis.hr


signature.asc
Description: Digital signature


Re: [gentoo-user] Re: flash plugin in seamonkey, user problem - SOLVED

2016-11-07 Thread Dale
Raffaele BELARDI wrote:
> Raffaele Belardi wrote:
>> I have three users on my ~amd64 gentoo including myself. The two other
>> users have identical and very limited rights. For me and one user flash
>> in seamonkey works fine, for the other user it is blocked by seamonkey
>> being 'insecure', although the seamonkey binary and the flash plugin
>> (www-plugins/adobe-flash-11.2.202.637) are installed system-wide.
>>
>> I don't understand why the different behaviour, any suggestions?
>>
> Solved by removing the user's .mozilla directory.
>
> raffaele

There is a site that lists what files you can remove and not lose all
data.  If you google for it, it's something like mozzilazine or
something.  I use Seamonkey for my email so I'm always careful with
deleting that directory since I'd lose all my emails.  Of course, if you
don't use the email part, it won't matter.  Just may want to save those
bookmarks first. 

Dale

:-)  :-)