Re: [gentoo-user] java vs icedtea6

2013-01-15 Thread Daniel Campbell
On 01/15/2013 11:32 PM, Nilesh Govindrajan wrote:
> On Wednesday 16 January 2013 10:32:11 AM IST, Kevin Brandstatter wrote:
>> I'm curious as well about the potential exploitability of icedtea. I
>> would think that since the icedtea vm is not the same as the sun/oracle
>> one and so I don't think the code base is the same, which would mean an
>> exploit in the sun/oracle jvm would not necessarily affect icedtea.
>> However, I know very little on this matter and seeing as i think both
>> are open sourced i have no idea how much or if there is any code overlap.
>>
> 
> Oracle Java is open source?
> 
> --
> Nilesh Govindarajan
> http://nileshgr.com
> 

I was thinking the same thing. Last I knew, the VM is closed while the
language is pretty much open.



Re: [gentoo-user] java vs icedtea6

2013-01-15 Thread Nilesh Govindrajan
On Wednesday 16 January 2013 10:32:11 AM IST, Kevin Brandstatter wrote:
> I'm curious as well about the potential exploitability of icedtea. I
> would think that since the icedtea vm is not the same as the sun/oracle
> one and so I don't think the code base is the same, which would mean an
> exploit in the sun/oracle jvm would not necessarily affect icedtea.
> However, I know very little on this matter and seeing as i think both
> are open sourced i have no idea how much or if there is any code overlap.
>

Oracle Java is open source?

--
Nilesh Govindarajan
http://nileshgr.com



Re: [gentoo-user] Re: /home doesn't umount on shutdown

2013-01-15 Thread Yohan Pereira
On 16/01/13 at 02:34am, Alan McKinnon wrote:
> I just checked now and I don't even have kde-base/nepomuk *installed*
> anymore. I wonder how that came about, I thought nepomuk was mandatory
> for KDE4?

you probably have USE="-semantic-desktop" :D

-- 

- Yohan Pereira

The difference between a Miracle and a Fact is exactly the difference
between a mermaid and a seal.
-- Mark Twain



Re: [gentoo-user] java vs icedtea6

2013-01-15 Thread Kevin Brandstatter
I'm curious as well about the potential exploitability of icedtea. I
would think that since the icedtea vm is not the same as the sun/oracle
one and so I don't think the code base is the same, which would mean an
exploit in the sun/oracle jvm would not necessarily affect icedtea.
However, I know very little on this matter and seeing as i think both
are open sourced i have no idea how much or if there is any code overlap.

-Kevin

On 01/15/2013 06:32 PM, William Kenworthy wrote:
> Looking for comments:
>
> A while back I removed java during an upgrade on my main desktop system
> and left icedtea6-bin in place without any noticeable effect.
>
>
> Presumably icedtea6 suffers the same java bug (cant find anything in
> their bugzilla though?) thats got everybody riled at the moment, though
> the last security bug on gentoo bugzilla is 2011.
>
>
> I am happy not using a mainstream java and avoiding the fuss that goes
> with dealing with oracles nonsense download restrictions but have two
> questions:
>
> 1. are there any "real" problems with using icedtea6?
>
> 2. icedtea6 and icedtea6-bin ... any difference in features? - I have
> had a much more stable experience with openoffice vs openoffice-bin so
> presume build yourself would be the same here?
>
>
> The questions may seem redundant seeing I am using both icedtea and java
> on various systems, but others experience may not be the same, or have
> more knowledge which would be useful before I move everything over.
>
> BillK
>
>




signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] USB mouse and keyboard stopped working

2013-01-15 Thread Canek Peláez Valdés
On Tue, Jan 15, 2013 at 6:40 PM, Allan Gottlieb  wrote:
> The external (USB) mouse on one of my laptops stopped working.
> I tried a keyboard and that failed as well.
>
> There are two USB ports and the mouse fails on both (only tried the
> keyboard on one).
>
> I can dual boot into windows and there the mouse does work on both
> ports.
>
> The kernel is unchanged (3.5.4).  This seems to have happened around the
> last udev update (now 197-r2), which caused other problems (these have
> been repaired using suggestions from this group).
>
> I would appreciate any help.

The usual info is necessary: do you mean they stopped working on X? Do
you use a xorg.conf? Do you use xf86-input-evdev?

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México



Re: [gentoo-user] Ekopath compiler failing to build - something about glibc development files

2013-01-15 Thread Andrew Lowe

On 01/16/13 06:31, Mike Edenfield wrote:

On 13 January 2013, at 06:53, Andrew Lowe wrote:
...
From all of the above, I think the important part is that I need to
install some "glibc developement files". A google search doesn't point me

in

the direction of what these might be. According to "eix glibc", I have

debug

turned OFF - is this the problem?


The part about the "glibc development [sic] files" is mostly a red herring.
I'm not sure where it's coming from (I can't find that misspelling of
development in the portage source or any eclass, and it's not part of the
actual ebuild.)




[snip]

I got an email directly from the maintainer pointing me to something in 
the gentoo bugs db,


https://bugs.gentoo.org/show_bug.cgi?id=444020#c6

which basically says there was something wrong and re-emerging glibc 
will fix the problem. I did this then ran my "emerge -NuD world". Lo & 
behold, V5 of the compiler was installed, not the V4.?? that I was 
having trouble with, and installed cleanly. As V5 is now there, I can't 
be bothered checking on the V4 problem.


Thanks for the comments,
Andrew




[gentoo-user] USB mouse and keyboard stopped working

2013-01-15 Thread Allan Gottlieb
The external (USB) mouse on one of my laptops stopped working.
I tried a keyboard and that failed as well.

There are two USB ports and the mouse fails on both (only tried the
keyboard on one).

I can dual boot into windows and there the mouse does work on both
ports.

The kernel is unchanged (3.5.4).  This seems to have happened around the
last udev update (now 197-r2), which caused other problems (these have
been repaired using suggestions from this group).

I would appreciate any help.

allan




Re: [gentoo-user] Re: /home doesn't umount on shutdown

2013-01-15 Thread Alan McKinnon
On Tue, 15 Jan 2013 23:37:28 +0100
Remy Blank  wrote:

> Alan McKinnon wrote:
> > But I was not able to make the problem re-appear in short reboot
> > cycles. So whatever is hanging the box is something that starts up
> > in the course of work, it doesn't appear to be there directly after
> > a KDE login.
> 
> I have observed that kded4 and nepomukserver sometimes don't terminate
> after logging out of KDE. At the next login, I get another copy of
> each, and so they accumulate. It's so bad that I added a script to
> ~/.kde4/shutdown to "kill -9" them if they are still running 15
> seconds after logging out.
> 
> Both processes keep open file descriptors to ~/.xsession-errors, so
> they would indeed prevent /home from unmounting.

I recall have similar issues long ago, but haven't seen anything like it
again for months now.

I just checked now and I don't even have kde-base/nepomuk *installed*
anymore. I wonder how that came about, I thought nepomuk was mandatory
for KDE4?

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




[gentoo-user] java vs icedtea6

2013-01-15 Thread William Kenworthy
Looking for comments:

A while back I removed java during an upgrade on my main desktop system
and left icedtea6-bin in place without any noticeable effect.


Presumably icedtea6 suffers the same java bug (cant find anything in
their bugzilla though?) thats got everybody riled at the moment, though
the last security bug on gentoo bugzilla is 2011.


I am happy not using a mainstream java and avoiding the fuss that goes
with dealing with oracles nonsense download restrictions but have two
questions:

1. are there any "real" problems with using icedtea6?

2. icedtea6 and icedtea6-bin ... any difference in features? - I have
had a much more stable experience with openoffice vs openoffice-bin so
presume build yourself would be the same here?


The questions may seem redundant seeing I am using both icedtea and java
on various systems, but others experience may not be the same, or have
more knowledge which would be useful before I move everything over.

BillK




[gentoo-user] apcupsd settings for hibernate+shutdown?

2013-01-15 Thread Walter Dnes
  I'm running an APC UPS on Gentoo linux (Back-UPS XS 1300G).  Up till
now, I've used the UPS in "dumb" mode; i.e. no acpusd running.  My main
concern has been short power blips, and under/over-voltage.  All I
wanted was a few minutes to shut down or hibernate the PC before the
battery gave out.  I've enabled the "Master/Controlled outlets" feature.
I have the PC plugged into the Master, and a surgeprotector powerbar
into a Controlled outlet.  The monitor/speakers/modem/etc are plugged
into the surgeprotector.  When I manually hibernate the PC, the ups cuts
off power to the peripherals connected to the surgeprotector (connected
to the "Controlled outlet").

  I may be getting a contract soon that involves crunching huge text
files, with multi-hour overnight data runs, etc.  I'll launch a run, and
leave things unattended for hours on end.  Let's assume I start a run,
go away for the day, and a power outage hits.  My Google searches always
seem to turn up hits involving sending warning messages to users that
the system may be going down soon.  What I actually want to happen in an
extended power outage is...

* have the system execute the command "/usr/sbin/hibernate" to save
  program state, etc to disk, and then shut down.

* shut down the APC ups afterwards.

  Note that once "/usr/sbin/hibernate" is launched, you have to assume
that the ups immediately loses contact with the PC, ***BUT THE UPS MUST
STAY ON FOR A COUPLE OF MINUTES AFTERWARD*** to give the PC time to shut
down gracefully.  Will "KILLDELAY 180" give 3 minutes safety margin?
And what do I have to do to get it to execute "/usr/sbin/hibernate"?  As
per instructions from the install, I've done...

rc-update add apcupsd.powerfail shutdown

...which is supposed to tell the ups to shut down when the PC shuts down.
Colour me confused...

* does the ups not shut itself down due to BATTERYLEVEL/MINUTES/TIMEOUT?
* if so, why does it need the "apcupsd.powerfail" service in my PC's
  shutdown runlevel?

Here are my config file and apcaccess status output...

*** /etc/apcupsd/apcupsd.conf file ***
UPSCABLE usb
UPSTYPE usb
LOCKFILE /var/lock
SCRIPTDIR /etc/apcupsd
PWRFAILDIR /etc/apcupsd
NOLOGINDIR /etc
ONBATTERYDELAY 6
BATTERYLEVEL 15
MINUTES 5
TIMEOUT 0
ANNOY 300
ANNOYDELAY 60
NOLOGON disable
KILLDELAY 180
NETSERVER on
NISIP 0.0.0.0
NISPORT 3551
EVENTSFILE /var/log/apcupsd.events
EVENTSFILEMAX 10
UPSCLASS standalone
UPSMODE disable
STATTIME 0
STATFILE /var/log/apcupsd.status
LOGSTATS off
DATATIME 0

*** apcaccess status ***
APC  : 001,037,0914
DATE : 2013-01-13 03:17:56 -0500  
HOSTNAME : d531
VERSION  : 3.14.8 (16 January 2010) gentoo
UPSNAME  : d531
CABLE: USB Cable
MODEL: Back-UPS XS 1300G 
UPSMODE  : Stand Alone
STARTTIME: 2013-01-13 03:15:05 -0500  
STATUS   : ONLINE 
LINEV: 122.0 Volts
LOADPCT  :   7.0 Percent Load Capacity
BCHARGE  : 100.0 Percent
TIMELEFT :  60.0 Minutes
MBATTCHG : 15 Percent
MINTIMEL : 5 Minutes
MAXTIME  : 0 Seconds
SENSE: High
LOTRANS  : 088.0 Volts
HITRANS  : 136.0 Volts
ALARMDEL : Always
BATTV: 27.2 Volts
LASTXFER : No transfers since turnon
NUMXFERS : 0
TONBATT  : 0 seconds
CUMONBATT: 0 seconds
XOFFBATT : N/A
SELFTEST : NO
STATFLAG : 0x0708 Status Flag
MANDATE  : 2012-07-06
SERIALNO : [ deleted ]  
BATTDATE : 2012-07-06
NOMINV   : 120 Volts
NOMBATTV :  24.0 Volts
NOMPOWER : 780 Watts
FIRMWARE : 864.L6 .D USB FW:L6
APCMODEL : Back-UPS XS 1300G 
END APC  : 2013-01-13 03:17:56 -0500

-- 
Walter Dnes 
I don't run "desktop environments"; I run useful applications



Re: [gentoo-user] Re: /home doesn't umount on shutdown

2013-01-15 Thread Dale
Remy Blank wrote:
> Dale wrote:
>> Care to share that script? ;-) May try that myself.
>
> Sure, here it is:
>
> $ cat .kde4/shutdown/cleanup-kde-processes
> #!/bin/bash
>
> log() {
> logger -t "$(basename $0)" "$1"
> }
>
> is_running() {
> killall -0 -u $USER "$1"
> }
>
> kill_if_running() {
> sleep 15
> is_running startkde && return 0
> if is_running $1; then
> log "$1 still running, sending TERM"
> killall -s TERM $1
> sleep 5
> is_running startkde && return 0
> if is_running $1; then
> log "$1 still running, sending KILL"
> killall -s KILL $1
> fi
> fi
> }
>
> kill_if_running kded4 &
> kill_if_running nepomukserver &
>

Thanks much.  This will be better than killing them all one by one.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!



[gentoo-user] Re: /home doesn't umount on shutdown

2013-01-15 Thread Remy Blank
Dale wrote:
> Care to share that script?  ;-)  May try that myself.

Sure, here it is:

$ cat .kde4/shutdown/cleanup-kde-processes
#!/bin/bash

log() {
logger -t "$(basename $0)" "$1"
}

is_running() {
killall -0 -u $USER "$1"
}

kill_if_running() {
sleep 15
is_running startkde && return 0
if is_running $1; then
log "$1 still running, sending TERM"
killall -s TERM $1
sleep 5
is_running startkde && return 0
if is_running $1; then
log "$1 still running, sending KILL"
killall -s KILL $1
fi
fi
}

kill_if_running kded4 &
kill_if_running nepomukserver &



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] Re: /home doesn't umount on shutdown

2013-01-15 Thread Dale
Remy Blank wrote:
> Alan McKinnon wrote:
>> But I was not able to make the problem re-appear in short reboot
>> cycles. So whatever is hanging the box is something that starts up in
>> the course of work, it doesn't appear to be there directly after a KDE
>> login.
>
> I have observed that kded4 and nepomukserver sometimes don't terminate
> after logging out of KDE. At the next login, I get another copy of each,
> and so they accumulate. It's so bad that I added a script to
> ~/.kde4/shutdown to "kill -9" them if they are still running 15 seconds
> after logging out.
>
> Both processes keep open file descriptors to ~/.xsession-errors, so they
> would indeed prevent /home from unmounting.
>
> -- Remy
>


I run into that a LOT here too.  After a large upgrade, I usually switch
to the boot runlevel to make sure most everything gets reloaded.  When I
do that, I have to kill some leftover kde stuff manually.  I have been
known to let it sit for several minutes to see if it will eventually
kill itself but it never has.  The nepomukserver is one of them but
there is another one that I can't recall the name of.

May be on to something, hopefully.

Care to share that script?  ;-)  May try that myself.

Dale

:-)  :-)

-- 
I am only responsible for what I said ... Not for what you understood or
how you interpreted my words!



[gentoo-user] Re: /home doesn't umount on shutdown

2013-01-15 Thread Remy Blank
Alan McKinnon wrote:
> But I was not able to make the problem re-appear in short reboot
> cycles. So whatever is hanging the box is something that starts up in
> the course of work, it doesn't appear to be there directly after a KDE
> login.

I have observed that kded4 and nepomukserver sometimes don't terminate
after logging out of KDE. At the next login, I get another copy of each,
and so they accumulate. It's so bad that I added a script to
~/.kde4/shutdown to "kill -9" them if they are still running 15 seconds
after logging out.

Both processes keep open file descriptors to ~/.xsession-errors, so they
would indeed prevent /home from unmounting.

-- Remy



signature.asc
Description: OpenPGP digital signature


RE: [gentoo-user] Ekopath compiler failing to build - something about glibc development files

2013-01-15 Thread Mike Edenfield
> On 13 January 2013, at 06:53, Andrew Lowe wrote:
> ...
>   From all of the above, I think the important part is that I need to
> install some "glibc developement files". A google search doesn't point me
in
> the direction of what these might be. According to "eix glibc", I have
debug
> turned OFF - is this the problem?

The part about the "glibc development [sic] files" is mostly a red herring.
I'm not sure where it's coming from (I can't find that misspelling of
development in the portage source or any eclass, and it's not part of the
actual ebuild.)

The error happens any time the ekopath installation fails. AFAICT, the
ekopath ebuild doesn't really do anything except unpack the tarball and, in
the post-install step, run the binary installation program that ships with
ekopath. If anything at all happens when the installer is running, you get
the same error from portage. What is actually going wrong here is down the
bottom:

/usr/include/bits/byteswap.h: In function 'unsigned int 
__bswap_32(unsigned int)': 
/usr/include/bits/byteswap.h:46: error: '__builtin_bswap32' was not 
declared in this scope 
/usr/include/bits/byteswap.h: In function 'long long unsigned int 
__bswap_64(long long unsigned int)': 
/usr/include/bits/byteswap.h:110: error: '__builtin_bswap64' was not 
declared in this scope

Last time I saw this is was because a package assumed I had gcc4.3 and I was
using an older version, but I highly doubt that's your problem. 

One thing you can try is to run the installer manually. If you emerge the
package and let it fail, all the bits are left in the temporary work
folders, so you can do this:

cd /var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/work
./ekopath-4.0.12.1_pre20121102.run --prefix
/var/tmp/portage/dev-lang/ekopath-4.0.12.1_pre20121102/image/opt/ekopath

and walk through the installation manually. It's an agonizingly slow process
but it should work, or give you a better idea of what failed.

--Mike




[gentoo-user] Re: No native exception to re-raise

2013-01-15 Thread james
Michael Mol  gmail.com> writes:


> I've seen this error a couple times this week. Has anyone else seen it
> before? Is there a simple way to clear it, or am I going to need to
> dig into emerge's source code and study it?

Often when every I have python issues, I run python-updater
and look at anything suspicious as a starting point
for python related issues, spewed across your terminal session. 

Or googling with libs, dependancies, flags, etc etc on
anything to find gooling with python and the package/lib/?
keyword searches Chances are the issues is showing up
elsewhere, and googling could be your fastest path to debug
nirvana.

ymmv.

Good hunting


James




Re: [gentoo-user] /home doesn't umount on shutdown

2013-01-15 Thread Volker Armin Hemmann
Fuser is the best way to do IT.
Am 15.01.2013 16:07 schrieb "Alan McKinnon" :

> On Tue, 15 Jan 2013 21:47:46 +0700
> Pandu Poluan  wrote:
>
> > On Jan 15, 2013 7:59 PM, "Alan McKinnon" 
> > wrote:
> > >
> > > On Tue, 15 Jan 2013 11:09:56 +
> > > Neil Bothwick  wrote:
> > >
> > > > On Tue, 15 Jan 2013 11:57:21 +0200, Alan McKinnon wrote:
> > > >
> > > > > On the rare occasion when I reboot or shut this laptop down, it
> > > > > continually and consistently gets stuck on one of the final
> > > > > steps, to umount /home
> > > >
> > > > If you logout as your user(s) so only root is logged in, does lsof
> > > > show any hits for /home?
> > >
> > > Only 1 hit - a background ssh process that sets up a bunch of
> > > tunnels and port forwards so I can get into the corporate network
> > > for anywhere.
>
>
> [snip]
>
> > A bit roundabout, but you can also try making a 'pseudo-service'.
> > Make it 'depend' on a late-stage service so it starts last, and shuts
> > down early. The stop() part of the pseudo-service should perform an
> > lsof >> a file (in a directory still available during the last throes
> > of OpenRC like, say, /etc).
> >
> > I hope I'm making sense...
>
> Makes perfect sense, a good idea actually :-)
>
> Easiest would be to echo lsof to the console, I only need it if umount
> hangs and it will be there and visible. If umount worked it won't be
> visible and not needed either
>
>
> --
> Alan McKinnon
> alan.mckin...@gmail.com
>
>
>


Re: [gentoo-user] /home doesn't umount on shutdown

2013-01-15 Thread Alan McKinnon
On Tue, 15 Jan 2013 21:47:46 +0700
Pandu Poluan  wrote:

> On Jan 15, 2013 7:59 PM, "Alan McKinnon" 
> wrote:
> >
> > On Tue, 15 Jan 2013 11:09:56 +
> > Neil Bothwick  wrote:
> >
> > > On Tue, 15 Jan 2013 11:57:21 +0200, Alan McKinnon wrote:
> > >
> > > > On the rare occasion when I reboot or shut this laptop down, it
> > > > continually and consistently gets stuck on one of the final
> > > > steps, to umount /home
> > >
> > > If you logout as your user(s) so only root is logged in, does lsof
> > > show any hits for /home?
> >
> > Only 1 hit - a background ssh process that sets up a bunch of
> > tunnels and port forwards so I can get into the corporate network
> > for anywhere.


[snip]

> A bit roundabout, but you can also try making a 'pseudo-service'.
> Make it 'depend' on a late-stage service so it starts last, and shuts
> down early. The stop() part of the pseudo-service should perform an
> lsof >> a file (in a directory still available during the last throes
> of OpenRC like, say, /etc).
> 
> I hope I'm making sense...

Makes perfect sense, a good idea actually :-)

Easiest would be to echo lsof to the console, I only need it if umount
hangs and it will be there and visible. If umount worked it won't be
visible and not needed either


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




Re: [gentoo-user] /home doesn't umount on shutdown

2013-01-15 Thread Alan McKinnon
On Tue, 15 Jan 2013 06:44:11 -0600
Dale  wrote:

> Alan McKinnon wrote:
> > On the rare occasion when I reboot or shut this laptop down, it
> > continually and consistently gets stuck on one of the final steps,
> > to umount /home
> >
> > The process never proceeds beyond that point (as /home is always
> > fsck'ed on next startup). I can't see any logs as syslog has already
> > been shut down at this point, and it happens whether I shutdown as
> > root from the console or by using the KDE widget.
> >
> > /home here is on LVM
> >
> > I could probably debug this easily enough if I could determine how
> > the shutdown sequence is ordered, or get a verbose output. But
> > sadly, my fu for such stuff has run out.
> >
> > Anyone got pointers on where to start poking around?
> >
> > [I'm not looking for solutions, I'm unlikely to get those right off
> > the bat, just looking for pointers atm]
> >
> >
> >
> 
> I would do a 'rc single' then use lsof for /home to see what if
> anything is still going on.  I think with openrc, when you go to
> single user it unmounts about everything, tho this could have changed
> since it has been a while since I went to single user.  Oh, I have
> had issues going from single user back to default mode.  It just
> doesn't work right.  So, be ready to reboot if needed. 
> 
> I ran into a weird issue one time a long time ago.  It turned out it
> was the order I had them in fstab.  I think I had /usr/portage
> above /usr so as it went down the file, it was trying to
> mount /usr/portage then trying to mount /usr.  I thought it rather
> odd, maybe a bug even, but changing the order made it work.  Do you
> maybe have something in a odd order in fstab?
> 
> Well, it's early and I am still half asleep.  Hope that helps.  Going
> back to bed.  To wet to go hunting this morning, sleeting too.
> Brr!


LABEL=BOOT  /boot   ext2noatime 1 2 

LABEL=ROOT  /   ext4noatime,discard 0 1 

LABEL=KHAMUL-500G-HOME  /home   ext4noatime 1 2 



LABEL=SWAP  swapswapsw  0 0 



/dev/cdrom  /mnt/cdrom  autonoauto,ro   0 0 

/dev/fd0/mnt/floppy autonoauto  0 0 

shm /dev/shmtmpfs   
size=75%,rw,nosuid,nodev,exec,relatime  0 0 


//10.1.249.2/alanm  /mnt/quasar cifs
noauto,user,credentials=/home/alanm/.credentials/quasar,defaults0 0 

172.20.0.3:/mnt/data/media  /mnt/media  nfs noauto,user,rw,defaults 
0 0 
mtpfs   /mnt/galaxy fuseuser,noauto,allow_other 
0 0 


quasar and media are two shares (one at work one at home) that I use all the 
time, one or both are almost always mounted.
But they don't seem to affect the shutdown at all - /home hangs whether I'm at 
work or at home and whether the NFS share is accessible or not


> 
> Dale
> 
> :-)  :-) 
> 



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




Re: [gentoo-user] /home doesn't umount on shutdown

2013-01-15 Thread Pandu Poluan
On Jan 15, 2013 7:59 PM, "Alan McKinnon"  wrote:
>
> On Tue, 15 Jan 2013 11:09:56 +
> Neil Bothwick  wrote:
>
> > On Tue, 15 Jan 2013 11:57:21 +0200, Alan McKinnon wrote:
> >
> > > On the rare occasion when I reboot or shut this laptop down, it
> > > continually and consistently gets stuck on one of the final steps,
> > > to umount /home
> >
> > If you logout as your user(s) so only root is logged in, does lsof
> > show any hits for /home?
>
> Only 1 hit - a background ssh process that sets up a bunch of tunnels
> and port forwards so I can get into the corporate network for anywhere.
>
> But I was not able to make the problem re-appear in short reboot
> cycles. So whatever is hanging the box is something that starts up in
> the course of work, it doesn't appear to be there directly after a KDE
> login.
>
> I might have to look at my work flow closely to find all those unusual
> things I do in the course of work. I did manage to see the full
> shutdown output on the screen with these tests though - it
> umounts /home then umounts /boot, but the second umount message is
> never displayed. Seeing as it's just a regular sdb1 partition using
> ext2 I don;t really think it's getting stuck as the next step starts
> up. It's more likely to have something to do with /home
>
>
> >
> > I had a similar problem with my MythTV backend failing to
> > unmount /var. It turned out that mythbackend was failing to shutdown
> > but openrc carried on trying to shutdown. If I make sure mythbackend
> > really is stopped, the reboot proceeds normally, which is much better
> > since I had to go into the loft to reboot the box manually,
> >
> >
>
>
>
> --
> Alan McKinnon
> alan.mckin...@gmail.com
>
>

A bit roundabout, but you can also try making a 'pseudo-service'. Make it
'depend' on a late-stage service so it starts last, and shuts down early.
The stop() part of the pseudo-service should perform an lsof >> a file (in
a directory still available during the last throes of OpenRC like, say,
/etc).

I hope I'm making sense...

Rgds,


Re: [gentoo-user] [OT] Xlib tutorial

2013-01-15 Thread Florian Philipp
Am 15.01.2013 15:12, schrieb pat:
> On Tue, 15 Jan 2013 08:22:03 -0500, Michael Mol wrote
>> On Tue, Jan 15, 2013 at 6:55 AM, pat  wrote:
>>> Hello,
>>>
>>> Sorry for this off topic. I want to learn how to develop UI applications 
>>> using
>>> Xlib. I've searched web, but I could not find a tutorial which will explain 
>>> it
>>> all (found some short examples). Please, could someone suggest a website or 
>>> a
>>> book?
>>
>> http://rosettacode.org/wiki/Category:Xlib
>>
>> Why the specific interest in Xlib? XCB is probably the better C
>> library to use at this point. Actually almost any higher-level 
>> toolkit would be a better place to start:
>>
>> https://en.wikipedia.org/wiki/List_of_widget_toolkits
>>
>> GUI programming is a PITA to do in the first place, and it's
>> progressively more painful the more you want to "do it right." Don't
>> make it harder than it has to be, particularly if you're just getting
>> started.
>>
>> -- 
>> :wq
>>
> Thanks for suggestion. Well I don't want to depend on GTK or Qt.
> 
> Thanks
> 
>  Pat
> 

Is this for an embedded platform? Because otherwise, for the sake of
your own sanity and the usability of your application, don't do this!

At least use some lightweight GUI toolkit like xforms or tk.

PS: Please don't top-post if you can avoid it.

Regards,
Florian Philipp



signature.asc
Description: OpenPGP digital signature


Re: [gentoo-user] [OT] Xlib tutorial

2013-01-15 Thread pat
Thanks for suggestion. Well I don't want to depend on GTK or Qt.

Thanks

 Pat

On Tue, 15 Jan 2013 08:22:03 -0500, Michael Mol wrote
> On Tue, Jan 15, 2013 at 6:55 AM, pat  wrote:
> > Hello,
> >
> > Sorry for this off topic. I want to learn how to develop UI applications 
> > using
> > Xlib. I've searched web, but I could not find a tutorial which will explain 
> > it
> > all (found some short examples). Please, could someone suggest a website or 
> > a
> > book?
> 
> http://rosettacode.org/wiki/Category:Xlib
> 
> Why the specific interest in Xlib? XCB is probably the better C
> library to use at this point. Actually almost any higher-level 
> toolkit would be a better place to start:
> 
> https://en.wikipedia.org/wiki/List_of_widget_toolkits
> 
> GUI programming is a PITA to do in the first place, and it's
> progressively more painful the more you want to "do it right." Don't
> make it harder than it has to be, particularly if you're just getting
> started.
> 
> -- 
> :wq
> 
> 
> Freehosting PIPNI - http://www.pipni.cz/



Freehosting PIPNI - http://www.pipni.cz/




[gentoo-user] No native exception to re-raise

2013-01-15 Thread Michael Mol
I've seen this error a couple times this week. Has anyone else seen it
before? Is there a simple way to clear it, or am I going to need to
dig into emerge's source code and study it?

$ emerge --searchdesc pulseaudio

Searching...   |Traceback (most recent call last):
  File "/usr/bin/emerge", line 48, in 
retval = emerge_main()
  File "/usr/lib64/portage/pym/_emerge/main.py", line 1021, in emerge_main
gc_locals=locals().clear)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 3751, in run_action
myopts, myfiles, spinner)
  File "/usr/lib64/portage/pym/_emerge/actions.py", line 1936, in action_search
searchinstance.execute(mysearch)
  File "/usr/lib64/portage/pym/_emerge/search.py", line 221, in execute
full_package, ["DESCRIPTION"])[0]
  File "/usr/lib64/portage/pym/_emerge/search.py", line 72, in _aux_get
raise
RuntimeError: No active exception to reraise

-- 
:wq



Re: [gentoo-user] [OT] Xlib tutorial

2013-01-15 Thread Michael Mol
On Tue, Jan 15, 2013 at 6:55 AM, pat  wrote:
> Hello,
>
> Sorry for this off topic. I want to learn how to develop UI applications using
> Xlib. I've searched web, but I could not find a tutorial which will explain it
> all (found some short examples). Please, could someone suggest a website or a
> book?

http://rosettacode.org/wiki/Category:Xlib

Why the specific interest in Xlib? XCB is probably the better C
library to use at this point. Actually almost any higher-level toolkit
would be a better place to start:

https://en.wikipedia.org/wiki/List_of_widget_toolkits

GUI programming is a PITA to do in the first place, and it's
progressively more painful the more you want to "do it right." Don't
make it harder than it has to be, particularly if you're just getting
started.

-- 
:wq



Re: [gentoo-user] /home doesn't umount on shutdown

2013-01-15 Thread Alan McKinnon
On Tue, 15 Jan 2013 11:09:56 +
Neil Bothwick  wrote:

> On Tue, 15 Jan 2013 11:57:21 +0200, Alan McKinnon wrote:
> 
> > On the rare occasion when I reboot or shut this laptop down, it
> > continually and consistently gets stuck on one of the final steps,
> > to umount /home
> 
> If you logout as your user(s) so only root is logged in, does lsof
> show any hits for /home?

Only 1 hit - a background ssh process that sets up a bunch of tunnels
and port forwards so I can get into the corporate network for anywhere.

But I was not able to make the problem re-appear in short reboot
cycles. So whatever is hanging the box is something that starts up in
the course of work, it doesn't appear to be there directly after a KDE
login.

I might have to look at my work flow closely to find all those unusual
things I do in the course of work. I did manage to see the full
shutdown output on the screen with these tests though - it
umounts /home then umounts /boot, but the second umount message is
never displayed. Seeing as it's just a regular sdb1 partition using
ext2 I don;t really think it's getting stuck as the next step starts
up. It's more likely to have something to do with /home


> 
> I had a similar problem with my MythTV backend failing to
> unmount /var. It turned out that mythbackend was failing to shutdown
> but openrc carried on trying to shutdown. If I make sure mythbackend
> really is stopped, the reboot proceeds normally, which is much better
> since I had to go into the loft to reboot the box manually,
> 
> 



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




Re: [gentoo-user] /home doesn't umount on shutdown

2013-01-15 Thread Dale
Alan McKinnon wrote:
> On the rare occasion when I reboot or shut this laptop down, it
> continually and consistently gets stuck on one of the final steps, to
> umount /home
>
> The process never proceeds beyond that point (as /home is always
> fsck'ed on next startup). I can't see any logs as syslog has already
> been shut down at this point, and it happens whether I shutdown as root
> from the console or by using the KDE widget.
>
> /home here is on LVM
>
> I could probably debug this easily enough if I could determine how the
> shutdown sequence is ordered, or get a verbose output. But sadly, my fu
> for such stuff has run out.
>
> Anyone got pointers on where to start poking around?
>
> [I'm not looking for solutions, I'm unlikely to get those right off the
> bat, just looking for pointers atm]
>
>
>

I would do a 'rc single' then use lsof for /home to see what if anything
is still going on.  I think with openrc, when you go to single user it
unmounts about everything, tho this could have changed since it has been
a while since I went to single user.  Oh, I have had issues going from
single user back to default mode.  It just doesn't work right.  So, be
ready to reboot if needed. 

I ran into a weird issue one time a long time ago.  It turned out it was
the order I had them in fstab.  I think I had /usr/portage above /usr so
as it went down the file, it was trying to mount /usr/portage then
trying to mount /usr.  I thought it rather odd, maybe a bug even, but
changing the order made it work.  Do you maybe have something in a odd
order in fstab?

Well, it's early and I am still half asleep.  Hope that helps.  Going
back to bed.  To wet to go hunting this morning, sleeting too.  Brr!

Dale

:-)  :-) 

-- 
I am only responsible for what I said ... Not for what you understood or how 
you interpreted my words!




[SOLVED]Re: [gentoo-user] [OT] Xlib tutorial

2013-01-15 Thread pat
Sorry, should search for xlib and not x.org :-|

 Pat

On Tue, 15 Jan 2013 12:55:59 +0100, pat wrote
> Hello,
> 
> Sorry for this off topic. I want to learn how to develop UI 
> applications using Xlib. I've searched web, but I could not find a 
> tutorial which will explain it all (found some short examples). 
> Please, could someone suggest a website or a book?
> 
> Thanks
> 
>  Pat



Freehosting PIPNI - http://www.pipni.cz/




[gentoo-user] [OT] Xlib tutorial

2013-01-15 Thread pat
Hello,

Sorry for this off topic. I want to learn how to develop UI applications using
Xlib. I've searched web, but I could not find a tutorial which will explain it
all (found some short examples). Please, could someone suggest a website or a
book?

Thanks

 Pat


Freehosting PIPNI - http://www.pipni.cz/




Re: [gentoo-user] /home doesn't umount on shutdown

2013-01-15 Thread Neil Bothwick
On Tue, 15 Jan 2013 11:57:21 +0200, Alan McKinnon wrote:

> On the rare occasion when I reboot or shut this laptop down, it
> continually and consistently gets stuck on one of the final steps, to
> umount /home

If you logout as your user(s) so only root is logged in, does lsof show
any hits for /home?

I had a similar problem with my MythTV backend failing to unmount /var.
It turned out that mythbackend was failing to shutdown but openrc carried
on trying to shutdown. If I make sure mythbackend really is stopped, the
reboot proceeds normally, which is much better since I had to go into the
loft to reboot the box manually,


-- 
Neil Bothwick

When told the reason for Daylight Saving time the old Indian said...
"Only a white man would believe that you could cut a foot off the top of a
blanket And sew it to the bottom of a blanket and have a longer blanket."


signature.asc
Description: PGP signature


[gentoo-user] /home doesn't umount on shutdown

2013-01-15 Thread Alan McKinnon
On the rare occasion when I reboot or shut this laptop down, it
continually and consistently gets stuck on one of the final steps, to
umount /home

The process never proceeds beyond that point (as /home is always
fsck'ed on next startup). I can't see any logs as syslog has already
been shut down at this point, and it happens whether I shutdown as root
from the console or by using the KDE widget.

/home here is on LVM

I could probably debug this easily enough if I could determine how the
shutdown sequence is ordered, or get a verbose output. But sadly, my fu
for such stuff has run out.

Anyone got pointers on where to start poking around?

[I'm not looking for solutions, I'm unlikely to get those right off the
bat, just looking for pointers atm]



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




Re: [gentoo-user] OT: blanking disk of linux appliance

2013-01-15 Thread Stroller

On 14 January 2013, at 02:11, Adam Carter wrote:

> shred and dd available, but not srm etc
> 
> I want to remove the user account info before the device is returned, but 
> dont want to cripple the device. Filesystem is ext3 with default mount 
> options, …

What kind of device is it?

I would have thought that a "device" would have a factory reset button, or that 
all configuration would be wiped upon uploading a new firmware.

You say that you're "returning" the system - if it's a PC-based system that you 
have been renting from someone else, then surely they have security obligations.

IMO the correct way to handle secure erasure of a system with a hard-drive is 
to wipe the whole thing before restoring the default system image.

Stroller.




Re: [gentoo-user] Ekopath compiler failing to build - something about glibc development files

2013-01-15 Thread Stroller

On 13 January 2013, at 06:53, Andrew Lowe wrote:
> ...
>   From all of the above, I think the important part is that I need to 
> install some "glibc developement files". A google search doesn't point me in 
> the direction of what these might be. According to "eix glibc", I have debug 
> turned OFF - is this the problem?

You can test this with:

   `USE=debug emerge -1 glibc && emerge ekopath`

I doubt it'll make any difference, but you mention this, so that's how to rule 
it out.

If you don't get any better answers here, I would check the ekopath bug tracker 
then ask on the ekopath mailing list or, if they don't have one, directly with 
the author. When you've established what the problem is, don't forget to file 
at bugs.gentoo.org

Stroller.