Re: [gentoo-user] Audio and permissions.

2005-09-10 Thread Nick Rout
On Fri, 2005-09-09 at 22:46 -0700, gentuxx wrote:
  As root
  # gpasswd -a username audio
 
  Replace username with (you guessed it) your username
 
 K.  I'll give that a shot.  Is that a logout/login situation?

yes, and running id username will confirm that you are in the audio
group :-)

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] jack-audio-connection-kit-0.100.0 ??

2005-09-10 Thread Nick Rout
On Fri, 2005-09-09 at 09:04 +0100, Neil Bothwick wrote:
  emerge --digest jack-audio-connection
  
  will build the new digest thing, you no longer need to 
  
  ebuild /long/path/balh.ebuild digest
  
  first.
 
 Neat, when was that added?

dunno, i picked it up from a games ebuild writing howto.

-- 
Nick Rout [EMAIL PROTECTED]

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Encrypted NFS via ssh tunelling

2005-09-10 Thread Bryan Whitehead



On Fri, 9 Sep 2005, Hans-Werner Hilse wrote:


Hi,

On Fri, 9 Sep 2005 09:29:18 +0200 (CEST)
Patrick Marquetecken [EMAIL PROTECTED] wrote:


I always get this error:
mount: localhost:/usr/portage failed, reason given by server: Permission
denied



Attach NFS port of Server (2049) to local port 2818
ssh -f -L 2818:10.32.3.172:2049 -l root 10.32.3.172 sleep 86400

Attach mountD port of Server (675) to local port 3818
ssh -f -L 3818:10.32.3.172:675 -l root 10.32.3.172 sleep 86400


so the SSH server will make a connection to its own external IP. It
will also probably use its own external IP (not 127.0.0.1) as
originating address. What IPs are allowed access by its /etc/exports ?

-hwh



--
Bryan Whitehead
Email:[EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Encrypted NFS via ssh tunelling

2005-09-10 Thread Bryan Whitehead



On Fri, 9 Sep 2005, Patrick Marquetecken wrote:


Hi,

I can do a nfs mount, but for security i would like to do it over ssh.
I always get this error:
mount: localhost:/usr/portage failed, reason given by server: Permission
denied
without the ssh tunnel i have no problems.
There are no firewall between the two machines, ssh between both goes fine.
My setup:
Attach NFS port of Server (2049) to local port 2818
ssh -f -L 2818:10.32.3.172:2049 -l root 10.32.3.172 sleep 86400

Attach mountD port of Server (675) to local port 3818
ssh -f -L 3818:10.32.3.172:675 -l root 10.32.3.172 sleep 86400

Mount
mount -t nfs -o tcp,port=2818,mountport=3818 localhost:/usr/portage
/usr/portage

ps -ef
root  9165 1  0 10:22 ?00:00:00 ssh -f -L
2818:10.32.3.172:2049 -l root 10.32.3.172
root  9173 1  0 10:23 ?00:00:00 ssh -f -L
3818:10.32.3.172:675 -l root 10.32.3.172

whats wrong here ?

TIA
Patrick



--
Bryan Whitehead
Email:[EMAIL PROTECTED]
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] ntp-client starting before net.eth0

2005-09-10 Thread Neil Bothwick
On Fri, 09 Sep 2005 18:13:47 -0400, Dave Nebinger wrote:

 I'm willing to gues that in the OP's case the ifplugd is not setting
 the provide net flag correctly and/or it is setting the flag before a
 cable is actually connected.  In any case it's probably down  dirty
 with the gentoo networking scripts to figure out how to get the timing
 to work right...

Nor should it add provide net, because ifplugd running doesn't mean the
network is up. My solution would be to remove any network dependent
services from any runlevel that uses ifplugd, and start/stop them from the
postup/predown functions in /etc/conf.d/net instead.

If you wanted to get clever, you could create a new runlevel, say
network, then add rc network to postup() and rc default to predown()
instead of handling each service separately.


-- 
Neil Bothwick

Quark! Quark! Beware the quantum duck!


pgpwGTMBFGPvR.pgp
Description: PGP signature


[gentoo-user] package.provided location question

2005-09-10 Thread Mark Knecht
Hi,
   Generic question - why is package.provided located in
/etc/make.profile instead of in /etc/portage? Won't l lose my edits
when profile changes come along?

   It seems to me that if I take responsibility for a package, such as
jack-audio-connection-kit, that I wouldn't want the system to take
responsibility for it later on when a profile change comes along.

   package.provided is a great feature. I would have killed for this
on my old Redhat systems.

Thanks,
Mark

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] mysql no longer working :-(

2005-09-10 Thread Antoine

Hi,
I didn't use mysql for a while and it has stopped working! I try and
start it and all I get is

tux ~ # /etc/init.d/mysql status
 * status:  stopped
tux ~ # /etc/init.d/mysql start
 * Starting mysqld (/etc/mysql/my.cnf) ...
. * MySQL NOT started, proceding anyway 
  [ ok ]

tux ~ # /etc/init.d/mysql status
 * status:  started
tux ~ # /etc/init.d/mysql restart
 * Stopping mysqld (/etc/mysql/my.cnf) ... 
   [ !! ]

tux ~ # mysql -u root
ERROR 2002: Can't connect to local MySQL server through socket 
'/var/run/mysqld/mysqld.sock' (2)


This is most annoying! I have not modified anything (though have been 
trying to install rt and some other trouble ticket systems) but it seems 
pretty dead. A remerge did nothing.

Any pointers?
Cheers
Antoine
--
gentoo-user@gentoo.org mailing list



[gentoo-user] Suspend2 and hibernate problem.

2005-09-10 Thread Paweł Madej

Hello,

I got emerged suspend2 kernel sources and compiled with such options:

 [*] Power Management support 
 [ ]   Power Management Debug 
Support
 [ ]   Software 
Suspend   


 [*] Software Suspend 2  ---

Then in Suspend 2 submenu:

--- Software Suspend 
2   
x x 
 ---   Image Storage (you need at least one 
writer)   x x 
[ ] File 
Writer  
x x 
 [*] Swap 
Writer  
x x 
 ---   General 
Options
x x 
 (/dev/hda5)   Default resume device 
name x x 
 [ ] Allow Keep Image Mode


And my ACPI kernel section:

   [*] ACPI 
Support 
x x 
*   AC 
Adapter 
x x 
 *   
Battery
x x 
*   
Button 
x x 
   *   
Video  
x x 
  *   Generic 
Hotkey 
x x 
*   
Fan
x x 
   *   
Processor  
x x 
  * Thermal 
Zone 
x x 
ASUS/Medion Laptop 
Extras  
x x 
IBM ThinkPad Laptop 
Extras 
x x 
Toshiba Laptop 
Extras  
x x 
(0)   Disable ACPI for systems before Jan 1st this 
year  x x 
   [ ]   Debug 
Statements   
x x 
  [ ]   Power Management Timer 
Support 
x x 
   ACPI0004,PNP0A05 and PNP0A06 Container Driver (EXPERIMENTAL)


i also got emerged hibernate-script and under it is part of hibernate.conf:
### suspend2 (for Software Suspend 2)
UseSuspend2 yes
Reboot no
EnableEscape yes
DefaultConsoleLevel 2
#Compressor lzf
Encryptor none
# ImageSizeLimit 200
## useful for initrd usage:
SuspendDevice swap:/dev/hda5
## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for 
poweroff

# PowerdownMethod 5
## Any other /proc/software_suspend setting can be set like so:
# ProcSetting expected_compression 50
## Or traditionally like this:
# Suspend2AllSettings 0 0 2056 65535 5
## Or even from the results of hibernate --save-settings with this:
# Suspend2AllSettingsFile /etc/hibernate/suspend-settings.conf
## For filewriter:
# FilewriterLocation /suspend_file 1000
# VerifyFilewriterResume2 yes

Hibernating and resuming works flawlessly but one thing.
When i do:

# hibernate
i got everything stopped but there is no power off on my laptop. Thing 
is a bit weird because when i do:

# halt it turns off power

Any suggestions how to force hibernate to turn power after saving session ?

Thanks for any help

Paul


--
gentoo-user@gentoo.org mailing list



[gentoo-user] halt hibernate on usermode

2005-09-10 Thread Paweł Madej

I try to resolve such a problem:

I can halt my computer only if i login to root console and do # halt

User on which i work is in wheel group but i cannot do halt from it

How to make it possible to halt from wheel group user?

And the same thing on # hibernate

Thanks for any help

Paul
--
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: mysql no longer working :-(

2005-09-10 Thread Antoine


This is most annoying! I have not modified anything (though have been 
trying to install rt and some other trouble ticket systems) but it seems 
pretty dead. A remerge did nothing.


I ended up getting rid of the databases I had before (including one that 
rt tried to create) and reinitialised with the ebuild config command. 
Now I have it working... but for some reason phpmyadmin doesn't work 
anymore. It asks me for a username and password but won't accept a valid 
username.

Cheers
Antoine
--
gentoo-user@gentoo.org mailing list



[gentoo-user] dev-lang/php

2005-09-10 Thread Kurt Guenther


dev-lang/php-5.0 popped up as one of my updates, so I dutifully deleted 
dev-php/php and dev-php/mod_php, and emerged this package.


Now, I can't find a suitable mod_php, and portage wants to reemerge 
dev-php/php-4.4.0.


Seems like a catch-22, so I'm going to mask dev-lang/php for the moment.

It's odd, but my gentoo server didn't want to update dev-lang/php. 

Any other ideas? 


--Kurt

--
gentoo-user@gentoo.org mailing list



[gentoo-user] Disk image

2005-09-10 Thread Pupeno
Hello,
Is it possible to make an image of my whole 40GiB HD into a file in another, 
bigger HD, including all my partitions, grub, everything.
I want to re-install this computer, but I want to be able to go back easily if 
I need it.
Thanks.
-- 
Pupeno [EMAIL PROTECTED] (http://pupeno.com)
Vendo: Procesador AMD Athlon XP 2400+: http://pupeno.com/spa/vendo/#Procesador


pgpygnNCm5T4k.pgp
Description: PGP signature


Re: [gentoo-user] Disk image

2005-09-10 Thread Christoph Eckert

 Is it possible to make an image of my whole 40GiB HD into a file in
 another, bigger HD, including all my partitions, grub, everything.
 I want to re-install this computer, but I want to be able to go back
 easily if I need it.

This can be done using tar, dd or partimage.


Best regards


ce
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Printing Problem

2005-09-10 Thread C. Beamer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi All,

Well, I'm progressing with Gentoo.  I now have it on my main computer
and am *very* pleased.  I even managed to get my Radeon 8500 graphics
card working with 3D acceleration.

However, I am having problems with getting printing to work.

I emerged both hal and cups.  Using kde's print manager, I was able to
configure my DeskJet printer - the printer was recognized in the 'Add
Printer' interface.  However, when I send a print job to the printer,
nothing happens.

Second problem is that I have another printer connected to my system.
The DeskJet is connected via usb.  However, I have a Laser Jet
connected to the parallel port.  I built parallel support into the
kernel, but in the kde print manager, the printer does not appear in
the 'Add Printer' interface.

Any help would be appreciated.

Regards,

Colleen
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDIxAS7FsR4jhcRJoRAlB2AKCl2lqNTshfIkQb8b4iXNteRZP1IwCgjSX3
SRIqVYaNjr6+4GHwLw3pEYk=
=MjyK
-END PGP SIGNATURE-

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Analog acquisition

2005-09-10 Thread Luigi Pinna
Hello!
I have a lot of problems with my TV card
I can see TV (but only with tvtime and not with xawtv or kdetv), but I 
can't use teletext (for example with alevt) or to select a external 
source like S-Video.
How can I find the problem? Without xawtv I don't know other system 
from S-Video to record... (cinelerra find nothing and kino works only 
with digital cameras)
I can't configure mplayer to use s-video because it doesn't see a 
tuner...
Any suggestion?
Thanks a lot,
Luigi
-- 
Public key GPG(0x073A0960) on http://keyserver.linux.it/


pgpd4HEsATmpf.pgp
Description: PGP signature


Re: [gentoo-user] iptables example on Gentoo

2005-09-10 Thread Timo Boettcher
Hi Dave,


* Dave Nebinger [EMAIL PROTECTED], Friday, September 9, 2005, 4:23:07 PM:

 Dude, trying to use iptables directly was your first mistake.
 no, it wasn't.

 I have written some small example script
 http://forums.gentoo.org/viewtopic.php?p=377447
 that (IMO) is quite modular...

 Yes, Timo, it is quite modular and quite thorough.  It represents a great
 job at developing a general set of rules.

 But I would raise the following issues:

 1. FTP support: You've allowed for the active ftp protocols on ports 20 
 21, but what about passive?  This traffic will usually be on the higher
 ports (typically a range specified in the configuration for the ftp daemon).
 I do believe that if the ftp daemon tries to open a passive connection
 outbound it's going to get knocked off at the knees.
If I open a ftp-connection from the inside to a ftp-server on the
outside, it should get caught by the iptables-ftp-module and the
RELATED rule.

 2. Measure the checks: The more checks that a packet goes through, the
 longer it will take to travel through the iptables stack.  Your script has a
 lot of checks in it.  Consider a pgp packet as it traverses all of the
 chains etc. that you've specified.  You're probably looking at 30+ checks at
 least (although I haven't counted each individual check, but I'm confident
 it is quite a large number).  That's a significant number of hops and means
 the packet is going to be hanging around on the box a lot longer than what
 it really should.
Yes, I have MANY checks. I have had no probleems while using this and
some newer versions of this script. However this seems to bee a
problem for users that get many small packets per time-unit... (think
p2p here). As you state below, this is no universal solution, but was
built to be easily reconfigurable.

 3. No detail on why the checks are ordered in the way they are (is there an
 order?):  As #2 indicates, the increased number of checks that a packet
 needs to be pushed through means it will hang around on the box longer.
 Therefore they should be ordered to give priority to either a) heavily used
 ports or b) ports you want to have processed sooner rather than later.
There was no reason ;-). see above

 4. No reason for accepting specific outbound traffic: I tend to prefer
 allowing all outbound traffic and filter on those ports that shouldn't be
 going outbound (i.e. dhcp responses, dns responses, ipp packets, windows
 networking stuff, known trojan/virus ports).  It greatly reduces the number
 of checks outbound traffic needs to go through.
I filter outbound for various reasons: generally, I like to know what
happens on my internal network. You can catch misconfigured software
some malware and some bad users with that.

 Obviously to improve the throughput you'd have to alter the script to use
 multiple ports on accept lines.  Once you start doing that, though, you lose
 the modularity that you've built into the script.
You are probably right in that.

 The point that needs to be made is that there is no 'one iptables script
 fits all'.  Each site, each box for that matter, has it's own set of
 services and it's own usage criteria.  To that end the iptables rules will
 (should) always vary from box to box, whether it is a server, a desktop, a
 gateway, or some combination of the three.
Of course.

 New users looking to get their boxen online grab scripts like this thinking
 they are going to secure it for them, yet they don't understand the nuances
 of the individual rules nor how they are grouped.  How many folks that grab
 the script are going to know what the teamspeak or pgp ports are for and
 whether they need them or not?  How many are going to know that they've
 exposed their system to incoming teamspeak packets, whether they have
 teamspeak or not?
Even more: They are exposing their box to ALL packets on the teamspeak
port.
But IMO, it's easier to learn than some gui-things, you don't have to
transfer it over network to your firewall-box (who has X on a
firewall??? :-) ) and its easy to reconfigure.

Thanks for the feedback. really.


 Timo

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Disk image

2005-09-10 Thread Alex
On Saturday 10 September 2005 16:49, Pupeno wrote:
 Hello,
 Is it possible to make an image of my whole 40GiB HD into a file in
 another, bigger HD, including all my partitions, grub, everything.
 I want to re-install this computer, but I want to be able to go back easily
 if I need it.
 Thanks.

You can take a look at a recent thread called Copying between hard drives 
potential newbie question. There was a discussion there about the same 
thing :)

HTH
-- 
Cheers, Alex.


pgpNTAVfv3WH8.pgp
Description: PGP signature


Re: [gentoo-user] Printing Problem

2005-09-10 Thread John Jolet


On Sep 10, 2005, at 11:55 AM, C. Beamer wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi All,

Well, I'm progressing with Gentoo.  I now have it on my main computer
and am *very* pleased.  I even managed to get my Radeon 8500 graphics
card working with 3D acceleration.

However, I am having problems with getting printing to work.

I emerged both hal and cups.  Using kde's print manager, I was able to
configure my DeskJet printer - the printer was recognized in the 'Add
Printer' interface.  However, when I send a print job to the printer,
nothing happens.

Second problem is that I have another printer connected to my system.
The DeskJet is connected via usb.  However, I have a Laser Jet
connected to the parallel port.  I built parallel support into the
kernel, but in the kde print manager, the printer does not appear in
the 'Add Printer' interface.

Any help would be appreciated.

Regards,


On the first problem, do a tail -f on /var/log/cups/error_log and  
send a job.  see what it says.

--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Weird problem with emerge sync

2005-09-10 Thread Tony Davison
On Saturday 10 September 2005 15:24, Holly Bostick wrote:
snip

 Or am I simply using the wrong SYNC= in /etc/make.conf? My default is
 rsync.europe.gentoo.org, and I don't see any documentation that
 indicates that that has changed or become deprecated or invalid, but
 maybe it has. I don't particularly want to switch permanently to the
 US pool, as that just seems to make more vectors of instability for
 everybody, and is not really the point of having continental mirror
 pools anyway.

 Anybody got a clue as to what's happening and what, if anything, I
 can do to fix it?

Holly,
I just ran emerge --sync and it went OK using the mirror at Staler.net.
The only difference is that my default is rsync.uk.gentoo.org but I 
don't think the mirror pool is much different with the possible 
exception of Telehouse which doesn't appear much anyway.

Other than suggesting that the force is weak in The Nederlands today 
can't be of much help I'm afraid.
-- 
Tony Davison
[EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dev-lang/php

2005-09-10 Thread Bastian Balthazar Bux
Kurt Guenther wrote:
 
 dev-lang/php-5.0 popped up as one of my updates, so I dutifully deleted
 dev-php/php and dev-php/mod_php, and emerged this package.
 
 Now, I can't find a suitable mod_php, and portage wants to reemerge
 dev-php/php-4.4.0.
 
 Seems like a catch-22, so I'm going to mask dev-lang/php for the moment.
 
 It's odd, but my gentoo server didn't want to update dev-lang/php.
 Any other ideas?
 --Kurt
 

dev-lang/php-5.0 install both cli and apache2 stuff. Similar
question has been answered already on this list, search that.


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Disk image

2005-09-10 Thread Neil Bothwick
On Sat, 10 Sep 2005 18:58:44 +0200, Christoph Eckert wrote:

  Is it possible to make an image of my whole 40GiB HD into a file in
  another, bigger HD, including all my partitions, grub, everything.
  I want to re-install this computer, but I want to be able to go back
  easily if I need it.
 
 This can be done using tar, dd or partimage.

If you want to include the whole drive, including partition table,
extended partition information and the bootloader, you'll need to use dd.


-- 
Neil Bothwick

Quality control, n.:
  Assuring that the quality of a product does not get out of hand
   and add to the cost of its manufacture or design.


pgpPp0YjhPxOm.pgp
Description: PGP signature


[gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Frank Schafer
... or which distribution to install during less than 4 days?

Hi list,

as I wrote yesterday I planned to complete installation after work
(started ``emerge --emptytree system'' in the morning).

When I returned home from work I found in the logs, that ``emerge
--emptytree system'' failed at package 28 of 186

python-fcksum-1.7.1
i386-pc-linux-gnu-gcc bla...bla
 ^
 |
 +- !

gcc-config error:
  could not run/locate i386-pc-linux-gnu-gcc

My architecture is i686 and it seems that 27 packages before
python-fchksum found the i686(that's SIX-eight-six)-pc-linux-gnu-gcc.

Could be my fault. I had set up ACCEPT_KEYWORDS to ~x86.

Today in the morning I started up from scratch. That's about an hour of
editing files, making file systems and so on, 1,5 hours of bootstrap.sh.

``emerge -p --emptytree system'' showed me, that it will install
python-fchksum with the ACCEPT_KEYWORDS=x86 too. So far, so good.
Yesterday I got a portage snapshot 20050907, today I got a portage
snapshot 20050908. Maybe the bug is fixed. So I started emerge system.
At least it didn't install two versions of gcc. That saved some time. It
ran 2,5 hours and ...

   ... kabom ...

Unfortunately I can't tell you if the python-fchksum failure has gone
away. I didn't reach this ebuild :(

automake-1.25-r3
  autoconf-2.58 or better is required

That's package 24 of 186 (or so).

Why the hell do we try to install x versions of autoconf and
automake?

So my presumption for the time demand of a Gentoo installation looks
like this.

A breakage will occure every 15'th package (2 breakages during the first
30 within 2 days).

That makes 15 days for a package amount something below 200. (BTW that's
the time it took me to build a full featured LFS system.)
New bugs will occur (I'm seeing this on this list emerge -u world
broke this_and_tahat_or_something_else posts, and that for I left gentoo
a year ago.).
If bugs are removed twice as quick as new ones arise I'll need about ONE
MONTH () to get a running system.

This breaks even the time demand of installation AND configuration of
a 4 node IBM AIX HCMP cluster!

So which distribution would you suggest me to install during less than 4
days? I'm wondering about Slackware.

I've set up my USE flags to everything I'll want from the final system.
There is a DVD burner so I included everything regarding to CD/DVD, all
af the audio and video codecs, disabled kde and gnome (I'll never use
this), enabled emacs (my favorite editor), bash-completion, xaw3d, all
of the image formats and xinerama, disabled emboss (I don't have a clue
why THIS is a default). There is a sound card so I enabled all audio
related flags. I plan to install Oracle 9i on this machine, thus I
enabled oracle.

Should I start to only disable the things I won't need for the ``emerge
--emptytree sysrem'' and re-edit the USE flags afterward? Hmmm... this
probably doesn't solve the automake problem and disabling python to
solve the python-fchksum problem IMHO isn't a good idea because emerge
and thus gentoo itself is python based.

I'd be glad for every hint. Waiting for fixage isn't an option. 

Regards
Frank

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Copying between hard drives potential newbie question ----- Disk image post

2005-09-10 Thread Stuart Howard
In case you missed it 


On 9/7/05, Matthias Bethke [EMAIL PROTECTED] wrote:
 Hi waltdnes,
 on Tuesday, 2005-09-06 at 21:08:20, you wrote:
   Most UPSs below about US$400 are junk.  You'd be served just as well
   with a decent surge suppressor power strip.  Don't waste your money
   on a UPS.
 
Not if all you want is to give your home system 5 minutes to shut down
  in a power failure, or to handle the occasional 30-second outage, of
  which my area seems to have more than its fair share.
 
 Oh yes, it depends very much on the grid in your area.
 I lived in the Philippines for a while where brownouts are a very common
 thing---usually, you get a UPS free there when you buy a computer.
 It's really no fun without one, and for what they have to do the cheap
 lil things work very well. Their lead accus don't usually last more than
 a year, but then you just get a new one for $5 or so and you're set for
 another year. In Germany OTOH, hardly anybody has one, and people still
 get uptimes of over a year.
 
 regards
 Matthias
 --
 I prefer encrypted and signed messages.   KeyID: 90CF8389
 Fingerprint: 8E 1F 10 81 A4 66 29 46  B9 8A B9 E2 09 9F 3B 91
 
 
 


-- 
There are 10 types of people in this world: those who understand
binary, those who don't

--Unknown

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] package.provided location question

2005-09-10 Thread Chris Boot


On 10 Sep 2005, at 16:15, Mark Knecht wrote:


Hi,
   Generic question - why is package.provided located in
/etc/make.profile instead of in /etc/portage? Won't l lose my edits
when profile changes come along?

   It seems to me that if I take responsibility for a package, such as
jack-audio-connection-kit, that I wouldn't want the system to take
responsibility for it later on when a profile change comes along.

   package.provided is a great feature. I would have killed for this
on my old Redhat systems.

Thanks,
Mark


Yes, if you keep package.provided in /etc/make.profile it will get  
overwritten at every sync. The proper place to put your overrides is  
in /etc/portage/profile, which took me a good while to figure out...


Indeed it is rather nice :-)

HTH,
Chris

--
Chris Boot
[EMAIL PROTECTED]
http://www.bootc.net/




smime.p7s
Description: S/MIME cryptographic signature


Re: [gentoo-user] Proliant 3000

2005-09-10 Thread Michael W. Holdeman
I got the smartStart, but it won't let me set up for IDE boot. When I try to 
set-up the BIOS it will let me change most settings but says this system does 
not support IDE HD. Hence I was think ing I would boot on a floppy and have 
it find the kernel and set them machine up to use the HD. It finds the HD 
during boot up but can't boot from it...

Mike

On Friday 09 September 2005 04:19 pm, Jamie Dobbs wrote:
 Most likely you need to get hold of a copy of the Comaq SmartStart CDs
 for this machine to set it up to boot from an IDE drive, this will also
 contain the Compaq Array Controller software which will enable you to
 set up the 'BIOS' on the smart controller card to tun the array in the
 way which you want to.
 Try the Compaq website and see if you can find something there.

 Michael W. Holdeman wrote:
 I have a Compaq Proliant 3000, w 6 18.2 SCSI disks I am building for a
  file server for my department. I have installed an IDE HD 40gig to hold
  the OS so as to reserve all the SCSI space for data. Problem is after
  installing twice and messing around I find that the firmware in teh
  3000's was not designed to support IDE HD's. I can install to it, I
  assume it is that it just won't boot to it. How do I build a floppy to
  just get the boot process tarted then look to teh HD for kernel and os?
 
 Does this make any sense to anyone?
 
 Mike

-- 
 
Michael W. Holdeman



Powered by Gentoo Linux www.gentoo.org  |
Kernel 2.6.11-ck8   |
Win4Lin 5-1-20 netraverse.com   |
Win4LinPro 6.1.1-03 win4lin.com |
|
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Dave Nebinger

When I returned home from work I found in the logs, that ``emerge
--emptytree system'' failed at package 28 of 186

python-fcksum-1.7.1
i386-pc-linux-gnu-gcc bla...bla
^
|
+- !

gcc-config error:
 could not run/locate i386-pc-linux-gnu-gcc


My guess is that during the -emptytree system emergence that gcc was built 
to target your system.


Sometimes when this happens the internal build system gets a little confused 
when it is time to switch over, but this is easily resolved by running the 
fix_libtool_files.sh script in /sbin.


You would need to do this when you get errors similar to that listed above.

The good news is that you'll only need to do this during the beginning when 
the system is being built from scratch; once you're up and running you 
normally won't need to do this again.

automake-1.25-r3
 autoconf-2.58 or better is required

Why the hell do we try to install x versions of autoconf and
automake?


Because packages have individual automake/autoconf version requirements. 
Each automake/autoconf is slotted, they don't take up much disk, and they're 
good to have around for a successful emerge.



So my presumption for the time demand of a Gentoo installation looks
like this.

A breakage will occure every 15'th package (2 breakages during the first
30 within 2 days).


That's an analysis based upon two initial emptytree emerges.  I would expect 
that for the 200 package estimate that you're using you will probably 
encounter a total of 4 breaks (I think that's what I had, it was so long 
ago, but there was one fix_libtool_files.sh run and a couple of changes to 
/etc/portage/package.keywords to enable ~x86 versions of a few packages 
where I needed a later version).


Completing an install in 4 days will not be a problem if you have the time 
to check on the emerge process every now and then and resolve the minor 
problems that crop up.



So which distribution would you suggest me to install during less than 4
days? I'm wondering about Slackware.


You can still stick with gentoo ;-)

If you don't have the time to watch over the stage 1 build process, you can 
jump straight to a stage 3 then update packages from there.


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Why gpm?

2005-09-10 Thread Edward Catmur
On Sat, 2005-09-10 at 18:00 +0200, Jes__s Garc__a Crespo wrote:
 Hi! I don't understand why gpm was included in the Gentoo base system.
 It was not in there before and I didn't find information about the
 reasons. But I could tell you my case: I installed Gentoo in my
 dedicated server in EEUU (I am from Spain) and I had to uninstall gpm
 since I won't use it anymore. I think that, for example, dhcpcd would be
 more logical to be included than gpm, don't you think so?

I suppose the reason is that when setting up a system on the console, it
helps to be able to cut-and-paste text with the mouse. While dhcpcd is
useful for servers, it isn't needed during initial setup, whereas gpm
is, even if it isn't used after that.

Ed

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Audio and permissions.

2005-09-10 Thread gentuxx
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick Rout wrote:

On Fri, 2005-09-09 at 22:46 -0700, gentuxx wrote:

As root
# gpasswd -a username audio

Replace username with (you guessed it) your username

K. I'll give that a shot. Is that a logout/login situation?


yes, and running id username will confirm that you are in the audio
group :-)

OK, I tried that and I have/can verify that I am in the audio group.
Logged out, then back in, even did a reboot.  No joy.  Now here's the
weird thing.  mplayer works fine, for both video (sound with movies)
and audio (mp3s).  But none of the GUI apps (XMMS, JuK, etc.) seem to
output any sound.  As a matter of fact, XMMS errors out that it
failed to open the audio output: ALSA 1.2.10 output plugin.  And I
don't get any of the blips and whirrs from the desktop interaction
(minimizing windows, etc.).

Any more ideas?

Thanks.  ;-)

- --
gentux
echo hfouvyAdpy/ofu | perl -pe 's/(.)/chr(ord($1)-1)/ge'

gentux's gpg fingerprint == 34CE 2E97 40C7 EF6E EC40  9795 2D81 924A
6996 0993
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDIyiyLYGSSmmWCZMRAp66AJ9UPRCEVo3h+PLaVLdrpw1Qs1pzSgCg872A
PDXvFWWNgcld1oScy8H+mcM=
=pcF9
-END PGP SIGNATURE-

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] dev-lang/php

2005-09-10 Thread Kurt Guenther

Bastian Balthazar Bux wrote:


dev-lang/php-5.0 install both cli and apache2 stuff. Similar
question has been answered already on this list, search that.


 



I saw the discussion w/ last post 2 days ago.   It didn't answer my 
question because there is no mod_php for 5 and php-5.0 didn't seem to 
create a module for apache-2.0 even with 'apache2' on my USE list in 
make.conf.   I did a find on /usr and didn't find anything remotely like 
that.


btw, it looks like Marc-list removed their search function.  I don't get 
good results for this list with google.  Any suggestions?


--Kurt





--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Proliant 3000

2005-09-10 Thread Ted Ozolins
Michael W. Holdeman wrote:

I got the smartStart, but it won't let me set up for IDE boot. When I try to 
set-up the BIOS it will let me change most settings but says this system does 
not support IDE HD. Hence I was think ing I would boot on a floppy and have 
it find the kernel and set them machine up to use the HD. It finds the HD 
during boot up but can't boot from it...

Mike

On Friday 09 September 2005 04:19 pm, Jamie Dobbs wrote:
  

Most likely you need to get hold of a copy of the Comaq SmartStart CDs
for this machine to set it up to boot from an IDE drive, this will also
contain the Compaq Array Controller software which will enable you to
set up the 'BIOS' on the smart controller card to tun the array in the
way which you want to.
Try the Compaq website and see if you can find something there.

Michael W. Holdeman wrote:


I have a Compaq Proliant 3000, w 6 18.2 SCSI disks I am building for a
file server for my department. I have installed an IDE HD 40gig to hold
the OS so as to reserve all the SCSI space for data. Problem is after
installing twice and messing around I find that the firmware in teh
3000's was not designed to support IDE HD's. I can install to it, I
assume it is that it just won't boot to it. How do I build a floppy to
just get the boot process tarted then look to teh HD for kernel and os?

Does this make any sense to anyone?

Mike
  


  

Have you looked to see if there is a bios/system upgrade available? We
use a Proliant 3000 as the main document/application server at work and
had to upgrade the bios/system in order to use ide. Been working great
since.

-- 
Ted Ozolins(VE7TVO)
Westbank, B. C

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Suspend2 and hibernate problem.

2005-09-10 Thread Harald Arnesen
Paweł Madej [EMAIL PROTECTED] writes:
 Hibernating and resuming works flawlessly but one thing.
 When i do:

 # hibernate
 i got everything stopped but there is no power off on my laptop. Thing
 is a bit weird because when i do:
 # halt it turns off power

 i also got emerged hibernate-script and under it is part of hibernate.conf:
 ### suspend2 (for Software Suspend 2)
 UseSuspend2 yes
 ## Powerdown method - 3 for suspend-to-RAM, 4 for ACPI S4 sleep, 5 for
...
 poweroff
 # PowerdownMethod 5

Try uncommenting this line.
-- 
Hilsen Harald.


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] package.provided location question

2005-09-10 Thread Mark Knecht
On 9/10/05, Chris Boot [EMAIL PROTECTED] wrote:
 
 On 10 Sep 2005, at 16:15, Mark Knecht wrote:
 
  Hi,
 Generic question - why is package.provided located in
  /etc/make.profile instead of in /etc/portage? Won't l lose my edits
  when profile changes come along?
 
 It seems to me that if I take responsibility for a package, such as
  jack-audio-connection-kit, that I wouldn't want the system to take
  responsibility for it later on when a profile change comes along.
 
 package.provided is a great feature. I would have killed for this
  on my old Redhat systems.
 
  Thanks,
  Mark
 
 Yes, if you keep package.provided in /etc/make.profile it will get
 overwritten at every sync. The proper place to put your overrides is
 in /etc/portage/profile, which took me a good while to figure out...
 
 Indeed it is rather nice :-)
 
 HTH,
 Chris
 

Hi Chris,
   Thanks. That seems to work and is indeed a much better place to put
it. I did not see that in the man pages (is it there?) so I appreciate
the pointer.

Cheers,
Mark

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Why gpm?

2005-09-10 Thread Holly Bostick
Jes__s Garc__a Crespo (aka Sevein) schreef:
 Hi! I don't understand why gpm was included in the Gentoo base 
 system. It was not in there before and I didn't find information 
 about the reasons. But I could tell you my case: I installed Gentoo 
 in my dedicated server in EEUU (I am from Spain) and I had to 
 uninstall gpm since I won't use it anymore. I think that, for 
 example, dhcpcd would be more logical to be included than gpm, don't
  you think so?
 

why would I think so? gpm and dhcpcd don't have anything to do with
each other.

gpm
  Description: Console-based mouse driver

dhcpcd
  Description: A DHCP client only

Actually, I find having gpm available quite useful, because without it,
you can't very easily copy and paste in the console (I can manage this
with a mouse available to select the text; even in nano, I'm not so
successful with using the keyboard alone to edit/move text around. I
have many such failings).

I don't actually know that dhcpcd is *not* included in the base system,
but assuming that it isn't, I would assume that dhcp, which includes
the server as well as the client, would be much more 'generally' useful
than just the client, as far as 'less config' goes, since otherwise the
base install would have to be further targeted (use this tarball if you
have a DHCP server-- which many people don't even know what DHCP is in
the first place-- and use this one if you don't, etc.).

Holly
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Re: HELP! grub stops, only hard reset helps

2005-09-10 Thread capsel
I solved this problem. Guilty was gcc-2.3.5.* (don't remember
version). Last night I upgraded all system and I removed hardened
flag.
Before this I tryed to compile older versions of grub but configure
script failed with error saying something about 0200 address and
compiler.
Now everything works fine, thanks for help :)

Should I post a bug with solved status or not?

On 9/9/05, Mariusz Pękala [EMAIL PROTECTED] wrote:
 On 2005-09-09 11:30:55 +0200 (Fri, Sep), capsel wrote:
  grub hangs while booting and there are no errors when I install it on
  mbr (BIOS supports only mbr booting).
 
 Excuse me, but could you describe what EXACTLY you can see on screen
 before GRUB hangs?
 
 -- 
 No virus found in this outgoing message.
 Checked by 'grep -i virus $MESSAGE'
 Trust me.
 


-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] alsactl prob fixed --thanks m.k.

2005-09-10 Thread maxim wexler
Hi Mark,

I didn't realize you had answered my email until I
looked into the archive. Don't know the protocol for
answering an email once it's been deleted.

Re-running alsamixer after rm asound.state and then
alsactl store did the trick.

Don't know why sound should fail for *all* players
when streaming audio over realplayer after ~ 1/2 hr --
might have something to do with my string-and-can
connection to the Web :(

Looking forward to hearing more of your adventures w/
your new system.

-mw






__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Frank Schafer
On Sat, 2005-09-10 at 14:37 -0400, Dave Nebinger wrote:
  When I returned home from work I found in the logs, that ``emerge
  --emptytree system'' failed at package 28 of 186
 
  python-fcksum-1.7.1
  i386-pc-linux-gnu-gcc bla...bla
  ^
  |
  +- !
 
  gcc-config error:
   could not run/locate i386-pc-linux-gnu-gcc
 
 My guess is that during the -emptytree system emergence that gcc was built 
 to target your system.
 
 Sometimes when this happens the internal build system gets a little confused 
 when it is time to switch over, but this is easily resolved by running the 
 fix_libtool_files.sh script in /sbin.
 
 You would need to do this when you get errors similar to that listed above.
 
 The good news is that you'll only need to do this during the beginning when 
 the system is being built from scratch; once you're up and running you 
 normally won't need to do this again.

I don't get You at this point. I'll have to start ''emerge --emptytree
system'', wait until it crashes, run ''fix_libtool_files.sh'' and run
''emerge --emptytree system'' ones more, hoping that it won't crash this
time?

Or should I go to a second virtual console, chroot there too, wait until
gcc was built on the first console and run ''fix_libtool_files.sh'' from
there?

''emerge system'' builds glibc, gcc, gcc-config (yes there is Switching
native compiler to i686-pc-linux-gnu-3.3.6 in the log) and then the
packages for which the build crashes. How can I run
''fix_libtool_files.sh'' between ONE COMMAND??

  automake-1.25-r3
   autoconf-2.58 or better is required
 
  Why the hell do we try to install x versions of autoconf and
  automake?
 
 Because packages have individual automake/autoconf version requirements. 
 Each automake/autoconf is slotted, they don't take up much disk, and they're 
 good to have around for a successful emerge.
 
  So my presumption for the time demand of a Gentoo installation looks
  like this.
 
  A breakage will occure every 15'th package (2 breakages during the first
  30 within 2 days).
 
 That's an analysis based upon two initial emptytree emerges.  I would expect 
 that for the 200 package estimate that you're using you will probably 
 encounter a total of 4 breaks (I think that's what I had, it was so long 
 ago, but there was one fix_libtool_files.sh run and a couple of changes to 
 /etc/portage/package.keywords to enable ~x86 versions of a few packages 
 where I needed a later version).
 
 Completing an install in 4 days will not be a problem if you have the time 
 to check on the emerge process every now and then and resolve the minor 
 problems that crop up.
 
  So which distribution would you suggest me to install during less than 4
  days? I'm wondering about Slackware.
 
 You can still stick with gentoo ;-)
 
 If you don't have the time to watch over the stage 1 build process, you can 
 jump straight to a stage 3 then update packages from there.
 

Well, that's the same ads installing Fedora (within 2 hours).

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread John Jolet

  If you don't have the time to watch over the stage 1 build process, you
  can jump straight to a stage 3 then update packages from there.

 Well, that's the same ads installing Fedora (within 2 hours).
With respect, that is NOT the same as installing fedora.  This laptop has had 
fedora, suse, mandrake(then mandriva), and now gentoo.  With all but gentoo, 
in kde, my memory was at 95% utilized, and swap at 10%.  With gentoo, in kde, 
memory is 46% free and swap 100% free.  The system runs faster, boots faster, 
and shuts down faster.  I used stage 3 install and built kde with emerge 
kde-meta (okay, so THAT took 16 hours).  Even starting with a stage 3, this 
is a better, more responsive system.  And since I built the kernel from 
source to start with, patching it is easier.  Not saying you shouldn't expect 
a stage 1 install to work, but even with a stage 3, there's no comparison.
-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
[EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] server deployment

2005-09-10 Thread John Jolet
We're in the process of transitioning from 32-bit Redhat (7 I think) web/app 
servers to 64-bit gentoo web/app servers.  One concern I've got is from a 
security standpoint, normally you don't deploy webservers with development 
tools on them.  How do you guys handle this question with internet-facing 
production servers?

One thought I had was to set up a build server, build the binaries on this 
server, and do an emerge of the binaries FROM this server to the production 
servers, with gcc and such removed from them.  Will this work?
-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
[EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Frank Schafer
On Sat, 2005-09-10 at 14:26 -0500, John Jolet wrote:
   If you don't have the time to watch over the stage 1 build process, you
   can jump straight to a stage 3 then update packages from there.
 
  Well, that's the same ads installing Fedora (within 2 hours).
 With respect, that is NOT the same as installing fedora.  This laptop has had 
 fedora, suse, mandrake(then mandriva), and now gentoo.  With all but gentoo, 
 in kde, my memory was at 95% utilized, and swap at 10%.  With gentoo, in kde, 
 memory is 46% free and swap 100% free.  The system runs faster, boots faster, 
 and shuts down faster.  I used stage 3 install and built kde with emerge 
 kde-meta (okay, so THAT took 16 hours).  Even starting with a stage 3, this 
 is a better, more responsive system.  And since I built the kernel from 
 source to start with, patching it is easier.  Not saying you shouldn't expect 
 a stage 1 install to work, but even with a stage 3, there's no comparison.
 -- 
 John Jolet
 Your On-Demand IT Department
 512-762-0729
 www.jolet.net
 [EMAIL PROTECTED]

... what don't solve the problem.

I've filed a bug, which returned as RESOLVED because duplicate. Well
the duplicate was python-fchksum related but described something totally
different.

All I want is to Install Gentoo, ... and that crashed two times within
two days within one command.

I CANT RUN fix_libtool_files.sh BETWEEN ONE COMMAND!!!

Even Ubuntu - Linux for human beings, the system I'm writing this
email from and for which I recognized that
# alias HUMAN_BEING='BFU'
is better than Gentoo just now, ... because it's installable.

:(

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Dave Nebinger

I don't get You at this point. I'll have to start ''emerge --emptytree
system'', wait until it crashes, run ''fix_libtool_files.sh'' and run
''emerge --emptytree system'' ones more, hoping that it won't crash this
time?


No, after the fix_libtool_files.sh run, you do the emerge --resume to have 
it pick up where it left off.


 So which distribution would you suggest me to install during less than 
 4

 days? I'm wondering about Slackware.

You can still stick with gentoo ;-)

If you don't have the time to watch over the stage 1 build process, you 
can

jump straight to a stage 3 then update packages from there.



Well, that's the same ads installing Fedora (within 2 hours).


We as a community do not like to see people abandoning Gentoo for the likes 
of fedora or slack.


That said, there are folks for whom the binary distributions are more 
appropriate than gentoo.  You will lose the fine-grained control over the 
packages that are installed as well as an in-depth understanding of what 
linux actually is, and you'll also be tied to their release cycles, etc.


Gentoo just seems daunting to the uninitiated; once you get the feel for the 
tools and with the full backing of the community, I think you would find 
gentoo is just what you're looking for.


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Justin Patrin
On 9/10/05, Frank Schafer [EMAIL PROTECTED] wrote:
 ... or which distribution to install during less than 4 days?
 
 Hi list,
 
 as I wrote yesterday I planned to complete installation after work
 (started ``emerge --emptytree system'' in the morning).
 
 When I returned home from work I found in the logs, that ``emerge
 --emptytree system'' failed at package 28 of 186
 
 python-fcksum-1.7.1
 i386-pc-linux-gnu-gcc bla...bla
  ^
  |
  +- !
 
 gcc-config error:
   could not run/locate i386-pc-linux-gnu-gcc
 
 My architecture is i686 and it seems that 27 packages before
 python-fchksum found the i686(that's SIX-eight-six)-pc-linux-gnu-gcc.
 
 Could be my fault. I had set up ACCEPT_KEYWORDS to ~x86.

That's the first problem. Unless you want to deal with explosions,
don't set your entire system to be unstable. That's a recipe for
problems. Leave the global setting at stable. Then, if you need an
unstable version use /etc/portage/package.keywords to set ~x86 for
just the package you want to install.

 
 Today in the morning I started up from scratch. That's about an hour of
 editing files, making file systems and so on, 1,5 hours of bootstrap.sh.
 
 ``emerge -p --emptytree system'' showed me, that it will install
 python-fchksum with the ACCEPT_KEYWORDS=x86 too. So far, so good.
 Yesterday I got a portage snapshot 20050907, today I got a portage
 snapshot 20050908. Maybe the bug is fixed. So I started emerge system.
 At least it didn't install two versions of gcc. That saved some time. It
 ran 2,5 hours and ...
 
... kabom ...
 
 Unfortunately I can't tell you if the python-fchksum failure has gone
 away. I didn't reach this ebuild :(
 

I suggest starting from a stage3 build. I've installed many stage 3
builds and it nearly always works with no breakage. Once your minimal
system up and running (always go for minimal on the initial emerge,
then boot into your system, then emerge more) then you can easily do
an emptytree emerge to re-build thingsif you *really* want to. I'm
of the mind that starting with stage3 is perfectly fine. Eventually
all of those packages will be updated and recompiled, so there's
really no reason to do it manually right at the beginning.

One more thing. What optimization setting(s) are you using?

-- 
Justin Patrin

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] server deployment

2005-09-10 Thread Edward Catmur
On Sat, 2005-09-10 at 14:29 -0500, John Jolet wrote:
 We're in the process of transitioning from 32-bit Redhat (7 I think) web/app 
 servers to 64-bit gentoo web/app servers.  One concern I've got is from a 
 security standpoint, normally you don't deploy webservers with development 
 tools on them.  How do you guys handle this question with internet-facing 
 production servers?
 
 One thought I had was to set up a build server, build the binaries on this 
 server, and do an emerge of the binaries FROM this server to the production 
 servers, with gcc and such removed from them.  Will this work?

Yes.

From emerge(1):

--buildpkg (-b)
  Tells  emerge to build binary packages for all ebuilds processed
  in addition to actually merging the packages.  Useful for  main-
  tainers  or  if  you  administrate multiple Gentoo Linux systems
  (build once, emerge tbz2s everywhere).  The package will be cre-
  ated   in  the  ${PKGDIR}/All  directory.   An  alternative  for
  already-merged packages is to use quickpkg which creates a  tbz2
  from the live filesystem.

I would recommend building packages on a build server with --buildpkg,
installing them on a testing server, and once tested re-packaging them
with quickpkg on the testing server to install on the production
servers. (The advantage of quickpkg is it picks up changes to
configuration files.) Of course, you could combine the build and testing
servers onto one machine.

HTH.

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Frank Schafer
On Sat, 2005-09-10 at 12:42 -0700, Justin Patrin wrote:
 On 9/10/05, Frank Schafer [EMAIL PROTECTED] wrote:
  ... or which distribution to install during less than 4 days?
  
  Hi list,
  
  as I wrote yesterday I planned to complete installation after work
  (started ``emerge --emptytree system'' in the morning).
  
  When I returned home from work I found in the logs, that ``emerge
  --emptytree system'' failed at package 28 of 186
  
  python-fcksum-1.7.1
  i386-pc-linux-gnu-gcc bla...bla
   ^
   |
   +- !
  
  gcc-config error:
could not run/locate i386-pc-linux-gnu-gcc
  
  My architecture is i686 and it seems that 27 packages before
  python-fchksum found the i686(that's SIX-eight-six)-pc-linux-gnu-gcc.
  
  Could be my fault. I had set up ACCEPT_KEYWORDS to ~x86.
 
 That's the first problem. Unless you want to deal with explosions,
 don't set your entire system to be unstable. That's a recipe for
 problems. Leave the global setting at stable. Then, if you need an
 unstable version use /etc/portage/package.keywords to set ~x86 for
 just the package you want to install.
 
  
  Today in the morning I started up from scratch. That's about an hour of
  editing files, making file systems and so on, 1,5 hours of bootstrap.sh.
  
  ``emerge -p --emptytree system'' showed me, that it will install
  python-fchksum with the ACCEPT_KEYWORDS=x86 too. So far, so good.
  Yesterday I got a portage snapshot 20050907, today I got a portage
  snapshot 20050908. Maybe the bug is fixed. So I started emerge system.
  At least it didn't install two versions of gcc. That saved some time. It
  ran 2,5 hours and ...
  
 ... kabom ...
  
  Unfortunately I can't tell you if the python-fchksum failure has gone
  away. I didn't reach this ebuild :(
  
 
 I suggest starting from a stage3 build. I've installed many stage 3
 builds and it nearly always works with no breakage. Once your minimal
 system up and running (always go for minimal on the initial emerge,
 then boot into your system, then emerge more) then you can easily do
 an emptytree emerge to re-build thingsif you *really* want to. I'm
 of the mind that starting with stage3 is perfectly fine. Eventually
 all of those packages will be updated and recompiled, so there's
 really no reason to do it manually right at the beginning.
 
 One more thing. What optimization setting(s) are you using?
 
 -- 
 Justin Patrin
 

Thanks

CFLAGS=-O2 -march=pentuim2

But all the way, that emerge builds a package which requires another
which isn't installed - this IS a bug (the autoconf via automake
problem).


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] server deployment

2005-09-10 Thread John Jolet
On Saturday 10 September 2005 14:45, Edward Catmur wrote:
 On Sat, 2005-09-10 at 14:29 -0500, John Jolet wrote:
  We're in the process of transitioning from 32-bit Redhat (7 I think)
  web/app servers to 64-bit gentoo web/app servers.  One concern I've got
  is from a security standpoint, normally you don't deploy webservers with
  development tools on them.  How do you guys handle this question with
  internet-facing production servers?
 
  One thought I had was to set up a build server, build the binaries on
  this server, and do an emerge of the binaries FROM this server to the
  production servers, with gcc and such removed from them.  Will this work?

 Yes.

 From emerge(1):

 --buildpkg (-b)
   Tells  emerge to build binary packages for all ebuilds processed
   in addition to actually merging the packages.  Useful formain-
   tainers  or  if  you  administrate multiple Gentoo Linux systems
   (build once, emerge tbz2s everywhere).  The package will be cre-
   ated   inthe  ${PKGDIR}/All  directory.   An  alternative  for
   already-merged packages is to use quickpkg which creates a  tbz2
   from the live filesystem.

 I would recommend building packages on a build server with --buildpkg,
 installing them on a testing server, and once tested re-packaging them
 with quickpkg on the testing server to install on the production
 servers. (The advantage of quickpkg is it picks up changes to
 configuration files.) Of course, you could combine the build and testing
 servers onto one machine.

 HTH.
Thanks.
-- 
John Jolet
Your On-Demand IT Department
512-762-0729
www.jolet.net
[EMAIL PROTECTED]
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Frank Schafer
On Sat, 2005-09-10 at 15:39 -0400, Dave Nebinger wrote:
  I don't get You at this point. I'll have to start ''emerge --emptytree
  system'', wait until it crashes, run ''fix_libtool_files.sh'' and run
  ''emerge --emptytree system'' ones more, hoping that it won't crash this
  time?
 
 No, after the fix_libtool_files.sh run, you do the emerge --resume to have 
 it pick up where it left off.
 

OK, I'll try this if I need it. For now I'm at a point where THIS
probably doesn't help. (Building automake requires an autoconf which
isn't installed.)

   So which distribution would you suggest me to install during less than 
   4
   days? I'm wondering about Slackware.
 
  You can still stick with gentoo ;-)
 
  If you don't have the time to watch over the stage 1 build process, you 
  can
  jump straight to a stage 3 then update packages from there.
 
 
  Well, that's the same ads installing Fedora (within 2 hours).
 
 We as a community do not like to see people abandoning Gentoo for the likes 
 of fedora or slack.
 
 That said, there are folks for whom the binary distributions are more 
 appropriate than gentoo.  You will lose the fine-grained control over the 
 packages that are installed as well as an in-depth understanding of what 
 linux actually is, and you'll also be tied to their release cycles, etc.
 
 Gentoo just seems daunting to the uninitiated; once you get the feel for the 
 tools and with the full backing of the community, I think you would find 
 gentoo is just what you're looking for.
 
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Printing Problem

2005-09-10 Thread C. Beamer
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Thanks John,


Boy, do I have egg on my face with the first issue!

John Jolet wrote:


 On Sep 10, 2005, at 11:55 AM, C. Beamer wrote:

 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1


 I emerged both hal and cups. Using kde's print manager, I was
 able to configure my DeskJet printer - the printer was recognized
 in the 'Add Printer' interface. However, when I send a print job
 to the printer, nothing happens.


 On the first problem, do a tail -f on /var/log/cups/error_log and
 send a job. see what it says.

When I did this, I discovered that user colleen was denied.  In the
kde printer configuration, you set users for allowed and denied.
Well, I set my users okay, but didn't know that they went into the
denied list instead of allowed.  Once I fixed this, I was able to
print just fine.

The second problem is still an issue.



 Second problem is that I have another printer connected to my
 system. The DeskJet is connected via usb. However, I have a
 Laser Jet connected to the parallel port. I built parallel
 support into the kernel, but in the kde print manager, the
 printer does not appear in the 'Add Printer' interface.


Regards,

Colleen
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDIykP7FsR4jhcRJoRAuFWAKCKxjdByX5bSusIM8hFvyiLWgSp+gCgsOxA
arq/Kul3oMRWeRwHiz274nk=
=1pMV
-END PGP SIGNATURE-

-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] jack-audio-connection-kit-0.100.0 ??

2005-09-10 Thread Neil Bothwick
On Sat, 10 Sep 2005 18:11:50 +1200, Nick Rout wrote:

   emerge --digest jack-audio-connection

  Neat, when was that added?
 
 dunno, i picked it up from a games ebuild writing howto.

Good thing you read it then, because it's not in the emerge man page :(


-- 
Neil Bothwick

[ Printed on recycled electrons ]


pgpcsmYpHwunb.pgp
Description: PGP signature


Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Neil Bothwick
On Fri, 01 Jan 1988 00:18:00 +0100, Frank Schafer wrote:

  The good news is that you'll only need to do this during the
  beginning when the system is being built from scratch; once you're up
  and running you normally won't need to do this again.
 
 I don't get You at this point. I'll have to start ''emerge --emptytree
 system'', wait until it crashes, run ''fix_libtool_files.sh'' and run
 ''emerge --emptytree system'' ones more, hoping that it won't crash this

emerge --resume will restart with the package that failed previously. You
don't need to start over each time.


-- 
Neil Bothwick

Your lack of organisation does not represent an
emergency in my world.


pgpQL3joTt6Sz.pgp
Description: PGP signature


Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Neil Bothwick
On Sat, 10 Sep 2005 14:37:22 -0400, Dave Nebinger wrote:

 If you don't have the time to watch over the stage 1 build process, you
 can jump straight to a stage 3 then update packages from there.

That's exactly what I did with my laptop. It arrived at 1pm and I needed
it fully functional for the next morning, so I did a Stage 3 install in a
little over an hour (including compiling the kernel). I then emerged KDE
and some other essentials from a package CD and it was fine.

When I had time, I set ACCEPT_KEYWORDS to ~ppc, fiddled with my USE flags 
and did update -uavDN world, which recompiled just about everything,
giving me the same as if I'd done stage 1 to start with, except I had a
usable computer in far less time.


-- 
Neil Bothwick

If a stealth bomber crashes in a forest, will it make a sound?


pgpKP8gHkEAWa.pgp
Description: PGP signature


Re: [gentoo-user] Why gpm?

2005-09-10 Thread Neil Bothwick
On Sat, 10 Sep 2005 19:39:18 +0100, Edward Catmur wrote:

 I suppose the reason is that when setting up a system on the console, it
 helps to be able to cut-and-paste text with the mouse. While dhcpcd is
 useful for servers, it isn't needed during initial setup, whereas gpm
 is, even if it isn't used after that.

dhcpcd is the client program too, so it is useful for many people,
especially those with laptops. however, I was pleased when it was removed
from system, it is not essential for everyone, and the docs clearly
mention merging it for those that need it.

I would say gpm is even less essential, it is useful for some but
essential for nobody. Having said that, it doesn't appear to be in
system. It isn't installed on my server (which doesn't have a mouse) and
in the world file on my desktop, which means I installed it myself.

Why does the OP think it is part of the base system?


-- 
Neil Bothwick

Disc space -- the final frontier!


pgpKpoQfzhoHL.pgp
Description: PGP signature


Re: [gentoo-user] Why gpm?

2005-09-10 Thread Frank Schafer
On Sat, 2005-09-10 at 21:19 +0100, Neil Bothwick wrote:
 On Sat, 10 Sep 2005 19:39:18 +0100, Edward Catmur wrote:
 
  I suppose the reason is that when setting up a system on the console, it
  helps to be able to cut-and-paste text with the mouse. While dhcpcd is
  useful for servers, it isn't needed during initial setup, whereas gpm
  is, even if it isn't used after that.
 
 dhcpcd is the client program too, so it is useful for many people,
 especially those with laptops. however, I was pleased when it was removed
 from system, it is not essential for everyone, and the docs clearly
 mention merging it for those that need it.
 
 I would say gpm is even less essential, it is useful for some but
 essential for nobody. Having said that, it doesn't appear to be in
 system. It isn't installed on my server (which doesn't have a mouse) and
 in the world file on my desktop, which means I installed it myself.
 
 Why does the OP think it is part of the base system?
 
 
That's a very good question. Having a look at the default USE flags we
can see, that:

emboss 
Adds support for the European Molecular Biology Open Software Suite

is part of the base system too ;)

Well, I have -emboss amongst my USE flags in make.conf. I'm not a
biologist.


-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] package.provided location question

2005-09-10 Thread Neil Bothwick
On Sat, 10 Sep 2005 11:50:24 -0700, Mark Knecht wrote:

Thanks. That seems to work and is indeed a much better place to put
 it. I did not see that in the man pages (is it there?) so I appreciate
 the pointer.

It's buried in the portage man page. Basically, what you put
in /etc/portage/profile overrules the settings from /etc/make.profile.


-- 
Neil Bothwick

It might look like I'm doing nothing, but at the cellular level I'm
really quite busy.


pgpIBMPuIIc8K.pgp
Description: PGP signature


Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Volker Armin Hemmann
On Saturday 10 September 2005 20:09, Frank Schafer wrote:
 ... or which distribution to install during less than 4 days?

 Hi list,

 as I wrote yesterday I planned to complete installation after work
 (started ``emerge --emptytree system'' in the morning).


where did you get the idea that --emptytree is needed or even a wise decision?
--emptytree is almost NEVER needed and since it is a troublesom procedure, it 
should not be made, until you are totally sure, that you need it.

emerge system

is all you need to do, to get the base system.
After that, emerge what you like to have, but NEVER use --emptytree, except 
when you are able to deal with the consequences.

Obviously you are not, so do not do it. 
NO


was that clear enough?

For your gcc-problem, there is the fix script, others mentioned - but a lot of 
times all that is needed is to run gcc-config to set the correct gcc.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Nasty bugs in portage?

2005-09-10 Thread Zac Medico
Frank Schafer wrote:
 is better than Gentoo just now, ... because it's installable.

I'd recommend a stage3 install.  The lower stages are intended more as a means 
to create a stage3 than for anything else.

Zac
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Why gpm?

2005-09-10 Thread Neil Bothwick
On Sat, 10 Sep 2005 22:30:28 +0200, Frank Schafer wrote:

  Why does the OP think it is part of the base system?

 That's a very good question. Having a look at the default USE flags we
 can see, that:
 
 emboss 
 Adds support for the European Molecular Biology Open Software Suite
 
 is part of the base system too ;)
 
 Well, I have -emboss amongst my USE flags in make.conf. I'm not a
 biologist.

That's nothing to do with the base system, which is the list of packages
installed by emerge system. It's just a default setting for a USE
flag, which sounds like it won't affect 99% of users anyway. 


-- 
Neil Bothwick

Top Oxymorons Number 15: Extinct Life


pgpyN4OMCfjKh.pgp
Description: PGP signature


Re: [gentoo-user] Disk image

2005-09-10 Thread Scott Brady
On Sun, 11 Sep 2005 02:49 am, Pupeno wrote:
 Is it possible to make an image of my whole 40GiB HD into a file in
 another, bigger HD, including all my partitions, grub, everything.

emerge mondo-rescue

Mondo is a can back up your linux server or workstation to a tap, CD-R
CD-RW, NFS or hard disk partition. 

For more information you can go to the web page listed below.

Regards

Scotty B.
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] package.provided location question

2005-09-10 Thread Mark Knecht
On 9/10/05, Neil Bothwick [EMAIL PROTECTED] wrote:
 On Sat, 10 Sep 2005 11:50:24 -0700, Mark Knecht wrote:
 
 Thanks. That seems to work and is indeed a much better place to put
  it. I did not see that in the man pages (is it there?) so I appreciate
  the pointer.
 
 It's buried in the portage man page. Basically, what you put
 in /etc/portage/profile overrules the settings from /etc/make.profile.
 
It's a great feature and I'm glad my question wasn't brain dead. It
made sense that my changes go somewhere personal. I just didn't see
it.

It all works great now. 

Thanks!

- Mark

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Does mythtv require older nvidia builds on a radeon system?

2005-09-10 Thread W.Kenworthy
Does mythtv require older nvidia builds on a radeon system?

bunyip ~ # emerge media-tv/mythtv -vp

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N] app-misc/lcdproc-0.4.5  +doc +ncurses +samba +svga 284
kB
[ebuild  N] app-misc/lirc-0.7.0-r1  +X -debug +doc -streamzap 453 kB
[ebuild  N] media-libs/libdvb-0.5.0-r1  249 kB
[ebuild  N] media-video/nvidia-kernel-1.0.6629-r4  8,520 kB
[ebuild  N] media-video/nvidia-glx-1.0.6629-r6  0 kB
[ebuild  N] media-tv/mythtv-0.18.1-r1  +alsa (-altivec) -arts -debug
+dvb +frontendonly -jack -joystick +lcd +lirc +mmx +nvidia +opengl +oss
-unichrome +vorbis 8,651 kB

Total size of downloads: 18,159 kB

This is is on a laptop using a radeon card!  I presume its the opengl
use flag is the root cause.

Why?

BillK

-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] subscribe

2005-09-10 Thread Josh M. Anders
subscribe

-- 
Josh M. Anders, MVP, MCSE+
Senior System Administrator
UNIX Expert





__
Click here to donate to the Hurricane Katrina relief effort.
http://store.yahoo.com/redcross-donate3/
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] subscribe

2005-09-10 Thread Dave Nebinger

Josh M. Anders, MVP, MCSE+
Senior System Administrator
UNIX Expert


For all of that you'd think the guy would know how to subscribe to a mailing 
list  ;-) 


--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] subscribe

2005-09-10 Thread Paul Hoy


On Sep 10, 2005, at 8:27 PM, Dave Nebinger wrote:


Josh M. Anders, MVP, MCSE+
Senior System Administrator
UNIX Expert



For all of that you'd think the guy would know how to subscribe to  
a mailing list  ;-)

--
gentoo-user@gentoo.org mailing list




LOL
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] subscribe

2005-09-10 Thread Jerry McBride
On Sunday 11 September 2005 12:56 am, Paul Hoy wrote:
 On Sep 10, 2005, at 8:27 PM, Dave Nebinger wrote:
  Josh M. Anders, MVP, MCSE+
  Senior System Administrator
  UNIX Expert
 
  For all of that you'd think the guy would know how to subscribe to
  a mailing list  ;-)
  --

 LOL

VBG
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] panel error

2005-09-10 Thread Dave Nebinger

Every time I log into gnome I get this annoying error:

I've detected a panal already running, and will now exit.

My wife tells me that she gets the same message when she logs into her
account on this machine.  Is there a way to remedy this problem?  I
checked the gentoo-user archives at GMane searching for 'panel', but
didn't find anything...


A google search turned up another message:


I had this too after I botched a VNC install. I solved it by
purging /tmp and all the config files in my home directory. There is
probably a better way but it was a new install and I didn't have my
files on it anyhow. So try creating a new user with a new home
directory and see if that fixes things.


Don't know if that applies to you, though.
--
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] panel error

2005-09-10 Thread Michael Crute
On 9/10/05, Dave Nebinger [EMAIL PROTECTED] wrote:
A google search turned up another message: I had this too after I botched a VNC install. I solved it by purging /tmp and all the config files in my home directory. There is probably a better way but it was a new install and I didn't have my
 files on it anyhow. So try creating a new user with a new home directory and see if that fixes things.Don't know if that applies to you, though.Hmm... feeling some dejavu with that quote. Odd. Anyhow in that one I wasn't quite talking about this issue. The times I have had this happen are when I do something to crash Gnome. Typically a sudo killall gnome-panel from a regular terminal is all it takes to fix this.
-Mike-- Michael E. CruteSoftware DeveloperSoftGroup Development CorporationLinux, because reboots are for installing hardware.In a world without walls and fences, who needs windows and gates?


Re: [gentoo-user] Audio and permissions.

2005-09-10 Thread Bruno Gola
gentuxx wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Nick Rout wrote:

  

On Fri, 2005-09-09 at 22:46 -0700, gentuxx wrote:



As root
# gpasswd -a username audio

Replace username with (you guessed it) your username


K. I'll give that a shot. Is that a logout/login situation?
  

yes, and running id username will confirm that you are in the audio
group :-)



OK, I tried that and I have/can verify that I am in the audio group.
Logged out, then back in, even did a reboot.  No joy.  Now here's the
weird thing.  mplayer works fine, for both video (sound with movies)
and audio (mp3s).  But none of the GUI apps (XMMS, JuK, etc.) seem to
output any sound.  As a matter of fact, XMMS errors out that it
failed to open the audio output: ALSA 1.2.10 output plugin.  And I
don't get any of the blips and whirrs from the desktop interaction
(minimizing windows, etc.).

Any more ideas?

Thanks.  ;-)

- --
gentux
echo hfouvyAdpy/ofu | perl -pe 's/(.)/chr(ord($1)-1)/ge'

gentux's gpg fingerprint == 34CE 2E97 40C7 EF6E EC40  9795 2D81 924A
6996 0993
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDIyiyLYGSSmmWCZMRAp66AJ9UPRCEVo3h+PLaVLdrpw1Qs1pzSgCg872A
PDXvFWWNgcld1oScy8H+mcM=
=pcF9
-END PGP SIGNATURE-

  

Man, i had the same problem here, and it was somtehing related to ALSA
modules, try to search at gentoo's docs something about ALSA...  here
i'm using esd to mix the sounds... (xmms-esd) try this too...

But the manual @ gentoo's web site for ALSA should work.

Good Luck
-- 
gentoo-user@gentoo.org mailing list



[gentoo-user] Ideas for a mini-FAQ/HOWTO

2005-09-10 Thread Walter Dnes
  I've been using Gentoo for several months now, and I've learned,
sometimes the hard way, what to do and not to do.  Here's the first
draft of a mini-FAQ/HOWTO.  It can stand alone.  If there's another FAQ
out there already, maybe the ideas here can be included in it...


  The secret of a fast and stable Gentoo is knowing what *NOT* to do, as
much as knowing what to do.  To use an automotive analogy, any idiot can
floor the gas pedal, and keep it pressed down.  But if you don't let off
the gas pedal as the tachometer approaches the red line, your engine
will blow up on you.  In addition to hints about what to do, this
document will point out some red lines that should not be crossed.
Please remember, when I say do *NOT* do something, I have a reason.

  Commonsense disclaimer... cpu tweaks are *NOT* going to speed up a
program that pounds away on the hard drive.  But for cpu-intensive apps,
the speedup can be significant.  Properly optimizing Gentoo is a
fill-in-the-blanks excercise.  First, I'll deal with generic
optimizations that are applicable to all architectures.

  1) In /etc/make.conf set the following entry...
MAKEOPTS=-j1
 Do *NOT*, I repeat, do *NOT* use higher numbers.  You are begging
for problems if you do so.  This is one place where I diverge from
official recommendation, ie.
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#book_part1_chap5__chap5_sect3
which says
 With MAKEOPTS you define how many parallel compilations should occur
 when you install a package. A good choice is the number of CPUs in
 your system plus one, but this guideline isn't always perfect.

  Actually, that statement of fact is correct.  The guideline is *NOT*
always perfect.  CPUs+1 *USUALLY* works, but usually isn't good
enough.  I have had compiles blow up on me on an old PII where I had set
MAKEOPTS=-j2.  Setting MAKEOPTS=-j1 solved the problem.  I've seen
reports of the same problem and solution on an AMD64.  The root cause of
the problem is that the combo of autoconf/make/gcc is not parallel-safe
today.  Future versions might be, but it will require major re-writes.
Parallel programming is a world of its own.  Parallel processes, by
definition, are not guaranteed to finish in a specific order.  In a
situation where module b depends on module a, you get stuff like the
process which is supposed to delete module a executes before the
compilation of module b begins... oops.

  Future versions may be declared parallel-safe, but for now, stick with
j1.  It slows down *THE COMPILATION PROCESS*.  However, it does *NOT*
slow down *THE COMPILED PROGRAM*.

  2) The generic portion of CFLAGS consists of those flags that do not
begin with -m.  For that part, use -O2 -pipe -fomit-frame-pointer

  Please, do *NOT* use -O3 (or higher!!!) or try to unroll every last
loop or use every last exotic generic optimization.  Your programs will
*USUALLY* work, but they'll probably be flakier.  They may be faster, or
they may be slower.  However, people will point their fingers at you and
laugh.  Developers will ignore you when a program blows up and you file
a bug report.  The only exception is if a developer specifically OK's
special optimizations for specific modules or programs, and is willing
to support those modules or programs with extra optimization.  Things
may change in future versions of gcc, but the 3.4.x series works best
with the settings I've given.



  And now for the machine-specific flags in CFLAGS.  I'll use my machine
because it happens to be handy.  *YOUR MACHINE WILL HAVE DIFFERENT FLAGS
UNLESS YOU HAVE THE EXACT SAME MODEL AS ME*.  Try to follow the logic I
use, and apply it to your situation.

  Boot your machine with any linux distro, and execute...

cat /proc/cpuinfo

  The two output lines we're interested in are model name and flags.
On my machine, they're...

model name  : Intel(R) Pentium(R) 4 CPU 1.80GHz

  That tells me what my CPU is. 

flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov 
pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm

  This one involves a bit of looking up.  First execute gcc --version
to find out which version of gcc you're running.  Check the docs for your
version at http://gcc.gnu.org/onlinedocs and look under Hardware Models
and Configurations *FOR YOUR CPU*.  Look for anything in there that
matches anything in your flags line.  For my machine that's
-march=pentium4 -mfpmath=sse -mmmx -msse -msse2.  This gives me a the
following combined CFLAGS line...

CFLAGS=-O2 -fomit-frame-pointer -pipe -march=pentium4 -mfpmath=sse -mmmx -msse 
-msse2

  Some of the flags are also valid in the USE variable as well.  Check
your flags line against the list in /usr/portage/profiles/use.desc (or
online at http://www.gentoo.org/dyn/use-index.xml ).  In my case, mmx
and sse and sse2 are usable.  My USE variable looks like so (I'll explain
the -* later)...

USE=-* a52 aac 

Re: [gentoo-user] Audio and permissions.

2005-09-10 Thread Walter Dnes
On Sat, Sep 10, 2005 at 11:40:50AM -0700, gentuxx wrote

 OK, I tried that and I have/can verify that I am in the audio group.
 Logged out, then back in, even did a reboot.  No joy.  Now here's the
 weird thing.  mplayer works fine, for both video (sound with movies)
 and audio (mp3s).  But none of the GUI apps (XMMS, JuK, etc.) seem
 to output any sound.  As a matter of fact, XMMS errors out that it
 failed to open the audio output: ALSA 1.2.10 output plugin.  And I
 don't get any of the blips and whirrs from the desktop interaction
 (minimizing windows, etc.).
 
 Any more ideas?

  Two questions...

  1) Run the command ls -al /dev/sound/.  What's the output ?

  2) Are you familiar with PAM? (That will determine how we proceed to
solve your problem, if it's what I think it is).

-- 
Walter Dnes [EMAIL PROTECTED]
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Ideas for a mini-FAQ/HOWTO

2005-09-10 Thread Dave Nebinger

Not to rain on your parade, Walter, but:


 1) In /etc/make.conf set the following entry...
MAKEOPTS=-j1
Do *NOT*, I repeat, do *NOT* use higher numbers.  You are begging
for problems if you do so.


I use distcc in my compile farm and have most systems set to -j8 or above. 
I haven't run into a single issue with the parallel compiles, and have been 
using this setup for months.


Yes, I will admit that there have been some cases where using a value 
greater than 1 caused problems, but those should be handled as a single 
case, not throwing in the towel on higher values all together.


I don't necessarily agree with using -* in your USE flags, simply because 
I think the USE flags in the /etc/make.conf are meant to enhance the builds 
with options you plan on using.  Default USE flags, as identified by the 
developers, typically are limited to those components that the package needs 
to function correctly.


And for those things that you really don't want to have, you can always 
specify the negative USE flag, i.e. -gnome to totally disable gnome (which 
is what I use).


Using -* basically says that you know better than the developers, which is 
a position I wouldn't want to take...


Otherwise the content was fine, but it makes me wonder why it would be 
necessary.  New folks migrating to Gentoo are going to use the handbook, and 
I don't believe the handbook tells them to enable framebuffer/bootsplash, 
etc.


--
gentoo-user@gentoo.org mailing list