Re: [gentoo-user] Adobe Flash replacement ?

2015-10-22 Thread Marc Joliet
On Thursday 22 October 2015 18:01:10 James wrote:
>Hello,
>
>I was just reading about "lighspark" [1] and at first glance, it seems
>to be a replacement for adobe flash with support for the latest
>features. Lightspark can be found with::
>'eix -R lightspark'
>
>
>You may also need to run 'eix-remote update' if you have not updated
>that database of extended-availability packages..
>So anyone tried lightspark with mozilla browers (seamonkey, ff, etc)?
>
>
>
>Granted we all just wish flash would go away and be replaced by something
>else that is open source. But, I need to view some flash deliverables
>on a routine basis:: so this post is about better support for flash
>in browsers. I am really tired of adobe-flash.
>
>
>[1] http://lightspark.github.io/

I tried that a good while ago, but at the time I had no luck.  However, that 
was a few years ago.

Personally, I actually uninstalled adobe-flash almost exactly two weeks and 2 
hours ago :-) .  I haven't really missed it, and youtube-dl (well, mpv's 
built-in youtube-dl support) helps with the few sites that still don't support 
HTML5 video.  I practically never encounter any other type of flash content. 
(I consciously decided that I don't care about flash games, so they don't 
count.)

One other interesting project in the direction of replacing adobe-flash is 
Mozilla's Shumway, which is, AIUI, basically a Flash interpreter written in 
JavaScript.  With it, you wouldn't even need a browser plug-in.  It is 
considered an experiment, though.  See the following links:

https://blog.mozilla.org/research/2012/11/12/introducing-the-shumway-open-swf-runtime-project/
http://benjamin.smedbergs.us/blog/2012-11-12/shumway-a-swf-interpreter-entirely-in-javascript/
http://www.areweflashyet.com/shumway/
https://github.com/mozilla/shumway/wiki

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup


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


Re: [gentoo-user] Re: glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Dale

James wrote:

Dale  gmail.com> writes:



I recently did a upgrade which included glibc.  Now both Firefox and
Seamonkey has problems starting.

Well revdep-rebuild came back clean.  I'm doing a emerge -e world at the
moment.  I'm hoping it is just something out of sync here.

I use to use this string to update::

emerge -uDNvp world

Now I use::

emerge -uDNvp --changed-deps=y world

It catches more issues.
hth,
James




I added that to the defaults.  My emerge -e world is almost done.

Dale

:-)  :-)



[gentoo-user] Adobe Flash replacement ?

2015-10-22 Thread James
Hello,

I was just reading about "lighspark" [1] and at first glance, it seems
to be a replacement for adobe flash with support for the latest 
features. Lightspark can be found with::
'eix -R lightspark'


You may also need to run 'eix-remote update' if you have not updated
that database of extended-availability packages..
So anyone tried lightspark with mozilla browers (seamonkey, ff, etc)?



Granted we all just wish flash would go away and be replaced by something
else that is open source. But, I need to view some flash deliverables
on a routine basis:: so this post is about better support for flash
in browsers. I am really tired of adobe-flash.


[1] http://lightspark.github.io/




Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Dale

Neil Bothwick wrote:

On Thu, 22 Oct 2015 09:53:57 +, Alan Mackenzie wrote:


1445464761:  >>> unmerge success: sys-libs/glibc-2.20-r2
1445464768:  === (1 of 13) Post-Build Cleaning
(sys-libs/glibc-2.21-r1::/var/cache/portage/tree/sys-libs/glibc/glibc-2.21-r1.ebuild)
1445464768:  ::: completed emerge (1 of 13) sys-libs/glibc-2.21-r1
to /

This is nothing to do with your problem, but it might be useful
nonetheless.

I finally got fed up with these "seconds since the epoch" time stamps a
couple of days ago, and wrote a little filter to turn them into readable
time stamps.  Probably there is software around already which does this,
but the effort to write the script was less than that to search for the
existing software.

Either genlop or qlop (from portage-utils) will do this and much more.
You probably already have at least one of them installed.





It can be done with the date command if you only need one done. Thing 
is, I already knew when this was done so the time stamps didn't matter 
to me.  I went to the bottom of the file, the last emerges I did, then 
looked at the update section of the log.  I didn't need timestamps to 
know where it was or anything.  Go to bottom, scroll up a bit and look 
for the world update part.


Of course, there is better ways of finding this info but I never can 
remember the command and it takes me a bit to figure out what options do 
what so I finally said "screw it" and work without it unless I just must 
have it.  If I only need one, I use the date command.  It works.  ;-)


I'm getting to old for this stuff.  :/

Dale

:-)  :-)



[gentoo-user] Re: How is /etc/portage/env supposed to work?

2015-10-22 Thread Nikos Chantziaras

On 20/10/15 17:26, Michael Orlitzky wrote:

The whole thing is confusing. If you ever get it working please put a
decent example on the wiki because I remember spending hours trying to
do the same thing.


OK, I just created an account, but it doesn't look that the wiki is 
actually editable:


  You do not have permission to edit this page, for the following reason:
  You do not have permission to edit pages in the Handbook namespace.




Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Neil Bothwick
On Thu, 22 Oct 2015 09:53:57 +, Alan Mackenzie wrote:

> > 1445464761:  >>> unmerge success: sys-libs/glibc-2.20-r2
> > 1445464768:  === (1 of 13) Post-Build Cleaning
> > (sys-libs/glibc-2.21-r1::/var/cache/portage/tree/sys-libs/glibc/glibc-2.21-r1.ebuild)
> > 1445464768:  ::: completed emerge (1 of 13) sys-libs/glibc-2.21-r1
> > to /  
> 
> This is nothing to do with your problem, but it might be useful
> nonetheless.
> 
> I finally got fed up with these "seconds since the epoch" time stamps a
> couple of days ago, and wrote a little filter to turn them into readable
> time stamps.  Probably there is software around already which does this,
> but the effort to write the script was less than that to search for the
> existing software.

Either genlop or qlop (from portage-utils) will do this and much more.
You probably already have at least one of them installed.


-- 
Neil Bothwick

There is absolutely no substitute for a genuine lack of preparation.


pgpd6zRDHFp0F.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] How do I change an X keyboard layout?

2015-10-22 Thread Marc Joliet
On Thursday 22 October 2015 10:09:11 Alan Mackenzie wrote:
>Hello, Marc.
>
>On Wed, Oct 21, 2015 at 09:21:07PM +0200, Marc Joliet wrote:
>> On Wednesday 21 October 2015 15:51:43 Alan Mackenzie wrote:
>> >The two keyboard layouts I use in XFCE are both fine and dandy, but they
>> >are incomplete.  In particular, I want the key combination
>> > to take me to tty13 in the same way that
>> > takes me to tty1.
>> >
>> >I've been searching for _hours_ trying to find out how to do this.  I
>> >cannot find the keyboard layouts anywhere under /usr/share, where one
>> >might expect them.  I can't find any relevant programs to manipulate
>> >these data files with, even if I could find them.
>> >
>> >Would somebody help me please.  Where are the X keyboard layouts stored,
>> >and what program to I need to enhance them?
>> >
>> >TIA!
>> 
>> I was curious, so I looked a bit myself, and found this:
>> 
>> % ag ctrl-alt-f /usr/share/doc
>> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-7.html
>> 21:By default, console switching is done using Alt-Fn or Ctrl-Alt-Fn.
>> 22:Under X (or recent versions of dosemu), only
>> Ctrl-Alt-Fn works.
>> 
>> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-8.html
>> 54:Console_n   Alt-Fn and Ctrl-Alt-Fn  (1 = n = 12)
>> 82:Ctrl-Alt-Fn Switch to VT n
>> 115:Ctrl-Alt-Fn Switch to VT n (from version 0.50; earlier Alt-Fn)
>> 
>> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-13.html
>> 28:While it is running one can use Ctrl-Alt-Fn to switch to VTn.
>> 
>> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-9.html
>> 41:However, Ctrl-Alt-Fn will work and you can go to another VT.
>> 
>> /usr/share/doc/libsdl-1.2.15-r9/html/docs.html
>> 631:The framebuffer console now uses CTRL-ALT-FN to switch virtual
>> terminals, to avoid collisions with application key bindings.
>> 
>> (Online here: http://kbd-project.org/www.win.tue.nl/~aeb/linux/kbd/)
>
>Yes, I've got that file.  It only really deals with the console
>keyboard, though.

Too bad, I was hoping that there might be a way of modifying the relevant X 
key bindings.

>> (For those who haven't heard of it: ag is from
>> sys-apps/the_silver_searcher.)
>> 
>> From a cursory look, I couldn't find anything specific, other than that
>> apparently AltGr+Fn is supposed to give you console n+12 (though apparently
>> not from within X), but it didn't work for me, and I'm not in the mood to
>> find out why.  Also, that FAQ looks... dated.  However, maybe it will help
>> lead you to a solution?
>
>I think I'm going to have to exercise my meagre search engine skills.
>
>> Also, while I'm sure you've got a good reason for doing this, I'm really
>> curious: why not use screen or tmux instead?  Especially if you're dealing
>> with more than twelve terminals.
>
>I've never really considered screen (or tmux).  Screen looks like a way
>of "windowising" a tty, amongst other things, which isn't what I want.
>In fact, reading the Wikipedia article, I'm not even clear whether
>screen runs on a virtual terminal or within X.

(Note: personally, I recommend tmux over screen, unless you fall into one of 
the niches that only screen supports.)

As Alan said, they are normal programs that run in a shell.  You can access 
their sessions from X, a linux console, and/or SSH simultaneously (tmux 
shrinks the view to the lowest common denominator automatically, e.g., to the 
size of a laptop screen).  You can split windows (much like Vim; tmux has Vi 
key bindings, BTW), interactively select windows, scroll back and search 
through a buffer, etc. pp..

I find it much superior to dealing with "physical" terminals (at least 
exclusively).

(Oh, and you can detach from a session and let it run in the background 
without staying logged in, i.e., tmux and screen can daemonize.)

>No, what I really want is a way to go from X (XFCE for me) directly to
>any virtual terminal.  At the moment, if I want to go to, say, tty14,
>I've first got to go to a lower numbered tty, and then to tty14.  It's
>one of these little annoyances which is scarcely worth bothering about,
>but it _is_ an annoyance.

If that's what you really want, then that's fine, I just wanted to present an 
alternative.

>I'll continue searching.

Best of luck!

>Thanks for the post!
>
>> HTH

HTH
-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup


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


Re: [gentoo-user] How do I change an X keyboard layout?

2015-10-22 Thread Alan Mackenzie
Hello, Gentoo.

On Wed, Oct 21, 2015 at 03:51:43PM +, Alan Mackenzie wrote:
> The two keyboard layouts I use in XFCE are both fine and dandy, but they
> are incomplete.  In particular, I want the key combination
>  to take me to tty13 in the same way that
>  takes me to tty1.

> I've been searching for _hours_ trying to find out how to do this.  I
> cannot find the keyboard layouts anywhere under /usr/share, where one
> might expect them.  I can't find any relevant programs to manipulate
> these data files with, even if I could find them.

> Would somebody help me please.  Where are the X keyboard layouts stored,
> and what program to I need to enhance them?

> TIA!

Well, I've nailed it, but it took me the best part of two days.  The X
keyboard setup, called xkb, is much more complicated than that for the
virtual terminal, probably needlessly.  I can't see what this extra
complexity gains.

Three files needed amending, they being under /usr/share/X11/xkb:

1: /usr/share/X11/xkb/symbols/srvr_ctrl, where the actions for the Fn
keys are defined.  They were defined as being of type "CTRL+ALT" which
allowed Fn to be pressed together with any combination of  and
, together with --Fn.  This involved replacing the
type with a new type "CTRL+ALT+SHIFT", which had to be defined in 

2: /usr/share/X11/xkb/types/pc.  The new type "CTRL+ALT+SHIFT" was easy
enough to clone from "CTRL+ALT", then amend.

3: /usr/share/X11/xkb/compat/xfree86.  In this file, wierdly classified
"compatibility" (i.e. action) settings are made.  Here it was necessary
to realise that "XF86_Switch_VT_1", etc, were, intrinsically, symbols
without a specific meaning.  Only an entry in this file actually made
XF86_Switch_VT_1 do anything.  Having grasped this, it was necessary to
use other otherwise meaningless symbols for the action "go to terminal
13", etc.  F13, F14, ..., F24 happened to be defined, and they worked.

Phew!  Thank goodness for the tutorials I managed to find online.  The
one that was most useful was at
.

So all I've got to do now is make a patch and put it into
/etc/portage/patches so that I won't lose the changes at the next update
of xkb.

> -- 
> Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Adobe Flash replacement ?

2015-10-22 Thread Pavel Volkov

On четверг, 22 октября 2015 г. 22:38:50 MSK, Marc Joliet wrote:
I tried that a good while ago, but at the time I had no luck.  
However, that 
was a few years ago.


Personally, I actually uninstalled adobe-flash almost exactly 
two weeks and 2 
hours ago :-) .  I haven't really missed it, and youtube-dl (well, mpv's 
built-in youtube-dl support) helps with the few sites that 
still don't support 
HTML5 video.  I practically never encounter any other type of 
flash content. 
(I consciously decided that I don't care about flash games, so they don't 
count.)


I also tried Lightspark several times, I wouldn't consider it ready to use.
As for Flash content, I ocasionally come across it: speedtest.net for 
example or many Japanese websites...
I run Flash content in Chromium which has its own plugin for it (installed 
with package www-plugins/chrome-binary-plugins).





Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Dale

Dale wrote:

Howdy,

I recently did a upgrade which included glibc.  Now both Firefox and 
Seamonkey has problems starting.  I have several profiles and some 
work and some don't.  Using safe-mode works which makes me think the 
browsers themselves are OK but something else got messed up.  The only 
package I see that I just updated is glibc that might could cause this 
issue.  This is the recent emerge list from emerge.log:


 SNIP 

I see a couple python packages but not sure that they would affect 
anything.  Is anyone else having this issue?  Anyone have a clue what 
could cause it?


Right now, I'm testing to see if it is a add-on that is causing it. 
I'm cutting them on one at a time but since sometimes it works and 
sometimes it don't, makes it hard to know if it is even a add-on or 
not much less which one.


I thought about going back to the old version of glibc but we know 
that is not a good idea.  That one is sort of a one way street. If no 
one has any ideas, I may try a emerge -e world and see if that helps any.


Thanks much.

Dale

:-)  :-)




OK.  My emerge -e world finished, with a couple that failed such as 
libreoffice, kscreen and such, but the problem remains.  Since no one 
else is having this problem, based on no one posting about it, then I 
have to assume it is a add-on I use.  Also, safe-mode works too.  Odd 
thing is, when I start it on the command line to see if it reports any 
errors, I get the same output whether it works or not. This is what I 
get either way.




dale@fireball / $ seamonkey -p -new-instance

(process:11385): GLib-CRITICAL **: g_slice_set_config: assertion 
'sys_page_size == 0' failed


(process:11385): GLib-CRITICAL **: g_slice_set_config: assertion 
'sys_page_size == 0' failed

dale@fireball / $


No clue what that Glib error is about but either way, it works even when 
it spits out that error.  So, now to play with these add-ons and see 
which one is the offender.  One of them is about to be on my bad list.  
So far, adblock works.  Whew!!!


Dale

:-)  :-)



Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Neil Bothwick
On Thu, 22 Oct 2015 14:07:06 -0500, Dale wrote:

> Of course, there is better ways of finding this info but I never can 
> remember the command and it takes me a bit to figure out what options
> do what so I finally said "screw it" and work without it unless I just
> must have it.  If I only need one, I use the date command.  It
> works.  ;-)

genlop -l --date yesterday

Not too hard to remember :)


-- 
Neil Bothwick

The sooner you fall behind the more time you'll have to catch up.


pgpu7iHDWQ_Xb.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Dale

Neil Bothwick wrote:

On Thu, 22 Oct 2015 14:07:06 -0500, Dale wrote:


Of course, there is better ways of finding this info but I never can
remember the command and it takes me a bit to figure out what options
do what so I finally said "screw it" and work without it unless I just
must have it.  If I only need one, I use the date command.  It
works.  ;-)

genlop -l --date yesterday

Not too hard to remember :)





It is when you only use it once every year or two.  Generally, it is 
rare that I have to even go look at the emerge log file.  This is likely 
the first time I have looked in there in a good long while. Maybe over a 
year.  Sometimes, I wonder if I even need the thing.


Dale

:-)  :-)



Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Dale

Alan McKinnon wrote:

On 22/10/2015 23:51, Dale wrote:

Neil Bothwick wrote:

On Thu, 22 Oct 2015 14:07:06 -0500, Dale wrote:


Of course, there is better ways of finding this info but I never can
remember the command and it takes me a bit to figure out what options
do what so I finally said "screw it" and work without it unless I just
must have it.  If I only need one, I use the date command.  It
works.  ;-)

genlop -l --date yesterday

Not too hard to remember :)




It is when you only use it once every year or two.  Generally, it is
rare that I have to even go look at the emerge log file.  This is likely
the first time I have looked in there in a good long while. Maybe over a
year.  Sometimes, I wonder if I even need the thing.

Of course you need it - genlop won't work without it




That's the point.  I rarely use it.  The only genlop command I may use 
every once in a while is genlop -c.  I use that to see how long 
something has been compiling or if it is a major upgrade, what is 
actually being compiled at the time.  Generally, the estimated time 
remaining is worthless.  Most of the time, it isn't even in the ballpark.


So, unless there is a problem with a recent emerge, I don't really have 
a need for it.


Dale

:-)  :-)



Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Alan McKinnon
On 22/10/2015 23:51, Dale wrote:
> Neil Bothwick wrote:
>> On Thu, 22 Oct 2015 14:07:06 -0500, Dale wrote:
>>
>>> Of course, there is better ways of finding this info but I never can
>>> remember the command and it takes me a bit to figure out what options
>>> do what so I finally said "screw it" and work without it unless I just
>>> must have it.  If I only need one, I use the date command.  It
>>> works.  ;-)
>> genlop -l --date yesterday
>>
>> Not too hard to remember :)
>>
>>
> 
> 
> It is when you only use it once every year or two.  Generally, it is
> rare that I have to even go look at the emerge log file.  This is likely
> the first time I have looked in there in a good long while. Maybe over a
> year.  Sometimes, I wonder if I even need the thing.

Of course you need it - genlop won't work without it


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Dale
Dale wrote:
>
>
> OK.  My emerge -e world finished, with a couple that failed such as
> libreoffice, kscreen and such, but the problem remains.  Since no one
> else is having this problem, based on no one posting about it, then I
> have to assume it is a add-on I use.  Also, safe-mode works too.  Odd
> thing is, when I start it on the command line to see if it reports any
> errors, I get the same output whether it works or not. This is what I
> get either way.
>
>
>
> dale@fireball / $ seamonkey -p -new-instance
>
> (process:11385): GLib-CRITICAL **: g_slice_set_config: assertion
> 'sys_page_size == 0' failed
>
> (process:11385): GLib-CRITICAL **: g_slice_set_config: assertion
> 'sys_page_size == 0' failed
> dale@fireball / $
>
>
> No clue what that Glib error is about but either way, it works even
> when it spits out that error.  So, now to play with these add-ons and
> see which one is the offender.  One of them is about to be on my bad
> list.  So far, adblock works.  Whew!!!
>
> Dale
>
> :-)  :-)
>


Update.  I booted into safe-mode.  I removed ALL add-ons, not disable
but removed them.  I then added them back one at a time until it
wouldn't come up.  It seems Lastpass has a problem.  When I add it back,
it goes belly up with all feet/hands in the air, some swelling starting
too.  Think road kill.  Basically, it's bad.  All the other add-ons seem
to work fine and let Firefox load up fine.  So, I'm off to dig into the
Lastpass world.  Some initial digging is turning up something about
changes to Firefox and how add-ons work, or don't it would seem. 

So, if your Firefox doesn't load up, disable Lastpass first and give it
a test run.  It just may help things.

Don't ask me what my passwords are right now.  o_O  At least Seamonkey
is working. 

Dale

:-)  :-)




Re: [gentoo-user] How do I change an X keyboard layout?

2015-10-22 Thread Alan Mackenzie
Hello, Marc.

On Wed, Oct 21, 2015 at 09:21:07PM +0200, Marc Joliet wrote:
> On Wednesday 21 October 2015 15:51:43 Alan Mackenzie wrote:

> >The two keyboard layouts I use in XFCE are both fine and dandy, but they
> >are incomplete.  In particular, I want the key combination
> > to take me to tty13 in the same way that
> > takes me to tty1.

> >I've been searching for _hours_ trying to find out how to do this.  I
> >cannot find the keyboard layouts anywhere under /usr/share, where one
> >might expect them.  I can't find any relevant programs to manipulate
> >these data files with, even if I could find them.

> >Would somebody help me please.  Where are the X keyboard layouts stored,
> >and what program to I need to enhance them?

> >TIA!

> I was curious, so I looked a bit myself, and found this:

> % ag ctrl-alt-f /usr/share/doc
> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-7.html
> 21:By default, console switching is done using Alt-Fn or Ctrl-Alt-Fn.
> 22:Under X (or recent versions of dosemu), only 
> Ctrl-Alt-Fn works.

> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-8.html
> 54:Console_n   Alt-Fn and Ctrl-Alt-Fn  (1 = n = 12)
> 82:Ctrl-Alt-Fn Switch to VT n
> 115:Ctrl-Alt-Fn Switch to VT n (from version 0.50; earlier Alt-Fn)

> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-13.html
> 28:While it is running one can use Ctrl-Alt-Fn to switch to VTn.

> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-9.html
> 41:However, Ctrl-Alt-Fn will work and you can go to another VT.

> /usr/share/doc/libsdl-1.2.15-r9/html/docs.html
> 631:The framebuffer console now uses CTRL-ALT-FN to switch virtual 
> terminals, to avoid collisions with application key bindings.

> (Online here: http://kbd-project.org/www.win.tue.nl/~aeb/linux/kbd/)

Yes, I've got that file.  It only really deals with the console
keyboard, though.

> (For those who haven't heard of it: ag is from sys-apps/the_silver_searcher.)

> From a cursory look, I couldn't find anything specific, other than that 
> apparently AltGr+Fn is supposed to give you console n+12 (though apparently 
> not from within X), but it didn't work for me, and I'm not in the mood to 
> find 
> out why.  Also, that FAQ looks... dated.  However, maybe it will help lead 
> you 
> to a solution?

I think I'm going to have to exercise my meagre search engine skills.

> Also, while I'm sure you've got a good reason for doing this, I'm really 
> curious: why not use screen or tmux instead?  Especially if you're dealing 
> with more than twelve terminals.

I've never really considered screen (or tmux).  Screen looks like a way
of "windowising" a tty, amongst other things, which isn't what I want.
In fact, reading the Wikipedia article, I'm not even clear whether
screen runs on a virtual terminal or within X.

No, what I really want is a way to go from X (XFCE for me) directly to
any virtual terminal.  At the moment, if I want to go to, say, tty14,
I've first got to go to a lower numbered tty, and then to tty14.  It's
one of these little annoyances which is scarcely worth bothering about,
but it _is_ an annoyance.

I'll continue searching.

Thanks for the post!

> HTH
> -- 
> Marc Joliet

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] How do I change an X keyboard layout?

2015-10-22 Thread Alan McKinnon
On 22/10/2015 12:09, Alan Mackenzie wrote:
> Hello, Marc.
> 
> On Wed, Oct 21, 2015 at 09:21:07PM +0200, Marc Joliet wrote:
>> On Wednesday 21 October 2015 15:51:43 Alan Mackenzie wrote:
> 
>>> The two keyboard layouts I use in XFCE are both fine and dandy, but they
>>> are incomplete.  In particular, I want the key combination
>>>  to take me to tty13 in the same way that
>>>  takes me to tty1.
> 
>>> I've been searching for _hours_ trying to find out how to do this.  I
>>> cannot find the keyboard layouts anywhere under /usr/share, where one
>>> might expect them.  I can't find any relevant programs to manipulate
>>> these data files with, even if I could find them.
> 
>>> Would somebody help me please.  Where are the X keyboard layouts stored,
>>> and what program to I need to enhance them?
> 
>>> TIA!
> 
>> I was curious, so I looked a bit myself, and found this:
> 
>> % ag ctrl-alt-f /usr/share/doc
>> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-7.html
>> 21:By default, console switching is done using Alt-Fn or Ctrl-Alt-Fn.
>> 22:Under X (or recent versions of dosemu), only 
>> Ctrl-Alt-Fn works.
> 
>> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-8.html
>> 54:Console_n   Alt-Fn and Ctrl-Alt-Fn  (1 = n = 12)
>> 82:Ctrl-Alt-Fn Switch to VT n
>> 115:Ctrl-Alt-Fn Switch to VT n (from version 0.50; earlier Alt-Fn)
> 
>> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-13.html
>> 28:While it is running one can use Ctrl-Alt-Fn to switch to VTn.
> 
>> /usr/share/doc/kbd-1.15.5-r1/html/kbd.FAQ-9.html
>> 41:However, Ctrl-Alt-Fn will work and you can go to another VT.
> 
>> /usr/share/doc/libsdl-1.2.15-r9/html/docs.html
>> 631:The framebuffer console now uses CTRL-ALT-FN to switch virtual 
>> terminals, to avoid collisions with application key bindings.
> 
>> (Online here: http://kbd-project.org/www.win.tue.nl/~aeb/linux/kbd/)
> 
> Yes, I've got that file.  It only really deals with the console
> keyboard, though.
> 
>> (For those who haven't heard of it: ag is from sys-apps/the_silver_searcher.)
> 
>> From a cursory look, I couldn't find anything specific, other than that 
>> apparently AltGr+Fn is supposed to give you console n+12 (though apparently 
>> not from within X), but it didn't work for me, and I'm not in the mood to 
>> find 
>> out why.  Also, that FAQ looks... dated.  However, maybe it will help lead 
>> you 
>> to a solution?
> 
> I think I'm going to have to exercise my meagre search engine skills.
> 
>> Also, while I'm sure you've got a good reason for doing this, I'm really 
>> curious: why not use screen or tmux instead?  Especially if you're dealing 
>> with more than twelve terminals.
> 
> I've never really considered screen (or tmux).  Screen looks like a way
> of "windowising" a tty, amongst other things, which isn't what I want.
> In fact, reading the Wikipedia article, I'm not even clear whether
> screen runs on a virtual terminal or within X.

Neither. screen runs in a shell, and the output goes to whatever the
shell is using for that. Same as bash, ssh and so on all do - display
device agnostic.


> 
> No, what I really want is a way to go from X (XFCE for me) directly to
> any virtual terminal.  At the moment, if I want to go to, say, tty14,
> I've first got to go to a lower numbered tty, and then to tty14.  It's
> one of these little annoyances which is scarcely worth bothering about,
> but it _is_ an annoyance.
> 
> I'll continue searching.
> 
> Thanks for the post!
> 
>> HTH
>> -- 
>> Marc Joliet
> 


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread Alan Mackenzie
Hello, Dale.

On Wed, Oct 21, 2015 at 07:57:32PM -0500, Dale wrote:
> Howdy,

> I recently did a upgrade which included glibc.  Now both Firefox and 
> Seamonkey has problems starting.  I have several profiles and some work 
> and some don't.  Using safe-mode works which makes me think the browsers 
> themselves are OK but something else got messed up.  The only package I 
> see that I just updated is glibc that might could cause this issue.  
> This is the recent emerge list from emerge.log:

> 1445463962:  >>> emerge (1 of 13) sys-libs/glibc-2.21-r1 to /
> 1445464046:  === (1 of 13) Cleaning 
> (sys-libs/glibc-2.21-r1::/var/cache/portage/tree/sys-libs/glibc/glibc-2.21-r1.ebuild)
> 1445464046:  === (1 of 13) Compiling/Packaging 
> (sys-libs/glibc-2.21-r1::/var/cache/portage/tree/sys-libs/glibc/glibc-2.21-r1.ebuild)
> 1445464751:  === (1 of 13) Merging 
> (sys-libs/glibc-2.21-r1::/var/cache/portage/tree/sys-libs/glibc/glibc-2.21-r1.ebuild)
> 1445464759:  >>> AUTOCLEAN: sys-libs/glibc:2.2
> 1445464759:  === Unmerging... (sys-libs/glibc-2.20-r2)
> 1445464761:  >>> unmerge success: sys-libs/glibc-2.20-r2
> 1445464768:  === (1 of 13) Post-Build Cleaning 
> (sys-libs/glibc-2.21-r1::/var/cache/portage/tree/sys-libs/glibc/glibc-2.21-r1.ebuild)
> 1445464768:  ::: completed emerge (1 of 13) sys-libs/glibc-2.21-r1 to /

This is nothing to do with your problem, but it might be useful
nonetheless.

I finally got fed up with these "seconds since the epoch" time stamps a
couple of days ago, and wrote a little filter to turn them into readable
time stamps.  Probably there is software around already which does this,
but the effort to write the script was less than that to search for the
existing software.

Here is that script:


#!/usr/bin/awk -f
#
# log-emerge:
#
# A filter which converts the time stamp on emerge log files to a human
# readable form.
#
# Written by Alan Mackenzie , 2015-10-20.
# This script is in the public domain.
#
# To use, pipe all or part of a log file through this filter.
#
{
sec = strtonum(substr($1, 1, 11))
$1 = strftime("%Y-%m-%d %H:%M:%S %z", sec, 0) ":"
print
}


Don't forget to make it exectuable!  It turns the first of these log
file lines into this:

2015-10-21 21:46:02 +: >>> emerge (1 of 13) sys-libs/glibc-2.21-r1 to /

If the timezone field is unwanted, just remove the " %z" from the middle
line of the script.

> Thanks much.

> Dale

> :-)  :-)

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] Can I suppress the bleep when shutting down?

2015-10-22 Thread João Miguel
> 'modprobe -r pcspkr' should remove the offending beep.
>> No, no, no!  I don't want to disable my loudspeaker!  For example, I get
>> beeps through my ssh connection with my ISP telling me that new mail has
>> arrived.
He just wants to disable it _on shutdown_, not always.

João Miguel



Re: [gentoo-user] Re: How is /etc/portage/env supposed to work?

2015-10-22 Thread Michael Orlitzky
On 10/22/2015 04:03 PM, Nikos Chantziaras wrote:
> On 20/10/15 17:26, Michael Orlitzky wrote:
>> The whole thing is confusing. If you ever get it working please put a
>> decent example on the wiki because I remember spending hours trying to
>> do the same thing.
> 
> OK, I just created an account, but it doesn't look that the wiki is 
> actually editable:
> 
>You do not have permission to edit this page, for the following reason:
>You do not have permission to edit pages in the Handbook namespace.
> 
> 

Some pages aren't, but most are. The exceptions are things like project
pages and the handbook (which I guess is where you got that error?). I
think this

  https://wiki.gentoo.org/wiki//etc/portage/package.env

is a normal page and you should be able to edit it.




[gentoo-user] Re: glibc upgrade and firefox/seamonkey issues

2015-10-22 Thread James
Dale  gmail.com> writes:


> >>> I recently did a upgrade which included glibc.  Now both Firefox and
> >>> Seamonkey has problems starting. 

> Well revdep-rebuild came back clean.  I'm doing a emerge -e world at the 
> moment.  I'm hoping it is just something out of sync here.

I use to use this string to update::

emerge -uDNvp world

Now I use::

emerge -uDNvp --changed-deps=y world

It catches more issues.
hth,
James