Re: [gentoo-user] Re: kernel panic -- finding proper config diff - RESOLVED

2009-10-24 Thread Maxim Wexler
fyi, sound card problems when updating to 2.6.30 seem to be common.
Typically the boot msg is something like unknown hardware
initializing by guess method

The fix seem to be just to run alsaconf and follow the prompts.

On 10/23/09, Maxim Wexler maxim.wex...@gmail.com wrote:

 Well, whatever changes you made to .config fixed the original panic,
 so I'd start by diff'ing the first .config with the new .config (or

 After some more tweaking 2.6.30-r7 boots successfully, except for an
 error with the sound card famous which should be easy to fix /last
 words

 mw
 .




Re: [gentoo-user] Re: ATI X trouble, again

2009-10-24 Thread Alex Schuster
Mark Knecht writes:

 BTW - EVERY problem I was having when I dealt with this sort of thing
 a couple of months ago was visible in some sense in the Xorg.0.log
 files. I would look for errors, figure out what was causing them,
 mostly being config issues in my case, and then fix them and try
 again. It really paid to sort of dig into that file and try to look
 closely at every warning message along with the more obvious error
 (EE) messages.

There are only two (EE) errors about input devices, because I have them 
configured manually. The warnings:

(WW) RADEON(0): DRI init changed memory map, adjusting ...
(WW) RADEON(0):   MC_FB_LOCATION  was: 0xefffe000 is: 0xefffe000
(WW) RADEON(0):   MC_AGP_LOCATION was: 0x003f is: 0xffc0
No idea what this is.

(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
Probably harmless, I have this on my desktop system, too.

That's it.
Then I have some blank/disable messages I do not understand at the bottom. 
On my desktop system, where I at least got some unaccelerated X output with 
the radeon driver, I have some of them, but fewer.

Output CRT1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
(II) RADEON(0): RADEONRestoreMemMapRegisters() : 
(II) RADEON(0):   MC_FB_LOCATION   : 0xefffe000 0xefffe000
(II) RADEON(0):   MC_AGP_LOCATION  : 0x003f
(II) RADEON(0): avivo_restore !
Enable CRTC 1 success
Unblank CRTC 1 success
Enable CRTC 0 success
Unblank CRTC 0 success
(WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
(II) No APM support in BIOS or kernel
(II) AIGLX: Resuming AIGLX clients after VT switch
Output CRT1 disable success
Output CRT2 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
Output CRT1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Mode 1280x1024 - 1688 1066 5
(II) RADEON(0): RADEONRestoreMemMapRegisters() : 
(II) RADEON(0):   MC_FB_LOCATION   : 0xefffe000 0xefffe000
(II) RADEON(0):   MC_AGP_LOCATION  : 0xffc0
freq: 13500
best_freq: 13500
best_feedback_div: 50
best_ref_div: 2
best_post_div: 5
(II) RADEON(0): crtc(0) Clock: mode 135000, PLL 135000
(II) RADEON(0): crtc(0) PLL  : refdiv 2, fbdiv 0x32(50), pdiv 5
Set CRTC 0 PLL success
Set CRTC Timing success
Set CRTC 0 Overscan success
Not using RMX
scaler 0 setup success
Set CRTC 0 Source success
crtc 0 YUV disable setup success
Output DAC1 setup success
Output CRT1 enable success
Enable CRTC 0 success
Unblank CRTC 0 success
Output CRT2 disable success
Blank CRTC 1 success
Disable CRTC 1 success
(II) RADEON(0): [RESUME] Attempting to re-init Radeon hardware.
(II) Configured Mouse: ps2EnableDataReporting: succeeded
(II) AIGLX: Suspending AIGLX clients for VT switch
Output CRT1 disable success
Blank CRTC 0 success
Disable CRTC 0 success
Blank CRTC 1 success
Disable CRTC 1 success
(II) RADEON(0): RADEONRestoreMemMapRegisters() : 
(II) RADEON(0):   MC_FB_LOCATION   : 0xefffe000 0xefffe000
(II) RADEON(0):   MC_AGP_LOCATION  : 0x003f
(II) RADEON(0): avivo_restore !
Enable CRTC 1 success
Unblank CRTC 1 success
Enable CRTC 0 success
Unblank CRTC 0 success
(II) UnloadModule: mouse
(II) UnloadModule: kbd
(II) RADEON(0): [drm] removed 1 reserved context for kernel
(II) RADEON(0): [drm] unmapping 8192 bytes of SAREA 0x1efff000 at 
0x7fe96dacf000
(II) RADEON(0): [drm] Closed DRM master.


 I also got help on the same ATI list you were pointed out. Very helpful
  folks.

Thanks, I will go there.

Wonko



Re: [gentoo-user] Has MySQL become compulsory?

2009-10-24 Thread Volker Armin Hemmann
On Samstag 24 Oktober 2009, Dave Jones wrote:
 Alan McKinnon wrote on 24/10/09 01:39:
  On Saturday 24 October 2009 01:25:44 Dave Jones wrote:
  Ran an eix-sync followed by an emerge -puDNv world.
  It reported that my 'profile' was no longer supported, and suggested
  switching to the 'default/linux/x86/10.0/desktop', which I did.
 
  Retried the emerge -puDNv world, with the following result:
  emerge: there are no ebuilds built with USE flags to satisfy
  =x11-libs/qt-sql-4.5.0:4[mysql].
  !!! One of the following packages is required to complete your request:
  - x11-libs/qt-sql-4.5.2 (Change USE: +mysql)
  (dependency required by app-office/akonadi-server-1.2.1 [ebuild])
  (dependency required by kde-base/kdepimlibs-4.3.1 [ebuild])
  (dependency required by kde-base/kdnssd-4.3.1 [ebuild])
  (dependency required by kde-base/kcontrol-4.3.1 [ebuild])
  (dependency required by kde-base/kdebase-meta-4.3.1 [ebuild])
  (dependency required by world [argument])
 
  Result of 'eix x11-libs/qt-sql' :
  I do not want either mysql or KDE4 on my 'stable' desktop host.
  Any ideas what's happening?  Or how to fix it without installing mysql?
 
  This has been hashed to death many many many many times in recent weeks.
  Just like the KDE upgrade before that, and the libxcb thing, xorg-1.6,
  and dbus/hal.
 
  Please search the mail archives. Or read your elogs, it's all in there.
 
 Alan, thank you for your 'RTFM' reply. which is utterly useless either
 to me or any other follower of the gentoo-user mail group.
 
 My question concerns an apparent new requirement for mysql. Your asides
 about xorg-1.6, libxcb, dbus/hal do not seem to be relevant in any way.
 
 Any (helpful) takers out there?
 
 Cheers, Dave
 

well, how to mask packages to prevent the installation of unwanted versions 
has been hashed to death many, many many times too..



Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-24 Thread Neil Bothwick
On Fri, 23 Oct 2009 22:05:19 -0600, Maxim Wexler wrote:

 900a

[tons of bottom quoting snipped]

I'm sure my 900 had working cursor and delete keys.


-- 
Neil Bothwick

There is so much sand in Northern Africa that if it were spread out it
would completely cover the Sahara Desert.


signature.asc
Description: PGP signature


Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-24 Thread Neil Bothwick
On Fri, 23 Oct 2009 15:57:10 -0600, Maxim Wexler wrote:

 Since LiveDvD-10.1 boots, albeit buggily, on the netbook. I tried to
 use the kernel config provided with it. I ran make oldconfig then
 opened up the menu and whittled away the extraneous modules, built the
 new kernel, installed it and rebooted. This time, after a flurry of
 red exclamation points, it reached the login and crashed there.

Could be over-zealous whittling. Why not use the Live DVD .config
unchanged?


-- 
Neil Bothwick

We've all heard that a million monkeys banging on a million
typewriters will eventually reproduce the works of Shakespeare.
Now, thanks to the Internet, we know this is not true.


signature.asc
Description: PGP signature


Re: [gentoo-user] Has MySQL become compulsory?

2009-10-24 Thread Neil Bothwick
On Sat, 24 Oct 2009 02:02:16 +0200, Dave Jones wrote:

 Alan, thank you for your 'RTFM' reply. which is utterly useless either
 to me or any other follower of the gentoo-user mail group.

Seeing as how this has been discussed in the last two days, I don't see
how Alan's advice is useless. The question has been asked and people have
taken the time and trouble to answer it. Why should they do it again when
you could just as easily find the previous answer yourself.


-- 
Neil Bothwick

If Microsoft made cars:
The airbag system would ask are you sure? before deploying.


signature.asc
Description: PGP signature


Re: [gentoo-user] Has MySQL become compulsory?

2009-10-24 Thread Dirk Heinrichs
Am Samstag 24 Oktober 2009 02:02:16 schrieb Dave Jones:
  Please search the mail archives. Or read your elogs, it's all in there.
 
 Alan, thank you for your 'RTFM' reply. which is utterly useless either
 to me or any other follower of the gentoo-user mail group.

It's neither useless to you nor to anybody else. The question has been 
answered here several times in the past couple of days and way before that in 
your very own portage news. So pointing you to the list archives or elogs 
gives you evrything you need to solve your problem.

Bye...

Dirk


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


[gentoo-user] Can not get Hotkeys to work after update to KDE4

2009-10-24 Thread Dan Johansson
After updating from KDE3.5 to KDE4.3.1 I can not get my Hotkeys to work.
For example the following the following two Hotkeys
1) I want the PrintScreen button to start ksnapshot and I activated the 
Printscreen action in System Settings - Input Actions - Preset Action - 
Printscreen.
2) I want to start dolphin when I press Win+E, and have defined an action in 
System Settings - Input Actions - DJ - Dolphin when pressing Win+E

But non of these works. Nothings happens when I press the keys.

Here is some output from xev when pressing PrintScreen and then Win+E
8---
FocusOut event, serial 34, synthetic NO, window 0x4c1,
mode NotifyGrab, detail NotifyAncestor

FocusIn event, serial 34, synthetic NO, window 0x4c1,
mode NotifyUngrab, detail NotifyAncestor

KeymapNotify event, serial 34, synthetic NO, window 0x0,
keys:  2   0   0   0   0   0   0   0   0   0   0   0   0   8   0   0
   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0   0

KeyRelease event, serial 34, synthetic NO, window 0x4c1,
root 0x253, subw 0x0, time 61843589, (-314,-249), root:(2064,523),
state 0x10, keycode 107 (keysym 0xff61, Print), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x4c1,
root 0x253, subw 0x0, time 61935723, (-315,-170), root:(2063,602),
state 0x10, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False

KeyPress event, serial 34, synthetic NO, window 0x4c1,
root 0x253, subw 0x0, time 61935987, (-315,-170), root:(2063,602),
state 0x50, keycode 26 (keysym 0x65, e), same_screen YES,
XLookupString gives 1 bytes: (65) e
XmbLookupString gives 1 bytes: (65) e
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x4c1,
root 0x253, subw 0x0, time 61936067, (-315,-170), root:(2063,602),
state 0x50, keycode 26 (keysym 0x65, e), same_screen YES,
XLookupString gives 1 bytes: (65) e
XFilterEvent returns: False

KeyRelease event, serial 34, synthetic NO, window 0x4c1,
root 0x253, subw 0x0, time 61936123, (-315,-170), root:(2063,602),
state 0x50, keycode 133 (keysym 0xffeb, Super_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
8---
Any suggestions?

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



Re: [gentoo-user] Can't block pop3 attack

2009-10-24 Thread Robin Atwood
On Saturday 24 October 2009, Alan McKinnon wrote:
 On Friday 23 October 2009 21:49:42 Robin Atwood wrote:
  My syslog is showing zillions of messages:
 
  Oct 24 02:25:58 opal xinetd[8054]: START: pop-3 pid=16534
   from=61.134.64.199 Oct 24 02:25:59 opal xinetd[16534]: warning:
   /etc/hosts.allow, line 7: can't verify hostname:
   gethostbyname(199.64.134.61.broad.gs.dynamic.163data.com.cn) failed
  Oct 24 02:26:09 opal xinetd[8054]: EXIT: pop-3 status=0 pid=16534
  duration=11(sec)
 
  I run denyhosts but don't trap pop3 messages so I manually added the IP
  address to /etc/hosts.deny and..., it made absolutely no difference. I
  run qpopper which is compiled with xinetd support and xinetd uses tcpd,
  so I assumed the address would be blocked. Apparently not so. Any ideas?
 
 You have allow ALL ALL early in hosts.allow, or
 you have allow pop3 all earlier in hosts.allow
 
The second! I had forgotten about that. The trouble I set it up that way so I 
could pick up email from arbitrary locations while travelling. It seems the 
price of that is allowing idiots to spam your logs. 

Thanks for the pointer.
-Robin
-- 
--
Robin Atwood.

Ship me somewheres east of Suez, where the best is like the worst,
 Where there ain't no Ten Commandments an' a man can raise a thirst
 from Mandalay by Rudyard Kipling
--











[gentoo-user] firefox dies on setting master password

2009-10-24 Thread William Kenworthy
I am having some weird problems on a laptop after the latest X and gnome
2.26 upgrades.

Firefox is the most pressing - I cant set a master password.  It just
dissappears - no mesg in the terminal, no dmesg, no messages log, ...

Ive rebuilt firefox, and nss and used revdep-rebuild.

It was working for awhile - it is possibly related to trying to fix
mimetypes (I am missing some icons in Evolution and few other apps) but
cant see the connection.  Deleting .mozilla allows firefox to run -
until I try and set the master password again ...

BillK

-- 
William Kenworthy bi...@iinet.net.au
Home in Perth!




Re: [gentoo-user] Re: kernel panic -- finding proper config diff

2009-10-24 Thread Stroller


On 22 Oct 2009, at 19:50, Alan McKinnon wrote:

On Thursday 22 October 2009 20:17:46 Maxim Wexler wrote:

Why not copy over the .29 config and run make oldconfig?


I thought of that, but isn't there too much difference in the
versions? I read somewhere that taking to big a leap between versions
is unsafe. Not to mention the great whack of new options. If you do a
diff -y between the two configs there are lots of gaps.



That's version jumps like 2.4 to 2.6

The 2.6 development model is small incremental steps, so the odds  
are always
in your favour that it will work just fine. Occasionally you might  
find two
versions that don't like to play nicely with oldconfig but that  
isn't the

norm.

FWIW, I haven't encountered a single problem with the entire 2.6  
range.


There was a change between 2.6.x and 2.6.x+1 where the whole .config  
was rearranged and `make oldconfig` no longer worked. It was a while  
ago, so maybe you don't recall it. I think x was circa 22 or so. It  
was discussed on here at the time, IIRC, and caused filesystems such   
as ext2 (at least) to be unselected if you just ran `make oldconfig`.


Stroller.




Re: [gentoo-user] Has MySQL become compulsory?

2009-10-24 Thread Dave Jones
Neil Bothwick wrote on 24/10/09 09:53:
 On Sat, 24 Oct 2009 02:02:16 +0200, Dave Jones wrote:

 Alan, thank you for your 'RTFM' reply. which is utterly useless either
 to me or any other follower of the gentoo-user mail group.

 Seeing as how this has been discussed in the last two days, I don't see
 how Alan's advice is useless. The question has been asked and people have
 taken the time and trouble to answer it. Why should they do it again when
 you could just as easily find the previous answer yourself.

Another 'RTFM' message, thanks.

I'll answer my own question, including detail which may be useful to
other users:

emerge PyQt with USE=webkit sql

I had installed a few kde-meta packages rather than the full kde-meta.

eix -I kde | grep meta  list your installed kde-meta packages

Add the kde4 versions of those meta packages to package.mask:

(Sample) package.mask to mask kde4:

=kde-base/kdeaddons-meta-4*
=kde-base/kdeadmin-meta-4*
=kde-base/kdeartwork-meta-4*
=kde-base/kdebase-meta-4*
=kde-base/kdemultimedia-meta-4*
=kde-base/kdeutils-meta-4*
# Mask non-meta kde installed package:
=kde-base/kdenetwork-filesharing-4*
# Requires kdelibs-4, mask
=media-video/kmplayer-0.11*
# Required by kde4, requires mysql by default.
app-office/akonadi-server



Re: [gentoo-user] Re: What happened to boot.msg?

2009-10-24 Thread covici
Peter Ruskin peter.rus...@dsl.pipex.com wrote:

 On Friday 23 October 2009 19:00:34 Peter Ruskin wrote:
  On Friday 23 October 2009 16:11:25 walt wrote:
   On 10/23/2009 07:18 AM, Peter Ruskin wrote:
I just got a new computer and I'm running ~amd64 for the
first time. On my previous x86 machine (some of) the boot
process was logged to /var/log/boot.msg.  It doesn't do this
on the new machine and I can't for the life of me recall what
setting invoked this behaviour.   Help??
  
   /etc/conf.d/rc
 
  Thanks for the reminder, walt.  I have RC_BOOTLOG=yes stored
  there and had emerged app-admin/showconsole and don't have boot
  splash, but I still don't get /var/log/boot.msg.
 
 Ahhh ... I found it.  It's now stored in /var/log/rc.log.
However, mine is an empty file even though I have rc_logger=yes


-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



Re: [gentoo-user] Re: What happened to boot.msg?

2009-10-24 Thread covici
William Hubbs willi...@gentoo.org wrote:

 On Fri, Oct 23, 2009 at 07:00:34PM +0100, Peter Ruskin wrote:
  On Friday 23 October 2009 16:11:25 walt wrote:
   On 10/23/2009 07:18 AM, Peter Ruskin wrote:
I just got a new computer and I'm running ~amd64 for the first
time. On my previous x86 machine (some of) the boot process was
logged to /var/log/boot.msg.  It doesn't do this on the new
machine and I can't for the life of me recall what setting
invoked this behaviour.   Help??
  
   /etc/conf.d/rc
  
  Thanks for the reminder, walt.  I have RC_BOOTLOG=yes stored there 
  and had emerged app-admin/showconsole and don't have boot splash, 
  but I still don't get /var/log/boot.msg.
  
  If you are running ~amd64 you are probably using baselayout-2 and
  openrc.  In that case the file you should be looking at is /etc/rc.conf and 
 you
  should not use app-admin/showconsole.
 
 Just set RC_LOGGER to yes as shown in the comments.
I discovered that the reason its blank is there is something rotating
the file, even though I don't have it in logrotate.conf or logrotate.d
-- very strange.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici
 cov...@ccs.covici.com



[gentoo-user] Re: firefox dies on setting master password

2009-10-24 Thread walt

On 10/24/2009 02:51 AM, William Kenworthy wrote:

I am having some weird problems on a laptop after the latest X and gnome
2.26 upgrades.

Firefox is the most pressing - I cant set a master password.  It just
dissappears - no mesg in the terminal, no dmesg, no messages log, ...

Ive rebuilt firefox, and nss and used revdep-rebuild.

It was working for awhile - it is possibly related to trying to fix
mimetypes (I am missing some icons in Evolution and few other apps) but
cant see the connection.  Deleting .mozilla allows firefox to run -
until I try and set the master password again ...


You could start firefox with the -g flag to run it in gdb and see where
it crashes (if you're lucky).

I saw the missing icons too, but sadly I can't remember how I fixed it.
I think I re-installed gnome-mime-data and gnome-mime-info, but I can't
remember if that's what did it.  Sorry I can't be more helpful.




[gentoo-user] Re: Copying settings from Konqueror-3.5 to 4.3

2009-10-24 Thread Thorsten Kampe
* Etaoin Shrdlu (Fri, 23 Oct 2009 10:35:48 +0100)
 
 On Thursday 22 October 2009, Alex Schuster wrote:
 
   I did
  
   cp -a .kde3.5 .kde4
  
   and all the settings (not just only konqueror's) were picked up.
 
  That did not work for me, all windows had no window title then. But it
  worked fine for partial applications when I copied just their data over.
  For konqueror, that would probably be share/config/konquerrorrc and
  share/apps/konqueror/.
 
 Yeah, I've seen mixed outcomes when doing that. I was probably lucky.
 
 What I really did was:
 
 1) save the vanilla .kde directory that was created when kde4 first started 
 up, to have a safe rollback in case something goes wrong
 
 2) cp -a the .kde3.5 dir to .kde4, as said
 
 3) check that things were mostly correct, and if not rollback to the saved 
 .kde dir I created in step 1

~/.kde is a symlink to ~/.kde3.5. So there is nothing to backup or 
restore.

Thorsten




[gentoo-user] Re: Machine reboots immediately when suspended-to-disk

2009-10-24 Thread Peter Weilbacher
On 24.10.2009 03:37, waltd...@waltdnes.org wrote:
 On Fri, Oct 23, 2009 at 10:04:52AM +0200, Peter Weilbacher wrote
 
 How would you do history searches without a database?
 
   If you don't know how, I suggest checking the Firefox 2.x code.  It
 worked somehow.

Yeah, I am reading the sources daily and have done so for several years
nw. FF 2.x used a different database. One which was far less efficient,
more crash prone, and has been unmaintained for several years before.

 On Linux using SQLite in Firefox actually slimmed down the browser
 code (compared to the version that still used mork), as it uses the
 system version for the database.
 
   Yeah sure, just like ie.exe isn't bloated.  Mind you, the system
 libraries that ie.exe calls are another story.

OK, so you are just screaming without having any clue.
   P.




[gentoo-user] ebuild help: java main class?

2009-10-24 Thread Grant
I'm trying to fix up the JAlbum ebuild:

http://bugs.gentoo.org/show_bug.cgi?id=128356

and get it to use java-pkg-2.  Here's what I have so far:

inherit java-pkg-2 eutils

S=${WORKDIR}/Jalbum
DESCRIPTION=Web photo album generator
HOMEPAGE=http://jalbum.net/;
SRC_URI=http://jalbum.net/download/Jalbum${PV}.zip;

LICENSE=as-is
SLOT=0
KEYWORDS=x86
IUSE=

DEPEND==virtual/jre-1.5
RDEPEND=${DEPEND}

src_install() {
java-pkg_dojar JAlbum.jar
java-pkg_dolauncher jalbum \
--jar JAlbum.jar \
--java_args -Xmx400M

local dest=/usr/lib/${PN}
dodir ${dest}
cp -R ${S}/* ${D}/${dest} || die Install failed

doicon ${FILESDIR}/Jalbum-icon.png
make_desktop_entry ${PN}
}

It executes just fine, but I get:

$ jalbum
Error: se.datadosen.jalbum.JAlbum
java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at se.datadosen.jalbum.Main.main(Main.java:23)

I was told I need to define the main class with --main.  Does anyone
know how to determine what the main class should be?

- Grant



[gentoo-user] Kmplayer, video and audio not syncing.

2009-10-24 Thread Dale
Hi,

I'm still using KDE 3.5 for this but this is annoying at times.  I'm
looking for a way to adjust the audio/video so that they sync up.  Mine
seems to be about 1.5 to 2 seconds out of adjustment here.  I googled
and found that the + and - keys should adjust this but I can't tell that
it is working here.  Is there some other way to adjust this setting? 
I'm using kmplayer with mplayer for the backend.

INFO:

 r...@smoker / # emerge -pv kmplayer mplayer

 These are the packages that would be merged, in order:

 Calculating dependencies ... done!
 [ebuild   R   ] media-video/mplayer-1.0_rc2_p20090731  USE=3dnow X
 aac alsa ass cddb cdio dirac dv dvd dvdnav enca encode esd faac faad
 gif iconv ipv6 jpeg live mad mmx mng mp2 mp3 network opengl osdmenu
 png quicktime rar real rtc schroedinger sdl shm speex sse tremor
 truetype unicode vorbis win32codecs x264 xscreensaver xv xvid
 -3dnowext -a52 -aalib (-altivec) -bidi -bindist -bl -cdparanoia
 -cpudetection -custom-cflags -custom-cpuopts -debug -dga -directfb
 -doc -dts -dvb -dxr3 -fbcon -ftp -ggi -gmplayer -jack -joystick
 -ladspa -libcaca -lirc -lzo -md5sum -mmxext -nas -openal -oss -pnm
 -pulseaudio -pvr -radio -samba -sse2 -ssse3 -svga -teletext -tga
 -theora -v4l -v4l2 -vdpau -vidix -xanim -xinerama -xvmc -zoran
 VIDEO_CARDS=nvidia -mga -s3virge -tdfx -vesa 0 kB
 [ebuild   R   ] media-video/kmplayer-0.11.1b  USE=cairo (-aqua)
 -debug -doc -expat -npp LINGUAS=-cs -da -de -el -en_GB -es -et -fr
 -ga -gl -it -ja -km -ku -lt -lv -mai -nb -nds -nl -nn -pl -pt -pt_BR
 -ro -ru -sk -sv -tr -uk 0 kB

 Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
 r...@smoker / #

Ideas?

Dale

:-)  :-)




Re: [gentoo-user] Has MySQL become compulsory?

2009-10-24 Thread Alan McKinnon
On Saturday 24 October 2009 14:58:00 Dave Jones wrote:
 Neil Bothwick wrote on 24/10/09 09:53:
  On Sat, 24 Oct 2009 02:02:16 +0200, Dave Jones wrote:
  Alan, thank you for your 'RTFM' reply. which is utterly useless either
  to me or any other follower of the gentoo-user mail group.
 
  Seeing as how this has been discussed in the last two days, I don't see
  how Alan's advice is useless. The question has been asked and people have
  taken the time and trouble to answer it. Why should they do it again when
  you could just as easily find the previous answer yourself.
 
 Another 'RTFM' message, thanks.
 
 I'll answer my own question, including detail which may be useful to
 other users:

It's only useless so you since you have not done the usual research yourself 
yet; and it will continue to be useless until you do so.

As others have said, the answer is in the list archives. The detail contained 
therein is likely even more than you need, but it is there. The asides I 
listed are there to demonstrate and point out that large numbers of similar 
questions are also repeatedly answered therein, along with the multitude of 
repeat posts on their respective subjects.

I'm sorry you found my answer less than informative and perhaps even somewhat 
insulting, obviously I worded it incorrectly. But you see, your aw gawd, an 
'RTFM' answer... is the identical reaction to my original aw gawd, a 'do my 
homework for me' question.

Ponder that a little.

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Kmplayer, video and audio not syncing.

2009-10-24 Thread Alan McKinnon
On Saturday 24 October 2009 22:16:03 Dale wrote:
 Hi,
 
 I'm still using KDE 3.5 for this but this is annoying at times.  I'm
 looking for a way to adjust the audio/video so that they sync up.  Mine
 seems to be about 1.5 to 2 seconds out of adjustment here.  I googled
 and found that the + and - keys should adjust this but I can't tell that
 it is working here.  Is there some other way to adjust this setting?
 I'm using kmplayer with mplayer for the backend.

Are you sure the input file isn't broken? Does it happen with many files? What 
type of files?

2 seconds is a huge lag, much too big to explain as a mere bug, so I'd be 
looking for other data to correlate first.



 
 INFO:
  r...@smoker / # emerge -pv kmplayer mplayer
 
  These are the packages that would be merged, in order:
 
  Calculating dependencies ... done!
  [ebuild   R   ] media-video/mplayer-1.0_rc2_p20090731  USE=3dnow X
  aac alsa ass cddb cdio dirac dv dvd dvdnav enca encode esd faac faad
  gif iconv ipv6 jpeg live mad mmx mng mp2 mp3 network opengl osdmenu
  png quicktime rar real rtc schroedinger sdl shm speex sse tremor
  truetype unicode vorbis win32codecs x264 xscreensaver xv xvid
  -3dnowext -a52 -aalib (-altivec) -bidi -bindist -bl -cdparanoia
  -cpudetection -custom-cflags -custom-cpuopts -debug -dga -directfb
  -doc -dts -dvb -dxr3 -fbcon -ftp -ggi -gmplayer -jack -joystick
  -ladspa -libcaca -lirc -lzo -md5sum -mmxext -nas -openal -oss -pnm
  -pulseaudio -pvr -radio -samba -sse2 -ssse3 -svga -teletext -tga
  -theora -v4l -v4l2 -vdpau -vidix -xanim -xinerama -xvmc -zoran
  VIDEO_CARDS=nvidia -mga -s3virge -tdfx -vesa 0 kB
  [ebuild   R   ] media-video/kmplayer-0.11.1b  USE=cairo (-aqua)
  -debug -doc -expat -npp LINGUAS=-cs -da -de -el -en_GB -es -et -fr
  -ga -gl -it -ja -km -ku -lt -lv -mai -nb -nds -nl -nn -pl -pt -pt_BR
  -ro -ru -sk -sv -tr -uk 0 kB
 
  Total: 2 packages (2 reinstalls), Size of downloads: 0 kB
  r...@smoker / #
 
 Ideas?
 
 Dale
 
 :-)  :-)
 

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] ebuild help: java main class?

2009-10-24 Thread Alan McKinnon
On Saturday 24 October 2009 22:12:22 Grant wrote:
 I'm trying to fix up the JAlbum ebuild:
 
 http://bugs.gentoo.org/show_bug.cgi?id=128356
 
 and get it to use java-pkg-2.  Here's what I have so far:
 
 inherit java-pkg-2 eutils
 
 S=${WORKDIR}/Jalbum
 DESCRIPTION=Web photo album generator
 HOMEPAGE=http://jalbum.net/;
 SRC_URI=http://jalbum.net/download/Jalbum${PV}.zip;
 
 LICENSE=as-is
 SLOT=0
 KEYWORDS=x86
 IUSE=
 
 DEPEND==virtual/jre-1.5
 RDEPEND=${DEPEND}
 
 src_install() {
 java-pkg_dojar JAlbum.jar
 java-pkg_dolauncher jalbum \
 --jar JAlbum.jar \
 --java_args -Xmx400M
 
 local dest=/usr/lib/${PN}
 dodir ${dest}
 cp -R ${S}/* ${D}/${dest} || die Install failed
 
 doicon ${FILESDIR}/Jalbum-icon.png
 make_desktop_entry ${PN}
 }
 
 It executes just fine, but I get:
 
 $ jalbum
 Error: se.datadosen.jalbum.JAlbum
 java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum
   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
   at se.datadosen.jalbum.Main.main(Main.java:23)
 
 I was told I need to define the main class with --main.  Does anyone
 know how to determine what the main class should be?


What's the line normally used to launch the app at runtime? That, together 
with CLASSPATH will tell you what class should be executed as main()
 

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] ebuild help: java main class?

2009-10-24 Thread Grant
 I'm trying to fix up the JAlbum ebuild:

 http://bugs.gentoo.org/show_bug.cgi?id=128356

 and get it to use java-pkg-2.  Here's what I have so far:

 inherit java-pkg-2 eutils

 S=${WORKDIR}/Jalbum
 DESCRIPTION=Web photo album generator
 HOMEPAGE=http://jalbum.net/;
 SRC_URI=http://jalbum.net/download/Jalbum${PV}.zip;

 LICENSE=as-is
 SLOT=0
 KEYWORDS=x86
 IUSE=

 DEPEND==virtual/jre-1.5
 RDEPEND=${DEPEND}

 src_install() {
     java-pkg_dojar JAlbum.jar
     java-pkg_dolauncher jalbum \
         --jar JAlbum.jar \
         --java_args -Xmx400M

     local dest=/usr/lib/${PN}
     dodir ${dest}
     cp -R ${S}/* ${D}/${dest} || die Install failed

     doicon ${FILESDIR}/Jalbum-icon.png
     make_desktop_entry ${PN}
 }

 It executes just fine, but I get:

 $ jalbum
 Error: se.datadosen.jalbum.JAlbum
 java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum
       at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
       at se.datadosen.jalbum.Main.main(Main.java:23)

 I was told I need to define the main class with --main.  Does anyone
 know how to determine what the main class should be?


 What's the line normally used to launch the app at runtime? That, together
 with CLASSPATH will tell you what class should be executed as main()

There is a file called startjalbum.sh which is supposed to be used to
start the program.  It contains:

#!/bin/sh
java -Xmx400M -jar JAlbum.jar

Does that tell you anything?

- Grant



Re: [gentoo-user] Kmplayer, video and audio not syncing.

2009-10-24 Thread Dale
Alan McKinnon wrote:
 On Saturday 24 October 2009 22:16:03 Dale wrote:
   
 Hi,

 I'm still using KDE 3.5 for this but this is annoying at times.  I'm
 looking for a way to adjust the audio/video so that they sync up.  Mine
 seems to be about 1.5 to 2 seconds out of adjustment here.  I googled
 and found that the + and - keys should adjust this but I can't tell that
 it is working here.  Is there some other way to adjust this setting?
 I'm using kmplayer with mplayer for the backend.
 

 Are you sure the input file isn't broken? Does it happen with many files? 
 What 
 type of files?

 2 seconds is a huge lag, much too big to explain as a mere bug, so I'd be 
 looking for other data to correlate first.


   

Well, it does vary by a bit.  Some are not quite so far off.  I did find
this little tidbit of info in 'console' under view.  This is interesting:

MPlayer SVN-r29463-4.4.1 (C) 2000-2009 MPlayer Team
Terminal type `unknown' is not defined.

libavformat file format detected.
ID_VIDEO_ID=0
[lavf] Video stream found, -vid 0
ID_AUDIO_ID=1
[lavf] Audio stream found, -aid 1
VIDEO:  [H264]  480x360  0bpp  29.917 fps  550.2 kbps (67.2 kbyte/s)
ID_FILENAME=/data/Movies/Movies/Clue Club 03 The Real Gone Gondola Pt 1.flv
ID_DEMUXER=lavfpref
ID_VIDEO_FORMAT=H264
ID_VIDEO_BITRATE=550208
ID_VIDEO_FPS=29.917
ID_AUDIO_FORMAT=255
ID_AUDIO_BITRATE=0
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
ID_SEEKABLE=1
ID_CHAPTERS=0
[gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
Opening video filter: [pp=de]
Opening video filter: [scale]
==
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==
ID_VIDEO_CODEC=ffh264
==
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000-176400)
ID_AUDIO_BITRATE=128000
ID_AUDIO_RATE=44100
ID_AUDIO_NCH=2
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
ID_AUDIO_CODEC=faad
Starting playback...
VDec: vo config request - 480 x 360 (preferred colorspace: Planar YV12)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x8939540]using unscaled yuv420p - rgb32 special converter
VO: [gl] 480x360 = 480x360 BGRA
X11 error: BadMatch (invalid parameter attributes)


   
    Your system is too SLOW to play this!  
   

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
  - Try -ao sdl or use the OSS emulation of ALSA.
  - Experiment with different values for -autosync, 30 is a good start.
- Slow video output
  - Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
  - Don't try to play a big DVD/DivX on a slow CPU! Try some of the
lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
  - Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
  - Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
  - Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.


So, my AMD 2500+ with 2GBs of ram is to slow?  I know this is a older
rig but surely it ain't that slow.  o_O

I also realized something else that may contribute to this a little.  I
started a emerge last night and thought it would be through by now. 
It's still running.  It's compiling OOo and some KDE stuff.  Could that
slow things down a bit?  Everything else seems to be responding fine.  I
have portage set to a lower nice level than my desktop.  I even have
ionice set. 

Ideas?

Dale

:-)  :-) 



Re: [gentoo-user] ebuild help: java main class?

2009-10-24 Thread Alan McKinnon
On Saturday 24 October 2009 22:32:18 Grant wrote:
  I'm trying to fix up the JAlbum ebuild:
 
  http://bugs.gentoo.org/show_bug.cgi?id=128356
 
  and get it to use java-pkg-2.  Here's what I have so far:
 
  inherit java-pkg-2 eutils
 
  S=${WORKDIR}/Jalbum
  DESCRIPTION=Web photo album generator
  HOMEPAGE=http://jalbum.net/;
  SRC_URI=http://jalbum.net/download/Jalbum${PV}.zip;
 
  LICENSE=as-is
  SLOT=0
  KEYWORDS=x86
  IUSE=
 
  DEPEND==virtual/jre-1.5
  RDEPEND=${DEPEND}
 
  src_install() {
  java-pkg_dojar JAlbum.jar
  java-pkg_dolauncher jalbum \
  --jar JAlbum.jar \
  --java_args -Xmx400M
 
  local dest=/usr/lib/${PN}
  dodir ${dest}
  cp -R ${S}/* ${D}/${dest} || die Install failed
 
  doicon ${FILESDIR}/Jalbum-icon.png
  make_desktop_entry ${PN}
  }
 
  It executes just fine, but I get:
 
  $ jalbum
  Error: se.datadosen.jalbum.JAlbum
  java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at se.datadosen.jalbum.Main.main(Main.java:23)
 
  I was told I need to define the main class with --main.  Does anyone
  know how to determine what the main class should be?
 
  What's the line normally used to launch the app at runtime? That,
  together with CLASSPATH will tell you what class should be executed as
  main()
 
 There is a file called startjalbum.sh which is supposed to be used to
 start the program.  It contains:
 
 #!/bin/sh
 java -Xmx400M -jar JAlbum.jar
 
 Does that tell you anything?

Yes, it does. There's a file called JAlbum.jar which contains the app, and 
it's location is visible to the script. There's no path so I'm assuming the 
file is in the current directory.

A .jar is just a special kind of zip file (much like OOo files are). What's 
inside it?

p.s. I don't know how familiar you are with Java's start-up process and how it 
finds things and how you specify things to find. It's somewhat unusual and 
many traps exist for the unwary :-)

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Kmplayer, video and audio not syncing.

2009-10-24 Thread Alan McKinnon
On Saturday 24 October 2009 22:36:59 Dale wrote:
 Alan McKinnon wrote:
  On Saturday 24 October 2009 22:16:03 Dale wrote:
  Hi,
 
  I'm still using KDE 3.5 for this but this is annoying at times.  I'm
  looking for a way to adjust the audio/video so that they sync up.  Mine
  seems to be about 1.5 to 2 seconds out of adjustment here.  I googled
  and found that the + and - keys should adjust this but I can't tell that
  it is working here.  Is there some other way to adjust this setting?
  I'm using kmplayer with mplayer for the backend.
 
  Are you sure the input file isn't broken? Does it happen with many files?
  What type of files?
 
  2 seconds is a huge lag, much too big to explain as a mere bug, so I'd be
  looking for other data to correlate first.
 
 Well, it does vary by a bit.  Some are not quite so far off.  I did find
 this little tidbit of info in 'console' under view.  This is interesting:
 
 MPlayer SVN-r29463-4.4.1 (C) 2000-2009 MPlayer Team
 Terminal type `unknown' is not defined.
 
 libavformat file format detected.
 ID_VIDEO_ID=0
 [lavf] Video stream found, -vid 0
 ID_AUDIO_ID=1
 [lavf] Audio stream found, -aid 1
 VIDEO:  [H264]  480x360  0bpp  29.917 fps  550.2 kbps (67.2 kbyte/s)
 ID_FILENAME=/data/Movies/Movies/Clue Club 03 The Real Gone Gondola Pt 1.flv
 ID_DEMUXER=lavfpref
 ID_VIDEO_FORMAT=H264
 ID_VIDEO_BITRATE=550208
 ID_VIDEO_FPS=29.917
 ID_AUDIO_FORMAT=255
 ID_AUDIO_BITRATE=0
 ID_AUDIO_RATE=44100
 ID_AUDIO_NCH=2
 ID_SEEKABLE=1
 ID_CHAPTERS=0
 [gl] using extended formats. Use -vo gl:nomanyfmts if playback fails.
 Opening video filter: [pp=de]
 Opening video filter: [scale]
 ==
 Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
 Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
 ==
 ID_VIDEO_CODEC=ffh264
 ==
 Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
 AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000-176400)
 ID_AUDIO_BITRATE=128000
 ID_AUDIO_RATE=44100
 ID_AUDIO_NCH=2
 Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
 ==
 FAAD: compressed input bitrate missing, assuming 128kbit/s!
 AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
 ID_AUDIO_CODEC=faad
 Starting playback...
 VDec: vo config request - 480 x 360 (preferred colorspace: Planar YV12)
 [PP] Using external postprocessing filter, max q = 6.
 VDec: using Planar YV12 as output csp (no 0)
 Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
 [swscaler @ 0x8939540]using unscaled yuv420p - rgb32 special converter
 VO: [gl] 480x360 = 480x360 BGRA
 X11 error: BadMatch (invalid parameter attributes)
 
 

 Your system is too SLOW to play this!  

 
 Possible reasons, problems, workarounds:
 - Most common: broken/buggy _audio_ driver
   - Try -ao sdl or use the OSS emulation of ALSA.
   - Experiment with different values for -autosync, 30 is a good start.
 - Slow video output
   - Try a different -vo driver (-vo help for a list) or try -framedrop!
 - Slow CPU
   - Don't try to play a big DVD/DivX on a slow CPU! Try some of the
 lavdopts,
 e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
 - Broken file
   - Try various combinations of -nobps -ni -forceidx -mc 0.
 - Slow media (NFS/SMB mounts, DVD, VCD etc)
   - Try -cache 8192.
 - Are you using -cache to play a non-interleaved AVI file?
   - Try -nocache.
 Read DOCS/HTML/en/video.html for tuning/speedup tips.
 If none of this helps you, read DOCS/HTML/en/bugreports.html.
 
 
 So, my AMD 2500+ with 2GBs of ram is to slow?  I know this is a older
 rig but surely it ain't that slow.  o_O
 
 I also realized something else that may contribute to this a little.  I
 started a emerge last night and thought it would be through by now.
 It's still running.  It's compiling OOo and some KDE stuff.  Could that
 slow things down a bit?  Everything else seems to be responding fine.  I
 have portage set to a lower nice level than my desktop.  I even have
 ionice set.
 
 Ideas?

I haven't snipped - the output might be useful later in the thread.

First, the slow system message always means something, but it's a bit 
generic. It means that mplayer can't process the audio fast enough and like 
the message says is often buggy driver or wrong configs. Try the suggestions 
listed.

An OOo compile in the background will indeed kill interactive processes. I 
find that even on this DualCore2 2.6 notebook with 4G of RAM, building OOo 
sends the load through the roof, especially when it starts printing progress 
lines with lots of dots. It's IO blocking on something and the entire 

Re: [gentoo-user] Has MySQL become compulsory?

2009-10-24 Thread Dave Jones
Alan McKinnon wrote on 24/10/09 22:18:
 Why should they do it again when you could just as easily find
 the previous answer yourself.

 I'll answer my own question, including detail which may be useful
 to other users

 It's only useless so you since you have not done the usual research
 yourself yet; and it will continue to be useless until you do so.

How presumptuous of you to say so.  Has the gentoo-user group become the
resource of last-resort?  Has gentoo-user become restricted, to be used
only when all other avenues of exploration have been exhausted?  If that
is so, then shame on me, I must have missed that announcement too.

 I'm sorry you found my answer less than informative and perhaps even
 somewhat insulting, obviously I worded it incorrectly. But you see,
 your aw gawd, an 'RTFM' answer... is the identical reaction to my
 original aw gawd, a 'do my homework for me' question.

 Ponder that a little.

Your RTFM reply arrived 14 minutes after my question. It clearly showed
that you were aware of the answer to my question. A reference to any of
the relevant threads would have been very helpful, and would have been
much appreciated.

However, an answer which merely states that the question has already
been answered, but lacking any further reference to the existing answer
is utterly worthless.

Please consider the futility of uninformative answers to questions.

Do you seriously believe that a question can only ever be posed (and
answered) once?

You are entirely free to chose whether you answer a question or not.
However, if you don't want to answer in a helpful manner, it would be
better to leave the question unanswered.

Should you wish to discuss this further, feel free to contact me off-list.



Re: [gentoo-user] ebuild help: java main class?

2009-10-24 Thread Grant
  I'm trying to fix up the JAlbum ebuild:
 
  http://bugs.gentoo.org/show_bug.cgi?id=128356
 
  and get it to use java-pkg-2.  Here's what I have so far:
 
  inherit java-pkg-2 eutils
 
  S=${WORKDIR}/Jalbum
  DESCRIPTION=Web photo album generator
  HOMEPAGE=http://jalbum.net/;
  SRC_URI=http://jalbum.net/download/Jalbum${PV}.zip;
 
  LICENSE=as-is
  SLOT=0
  KEYWORDS=x86
  IUSE=
 
  DEPEND==virtual/jre-1.5
  RDEPEND=${DEPEND}
 
  src_install() {
      java-pkg_dojar JAlbum.jar
      java-pkg_dolauncher jalbum \
          --jar JAlbum.jar \
          --java_args -Xmx400M
 
      local dest=/usr/lib/${PN}
      dodir ${dest}
      cp -R ${S}/* ${D}/${dest} || die Install failed
 
      doicon ${FILESDIR}/Jalbum-icon.png
      make_desktop_entry ${PN}
  }
 
  It executes just fine, but I get:
 
  $ jalbum
  Error: se.datadosen.jalbum.JAlbum
  java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at se.datadosen.jalbum.Main.main(Main.java:23)
 
  I was told I need to define the main class with --main.  Does anyone
  know how to determine what the main class should be?
 
  What's the line normally used to launch the app at runtime? That,
  together with CLASSPATH will tell you what class should be executed as
  main()

 There is a file called startjalbum.sh which is supposed to be used to
 start the program.  It contains:

 #!/bin/sh
 java -Xmx400M -jar JAlbum.jar

 Does that tell you anything?

 Yes, it does. There's a file called JAlbum.jar which contains the app, and
 it's location is visible to the script. There's no path so I'm assuming the
 file is in the current directory.

 A .jar is just a special kind of zip file (much like OOo files are). What's
 inside it?

# unzip JAlbum.jar
Archive:  JAlbum.jar
   creating: META-INF/
  inflating: META-INF/MANIFEST.MF
   creating: se/
   creating: se/datadosen/
   creating: se/datadosen/jalbum/
  inflating: se/datadosen/jalbum/AlbumBeanEvent.class
  inflating: se/datadosen/jalbum/AlbumBeanListener.class
  inflating: se/datadosen/jalbum/AlbumEngine.class
  inflating: se/datadosen/jalbum/Main$1.class
  inflating: se/datadosen/jalbum/Main.class
  inflating: se/datadosen/jalbum/MiniConfig.class
  inflating: se/datadosen/jalbum/OperationAbortedException.class
   creating: se/datadosen/tags/
  inflating: se/datadosen/tags/ElementException.class

 p.s. I don't know how familiar you are with Java's start-up process and how it
 finds things and how you specify things to find. It's somewhat unusual and
 many traps exist for the unwary :-)

I'm completely clueless with java.  Thanks a lot for your help thus far.

- Grant



[gentoo-user] Where is the vala overlay?

2009-10-24 Thread Grant
Does anyone know how to get the vala git ebuild (I need vala-0.7.8)?
This page indicates the vala-overlay was merged with the gnome
overlay, but that doesn't seem to be the case:

http://bugs.gentoo.org/179971

- Grant



Re: [gentoo-user] Has MySQL become compulsory?

2009-10-24 Thread Neil Bothwick
On Sat, 24 Oct 2009 23:51:05 +0200, Dave Jones wrote:

 How presumptuous of you to say so.  Has the gentoo-user group become the
 resource of last-resort?  Has gentoo-user become restricted, to be used
 only when all other avenues of exploration have been exhausted?  If that
 is so, then shame on me, I must have missed that announcement too.

Do we now need announcements to tell people that they should search list
archives before posting a question if they do not regularly read list
content?

I suppose you're also in favour of McDonalds putting Warning, contents
may be hot notices of their coffee cups?

It seems to be increasingly unreasonable to expect a certain amount of
common sense and willingness to help oneself, even among Gentoo users.

-- 
Neil Bothwick

I typed Format SER: and accidentally killed a telephone operator!


signature.asc
Description: PGP signature


Re: [gentoo-user] Where is the vala overlay?

2009-10-24 Thread Neil Bothwick
On Sat, 24 Oct 2009 14:54:29 -0700, Grant wrote:

 Does anyone know how to get the vala git ebuild (I need vala-0.7.8)?
 This page indicates the vala-overlay was merged with the gnome
 overlay, but that doesn't seem to be the case:

According to eix, there's a - ebuild in the mpd overlay.


-- 
Neil Bothwick

Teamwork is essential; it gives the enemy other people to shoot at.


signature.asc
Description: PGP signature


Re: [gentoo-user] Can't block pop3 attack

2009-10-24 Thread kashani

Robin Atwood wrote:

On Saturday 24 October 2009, Alan McKinnon wrote:

On Friday 23 October 2009 21:49:42 Robin Atwood wrote:

My syslog is showing zillions of messages:

Oct 24 02:25:58 opal xinetd[8054]: START: pop-3 pid=16534
 from=61.134.64.199 Oct 24 02:25:59 opal xinetd[16534]: warning:
 /etc/hosts.allow, line 7: can't verify hostname:
 gethostbyname(199.64.134.61.broad.gs.dynamic.163data.com.cn) failed
Oct 24 02:26:09 opal xinetd[8054]: EXIT: pop-3 status=0 pid=16534
duration=11(sec)

I run denyhosts but don't trap pop3 messages so I manually added the IP
address to /etc/hosts.deny and..., it made absolutely no difference. I
run qpopper which is compiled with xinetd support and xinetd uses tcpd,
so I assumed the address would be blocked. Apparently not so. Any ideas?

You have allow ALL ALL early in hosts.allow, or
you have allow pop3 all earlier in hosts.allow
 
The second! I had forgotten about that. The trouble I set it up that way so I 
could pick up email from arbitrary locations while travelling. It seems the 
price of that is allowing idiots to spam your logs. 


Thanks for the pointer.
-Robin


You might think about moving to pop3-ssl or imap-ssl and dropping the 
unencrypted protocols. Usually keeps people from banging on the servers 
and much safer if you use the occasional unsecured wireless network.


kashani



[gentoo-user] ASUS EeePC 1000HA : boot query

2009-10-24 Thread Philip Webb
I've got my new toy to boot from USB with SystemRescue 1.3.1 ,
which comes up beautifully with Gentoo using 'Altker32'
(the 'default' kernel boots into some kind of emergency mode);
despite what the intro help says, the desktop manager is Xfce,
which is started via 'wizard'  offers basic useful apps,
eg Terminal Emelfm Firefox Geany Gparted .

There's  1  problem : you hold F2 down to get BIOS,
then use Esc for a boot menu (you have to go in/out of BIOS first).
However, this doesn't work when I first switch the machine on :
M$ XP starts regardless  I have to reboot from there to get BIOS,
the boot menu  the USB (I've disabled 'quiet boot' in BIOS,
but POST msgs still don't appear).  Is this because it takes a few seconds
before the USB stick warms up  gets recognised (its light blinks) ?

This is important: if that's correct, I can wipe out XP
 the machine will still recognise the USB stick  boot,
but if the problem is something else (I don't know what it might be),
I fear risking an unbootable box without even the M$ option remaining.

Can anyone reassure me ?

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




Re: [gentoo-user] Has MySQL become compulsory?

2009-10-24 Thread Alan McKinnon
On Saturday 24 October 2009 23:51:05 Dave Jones wrote:
  I'm sorry you found my answer less than informative and perhaps even
  somewhat insulting, obviously I worded it incorrectly. But you see,
  your aw gawd, an 'RTFM' answer... is the identical reaction to my
  original aw gawd, a 'do my homework for me' question.
 
  Ponder that a little.
 
 Your RTFM reply arrived 14 minutes after my question. It clearly showed
 that you were aware of the answer to my question. A reference to any of
 the relevant threads would have been very helpful, and would have been
 much appreciated.
 

Oh please, grow up, get a life and stop sounding like a spoilt brat.

You expect me to find the links after a search and provide them for you. I 
prefer you to have done that for yourself. 

It would not have been hard, the briefest of scan through the last fortnights 
threads would have revealed where to look in the subject.

I consider this subject closed now. You may continue the discussion with 
others if you wish, but it shall be conducted without me.



-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Uncle: qt-*:4 dependencies/blocks preventing world update

2009-10-24 Thread Mick
On Saturday 24 October 2009 02:46:32 Dale wrote:
 Alan E. Davis wrote:
  I have read a number of different explanations and suggestions, some
  of them regarding an earlier, yet similar, tanglement between versions
  of qt-*.   I've tried a number of suggestions, and I have unmerged and
  remerged packages.
 
  I am now trying to individually merge packages with dependencies on
  qt-*-4.5.2.
 
  I tried KDE 4.3.1, with some trepidation, and I have happily been
  running gnome, save a couple of nits, and I have run into qt issues in
  the past.  I would like to uninstall kde4 (like it, but not well
  enough to devote so many resources to it, and to have to upgrade
  frequently and painfully).  I would like to remove the KDE 4
  installation, but keep the individual packages depending on kdelibs.
  (K3b, etc.).  Would this have an impact on this issue?  This is off
  topic, but how to uninstall EXCEPT what I want, of KDE4?   Is this
  reasonable?
 
  Thanks.  I hope to solve this soon,  but it's too early to know
  whether the help on this list was enough.  I changed USE flags, and
  the same messages appear:
 
  SNIP 
 
  Thank you,
 
  Alan
 
 Does this help any?
 
 r...@smoker / # eselect news read 6
 2009-09-27-qt_use_changes
   Title Qt 4.5.2 default USE flag changes
   AuthorAlex Alexander wi...@gentoo.org
   Posted2009-09-27
   Revision  1
 
 Qt version 4.5.2 has significant changes in the USE flags enabled by
 default.
 
 When upgrading, make sure you check and re-enable any USE flags you
 need.
 
 Depending on your system and installed packages, you might hit an issue
 where Portage is getting confused by this USE flag change, trying to mix
 old 4.5.1 ebuilds with new 4.5.2 ones, resulting in blocks.
 
 If this happens to you, please add the offending USE flags (usually
 'qt3support' and 'dbus') in your USE= or switch to a desktop profile
 (eselect profile list). Check this post [0] for more details on this
 issue.
 
 [0] http://www.linuxized.com/p192
 
 
 r...@smoker / #
 
 I have this in my USE flags and I didn't run into this that I recall.
 
 qt3  qt3support qt4
 
 I think they are planning to remove qt3 in the future.  I'm not sure how
 close that future is tho.  I think qt3support is the key here.

Other than the thread that Dale offers, have you changed your profile to the 
latest 10.0?  This had caught me out and went unmerging/emerging qt to get 
things to work.  I think it would have been easier if I had updated my 
make.profile first which has the required default USE flags:

$ ls -la /etc/make.profile 
lrwxrwxrwx 1 root root 54 Oct 22 10:03 /etc/make.profile - 
../usr/portage/profiles/default/linux/x86/10.0/desktop

HTH. 
-- 
Regards,
Mick


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


Re: [gentoo-user] Where is the vala overlay?

2009-10-24 Thread Grant
 Does anyone know how to get the vala git ebuild (I need vala-0.7.8)?
 This page indicates the vala-overlay was merged with the gnome
 overlay, but that doesn't seem to be the case:

 According to eix, there's a - ebuild in the mpd overlay.

Thanks Neil.  My layman stuff was split across /usr/local/portage and
/usr/portage/local.  /usr/local/portage is correct, right?

- Grant



Re: [gentoo-user] ebuild help: java main class?

2009-10-24 Thread Arttu V.

Grant wrote:

I'm trying to fix up the JAlbum ebuild:

http://bugs.gentoo.org/show_bug.cgi?id=128356

and get it to use java-pkg-2.  Here's what I have so far:

inherit java-pkg-2 eutils

S=${WORKDIR}/Jalbum
DESCRIPTION=Web photo album generator
HOMEPAGE=http://jalbum.net/;
SRC_URI=http://jalbum.net/download/Jalbum${PV}.zip;

LICENSE=as-is
SLOT=0
KEYWORDS=x86
IUSE=

DEPEND==virtual/jre-1.5
RDEPEND=${DEPEND}

src_install() {
java-pkg_dojar JAlbum.jar
java-pkg_dolauncher jalbum \
--jar JAlbum.jar \
--java_args -Xmx400M

local dest=/usr/lib/${PN}
dodir ${dest}
cp -R ${S}/* ${D}/${dest} || die Install failed

doicon ${FILESDIR}/Jalbum-icon.png
make_desktop_entry ${PN}
}

It executes just fine, but I get:

$ jalbum
Error: se.datadosen.jalbum.JAlbum
java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
at se.datadosen.jalbum.Main.main(Main.java:23)

I was told I need to define the main class with --main.  Does anyone
know how to determine what the main class should be?



No, it has clearly already loaded at least one class (last line of that 
stack trace reveals this), and is looking for some others needed by that 
class -- but the classloader fails to find them. JAlbum probably also 
has a Main-Class header defined in the jar's manifest, so this is likely 
to be just another classpath-related issue.


But the ebuild you're pushing ... I think it would need some serious 
work for the installation part. I think it installs files in all wrong 
places, and thus Gentoo's Generation 2 java system cannot automatically 
add them to classpath.


There is some advice on the issue in section 3, the Filesystem layout 
over here:


http://www.gentoo.org/proj/en/java/java-devel.xml

After trudging through that you might understand why Gentoo Java team 
has constantly several dev positions advertised on help wanted. Some 
of Java's ways don't mix that well with Gentoo's approaches, especially 
with compiling and packaging (installations).


If you are in a hurry of some sort, you might just try taking the jar, 
unpacking it into a subdir under your homedir, cd'ing in, and trying 
something like CLASSPATH=.:${CLASSPATH} foo.sh. With a little luck it 
might work as such, without the pain of making a proper ebuild for it.


--
Arttu V.



[gentoo-user] Gnome audio (mixer) question

2009-10-24 Thread walt

I'm not sure when this problem started because I seldom need to use
the gnome gui interface to alsamixer (i.e. mixer_applet2).

I've added the gnome volume-control applet to my gnome panel for
years, but sometime in the recent past the mixer function has
vanished.

When I right-click on the volume-control applet and then on Open
Volume Control, I get the Sound Preferences dialog; the same one
I get when I click on the System::Preferences::Sound menu item on
the gnome panel.

In that Sound Preferences dialog I see only the volume control known
as Master on alsamixer, even though alsamixer shows several of the
other usual suspects like PCM, CD, Video, etc.

Have any of you gnomes out there got the latest Volume Control applet
to display all of the various controls provided by your sound card?

Thanks!

P.S. If you haven't updated world lately you may not have the latest
gnome-2.26 (stable) updates yet.




Re: [gentoo-user] ebuild help: java main class?

2009-10-24 Thread Grant
 I'm trying to fix up the JAlbum ebuild:

 http://bugs.gentoo.org/show_bug.cgi?id=128356

 and get it to use java-pkg-2.  Here's what I have so far:

 inherit java-pkg-2 eutils

 S=${WORKDIR}/Jalbum
 DESCRIPTION=Web photo album generator
 HOMEPAGE=http://jalbum.net/;
 SRC_URI=http://jalbum.net/download/Jalbum${PV}.zip;

 LICENSE=as-is
 SLOT=0
 KEYWORDS=x86
 IUSE=

 DEPEND==virtual/jre-1.5
 RDEPEND=${DEPEND}

 src_install() {
    java-pkg_dojar JAlbum.jar
    java-pkg_dolauncher jalbum \
        --jar JAlbum.jar \
        --java_args -Xmx400M

    local dest=/usr/lib/${PN}
    dodir ${dest}
    cp -R ${S}/* ${D}/${dest} || die Install failed

    doicon ${FILESDIR}/Jalbum-icon.png
    make_desktop_entry ${PN}
 }

 It executes just fine, but I get:

 $ jalbum
 Error: se.datadosen.jalbum.JAlbum
 java.lang.ClassNotFoundException: se.datadosen.jalbum.JAlbum
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at se.datadosen.jalbum.Main.main(Main.java:23)

 I was told I need to define the main class with --main.  Does anyone
 know how to determine what the main class should be?


 No, it has clearly already loaded at least one class (last line of that
 stack trace reveals this), and is looking for some others needed by that
 class -- but the classloader fails to find them. JAlbum probably also has a
 Main-Class header defined in the jar's manifest, so this is likely to be
 just another classpath-related issue.

 But the ebuild you're pushing ... I think it would need some serious work
 for the installation part. I think it installs files in all wrong places,
 and thus Gentoo's Generation 2 java system cannot automatically add them to
 classpath.

 There is some advice on the issue in section 3, the Filesystem layout over
 here:

 http://www.gentoo.org/proj/en/java/java-devel.xml

 After trudging through that you might understand why Gentoo Java team has
 constantly several dev positions advertised on help wanted. Some of Java's
 ways don't mix that well with Gentoo's approaches, especially with compiling
 and packaging (installations).

 If you are in a hurry of some sort, you might just try taking the jar,
 unpacking it into a subdir under your homedir, cd'ing in, and trying
 something like CLASSPATH=.:${CLASSPATH} foo.sh. With a little luck it
 might work as such, without the pain of making a proper ebuild for it.

 --
 Arttu V.

So 'emerge JAlbum' isn't feasible?

- Grant