Re: [gentoo-user] testing a corrupt SD card

2009-02-11 Thread Iain Buchanan
On Fri, 2009-02-06 at 07:11 +, Stroller wrote:
 On 6 Feb 2009, at 05:28, Iain Buchanan wrote:
  It's a Lexar Media 512Mb SD card, a couple of years old.  Yes I know I
  can get a cheap 2Gb for $20 but I'm more interested in the  
  principle of
  the test :)
 
 I thought you could get then for  $5, but anyway

probably in USD.  We (AUD) were approaching 1.00 before the exaggerated
crises, but now we're back to 0.645; and plus I needed one in a hurry,
so I couldn't order from a PC store which has reasonable prices and
instead had to go for a local and slightly more expensive retailer...

  so I created a file:
  dd if=/dev/urandom of=Desktop/random.img bs=1024 count=500960
 
  then copied it to the card, and then copied it back as  
  random-2.img.  If
  I md5sum the two files, they are identical:
  $ md5sum random*
  9dcac25cfd8585be5939c0ff969de310  random-2.img
  9dcac25cfd8585be5939c0ff969de310  random.img
 
  Does that mean my memory card is good to go, or should I use some  
  other
  method of bad sector detection?
 
 I'd be more or less happy with that methodology, had I copied a  
 thousand files to the card  they checked out good.
 
 Of the top of my head I don't know how big your bs=1024 count=500960 

well, I got that from the free space on the card, using df and some
mathemagics, so it 100% fills the free space... however...

 file is - I would make a Bash script generate files c 5meg in size  
 (maybe alternative between 3meg  6meg?) and copy them to the card  
 until it fills up. Then check them, delete them and do so again until  
 all 1000 have been copied  checked.

[snip]

however my method and your suggestion only fill up the free space, and
not the FAT for example, so there could be corruptions there, and given
I could see files but the names were nnnxxnnxnnn.ddxxc and so on, I
think it could have been a corrupt FAT?...

I should have made a file the size of the whole SD card, and just
written it to and read from the device a couple of times, overwriting
the partition table, and FAT.

 Personally, for my money, I don't know if I'd trust it. Depends what  
 you're storing on it. MP3s for my phone? Sure - I have a backup at  
 home. Moving files onto my PS3 or Wii, sure. For my camera? Maybe I'd  
 be a bit cautious.

Bought a new 2Gb.  Unfortunately I want a 512Mb card cause then I'm
forced to back it up often enough.

-- 
Iain Buchanan iaindb at netspace dot net dot au

Men have a much better time of it than women; for one thing they marry later;
for another thing they die earlier.
-- H.L. Mencken




Re: [gentoo-user] Re: testing a corrupt SD card

2009-02-11 Thread Iain Buchanan
On Fri, 2009-02-06 at 16:47 +, James wrote:
 Iain Buchanan iaindb at netspace.net.au writes:
 
 
  Does that mean my memory card is good to go, or should I use some other
  method of bad sector detection?
 
 Hello Iain,

Hi James!

[snip]

 Here are a couple of links for your perusal:

Unfortunately I'm travelling, and the company here has a draconian
internet policy that doesn't allow much of anything.  I'll have to check
them out in a couple of weeks.

 Sorry, there is not a clear answer. Keep it for non critical needs,
 upgrade to SDHC(fat 32) if your equipment supports that format.

unfortunately not!

 Fat 32 on top of the memory, helps with (bit)error masking with
 some enhance (undocumented) feature not part of fat 32. This is
 what makes reverse engineering, complicated on SD memory. 
 You may need to upgrade the firmware of your equipment to  support
 newer SD standards (SD 1.1 and SD 2.0).

not much chance of that either (camera).  The more I look into it, the
solid state features (moving bad blocks around in firmware and hiding it
from the system) make me think it's time to throw it out anyway...

 Good luck and good hunting (mate).

cheers, mate!
-- 
Iain Buchanan iaindb at netspace dot net dot au

I might have gone to West Point, but I was too proud to speak to a congressman.
-- Will Rogers




Re: [gentoo-user] testing a corrupt SD card

2009-02-11 Thread Iain Buchanan
On Fri, 2009-02-06 at 22:21 +, Stroller wrote:
 On 6 Feb 2009, at 05:28, Iain Buchanan wrote:
  ...
  so I created a file:
  dd if=/dev/urandom of=Desktop/random.img bs=1024 count=500960
 
 It has just occurred to me:
 
 In the UK you can be imprisoned for failing to provide an encryption  
 key corresponding to this file.

are you joking? what's the story there?
-- 
Iain Buchanan iaindb at netspace dot net dot au

 DanielS still, throne of blood sounds like a movie about overfiend 
   and virgins or some crap
-- in #debian-devel




Re: [gentoo-user] testing a corrupt SD card

2009-02-11 Thread Iain Buchanan
On Fri, 2009-02-06 at 19:36 -0600, Paul Hartman wrote:
 On Thu, Feb 5, 2009 at 11:28 PM, Iain Buchanan iai...@netspace.net.au wrote:
  Hi all,
 
  recently my SD card just went bonkers.  Unfortunately I lost a lot of
  photos on it (backups are useless until the data actually gets to the
  backup...) but fortunately I was able to use a program to recover about
  170 photos.
 
  Anyway, I don't know if it was just static, shock, dead card, or phase
  of the moon, so I would like to see if the card is good before I
  continue to use it.
 
 With any kind of memory or storage device, I would stop using after
 the first sign of a problem. My personal experience says it only gets
 worse. :)
 
 Lexar has a free program for recovering corrupted/deleted files from
 their cards, did you use that? Or something linux-based like photorec?
 Anyway, you wrote over it so it's too late now. :)

Now you tell me there are free versions?!  I ended up finding a photo
recovery tool which recovered the photos for me, but it wasn't free.
Needless to say I didn't pay for it, and I deleted it straight away.

I'll check out photorec next time.  I'm having a hard time finding info
about it though (see previous email about draconian internet access).

Is there a general linux version of FAT recovery tools available
somewhere?  I couldn't find one.

[sinp]

 Some (all?) memory cards do wear-leveling/load balancing

This is what I was afraid of.

thanks,
-- 
Iain Buchanan iaindb at netspace dot net dot au

Beware the new TTY code!




Re: [gentoo-user] Re: Flash Drive Install

2009-02-11 Thread Iain Buchanan
On Fri, 2009-02-06 at 17:01 +, James wrote:
 sean tech.junk at myfairpoint.net writes:
 
 
  Once you go through the steps instructed here,
  http://www.gentoo.org/doc/en/liveusb.xml
 
 cool

Also see my blog
http://nthrbldyblg.blogspot.com/2008/06/gentoo-linux-live-usb-key.html
which has an easy way of creating a gentoo live usb key (if that's what
you wanted).  It works really well with modern hardware.

  Can the live CD install be altered to work just like a normal Gentoo system?
  I have managed to get my hands on a 16GB flash drive, and am thinking of
  trying it out.

Just be mindful of James' comment about lots of writes!

-- 
Iain Buchanan iaindb at netspace dot net dot au

There is no sadder sight than a young pessimist.




Re: [gentoo-user] vncviewer Recommendation

2009-02-11 Thread Iain Buchanan
On Mon, 2009-02-09 at 14:21 -0800, Drew Tomlinson wrote:
 Aaron Clark wrote:
  Drew Tomlinson wrote:
  I'm looking for an vncviewer for Linux that has the same features as the
  Tight VNC viewer on Windows.  I really like how the Windows viewer will
  scale the desktop and remember connections.  Also, it's very easy to
  choose between low and high bandwidth connections with the Windows
  version.

  I've installed the TightVNC viewer on my Gentoo box and it does not
  appear to have any of these features.  I'm looking for recommendations.

It doesn't remember connections unless you create a launcher, but I use
net-misc/tightvnc too.  First try `-encodings tight` and you will see
vast improvements (if its supported by the server)

Then try `-compresslevel 9 -quality 3` in addition to -encodings if
you're using it over a modem, and you will find it quite usable (I do
this over bad modem lines 30kbit and its passable)

 Thanks to all for the suggestions.  My TightVNC on Linux is version
 1.3.9 and is from net-misc/tightvnc-1.3.9-r2.  As I am using Gnome, I've
 installed Vinagre and it appears to be what I need.  I just wish there
 was some way to scroll in fullscreen mode.

I've never bothered using VNC in full screen mode as my laptop has a
resolution higher than anything I vnc to, so can't help you there...

-- 
Iain Buchanan iaindb at netspace dot net dot au

Is there life before breakfast?




Re: [gentoo-user] ALSA config problem

2009-02-11 Thread Iain Buchanan
On Mon, 2009-02-09 at 19:34 +0100, Naga wrote:
 On Monday 09 February 2009 19:13:32 James wrote:
 [...]
  The mobo has an Nvidia chip, the video card has a ATI video chip,
  both only work under the Intel HDA driver. These are compiled
  into the kernel, not loadable modules. I'm going bald googling
  trying to find out what to do, or how to fix?
 [...]
  No sound. Kmix has a red X over it on my kde panel.
  There are no choices there in Kmix to select on.
  HOW do I set this up?   udev, hal, or evdev configs?
 
 In the 2.6.28 kernel alsa is broken for hda-intel. Either use 2.6.27 series 
 kernel or use a live alsa ebuild.

Works for me.  In fact, I've never alsa, mixers, and sound working
better than in 2.6.28...

I have this card:
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio
Controller (rev 02)
which has the pci id 8086:284b

-- 
Iain Buchanan iaindb at netspace dot net dot au

All men know the utility of useful things;
but they do not know the utility of futility.
-- Chuang-tzu




Re: [gentoo-user] ALSA config problem

2009-02-11 Thread Iain Buchanan
On Tue, 2009-02-10 at 19:38 +0100, Naga wrote:
 On Tuesday 10 February 2009 07:02:16 Sebastian Günther wrote:
  * Naga (nagat...@gmail.com) [09.02.09 19:35]:
   In the 2.6.28 kernel alsa is broken for hda-intel. Either use 2.6.27
   series kernel or use a live alsa ebuild.
 
  Why can I listen to music and watch DVD with my hda-intel, if it's
  broken?
 
 Guess it's only broken for certain cards then?

I notice there are more options for the type of hda-intel card now, so
you may need to tweak that.  It took me a few goes to figure out I
needed the IDT/Sigmatel sub-type for the Dell/Intel chipset.

cya,
-- 
Iain Buchanan iaindb at netspace dot net dot au

I wasn't recommending that we make the links for them, only provide them
with the tools to do so if they want to take the gamble (or the gambol).
 -- Larry Wall in 199709292259.paa10...@wall.org




Re: [gentoo-user] Re: media-video/gspcav1 or kernel module?

2009-02-11 Thread Iain Buchanan
On Sun, 2009-02-08 at 11:14 +0100, Francesco Talamona wrote:
 On Sunday 08 February 2009, Iain Buchanan wrote:
 [...]
  I recently upgraded from 2.6.26 to 2.6.28.  My el-cheapo webcam
  (lsusb: 0c45:602c Microdia Clas Ohlson TWC-30XOP WebCam) used the
  media-video/gspcav1 driver, but that no longer compiles:

 [...]
 
 If you boot 2.6.26 it should be easier to spot the right module.

I didn't use the kernel module in 2.6.26, I used media-video/gspcav1,
which gave me /lib/modules/2.6.25-tuxonice-r6/usb/video/gspca.ko which
just worked with linux, skype, etc.

  Anyway 
 I encountered the same problem with my gspca561, IIRC there's a problem 
 with 2.6.28 kernel.

:(

 Waiting for a kernel upgrade I lent my webcam to a vista user...

I can't wait! I'm a child of the here-and-now generation!

thanks :)
-- 
Iain Buchanan iaindb at netspace dot net dot au

Trying to get Windows to run on the hardware that Linux typically runs on
is like pushing an elephant through a keyhole.

   -- Forbes Magazine




Re: [gentoo-user] media-video/gspcav1 or kernel module?

2009-02-11 Thread Iain Buchanan
On Sun, 2009-02-08 at 19:43 +0900, Mike Mazur wrote:
 Hi,
 
 On Sun, Feb 8, 2009 at 12:24 PM, Iain Buchanan iai...@netspace.net.au wrote:
  I recently upgraded from 2.6.26 to 2.6.28.  My el-cheapo webcam (lsusb:
  0c45:602c Microdia Clas Ohlson TWC-30XOP WebCam) used the
  media-video/gspcav1 driver, but that no longer compiles:
 
 Maybe this page will point you to the right driver:
 
 http://cateee.net/lkddb/web-lkddb/VIDEO_DEV.html

I found that before I emailed, but I didn't glean much information from
it.  Looking at it again, I see that the pci id's are repeated later
with links (which confused me a bit) and I see that I should try
CONFIG_USB_SN9C102

I'll try that out when I get back to where I'm staying :)

thanks,
-- 
Iain Buchanan iaindb at netspace dot net dot au

It'll be just like Beggars' Canyon back home.
-- Luke Skywalker




Re: [gentoo-user] /etc/init.d/: ntpd or ntp-client?

2009-02-11 Thread Wolfgang Liebich
On Wed, Feb 04, 2009 at 06:20:50PM +, Stroller wrote:

 On 4 Feb 2009, at 14:11, Neil Bothwick wrote:
 On Wed, 4 Feb 2009 13:38:11 +, Stroller wrote:

 So when I found the clock to be a week out of date I checked that ntpd
 appeared to be running (it was) and restarted it. The date remained
 the same. Stopping ntpd  starting ntp-client corrected the date
 immediately.

 ntpd will not change the time if the difference is too large, the man
 page gives the limit. You need to run both at boot; ntp-client sets the
 time immediately, no matter what the skew, then ntpd keeps the clock in
 time.

 I see. Many thanks.

 I am surprised my clock got so far out of whack, having been only switched 
 off a few days. I don't think the battery is completely dead. The 
 difference in behaviour seems unexpected, but surely makes sense from the 
 developers' point-of-view.

 I will set both in the default runlevel  keep an eye on things.

 Stroller.

Another method would be using the chrony program (a simpler
alternative to ntp). I've been using it for the last 5+ years, and
consider it a simple and usable program.

Ciao, 
Wolfgang



[gentoo-user] Re: The Linux Ecosystem (with funny references to Gentoo vs Canonical)

2009-02-11 Thread Nicolas Sebrecht

On Tue, Feb 10, 2009 at 08:41:39AM +, Mick wrote:

  This video brought up an interesting question by my friend (an ubuntu
  user). How would one go about getting Canonical or the ubuntu community
  to change their practice of not contributing fixes back upstream?

It's all about dev mentality and habits. It a known issue with
Canonical. AFAIK, they are trying to change. That's what Mark
Shuttleworth did announce at least (don't know the facts).

   So, essentially we are 
 talking about different user profiles here.

The video is more about developpers than users. The upstream (as I
understand here from the video and the Joshua Doll's post) is what we
find upstream from the maintainers of the distribution. I guess that
Joshua wasn't talking about the users at all.

-- 
Nicolas Sebrecht




[gentoo-user] Re: The Linux Ecosystem (with funny references to Gentoo vs Canonical)

2009-02-11 Thread Nicolas Sebrecht

On Mon, Feb 09, 2009 at 09:51:26PM -0800, Joshua D Doll wrote:

 This video brought up an interesting question by my friend (an ubuntu 
 user). How would one go about getting Canonical or the ubuntu community to 
 change their practice of not contributing fixes back upstream? Without 
 having to change distributions.

From my point of view (and assuming he hasn't the knowledge as a user),
the best he can do is to ask what's going on upstream when filing a bug.
For instance he should ask for the version of the upstream package that
include the fix.

But in some (most ?) case, it wouldn't be appropriate as it could only
be an Ubuntu issue.

-- 
Nicolas Sebrecht




Re: [gentoo-user] testing a corrupt SD card

2009-02-11 Thread Stroller


On 11 Feb 2009, at 00:54, Iain Buchanan wrote:

On Fri, 2009-02-06 at 22:21 +, Stroller wrote:

On 6 Feb 2009, at 05:28, Iain Buchanan wrote:

...
so I created a file:
dd if=/dev/urandom of=Desktop/random.img bs=1024 count=500960


It has just occurred to me:

In the UK you can be imprisoned for failing to provide an encryption
key corresponding to this file.


are you joking? what's the story there?


It is a facet of the Regulation of Investigatory Powers Act (RIPA),  
which was passed in 2000 but which only came into effect just over  
year ago.


... those served with a Section 49 notice have to either
make decryption keys available or put the data in an
intelligible form for authorities. Failure to comply could
mean a prison sentence of up to two years for cases not
involving national security or five years for those that
do.
http://www.infoworld.com/article/07/10/01/UK-encryption-disclosure-law-takes-effect_1.html 




Under Part III of the act:

   If any person with the appropriate permission under Schedule
   2 believes, on reasonable grounds ... that a key to the
   protected information is in the possession of any person,
   ... the person with that permission may, by notice to the
   person whom he believes to have possession of the key,
   impose a disclosure requirement in respect of the protected
   information.
   http://www.opsi.gov.uk/acts/acts2000/ukpga_2023_en_8#pt3-pb1

Because the generated file is indistinguishable from an encrypted file  
it may be reasonably be believed to be one. Especially if you are  
charged with a crime /or use encryption for other purposes.


   In September 2003, Home Secretary David Blunkett announced
   wide-ranging extensions to the list of those entitled to see
   information collected under the RIPA. The list now includes
   jobcentres, local councils, and the Chief Inspector of
   Schools. Civil rights and privacy campaigners have dubbed
   these extensions a snoopers' charter. At the passing of
   the act only nine organisations (including the police and
   security services) were allowed to invoke it, but as of
   2008, it was 792 organizations (including 474 councils).

   In April 2008, it became known that council officials in
   Dorset put three children and their parents under
   surveillance, governed by RIPA, at home and in their daily
   movements to check whether they lived in a particular school
   catchment area. This was in the context of rules which allow
   people who live in the school catchment area to enjoy
   advantages in obtaining a place at a popular school. The
   same council put fishermen under covert surveillance to
   check for the illegal harvesting of cockles and clams in
   ways that are regulated by RIPA. Other councils in the UK
   have conducted undercover operations regulated by RIPA
   against dog fouling and fly-tipping.
   http://en.wikipedia.org/wiki/ 
Regulation_of_Investigatory_Powers_Act


(The cases cited in the last paragraph surely apply to the RIPA's  
regulation of CCTV surveillance, rather than encryption, however I  
thought it relevant to illustrate how wide-ranging the use of this  
anti-terrorism act has become).


Stroller.




Re: [gentoo-user] Re: Flash Drive Install

2009-02-11 Thread sean
Iain Buchanan wrote:

 
 Just be mindful of James' comment about lots of writes!
 

It is more of a curiosity project.




Re: [gentoo-user] testing a corrupt SD card

2009-02-11 Thread Paul Hartman
On Tue, Feb 10, 2009 at 6:59 PM, Iain Buchanan iai...@netspace.net.au wrote:
 On Fri, 2009-02-06 at 19:36 -0600, Paul Hartman wrote:
 On Thu, Feb 5, 2009 at 11:28 PM, Iain Buchanan iai...@netspace.net.au 
 wrote:
  Hi all,
 
  recently my SD card just went bonkers.  Unfortunately I lost a lot of
  photos on it (backups are useless until the data actually gets to the
  backup...) but fortunately I was able to use a program to recover about
  170 photos.
 
  Anyway, I don't know if it was just static, shock, dead card, or phase
  of the moon, so I would like to see if the card is good before I
  continue to use it.

 With any kind of memory or storage device, I would stop using after
 the first sign of a problem. My personal experience says it only gets
 worse. :)

 Lexar has a free program for recovering corrupted/deleted files from
 their cards, did you use that? Or something linux-based like photorec?
 Anyway, you wrote over it so it's too late now. :)

 Now you tell me there are free versions?!  I ended up finding a photo
 recovery tool which recovered the photos for me, but it wasn't free.
 Needless to say I didn't pay for it, and I deleted it straight away.

Actually, the Lexar Image Rescue software costs USD$33.95, but will
be available for free download with purchase of any new 2007 Lexar
Professional or Platinum II line CompactFlash or Secure Digital memory
card.

Also, I just learned that Lexar will do professional data recovery for
FREE on Lexar cards (if you mail them in). Apparently it is
unadvertised benefit geared mostly toward professional photographers
who cannot afford to lose their work, so if you had files other than
photos on the card they probably wouldn't deal with them. I don't know
if Lexar AU could do it or if you'd need to send it to the USA. Let's
hope you never have to deal with that situation again. :)

 I'll check out photorec next time.  I'm having a hard time finding info
 about it though (see previous email about draconian internet access).

A description from the web:

PhotoRec is file data recovery software designed to recover lost files
including video, documents and archives from Hard Disks and CDRom and
lost pictures (thus, its 'Photo Recovery' name) from digital camera
memory. PhotoRec ignores the filesystem and goes after the underlying
data, so it will still work even if your media's filesystem has been
severely damaged or re-formatted.

PhotoRec is free, this open source multi-platform application is
distributed under GNU Public License. PhotoRec is a companion program
to TestDisk, an app for recovering lost partitions on a wide variety
of filesystems and making non-bootable disks bootable again. You can
download them from this link.

For more safety, PhotoRec uses read-only access to handle the drive or
memory support you are about to recover lost data from. Important: As
soon as a pic or file is accidentally deleted, or you discover any
missing, do NOT save any more pics or files to that memory device or
hard disk drive; otherwise you may overwrite your lost data. This
means that even using PhotoRec, you must not choose to write the
recovered files to the same partition they were stored on.

 Is there a general linux version of FAT recovery tools available
 somewhere?  I couldn't find one.

Well, other than fsck I'm familiar with DFSee. It is not free, but it
is shareware with a trial period (good if you only need to use it once
in a pinch), and it has a Linux (and DOS,Windows, Mac and OS/2)
version as well as bootable ISO. I've used it for many years and had
some success stories. I registered it back in the olden days (version
2 or 3 or so), now it's up to v9. http://www.dfsee.com/

Again, hoping you never have to use such a thing!
Paul



[gentoo-user] KDE-meta 4.2 upgrade

2009-02-11 Thread James
Hello,

OK, I have read back into January the suggestions on this
list about going to Kde-meta 4.2. I have dozens of workstations
running gentoo, so now I'm going to upgrade one (test) laptop
to get a feel for kde-4.2 and hopefully flesh out an
upgrade strategy for all of these laptops and workstations
running kde. I'm not so concerned with being slick,
as I am discovering the verbose, *sure_footed steps* to make
the migration, mechanical, because these will be done, one
at a time, in the background while I do other work related
tasks. The systems vary wildly (cpu, video etc) but
they all have kde-meta 3.6.9 installed, currently.


So here are my (gleaned) steps:

1. emerge --unmerge kde-meta

2. emerge --pretend --depclean kde-meta
check over manually

3. emerge --depclean kde-meta

4. autounmask kde-base/kde-4.2.0

5. echo kde-base/kde-meta   ~amd64 /etc/portage/package.keywords

6. emerge  -DNv kde-meta



Look plausible? Verbose comments are most welcome.


James







Re: [gentoo-user] KDE-meta 4.2 upgrade

2009-02-11 Thread Volker Armin Hemmann
On Mittwoch 11 Februar 2009, James wrote:
 Hello,

 OK, I have read back into January the suggestions on this
 list about going to Kde-meta 4.2. I have dozens of workstations
 running gentoo, so now I'm going to upgrade one (test) laptop
 to get a feel for kde-4.2 and hopefully flesh out an
 upgrade strategy for all of these laptops and workstations
 running kde. I'm not so concerned with being slick,
 as I am discovering the verbose, *sure_footed steps* to make
 the migration, mechanical, because these will be done, one
 at a time, in the background while I do other work related
 tasks. The systems vary wildly (cpu, video etc) but
 they all have kde-meta 3.6.9 installed, currently.


 So here are my (gleaned) steps:

 1. emerge --unmerge kde-meta

 2. emerge --pretend --depclean kde-meta
 check over manually

 3. emerge --depclean kde-meta

 4. autounmask kde-base/kde-4.2.0

 5. echo kde-base/kde-meta   ~amd64 /etc/portage/package.keywords

 6. emerge  -DNv kde-meta



 Look plausible? Verbose comments are most welcome.

just emerge the kde-4.2 set instead of that meta stuff.





[gentoo-user] Re: KDE-meta 4.2 upgrade

2009-02-11 Thread james
Volker Armin Hemmann volkerarmin at googlemail.com writes:


  6. emerge  -DNv kde-meta

  Look plausible? Verbose comments are most welcome.

 just emerge the kde-4.2 set instead of that meta stuff.

Is there a problem with kde-meta-4.2.0 ? I have many different
users asking for many different things, under kde.
Kde-meta make my life simpler. However, if you have
a technical reason not to install kde-meta, for example
too many failed components, then please explain
in some detail Just to save disk space or compile
time, is not a relevant reason for me. I'm interested
in why you say no to kde-meta?


James








Re: [gentoo-user] Re: KDE-meta 4.2 upgrade

2009-02-11 Thread Volker Armin Hemmann
On Mittwoch 11 Februar 2009, james wrote:
 Volker Armin Hemmann volkerarmin at googlemail.com writes:
   6. emerge  -DNv kde-meta
  
   Look plausible? Verbose comments are most welcome.
 
  just emerge the kde-4.2 set instead of that meta stuff.

 Is there a problem with kde-meta-4.2.0 ? I have many different
 users asking for many different things, under kde.
 Kde-meta make my life simpler. However, if you have
 a technical reason not to install kde-meta, for example
 too many failed components, then please explain
 in some detail Just to save disk space or compile
 time, is not a relevant reason for me. I'm interested
 in why you say no to kde-meta?


 James

because meta packages are on their way to be phased out and sets are the way 
to go? Sets are working great? Easier to unmask/keyword?




Re: [gentoo-user] KDE-meta 4.2 upgrade

2009-02-11 Thread Alan McKinnon
On Wednesday 11 February 2009 20:25:13 James wrote:
 Hello,

 OK, I have read back into January the suggestions on this
 list about going to Kde-meta 4.2. I have dozens of workstations
 running gentoo, so now I'm going to upgrade one (test) laptop
 to get a feel for kde-4.2 and hopefully flesh out an
 upgrade strategy for all of these laptops and workstations
 running kde. I'm not so concerned with being slick,
 as I am discovering the verbose, *sure_footed steps* to make
 the migration, mechanical, because these will be done, one
 at a time, in the background while I do other work related
 tasks. The systems vary wildly (cpu, video etc) but
 they all have kde-meta 3.6.9 installed, currently.


 So here are my (gleaned) steps:

 1. emerge --unmerge kde-meta

 2. emerge --pretend --depclean kde-meta
 check over manually

 3. emerge --depclean kde-meta

 4. autounmask kde-base/kde-4.2.0

 5. echo kde-base/kde-meta   ~amd64 /etc/portage/package.keywords

 6. emerge  -DNv kde-meta

Looks about right. If it were me, I would not unmerge kde-3.5.* just yet. I 
find that there are things still not present in 4.2 and I fall back to 3.5 to 
get them. Stuff like kmail which I have not migrated all my mail, contacts, 
feeds etc over to yet. Amarok, which although not part of 4.2, just plain 
sucks (no flame fest please, I like where it might go; it just has not quite 
gotten out of the starting blocks, never mind actually there yet) and you may 
run into trouble building system-settings (I didn't but others have).

Also, 4.2 really really does not like it if you mix and match old and new 
overlays with the portage tree. You are not in that position, so it's not a 
problem for you.

Finally, try to use sets if possible. The split -meta ebuilds were an ugly 
hack until sets made it into portage. They were orders of magnitude better 
than monolithic, but sets are just so much cleaner than -meta. Plus you get 
to easily define what's in a set if the standard ones don't suit your needs.

I'm finding issues with exiv2, libkeviv2 and stuff that uses it. Like 
gwenview, okular and krita. But that's the kind of thing that happens 
occasionally in ~arch


-- 
alan dot mckinnon at gmail dot com



[gentoo-user] Re: KDE-meta 4.2 upgrade

2009-02-11 Thread James
Alan McKinnon alan.mckinnon at gmail.com writes:

Volker and Alan,

 Finally, try to use sets if possible. The split -meta ebuilds were an ugly 
 hack until sets made it into portage. They were orders of magnitude better 
 than monolithic, but sets are just so much cleaner than -meta. Plus you get 
 to easily define what's in a set if the standard ones don't suit your needs.


OK, I got it, use SETS instead  of kde-meta.
Where do I read up on using SETS?

I see set in the emerge manpage, but it seem, brief.
How do you use the default sets when upgrading to 
kde-4.2.x?

Any examples or further reading?



 I'm finding issues with exiv2, libkeviv2 and stuff that uses it. Like 
 gwenview, okular and krita. But that's the kind of thing that happens 
 occasionally in ~arch

Well this is just one test laptop. The approach is to now put
kde-4.2.0 on this laptop, use it until some comfort is found with
kde-4.2.x and then slowly upgrade the rest of the machine I'm
admin over.


Point well taken about skipping the removal of
kde-meta-3.5.9. Just leave it on the laptop?  I
 thought I had read that that causes problems.
This laptop is my test box, so loosing kde-meta-3.5.9 is no
big deal, as I have another workstation.









Re: [gentoo-user] Re: KDE-meta 4.2 upgrade

2009-02-11 Thread Paul Hartman
On Wed, Feb 11, 2009 at 3:29 PM, James wirel...@tampabay.rr.com wrote:
 Alan McKinnon alan.mckinnon at gmail.com writes:

 Volker and Alan,

 Finally, try to use sets if possible. The split -meta ebuilds were an ugly
 hack until sets made it into portage. They were orders of magnitude better
 than monolithic, but sets are just so much cleaner than -meta. Plus you get
 to easily define what's in a set if the standard ones don't suit your needs.


 OK, I got it, use SETS instead  of kde-meta.
 Where do I read up on using SETS?

 I see set in the emerge manpage, but it seem, brief.
 How do you use the default sets when upgrading to
 kde-4.2.x?

Basically, sets start with @ and you would just emerge like a meta,
emerge @kde-4.2 (or whatever). You can do emerge --list-sets to see
which are available to you. Rather than being meta listed in
/var/lib/portage/world the sets will be listed in
/var/lib/portage/world_sets

You can make your own sets (my stuff or something) and it makes it
easy to get all of your favorite/required packages when setting up a
new system. Just emerge your set and voila :)

The set files are simple, just a text file with a list of package
names inside. You can put your custom sets in /etc/portage/sets I
believe. Overlays can have their own sets (kde-testing has a million
of them).

Lastly, I think you need to be using portage 2.2 in order to have
sets. I'm not sure what version is stable or whatever. I just unmasked
all portage so I'm using whatever the latest one is in the tree.



Re: [gentoo-user] Permissions of /etc/sudoers

2009-02-11 Thread b.n.
Michael Hentsch ha scritto:
 The file /etc/sudoers should always be edited with visudo. visudo uses
 file locking, provides basic sanity checks and checks for parse errors.

This always made me crazy.

Why, why, why should I use a specialized editor to edit a system file?
It's not like we have vixorgconf, vifstab. You are welcome to edit these
files with any editor you like. Why is /etc/sudoers special?

m.



[gentoo-user] Re: Permissions of /etc/sudoers

2009-02-11 Thread Nikos Chantziaras

b.n. wrote:

Michael Hentsch ha scritto:

The file /etc/sudoers should always be edited with visudo. visudo uses
file locking, provides basic sanity checks and checks for parse errors.


This always made me crazy.

Why, why, why should I use a specialized editor to edit a system file?
It's not like we have vixorgconf, vifstab. You are welcome to edit these
files with any editor you like. Why is /etc/sudoers special?


Because it needs to be checked for errors before you save it.

But visudo uses the editor specified in the EDITOR environment variable 
(a lot programs do; EDITOR for editing and VISUAL for viewing).  In 
/etc/env.d/99local, I have:


  EDITOR=kwrite

So here, visudo brings up KDE's text editor.




Re: [gentoo-user] Permissions of /etc/sudoers

2009-02-11 Thread Neil Bothwick
On Thu, 12 Feb 2009 00:52:22 +0100, b.n. wrote:

  The file /etc/sudoers should always be edited with visudo. visudo uses
  file locking, provides basic sanity checks and checks for parse
  errors.  
 
 This always made me crazy.
 
 Why, why, why should I use a specialized editor to edit a system file?
 It's not like we have vixorgconf, vifstab. You are welcome to edit these
 files with any editor you like. Why is /etc/sudoers special?

It's no more special than /etc/passwd, which should be edited with vipw.
And it's not a specialised editor, these are just wrappers that call
$EDITOR, so you end up using the same program to edit the files, but with
a safety net. Remember that some systems restrict root access, so a
fscked /etc/sudoers could lock you out.

It's not like you HAVE to use the wrapper either, there's nothing to stop
you using any editor you like, directly, and it's the best choice if you
want to be free to screw up the file. 


-- 
Neil Bothwick

Procedure: (n.) a method of performing a program sub-task in an
inefficient way by extensively using the stack instead of a GOTO.


signature.asc
Description: PGP signature


Re: [gentoo-user] Permissions of /etc/sudoers

2009-02-11 Thread Paul Hartman
On Wed, Feb 11, 2009 at 5:52 PM, b.n. brullonu...@gmail.com wrote:
 Michael Hentsch ha scritto:
 The file /etc/sudoers should always be edited with visudo. visudo uses
 file locking, provides basic sanity checks and checks for parse errors.

 This always made me crazy.

 Why, why, why should I use a specialized editor to edit a system file?
 It's not like we have vixorgconf, vifstab. You are welcome to edit these
 files with any editor you like. Why is /etc/sudoers special?

I guess an error in sudoers could allow the whole world to use sudo,
and someone decided to give this special cushion to this program and
none of the others that can also ruin your system in various other
ways. :)

Paul



Re: [gentoo-user] Permissions of /etc/sudoers

2009-02-11 Thread Neil Bothwick
On Wed, 11 Feb 2009 18:01:36 -0600, Paul Hartman wrote:

 I guess an error in sudoers could allow the whole world to use sudo,
 and someone decided to give this special cushion to this program and
 none of the others that can also ruin your system in various other
 ways. :)

You could also lock yourself out, and some of the other files also have
editor wrappers.


-- 
Neil Bothwick

Bother, said Christopher Robin, as Pooh got out the vaseline.


signature.asc
Description: PGP signature


[gentoo-user] python-2.5.2-r7 build problems

2009-02-11 Thread Mark Knecht
Hi,
   I had two machine that for some reason wouldn't build the 2.5 slot
for python. I've waited weeks for the possibility that something would
get cleaned up in portage or on a server somewhere but as of yet it
hasn't happened. For kicks today I cleaned out distfiles and did an
emerge -e @system but it failed the same way. I'm wondering what to
try next?

   Is it allowable to remove ebuilds by hand? Will an eix-sync get new
versions if ebuilds are missing and I change the servers that the
machine is pointing to?

   Looking for ideas about how to move forward.

Thanks,
Mark



Re: [gentoo-user] python-2.5.2-r7 build problems

2009-02-11 Thread Joshua D Doll

Mark Knecht wrote:

Hi,
   I had two machine that for some reason wouldn't build the 2.5 slot
for python. I've waited weeks for the possibility that something would
get cleaned up in portage or on a server somewhere but as of yet it
hasn't happened. For kicks today I cleaned out distfiles and did an
emerge -e @system but it failed the same way. I'm wondering what to
try next?

   Is it allowable to remove ebuilds by hand? Will an eix-sync get new
versions if ebuilds are missing and I change the servers that the
machine is pointing to?

   Looking for ideas about how to move forward.

Thanks,
Mark


  

What's the error message?

--Joshua Doll



Re: [gentoo-user] python-2.5.2-r7 build problems

2009-02-11 Thread Mark Knecht
On Wed, Feb 11, 2009 at 6:25 PM, Joshua D Doll joshua.d...@gmail.com wrote:
 Mark Knecht wrote:

 Hi,
   I had two machine that for some reason wouldn't build the 2.5 slot
 for python. I've waited weeks for the possibility that something would
 get cleaned up in portage or on a server somewhere but as of yet it
 hasn't happened. For kicks today I cleaned out distfiles and did an
 emerge -e @system but it failed the same way. I'm wondering what to
 try next?

   Is it allowable to remove ebuilds by hand? Will an eix-sync get new
 versions if ebuilds are missing and I change the servers that the
 machine is pointing to?

   Looking for ideas about how to move forward.

 Thanks,
 Mark




 What's the error message?

 --Joshua Doll

Not much unfortunately:

Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xml/sax/xmlreader.py
...
Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xmllib.py
...
Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xmlrpclib.py
...
Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/zipfile.py
...
make: *** [libinstall] Error 1
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m ERROR: dev-lang/python-2.5.2-r7 failed.
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m   ebuild.sh, line   49:  Called src_install
 ^[[31;01m*^[[0m environment, line 3469:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m   make DESTDIR=${D} altinstall maninstall || die;
 ^[[31;01m*^[[0m  The die message:
 ^[[31;01m*^[[0m   (no error message)
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m If you need support, post the topmost build error,
and the call stack if relevant.
 ^[[31;01m*^[[0m A complete build log is located at
'/var/tmp/portage/dev-lang/python-2.5.2-r7/temp/build.log'.
 ^[[31;01m*^[[0m The ebuild environment file is located at
'/var/tmp/portage/dev-lang/python-2.5.2-r7/temp/environment'.
 ^[[31;01m*^[[0m



Re: [gentoo-user] python-2.5.2-r7 build problems

2009-02-11 Thread Joshua D Doll

Mark Knecht wrote:

On Wed, Feb 11, 2009 at 6:25 PM, Joshua D Doll joshua.d...@gmail.com wrote:
  

Mark Knecht wrote:


Hi,
  I had two machine that for some reason wouldn't build the 2.5 slot
for python. I've waited weeks for the possibility that something would
get cleaned up in portage or on a server somewhere but as of yet it
hasn't happened. For kicks today I cleaned out distfiles and did an
emerge -e @system but it failed the same way. I'm wondering what to
try next?

  Is it allowable to remove ebuilds by hand? Will an eix-sync get new
versions if ebuilds are missing and I change the servers that the
machine is pointing to?

  Looking for ideas about how to move forward.

Thanks,
Mark



  

What's the error message?

--Joshua Doll



Not much unfortunately:

Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xml/sax/xmlreader.py
...
Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xmllib.py
...
Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xmlrpclib.py
...
Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/zipfile.py
...
make: *** [libinstall] Error 1
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m ERROR: dev-lang/python-2.5.2-r7 failed.
 ^[[31;01m*^[[0m Call stack:
 ^[[31;01m*^[[0m   ebuild.sh, line   49:  Called src_install
 ^[[31;01m*^[[0m environment, line 3469:  Called die
 ^[[31;01m*^[[0m The specific snippet of code:
 ^[[31;01m*^[[0m   make DESTDIR=${D} altinstall maninstall || die;
 ^[[31;01m*^[[0m  The die message:
 ^[[31;01m*^[[0m   (no error message)
 ^[[31;01m*^[[0m
 ^[[31;01m*^[[0m If you need support, post the topmost build error,
and the call stack if relevant.
 ^[[31;01m*^[[0m A complete build log is located at
'/var/tmp/portage/dev-lang/python-2.5.2-r7/temp/build.log'.
 ^[[31;01m*^[[0m The ebuild environment file is located at
'/var/tmp/portage/dev-lang/python-2.5.2-r7/temp/environment'.
 ^[[31;01m*^[[0m


  


I might be mistaken, but I don't think that is make error message. You 
might want to check further up in the build.log for more information.


--Joshua Doll



[gentoo-user] Re: KDE-meta 4.2 upgrade

2009-02-11 Thread james
Paul Hartman paul.hartman+gentoo at gmail.com writes:


 Basically, sets start with @ and you would just emerge like a meta,
 emerge @kde-4.2 (or whatever). You can do emerge --list-sets to see
 which are available to you. Rather than being meta listed in
 /var/lib/portage/world the sets will be listed in
 /var/lib/portage/world_sets

 

Very cool.




I'll give it a shot.


James





Re: [gentoo-user] Permissions of /etc/sudoers

2009-02-11 Thread Stroller


On 12 Feb 2009, at 00:01, Neil Bothwick wrote:

...  there's nothing to stop
you using any editor you like, directly, and it's the best choice if  
you

want to be free to screw up the file.


It's the Unix way!

Stroller.




Re: [gentoo-user] python-2.5.2-r7 build problems

2009-02-11 Thread Mark Knecht
On Wed, Feb 11, 2009 at 7:04 PM, Joshua D Doll joshua.d...@gmail.com wrote:
 Mark Knecht wrote:

 On Wed, Feb 11, 2009 at 6:25 PM, Joshua D Doll joshua.d...@gmail.com
 wrote:


 Mark Knecht wrote:


 Hi,
  I had two machine that for some reason wouldn't build the 2.5 slot
 for python. I've waited weeks for the possibility that something would
 get cleaned up in portage or on a server somewhere but as of yet it
 hasn't happened. For kicks today I cleaned out distfiles and did an
 emerge -e @system but it failed the same way. I'm wondering what to
 try next?

  Is it allowable to remove ebuilds by hand? Will an eix-sync get new
 versions if ebuilds are missing and I change the servers that the
 machine is pointing to?

  Looking for ideas about how to move forward.

 Thanks,
 Mark





 What's the error message?

 --Joshua Doll


 Not much unfortunately:

 Compiling
 /var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xml/sax/xmlreader.py
 ...
 Compiling
 /var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xmllib.py
 ...
 Compiling
 /var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/xmlrpclib.py
 ...
 Compiling
 /var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/zipfile.py
 ...
 make: *** [libinstall] Error 1
  ^[[31;01m*^[[0m
  ^[[31;01m*^[[0m ERROR: dev-lang/python-2.5.2-r7 failed.
  ^[[31;01m*^[[0m Call stack:
  ^[[31;01m*^[[0m   ebuild.sh, line   49:  Called src_install
  ^[[31;01m*^[[0m environment, line 3469:  Called die
  ^[[31;01m*^[[0m The specific snippet of code:
  ^[[31;01m*^[[0m   make DESTDIR=${D} altinstall maninstall || die;
  ^[[31;01m*^[[0m  The die message:
  ^[[31;01m*^[[0m   (no error message)
  ^[[31;01m*^[[0m
  ^[[31;01m*^[[0m If you need support, post the topmost build error,
 and the call stack if relevant.
  ^[[31;01m*^[[0m A complete build log is located at
 '/var/tmp/portage/dev-lang/python-2.5.2-r7/temp/build.log'.
  ^[[31;01m*^[[0m The ebuild environment file is located at
 '/var/tmp/portage/dev-lang/python-2.5.2-r7/temp/environment'.
  ^[[31;01m*^[[0m




 I might be mistaken, but I don't think that is make error message. You might
 want to check further up in the build.log for more information.

 --Joshua Doll


Thanks. I really see nothing else in the file unless I'm just missing
it somehow. I've grepped the file for error/Error/ERROR. The only
thing that shows up is this for 'Error':
mkdir: cannot create directory `Include': File exists
make: [Include/graminit.h] Error 1 (ignored)
Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c
mkdir: cannot create directory `Include': File exists
make: [Python/graminit.c] Error 1 (ignored)
Parser/pgen ./Grammar/Grammar ./Include/graminit.h ./Python/graminit.c

and this:

Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/test/test_multibytecodec.py
...
Sorry: UnicodeDecodeError: ('unicodeescape', '\\N{SOFT HYPHEN}', 0,
15, 'unknown Unicode character name')
Compiling 
/var/tmp/portage/dev-lang/python-2.5.2-r7/image//usr/lib/python2.5/test/test_multibytecodec_support.py
...

For kicks I erased the work directory which gets left around when a
build fails. That didn't help.

Mostly I was thinking if I knew what I could safely delete then I
could let emerge download new copies. I'm assuming that this is being
caused by some corrupted file on my machine, or on the server. If I
change servers then maybe I'll get a good copy, etc. It's weak but
this has been hanging around for a month. I've filed a bug. I haven't
heard a word from bugzilla folks. Not like the old days when you'd see
a response from someone within hours.

- Mark



Re: [gentoo-user] python-2.5.2-r7 build problems

2009-02-11 Thread Mark Knecht
On Wed, Feb 11, 2009 at 7:04 PM, Joshua D Doll joshua.d...@gmail.com wrote:
SNIP

 I might be mistaken, but I don't think that is make error message. You might
 want to check further up in the build.log for more information.

 --Joshua Doll



CFLAGS? The machine that fails:

CFLAGS=-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe
CHOST=i686-pc-linux-gnu
CXXFLAGS=${CFLAGS}
MAKEOPTS=-j2


A machine that passes:



Re: [gentoo-user] python-2.5.2-r7 build problems

2009-02-11 Thread Mark Knecht
On Wed, Feb 11, 2009 at 8:22 PM, Mark Knecht markkne...@gmail.com wrote:
 On Wed, Feb 11, 2009 at 7:04 PM, Joshua D Doll joshua.d...@gmail.com wrote:
 SNIP

 I might be mistaken, but I don't think that is make error message. You might
 want to check further up in the build.log for more information.

 --Joshua Doll



 CFLAGS? The machine that fails:

 CFLAGS=-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -pipe
 CHOST=i686-pc-linux-gnu
 CXXFLAGS=${CFLAGS}
 MAKEOPTS=-j2


 A machine that passes:


CFLAGS=-O2 -march=i686 -fomit-frame-pointer -pipe
CHOST=i686-pc-linux-gnu
CXXFLAGS=${CFLAGS}
MAKEOPTS=-j2



[gentoo-user] Can't login from terminal?

2009-02-11 Thread Chuanwen Wu
Hi,
My gentoo worked very well in the past two years. But today I found
that I can't login it from the terminal, but ssh login is OK.

I have written down the login message:
/*/
This is Gentoo-Server.unknown_domain (Linux i686 2.6.26-gentoo-r1) 12:22:39
Gentoo-Server login: root
Password:
Last login: Thu Feb 12:09:24 CST 2009 from node07 on pts/0

This is Gentoo-Server.unknown_domain (Linux i686 2.6.26-gentoo-r1) 12:28:36
Gentoo-Server login:
/*/

node07 is another machine from which I used ssh to login the
Gentoo-Server and as what I said above, it succeeded.

Have anybody ever encountered this problem?
Any help will be appreciate!

-- 
wcw



Re: [gentoo-user] Re: KDE-meta 4.2 upgrade

2009-02-11 Thread Dale
james wrote:
 Paul Hartman paul.hartman+gentoo at gmail.com writes:


   
 Basically, sets start with @ and you would just emerge like a meta,
 emerge @kde-4.2 (or whatever). You can do emerge --list-sets to see
 which are available to you. Rather than being meta listed in
 /var/lib/portage/world the sets will be listed in
 /var/lib/portage/world_sets
 

  

 Very cool.




 I'll give it a shot.


 James

   

Sorry to butt in here.  I !think! I get what sets does, you add a group
of packages to a file and then when you do the @sets thing, it
emerges/upgrades that group of packages.  I get that part.  I guess from
what I am reading that we the user OR the tree devs can create a sets
file.  So I could create a set called network and put things like Kppp,
ppp, wireshark and all the networky things in there for my use alone.  I
assume that the tree devs can also create a sets file with say all the
KDE packages or maybe all the system packages in it for everybody to
use.  Would that be correct?

I'm going to jump off a cliff here and ask this.  How would I emerge
kde-meta-4.2 and all its friends without using layman or anything, just
a plain emerge @kde-meta and go to bed for a while?  This would be using
the sets feature too.  I am using portage-2.2_rc23 so I should be ready
to go with the new sets feature.

Oh, is there a really good howto somewhere?  Real simple non-geek
speak.  Cool examples would be really nice. I looked around gentoo.org
but nothing really spells it out.  I did find a HUGE thread about it but
still not registering for me.  I need a light bulb moment.  O_O 

Dale

:-)  :-)



Re: [gentoo-user] Re: KDE-meta 4.2 upgrade

2009-02-11 Thread Alan McKinnon
On Thursday 12 February 2009 07:01:36 Dale wrote:

 Sorry to butt in here.  I !think! I get what sets does, you add a group
 of packages to a file and then when you do the @sets thing, it
 emerges/upgrades that group of packages.  I get that part.  I guess from
 what I am reading that we the user OR the tree devs can create a sets
 file.  

Yes. The old split -meta ebuilds were a stop-gap hack while waiting for set 
functionality (the devs said as much in the kde split-ebuild handbook page) 
but required that a full-blown ebuild be written. Which then had to be 
manifested and either inserted in the tree or an overlay. i.e. 
waay too complex for what is really just a simple list.

 So I could create a set called network and put things like Kppp, 
 ppp, wireshark and all the networky things in there for my use alone.  

Yes

 I 
 assume that the tree devs can also create a sets file with say all the
 KDE packages or maybe all the system packages in it for everybody to
 use.  Would that be correct?

Yes. 

 I'm going to jump off a cliff here and ask this.  How would I emerge
 kde-meta-4.2 and all its friends without using layman or anything, just
 a plain emerge @kde-meta and go to bed for a while?  This would be using
 the sets feature too.  I am using portage-2.2_rc23 so I should be ready
 to go with the new sets feature.

Forget about anything with -meta in it's name if you want to use sets. As I 
said above, -meta ebuilds are a hack and an ugly one to boot (but useful 
nonetheless). Create a file called say /etc/portage/sets/dale_stuff and run

emerge -av @dale_stuff

Go to bed. To get all the kde stuff, I *think* that easiest would be to ask 
someone using kde-testing to mail you a copy of the set file included there. 
Or you could make one by hand with ls,grep,sed,awk and friends.

 Oh, is there a really good howto somewhere?  Real simple non-geek
 speak.  Cool examples would be really nice. I looked around gentoo.org
 but nothing really spells it out.  I did find a HUGE thread about it but
 still not registering for me.  I need a light bulb moment.  O_O

There isn't much in the way of docs. I read a blog post from one of the devs 
recently but have no idea where it is. I'll have a look.

It would appear from some code snippets I saw there that you can even do nifty 
things like subtract one set from another. Say you wanted all of kde except 
three specific apps. Put those three in a set file, let's call it 
kde_exclude, and run some command along the lines of

emerge @k...@kde_exclude

portage will subtract the exclude file from the big one and merge just the 
difference. Cool, hey?

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Can't login from terminal?

2009-02-11 Thread Sebastian Günther
* Chuanwen Wu (wcw8...@gmail.com) [12.02.09 05:41]:
 Hi,
 My gentoo worked very well in the past two years. But today I found
 that I can't login it from the terminal, but ssh login is OK.
 
 Have anybody ever encountered this problem?
 Any help will be appreciate!
 

man securetty

HTH
Sebastian

-- 
  Religion ist das Opium des Volkes.   Karl Marx

 s...@sti@N GÜNTHER mailto:sam...@guenther-roetgen.de


pgp2W3qxh42IZ.pgp
Description: PGP signature


Re: [gentoo-user] KDE-meta 4.2 upgrade

2009-02-11 Thread Dirk Uys
On Wed, Feb 11, 2009 at 9:19 PM, Alan McKinnon alan.mckin...@gmail.com wrote:

 gotten out of the starting blocks, never mind actually there yet) and you may
 run into trouble building system-settings (I didn't but others have).


If you are using an older compiler (like gcc-4.1.1-r3) you may get a
linker error. Have a look at bug 256827.

Regards
Dirk



Re: [gentoo-user] KDE4.2 compile problem

2009-02-11 Thread Dirk Uys
On Tue, Feb 10, 2009 at 8:41 AM, Dirk Uys dirkc...@gmail.com wrote:
 After some more struggling I managed to get kde-base/systemsettings
 compiled: If I unmerge x11-libs/libxkbfile and then emerge
 systemsettings, it compiles fine (without support for the xkb
 settings). After that I did an emerge -DuvaN world and this pulls in
 libxkbfile again.

 But when I try to start KDE4.2 (using kdm), the screen blanks out a
 few times while kde is loading (the spash screen being displayed) and
 then I briefly see a malformed desktop (the bottom of the taskbar
 wraps around to the top of the screen) and then just a black screen.

 In /var/log/messages, something about plasma crashing is reported,
 can't remember and I'm not at the PC now, but nothing very
 informative.

 I feel like going back to my good old days of windowmaker.

 Regards
 Dirk


I found bug #256827, upgraded gcc, and everything is fine and well again!

Regards
Dirk



Re: [gentoo-user] Re: KDE-meta 4.2 upgrade

2009-02-11 Thread Dale
Alan McKinnon wrote:
 On Thursday 12 February 2009 07:01:36 Dale wrote:

   
 Sorry to butt in here.  I !think! I get what sets does, you add a group
 of packages to a file and then when you do the @sets thing, it
 emerges/upgrades that group of packages.  I get that part.  I guess from
 what I am reading that we the user OR the tree devs can create a sets
 file.  
 

 Yes. The old split -meta ebuilds were a stop-gap hack while waiting for set 
 functionality (the devs said as much in the kde split-ebuild handbook page) 
 but required that a full-blown ebuild be written. Which then had to be 
 manifested and either inserted in the tree or an overlay. i.e. 
 waay too complex for what is really just a simple list.

   
 So I could create a set called network and put things like Kppp, 
 ppp, wireshark and all the networky things in there for my use alone.  
 

 Yes

   
 I 
 assume that the tree devs can also create a sets file with say all the
 KDE packages or maybe all the system packages in it for everybody to
 use.  Would that be correct?
 

 Yes. 

   
 I'm going to jump off a cliff here and ask this.  How would I emerge
 kde-meta-4.2 and all its friends without using layman or anything, just
 a plain emerge @kde-meta and go to bed for a while?  This would be using
 the sets feature too.  I am using portage-2.2_rc23 so I should be ready
 to go with the new sets feature.
 

 Forget about anything with -meta in it's name if you want to use sets. As I 
 said above, -meta ebuilds are a hack and an ugly one to boot (but useful 
 nonetheless). Create a file called say /etc/portage/sets/dale_stuff and run

 emerge -av @dale_stuff

 Go to bed. To get all the kde stuff, I *think* that easiest would be to ask 
 someone using kde-testing to mail you a copy of the set file included there. 
 Or you could make one by hand with ls,grep,sed,awk and friends.

   
 Oh, is there a really good howto somewhere?  Real simple non-geek
 speak.  Cool examples would be really nice. I looked around gentoo.org
 but nothing really spells it out.  I did find a HUGE thread about it but
 still not registering for me.  I need a light bulb moment.  O_O
 

 There isn't much in the way of docs. I read a blog post from one of the devs 
 recently but have no idea where it is. I'll have a look.

 It would appear from some code snippets I saw there that you can even do 
 nifty 
 things like subtract one set from another. Say you wanted all of kde except 
 three specific apps. Put those three in a set file, let's call it 
 kde_exclude, and run some command along the lines of

 emerge @k...@kde_exclude

 portage will subtract the exclude file from the big one and merge just the 
 difference. Cool, hey?

   

Cool.  Thanks for the info.  Nice to know I understood some things
correctly.  Even a dead clock is right twice a day.  o_O

Dale

:-)  :-) 



Re: [gentoo-user] Can't login from terminal?

2009-02-11 Thread Chuanwen Wu
Hi, thanks!

 man securetty
/*/
# cat /etc/securetty
# /etc/securetty: list of terminals on which root is allowed to login.
# See securetty(5) and login(1).
console

vc/0
vc/1
vc/2
vc/3
vc/4
vc/5
vc/6
vc/7
vc/8
vc/9
vc/10
vc/11
vc/12
tty0
tty1
tty2
tty3
tty4
tty5
tty6
tty7
tty8
tty9
tty10
tty11
tty12

tts/0
ttyS0
/*/

This is my /etc/securetty, I think it's normal.

Besides, I can't login as root, neither other user.

-- 
wcw