Re: [gentoo-user] Switching current java-vm for a single application

2016-02-02 Thread Leonardo Guilherme
Problem is, the SenchaCmd script runs java directly, which resolves to
/usr/bin/java, which itself is a script that checks the user choice
regarding the selected java-vm: setting JAVA_HOME does nothing to fix that.
I can edit the SenchaCmd script to run java directly, that would be the
quickfix.

Thanks for the input.

Em seg, 1 de fev de 2016 às 13:41, Alon Bar-Lev <alo...@gentoo.org>
escreveu:

> On 31 January 2016 at 19:17, Leonardo Guilherme
> <leonardo.guilhe...@gmail.com> wrote:
> >
> > Hello.
> >
> > I'm using OpenJDK JVM regularly on my machine instead of Oracle's one,
> primarily because of the infinality patches and because I prefer open
> source software.
> >
> > There are some applications, though, that do not play ball with it
> (namely, SenchaCmd) and I have to keep switching back and forth between
> installed java-vms just to run it.
> >
> > I know nothing about Java or its environment, is there a way to specify
> the java-vm just for this application instead of doing "eselect java-vm set
> user 1; sencha *stuff*; eselect java-vm set user 3" everytime?
> >
> > Is there a set of environment variables that can do this? Shall I wrap
> the command in a shell script? Ideas?
>
> Usually, every [well behaved] java application has JAVA_HOME or
> similar environment variable to tell it where java is.
> You can find a valid java homes at /usr/lib/jvm/*/jre or if you
> manually extracted oracle it will probably live in /opt/xxx.
>
> What you should do is go over this SenchaCmd startup script and find
> what it expects.
>
> Regards,
> Alon
>
>


[gentoo-user] Switching current java-vm for a single application

2016-01-31 Thread Leonardo Guilherme
Hello.

I'm using OpenJDK JVM regularly on my machine instead of Oracle's one,
primarily because of the infinality patches and because I prefer open
source software.

There are some applications, though, that do not play ball with it (namely,
SenchaCmd) and I have to keep switching back and forth between installed
java-vms just to run it.

I know nothing about Java or its environment, is there a way to specify the
java-vm just for this application instead of doing "eselect java-vm set
user 1; sencha *stuff*; eselect java-vm set user 3" everytime?

Is there a set of environment variables that can do this? Shall I wrap the
command in a shell script? Ideas?


Re: [gentoo-user] zsh: not so bad?

2015-07-13 Thread Leonardo Guilherme
I moved to zsh and never looked back, like, never.

This is what hooked me: http://ohmyz.sh/
It has been a wonderful experience ever since.

Em seg, 13 de jul de 2015 às 04:14, Alon Bar-Lev alo...@gentoo.org
escreveu:

 On 13 July 2015 at 04:52, walt w41...@gmail.com wrote:
  Maybe someone here has missed the recent discussion of zsh? ;)
 
  I just found this website, giving a wonderful primer on how to
  configure zsh:
 
  http://wiki.redbrick.dcu.ie/mw/Account_Customisation_(zsh)
 

 I also moved to zsh just to check.

 So apart of the zsh-newuser-install configuration which was quite
 nice, I found the gentoo prompt nice, activate using the following
 interface instead of manually set environment:

 autoload -U promptinit
 promptinit
 prompt gentoo

 I opened this[1] bug to make it nicer, in the mean time I store it at
 ~/.zfunc/prompt_alonbl_setup with 's/gentoo/alonbl/' and have in my
 ~zshrc:
 ---
 fpath=(
 ~/.zfunc
 ${fpath}
 )
 ---

 Also notice that zsh does not execute ~/.profile, took me a while to
 understand where I get errors and such, you need to have ~/.zprofile
 with the following content:
 ---
 [[ -e ~/.profile ]]  emulate sh -c '. ~/.profile'
 ---

 Regards,
 Alon

 [1] https://bugs.gentoo.org/show_bug.cgi?id=554648




Re: [gentoo-user] Per-package splitdebug FEATURE

2015-04-14 Thread Leonardo Guilherme
Sorry to resurect and old thread, but, its funny.

 I was searching for this information again and found a post in which this
guy was asking exactly what I wanted to know. Imagine my surprise when I
found that the guy was me but 4 years ago, I loled.

Thanks one more time!

Em qua, 31 de ago de 2011 às 21:50, Leonardo Guilherme 
leonardo.guilhe...@gmail.com escreveu:

 2011/8/23 netfab net...@gmail.com:
  Le 23/08/11 à 04:02, Leonardo a tapoté :
  What if I want to use splitdebug always and just deactivate it to some
  packages
 
  Another way is to enable splitdebug globally, but not install
  debug files for specific packages :
 
/etc/portage/env/do-not-install-debug-files.conf:
 
 INSTALL_MASK=/usr/lib/debug
 
/etc/portage/env/package.env:
 
 www-client/firefox do-not-install-debug-files.conf
 
  If you are using FEATURES=buildpkg you can set INSTALL_MASK into
  make.conf : debug files will never be installed, but will be
  available into tbz2 packages.
 
 

 Exactly what I wanted! Thank you! All of you :)

 --

 Leonardo



Re: [gentoo-user] What are you using to display Flash in Firefox?

2015-03-08 Thread Leonardo Guilherme
Hello

I'm using https://github.com/i-rinat/freshplayerplugin, a wrapper around
the PPAPI version bundled in chrome (I'm not sure but I think the package
www-plugis/chrome-binary-plugins has it).

It works really well nowadays, it used to crash a lot in the past.

Highly recommended.

Em dom, 8 de mar de 2015 às 11:43, Dan Johansson dan.johans...@dmj.nu
escreveu:


 As the subject says: What are you using to display Flash in Firefox?

 Reason for my question is quite simple, today I am using
 www-plugins/adobe-flash which works well for simple .swf files (where
 gnash  lightspark fails), but I have problems displaying a lot of
 Videos on Facebook  YouTube.
 95% of the time I get the following message when I try to watch a Video
 on FB or YT:
 The Adobe Flash plugin has crashed. Reload the page to try again.
 For YT it is really not that a big problem as I can download the Videos
 using a FF AddOn - but this does not work with FB.

 I am using the default/linux/amd64/13.0/desktop/kde profile.

 Any suggestions...

 Regards,
 --
 Dan Johansson, http://www.dmj.nu
 ***
 This message is printed on 100% recycled electrons!
 ***






Re: [gentoo-user] Re: How to install music player without graphic ?

2011-10-25 Thread Leonardo Guilherme
I recommend cmus, it does have an cool ncurses-based interfaces and some
vi-style commands

2011/10/25 Jonas de Buhr jonas.de.b...@gmx.net

 Am 23.10.2011 06:58, schrieb Nikos Chantziaras:

  On 10/23/2011 07:05 AM, Lavender wrote:

 I added USE=-KDE to /etc/make.conf ,
 but when I use emerge like below :
 # sudo emerge mplayer
 OR
 #sudo emerge amorok
 I found that the emerge always download
 something which contact with X11/lib .
 I don't know why the USE I set have no effect.


 Well, these are X applications (and Amarok is a KDE application.)
 Obviously they need X to work. USE flags are there to configure
 *optional* dependencies and behaviors. For mplayer and Amarok, these
 dependencies are not optional.


 for amarok this is true, but mplayer works well without X:
 http://www.mplayerhq.hu/DOCS/**HTML/en/softreq.htmlhttp://www.mplayerhq.hu/DOCS/HTML/en/softreq.html

 USE=-X emerge mplayer should work fine.

 but i recommend mp3blaster for console music playback.



 As others mentioned, you should install a command line player. There are
 a few. mpg123 is not really a media player though. You might want to
 look at this:

 http://tuxarena.blogspot.com/**2009/04/several-powerful-**
 console-music-players.htmlhttp://tuxarena.blogspot.com/2009/04/several-powerful-console-music-players.html








-- 

Leonardo


Re: IDE for C/C++ (Was: Really OT now (Re: [gentoo-user] udev + /usr)

2011-09-15 Thread Leonardo Guilherme
2011/9/15 Michael Mol mike...@gmail.com

 On Thu, Sep 15, 2011 at 2:58 PM, David W Noon dwn...@ntlworld.com wrote:
  On Wed, 14 Sep 2011 18:35:37 -0400, Michael Mol wrote about Re: Really
  OT now (Re: [gentoo-user] udev + /usr):
 
  It occurred to me that having a decent C and C++ editing environment
  might ease some of my of the spoilage I've experienced in Visual
  Studio for C++. I'll be checking it out. It'll mean learning emacs,
  though...
 
  If you like Visual Studio, try Geany or KDevelop.  The former is a Gtk+
  program, so runs natively under GNOME, Xfce and LXDE, while the latter
  is a Qt suite that runs natively under KDE.  Both are *way* slicker
  than Emacs or vim, but do require a graphical desktop. [Both vim and
  Emacs can run in a text console.]

 I'm not touching KDE again for a while. I got nailed pretty bad with a
 NVidia/Konsole/KWin, and I really wasn't using much of KDE.

 That said, I might poke KDevelop again; I haven't poked it in years.
 Geany is new since I last dug around.

 I do like text environments, though.

 
  You might also start reading comp.os.linux.development.apps on Usenet,
  if you don't already do so.

 Keeping up with this list is hard enough! But, thanks. :)



 --
 :wq


I do not know the state of Geanny since I last checked (couple of years
ago), but the highlight capabilites of KDevelop got my eye. It highlights
local variables in different colors in the same context, so something like

int foo(float bar, float baz) {
}

will have bar and baz in different colors. Also, support for CMake in
KDevelop got really great and useful. Plus, it supports debugging inside the
editor. Its awesome.

-- 

Leonardo


Re: [gentoo-user] Per-package splitdebug FEATURE

2011-08-31 Thread Leonardo Guilherme
2011/8/23 netfab net...@gmail.com:
 Le 23/08/11 à 04:02, Leonardo a tapoté :
 What if I want to use splitdebug always and just deactivate it to some
 packages

 Another way is to enable splitdebug globally, but not install
 debug files for specific packages :

   /etc/portage/env/do-not-install-debug-files.conf:

        INSTALL_MASK=/usr/lib/debug

   /etc/portage/env/package.env:

        www-client/firefox do-not-install-debug-files.conf

 If you are using FEATURES=buildpkg you can set INSTALL_MASK into
 make.conf : debug files will never be installed, but will be
 available into tbz2 packages.



Exactly what I wanted! Thank you! All of you :)

-- 

Leonardo



[gentoo-user] Per-package splitdebug FEATURE

2011-08-23 Thread Leonardo Guilherme
Hi.

I've turned on splitdebug feature (and -ggdb in CFLAGS) so debug
information are saved and I can debug anything that crashes. I went to
/usr/lib/debug, just out of curiosity, to see how much space was taken
and I found that it was almost 2GB, which chromium + firefox adds up
1.5GB and python gets another 0.3. I would like to disable splitdebug
for these specific packages now and in the future, so removing
splitdebug from features, re-emerging them and then activating
splitdebug again won't quite cut.

I wonder if there's a way to active features to some specific
packages, just like USE flags.

Thank you.

-- 

Leonardo



Re: [gentoo-user] Per-package splitdebug FEATURE

2011-08-23 Thread Leonardo Guilherme
Thats what I call worthy information! Thank you so much, Yohan and Nikos!

 FEATURES=${FEATURES} splitdebug

What if I want to use splitdebug always and just deactivate it to some
packages, -splitdebug on FEATURES will undo the splitdebug already
set?
like

FEATURES=${FEATURES} -splitdebug

Thanks again!



Re: [gentoo-user] ff chromium trapped in deafness or how to configure ALSA correctly

2011-08-21 Thread Leonardo Guilherme
2011/8/21 Maximilian Bräutigam max.braeuti...@googlemail.com:
 Hello all,

 I recently bought a Zotac Barebone ZBOX HD-AD02 AMD E-350 and installed
 Gentoo on it, what is working more or less very well except the sound. I
 did everything according to gentoo and gentoowiki docs, I installed (due
 to laziness) a gentoo-sources kernel with genkernel and Sabayon linux
 standard configuration, and I am using pulseaudio, but when I launch
 firefox or chromium from console and play some sounds, I get lots of
 these error messages:

 ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave

 I already googled for it but didn't find something helpful. The Zbox has
 a HDMI and a standard device:

 # lspci -v | grep -i audio
 00:01.1 Audio device: ATI Technologies Inc Device 1314
 00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel HDA) (rev 40)

 # cat /proc/asound/cards
  0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xfeb44000 irq 40
  1 [SB             ]: HDA-Intel - HDA ATI SB
                      HDA ATI SB at 0xfeb4 irq 16

 You can find the complete alsa-info output at
 http://paste.pocoo.org/show/461744/

 For me, the interesting part is this section:

  List of PLAYBACK Hardware Devices 
 card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 card 1: SB [HDA ATI SB], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
 card 1: SB [HDA ATI SB], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

 Is is possible that ff and chromium are sending data to HDMI since it is
 card 0? If you think, it would be helpful to disable card 0 or change
 the order, please tell me how to do it?

 I highly appreciate all kinds of help!

 Kind regards,
 der Max




Have you tried running alsaconf? what happens when you try alsamixer?
I tend to hate pulseaudio. I fail to see its purpose, the only time i
tried it gave me a big headache. My (totally biased and personal
without any techincal background) advice is to stay clear of
pulseaudio.

-- 

Leonardo



Re: [gentoo-user] Re: {OT} Screen recorder?

2011-07-18 Thread Leonardo Guilherme
2011/7/18 James wirel...@tampabay.rr.com

 Leonardo Guilherme leonardo.guilherme at gmail.com writes:


  Useful link http://verb3k.wordpress.com/2010/01/26/how-to-do-
 proper-screencasts-on-linux/

  Leonardo2011/7/18 Mick michaelkintzios at gmail.com

 OK, I looked at this page and have a few questions on
 compiling ffmpeg for screencasts.

 x11grab = qx11grab  ?? or use the X flag for ffmpeg?

 These ubuntu libs are listed as required: So set these flags:

libx264  just use (ffmpeg) flag x246
libfaac   just use (ffmpeg) flag faac
libvpx   just use (ffmpeg) flag vpx
libvorbis just use (ffmpeg) flag vorbis
libxvid   just use (ffmpeg) flag xvid
libmp3lame just use (ffmpeg) flag mp3
libtheora just use (ffmpeg) flag theora

 I have other flags set for ffmpeg. Do you have any other
 recommendations for flag setting to enable ffmpeg to be
 used for screencasts?


This is the command I use for screencasts and then encoding the converted
video

ffmpeg -f alsa -ac 2 -i hw:0,0 -acodec pcm_s16le -f x11grab -r 30 -i :0.0
-vcodec libx264 -vpre lossless_ultrafast -threads 0 raw.mkv
ffmpeg -i raw.mkv -acodec libmp3lame -ab 128k -ac 2 -vcodec libx264 -vpre
lossless_slow -crf 22 -threads 0 done.mp4

These are my flags for ffmpeg:

3dnow 3dnowext X aac alsa bzip2 encode faac hardcoded-tables mmx mmxext mp3
sdl ssse3 theora threads truetype v4l v4l2 vorbis vpx x264 xvid zlib

Note that many are unrelated to screencasting.


Re: [gentoo-user] {OT} Screen recorder?

2011-07-17 Thread Leonardo Guilherme
Useful link
http://verb3k.wordpress.com/2010/01/26/how-to-do-proper-screencasts-on-linux/

Leonardo


2011/7/18 Mick michaelkintz...@gmail.com

 On Monday 18 Jul 2011 04:00:31 William Kenworthy wrote:
  On Mon, 2011-07-18 at 03:29 +0100, Stroller wrote:
   On 18 July 2011, at 02:54, Grant wrote:
Does there exist a program that allows you to record the activity
taking place on a computer screen for later review?
  
   I'm pretty sure you can do this with mplayer / mencoder (to make a
 video
   screencast).
  
   It depends what your needs are, exactly.
  
   If you're monitoring teenagers or employees for inappropriate behaviour
   you might be happy with a screen shot every 1 - 5 minutes, so you could
   just use some kind framebuffer grabber (media-gfx/fbgrab?) and a
   cronjob. You could stitch those together daily into a speeded up video
   for easier review (you might be able to do this with mencoder, just by
   slowing the capture framerate down to once every 60 - 300 seconds) or
   compile the whole lot into a page of HTML to scroll through.
  
   Stroller.
 
  I use this one to prep movies about using software etc ... files are not
  as small as camtasias for a given quality, but postprocessing helps get
  close if size is important.
 
  BillK
 
 
  moriah ~ # esearch recordmy
  [ Results for search key : recordmy ]
  [ Applications found : 3 ]
 
  *  media-video/gtk-recordmydesktop
Latest version available: 0.3.8-r1
Latest version installed: [ Not Installed ]
Size of downloaded files: 172 kB
Homepage:http://recordmydesktop.sourceforge.net/
Description: GTK interface for RecordMyDesktop
License: GPL-2
 
  *  media-video/qt-recordmydesktop
Latest version available: 0.3.8
Latest version installed: [ Not Installed ]
Size of downloaded files: 181 kB
Homepage:http://recordmydesktop.sourceforge.net/
Description: QT4 interface for RecordMyDesktop
License: GPL-2
 
  *  media-video/recordmydesktop
Latest version available: 0.3.8.1-r4
Latest version installed: [ Not Installed ]
Size of downloaded files: 194 kB
Homepage:http://recordmydesktop.sourceforge.net/
Description: A desktop session recorder producing Ogg video/audio
  files
License: GPL-2
 
 
  moriah ~ #

 Try this:


 http://www.gossamer-threads.com/lists/gentoo/user/233511?do=post_view_threaded

 or google for ffmpeg for screen cast
 --
 Regards,
 Mick



Re: [gentoo-user] [OT] using ffmpeg for screen cast

2011-06-27 Thread Leonardo Guilherme
2011/6/27 Mick michaelkintz...@gmail.com

 On Monday 27 Jun 2011 12:08:17 Stroller wrote:
  On 26 June 2011, at 19:54, Mick wrote:

   Try passing -sameq
  
   WOW!  Exceptional improvement in a single stroke!  Thanks!  :)
  
   Why is it that ffmpeg degrades the quality with default settings?  What
   does it assume that the setting is? (sorry for the newbie Qs, but this
   area is until now outside my cognitive map! ;-)
 
  I don't know about the default settings, but I would interpret the file
  extension of your original command as telling mplayer that the
  destination file should be encoded as mpeg2. This is a pretty poor codec
  by today's standards.
 
  I could well be wrong, though. Do you know what format the output file
 is?

 No, I have no idea.  I assume it is capturing my desktop in some raw video
 format - whatever that means.  What would X11 feed to x11grab?


  IMO you're best encoding to h264 (in an mp4 container) for distribution,
  but I think it's possible the encoding load of that might affect your
  screencast. So you might wish to use sameq or the r210 or rawvideo codecs
  and then transcode to h264 (or WebM or whatever) afterwards.

 I changed the output file to mp4 and it transcodes it accordingly!  :)

  ffmpeg -f x11grab -s xga -r 25 -i :0.0 -sameq -aspect 4:3 /tmp/out.mp4
 FFmpeg version SVN-r25767, Copyright (c) 2000-2010 the FFmpeg developers
  built on Jan 30 2011 17:04:59 with gcc 4.4.4
  configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --
 mandir=/usr/share/man --enable-static --enable-shared --cc=x86_64-pc-linux-
 gnu-gcc --enable-gpl --enable-version3 --enable-postproc --enable-avfilter
 --
 disable-stripping --disable-debug --disable-doc --disable-network
 --disable-
 static --disable-vdpau --enable-libmp3lame --enable-libvorbis
 --enable-libx264
 --enable-libxvid --enable-libfaac --enable-nonfree --disable-indev=v4l --
 disable-indev=oss --disable-indev=jack --enable-x11grab
 --disable-outdev=oss
 --enable-libopencore-amrwb --enable-libopencore-amrnb --enable-librtmp --
 disable-altivec --cpu=core2 --enable-hardcoded-tables
  libavutil 50.33. 0 / 50.33. 0
  libavcore  0.13. 0 /  0.13. 0
  libavcodec52.96. 0 / 52.96. 0
  libavformat   52.84. 0 / 52.84. 0
  libavdevice   52. 2. 2 / 52. 2. 2
  libavfilter1.62. 0 /  1.62. 0
  libswscale 0.12. 0 /  0.12. 0
  libpostproc   51. 2. 0 / 51. 2. 0
 [x11grab @ 0x1a52510] device: :0.0 - display: :0.0 x: 0 y: 0 width: 1024
 height: 768
 [x11grab @ 0x1a52510] shared memory extension  found
 [x11grab @ 0x1a52510] Estimating duration from bitrate, this may be
 inaccurate
 Input #0, x11grab, from ':0.0':
  Duration: N/A, start: 1309180986.812527, bitrate: 629145 kb/s
Stream #0.0: Video: rawvideo, bgra, 1024x768, 629145 kb/s, 25 tbr, 1000k
 tbn, 25 tbc
 [buffer @ 0x1a7db80] w:1024 h:768 pixfmt:bgra
 [ffsink @ 0x1a7ddf0] auto-inserting filter 'auto-inserted scaler 0' between
 the filter 'src' and the filter 'out'
 [scale @ 0x1a7e110] w:1024 h:768 fmt:bgra - w:1024 h:768 fmt:yuv420p
 flags:0xa004
 Output #0, mp4, to '/tmp/out.mp4':
  Metadata:
encoder : Lavf52.84.0
Stream #0.0: Video: mpeg4, yuv420p, 1024x768 [PAR 1:1 DAR 4:3], q=2-31,
 200 kb/s, 25 tbn, 25 tbc
 Stream mapping:
  Stream #0.0 - #0.0
 Press [q] to stop encoding
 frame=   14 fps=  0 q=0.0 size= 702kB time=0.68 bitrate=8454.1kbits/s
 dup=frame=   27 fps= 25 q=0.0 size=1056kB time=1.20
 bitrate=7212.1kbits/s
 dup=frame=   40 fps= 25 q=0.0 size=1411kB time=1.72
 bitrate=6720.9kbits/s
 dup=
 [snip...]


 Then it plays it as such:

 mplayer /tmp/out.mp4
 MPlayer SVN-r32624-4.4.4 (C) 2000-2010 MPlayer Team

 Playing /tmp/out.mp4.
 libavformat file format detected.
 [lavf] stream 0: video (mpeg4), -vid 0
 VIDEO:  [MP4V]  1024x768  24bpp  25.000 fps  5798.3 kbps (707.8 kbyte/s)
 Clip info:
  major_brand: isom
  minor_version: 512
  compatible_brands: isomiso2mp41
  encoder: Lavf52.84.0
 ==
 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
 Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
 ==
 Audio: no sound
 Starting playback...
 Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
 VO: [xv] 1024x768 = 1024x768 Planar YV12
 V:  19.1   0/  0  5%  0%  0.0% 0 0


 Exiting... (End of file)


 Not sure how to define the vcodec to be h264.  Is ffodivx the same as h264?


   Now, I hope I'm not getting greedy, but how do I add voice recording to
   the above stanza?  Or do I have to record voice and then package it
   along with the video in a container as a separate step?
 
  EXAMPLES
 Video and Audio grabbing
 FFmpeg can grab video and audio from devices given that you
 specify
  the input format and device.
 
 ffmpeg -f oss -i /dev/dsp -f video4linux2 -i /dev/video0
  /tmp/out.mpg
 
 Note that you 

Re: [gentoo-user] chrome and everything

2011-06-02 Thread Leonardo Guilherme
2011/6/2 András Csányi sayusi.a...@gmail.com

 Hi All,

 Something strange happen here. I have seen few things in Linux world
 but this is very new for me!

 I have this fantastic browser called Chromium (12.0.742.68) and I
 really like it. But, sometimes, when I see flash videos on different
 sites (youtube, cnn, bbc) the whole chromium become frozen and basicly
 impossible to kill it. (The comfortable way is left click on the
 taskbar and choose Close and KDE takes care of to kill the
 application. ) I'm aware of I'm using Linux and the Linux desktop and
 the flash are not the best friends ever. So my usual activity if my
 browser become frozen by flash is the next: (1), start a konsole, (2),
 start htop, (3) and kill the process, (4) restart the browser, (5)
 happy.
 But, in this case, htop doesn't start. I can see the prompt and the
 command htop but the cursor is disappeared and nothing. Just waiting
 for something. The konsole doesn't react CTRL-c. I've tried this in
 xterm terminal and the result was the same. In normal case I examine
 the htop process by strace but I can't figure out what is the PID
 number because of ps aux (see below). Usually I'm using strace from
 htop.

 I thought ok, no problem, I'm well experienced linux user and I know
 there always is another way to kill a process. So, I typed ps aux |
 grep chrom command and the result was the same as htop. I could see
 the prompt and my command and nothing. The cursor is disappeared and
 nothing. We waited for something. Here I thought that the X server
 could be the root cause. I pushed CTRL-DEL-F1 and I thought that here
 is my little console and I'm able to do everything. But the result
 was the same when I wanted to start htop.

 Here was the point when I became angry and restarted my machine. The
 restarting process stopped at Terminating processes and my machine
 didn't restart just wait for something for minutes! I had to push
 reset button after 5 minutes.

 Strange, isn't?

 Has anybody any thought, idea what the hell happen?


Those lockups reminds me of hard disks lockups, when nothing works anymore
exepct what was already been loaded on RAM. Maybe flash/chrome is writing to
a broken area of your disk. Check the HD light, weird noises. Or RAM. I have
no such problems of things crashing with flash, but had experienced flash UI
lockups in the past.

Why don't you test with another browsers? That will help identifying the
problem. Check dmesg, too, it might give you some tips of failed disk.

My two cents.
Good luck.

Leonardo.


Re: [gentoo-user] Compare two Gentoo machines - please help

2011-05-17 Thread Leonardo Guilherme
Leonardo


2011/5/17 Paul Hartman paul.hartman+gen...@gmail.com

 On Tue, May 17, 2011 at 8:42 AM, Helmut Jarausch
 jarau...@igpm.rwth-aachen.de wrote:
  Hi,
 
  I have two (nearly) identical machines, both running ~amd64 Gentoo up-
  to-date and with a (nearly) identical set of installed packages.
 
  Still, on one of these machines KDE crashes with that infamous polkit-
  kde-authentication-agent-1 segmentation fault.
 
  On the other machine there is no problem.
 
  How can one smartly compare two Gentoo installations.
 
  Currently I would have to produce an md5sum of all files in
  /etc /usr /var and / and compare these. But there are dozens of
  thousands of files in these directories.

 You could use rsync with –dry-run to tell you what's different
 (without actually transferring any files), or you could perhaps use
 diff over ssh to compare a whole tree at once.


I would go with Paul's rsync solution.

Leonardo


Re: [gentoo-user] KDE4.6 with two monitors does not respect boundaries/edges between them

2011-05-17 Thread Leonardo Guilherme
2011/5/17 Florian Philipp li...@binarywings.net

 Am 17.05.2011 22:22, schrieb Mick:
  It seems that some setting changed from the 4.5 to 4.6 because now the
  boundaries between the two monitors are no longer respected.  Let me try
 to
  explain:
 
  In KDE4.5 if I were to maximise a window of an application while it was
  positioned say in the left monitor, it would maximise to occupy all of
 the
  real estate in the left monitor only.  If the application was in the
 right
  monitor, it would maximise to occupy only the right monitor.
 
  Also in KDE4.5 moving an application window near the ends of a monitor
 would
  snap to the edge even if this was the vertical edge between the two
 monitors.
 
  In KDE4.6 application windows maximise across both screens and there's no
  snapping into the edge at the middle.
 
  Finally, I can no longer set different wallpapers for the two monitors.
 
  Is there some setting I could use to fix this?

 I had the same problem. You have to enable the xinerama use flag, even
 if you do not intend to configure xinerama.

 euse -E xinerama  emerge -av --reinstall changed-use world

 will do the job.

 Hope this helps,
 Florian Philipp


I had the very same problem and I can confirm that using the xinerama flag
fixes it.

I'm using fglrx drivers, also I have defined two Screens in my
xorg.conf.d, I don't know if it has something to do with it (tried multiple
solutions and when things got working i just left it untouched).

Leonardo


Re: [gentoo-user] How's the openrc update going for everyone?

2011-05-10 Thread Leonardo Guilherme
Works without a flaw. x86 here.

Leonardo


2011/5/10 Manuel McLure man...@mclure.org

 On Tue, May 10, 2011 at 2:55 PM, Dale rdalek1...@gmail.com wrote:
  I was curious, what's the results of the openrc update for people that
 have
  done theirs?  Is it pretty simple and just works or are there issues?
  I'm
  mostly interested in x86 and amd64 since that is what I have.  Just a
 simple
  works here and I'm X86 or amd64 would be nice.  List issues if you had
 any.

 On my dedicated MythTV box, the major problem I had was that neither
 net.eth0 nor net.eth1 started up once I deleted /etc/conf.d/rc and
 went to /etc/rc.conf. This is possibly due to the hotplug settings
 which IMHO weren't clear in /etc/rc.conf. Fixed by simply adding
 net.eth0 and net.eth1 to the default runlevel and everything is fine
 now.

 I think that a guide specifying exactly how to migrate from
 /etc/conf.d/rc to rc.conf, setting by setting, would be good. Please
 read through /etc/rc.conf and /etc/conf.d/rc and migrate the settings
 doesn't cut it when the syntax and semantics of some settings are so
 different. Also, I'm accustomed to having configuration files show the
 default value commented out, but for example in this case the
 commented out value was

 #rc_hotplug=*

 which was the exact opposite of the default which is !*.
 --
 Manuel A. McLure WW1FA man...@mclure.org http://www.mclure.org
 ...for in Ulthar, according to an ancient and significant law,
 no man may kill a cat.   -- H.P. Lovecraft