Re: [gentoo-user] how to forbid dhcp for eth0

2011-01-14 Thread Vortex 3
If your eth0 is a wired interface, you could use ifplugd[1] (on portage's
sys-apps) as mentioned on chapter 6 of the gentoo linux x86 handbook [2].
Basically, it keep the interface down while the cable is unplugged, so you
won't wait dhcp at startup. Additionally, it will bring it up when you plug
the cable (and you could execute other actions like, for example, stop the
wireless when you plug the cable). Very easy to use.

You can found some examples on /etc/conf.d/net.example

Another useful references could be [3] and [4].

[1] http://0pointer.de/lennart/projects/ifplugd/
[2]
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=6#doc_chap2
[3] http://www.gentoo-wiki.info/HOWTO_Wireless_Configuration_and_Startup
[4] http://www.gentoo-wiki.info/Ifplugd

http://0pointer.de/lennart/projects/ifplugd/

2011/1/14 James L bjloc...@lockie.ca

  when i start the kernel, it wait long time to dhcp for eth0:
  eth0:dhcped 4.0.15 starting
  eth0:waiting for carrier
 
  i want to forbid dhcp,how can i do?
 
  --
  pete_doherty
 

 Look at /etc/conf.d/net.example and set a static IP for eth0 or remove
 /etc/init.d/net.eth0 (to not start the interface).






Re: [gentoo-user] Strange problem with audio CDs

2011-01-14 Thread Joerg Schilling
pk pete...@coolmail.se wrote:

 On 2011-01-13 20:14, J. Roeleveld wrote:

  They are easy to spot though as only CDs adhering to the red book standard 
  are 
  legally allowed to display the Audio-CD logo.

 Yeah, I read about Philips talking to the music industry about this a
 few years ago, claiming they would take them to court (or something) if
 they didn't adhere to the standard... if they wanted the audio cd logo.

There is even more: Sony sells CDs that claim(*) that Sony did not have the 
Copyrights in the songs while making the copy.

*) Following the description for the copy protection bit in the red book.

From a perspective of consumer protection, consumers could sue shops not to 
mix 
non-CDs with CDs in the same rack and to clearly mark the non-CDs with 
something like: these are non-CDs, we cannot grant playability in CD players.
But unfortunately nothing happened to protect consumers.

  For the deviations, blame the record companies who still think that people 
  are 
  willing to pay way over the odds for substandard music...

 Well, considering IFPI/*AA etc. behaviour I'm thinking of skipping
 buying anything at all; I can live without (use the ones that I have,
 which seems to be standard since I've been able to rip them all to my
 'puter using cdparanoia).

You completely missunderstand the purpose and ability of cdparanoia. Cdparanoia 
does not implement anything that helps you to read such non-CDs. If you could 
read all your CDs so far, you either don't own such intentionally broken media 
or there is a workaround in the firmware of your drive already.

cdparanoia _only_ implements strategies to work around flaky readout results.

The non-CDs have intentional deviations from the red book standard and for this 
reason, there is nothing flaky on them. They produce stable deviating results 
that cannot be handled by cdparanoia.

cdda2wav on the other side implements strategies to work around varios red book 
deviations that help to read such non-standard media.

It is the read layer (being below the paranoia layer) that is bad inside 
cdparanoia and the read layer has been significantly inreased inside cdda2wav 
during the past 14 years after cdparanoia forked cdda2wav.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] how to forbid dhcp for eth0

2011-01-14 Thread Norman Rieß
Am 01/14/11 06:33, schrieb doherty pete:
 when i start the kernel, it wait long time to dhcp for eth0:
 eth0:dhcped 4.0.15 starting
 eth0:waiting for carrier
 
 i want to forbid dhcp,how can i do?
 

Hi,

configure a static IP or bring up the interface without configuration
with config_eth0=( null )

If you do not want dhcp at all, unmerge dhcpcd.

Regards,
Norman



[gentoo-user] Re: Strange problem with audio CDs

2011-01-14 Thread Nuno J. Silva
joerg.schill...@fokus.fraunhofer.de (Joerg Schilling) writes:

 pk pete...@coolmail.se wrote:

 On 2011-01-13 20:14, J. Roeleveld wrote:

  For the deviations, blame the record companies who still think that people 
  are 
  willing to pay way over the odds for substandard music...

 Well, considering IFPI/*AA etc. behaviour I'm thinking of skipping
 buying anything at all; I can live without (use the ones that I have,
 which seems to be standard since I've been able to rip them all to my
 'puter using cdparanoia).

 You completely missunderstand the purpose and ability of cdparanoia. 
 Cdparanoia 
 does not implement anything that helps you to read such non-CDs. If you could 
 read all your CDs so far, you either don't own such intentionally broken 
 media 
 or there is a workaround in the firmware of your drive already.

I think pk wanted to point that, as cdparanoia read the disks, that
means they probably are CDs.

-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




Re: [gentoo-user] Strange problem with audio CDs

2011-01-14 Thread Jake Moe
On 01/13/11 22:32, Joerg Schilling wrote:
 J. Roeleveld jo...@antarean.org wrote:

 On Thursday 13 January 2011 12:07:02 Joerg Schilling wrote:
 J. Roeleveld jo...@antarean.org wrote:
 Can you actually play that wav-file? Or is it just a collection of
 garbage?

 As far as I know, CD-Paranoia access the cd-drive a bit more directly
 then other tools. Eg. it approaches it like a CD-ROM, rather then
 CD-Audio.
 You are mistaken, cdparanoia is a patch on a really outdated cdda2wav (from
 1997) and it is limited to the DAE quality of the kernel drivers.
 Ok, I stand corrected. I did, however, always have more succes ripping music 
 from audio-cds with cdparanoia then with other tools I tried.
 Then you did probably not recently try cdda2wav. After the development for 
 cdparanoia stopped in year 2000, cdda2wav integrated the important code parts
 from cdparanoia into cdda2wav by creating a portable library libparanoia in 
 April 2002.

 Since then, cdda2wav combines the best features from both commands. If you 
 like 
 to tell cdda2wav to use the paranoia code, just call cdda2wav -paranoia. 
 Cdda2wav is able to read many CDs that cannot be read by cdparanoia at all.

 Jörg
Why do they give me this info, then?

jmoe@aus8617 ~ $ cdda2wav --version
cdda2wav 3.00 (i686-pc-linux-gnu) Copyright (C) 1993-2004 Heiko EiÃ

jmoe@aus8617 ~ $ cdparanoia --version
cdparanoia III release 10.2 (September 11, 2008)

From that, it appears that cdparanoia is newer.

Jake Moe



Re: [gentoo-user] Strange problem with audio CDs

2011-01-14 Thread Jake Moe
On 01/13/11 20:48, J. Roeleveld wrote:
 On Thursday 13 January 2011 11:33:09 Jake Moe wrote:
 On 01/13/11 18:12, J. Roeleveld wrote:
 On Thursday 13 January 2011 07:12:48 Jake Moe wrote:
 If you're talking about proper Audio-CD as one that's audio-only, no
 mixed data in there as well, then yes, I'm sure.  And I have over 500
 CDs; I can't test them all.  :-P  But yeah, a selection of CDs have all
 had the same result.  And only on Linux; the same CDs have read fine
 from Windows.
 500, that's a bit more then I have :)
 Heh, yeah, well I've been collecting them for around 20 years now.
 Since shortly after they were introduced.  I stopped counting at 500.

 The mp3 error screenshot was trying to copy the MP3 files from the CD
 through Konqueror's audiocd:\ location to my hard drive.  I assume
 Konqueror tries to auto-convert the CD tracks to MP3s on the fly.  The
 log file I had attached should have been called messages.bz2; it's the
 kernel log file.
 Yes, I noticed similar behaviour last time I used MS Windows to play
 audio- CDs. I believe MS Windows 98 (yes, that long ago) used to present
 them as *.WAV-files,
 Don't know if you've ever used Konqueror, but if you go to the address
 audiocd:/, it gives you a load of folders like MP3 and OGG and FLAC,
 along with a wav file for each track.  So you can either copy the files
 as WAV, or go into one of the folders and copy out MP3, OGG, etc.  It's
 just that Konqueror does the extraction/conversion for you.
 As far as I know, that requires the multimedia kioslaves to work. I wonder if 
 it's possible to have that use a different CDDA-tool?

 Which, from memory, is different that Win98.  IIRC, Win98 used to
 present CDs as 1KB cda files.  I could be wrong, though...
 Last time I used MS Windows at home for anything other then games was around 
 1998 and that's quite a while ago...

 Oh, and I only own a few CDs that have DRM on them.  And no, they
 weren't the ones that I've tested.
 Ok, it was the first thing that came to mind.

 How far does cdparanoia get? That's the tool I generally use and it has
 always worked for me. Even with DRM'd CDs.

 --
 Joost
 How very odd.  As soon as I put the CD into the drive, I get the same
 raft of error messages in /var/log/messages.  But when I run 'cdparanoia
 1', it starts outputting to cdda.wav as normal.  Now why would
 cdparanoia work, even though the kernel doesn't seem to like the CD?
 Does this tell us anything that might help me play the CDs?

 Jake Moe
 Can you actually play that wav-file? Or is it just a collection of garbage?

 As far as I know, CD-Paranoia access the cd-drive a bit more directly then 
 other tools. Eg. it approaches it like a CD-ROM, rather then CD-Audio.

 The error messages appear as soon as you put the CD into the drive?
 Am wondering if some auto-mounting tool is trying to access it and is causing 
 problems here.
 Do you also get those messages when you disable all KDE/Gnome/X/... and 
 related stuff?

 Personally, I tend to use cdparanoia and other tools to generate OGG or MP3 
 files and store them on a fileserver and play them from there.

 --
 Joost

Yeah, the wav file played fine.  At least, it started out fine; I only
listened to the first 15 - 30 seconds to make sure it sounded ok, and
then assumed the rest was fine, since nothing else had even gotten that far.

And yeah, the errors start as soon as I put the CD in the drive.  What
automounting tool might I have in FVWM?  I use a pretty basic config
(which is why I like FVWM, not many frills to muck things up :-P).

What KDE/Gnome/X stuff are you talking about?  Unless they're
auto-started by a service, I don't know of anything that'd be running
like that, especially from a console.

Jake Moe



Re: [gentoo-user] Strange problem with audio CDs

2011-01-14 Thread Joerg Schilling
Jake Moe jakesaddr...@gmail.com wrote:

  Since then, cdda2wav combines the best features from both commands. If you 
  like 
  to tell cdda2wav to use the paranoia code, just call cdda2wav -paranoia. 
  Cdda2wav is able to read many CDs that cannot be read by cdparanoia at all.
 
  Jörg
 Why do they give me this info, then?

Because cdda2wav is the better choice

 jmoe@aus8617 ~ $ cdda2wav --version
 cdda2wav 3.00 (i686-pc-linux-gnu) Copyright (C) 1993-2004 Heiko EiÃ

 jmoe@aus8617 ~ $ cdparanoia --version
 cdparanoia III release 10.2 (September 11, 2008)

 From that, it appears that cdparanoia is newer.

The latest cdparanoia is from 2001. There seem to appear later versions but 
they do not increase functionality, they just fix some C syntax problems that 
prevent compilation with newer GCC versions. But all cdparanoia versions are 
based on a cdda2wav from 1997 and thus use outdated read functions.

The interesting question seems to be: Why do you try to confuse people 
regarding to cdda2wav by modifiying it's output?

cdda2wav-3.0 is from June 2010 and there is even a 3.01a02 from December 2010.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Strange problem with audio CDs

2011-01-14 Thread Joerg Schilling
Jake Moe jakesaddr...@gmail.com wrote:

 Yeah, the wav file played fine.  At least, it started out fine; I only
 listened to the first 15 - 30 seconds to make sure it sounded ok, and
 then assumed the rest was fine, since nothing else had even gotten that far.

Be careful!

There is a set of red-book deviations that is called cactus datashield

cdparanoia will not extract more than 40 seconds from such a CD regardless of 
the drive you are using.

With cdda2wav you will be able to extract the whole CD as long as the drive 
is not cunfused by the media and as long as you don't run hostile software like 
hald or similar that helps to confuse the drive.


Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] Web Server Memory Issues

2011-01-14 Thread Sebastian Beßler

Am 13.01.2011 18:59, schrieb Kaddeh:

I have a standard 2x RAM swap size of 4gb.
The problem that I am seeing though is that the applications (MySQL and
apache) are segfaulting -before- the system starts to swap, almost where
they have an aversion to using swap.


What does cat /proc/sys/vm/swappiness say?
Can you use swapspace at all aka is the needed kernel switch on?




Re: [gentoo-user] Strange problem with audio CDs

2011-01-14 Thread Jake Moe
On 01/14/11 21:30, Joerg Schilling wrote:
 Jake Moe jakesaddr...@gmail.com wrote:

 Since then, cdda2wav combines the best features from both commands. If you 
 like 
 to tell cdda2wav to use the paranoia code, just call cdda2wav -paranoia. 
 Cdda2wav is able to read many CDs that cannot be read by cdparanoia at all.

 Jörg
 Why do they give me this info, then?
 Because cdda2wav is the better choice

 jmoe@aus8617 ~ $ cdda2wav --version
 cdda2wav 3.00 (i686-pc-linux-gnu) Copyright (C) 1993-2004 Heiko EiÃ

 jmoe@aus8617 ~ $ cdparanoia --version
 cdparanoia III release 10.2 (September 11, 2008)

 From that, it appears that cdparanoia is newer.
 The latest cdparanoia is from 2001. There seem to appear later versions but 
 they do not increase functionality, they just fix some C syntax problems that 
 prevent compilation with newer GCC versions. But all cdparanoia versions are 
 based on a cdda2wav from 1997 and thus use outdated read functions.

 The interesting question seems to be: Why do you try to confuse people 
 regarding to cdda2wav by modifiying it's output?

 cdda2wav-3.0 is from June 2010 and there is even a 3.01a02 from December 2010.

 Jörg

Ok, thanks for the info.

Jake Moe



[gentoo-user] why always display this when kernel start

2011-01-14 Thread doherty pete
when kernel start ,display this

Your system seems to be missing critical device files
in /dev !  Although you may be running udev or devfs,
the root partition is missing these required files !

To rectify this situation, please do the following:
mkdir /mnt/fixit
mount --bind / /mnt/fixit
cp -a /dev/* /mnt/fixit/dev/
umount /mnt/fixit
rmdir /mnt/fixit

You may refer to these instructions at /etc/issue.
If you previously had an issue file, it has been
backed up at /etc/issue.devfix.  Once you've fixed
your system, you will have to restore your old issue
file in order to get rid of this warning.

Thanks for using Gentoo ! :)
http://bugs.gentoo.org/show_bug.cgi?id=40987


i have done:
mkdir /mnt/fixit
mount --bind / /mnt/fixit
cp -a /dev/* /mnt/fixit/dev/
umount /mnt/fixit
rmdir /mnt/fixit
-- 
pete_doherty


Re: [gentoo-user] why always display this when kernel start

2011-01-14 Thread Alex Schuster
doherty pete writes:

 when kernel start ,display this
 
 Your system seems to be missing critical device files
 in /dev !  Although you may be running udev or devfs,
 the root partition is missing these required files !
 
 To rectify this situation, please do the following:
 mkdir /mnt/fixit
 mount --bind / /mnt/fixit
 cp -a /dev/* /mnt/fixit/dev/
 umount /mnt/fixit
 rmdir /mnt/fixit
 
 You may refer to these instructions at /etc/issue.
 If you previously had an issue file, it has been
 backed up at /etc/issue.devfix.  Once you've fixed
 your system, you will have to restore your old issue
 file in order to get rid of this warning.
 
 Thanks for using Gentoo ! :)
 http://bugs.gentoo.org/show_bug.cgi?id=40987
 
 
 i have done:
 mkdir /mnt/fixit
 mount --bind / /mnt/fixit
 cp -a /dev/* /mnt/fixit/dev/
 umount /mnt/fixit
 rmdir /mnt/fixit

Strange.
I think when I had forgotten to create the necessary items in /dev, the 
system did not even come up. It needs at least console and null, and for 
framebuffer stuff also tty1. So I have these:

weird ~ # ls -l /mnt/dev/
insgesamt 0
crw--- 1 root tty  5, 1 10. Jun 2010  console
crw-rw-rw- 1 root root 1, 3 10. Jun 2010  null
crw--- 1 root tty  4, 1 10. Jun 2010  tty1

The bug report has this, maybe this is your problem, too?

  I just ran into this and managed to fix it with an extra step. The
  problem was in changed permissions on /dev/null. ls -l /dev/null
  gave crw-rw-rw- 1 root root 1, ... while /mnt/fixit/dev/null gave
  crw-r--r-- 1 root root 19, ... In order to fix it I had to rm
  /mnt/fixit/dev/null first, and then cp -a /dev/null /mnt/fixit/dev/null
  as suggested.
  I can't say I understand how this happens but now the computer boots 
  again. 


I'd prefer to have only those in /dev, and not all the other stuff that udev 
adds, but it shouldn't harm either.

How does your /fixit/dev/ look like? Are there any entries at all? Is 
console and null there? Please show the output of this:

ls -l /fixit/dev | wc -l
ls -l /fixit/dev/{console,null}

I get this:
weird ~ # ls -l /fixit/dev | wc -l
4
weird ~ # ls -l /fixit/dev/{console,null}
crw--- 1 root tty  5, 1 10. Jun 2010  /mnt/dev/console
crw-rw-rw- 1 root root 1, 3 10. Jun 2010  /mnt/dev/null

Wonko



[gentoo-user] config with wireless

2011-01-14 Thread doherty pete
when i input iwconfig,display


wlan0 IEEE 802.11bgn  ESSID:off/any
  Mode:Managed  Access Point: Not-Associated   Tx-Power=0 dBm
  Retry  long limit:7   RTS thr:off   Fragment thr:off
  Encryption key:off
  Power Management:off
is information OK?

i emerge net-wireless/wpa_supplicant

edit /etc/conf.d/net


config_eth0=(null)

modules=(wpa_supplicant)

wpa_supplicant_wlan0=-Dmadwifi

ctrl_interface=/var/run/wpa_supplicant

ctrl_interface_group=0

ap_scan=1

network={
ssid=huang
proto=WPA2
psk=Xda111524*^
}

but kernel start show that

network config is't correct,
unexpected with }

-- 
pete_doherty


Re: [gentoo-user] why always display this when kernel start

2011-01-14 Thread Dale

doherty pete wrote:

when kernel start ,display this

Your system seems to be missing critical device files
in /dev !  Although you may be running udev or devfs,
the root partition is missing these required files !

To rectify this situation, please do the following:
mkdir /mnt/fixit
mount --bind / /mnt/fixit
cp -a /dev/* /mnt/fixit/dev/
umount /mnt/fixit
rmdir /mnt/fixit

You may refer to these instructions at /etc/issue.
If you previously had an issue file, it has been
backed up at /etc/issue.devfix.  Once you've fixed
your system, you will have to restore your old issue
file in order to get rid of this warning.

Thanks for using Gentoo ! :)
http://bugs.gentoo.org/show_bug.cgi?id=40987


i have done:
mkdir /mnt/fixit
mount --bind / /mnt/fixit
cp -a /dev/* /mnt/fixit/dev/
umount /mnt/fixit
rmdir /mnt/fixit
--
pete_doherty


It looks like some files are missing in /dev but before /dev is mounted 
as tmpfs.  This is what I would do to fix it.  Boot a bootable CD, 
Knoppix, systemrescue or whatever.  Mount the root partition of Gentoo.  
Copy null and console over to the dev directory on the hard drive.  If 
you mount like in the install guide, cp -v /dev/null /mnt/gentoo/dev and 
repeat for console.  If you mount differently, replace the needed 
parts.  ;-)


Keep in mind, when you first start to boot, /dev/ is not mounted like it 
is after you get booted.  So, before udev gets started making the needed 
files, the system needs null and console.  It seems there was a third 
one that was needed but I'm not 100% sure. I always make sure to copy 
those two when I do a install.  No problems so far.


Hope that helps.

Dale

:-)  :-)


Re: [gentoo-user] config with wireless

2011-01-14 Thread Xavier Parizet
On Fri, 14 Jan 2011 21:41:07 +0800, doherty pete 
nishizaw...@gmail.com wrote:

when i input iwconfig,display

wlan0     IEEE 802.11bgn  ESSID:off/any
          Mode:Managed  Access Point: Not-Associated  
Tx-Power=0 dBm
          Retry  long limit:7   RTS thr:off   Fragment
thr:off
          Encryption key:off
          Power Management:off
is information OK?

i emerge net-wireless/wpa_supplicant

edit /etc/conf.d/net

config_eth0=(null)

modules=(wpa_supplicant)

wpa_supplicant_wlan0=-Dmadwifi


Everything under this line should go in 
/etc/wpa_supplicant/wpa_supplicant.conf.



ctrl_interface=/var/run/wpa_supplicant

ctrl_interface_group=0

ap_scan=1

network={
    ssid=huang
    proto=WPA2
    psk=Xda111524*^
}

but kernel start show that

network config ist correct,
unexpected with }


--
Xavier Parizet
http://gentooist.com



Re: [gentoo-user] config with wireless

2011-01-14 Thread Vortex 3


 ctrl_interface=/var/run/wpa_supplicant

 ctrl_interface_group=0

 ap_scan=1

 network={
 ssid=huang
 proto=WPA2
 psk=Xda111524*^
 }


This lines don't belog to the /etc/conf.d/net file, but to the
/etc/wpa_supplicant/wpa_supplicant.conf

Take a look here:
http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=4


Re: [gentoo-user] why always display this when kernel start

2011-01-14 Thread Mick
On 14 January 2011 13:41, Dale rdalek1...@gmail.com wrote:
 doherty pete wrote:

 when kernel start ,display this
 Your system seems to be missing critical device files
 in /dev !  Although you may be running udev or devfs,
 the root partition is missing these required files !
 To rectify this situation, please do the following:
 mkdir /mnt/fixit
 mount --bind / /mnt/fixit
 cp -a /dev/* /mnt/fixit/dev/
 umount /mnt/fixit
 rmdir /mnt/fixit
 You may refer to these instructions at /etc/issue.
 If you previously had an issue file, it has been
 backed up at /etc/issue.devfix.  Once you've fixed
 your system, you will have to restore your old issue
 file in order to get rid of this warning.
 Thanks for using Gentoo ! :)
 http://bugs.gentoo.org/show_bug.cgi?id=40987

 i have done:
 mkdir /mnt/fixit
 mount --bind / /mnt/fixit
 cp -a /dev/* /mnt/fixit/dev/
 umount /mnt/fixit
 rmdir /mnt/fixit
 --
 pete_doherty

 It looks like some files are missing in /dev but before /dev is mounted as
 tmpfs.  This is what I would do to fix it.  Boot a bootable CD, Knoppix,
 systemrescue or whatever.  Mount the root partition of Gentoo.  Copy null
 and console over to the dev directory on the hard drive.  If you mount like
 in the install guide, cp -v /dev/null /mnt/gentoo/dev and repeat for
 console.  If you mount differently, replace the needed parts.  ;-)

 Keep in mind, when you first start to boot, /dev/ is not mounted like it is
 after you get booted.  So, before udev gets started making the needed files,
 the system needs null and console.  It seems there was a third one that was
 needed but I'm not 100% sure. I always make sure to copy those two when I do
 a install.  No problems so far.

This problem was created because Pete did not follow to the letter the
handbook, which advises to mount -o bind /dev /mnt/gentoo/dev, or if
he did, he did not untar the stage 3 fs properly, or if he used a
stage 4 tar file he did not create the necessary /dev files manually.

-- 
Regards,
Mick



Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Michael Sullivan
On Fri, 2011-01-14 at 06:26 +, Mick wrote:
 On Friday 14 January 2011 04:00:12 Michael Sullivan wrote:
  A several years ago I ran a public network out of my apartment.  I had
  email, www, etc. etc.  It all worked fine.  Then one day a couple of
  years ago we decided that we could not afford to pay for a public IP
  address anymore, so we had it turned off.  I haven't touched apache
  since then, but we still run that box as it's faster than all the others
  and runs distcc well.  We had a picture page that I wrote back in 2005
  and occassionally when we have company over we use it to show them
  pictures that we've taken.  I went to the site in my web browser this
  evening, and saw only PHP code printed on the background image.  I've
  checked the usual suspects:
  
  carter apache2 # cat /etc/conf.d/apache2
  # /etc/conf.d/apache2: config file for /etc/init.d/apache2
  
  # When you install a module it is easy to activate or deactivate the
  modules
  # and other features of apache using the APACHE2_OPTS line. Every module
  should
  # install a configuration in /etc/apache2/modules.d. In that file will
  be an
  # IfDefine NNN where NNN is the option to enable that module.
  # Here are the options available in the default configuration:
  #   USERDIR   Enables /~username mapping to /home/username/public_html
  #   INFO  Enables mod_info, a useful module for debugging
  #   PROXY Enables mod_proxy
  #   DAV   Enables mod_dav
  #   DAV_FSEnables mod_dav_fs (you should enable this when you enable
  DAV
  # unless you know what you are doing)
  #   SSL   Enables SSL
  #   SSL_DEFAULT_VHOST  Enables default vhost for SSL (you should enable
  this
  #  when you enable SSL unless you know what you are
  doing)
  #   LDAP  Enables mod_ldap
  #   AUTH_LDAP Enables authentication through mod_ldap
  #   DEFAULT_VHOST Enables the default virtual host
  in /var/www/localhost/htdocs
  APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D USERDIR
  
  # Extended options for advanced uses of Apache ONLY
  # You don't need to edit these unless you are doing crazy Apache stuff
  # As not having them set correctly, or feeding in an incorrect
  configuration
  # via them will result in Apache failing to start
  # YOU HAVE BEEN WARNED.
  
  # ServerRoot setting
  #SERVERROOT=/usr/lib/apache2
  
  # Configuration file location
  # - If this does NOT start with a '/', then it is treated relative to
  # $SERVERROOT by Apache
  #CONFIGFILE=/etc/apache2/httpd.conf
  
  # Location to log startup errors to
  # They are normally dumped to your terminal.
  #STARTUPERRORLOG=/var/log/apache2/startuperror.log
  
  # Environment variables to keep
  # All environment variables are cleared from apache
  # Use this to preserve some of them
  # NOTE!!! It's very important that this contains PATH
  # Also, it will fail if the _value_ of any of these variables contains a
  space
  KEEPENV=PATH
  
  carter apache2 # cat error_log
  [Tue Jan 11 03:15:22 2011] [notice] Apache/2.2.16 (Unix) configured --
  resuming normal operations
  [Wed Jan 12 03:00:12 2011] [notice] Graceful restart requested, doing
  restart
  [Wed Jan 12 03:00:13 2011] [notice] Apache/2.2.16 (Unix) configured --
  resuming normal operations
  [Thu Jan 13 19:24:28 2011] [error] [client 192.168.2.3] File does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/
  [Thu Jan 13 19:43:23 2011] [notice] caught SIGTERM, shutting down
  [Thu Jan 13 19:43:26 2011] [notice] Apache/2.2.16 (Unix) configured --
  resuming normal operations
  [Thu Jan 13 19:43:44 2011] [error] [client 192.168.2.3] File does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/
  [Thu Jan 13 19:48:06 2011] [error] [client 192.168.2.3] File does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/index.php
  [Thu Jan 13 19:49:53 2011] [error] [client 192.168.2.3] File does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/index.php
  [Thu Jan 13 19:49:56 2011] [error] [client 192.168.2.3] File does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/index.php
  [Thu Jan 13 19:49:59 2011] [error] [client 192.168.2.3] File does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/index.php
  [Thu Jan 13 19:50:02 2011] [error] [client 192.168.2.3] File does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/index.php
  
  (that $filename reference would have resolved if PHP were executed AS
  PHP instead of plain text)
  
  carter apache2 # ls /home/michael/public_html/camera/
  010105  031706  050706  070707  

Re: [gentoo-user] config with wireless

2011-01-14 Thread doherty pete
i creat the /etc/wpa_supplicant/wpa_supplicant.conf
and i input ifconfig wlan0 up
and
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

that

Failed to read or parse configuration
/etc/wpa_supplicant/wpa_supplicant.conf

2011/1/14 Vortex 3 vort...@gmail.com


 ctrl_interface=/var/run/wpa_supplicant

 ctrl_interface_group=0

 ap_scan=1

 network={
 ssid=huang
 proto=WPA2
 psk=Xda111524*^
 }


 This lines don't belog to the /etc/conf.d/net file, but to the
 /etc/wpa_supplicant/wpa_supplicant.conf

 Take a look here:
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=4




-- 
pete_doherty


Re: [gentoo-user] why always display this when kernel start

2011-01-14 Thread doherty pete
i did not follow the handbook,i install gentoo with ubuntu
but i sure i use the commend:

sudo mount /dev/sda10 /media/gentoo
sudo mount -t proc none /media/gentoo/proc
sudo mount -o bind /dev/ /media/gentoo/dev

and stage is
stage3-i686-20101109.tar.bz2

ls -l /fixit/dev/{console,null}
crw--- 1 root tty  5, 1 10. Jun 2010  /mnt/dev/console
crw-rw-rw- 1 root root 1, 3 10. Jun 2010  /mnt/dev/null

i have the same result


2011/1/14 Mick michaelkintz...@gmail.com

 On 14 January 2011 13:41, Dale rdalek1...@gmail.com wrote:
  doherty pete wrote:
 
  when kernel start ,display this
  Your system seems to be missing critical device files
  in /dev !  Although you may be running udev or devfs,
  the root partition is missing these required files !
  To rectify this situation, please do the following:
  mkdir /mnt/fixit
  mount --bind / /mnt/fixit
  cp -a /dev/* /mnt/fixit/dev/
  umount /mnt/fixit
  rmdir /mnt/fixit
  You may refer to these instructions at /etc/issue.
  If you previously had an issue file, it has been
  backed up at /etc/issue.devfix.  Once you've fixed
  your system, you will have to restore your old issue
  file in order to get rid of this warning.
  Thanks for using Gentoo ! :)
  http://bugs.gentoo.org/show_bug.cgi?id=40987
 
  i have done:
  mkdir /mnt/fixit
  mount --bind / /mnt/fixit
  cp -a /dev/* /mnt/fixit/dev/
  umount /mnt/fixit
  rmdir /mnt/fixit
  --
  pete_doherty
 
  It looks like some files are missing in /dev but before /dev is mounted
 as
  tmpfs.  This is what I would do to fix it.  Boot a bootable CD, Knoppix,
  systemrescue or whatever.  Mount the root partition of Gentoo.  Copy null
  and console over to the dev directory on the hard drive.  If you mount
 like
  in the install guide, cp -v /dev/null /mnt/gentoo/dev and repeat for
  console.  If you mount differently, replace the needed parts.  ;-)
 
  Keep in mind, when you first start to boot, /dev/ is not mounted like it
 is
  after you get booted.  So, before udev gets started making the needed
 files,
  the system needs null and console.  It seems there was a third one that
 was
  needed but I'm not 100% sure. I always make sure to copy those two when I
 do
  a install.  No problems so far.

 This problem was created because Pete did not follow to the letter the
 handbook, which advises to mount -o bind /dev /mnt/gentoo/dev, or if
 he did, he did not untar the stage 3 fs properly, or if he used a
 stage 4 tar file he did not create the necessary /dev files manually.

 --
 Regards,
 Mick




-- 
pete_doherty


Re: [gentoo-user] config with wireless

2011-01-14 Thread doherty pete
i think the wireless didn't start because the wireless light is  extinguish

2011/1/14 doherty pete nishizaw...@gmail.com

 i creat the /etc/wpa_supplicant/wpa_supplicant.conf
 and i input ifconfig wlan0 up
 and
 wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

 that

 Failed to read or parse configuration
 /etc/wpa_supplicant/wpa_supplicant.conf

 2011/1/14 Vortex 3 vort...@gmail.com


 ctrl_interface=/var/run/wpa_supplicant

 ctrl_interface_group=0

 ap_scan=1

 network={
 ssid=huang
 proto=WPA2
 psk=Xda111524*^
 }


 This lines don't belog to the /etc/conf.d/net file, but to the
 /etc/wpa_supplicant/wpa_supplicant.conf

 Take a look here:
 http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=4chap=4




 --
 pete_doherty




-- 
pete_doherty


Re: [gentoo-user] config with wireless

2011-01-14 Thread Vortex 3
Pete,


 wpa_supplicant_wlan0=-Dmadwifi


From your previous message, your are using the madwifi driver. However,
you are executing


wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf


Where now you specify the wext driver. Maybe that's the problem (?)


Re: [gentoo-user] config with wireless

2011-01-14 Thread doherty pete
it's my fail
i use  wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant.conf
but correct is
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf

and i get


Initializing interface 'wlan0' conf
'/etc/wpa_supplicant/wpa_supplicant.conf' driver 'wext' ctrl_interface 'N/A'
bridge 'N/A'
Configuration file '/etc/wpa_supplicant/wpa_supplicant.conf' -
'/etc/wpa_supplicant/wpa_supplicant.conf'
Reading configuration file '/etc/wpa_supplicant/wpa_supplicant.conf'
ctrl_interface='/var/run/wpa_supplicant'
ctrl_interface_group='0'
ap_scan=1
Priority group 0
   id=0 ssid='huang'
WEXT: cfg80211-based driver detected
SIOCGIWRANGE: WE(compiled)=22 WE(source)=21 enc_capa=0xf
  capabilities: key_mgmt 0xf enc 0xf flags 0x0
netlink: Operstate: linkmode=1, operstate=5
Own MAC address: f0:7b:cb:16:52:ec
wpa_driver_wext_set_key: alg=0 key_idx=0 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=1 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=2 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_key: alg=0 key_idx=3 set_tx=0 seq_len=0 key_len=0
wpa_driver_wext_set_countermeasures
RSN: flushing PMKID list in the driver
Setting scan request: 0 sec 10 usec
EAPOL: SUPP_PAE entering state DISCONNECTED
EAPOL: Supplicant port status: Unauthorized
EAPOL: KEY_RX entering state NO_KEY_RECEIVE
EAPOL: SUPP_BE entering state INITIALIZE
EAP: EAP entering state DISABLED
EAPOL: Supplicant port status: Unauthorized
EAPOL: Supplicant port status: Unauthorized
ctrl_interface_group=0
Added interface wlan0
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=8
Trying to get current scan results first without requesting a new scan to
speed up initial association
Received 0 bytes of scan results (0 BSSes)
BSS: Start scan result update 1
Cached scan results are empty - not posting
Selecting BSS from priority group 0
Try to find WPA-enabled AP
Try to find non-WPA AP
No suitable network found
Setting scan request: 0 sec 0 usec
State: DISCONNECTED - SCANNING
Starting AP scan for wildcard SSID
Scan requested (ret=0) - scan timeout 5 seconds
EAPOL: disable timer tick
EAPOL: Supplicant port status: Unauthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b19 len=8
Received 2504 bytes of scan results (6 BSSes)
BSS: Start scan result update 2
BSS: Add new id 0 BSSID d8:5d:4c:30:7b:82 SSID 'TP-LINK_8G'
BSS: Add new id 1 BSSID 00:22:3f:a5:ab:f4 SSID 'huang'
BSS: Add new id 2 BSSID 74:ea:3a:69:97:fa SSID 'CHINACRC'
BSS: Add new id 3 BSSID d8:5d:4c:41:5d:04 SSID 'TP-LINK_12-A'
BSS: Add new id 4 BSSID 00:16:01:f6:fe:53 SSID 'AOSS-2663879CE43'
BSS: Add new id 5 BSSID 00:0a:eb:89:56:67 SSID 'Suen wireless'
New scan results available
Selecting BSS from priority group 0
Try to find WPA-enabled AP
0: d8:5d:4c:30:7b:82 ssid='TP-LINK_8G' wpa_ie_len=22 rsn_ie_len=20 caps=0x11
   skip - SSID mismatch
1: 00:22:3f:a5:ab:f4 ssid='huang' wpa_ie_len=26 rsn_ie_len=24 caps=0x11
   selected based on RSN IE
   selected WPA AP 00:22:3f:a5:ab:f4 ssid='huang'
Trying to associate with 00:22:3f:a5:ab:f4 (SSID='huang' freq=2412 MHz)
Cancelling scan request
WPA: clearing own WPA/RSN IE
Automatic auth_alg selection: 0x1
RSN: using IEEE 802.11i/D9.0
WPA: Selected cipher suites: group 8 pairwise 24 key_mgmt 2 proto 2
WPA: set AP WPA IE - hexdump(len=28): dd 1a 00 50 f2 01 01 00 00 50 f2 02 02
00 00 50 f2 04 00 50 f2 02 01 00 00 50 f2 02
WPA: set AP RSN IE - hexdump(len=26): 30 18 01 00 00 0f ac 02 02 00 00 0f ac
04 00 0f ac 02 01 00 00 0f ac 02 00 00
WPA: using GTK TKIP
WPA: using PTK CCMP
WPA: using KEY_MGMT WPA-PSK
WPA: Set own WPA IE default - hexdump(len=22): 30 14 01 00 00 0f ac 02 01 00
00 0f ac 04 01 00 00 0f ac 02 00 00
No keys have been configured - skip key clearing
State: SCANNING - ASSOCIATING
wpa_driver_wext_set_operstate: operstate 0-0 (DORMANT)
netlink: Operstate: linkmode=-1, operstate=5
wpa_driver_wext_associate
wpa_driver_wext_set_drop_unencrypted
wpa_driver_wext_set_psk
Setting authentication timeout: 10 sec 0 usec
EAPOL: External notification - EAP success=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - EAP fail=0
EAPOL: Supplicant port status: Unauthorized
EAPOL: External notification - portControl=Auto
EAPOL: Supplicant port status: Unauthorized
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b1a len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
Wireless event: cmd=0x8b06 len=8
RTM_NEWLINK: operstate=0 ifi_flags=0x1003 ([UP])
RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added

Re: [gentoo-user] config with wireless

2011-01-14 Thread Adam Carter
On Sat, Jan 15, 2011 at 1:53 AM, doherty pete nishizaw...@gmail.com wrote:

 i think the wireless didn't start because the wireless light is  extinguish


You probably haven't built the correct driver (module). Does ifconfig -a
show the device?

Does lshw (you might need to emerge it) show the device?


Re: [gentoo-user] config with wireless

2011-01-14 Thread doherty pete
i donn't known what different form wext and madwifi
i just known my wireless is bcm4357...

2011/1/14 Vortex 3 vort...@gmail.com

 Pete,


 wpa_supplicant_wlan0=-Dmadwifi


 From your previous message, your are using the madwifi driver. However,
 you are executing


 wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf


 Where now you specify the wext driver. Maybe that's the problem (?)




-- 
pete_doherty


Re: [gentoo-user] how to forbid dhcp for eth0

2011-01-14 Thread Kostya Sha.

On 14.01.2011, at 12:41, Norman Rieß wrote:

 Am 01/14/11 06:33, schrieb doherty pete:
 when i start the kernel, it wait long time to dhcp for eth0:
 eth0:dhcped 4.0.15 starting
 eth0:waiting for carrier
 
 i want to forbid dhcp,how can i do?
 
 
 Hi,
 
 configure a static IP or bring up the interface without configuration
 with config_eth0=( null )
 
 If you do not want dhcp at all, unmerge dhcpcd.
 
 Regards,
 Norman
 
lol,  
1) What baselayout do you use?
if the second then go to /usr/share/doc/openrc-*/net.example
2) no need to unmerge, you could disable by modules_eth0=!dhcp (check 
net.example i'm writing from head)


Re: [gentoo-user] config with wireless

2011-01-14 Thread doherty pete
ifconfig -a is

eth0  Link encap:Ethernet  HWaddr 00:26:2d:97:8b:85
  UP BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
  Interrupt:16

loLink encap:Local Loopback
  inet addr:127.0.0.1  Mask:255.0.0.0
  inet6 addr: ::1/128 Scope:Host
  UP LOOPBACK RUNNING  MTU:16436  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

sit0  Link encap:IPv6-in-IPv4
  NOARP  MTU:1480  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:0
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet  HWaddr f0:7b:cb:16:52:ec
  BROADCAST MULTICAST  MTU:1500  Metric:1
  RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  collisions:0 txqueuelen:1000
  RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

ifconfig wlan0 up
wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf 
ifconfig wlan0 192.168.1.99

and can ping 192.168.1.1
but cann't ping www.g.cn
Network is unreachable(101)

i have edit /etc/resolv.conf
nameserver 192.168.1.1

2011/1/14 doherty pete nishizaw...@gmail.com


 i donn't known what different form wext and madwifi
 i just known my wireless is bcm4357...

 2011/1/14 Vortex 3 vort...@gmail.com

 Pete,


 wpa_supplicant_wlan0=-Dmadwifi


 From your previous message, your are using the madwifi driver. However,
 you are executing


 wpa_supplicant -Dwext -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf


 Where now you specify the wext driver. Maybe that's the problem (?)




 --
 pete_doherty




-- 
pete_doherty


Re: [gentoo-user] Strange problem with audio CDs

2011-01-14 Thread Paul Hartman
On Fri, Jan 14, 2011 at 5:13 AM, Jake Moe jakesaddr...@gmail.com wrote:
 Why do they give me this info, then?

 jmoe@aus8617 ~ $ cdda2wav --version
 cdda2wav 3.00 (i686-pc-linux-gnu) Copyright (C) 1993-2004 Heiko EiÃ

Not sure why your cdda2wav --version output is cut off, maybe an
terminal encoding problem? For version 3.00 I've got this:
$ cdda2wav --version
cdda2wav 3.00 (x86_64-unknown-linux-gnu) Copyright (C) 1993-2004 Heiko
EiÃfeldt (C) 2004-2010 Jörg Schilling

Which is obviously the wrong characters, too. It should say Heiko
Eißfeldt and Jörg Schilling.

But maybe it was not only a problem for us, because they changed the
spelling to use more simplified characters later. The latest version
in ~amd64 shows me this instead:
 $ cdda2wav --version
cdda2wav 3.01a02 (x86_64-unknown-linux-gnu) Copyright (C) 1993-2004
Heiko Eissfeldt (C) 2004-2010 Joerg Schilling



Re: [gentoo-user] config with wireless

2011-01-14 Thread Mick
On 14 January 2011 15:24, doherty pete nishizaw...@gmail.com wrote:

 i donn't known what different form wext and madwifi
 i just known my wireless is bcm4357...

If there's a driver in the kernel for your wireless hardware, select
it and use -Dwext.  The madwifi driver will work with particular
wireless chipsets only (atheros).  If there is no wireless driver in
Linux, then use ndiswrapper (you'll need to emerge it) and use the
MSWindows driver with it - it may work.

-- 
Regards,
Mick



Re: [gentoo-user] config with wireless

2011-01-14 Thread Zhu Sha Zang
Em 14-01-2011 14:02, Mick escreveu:
 On 14 January 2011 15:24, doherty pete nishizaw...@gmail.com wrote:
 i donn't known what different form wext and madwifi
 i just known my wireless is bcm4357...
 If there's a driver in the kernel for your wireless hardware, select
 it and use -Dwext.  The madwifi driver will work with particular
 wireless chipsets only (atheros).  If there is no wireless driver in
 Linux, then use ndiswrapper (you'll need to emerge it) and use the
 MSWindows driver with it - it may work.

I'm using wpa with openrc:
/
[rodolfo@asgard ~]$ cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0
eapol_version=1

ap_scan=2
fast_reauth=1

network={
ssid=VALHALLA
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP TKIP
group=CCMP TKIP
psk=
}/

/[rodolfo@asgard ~]$ cat
/etc/conf.d/net 
 

modules=wpa_supplicant


wpa_supplicant_wlan0=-Dwext
wpa_timeout_wlan0=60

config_wlan0=10.10.10.25 netmask 255.255.255.0
routes_wlan0=default gw 10.10.10.1


/And works well with /etc/init.d/net.wlan0 start (in boot too)

Att
/
/


[gentoo-user] Re: Strange problem with audio CDs

2011-01-14 Thread Nuno J. Silva
Jake Moe jakesaddr...@gmail.com writes:

 On 01/13/11 20:48, J. Roeleveld wrote:
[...]
 And yeah, the errors start as soon as I put the CD in the drive.  What
 automounting tool might I have in FVWM?  I use a pretty basic config
 (which is why I like FVWM, not many frills to muck things up :-P).

I think it's (fortunately) possible to have wm-independent (and
X-independent) automounters. But the last time I used one was several
years ago.


-- 
Nuno J. Silva
gopher://sdf-eu.org/1/users/njsg




[gentoo-user] Re: Strange problem with audio CDs

2011-01-14 Thread Jörg Schaible
Hi Joe,

Jake Moe wrote:

 On 01/13/11 20:48, J. Roeleveld wrote:
 On Thursday 13 January 2011 11:33:09 Jake Moe wrote:
 On 01/13/11 18:12, J. Roeleveld wrote:

[snip]

 Can you actually play that wav-file? Or is it just a collection of
 garbage?

 As far as I know, CD-Paranoia access the cd-drive a bit more directly
 then other tools. Eg. it approaches it like a CD-ROM, rather then
 CD-Audio.

 The error messages appear as soon as you put the CD into the drive?
 Am wondering if some auto-mounting tool is trying to access it and is
 causing problems here.
 Do you also get those messages when you disable all KDE/Gnome/X/... and
 related stuff?

 Personally, I tend to use cdparanoia and other tools to generate OGG or
 MP3 files and store them on a fileserver and play them from there.

 --
 Joost

 Yeah, the wav file played fine.  At least, it started out fine; I only
 listened to the first 15 - 30 seconds to make sure it sounded ok, and
 then assumed the rest was fine, since nothing else had even gotten that
 far.
 
 And yeah, the errors start as soon as I put the CD in the drive.  What
 automounting tool might I have in FVWM?  I use a pretty basic config
 (which is why I like FVWM, not many frills to muck things up :-P).

My situation improved a bit after upgrading to the latest udev available. 
With 164-r1 I don't have these errors in the log anymore. Unfortunately when 
I try to rip the CD with KDE stuff, the process slows still down until it 
aborts.

However, the situation improved with the CLI tools (even running from with 
KDE). Cdda2Wav takes now 2,5 mins for a 45min CD, cdparanoia takes nearly 
twice, but succeeds also. After reconfiguring abcde to take cdda2wav I can 
at least rip CDs into MP3s in a quite normal time.

- Jörg




[gentoo-user] Re: Strange problem with audio CDs

2011-01-14 Thread Jörg Schaible
Hi Jörg,

Joerg Schilling wrote:

 Jake Moe jakesaddr...@gmail.com wrote:
 
 Yeah, the wav file played fine.  At least, it started out fine; I only
 listened to the first 15 - 30 seconds to make sure it sounded ok, and
 then assumed the rest was fine, since nothing else had even gotten that
 far.
 
 Be careful!
 
 There is a set of red-book deviations that is called cactus datashield
 
 cdparanoia will not extract more than 40 seconds from such a CD
 regardless of the drive you are using.
 
 With cdda2wav you will be able to extract the whole CD as long as the
 drive is not cunfused by the media and as long as you don't run hostile
 software like hald or similar that helps to confuse the drive.

At least from konsole I can use cdda2wav with normal speed, while the 
ripping KDE apps all seem to fail. Since KDE is still based on hald, about 
what kind of effects you're talking?

- Jörg




Re: [gentoo-user] Re: Strange problem with audio CDs

2011-01-14 Thread Joerg Schilling
Jörg Schaible joerg.schai...@gmx.de wrote:

  There is a set of red-book deviations that is called cactus datashield
  
  cdparanoia will not extract more than 40 seconds from such a CD
  regardless of the drive you are using.
  
  With cdda2wav you will be able to extract the whole CD as long as the
  drive is not cunfused by the media and as long as you don't run hostile
  software like hald or similar that helps to confuse the drive.

 At least from konsole I can use cdda2wav with normal speed, while the 
 ripping KDE apps all seem to fail. Since KDE is still based on hald, about 
 what kind of effects you're talking?

The defects seen in cactus datashield will cause many drives to go into an 
endless loop in firmware in case you send the READ TOC command to the drive.

Hald was written by people who know too few about CD-ROM handling and as hald 
and other programs (e.g. libGStreamer and cdparanoia) send a READ TOC to the
drive, they may trigger this problem. The only way out of this problem is to
mechanically reload the media and not to let any other program access the 
drive except for cdda2wav.

Jörg

-- 
 EMail:jo...@schily.isdn.cs.tu-berlin.de (home) Jörg Schilling D-13353 Berlin
   j...@cs.tu-berlin.de(uni)  
   joerg.schill...@fokus.fraunhofer.de (work) Blog: 
http://schily.blogspot.com/
 URL:  http://cdrecord.berlios.de/private/ ftp://ftp.berlios.de/pub/schily



Re: [gentoo-user] core i5

2011-01-14 Thread Stefan G. Weichinger
Am 23.11.2010 23:26, schrieb Stefan G. Weichinger:

 I still consider getting a core-i5 or -i7 for christmas :-)

Yeah, sure, dream on: jan, 14th and still no new box here! ;-)

Today I read about the core-i7-2600K ... sounds even better, cheaper and
faster.

What I wonder: the i7-2600K does only have VT-x but no VT-d (while the
i7-2600 has both VT-x and VT-d). As I want to run KVM virtualization on
it I somehow hesitate to not buy the wrong one (did that back then with
a core2duo without VT at all).

AFAI know I don't need VT-d but I would appreciate some positive
feedback on this.

Does anyone here already run such a new CPU with gentoo?
Impressions?

Thanks a lot, Stefan



[gentoo-user] Re: pdf -amp;amp;gt; txt

2011-01-14 Thread Sebastián Ramírez Magrí
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA256

On 09/01/11 20:22, meino.cra...@gmx.de wrote:
 James wirel...@tampabay.rr.com [11-01-10 01:41]:
  meino.cramer at gmx.de writes:


 I explored the manual of that tool (pdftk) but didnt find any
 hint of converting pdf ot txt.
 Please, give me one little, a keyword, only an option
 which I can search for in the documentation to find
 out how to convert pdf to txt with pdftk.


 Maybe this page can help? 
 http://www.pdflabs.com/docs/pdftk-cli-examples/
 Maybe pdftk is not the right tool for your needs?


 If all you want to do is convert a pdf to text, just
 use acroread (as previously suggested):

 There is a button at the top to save out the pdf file into
 a txt file
 --File--Save as Text


 cya,
 James


 
 Hi James,
 
 I asked here for a tool to convert from pdf to txt.
 I had to recompile the gcc (missing USE-flag) to install pdftk.
 This effort only to get said:
 
 Maybe pdftk is not the right tool for your needs?
 
 
 
 
 
 
 

If you use emacs you could also use docview mode to achieve that. It's a
little bit processor heavy but just does the work for me.

- -- 
http://sebasmagri.com/
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.16 (GNU/Linux)

iQEcBAEBCAAGBQJNMKS+AAoJECm0W7LfoBgvv+4H/AkS/mBYmtGm6jnTu87F+3bW
0cLwrSbe7OhpBU1xZxhhiraNRKhDUTFZxZ3pipSxajtBdwsvMcpRPPTyNKz0mLiu
hOWlEIpDQchxTm1tMzCz3HB9mF+7G9MPvSjF0SYSKdt6R9okUm9FmAti8oXmy1db
RSymQCzKi1oBr97PKwpC/tavC5tTS9t2i+RUF7rIgV2KuVvHG0M+bHlFrpCDrDsi
Q6bac/Qz/pO35qSyNUWok4nBmKWdELztTSChC4+/0oYlmXtPab1c2s8C6XkcpmKK
hVvneGd9lfFmPsMeFVZfjQziRN3vbasFj2vl3rY/0aj9hssu85JK4nxdxqXLqlk=
=ykzz
-END PGP SIGNATURE-




Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Mick
On Friday 14 January 2011 14:13:38 Michael Sullivan wrote:
 On Fri, 2011-01-14 at 06:26 +, Mick wrote:

  Have you had a look at this thread?
  
  http://article.gmane.org/gmane.linux.gentoo.user/237217
 
 I read through that entire thread, and tried everything it suggested.
 No change.


  :-(

In that case the problem may not be php related?

I seem to remember that a couple of years ago apache2 changed its vhost 
configuration files.  I can't recall anymore what these changes were and of 
course I don't know if your problem is in anyway related to it.

Sorry I can't be of more help ...
-- 
Regards,
Mick


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


Re: [gentoo-user] why always display this when kernel start

2011-01-14 Thread Mick
On Friday 14 January 2011 14:47:41 doherty pete wrote:
 i did not follow the handbook,i install gentoo with ubuntu
 but i sure i use the commend:
 
 sudo mount /dev/sda10 /media/gentoo
 sudo mount -t proc none /media/gentoo/proc
 sudo mount -o bind /dev/ /media/gentoo/dev

Instead try exactly as typed in handbook:
sudo mount -o bind /dev /media/gentoo/dev

no trailing slash after /dev

 and stage is
 stage3-i686-20101109.tar.bz2
 
 ls -l /fixit/dev/{console,null}
 crw--- 1 root tty  5, 1 10. Jun 2010  /mnt/dev/console
 crw-rw-rw- 1 root root 1, 3 10. Jun 2010  /mnt/dev/null

This is correct.

-- 
Regards,
Mick


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


Re: [gentoo-user] Re: Strange problem with audio CDs

2011-01-14 Thread pk
On 2011-01-14 12:04, Nuno J. Silva wrote:

 I think pk wanted to point that, as cdparanoia read the disks, that
 means they probably are CDs.

That's what I meant... Thanks to both you and Jörg!

Best regards / MfG

Peter K



[gentoo-user] VirtualBox

2011-01-14 Thread john
Any one having issues with version 4 of VirtualBox.

Mouse integration does not work any more. I can no longer use mouse
within VirtualBox.

I have disabled/enabled mosue integration.



--
John D Maunder
j...@arcticwolf.myzen.co.uk


signature.asc
Description: PGP signature


Re: [gentoo-user] VirtualBox

2011-01-14 Thread Mark Knecht
On Fri, Jan 14, 2011 at 4:23 PM, john j...@arcticwolf.myzen.co.uk wrote:
 Any one having issues with version 4 of VirtualBox.

 Mouse integration does not work any more. I can no longer use mouse
 within VirtualBox.

 I have disabled/enabled mosue integration.



 --
 John D Maunder
 j...@arcticwolf.myzen.co.uk


Hi John,
   I'm having a few issues with it, but not specifically any mouse
problems. I run both Gentoo and Win7 VMs, and I run the Gentoo VMs on
both Gentoo and Win7 hosts. The mouse has been a little touchy within
the Gentoo VM on a Win7 host, at least the first day or two. However I
followed the guide I found and enabled the additions package in
rc-update and things got better. No mouse problems with any of the VMs
on my Gentoo host.

   My big problem is that a perfectly working Win7 VM under 3.?.? now
'pauses' at odd times. It's working fine, but I come back and hour
later and it's all grayed out. I unpause it and it is working again
for another hour. The same VM under the previous version didn't do
this ever.

- Mark



Re: [gentoo-user] Web Server Memory Issues

2011-01-14 Thread Mark Shields
On Wed, Jan 12, 2011 at 1:59 PM, Kaddeh kad...@gmail.com wrote:

 So, I have run into an interesting problem while building out a web server
 for a client which I haven't come across before and I was hoping that the
 list would be a good way for me to find the answer.

 A little beckground on the systems:
 P4 @ 3.0Ghz
 2GB PC2 4200
 2x 250GB drives in RAID1

 The system configurations are default for the most part with the server
 running MySQL and Apache.

 The problem that I am running into at this point, however is that the
 machine seems to run out of memory and will segfault either apache or mysql
 when does so, when apache segfaults, it is a recoverable error, when mysql
 does it, mysql can't recover short of restarting it.

 At this point, I have found a soft fix by running a cron job every 6 hours
 or so to clear the cached memory, which seems to be the problem, however, I
 would like to find a more permanent fix to this issue.

 Anything that would help at this point would be much appreciated.

 Cheers

 Kad


I've seen a similar problem before:  a chrooted webhost running Apache,
MySQL, and a very old version of phpnuke.  MySQL ran a muck using 50%+ of
CPU time, eventually.  I had a cron job set to restart it once an hour, but
even that became too much.  We eventually moved the site to another server
on a temporary basis, then migrated to vBulletin.


Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Mark Shields
On Thu, Jan 13, 2011 at 9:01 PM, Michael Sullivan msulli1...@gmail.comwrote:

 A several years ago I ran a public network out of my apartment.  I had
 email, www, etc. etc.  It all worked fine.  Then one day a couple of
 years ago we decided that we could not afford to pay for a public IP
 address anymore, so we had it turned off.  I haven't touched apache
 since then, but we still run that box as it's faster than all the others
 and runs distcc well.  We had a picture page that I wrote back in 2005
 and occassionally when we have company over we use it to show them
 pictures that we've taken.  I went to the site in my web browser this
 evening, and saw only PHP code printed on the background image.  I've
 checked the usual suspects:

 carter apache2 # cat /etc/conf.d/apache2
 # /etc/conf.d/apache2: config file for /etc/init.d/apache2

 # When you install a module it is easy to activate or deactivate the
 modules
 # and other features of apache using the APACHE2_OPTS line. Every module
 should
 # install a configuration in /etc/apache2/modules.d. In that file will
 be an
 # IfDefine NNN where NNN is the option to enable that module.
 # Here are the options available in the default configuration:
 #   USERDIR   Enables /~username mapping to /home/username/public_html
 #   INFO  Enables mod_info, a useful module for debugging
 #   PROXY Enables mod_proxy
 #   DAV   Enables mod_dav
 #   DAV_FSEnables mod_dav_fs (you should enable this when you enable
 DAV
 # unless you know what you are doing)
 #   SSL   Enables SSL
 #   SSL_DEFAULT_VHOST  Enables default vhost for SSL (you should enable
 this
 #  when you enable SSL unless you know what you are
 doing)
 #   LDAP  Enables mod_ldap
 #   AUTH_LDAP Enables authentication through mod_ldap
 #   DEFAULT_VHOST Enables the default virtual host
 in /var/www/localhost/htdocs
 APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D USERDIR

 # Extended options for advanced uses of Apache ONLY
 # You don't need to edit these unless you are doing crazy Apache stuff
 # As not having them set correctly, or feeding in an incorrect
 configuration
 # via them will result in Apache failing to start
 # YOU HAVE BEEN WARNED.

 # ServerRoot setting
 #SERVERROOT=/usr/lib/apache2

 # Configuration file location
 # - If this does NOT start with a '/', then it is treated relative to
 # $SERVERROOT by Apache
 #CONFIGFILE=/etc/apache2/httpd.conf

 # Location to log startup errors to
 # They are normally dumped to your terminal.
 #STARTUPERRORLOG=/var/log/apache2/startuperror.log

 # Environment variables to keep
 # All environment variables are cleared from apache
 # Use this to preserve some of them
 # NOTE!!! It's very important that this contains PATH
 # Also, it will fail if the _value_ of any of these variables contains a
 space
 KEEPENV=PATH

 carter apache2 # cat error_log
 [Tue Jan 11 03:15:22 2011] [notice] Apache/2.2.16 (Unix) configured --
 resuming normal operations
 [Wed Jan 12 03:00:12 2011] [notice] Graceful restart requested, doing
 restart
 [Wed Jan 12 03:00:13 2011] [notice] Apache/2.2.16 (Unix) configured --
 resuming normal operations
 [Thu Jan 13 19:24:28 2011] [error] [client 192.168.2.3] File does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/
 [Thu Jan 13 19:43:23 2011] [notice] caught SIGTERM, shutting down
 [Thu Jan 13 19:43:26 2011] [notice] Apache/2.2.16 (Unix) configured --
 resuming normal operations
 [Thu Jan 13 19:43:44 2011] [error] [client 192.168.2.3] File does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/
 [Thu Jan 13 19:48:06 2011] [error] [client 192.168.2.3] File does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/index.php
 [Thu Jan 13 19:49:53 2011] [error] [client 192.168.2.3] File does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/index.php
 [Thu Jan 13 19:49:56 2011] [error] [client 192.168.2.3] File does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/index.php
 [Thu Jan 13 19:49:59 2011] [error] [client 192.168.2.3] File does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/index.php
 [Thu Jan 13 19:50:02 2011] [error] [client 192.168.2.3] File does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/index.php

 (that $filename reference would have resolved if PHP were executed AS
 PHP instead of plain text)

 carter apache2 # ls /home/michael/public_html/camera/
 010105  031706  050706  070707  080905  100304  110804  121107  current
 thumbnail.php
 010506  032008  051610  070905  081710  100507  08  121210
 current.php

Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Michael Sullivan
On Fri, 2011-01-14 at 21:24 -0500, Mark Shields wrote:
 On Thu, Jan 13, 2011 at 9:01 PM, Michael Sullivan
 msulli1...@gmail.com wrote:
 A several years ago I ran a public network out of my
 apartment.  I had
 email, www, etc. etc.  It all worked fine.  Then one day a
 couple of
 years ago we decided that we could not afford to pay for a
 public IP
 address anymore, so we had it turned off.  I haven't touched
 apache
 since then, but we still run that box as it's faster than all
 the others
 and runs distcc well.  We had a picture page that I wrote back
 in 2005
 and occassionally when we have company over we use it to show
 them
 pictures that we've taken.  I went to the site in my web
 browser this
 evening, and saw only PHP code printed on the background
 image.  I've
 checked the usual suspects:
 
 carter apache2 # cat /etc/conf.d/apache2
 # /etc/conf.d/apache2: config file for /etc/init.d/apache2
 
 # When you install a module it is easy to activate or
 deactivate the
 modules
 # and other features of apache using the APACHE2_OPTS line.
 Every module
 should
 # install a configuration in /etc/apache2/modules.d. In that
 file will
 be an
 # IfDefine NNN where NNN is the option to enable that
 module.
 # Here are the options available in the default configuration:
 #   USERDIR   Enables /~username mapping
 to /home/username/public_html
 #   INFO  Enables mod_info, a useful module for debugging
 #   PROXY Enables mod_proxy
 #   DAV   Enables mod_dav
 #   DAV_FSEnables mod_dav_fs (you should enable this when
 you enable
 DAV
 # unless you know what you are doing)
 #   SSL   Enables SSL
 #   SSL_DEFAULT_VHOST  Enables default vhost for SSL (you
 should enable
 this
 #  when you enable SSL unless you know
 what you are
 doing)
 #   LDAP  Enables mod_ldap
 #   AUTH_LDAP Enables authentication through mod_ldap
 #   DEFAULT_VHOST Enables the default virtual host
 in /var/www/localhost/htdocs
 APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D USERDIR
 
 # Extended options for advanced uses of Apache ONLY
 # You don't need to edit these unless you are doing crazy
 Apache stuff
 # As not having them set correctly, or feeding in an incorrect
 configuration
 # via them will result in Apache failing to start
 # YOU HAVE BEEN WARNED.
 
 # ServerRoot setting
 #SERVERROOT=/usr/lib/apache2
 
 # Configuration file location
 # - If this does NOT start with a '/', then it is treated
 relative to
 # $SERVERROOT by Apache
 #CONFIGFILE=/etc/apache2/httpd.conf
 
 # Location to log startup errors to
 # They are normally dumped to your terminal.
 #STARTUPERRORLOG=/var/log/apache2/startuperror.log
 
 # Environment variables to keep
 # All environment variables are cleared from apache
 # Use this to preserve some of them
 # NOTE!!! It's very important that this contains PATH
 # Also, it will fail if the _value_ of any of these variables
 contains a
 space
 KEEPENV=PATH
 
 carter apache2 # cat error_log
 [Tue Jan 11 03:15:22 2011] [notice] Apache/2.2.16 (Unix)
 configured --
 resuming normal operations
 [Wed Jan 12 03:00:12 2011] [notice] Graceful restart
 requested, doing
 restart
 [Wed Jan 12 03:00:13 2011] [notice] Apache/2.2.16 (Unix)
 configured --
 resuming normal operations
 [Thu Jan 13 19:24:28 2011] [error] [client 192.168.2.3] File
 does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/
 [Thu Jan 13 19:43:23 2011] [notice] caught SIGTERM, shutting
 down
 [Thu Jan 13 19:43:26 2011] [notice] Apache/2.2.16 (Unix)
 configured --
 resuming normal operations
 [Thu Jan 13 19:43:44 2011] [error] [client 192.168.2.3] File
 does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/
 [Thu Jan 13 19:48:06 2011] [error] [client 192.168.2.3] File
 does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/index.php
 [Thu Jan 13 19:49:53 2011] [error] [client 192.168.2.3] File
 does not

Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Mark Shields
On Fri, Jan 14, 2011 at 9:57 PM, Michael Sullivan msulli1...@gmail.comwrote:

 On Fri, 2011-01-14 at 21:24 -0500, Mark Shields wrote:
  On Thu, Jan 13, 2011 at 9:01 PM, Michael Sullivan
  msulli1...@gmail.com wrote:
  A several years ago I ran a public network out of my
  apartment.  I had
  email, www, etc. etc.  It all worked fine.  Then one day a
  couple of
  years ago we decided that we could not afford to pay for a
  public IP
  address anymore, so we had it turned off.  I haven't touched
  apache
  since then, but we still run that box as it's faster than all
  the others
  and runs distcc well.  We had a picture page that I wrote back
  in 2005
  and occassionally when we have company over we use it to show
  them
  pictures that we've taken.  I went to the site in my web
  browser this
  evening, and saw only PHP code printed on the background
  image.  I've
  checked the usual suspects:
 
  carter apache2 # cat /etc/conf.d/apache2
  # /etc/conf.d/apache2: config file for /etc/init.d/apache2
 
  # When you install a module it is easy to activate or
  deactivate the
  modules
  # and other features of apache using the APACHE2_OPTS line.
  Every module
  should
  # install a configuration in /etc/apache2/modules.d. In that
  file will
  be an
  # IfDefine NNN where NNN is the option to enable that
  module.
  # Here are the options available in the default configuration:
  #   USERDIR   Enables /~username mapping
  to /home/username/public_html
  #   INFO  Enables mod_info, a useful module for debugging
  #   PROXY Enables mod_proxy
  #   DAV   Enables mod_dav
  #   DAV_FSEnables mod_dav_fs (you should enable this when
  you enable
  DAV
  # unless you know what you are doing)
  #   SSL   Enables SSL
  #   SSL_DEFAULT_VHOST  Enables default vhost for SSL (you
  should enable
  this
  #  when you enable SSL unless you know
  what you are
  doing)
  #   LDAP  Enables mod_ldap
  #   AUTH_LDAP Enables authentication through mod_ldap
  #   DEFAULT_VHOST Enables the default virtual host
  in /var/www/localhost/htdocs
  APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D USERDIR
 
  # Extended options for advanced uses of Apache ONLY
  # You don't need to edit these unless you are doing crazy
  Apache stuff
  # As not having them set correctly, or feeding in an incorrect
  configuration
  # via them will result in Apache failing to start
  # YOU HAVE BEEN WARNED.
 
  # ServerRoot setting
  #SERVERROOT=/usr/lib/apache2
 
  # Configuration file location
  # - If this does NOT start with a '/', then it is treated
  relative to
  # $SERVERROOT by Apache
  #CONFIGFILE=/etc/apache2/httpd.conf
 
  # Location to log startup errors to
  # They are normally dumped to your terminal.
  #STARTUPERRORLOG=/var/log/apache2/startuperror.log
 
  # Environment variables to keep
  # All environment variables are cleared from apache
  # Use this to preserve some of them
  # NOTE!!! It's very important that this contains PATH
  # Also, it will fail if the _value_ of any of these variables
  contains a
  space
  KEEPENV=PATH
 
  carter apache2 # cat error_log
  [Tue Jan 11 03:15:22 2011] [notice] Apache/2.2.16 (Unix)
  configured --
  resuming normal operations
  [Wed Jan 12 03:00:12 2011] [notice] Graceful restart
  requested, doing
  restart
  [Wed Jan 12 03:00:13 2011] [notice] Apache/2.2.16 (Unix)
  configured --
  resuming normal operations
  [Thu Jan 13 19:24:28 2011] [error] [client 192.168.2.3] File
  does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/
  [Thu Jan 13 19:43:23 2011] [notice] caught SIGTERM, shutting
  down
  [Thu Jan 13 19:43:26 2011] [notice] Apache/2.2.16 (Unix)
  configured --
  resuming normal operations
  [Thu Jan 13 19:43:44 2011] [error] [client 192.168.2.3] File
  does not
  exist: /home/michael/public_html/camera/$filename, referer:
  http://carter.espersunited.com/~michael/camera/
  [Thu Jan 13 19:48:06 2011] [error] [client 192.168.2.3] File
  does not
  exist: /home/michael/public_html/camera/$filename, referer:
  

Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Michael Sullivan
On Fri, 2011-01-14 at 21:24 -0500, Mark Shields wrote: 
 On Thu, Jan 13, 2011 at 9:01 PM, Michael Sullivan
 msulli1...@gmail.com wrote:
 A several years ago I ran a public network out of my
 apartment.  I had
 email, www, etc. etc.  It all worked fine.  Then one day a
 couple of
 years ago we decided that we could not afford to pay for a
 public IP
 address anymore, so we had it turned off.  I haven't touched
 apache
 since then, but we still run that box as it's faster than all
 the others
 and runs distcc well.  We had a picture page that I wrote back
 in 2005
 and occassionally when we have company over we use it to show
 them
 pictures that we've taken.  I went to the site in my web
 browser this
 evening, and saw only PHP code printed on the background
 image.  I've
 checked the usual suspects:
 
 carter apache2 # cat /etc/conf.d/apache2
 # /etc/conf.d/apache2: config file for /etc/init.d/apache2
 
 # When you install a module it is easy to activate or
 deactivate the
 modules
 # and other features of apache using the APACHE2_OPTS line.
 Every module
 should
 # install a configuration in /etc/apache2/modules.d. In that
 file will
 be an
 # IfDefine NNN where NNN is the option to enable that
 module.
 # Here are the options available in the default configuration:
 #   USERDIR   Enables /~username mapping
 to /home/username/public_html
 #   INFO  Enables mod_info, a useful module for debugging
 #   PROXY Enables mod_proxy
 #   DAV   Enables mod_dav
 #   DAV_FSEnables mod_dav_fs (you should enable this when
 you enable
 DAV
 # unless you know what you are doing)
 #   SSL   Enables SSL
 #   SSL_DEFAULT_VHOST  Enables default vhost for SSL (you
 should enable
 this
 #  when you enable SSL unless you know
 what you are
 doing)
 #   LDAP  Enables mod_ldap
 #   AUTH_LDAP Enables authentication through mod_ldap
 #   DEFAULT_VHOST Enables the default virtual host
 in /var/www/localhost/htdocs
 APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D USERDIR
 
 # Extended options for advanced uses of Apache ONLY
 # You don't need to edit these unless you are doing crazy
 Apache stuff
 # As not having them set correctly, or feeding in an incorrect
 configuration
 # via them will result in Apache failing to start
 # YOU HAVE BEEN WARNED.
 
 # ServerRoot setting
 #SERVERROOT=/usr/lib/apache2
 
 # Configuration file location
 # - If this does NOT start with a '/', then it is treated
 relative to
 # $SERVERROOT by Apache
 #CONFIGFILE=/etc/apache2/httpd.conf
 
 # Location to log startup errors to
 # They are normally dumped to your terminal.
 #STARTUPERRORLOG=/var/log/apache2/startuperror.log
 
 # Environment variables to keep
 # All environment variables are cleared from apache
 # Use this to preserve some of them
 # NOTE!!! It's very important that this contains PATH
 # Also, it will fail if the _value_ of any of these variables
 contains a
 space
 KEEPENV=PATH
 
 carter apache2 # cat error_log
 [Tue Jan 11 03:15:22 2011] [notice] Apache/2.2.16 (Unix)
 configured --
 resuming normal operations
 [Wed Jan 12 03:00:12 2011] [notice] Graceful restart
 requested, doing
 restart
 [Wed Jan 12 03:00:13 2011] [notice] Apache/2.2.16 (Unix)
 configured --
 resuming normal operations
 [Thu Jan 13 19:24:28 2011] [error] [client 192.168.2.3] File
 does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/
 [Thu Jan 13 19:43:23 2011] [notice] caught SIGTERM, shutting
 down
 [Thu Jan 13 19:43:26 2011] [notice] Apache/2.2.16 (Unix)
 configured --
 resuming normal operations
 [Thu Jan 13 19:43:44 2011] [error] [client 192.168.2.3] File
 does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/
 [Thu Jan 13 19:48:06 2011] [error] [client 192.168.2.3] File
 does not
 exist: /home/michael/public_html/camera/$filename, referer:
 http://carter.espersunited.com/~michael/camera/index.php
 [Thu Jan 13 19:49:53 2011] [error] [client 192.168.2.3] File
 does not
   

Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Michael Sullivan
On Fri, 2011-01-14 at 22:10 -0500, Mark Shields wrote:
 On Fri, Jan 14, 2011 at 9:57 PM, Michael Sullivan
 msulli1...@gmail.com wrote:
 
 On Fri, 2011-01-14 at 21:24 -0500, Mark Shields wrote:
  On Thu, Jan 13, 2011 at 9:01 PM, Michael Sullivan
  msulli1...@gmail.com wrote:
  A several years ago I ran a public network out of my
  apartment.  I had
  email, www, etc. etc.  It all worked fine.  Then one
 day a
  couple of
  years ago we decided that we could not afford to pay
 for a
  public IP
  address anymore, so we had it turned off.  I haven't
 touched
  apache
  since then, but we still run that box as it's faster
 than all
  the others
  and runs distcc well.  We had a picture page that I
 wrote back
  in 2005
  and occassionally when we have company over we use
 it to show
  them
  pictures that we've taken.  I went to the site in my
 web
  browser this
  evening, and saw only PHP code printed on the
 background
  image.  I've
  checked the usual suspects:
 
  carter apache2 # cat /etc/conf.d/apache2
  # /etc/conf.d/apache2: config file
 for /etc/init.d/apache2
 
  # When you install a module it is easy to activate
 or
  deactivate the
  modules
  # and other features of apache using the
 APACHE2_OPTS line.
  Every module
  should
  # install a configuration in /etc/apache2/modules.d.
 In that
  file will
  be an
  # IfDefine NNN where NNN is the option to enable
 that
  module.
  # Here are the options available in the default
 configuration:
  #   USERDIR   Enables /~username mapping
  to /home/username/public_html
  #   INFO  Enables mod_info, a useful module for
 debugging
  #   PROXY Enables mod_proxy
  #   DAV   Enables mod_dav
  #   DAV_FSEnables mod_dav_fs (you should enable
 this when
  you enable
  DAV
  # unless you know what you are doing)
  #   SSL   Enables SSL
  #   SSL_DEFAULT_VHOST  Enables default vhost for SSL
 (you
  should enable
  this
  #  when you enable SSL unless
 you know
  what you are
  doing)
  #   LDAP  Enables mod_ldap
  #   AUTH_LDAP Enables authentication through
 mod_ldap
  #   DEFAULT_VHOST Enables the default virtual host
  in /var/www/localhost/htdocs
  APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D
 USERDIR
 
  # Extended options for advanced uses of Apache ONLY
  # You don't need to edit these unless you are doing
 crazy
  Apache stuff
  # As not having them set correctly, or feeding in an
 incorrect
  configuration
  # via them will result in Apache failing to start
  # YOU HAVE BEEN WARNED.
 
  # ServerRoot setting
  #SERVERROOT=/usr/lib/apache2
 
  # Configuration file location
  # - If this does NOT start with a '/', then it is
 treated
  relative to
  # $SERVERROOT by Apache
  #CONFIGFILE=/etc/apache2/httpd.conf
 
  # Location to log startup errors to
  # They are normally dumped to your terminal.
  #STARTUPERRORLOG=/var/log/apache2/startuperror.log
 
  # Environment variables to keep
  # All environment variables are cleared from apache
  # Use this to preserve some of them
  # NOTE!!! It's very important that this contains
 PATH
  # Also, it will fail if the _value_ of any of these
 variables
  contains a
  space
  KEEPENV=PATH
 
  carter apache2 # cat error_log
  [Tue Jan 11 03:15:22 2011] [notice] Apache/2.2.16
 (Unix)
  configured --
  resuming normal operations
  [Wed Jan 

Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Mark Shields
On Fri, Jan 14, 2011 at 10:29 PM, Michael Sullivan msulli1...@gmail.comwrote:

 On Fri, 2011-01-14 at 22:10 -0500, Mark Shields wrote:
  On Fri, Jan 14, 2011 at 9:57 PM, Michael Sullivan
  msulli1...@gmail.com wrote:
 
  On Fri, 2011-01-14 at 21:24 -0500, Mark Shields wrote:
   On Thu, Jan 13, 2011 at 9:01 PM, Michael Sullivan
   msulli1...@gmail.com wrote:
   A several years ago I ran a public network out of my
   apartment.  I had
   email, www, etc. etc.  It all worked fine.  Then one
  day a
   couple of
   years ago we decided that we could not afford to pay
  for a
   public IP
   address anymore, so we had it turned off.  I haven't
  touched
   apache
   since then, but we still run that box as it's faster
  than all
   the others
   and runs distcc well.  We had a picture page that I
  wrote back
   in 2005
   and occassionally when we have company over we use
  it to show
   them
   pictures that we've taken.  I went to the site in my
  web
   browser this
   evening, and saw only PHP code printed on the
  background
   image.  I've
   checked the usual suspects:
  
   carter apache2 # cat /etc/conf.d/apache2
   # /etc/conf.d/apache2: config file
  for /etc/init.d/apache2
  
   # When you install a module it is easy to activate
  or
   deactivate the
   modules
   # and other features of apache using the
  APACHE2_OPTS line.
   Every module
   should
   # install a configuration in /etc/apache2/modules.d.
  In that
   file will
   be an
   # IfDefine NNN where NNN is the option to enable
  that
   module.
   # Here are the options available in the default
  configuration:
   #   USERDIR   Enables /~username mapping
   to /home/username/public_html
   #   INFO  Enables mod_info, a useful module for
  debugging
   #   PROXY Enables mod_proxy
   #   DAV   Enables mod_dav
   #   DAV_FSEnables mod_dav_fs (you should enable
  this when
   you enable
   DAV
   # unless you know what you are doing)
   #   SSL   Enables SSL
   #   SSL_DEFAULT_VHOST  Enables default vhost for SSL
  (you
   should enable
   this
   #  when you enable SSL unless
  you know
   what you are
   doing)
   #   LDAP  Enables mod_ldap
   #   AUTH_LDAP Enables authentication through
  mod_ldap
   #   DEFAULT_VHOST Enables the default virtual host
   in /var/www/localhost/htdocs
   APACHE2_OPTS=-D DEFAULT_VHOST -D PHP5 -D MAILMAN -D
  USERDIR
  
   # Extended options for advanced uses of Apache ONLY
   # You don't need to edit these unless you are doing
  crazy
   Apache stuff
   # As not having them set correctly, or feeding in an
  incorrect
   configuration
   # via them will result in Apache failing to start
   # YOU HAVE BEEN WARNED.
  
   # ServerRoot setting
   #SERVERROOT=/usr/lib/apache2
  
   # Configuration file location
   # - If this does NOT start with a '/', then it is
  treated
   relative to
   # $SERVERROOT by Apache
   #CONFIGFILE=/etc/apache2/httpd.conf
  
   # Location to log startup errors to
   # They are normally dumped to your terminal.
   #STARTUPERRORLOG=/var/log/apache2/startuperror.log
  
   # Environment variables to keep
   # All environment variables are cleared from apache
   # Use this to preserve some of them
   # NOTE!!! It's very important that this contains
  PATH
   # Also, it will fail if the _value_ of any of these
  variables
   contains a
   space
   KEEPENV=PATH
  
   carter apache2 # cat error_log

Re: [gentoo-user] PHP won't execute

2011-01-14 Thread Michael Sullivan
On Fri, 2011-01-14 at 22:37 -0500, Mark Shields wrote:
trimmed
 
 
 
 
 It's no problem.  Gmail realized you had already sent the same message
 and collapsed the whole reply as quoted text :)
 
 
 Try running this:
 
 
 #  echo phpinfo(); | xargs php -r
 
 
 What does it output?  anything?

It outputs a lot of stuff.  More than my gnome-terminal buffer could
display (as in I issue a reset before I issue the command you sent and I
can't see the command when I scroll all the way up.)  Anything in
particular I should be looking for?  Anything I should grep for?





Re: [gentoo-user] VirtualBox

2011-01-14 Thread Alan McKinnon
Apparently, though unproven, at 02:23 on Saturday 15 January 2011, john did 
opine thusly:

 Any one having issues with version 4 of VirtualBox.
 
 Mouse integration does not work any more. I can no longer use mouse
 within VirtualBox.
 
 I have disabled/enabled mosue integration.

Mouse integration works fine here. I didn't have to do anything when migrating 
from 3.

What definitely is broken is the Settings button above the list of virtual 
machines - it makes VB segfault. I must click the section headings on the 
right pane to make config changes to my guests



-- 
alan dot mckinnon at gmail dot com