[gentoo-user] Registering X session when using startx

2013-12-25 Thread Alessandro DE LAURENZIS
Folks,

This is philosophical rather than practical, but I'm struggling with it
and I would appreciate your view.

I normally use startx for logging in X, because that gives me enough
flexibility (much more than XDM, 'cause I can open as much servers as
needed *when* they are actually needed) not requiring, at the same
time, the use of *kit stuff (on my primary laptop I use CDM
- https://github.com/ghost1227/cdm - but it doesn't really matter).

Of course, X sessions are not logged into the utmp/wtmp DBs like it
happens using XDM.

Even if I could live without that, I would prefer to avoid any
inconsistencies and, of course, who/w/last commands could be useful for
multi-user systems administration.

So I'm trying to recover their functionality.

XDM has its own mechanism in /etc/X11/xdm/{Xstartup,Xreset} to log the
details using sessreg, but since startx is run as normal user, it isn't
reusable within my scope.

There are a very few info on the matter (see e.g.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=466104, closed as
WONTFIX) so it seems I'm alone...

I tried a bunch of WAs in order to be able to use the sessreg command
within ~/.xinitrc:

1) setuid /usr/bin/sessreg: possibly multiple security holes;

2) use sudo: I really don't understand why, but that doesn't work; I
mean, the output from who/w is different w.r.t. the expected one (there
is no line related to the active X session, even if the reported number
of users seems ok);

3) adding users to utmp group (which is equivalent to open /var/run/utmp
and /var/log/wtmp in writing to all); this is my favorite hack at the
moment, but I feel it is still suboptimal.

Any hints? Other strategies adopted? Suggestions related to point 2)?

I'm looking forward to hearing from gurus!

Thanks for your time

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



Re: [gentoo-user] Re: Newsbeuter - Cannot set element colors

2013-12-05 Thread Alessandro DE LAURENZIS
On Tue 03/12, Roman Dobosz wrote:
 On Tue, 26 Nov 2013 21:32:57 +0100
 Alessandro DE LAURENZIS just22@gmail.com wrote:
 
  Really weird behavior; I'm just following the documentation:
 […]
  just22@egeo:[~]$ newsbeuter
  XDG: configuration directory '/home/just22/.config/newsbeuter' not
  accessible, using '/home/just22/.newsbeuter' instead.
  Starting newsbeuter 2.6...
  Loading configuration...Error while processing command
  `color background white black bold'
  (/home/just22/.newsbeuter/config line 5): `bold' is not a valid color
  
  Any hints?
 
 You have something different from space between background and
 white (you can check it editing that file in vim, placing the
 cursor on that space and pressing g8 in normal mode) - 0xC2 0xA0
 instead of 0x20. Looks like you were able to copy nbsp; somehow :)
 
 Just get rid of the spaces and replace them with real one (changing
 encoding to pure ascii may help).
 
 cheers.
 gryf
 

My only comment is: GREAT! Thank you very much, this stuff was making me
crazy. I would not be able to solve it without your help.

Cheers

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



[gentoo-user] Newsbeuter - Cannot set element colors

2013-11-26 Thread Alessandro DE LAURENZIS
Really weird behavior; I'm just following the documentation:

just22@egeo:[~]$ cat ./.newsbeuter/config 
# Browser command
browser dwb %u

# Color scheme
color background white black

but when I try to launch the reader, it complains this way:

just22@egeo:[~]$ newsbeuter
XDG: configuration directory '/home/just22/.config/newsbeuter' not
accessible, using '/home/just22/.newsbeuter' instead.
Starting newsbeuter 2.6...
Loading configuration...Error while processing command
`color background white black'
(/home/just22/.newsbeuter/config line 5): too few parameters.

I tried also to add optional attributes:

just22@egeo:[~]$ cat ./.newsbeuter/config 
# Browser command
browser dwb %u

# Color scheme
color background white black bold

but no luck:

just22@egeo:[~]$ newsbeuter
XDG: configuration directory '/home/just22/.config/newsbeuter' not
accessible, using '/home/just22/.newsbeuter' instead.
Starting newsbeuter 2.6...
Loading configuration...Error while processing command
`color background white black bold'
(/home/just22/.newsbeuter/config line 5): `bold' is not a valid color

Any hints?

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis



[gentoo-user] vim and gvim package split

2013-10-31 Thread Alessandro DE LAURENZIS
I guess this is an already debated topic, but I only found this very
old thread on the subject:

http://article.gmane.org/gmane.linux.gentoo.devel/4328

which contains the original communication of the ebuild split and some
discussions and observations that probably are no more applicable.

I'm absolutely convinced that one of the gentoo strengths is the USE
variable handling compile time options, so I do not see any points to
split packages when not absolutely needed.

In case of vim-core/vim/gvim (and vim-qt?), I cannot understand
the reason... Are still there advantages in doing so?

Thanks for your time

-- 
Alessandro DE LAURENZIS
[mailto:just22@gmail.com]
LinkedIn: http://it.linkedin.com/in/delaurenzis