pkgsrc vs ports

2008-07-17 Thread Ansar Mohammed
Hello All,
Is there some definitive comparison between the ports collection and
netbsd's pkgsrc?


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Wireless 3945ABG problems

2008-07-17 Thread Alain G. Fabry

Hi,

I'm having problems getting my wireless Intel 3945ABG to work.
Running FreeBSD 7.0-RELEASE.

Following are some results from /var/log/messages after different commands:

After boot
==
wpi0:  mem 0xf400-0xf4000fff irq 11 at 
device 0.0 on pci16
wpi0: Ethernet address: 00:19:d2:58:91:37
wpi0: [ITHREAD]
wpi0: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
wpi0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
wpi0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 
36Mbps 48Mbps 54Mbps
wpi0: Radio Transmitter is switched off

sysctl debug.wpi=2


ifconfig wpi0 down
==
Disabling Firmware execution
NEWSTATE:INIT
wpi0: timeout resetting Tx ring 1
wpi0: timeout resetting Tx ring 3
wpi0: timeout resetting Tx ring 4
Disabling Firmware execution
NEWSTATE:INIT

ifconfig wpi0 up

Resetting the card - clearing any uploaded firmware
Loading microcode  size 0x384
firmware status=0x, val=0x4040, result=0x4040
Status Match! - ntries = 0
microcode alive notification version 10e02 alive 1
microcode alive notification version 10e02 alive 1
wpi0: Radio Transmitter is switched off
state changed to 1
wpi0: Radio transmitter is switched off

Press wireless button on laptop -> OFF
==
ugen0: at uhub0 port 1 (addr 2) disconnected
ugen0: detached

Press wireless button on laptop -> ON
=
ugen0:  
on uhub0

ifconfig wpi0 scan list / ifconfig wpi0 scan

HERER


I can't get it to find a network -> and I'm sure that there is one, even many.

What could be the problem. 

Thanks,

Alain
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Headset w/ Mic Presario R3000

2008-07-17 Thread Paul Procacci

Paul Procacci wrote:

Hey all,

I've been using FreeBSD for many many years, but never have a tried to 
get a headset working under FreeBSD.  So, here's the deal.  I have an 
Altec Lansing Headset w/ mic hooked up to a FBSD 7 machine.  
Generally, when connecting a sound device to the system, I just 
normally 'kldload snd_ich' and it will find the device and work out of 
the box.  Well, the onboard speakers work just fine.  However, after 
attempting  to plug in this headset, I am unable to a) hear from the 
headpeice, or b) speak into the mic.


It's not a usb or bluetooth headset, just your run of the mill headset 
to two plugs; one for mic and one for sound.  I've read the chapter on 
sound on the FreeBSD site, but that itself didn't provide any details 
about forcing the device to accept input from or output to the 
headphones and mic.


http://blackk.union.edu/~black/freebsd/#audio

The above claims that sound works, and it does out the onboard 
speakers.  I don't think a headset was tested.  Additionally, I 
figured man mixer would give details but I'm not terribly certain what 
I'm looking for is there.


Can someone be kind enough to provide a link or otherwise in the right 
direction?


Thanks,
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"
Last messageThis has been resolved.  It was the mixer settings 
the entire time.  Sorry to waste uneeded space.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Headset w/ Mic Presario R3000

2008-07-17 Thread Paul Procacci

Paul Procacci wrote:

Hey all,

I've been using FreeBSD for many many years, but never have a tried to 
get a headset working under FreeBSD.  So, here's the deal.  I have an 
Altec Lansing Headset w/ mic hooked up to a FBSD 7 machine.  
Generally, when connecting a sound device to the system, I just 
normally 'kldload snd_ich' and it will find the device and work out of 
the box.  Well, the onboard speakers work just fine.  However, after 
attempting  to plug in this headset, I am unable to a) hear from the 
headpeice, or b) speak into the mic.


It's not a usb or bluetooth headset, just your run of the mill headset 
to two plugs; one for mic and one for sound.  I've read the chapter on 
sound on the FreeBSD site, but that itself didn't provide any details 
about forcing the device to accept input from or output to the 
headphones and mic.


http://blackk.union.edu/~black/freebsd/#audio

The above claims that sound works, and it does out the onboard 
speakers.  I don't think a headset was tested.  Additionally, I 
figured man mixer would give details but I'm not terribly certain what 
I'm looking for is there.


Can someone be kind enough to provide a link or otherwise in the right 
direction?


Thanks,
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
"[EMAIL PROTECTED]"

Update:

I was able to get sound coming into my headset.  Mixer had the answer.  
Now the only thing left is enabling the mic.  Anyone?


~Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Headset w/ Mic Presario R3000

2008-07-17 Thread Paul Procacci

Hey all,

I've been using FreeBSD for many many years, but never have a tried to 
get a headset working under FreeBSD.  So, here's the deal.  I have an 
Altec Lansing Headset w/ mic hooked up to a FBSD 7 machine.  Generally, 
when connecting a sound device to the system, I just normally 'kldload 
snd_ich' and it will find the device and work out of the box.  Well, the 
onboard speakers work just fine.  However, after attempting  to plug in 
this headset, I am unable to a) hear from the headpeice, or b) speak 
into the mic.


It's not a usb or bluetooth headset, just your run of the mill headset 
to two plugs; one for mic and one for sound.  I've read the chapter on 
sound on the FreeBSD site, but that itself didn't provide any details 
about forcing the device to accept input from or output to the 
headphones and mic.


http://blackk.union.edu/~black/freebsd/#audio

The above claims that sound works, and it does out the onboard 
speakers.  I don't think a headset was tested.  Additionally, I figured 
man mixer would give details but I'm not terribly certain what I'm 
looking for is there.


Can someone be kind enough to provide a link or otherwise in the right 
direction?


Thanks,
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


pseudoterminals question

2008-07-17 Thread Unga
Hi 

I'm experiencing "The system has no more ptys.  Ask your system administrator 
to create more.". Well, I'm the system administrator, don't know what to do :) 
I want to understand more about ptys in FreeBSD. I have following questions.

ls -l /dev/ | grep pty
crw-rw-rw-  1 root  wheel   0, 169 Jul 18 10:34 ptyp0
crw-rw-rw-  1 root  wheel   0, 171 Jul 18 11:21 ptyp1
crw-rw-rw-  1 root  wheel   0, 178 Jul 18 11:13 ptyp2
crw-rw-rw-  1 root  wheel   0, 180 Jul 18 10:34 ptyp3
crw-rw-rw-  1 root  wheel   0, 182 Jul 18 11:19 ptyp4

1) That is, I have only 5 ptys, am I right?


2) As per FAQ, http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/admin.html:
"10.19.1
Build and install a new kernel with the line in the configuration file:
device pty N
where N is the number of requested pseudoterminals."

I'm using FreeBSD 7.0, its GENERIC file has only "device pty", no N. What is 
the default for N, is it 5?


3) Is there a way to increase the number of ptys without rebuild the kernel?

Appreciate your reply.

Kind regards
Unga


  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Wireless client won't associate to router with SSID not broadcast

2008-07-17 Thread Steven Friedrich
On Thursday 17 July 2008 09:57:26 am Giorgos Keramidas wrote:
> On Thu, 17 Jul 2008 16:44:41 +0300, Giorgos Keramidas 
<[EMAIL PROTECTED]> wrote:
> > On Thu, 17 Jul 2008 06:28:42 -0400, Steven Friedrich 
<[EMAIL PROTECTED]> wrote:
> >> On Wednesday 16 July 2008 09:13:00 pm Giorgos Keramidas wrote:
> >> Note: The man page for wpa_supplicant.conf incorrectly states ap_scan
> >> values other than 1 are for other operating systems.  Read
> >> /usr/share/examples/wpa_supplicant/wpa_supplicant.conf regarding
> >> ap_scan.
> >
> > Excellent, thanks for posting the details.  I've filed a PR with the
> > text shown below, and I'll take care of updating the manpage.
>
> FWIW, the PR reference number is `docs/125717':
>
> docs/125717: minor wpa_supplicant.conf buglet

Thanks so much.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X won't play

2008-07-17 Thread Warren Block

On Thu, 17 Jul 2008, Roland Smith wrote:


On Thu, Jul 17, 2008 at 11:47:38AM -0700, Rem P Roberti wrote:

Problem solved.  Somehow I didn't just comment out, I actually deleted
this line:

options INET6   # IPv6 communications protocols

Weird.  Anyway, I reinserted the line, and now everything works fine.


I saw that, but I've got a custom kernel without INET6, and X is running
fine here. I get the same first three lines of the error message in my
Xorg.0.log file

My X server is compiled without hal support. Maybe that makes
the difference.


X with HAL on a kernel without INET6 works here.

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X won't play

2008-07-17 Thread Roland Smith
On Thu, Jul 17, 2008 at 11:47:38AM -0700, Rem P Roberti wrote:
> Problem solved.  Somehow I didn't just comment out, I actually deleted
> this line:
> 
> options INET6   # IPv6 communications protocols
> 
> Weird.  Anyway, I reinserted the line, and now everything works fine.

I saw that, but I've got a custom kernel without INET6, and X is running
fine here. I get the same first three lines of the error message in my
Xorg.0.log file

My X server is compiled without hal support. Maybe that makes
the difference.

You could try starting X with 'startx -- -nolisten tcp' on a kernel
without IPv6.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpXbCNcT08PQ.pgp
Description: PGP signature


Re: resizing partiton on FBSD-7.0 amd64

2008-07-17 Thread Wojciech Puchar

what "lower the partition" mean?
if size reduction - impossible, there is no tool for that.

if moving to place nearer the beginning of disk - dd will do if used 
carefully


On Thu, 17 Jul 2008, luizbcampos wrote:


  I used all my disk with FBSD and now I need to lower the
partition with no data loss. Does anyone know how to do it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Atheros Wireless Card Causes Page Fault

2008-07-17 Thread Edward Ruggeri
On Thu, Jul 17, 2008 at 9:38 AM, Edward Ruggeri <[EMAIL PROTECTED]> wrote:
> Hi,
>
> This is a question about a hardware problem.  I hope this is an
> appropriate place to ask.
>
> I have a recently purchased Lenovo ThinkPad, with a Atheros 5212
> wireless card (well, dmesg says it's an Atheros 5212; I believe it).
> It also has a wired internet connector, which works perfectly fine.  I
> wish I was writing you from that computer, but I am at work right now
> and don't have the ThinkPad at my fingertips.  I can update later
> tonight, but perhaps you can spot my error with just the somewhat
> incomplete information I have right now.

My Lenovo representative informs me it may be a Ar5006ex, if that helps.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: why is this script failing?

2008-07-17 Thread Gary Kline
On Thu, Jul 17, 2008 at 06:35:21PM +0100, RW wrote:
> On Wed, 16 Jul 2008 16:03:32 -0700
> Gary Kline <[EMAIL PROTECTED]> wrote:
> 
> > On Tue, Jul 15, 2008 at 08:42:13PM -0500, David Kelly wrote:
> 
> > > You might consider adding something like
> > > 
> > > setenv  TMPDIR  /home/dkelly/tmp
> > > setenv  TMP /home/dkelly/tmp
> 
> There are also KDEVARTMP and KDETMP which are specific to kde
> 
> 
> > what i  should probably do is make extract ktts or amarok and
> > look for /tmp/kde-[usr]/* and se WHY these wav files are ever
> > kept.  for kttsd, yeah, it makes going back several lines
> > easier.  that may explain why i have found
> > "{garbage}wav{garbage}" where {garbage} is several alpha-numbering.
> > no dots, no hyphens.  or files ending in *wav.part"
> > 
> > this may be a historical leftover from when memory was very
> > pricey and disk-space much cheaper.  [[ guessing ]]
> > 
> 
> 
> KAudioCreator and konqueror create intermediate wav[.part] files when
> they are extracting MP3s etc from CDs.

i didn't know that konq could read CD's.  it mmust have been 
KAudioCreator
that i used to extract a few tracks onto my drive.  somehow, it assumed
that i wanted the whole CD and i must have messed up while trying to 
quit.
there's a player and extractor on the gnome side, Sound Juicer.  for
some reason it can't find /dev/cd0.[?]

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: log size handling

2008-07-17 Thread David Newman

On 7/17/08 7:10 AM, Matthew Seaman wrote:


 * Use the rotatelogs program that comes with Apache.  In this case,
   you replace the logging configuration statements in https.conf
   eg. instead of:

CustomLog "/var/log/httpd-access.log" combine

   you have:

CustomLog "|/usr/local/sbin/rotatelogs /var/log/httpd-access.log 
86400"


   which will create a new log file every 86400 seconds (= 1 day) and
   label each one with the unix time it was created appended to the
   name. eg:

   /var/log/httpd-access.log.1216252800

   That will change files at midnight UTC each day, which is fine
   if your server lives in the UK but not quite as convenient if your
   server is in Australia.


Yes. Apache's rotatelogs is a better choice than newsyslog. Under heavy 
load, the latter can corrupt Apache logs.


rotatelogs also can do changes based on log size, like this:

CustomLog "|/usr/local/sbin/rotatelogs/var/log/httpd-access.log 5M" \
combined

and if you don't like deciphering Unix epoch time, you can embed times 
in your log filenames like this:


CustomLog "|/usr/local/sbin/rotatelogs \
/var/log/httpd-access.log.%Y-%m-%d-%H_%M_%S 86400" combined

(n.b. I added the backslashes in the examples here; you want everything 
on a single line in your config file.)


dn


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X won't play

2008-07-17 Thread Rem P Roberti
Problem solved.  Somehow I didn't just comment out, I actually deleted
this line:

options INET6   # IPv6 communications protocols

Weird.  Anyway, I reinserted the line, and now everything works fine.

Rem

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACL and ls: operation not supported

2008-07-17 Thread Svein Halvor Halvorsen
Svein Halvor Halvorsen wrote:
> Svein Halvor Halvorsen wrote:
>> I have acl support on some filesystems, and wanted to turn it on on
>> /home, too. So I ran:
>>
>> # mount -u -o acls /home
> 
> Ok, I'm just being an ignorant noob, who's not able to read the
> documentation. I'm sorry for the noise, but for the record:
> 
> ACLs cannot be turned on/off without a full umount/mount cycle!

Now, I'm not sure of anything. I umounted /home, ran tunefs -a
enable /dev/ad2s1a (the device for /home), and then mounted /home
again. mount now lists "alcs" among the options for this filesystem,
but I'm back with the "operation not supported" messages.

Any ideas?

sv.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /etc/pam.d/ldap file question

2008-07-17 Thread sgmayo

Jason Morgan wrote:
> On 2008.07.17 10:09:18, [EMAIL PROTECTED] wrote:
>> I am wanting to make sure that I have this correct.  Using Pam/NSS/LDAP
>> and Samba, I need to make the following file:
>>
>> /etc/pam.d/ldap
>>
>> which should contain:
>>
>> login   authsufficient  /usr/local/lib/pam_ldap.so
>>
>> Is that all I have to add to the file?  I will also need to uncomment
>> the
>> sshd line in the '/etc/pam.d/other' or else put that line in a new file
>> that is named 'sshd', if I want to use ssh.
>>
>> I am still trying to get a hold of all of this and want to make sure
>> that
>> I am doing things correctly.
>
> I had this exact question/problem when setting LDAP authentication up
> for the first time last week. The man pages don't seem all that clear,
> to me at least, and the pam documentation is vague, when you can find
> it. Anyway, below are the settings I used to get SSH authentication
> working. The settings work, but I don't claim they are "correct".
>
> $ cat /etc/nsswitch.conf
> group:files ldap
> group_compat: nis
> hosts:files dns
> passwd:   files ldap
> passwd_compat:nis
> services: compat
> services_compat:  nis
> shells:   files ldap
>
> $ cat /etc/pam.d/sshd
> # auth
> #auth sufficient  pam_opie.so no_warn no_fake_prompts
> #auth requisite   pam_opieaccess.so   no_warn allow_local
> #auth sufficient  pam_krb5.so no_warn try_first_pass
> #auth sufficient  pam_ssh.so  no_warn try_first_pass
> authsufficient  /usr/local/lib/pam_ldap.so no_warn
> try_first_pass
> auth  requiredpam_unix.so no_warn try_first_pass
>
> I believe, if I read the documentation correctly, you want to add
>
> authsufficient  /usr/local/lib/pam_ldap.so
>
> to /etc/pam.d/login. That should instruct pam to check ldap at
> login. Hopefully, people who really know what they are doing will
> respond.
>
> HTH a bit,
>

I found a great article on how to configure PAM.  I believe this may be
one of the best ones that I have read yet.  It explained things very well
I thought.  You probably have to be registered for linux-mag if you want
to read it, but that is free.  This is a very good article.  It explained
the system-auth file also, which is used in Linux, but I don't think that
FreeBSD uses that.  I was wondering exactly what it did until I read this
article.

Part I is here
http://www.linux-mag.com/id/2105/

Part II is here
http://www.linux-mag.com/id/2153

-- 
Scott Mayo - System Administrator
Bloomfield Schools
PH: 573-568-5669  FA: 573-568-4565

Question: Because it reverses the logical flow of conversation.
Answer: Why is putting a reply at the top of the message frowned upon?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ACL and ls: operation not supported

2008-07-17 Thread Svein Halvor Halvorsen
Svein Halvor Halvorsen wrote:
> I have acl support on some filesystems, and wanted to turn it on on
> /home, too. So I ran:
> 
> # mount -u -o acls /home

Ok, I'm just being an ignorant noob, who's not able to read the
documentation. I'm sorry for the noise, but for the record:

ACLs cannot be turned on/off without a full umount/mount cycle!


Svein Halvor
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X won't play

2008-07-17 Thread Roland Smith
On Thu, Jul 17, 2008 at 09:46:09AM -0700, Rem P Roberti wrote:
> > > I'm kind of new to this, so would appreciate a hand.  I just got through
> > > configuring a custom kernel.  Both makebuild and installbuild take place
> > > with no problems and the kernel boots just like it's supposed to.  But
> > > when I try to bring up X I get this error message:
> > > 
> > > _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
> > > _XSERVTransMakeAllCOTSServerListeners: server already running
> > 
> > Maybe you forgot something netowrking related. Please show a diff(1) of
> > you kernel configurations, see below.
> > 
> > > Fatal server error:
> > > Cannot establish any listening sockets - Make sure an X server isn't
> > > already running
> > > 
> > > I rebooted with the old kernel and everything is back to normal.
> > > Obviously I removed something from the kernel configuration file that I
> > > shouldn't have.  Can someone give me a heads up on just what that might
> > > be?
> > 
> > Please post the output of 'diff -u oldconfig newconfig', where oldconfig
> > and newconfig are replaced by the paths of the old and new kernel
> > configuration files.
> > 
> 
> As requested:
> 
> --- /usr/src/sys/i386/conf/REMKERNEL2008-07-17 00:08:57.0
> -0700
> +++ /usr/src/sys/i386/conf/GENERIC  2008-02-05 19:24:28.0
> -0800

Hmm. Nothing suspicious as far as I can see.

Since it says "server already running" in the original error message, was
there perhaps a stray hidden lockfile or socket in /tmp/?

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpiVMkSZTQnp.pgp
Description: PGP signature


Re: why is this script failing?

2008-07-17 Thread RW
On Wed, 16 Jul 2008 16:03:32 -0700
Gary Kline <[EMAIL PROTECTED]> wrote:

> On Tue, Jul 15, 2008 at 08:42:13PM -0500, David Kelly wrote:

> > You might consider adding something like
> > 
> > setenv  TMPDIR  /home/dkelly/tmp
> > setenv  TMP /home/dkelly/tmp

There are also KDEVARTMP and KDETMP which are specific to kde


>   what i  should probably do is make extract ktts or amarok and
>   look for /tmp/kde-[usr]/* and se WHY these wav files are ever
>   kept.  for kttsd, yeah, it makes going back several lines
>   easier.  that may explain why i have found
> "{garbage}wav{garbage}" where {garbage} is several alpha-numbering.
> no dots, no hyphens.  or files ending in *wav.part"
> 
>   this may be a historical leftover from when memory was very
>   pricey and disk-space much cheaper.  [[ guessing ]]
> 


KAudioCreator and konqueror create intermediate wav[.part] files when
they are extracting MP3s etc from CDs.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X won't play

2008-07-17 Thread Rem P Roberti
On 2008.07.17 19:28:49 +, Roland Smith wrote:
> On Thu, Jul 17, 2008 at 09:46:09AM -0700, Rem P Roberti wrote:
> > > > I'm kind of new to this, so would appreciate a hand.  I just got through
> > > > configuring a custom kernel.  Both makebuild and installbuild take place
> > > > with no problems and the kernel boots just like it's supposed to.  But
> > > > when I try to bring up X I get this error message:
> > > > 
> > > > _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
> > > > _XSERVTransMakeAllCOTSServerListeners: server already running
> > > 
> > > Maybe you forgot something netowrking related. Please show a diff(1) of
> > > you kernel configurations, see below.
> > > 
> > > > Fatal server error:
> > > > Cannot establish any listening sockets - Make sure an X server isn't
> > > > already running
> > > > 
> > > > I rebooted with the old kernel and everything is back to normal.
> > > > Obviously I removed something from the kernel configuration file that I
> > > > shouldn't have.  Can someone give me a heads up on just what that might
> > > > be?
> > > 
> > > Please post the output of 'diff -u oldconfig newconfig', where oldconfig
> > > and newconfig are replaced by the paths of the old and new kernel
> > > configuration files.
> > > 
> 
> Hmm. Nothing suspicious as far as I can see.
> 
> Since it says "server already running" in the original error message, was
> there perhaps a stray hidden lockfile or socket in /tmp/?
> 
I cleaned up the /tmp directory, but the new kernel still refuses to
allow X to boot.  In my original post I failed to include this part of
the error message, which comes at the end:

XIO:  fatal IO error 54 (Connection reset by peer) on X server ":0.0"
  after 0 requests (0 known processed) with 0 events remaining.

As I said earlier, when I unload the new kernel and boot the old one I
have no problem bringing up X.

Rem
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ACL and ls: operation not supported

2008-07-17 Thread Svein Halvor Halvorsen
Hi,

I have acl support on some filesystems, and wanted to turn it on on
/home, too. So I ran:

# mount -u -o acls /home

Now, just "mount" listed /home as supporting acls.
But now, whenever I "ls -l" on any folder on that filesystem, I get
"operation not supported". It seems other file system access works
as normal, though.


Svein Halvor
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Xorg: Couldn't load XKB keymap

2008-07-17 Thread kflavour
hello all,
i can't switch keyboard layout in Xorg, blackbox w.m.

$ grep '(WW)' /var/log/Xorg.0.log
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(WW) `fonts.dir' not found (or not valid) in
"/usr/local/lib/X11/fonts/dejavu/".
(WW) OS did not count PCI devices, guessing wildly
(WW) RADEON: No matching Device section for instance (BusID
PCI:5:0:1) found
(WW) RADEON(0): No crtc mode list for crtc 1,continuing with desired
mode
(WW) Couldn't load XKB keymap, falling back to pre-XKB keymap
(WW) Couldn't load XKB keymap, falling back to pre-XKB keymap

suspect that this is because of an memory drives (no such
/var/lib/xkb/)

$ mount
192.168.0.1:/usr/diskless on / (nfs)
devfs on /dev (devfs, local)
/dev/md0 on /tmp (ufs, local, soft-updates)
/dev/md1 on /var (ufs, local, soft-updates)


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X won't play

2008-07-17 Thread Rem P Roberti
> > I'm kind of new to this, so would appreciate a hand.  I just got through
> > configuring a custom kernel.  Both makebuild and installbuild take place
> > with no problems and the kernel boots just like it's supposed to.  But
> > when I try to bring up X I get this error message:
> > 
> > _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
> > _XSERVTransMakeAllCOTSServerListeners: server already running
> 
> Maybe you forgot something netowrking related. Please show a diff(1) of
> you kernel configurations, see below.
> 
> > Fatal server error:
> > Cannot establish any listening sockets - Make sure an X server isn't
> > already running
> > 
> > I rebooted with the old kernel and everything is back to normal.
> > Obviously I removed something from the kernel configuration file that I
> > shouldn't have.  Can someone give me a heads up on just what that might
> > be?
> 
> Please post the output of 'diff -u oldconfig newconfig', where oldconfig
> and newconfig are replaced by the paths of the old and new kernel
> configuration files.
> 

As requested:

--- /usr/src/sys/i386/conf/REMKERNEL2008-07-17 00:08:57.0
-0700
+++ /usr/src/sys/i386/conf/GENERIC  2008-02-05 19:24:28.0
-0800
@@ -18,8 +18,10 @@
 #
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.474.2.2.2.1 2008/02/06
 # 03:24:28 scottl Exp $

+cpuI486_CPU
+cpuI586_CPU
 cpuI686_CPU
-ident  REMKERNEL
+ident  GENERIC

 # To statically compile in device wiring instead of /boot/device.hints
 #hints "GENERIC.hints" # Default places to look for
devices.
@@ -29,27 +31,28 @@
 optionsSCHED_4BSD  # 4BSD scheduler
 optionsPREEMPTION  # Enable kernel thread
preemption
 optionsINET# InterNETworking
-#options   SCTP# Stream Control Transmission
Protocol
+optionsINET6   # IPv6 communications protocols
+optionsSCTP# Stream Control Transmission
Protocol
 optionsFFS # Berkeley Fast Filesystem
 optionsSOFTUPDATES # Enable FFS soft updates
support
 optionsUFS_ACL # Support for access control
lists
 optionsUFS_DIRHASH # Improve performance on big
directories
 optionsUFS_GJOURNAL# Enable gjournal-based UFS
journaling
-#options   MD_ROOT # MD is a potential root device
-#options   NFSCLIENT   # Network Filesystem Client
-#options   NFSSERVER   # Network Filesystem Server
-#options   NFS_ROOT# NFS usable as /, requires
NFSCLIENT
+optionsMD_ROOT # MD is a potential root device
+optionsNFSCLIENT   # Network Filesystem Client
+optionsNFSSERVER   # Network Filesystem Server
+optionsNFS_ROOT# NFS usable as /, requires
NFSCLIENT
 optionsMSDOSFS # MSDOS Filesystem
 optionsCD9660  # ISO 9660 Filesystem
-#options   PROCFS  # Process filesystem (requires
PSEUDOFS)
-#options   PSEUDOFS# Pseudo-filesystem framework
+optionsPROCFS  # Process filesystem (requires
PSEUDOFS)
+optionsPSEUDOFS# Pseudo-filesystem framework
 optionsGEOM_PART_GPT   # GUID Partition Tables.
 optionsGEOM_LABEL  # Provides labelization
 optionsCOMPAT_43TTY# BSD 4.3 TTY compat [KEEP
THIS!]
 optionsCOMPAT_FREEBSD4 # Compatible with FreeBSD4
 optionsCOMPAT_FREEBSD5 # Compatible with FreeBSD5
 optionsCOMPAT_FREEBSD6 # Compatible with FreeBSD6
-#options   SCSI_DELAY=5000 # Delay (in ms) before probing
SCSI
+optionsSCSI_DELAY=5000 # Delay (in ms) before probing
SCSI
 optionsKTRACE  # ktrace(1) support
 optionsSYSVSHM # SYSV-style shared memory
 optionsSYSVMSG # SYSV-style message queues
@@ -61,92 +64,92 @@
 optionsAUDIT   # Security event auditing

 # To make an SMP kernel, the next two lines are needed
-#options   SMP # Symmetric MultiProcessor
Kernel
-#deviceapic# I/O APIC
+optionsSMP # Symmetric MultiProcessor
Kernel
+device apic# I/O APIC

 # CPU frequency control
-#devicecpufreq
+device cpufreq

 # Bus support.
-#deviceeisa
+device eisa
 device pci

 # Floppy drives
-#devicefdc
+device fdc

 # ATA and ATAPI devices
 device ata
 device atadisk # ATA disk drives
-#deviceataraid # ATA RAID drives
+device at

Re: /etc/pam.d/ldap file question

2008-07-17 Thread Jason Morgan
On 2008.07.17 10:09:18, [EMAIL PROTECTED] wrote:
> I am wanting to make sure that I have this correct.  Using Pam/NSS/LDAP
> and Samba, I need to make the following file:
> 
> /etc/pam.d/ldap
> 
> which should contain:
> 
> login   authsufficient  /usr/local/lib/pam_ldap.so
> 
> Is that all I have to add to the file?  I will also need to uncomment the
> sshd line in the '/etc/pam.d/other' or else put that line in a new file
> that is named 'sshd', if I want to use ssh.
> 
> I am still trying to get a hold of all of this and want to make sure that
> I am doing things correctly.

I had this exact question/problem when setting LDAP authentication up
for the first time last week. The man pages don't seem all that clear,
to me at least, and the pam documentation is vague, when you can find
it. Anyway, below are the settings I used to get SSH authentication
working. The settings work, but I don't claim they are "correct".

$ cat /etc/nsswitch.conf 
group:files ldap
group_compat: nis
hosts:files dns
passwd:   files ldap
passwd_compat:nis
services: compat
services_compat:  nis
shells:   files ldap

$ cat /etc/pam.d/sshd 
# auth
#auth   sufficient  pam_opie.so no_warn no_fake_prompts
#auth   requisite   pam_opieaccess.so   no_warn allow_local
#auth   sufficient  pam_krb5.so no_warn try_first_pass
#auth   sufficient  pam_ssh.so  no_warn try_first_pass
authsufficient  /usr/local/lib/pam_ldap.so no_warn 
try_first_pass
authrequiredpam_unix.so no_warn try_first_pass

I believe, if I read the documentation correctly, you want to add

authsufficient  /usr/local/lib/pam_ldap.so

to /etc/pam.d/login. That should instruct pam to check ldap at
login. Hopefully, people who really know what they are doing will
respond.

HTH a bit,

~Jason Morgan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


resizing partiton on FBSD-7.0 amd64

2008-07-17 Thread luizbcampos
   I used all my disk with FBSD and now I need to lower the
partition with no data loss. Does anyone know how to do it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: X won't play

2008-07-17 Thread Roland Smith
On Thu, Jul 17, 2008 at 08:50:53AM -0700, Rem P Roberti wrote:
> I'm kind of new to this, so would appreciate a hand.  I just got through
> configuring a custom kernel.  Both makebuild and installbuild take place
> with no problems and the kernel boots just like it's supposed to.  But
> when I try to bring up X I get this error message:
> 
> _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
> _XSERVTransOpen: transport open failed for inet6/remdog.net:0
> _XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6

These three lines only indaicate that you don't have IPv6 networking,
but is not a problem.

> _XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
> _XSERVTransMakeAllCOTSServerListeners: server already running

Maybe you forgot something netowrking related. Please show a diff(1) of
you kernel configurations, see below.

> Fatal server error:
> Cannot establish any listening sockets - Make sure an X server isn't
> already running
> 
> I rebooted with the old kernel and everything is back to normal.
> Obviously I removed something from the kernel configuration file that I
> shouldn't have.  Can someone give me a heads up on just what that might
> be?

Please post the output of 'diff -u oldconfig newconfig', where oldconfig
and newconfig are replaced by the paths of the old and new kernel
configuration files.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpHkvspU5XRS.pgp
Description: PGP signature


X won't play

2008-07-17 Thread Rem P Roberti
I'm kind of new to this, so would appreciate a hand.  I just got through
configuring a custom kernel.  Both makebuild and installbuild take place
with no problems and the kernel boots just like it's supposed to.  But
when I try to bring up X I get this error message:

_XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/remdog.net:0
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
_XSERVTransSocketINETCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running

Fatal server error:
Cannot establish any listening sockets - Make sure an X server isn't
already running

I rebooted with the old kernel and everything is back to normal.
Obviously I removed something from the kernel configuration file that I
shouldn't have.  Can someone give me a heads up on just what that might
be?

Thank you.

Rem 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Using OpenBSD's isakmpd in FreeBSD

2008-07-17 Thread Ralf Hornik Mailings

Appendix:

The corresponding suite is:

[AES-SHA-GRP5-RSA_SIG]
ENCRYPTION_ALGORITHM=   AES_CBC
KEY_LENGTH= 256,128:256
HASH_ALGORITHM= SHA
AUTHENTICATION_METHOD=  RSA_SIG
GROUP_DESCRIPTION=  MODP_1536

Might it be, that this aes cipher is missing in kernel?
A man (4) crypto shows:


Depending on hardware being present, the following symmetric and asymmet-
 ric cryptographic features are potentially available from /dev/crypto:

...
CRYPTO_AES_CBC
...


For IPSec I added

option IPSEC
device crypto
device cryptodev
device hifn (for hifn card)

to the kernelfile.

Do I miss something else, or what else can I do?
Regards

Ralf

"Ralf Hornik Mailings" <[EMAIL PROTECTED]> schreibte:


Dear List,

I want to switch my routers from openbsd to freebsd and use the port  
of isakmpd for my
vpn tunnels.  But when I want to use my config from openbsd, isakmpd  
doesn't seem to

configure aes in phase I proposal.

The corresponding configentry is:

[Default-main-mode]
DOI=IPSEC
EXCHANGE_TYPE=  ID_PROT
Transforms= AES-SHA-GRP5-RSA_SIG

starting isakmpd shows up:

ike_phase_1_initiator_send_SA: section [AES-SHA-GRP5-RSA_SIG] has  
unsupported attribute(s)


When I use 3des insteed, isakmpd starts without errors.  But I MUST  
use aes in phase I
because all remote peers use it, I cannot change them all.  Has  
anybody an idea, why

isakmpd won't use aes in phase I but in phase II?
Thank you and best Regards

Ralf

--
alles bleibt anders...



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"





--
alles bleibt anders...

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


/etc/pam.d/ldap file question

2008-07-17 Thread sgmayo
I am wanting to make sure that I have this correct.  Using Pam/NSS/LDAP
and Samba, I need to make the following file:

/etc/pam.d/ldap

which should contain:

login   authsufficient  /usr/local/lib/pam_ldap.so

Is that all I have to add to the file?  I will also need to uncomment the
sshd line in the '/etc/pam.d/other' or else put that line in a new file
that is named 'sshd', if I want to use ssh.

I am still trying to get a hold of all of this and want to make sure that
I am doing things correctly.

Thanks for any help.

-- 
Scott Mayo - System Administrator
Bloomfield Schools
PH: 573-568-5669  FA: 573-568-4565

Question: Because it reverses the logical flow of conversation.
Answer: Why is putting a reply at the top of the message frowned upon?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


can't ping

2008-07-17 Thread Robert Huff

After upgrading a -CURRENT box from the April 19 version to one
from yesterday, ping on that box seems to be broken.  (I noticed the
behavior today; I don't know whether it's directly related to the
upgrade or not.)
Specifically:

huff@>> netstat -rn -f inet
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default209.6.22.1 UGS 0  1917213em0
10.0.0.0/8 link#2 UC  00em1
10.0.0.1   00:0e:0c:a8:a7:e9  UHLW138374lo0
10.255.255.255 ff:ff:ff:ff:ff:ff  UHLWb   1  267em1
127.0.0.1  127.0.0.1  UH  0   272685lo0
209.6.22.0/23  link#1 UC  00em0
209.6.22.1 00:0d:66:25:50:01  UHLW2   25em0   1196
209.6.22.188   00:0e:0c:a8:a7:e8  UHLW16lo0
209.6.23.255   ff:ff:ff:ff:ff:ff  UHLWb   1  267em0

huff@>> ping 209.6.22.188
PING 209.6.22.188 (209.6.22.188): 56 data bytes
64 bytes from 209.6.22.188: icmp_seq=0 ttl=64 time=0.075 ms
64 bytes from 209.6.22.188: icmp_seq=1 ttl=64 time=0.093 ms
64 bytes from 209.6.22.188: icmp_seq=2 ttl=64 time=0.086 ms
64 bytes from 209.6.22.188: icmp_seq=3 ttl=64 time=0.078 ms
64 bytes from 209.6.22.188: icmp_seq=4 ttl=64 time=0.090 ms

huff@>> ping 209.6.22.1
PING 209.6.22.1 (209.6.22.1): 56 data bytes
^C
--- 209.6.22.1 ping statistics ---
10 packets transmitted, 0 packets received, 100.0% packet loss

I have a firewall; rules are appended.
The wierd part is other connectivity works: I can ftp,
web-surf, telnet, etc..
Any ideas on what's broken?


Robert Huff


00100  630662  280315972 allow ip from any to any via lo0
00200   0  0 deny ip from any to 127.0.0.0/8
00300   0  0 deny ip from 127.0.0.0/8 to any
00350   117805065589 allow udp from any 67-68 to any dst-port 67-68
00600   0  0 allow ip6 from any to any via lo0
00610   0  0 deny ip6 from any to ::1
00620   0  0 deny ip6 from ::1 to any
00630  36   2304 allow ip6 from :: to ff02::/16 proto ipv6-icmp
00640   0  0 allow ip6 from fe80::/10 to fe80::/10 proto ipv6-icmp
00650  47   3384 allow ip6 from fe80::/10 to ff02::/16 proto ipv6-icmp
00660   0  0 allow ip6 from 2001:db8:2:1::1 to 2001:db8:2:1::/64
00670   0  0 allow ip6 from 2001:db8:2:1::/64 to 2001:db8:2:1::1
00680   0  0 allow ip6 from fe80::/10 to ff02::/16
00690   0  0 allow ip6 from 2001:db8:2:1::/64 to ff02::/16
00700   0  0 allow ip6 from any to any established proto tcp
00710   0  0 allow ip6 from any to any frag
00720   0  0 allow ip6 from any to 2001:db8:2:1::1 dst-port 25 
setup proto tcp
00730   0  0 allow ip6 from 2001:db8:2:1::1 to any setup proto tcp
00740   4320 deny ip6 from any to any setup proto tcp
00750   0  0 allow ip6 from any 53 to 2001:db8:2:1::1 proto udp
00760   0  0 allow ip6 from 2001:db8:2:1::1 to any dst-port 53 
proto udp
00770   0  0 allow ip6 from any 123 to 2001:db8:2:1::1 proto udp
00780   0  0 allow ip6 from 2001:db8:2:1::1 to any dst-port 123 
proto udp
00790   0  0 allow ip6 from any to any ip6 icmp6types 1 proto 
ipv6-icmp
008001415  90560 allow ip6 from any to any ip6 icmp6types 2,135,136 
proto ipv6-icmp
06000   0  0 deny log logamount 100 tcp from any to any dst-port 
137 in via em0
06050  32   3000 deny log logamount 100 udp from any to any dst-port 
137 in via em0
06100   0  0 deny log logamount 100 tcp from any to any dst-port 
138 in via em0
06150 235  56158 deny log logamount 100 udp from any to any dst-port 
138 in via em0
06200   0  0 deny log logamount 100 tcp from any to any dst-port 
139 in via em0
06250   0  0 deny log logamount 100 udp from any to any dst-port 
139 in via em0
07000   0  0 deny log logamount 100 tcp from any to any dst-port 
111 in via em0
07050   0  0 deny log logamount 100 udp from any to any dst-port 
111 in via em0
07100   0  0 deny log logamount 100 tcp from any to any dst-port 
530 in via em0
07150   0  0 deny log logamount 100 udp from any to any dst-port 
530 in via em0
07200   0  0 deny log logamount 100 tcp from any to any dst-port 
161 in recv em0
07225   0  0 deny log logamount 100 udp from any to any dst-port 
161 in recv em0
07250   0  0 deny log logamount 100 tcp from any to any dst-port 
162 in recv em0
07275   0  0 deny log logamount 100 udp from any to any dst-port 
162 in recv em0
07300   0  0 deny log logamount 100 tcp from any to any dst-port 194
07310   0  0 deny log logamount 100 udp from any

Re: nsswitch.conf man page

2008-07-17 Thread Dan Nelson
In the last episode (Jul 17), [EMAIL PROTECTED] said:
> Dan Nelson wrote:
> > In the last episode (Jul 16), [EMAIL PROTECTED] said:
> >> I don't see anything in the man page about adding ldap into the
> >> nsswitch.conf file.  Is that something that I can do so that I can
> >> get applications to use my openldap?
> >>
> >> I would assume I could add something to the affect of:
> >>
> >> passwd files ldap
> >> group files ldap
> >>
> >> but all I see is compat, files, nis and dns for options.
> >
> > The manpage only lists the builtin sources.  If a builtin source
> > with the specified name isn't found, the code will search for an
> > nss_.so.1 shared object and load that.  So once you install the
> > nss_ldap port, then the ldap source will start working.  Also
> > consider enabling nscd and adding the "cache" source before your
> > "ldap" source. ldap group memership queries are slow :)
> 
> What about the files that it checks?  From the other post and from
> other things that I have seen, I will see this line:
> 
> shadow: files ldap

FreeBSD doesn't need a shadow file.  /etc/master.passwd does the same
job but is transparent to user apps.

> Is there a total list of things like shadow, group, passwd, etc. that I
> can see?  It does not mention but a few int he manpage.

>From looking at the source and the "nsdispatch" manpage, theoretically
any database name can be processed, as long as one of your configured
sources knows what to do.  In reality, libc is the only consumer of the
nsdispatch function.  The "nsswitch.conf" manpage lists all the
databases it uses, and which libc functions use them.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: nsswitch.conf man page

2008-07-17 Thread sgmayo

Dan Nelson wrote:
> In the last episode (Jul 16), [EMAIL PROTECTED] said:
>> I don't see anything in the man page about adding ldap into the
>> nsswitch.conf file.  Is that something that I can do so that I can
>> get applications to use my openldap?
>>
>> I would assume I could add something to the affect of:
>>
>> passwd files ldap
>> group files ldap
>>
>> but all I see is compat, files, nis and dns for options.
>
> The manpage only lists the builtin sources.  If a builtin source with
> the specified name isn't found, the code will search for an
> nss_.so.1 shared object and load that.  So once you install the
> nss_ldap port, then the ldap source will start working.  Also consider
> enabling nscd and adding the "cache" source before your "ldap" source.
> ldap group memership queries are slow :)

What about the files that it checks?  From the other post and from other
things that I have seen, I will see this line:

shadow: files ldap

Is there a total list of things like shadow, group, passwd, etc. that I
can see?  It does not mention but a few int he manpage.

Thanks.

-- 
Scott Mayo - System Administrator
Bloomfield Schools
PH: 573-568-5669  FA: 573-568-4565

Question: Because it reverses the logical flow of conversation.
Answer: Why is putting a reply at the top of the message frowned upon?

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Using OpenBSD's isakmpd in FreeBSD

2008-07-17 Thread Ralf Hornik Mailings

Dear List,

I want to switch my routers from openbsd to freebsd and use the port  
of isakmpd for my
vpn tunnels.  But when I want to use my config from openbsd, isakmpd  
doesn't seem to

configure aes in phase I proposal.

The corresponding configentry is:

[Default-main-mode]
DOI=IPSEC
EXCHANGE_TYPE=  ID_PROT
Transforms= AES-SHA-GRP5-RSA_SIG

starting isakmpd shows up:

ike_phase_1_initiator_send_SA: section [AES-SHA-GRP5-RSA_SIG] has  
unsupported attribute(s)


When I use 3des insteed, isakmpd starts without errors.  But I MUST  
use aes in phase I
because all remote peers use it, I cannot change them all.  Has  
anybody an idea, why

isakmpd won't use aes in phase I but in phase II?
Thank you and best Regards

Ralf

--
alles bleibt anders...



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: log size handling

2008-07-17 Thread Matthew Seaman

Mario Lobo wrote:

What would be the proper way to set the rotation of apache logs in 
newsyslog.conf when there are separate log files for each virtual host?


Do I have to rotate them myself via a script in crontab?


There are several ways to do this.  Here's three in addition to the
script that someone else just posted:

 * Use the 'G' option to newsyslog.  'G' says that the filename
   field of newsyslog.conf actually contains a shell globbing pattern
   (wildcard) and files matching that should be rotated and compressed.

 * Use the rotatelogs program that comes with Apache.  In this case,
   you replace the logging configuration statements in https.conf
   eg. instead of:

CustomLog "/var/log/httpd-access.log" combine

   you have:

CustomLog "|/usr/local/sbin/rotatelogs /var/log/httpd-access.log 86400"

   which will create a new log file every 86400 seconds (= 1 day) and
   label each one with the unix time it was created appended to the
   name. eg:

   /var/log/httpd-access.log.1216252800

   That will change files at midnight UTC each day, which is fine
   if your server lives in the UK but not quite as convenient if your
   server is in Australia.

 * Use the conceptually very similar program 'cronolog' (in ports as
   sysutils/cronolog) This works like 'rotatelogs' except that you give
   it a date-time pattern using the %-escapes as in strftime(3) -- so
   
   CustomLog "|/usr/local/sbin/cronolog /var/log/%Y/%m/%d/httpd-access.log"


   will create /var/log/2008/07/17/httpd-access.log  for today's
   traffic.  Timestamps are based on the TZ setting the server uses
   I believe, so would likely be the same as local wall-clock time.

With the last two, there's no facility to compress or delete old log
files: however it is pretty simple to write a very small shell script to
do either of those things.  The last two have the subtle advantage that
you don't need to signal apache at file rotation time, which means there
is absolutely no effect on performance when it switches to a new log file.  
You could switch log files every hour on a really busy site and not

notice the overhead.

Cheers,

Matthew

--
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Atheros Wireless Card Causes Page Fault

2008-07-17 Thread Edward Ruggeri
Hi,

This is a question about a hardware problem.  I hope this is an
appropriate place to ask.

I have a recently purchased Lenovo ThinkPad, with a Atheros 5212
wireless card (well, dmesg says it's an Atheros 5212; I believe it).
It also has a wired internet connector, which works perfectly fine.  I
wish I was writing you from that computer, but I am at work right now
and don't have the ThinkPad at my fingertips.  I can update later
tonight, but perhaps you can spot my error with just the somewhat
incomplete information I have right now.

I have compiled the Atheros driver and wireless support into my kernel:
"device ath
device ath_hal
device ath_rate_sample
device wlan
device wlan_wep
device wlan_ccmp
device wlan_tkip"

The card is detected correctly upon system startup.

If I write ifconfig_ath0="DHCP" into /etc/rc.conf (or, alternatively,
use dhclient ath0) the system connects to the wireless router and gets
an IP address successfully.  (My wireless at home is unsecured).

I go to test the connection in Lynx.  Google loads (yay!).  I submit a
google search, that may load.  But I rarely get a third page
transmitted before I get a page fault.  The error is quite like this
person's 
(http://lists.freebsd.org/pipermail/freebsd-current/2006-September/065608.html),
though his problem didn't seem to be resolved on the list.

In particular, the system reports a "fatal trap 12: page fault while
in kernel mode".  Fault virtual address is 0x0, not 0xc, if it makes a
difference.  The fault code is also "supervisor read, page not
present."  The current process is ath0 taskq.

To my (totally uneducated) eyes, this seems to be a driver problem.  I
am not certain of my wireless card's make/number, but I assume that it
really is an Atheros 5212, not only because that's what FreeBSD says,
but that's also what Lenovo ships as the basic ThinkPad card (I didn't
go with Intel wireless).  So if I'm using the right driver, I'm not
sure what the issue might be.

Thanks for any help you might have!

Sincerely,

-- Ned Ruggeri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Atheros Wireless Card Causes Page Fault

2008-07-17 Thread Edward Ruggeri
Hi,

This is a question about a hardware problem.  I hope this is an
appropriate place to ask.

I have a recently purchased Lenovo ThinkPad, with a Atheros 5212
wireless card (well, dmesg says it's an Atheros 5212; I believe it).
It also has a wired internet connector, which works perfectly fine.  I
wish I was writing you from that computer, but I am at work right now
and don't have the ThinkPad at my fingertips.  I can update later
tonight, but perhaps you can spot my error with just the somewhat
incomplete information I have right now.

I have compiled the Atheros driver and wireless support into my kernel:
"device ath
device ath_hal
device ath_rate_sample
device wlan
device wlan_wep
device wlan_ccmp
device wlan_tkip"

The card is detected correctly upon system startup.

If I write ifconfig_ath0="DHCP" into /etc/rc.conf (or, alternatively,
use dhclient ath0) the system connects to the wireless router and gets
an IP address successfully.  (My wireless at home is unsecured).

I go to test the connection in Lynx.  Google loads (yay!).  I submit a
google search, that may load.  But I rarely get a third page
transmitted before I get a page fault.  The error is quite like this
person's 
(http://lists.freebsd.org/pipermail/freebsd-current/2006-September/065608.html),
though his problem didn't seem to be resolved on the list.

In particular, the system reports a "fatal trap 12: page fault while
in kernel mode".  Fault virtual address is 0x0, not 0xc, if it makes a
difference.  The fault code is also "supervisor read, page not
present."  The current process is ath0 taskq.

To my (totally uneducated) eyes, this seems to be a driver problem.  I
am not certain of my wireless card's make/number, but I assume that it
really is an Atheros 5212, not only because that's what FreeBSD says,
but that's also what Lenovo ships as the basic ThinkPad card (I didn't
go with Intel wireless).  So if I'm using the right driver, I'm not
sure what the issue might be.

Thanks for any help you might have!

Sincerely,

-- Ned Ruggeri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Wireless client won't associate to router with SSID not broadcast

2008-07-17 Thread Giorgos Keramidas
On Thu, 17 Jul 2008 16:44:41 +0300, Giorgos Keramidas <[EMAIL PROTECTED]> wrote:
> On Thu, 17 Jul 2008 06:28:42 -0400, Steven Friedrich <[EMAIL PROTECTED]> 
> wrote:
>> On Wednesday 16 July 2008 09:13:00 pm Giorgos Keramidas wrote:
>> Note: The man page for wpa_supplicant.conf incorrectly states ap_scan
>> values other than 1 are for other operating systems.  Read
>> /usr/share/examples/wpa_supplicant/wpa_supplicant.conf regarding
>> ap_scan.
>
> Excellent, thanks for posting the details.  I've filed a PR with the
> text shown below, and I'll take care of updating the manpage.

FWIW, the PR reference number is `docs/125717':

docs/125717: minor wpa_supplicant.conf buglet

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Wireless client won't associate to router with SSID not broadcast

2008-07-17 Thread Giorgos Keramidas
On Thu, 17 Jul 2008 06:28:42 -0400, Steven Friedrich <[EMAIL PROTECTED]> wrote:
> On Wednesday 16 July 2008 09:13:00 pm Giorgos Keramidas wrote:
> Note: The man page for wpa_supplicant.conf incorrectly states ap_scan
> values other than 1 are for other operating systems.  Read
> /usr/share/examples/wpa_supplicant/wpa_supplicant.conf regarding
> ap_scan.

Excellent, thanks for posting the details.  I've filed a PR with the
text shown below, and I'll take care of updating the manpage.

: To: [EMAIL PROTECTED]
: From: Giorgos Keramidas <[EMAIL PROTECTED]>
: Subject: minor wpa_supplicant.conf buglet
: Reply-To: Giorgos Keramidas <[EMAIL PROTECTED]>
: Cc:
: X-send-pr-version: 3.113
: X-GNATS-Notify:
: Gcc: nnml:posted
:
: >Submitter-Id:  current-users
: >Originator:Giorgos Keramidas
: >Organization:  
: >Confidential:  no 
: >Synopsis:  minor wpa_supplicant.conf buglet
: >Severity:  non-critical
: >Priority:  low
: >Category:  docs
: >Class: doc-bug
: >Release:   FreeBSD 8.0-CURRENT i386
: >Environment:
: System: FreeBSD kobe 8.0-CURRENT FreeBSD 8.0-CURRENT #0: \
: Tue Jul 8 09:10:21 EEST 2008 [EMAIL 
PROTECTED]:/home/build/obj/home/build/src/sys/KOBE i386
:
: >Description:
:
: The man page for wpa_supplicant.conf incorrectly states ap_scan values
: other than 1 are for other operating systems.  When ndiswrapper is used,
: it may be useful to set ap_scan=2.
:
: >How-To-Repeat:
: >Fix:
:
: I'll handle this.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem in checking machine architecture.

2008-07-17 Thread David Robillard
> the output is: "amd64"
>
> When I run: "sysctl -a | less"
> and search for: "CPU"
> I see that:
> "hw.model: Intel(R) Xeon(R) CPU5140  @ 2.33GHz
> ...
> hw.machine_arch: amd64"

I know it's slightly off topic, but when comes the time to verify
hardware details, then you might want to take a look at dmidecode(8).
It's available in the FreeBSD ports as sysutils/dmidecode or from it's
website at http://www.nongnu.org/dmidecode/

This tool enables you to retrieve things like bios-vendor,
bios-version,  bios-release-date,  system-manufacturer,
system-product-name, system-version, system-serial-number,
system-uuid, baseboard-manufacturer,  baseboard-product-name,
baseboard-version, baseboard-serial-number, baseboard-asset-tag,
chassis-manufacturer, chassis-type, chassis-version,
chassis-serial-number, chassis-asset-tag, processor-family,
processor-manufacturer, processor-version,  processor-frequency, etc.

It's also available for other UNIX flavors too, so it's nice when you
have a heterogeneous environment where sysctl and uname don't have the
exact same flags. I've tried it successfully on various versions of
FreeBSD, RedHat Enterprise Linux & Ubuntu Linux.

HTH,

David
-- 
David Robillard
UNIX systems administrator & Oracle DBA
CISSP, RHCE & Sun Certified Security Administrator
Montreal: +1 514 966 0122

If you receive something that says "Send this to everyone you know",
then please pretend you don't know me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: log size handling

2008-07-17 Thread Volodymyr Kostyrko

Mario Lobo wrote:

On Thursday 17 July 2008, Zbigniew Szalbot wrote:


What would be the proper way to set the rotation of apache logs in 
newsyslog.conf when there are separate log files for each virtual host?


/var/log/httpd/*.log www:wheel 644 7 102400 * JG /var/run/httpd.pid 30


Do I have to rotate them myself via a script in crontab?


If you want it.

ls /var/log/httpd/*.bz2 | sed 's|\.\([0-9]*\)\.|,\1,|' | awk 
'BEGIN{FS=","}{print"mv "$1"."$2"."$3" "$1"."$2+1"."$3}' | sh

ls /var/log/httpd/*.log | xargs -n1 -Ifoo mv foo foo.0
kill -30 `cat /var/run/httpd.pid`
sleep 1
bzip2 -9 /var/log/httpd/*.0
find /var/log/httpd/ -type -f -mtime +7 -delete

--
Sphinx of black quartz judge my vow.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: log size handling

2008-07-17 Thread Mario Lobo
On Thursday 17 July 2008, Zbigniew Szalbot wrote:
> Hi,
>
> Bill Moran:
> > In response to Zbigniew Szalbot <[EMAIL PROTECTED]>:
> >> Hello,
> >>
> >> I am just wondering if for the software like Apache the log size
> >> matters at all. I rotate httpd logs monthly and each domain has its
> >> own log. One is over 145 MB in size. Just curious if I can keep it
> >> like that or should rotate more often? I have enough space on HD so
> >> the log's size is of no concern for me. I guess I am just asking
> >> for best practices advice... Thanks!
> >
> > There are potential performance issues.  I believe that appending to
> > a file becomes more expensive when a file gets very large (which is
> > obviously the scenario with log files)
>
> Thank you Bill - this is what I had in mind - whether appending to a
> large file will not be an issue? It is currently about 145MB. By the end
> of month it will surely be around 300MB.
>
> > Also, at rotation time, if you're compressing those logs it can be a
> > pretty big load to compress 145M.  If you're not compressing and not
> > moving the files to another partition when you rotate them, then this
> > part probably isn't an issue.
>
> Yes, I am compressing them. Load is not an issue yet but I want to
> optimize things that can be optimized. So I guess, rotate more often? I
> like the idea of having one monthly log because it is then processed by
> web stat software so it is easier to submit one than a couple of them.
>
> Thanks!

What would be the proper way to set the rotation of apache logs in 
newsyslog.conf when there are separate log files for each virtual host?

Do I have to rotate them myself via a script in crontab?

Thanks

-- 
Mario Lobo
Segurança de Redes - Desenvolvimento e Análise
IPAD - Instituto de Pesquisa e Apoio ao Desenvolvimento Tecnológico e 
Científico


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


OT: 802.11g via USB1 vs 802.11b via pcmcia

2008-07-17 Thread Andrew Gould
I have an old computer that has USB1 ports and no internal wifi card.  I
have a 802.11b card I can use via pcmcia card and a 802.11g adapter I can
use via USB1.  Which wifi setup should I use for better performance?  (I've
never been clear about the speed of pcmcia.)

Thanks,

Andrew
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: how to simulate a user's crontab?

2008-07-17 Thread John Almberg


John, it is not a permissions issue, but rather a path issue.
Do as the other poster suggested and run a cron job to dump the
environment and you will see that the PATH inside a cron job is very
rudimentary.  Either add what you need to it in the crontab or cron
job, or always use absolute paths for everything in a cron entry.

alternatively, set up an AT job as the user, then find the script
generated by at and grab a copy (/var/spool/cron ???).  You can use
that copy as the basis for all cron scripts for that user, and always
have the 'user' environment set up correctly.



Yes, I finally figured this out. I had the problem completely  
backwards... I assumed that when I ran 'su user', I was logged in as  
the user. Since the command worked when I was 'logged in' and didn't  
work for crontab, I figured crontab must be different. It never  
occured to me that *I* was running in a different environment :-)


If I had realized, a quick read of the su man page would have solved  
my problem. As it was, I had been shown su long ago by another admin,  
and just assumed I knew how it worked. Wrong!


Well, that's the joys of being of newbie administrator... So little  
time, so many man pages to read!


Thanks: John

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: log size handling

2008-07-17 Thread Zbigniew Szalbot

Hi,

Bill Moran:

In response to Zbigniew Szalbot <[EMAIL PROTECTED]>:


Hello,

I am just wondering if for the software like Apache the log size
matters at all. I rotate httpd logs monthly and each domain has its
own log. One is over 145 MB in size. Just curious if I can keep it
like that or should rotate more often? I have enough space on HD so
the log's size is of no concern for me. I guess I am just asking
for best practices advice... Thanks!


There are potential performance issues.  I believe that appending to
a file becomes more expensive when a file gets very large (which is 
obviously the scenario with log files)


Thank you Bill - this is what I had in mind - whether appending to a
large file will not be an issue? It is currently about 145MB. By the end
of month it will surely be around 300MB.


Also, at rotation time, if you're compressing those logs it can be a
pretty big load to compress 145M.  If you're not compressing and not
moving the files to another partition when you rotate them, then this
part probably isn't an issue.


Yes, I am compressing them. Load is not an issue yet but I want to
optimize things that can be optimized. So I guess, rotate more often? I 
like the idea of having one monthly log because it is then processed by 
web stat software so it is easier to submit one than a couple of them.


Thanks!

--
Zbigniew Szalbot
www.LCWords.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: log size handling

2008-07-17 Thread Bill Moran
In response to Zbigniew Szalbot <[EMAIL PROTECTED]>:

> Hello,
> 
> I am just wondering if for the software like Apache the log size matters 
> at all. I rotate httpd logs monthly and each domain has its own log. One 
> is over 145 MB in size. Just curious if I can keep it like that or 
> should rotate more often? I have enough space on HD so the log's size is 
> of no concern for me. I guess I am just asking for best practices 
> advice... Thanks!

There are potential performance issues.  I believe that appending to a
file becomes more expensive when a file gets very large (which is
obviously the scenario with log files)

Also, at rotation time, if you're compressing those logs it can be
a pretty big load to compress 145M.  If you're not compressing and
not moving the files to another partition when you rotate them, then
this part probably isn't an issue.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


log size handling

2008-07-17 Thread Zbigniew Szalbot

Hello,

I am just wondering if for the software like Apache the log size matters 
at all. I rotate httpd logs monthly and each domain has its own log. One 
is over 145 MB in size. Just curious if I can keep it like that or 
should rotate more often? I have enough space on HD so the log's size is 
of no concern for me. I guess I am just asking for best practices 
advice... Thanks!


--
Zbigniew Szalbot
www.LCWords.com


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Wireless client won't associate to router with SSID not broadcast

2008-07-17 Thread Steven Friedrich
On Wednesday 16 July 2008 09:13:00 pm Giorgos Keramidas wrote:
> On Wed, 16 Jul 2008 20:20:59 -0400, Steven Friedrich <[EMAIL PROTECTED]> 
wrote:
> > My laptop connects just fine, until I config the router to turn off
> > broadcasting SSID.  Then, ifconfig reports "no carrier".
> >
> > Is there a config setting I need?
>
> Hi Steven,
>
> How are you bringing up the wireless interface?
>
> My home AP doesn't broadcast its SSID either.  The script I use to bring
> up ath0+wlan0 and connect my laptop at home includes stuff like the
>
> following (and it does work without SSID broadcasting):
> : # network interface options (partial; see below for more wlan0 stuff)
> : export wlans_ath0="wlan0"
> : export ifconfig_wlan0="inet 192.168.1.3/24"
> : export defaultrouter='192.168.1.1'
> :
> : echo '## Stopping network interfaces.'
> :
> : /etc/rc.d/netif stop fxp0 && ifconfig fxp0 delete
> : /etc/rc.d/netif stop ath0 && ifconfig ath0 delete
> :
> : echo '## Bringing up wireless interface.'
> :
> : /etc/rc.d/netif start ath0
> :
> : ifconfig wlan0 \
> : ssid '' channel 11 \
> : wepmode on weptxkey 1 \
> : wepkey '0xXX'

In /etc/rc.conf, I have:
ifconfig_ndis0="wpa DHCP"

In /etc/wpa_supplicant.conf, I have:
network={
ssid="FriedrichAir"
psk="somekey"
}

LATE BREAKING NEWS
I GOT IT

I added ap_scan=2 to wpa_supplicant.conf and a few more
In /etc/wpa_supplicant.conf, I now have:
ap_scan=2
network={
ssid="FriedrichAir"
scan_ssid=1
key_mgmt=WPA-PSK
pairwise=TKIP
group=TKIP
proto=WPA
psk="somekey"
}

Note: The man page for wpa_supplicant.conf incorrectly states ap_scan values 
other than 1 are for other operating systems.  
Read /usr/share/examples/wpa_supplicant/wpa_supplicant.conf regarding 
ap_scan.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: http cache cleaner

2008-07-17 Thread Jos Chrispijn

Warren Liddell wrote:
I have had every so often during the day a window saying http cache cleaner 
loading application appear but not listed in the actual processes or 
available to terminate, what is it an how do i stop it form loading ?

Looks like a Ubuntu thinghy (...), this might help:

cd /usr/share/services/
sudo cp http_cache_cleaner.desktop http_cache_cleaner.desktop.ubuntu
sudo echo StartupNotify=false >> http_cache_cleaner.desktop

-- Jos
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problem with enabling DRI on ATI Mobility Radeon X1350

2008-07-17 Thread gelraen
This was much easier, that I waited :)
After first build I had "link_elf: symbol drm_core_ioremap_wc undefined"
every time I tried to kldload radeon, but it was solved by 3
additional lines in sources :)

So, here is step-by-step instruction:

1) download sources
$ git clone git://anongit.freedesktop.org/git/mesa/drm
$ cd drm

2) edit sources
# git diff
diff --git a/bsd-core/drmP.h b/bsd-core/drmP.h
index 88ea4e6..122ac4a 100644
--- a/bsd-core/drmP.h
+++ b/bsd-core/drmP.h
@@ -1117,5 +1117,9 @@ static __inline__ void drm_core_dropmap(struct
drm_map *map)
 {
 }

+#ifndef drm_core_ioremap_wc
+# define drm_core_ioremap_wc drm_core_ioremap
+#endif
+
 #endif /* __KERNEL__ */
 #endif /* _DRM_P_H_ */

3) install kernel modules
# cd bsd-core
# make && make install
# kldunload radeon
# kldunload drm
# kldload drm
# kldload radeon

4) check result
$ dmesg | grep drm
drm0:  on vgapci0
vgapci0: child drm0 requested pci_enable_busmaster
info: [drm] Initialized radeon 1.29.0 20080613

I haven't tried to integrate these sources in kernel, so I have only
device agp in kernel config,
not drm/radeondrm

After that KDE starts work much faster :)
But I still have problems running Compiz/Beryl...
Even kompmgr fails to start with KDE, but works just fine if started manually.

gelraen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


http cache cleaner

2008-07-17 Thread Warren Liddell
I have had every so often during the day a window saying http cache cleaner 
loading application appear but not listed in the actual processes or 
available to terminate, what is it an how do i stop it form loading ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


re: how to simulate a user's crontab?

2008-07-17 Thread DA Forsyth
> Date: Wed, 16 Jul 2008 11:26:19 -0400
> From: John Almberg <[EMAIL PROTECTED]>

> I often run into permission problems with user crontabs. That is, a 
> crontab run under a user's permissions.

> First of all, it seems to me that a user's crontab doesn't have 
> exactly the same permission as the user himself. Is this true? 

> If so, what permissions does a user's crontab have?

> Is there anyway I can simulate these permissions on the command line, 
> so I can test things before putting them in a crontab? 

> What I'd like to avoid is the frustrating cycle of putting a line in 
> a user's crontab (a few minutes ahead), waiting for it to fire off, 
> have it fail, check error logs, try again... 

> It would be much simpler if I could simulate the crontab's 
> environment, and just run the thing from the command line. 

> Any hope? I'm running FreeBSD 6.3

John, it is not a permissions issue, but rather a path issue.
Do as the other poster suggested and run a cron job to dump the 
environment and you will see that the PATH inside a cron job is very 
rudimentary.  Either add what you need to it in the crontab or cron 
job, or always use absolute paths for everything in a cron entry.

alternatively, set up an AT job as the user, then find the script 
generated by at and grab a copy (/var/spool/cron ???).  You can use 
that copy as the basis for all cron scripts for that user, and always 
have the 'user' environment set up correctly.


--
   DA Fo rsythNetwork Supervisor
Principal Technical Officer -- Institute for Water Research
http://www.ru.ac.za/institutes/iwr/


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"