Re: Error kio_media_mounthelper cdrom not accessible for normal users

2008-06-29 Thread Gonzalo Nemmi
On Sunday 29 June 2008 23:40:21 Desmond Chapman wrote:
> "Feature only available with HAL"
> I have asked about this. I have searched. I have tried sysctl, I have
> edited devfs.conf and to no avail. I have changed permissions on the
> device.
> And I still cannot access it as a normal non-root user.
>
> How do I make it work?

Try this.
1) as root: add the following line to the end of your /etc/sysctl.conf file

vfs.usermount=1

2) as root: Invite your user to the "operator" group
3) as root: chmod 660 /dev/acd0
4) as root: add this lines to the end of your /etc/devfs.conf file

own /dev/acd0   root:operator
perm/dev/acd0   0660

5) as root: edit your /etc/fstab to add a line like this:

/dev/acd0   /home/youruser/media cd9660  rw,noauto   0   0

6) as root: issue the following command:

/etc/rc.d/devfs restart

7) as user: create a "media" folder inside your "home folder" (the thing is 
that users can only mount on folders they own ...)

When done .. give it a shot:

[EMAIL PROTECTED] ~]% pwd
/usr/home/gonzalo
[EMAIL PROTECTED] ~]% ls media/
[EMAIL PROTECTED] ~]% mount -t cd9660 /dev/acd0 media/
[EMAIL PROTECTED] ~]% ls media/
4.3/   TRANS.TBL  etc/
[EMAIL PROTECTED] ~]% cd media/4.3/
[EMAIL PROTECTED] ~/media/4.3]% ls
TRANS.TBL  i386/
[EMAIL PROTECTED] ~/media/4.3]% cd i386/
[EMAIL PROTECTED] ~/media/4.3/i386]% ls
INSTALL.i386  boot.catalog* bsd.rd*   comp43.tgzman43.tgz 
xetc43.tgzxshare43.tgz
TRANS.TBL bsd*  cdboot*   etc43.tgz misc43.tgz
xfont43.tgz
base43.tgzbsd.mp*   cdbr* game43.tgzxbase43.tgz   
xserv43.tgz
[EMAIL PROTECTED] ~/media/4.3/i386]% cd ~
[EMAIL PROTECTED] ~]% umount media/
[EMAIL PROTECTED] ~]% ls media/
[EMAIL PROTECTED] ~]%

If it worked, feel free to create a "Create New/Link to Device/CD-ROM Device" 
in your KDE desktop ... just make sure that in the "Device" tab entry, the 
path points to /dev/acd0 (/home/youruser/media), and that the rw or ro values 
are correlative to those in your /etc/fstab entry.

Hope it works your you. That's the way it works for me :)
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Too Much Context Switching?

2008-06-29 Thread alex
I'm the webmaster for www.marssociety.org, which is a FreeBSD 
6.2-RELEASE box running on a dual-core AMD Opteron setup with 4GB of 
RAM. The box is reasonably busy, as it's the sole piece of hardware 
running web, database, and mail operations for the Mars Society, an 
international nonprofit group dedicated to space exploration. We 
regularly send out newsletters to ~10,000 members, and our web site is 
averaging ~50,000-100,000 hits/day.


The main portion of the web site is run via the Zope/Plone CMS system 
(Plone 2.5, for anyone who may care). Recently, it's been slowing down 
dramatically, and our Plone guy (not me -- I inherited the system and 
can't stand it) can't figure out why. I've been diving into OS-related 
issues, and in so doing, I ran across what appears to be a very high 
number of context switches going on. Here's some sample output from 
"vmstat 2":


procs  memory  page   disk   faults  cpu
 r b w avmfre  flt  re  pi  po  fr  sr ad4   in   sy  cs us sy id
 2 5 0 1311980 410176  702   1   0   0 587   9   0  544 3194 954 49  2 49
 2 5 0 1311980 4101722   0   0   0   3   0   6  316 3599 3749 51  2 47
 2 5 0 1313804 409348  659   0   0   0 480   0  12  381 9903 8141 52  4 44
 2 5 0 1311188 4099083   0   0   0  81   0   0  430 12153 9019 53  4 43
 2 5 0 1311188 409904  140   0   0   0 123   0  14  462 11912 8323 50  4 47
 2 5 0 1311700 410224   76   0   0   0 113   0   1  612 6791 5749 53  2 46
 1 5 0 1311532 409936  721   0   0   0 597   0   0  207  851 531 54  1 45
 2 5 0 1308908 4105082   0   0   0  80   0   6  382 10527 8253 50  4 46
 1 5 0 1307084 411344   10   0   0   0 115   0   0  398 13087 8903 48  4 48
 2 5 0 1307112 4112886   0   0   0   7   0   3  440 11023 8619 54  2 44
 2 5 0 1313604 404780  883   0   0   0  80   0  10  480 13711 10526 52  4 44
 1 5 0 1315320 404468   37   0   0   0   0   0   0  629 1651 2509 50  1 48
 2 5 0 1360792 367620 4926   0   0   0 315   0  14  346 7631 3078 60  2 38
 2 5 1 1371172 366348  268   0   0   0 103   0   0  527 9903 8926 51  3 46
 2 5 0 1361772 372800 1002   0   0   0 1807   0   0  571 11340 8572 54  6 40
 3 5 0 1356132 373348  135   0   0   0 198   0   0  884 11792 9699 50  4 46
 1 5 0 1344928 380692   78   0   0   0 986   0   0  552 15652 13671 50  5 45

Unfortunately, this is the only busy FreeBSD box I have access to, so I 
have no good way of telling if the values I'm seeing are abnormal or 
not. Can anyone tell me if these numbers look high, or if anything from 
the vmstat output above looks abnormal and should be followed up on?


Thanks,
Alex Kirk

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


Error kio_media_mounthelper cdrom not accessible for normal users

2008-06-29 Thread Desmond Chapman

"Feature only available with HAL"
I have asked about this. I have searched. I have tried sysctl, I have edited 
devfs.conf and to no avail.
I have changed permissions on the device.
And I still cannot access it as a normal non-root user.

How do I make it work?

_
The other season of giving begins 6/24/08. Check out the i’m Talkathon.
http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Phttpget problems (freebsd-update)

2008-06-29 Thread Andrew Storms
Thanks.  I love how I overlooked the simple answer.  I'll give it a try.


On 6/27/08 1:05 PM, "Lowell Gilbert"
<[EMAIL PROTECTED]> wrote:

> Andrew Storms <[EMAIL PROTECTED]> writes:
> 
>> Anyone else experiencing issues related to phttpget when using
>> freebsd-update?  What I'm finding is that there is just enough delay between
>> retrieval of the 6.2 and the 6.3 patches; that the upstream firewall closes
>> the NAT.  Then phttpget attempts to retrieve the 6.3 patch set and just
>> assumes the session is already open.  Firewall sends a RST back and phttpget
>> doesn't attempt a new 3-way handshake.  The end result is freebsd-update
>> then just gives up.
>> 
>> If it helps at all, I'm so far only seeing this happen behind a Cisco ASA
>> appliance.
>> 
>> Anybody else seen this and/or have a suggested work around?
> 
> Maybe perform the 6.2 update and the 6.3 update in separate operations?
> 
> --
> Lowell Gilbert, embedded/networking software engineer, Boston area
> http://be-well.ilk.org/~lowell/

___
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 IF_RE

2008-06-29 Thread FreeBSD

Abdullah Ibn Hamad Al-Marri wrote:


  



Hello,

You should follow RELENG_7, I don't think got any changes in RELENG_7_0.

Good luck with it.

 
--

Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/


  

  


I followed your path, did a fresh build and install of the kernel and 
the world -- to no effect. The scenerio is still the same.


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


Re: FreeBSD single user?

2008-06-29 Thread Mukarram Syed
Thanks for your response...
I tried to press Enter and then Cntl + D  and that didn't help either.  Sorry 
for the delay, it took a while to type all of this from the screen.

Here are my scenarios:

Scenario 1:


After I power cycle the array, it boots up and comes to this:
F1 FreeBSD
F2 FreeBSD
F3 FreeBSD
F5 Drive 1
Default: F5

I hit Enter and it changes to this:

F1 FreeBSD
F2 FreeBSD
F3 FreeBSD
F5 Drive 2
Default: F1

I hit Enter and space (I think), it drops me down to this:

>> FreeBSD/i386 BOOT
   Default: 1:ad(1,a)/boot/loader
   boot:

At the boot: I type /kernel -s

It goes through the boot process and these are the lines before I hit my road 
block:  
"Enter full pathname of shell or RETURN for /bin/sh:"

the lines are:
Mounting root from ufs:ad1s1a
Root Mount Failed:  6
Mounting root from ufs:ad1a
Root Mount Failed:  6
Manual root file system
gives me an example
then it drops me down to this prompt:
mount root>

I type:

mount root> ufs:/dev/ad0a
Mounting root from ufs:/dev/ad0a
WARNING / was not properly dismounted
Enter full pathname of shell or RETURN for /bin/sh:

The line "Enter full pathname of shell or RETURN for /bin/sh:" seemed to be 
rather grayed out.  What I mean is that the color is a bit lighter than the 
other text above of it. 
At this point I can't type anything.  It's pretty much frozen.

Scenario 2:


After I power cycle the array, it boots up and comes to this:
F1 FreeBSD
F2 FreeBSD
F3 FreeBSD
F5 Drive 1
Default: F5

I NOT touch anything on the keyboard and it changes to this:

F1 FreeBSD
F2 FreeBSD
F3 FreeBSD
F5 Drive 2
Default: F1

I let it boot up and hit space after a sec or so.
then I get it down to the ok prompt:

ok

I type

ok boot -s 
It boots up and here are the lines before I hit my road block:

Waiting for DAG engine to start
RAIDFRAME: configure (RAID level 1): total number of sectors 483200 (235MB)
RAIDFRAME (RAID level 1): use 6 floating recon bufs with no head sep limit
Mounting root form ufs:/dev/raid0c
Enter full pathname of shell or RETURN for /bin/sh:

At this point I can't type anything.  It's pretty much frozen.

I don't know what to do at this point.

# mukarram
Mukarram Syed
[EMAIL PROTECTED]



- Original Message 
From: Ryan Coleman <[EMAIL PROTECTED]>
To: Mukarram Syed <[EMAIL PROTECTED]>
Cc: freebsd-questions@freebsd.org
Sent: Sunday, June 29, 2008 10:28:04 AM
Subject: Re: FreeBSD single user?

Mukarram Syed wrote:
> Hi BSD Gurus.
>
> I am in dire need of your help today.
>
> I purchased an iomega NAS device which runs on FreeBSD.  I happened to 
> incorrectly change root password and now I am stuck.  I am not a FreeBSD 
> expert to figure this out.
>
> This device does not have a USB connecter nor a cdrom drive. It only has 
> Keyboard, Video and RS232 connector along with a couple of RJ45's for network 
> access.
> Having said that,  I have tried the following after doing a lot of 
> researching on the internet:
> I could get to to this stage, bootloader stage 2:
>
>  
>>> FreeBSD/i386 BOOT
>>>  
>  Default: 0:ad(0,a)/boot/loader
>  boot:
>
> At the boot: prompt I am trying to get into single user mode by typing 
> boot: /kernel -s
>
> It does go into single user mode, I think and I get the following display:
>
> "Enter full pathname of shell or RETURN for /bin/sh:"
>
> At this point when I type RETURN or /bin/sh nothing gets echoed to the screen.
> I think if I could get to proceed from this point, I could be saved.
>
> However when I type ? at the boot: prompt, I get to see a number of options:
>
> . .. dev kernel etc cdrom proc dist bin boot mnt modules root sbin tmp user 
> sys .cshrc
> .profile COPYRIGHT model compat u3 lost+found markversion home cgi-bin share1 
> share2
> share3 share4 ... share 16
>
> I none of above options work at the boot: prompt.  The only things that work 
> are 
> /kernel and /boot/loader.
>
> Any any ideas to get me to type something here at the "single user prompt" 
> would be helpful or any other suggestions you might have...like be able to 
> use the RS232 to
> connect an external CDRom drive or something so I could boot off the cd in 
> rescue mode or any other ideas.
>
> iomega is not giving me any support since this product is out of warranty and 
> they don't support it any more...not even for a price.
>
> Appreciate any of the FreeBSD experts helping me out here.
>
>  Mukarram Syed
> [EMAIL PROTECTED]
>  
Mukarram,

What does it say in the 2-3 lines above the shell path request? That's 
important information to help you get past it.

Sometimes pressing control-D will skip you past it (after you press enter).

Please advise,
Ryan



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


Re: Change in /etc/rc.conf:ipv6_defaultrouter

2008-06-29 Thread Ashish Shukla आशीष शुक्ल
,--- Kirk Strauser writes:
| Ashish Shukla  ? wrote:

|| | ipv6_ifconfig_fxp0="2001:470:a80a:1:2d0:b7ff:fe0e:3a4a prefixlen
|| | 64"
|| | ipv6_defaultrouter="fe80::213:10ff:fe79:137a"

|| I don't know how is above ipv6_defaultrouter setting is working, since
|| above is a link-local address, and you've not specified any explicit
|| link in above fe80::/10 address. BtW, did you recently changed your
|| configuration ? Is this same setting working since you started using
|| IPv6 on your FreeBSD host, hmm..?

| That configuration has been working, unchanged, for a few months
| now. Until recently it used the fxp0 interface, as evidenced by the
| fact that it actually worked.  :-)

|| Are you trying to ping6 a link-local address, without any mention of
|| interface, hmm...?

| Again, it worked.  If it hadn't, I would have kept messing with it
| until it did.   I host web and mail on that host's IPv6 address and
| was very keen in getting it up and running.

I think how without specifying zone index[1] in link-local address
worked, it is probably due to availability of only single inet6
interface except lo0.

Just wanted to confirm, is following command worked ? if possible paste
the output:

% ping6 fe80::213:10ff:fe79:137a

Reference:
[1] - http://en.wikipedia.org/wiki/IPv6#Zone_indices

Regards
-- 
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpA3KJWYxyN6.pgp
Description: PGP signature


second pre-emptive raid: stripes and the os

2008-06-29 Thread prad
based on the excellent ideas from the first pre-emptive raid thread we
have been considering raid1+0 or raid5 for our server, but we need to
gain a better understanding of striping.

the mirror concept was easy particularly through dru's Using Software
RAID-1 with FreeBSD:
http://www.onlamp.com/pub/a/bsd/2005/11/10/FreeBSD_Basics.html?page=1

the stripe idea is creating some issues.

having gone through both geom and vinum sections of the handbook, we
are confused as to just how stripes fit in with the os. what we have
found on the web sofar is this article on the freebsdwiki:
http://www.freebsdwiki.net/index.php/RAID0,_Software,_How_to_setup

both this article and the geom docs require an installed os, from which
you create the striped device.

so if we had 4 drives da0-3, we could install the os on da0 and then
create a stripe /dev/stripe/st0 with da1-3. however, there would be no
os on there (and most of da0 would be empty). (i suppose you can dd
stuff onto st0, but that seems a bit strange.)

so in a straight striped situation with 4 physical drives, how can you
get the os on there? where does it reside? is it supposed to be striped
across the 4 drives?

or is this the wrong way to look at it. should we be directing our
thoughts to striping across partitions that we create over various
drives after the os has been installed on a small part of the first
drive?

is raid only for data or does the os get raided too?

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: debug.cpufreq.lowest doesn't work?

2008-06-29 Thread Patrick Lamaizière
Le Sun, 29 Jun 2008 12:42:33 +0100,
Kemian Dang <[EMAIL PROTECTED]> a écrit :

> Hi all,

Hi,

> I set "sysctl debug.cpufreq.lowest=800" but sysctl -a still told me
> that the CPU freq is at 300, though it will jump high if I am doing
> some heavy work.
> This reduce of performance makes me even have trouble on browsing
> website. Did I miss something important?

Just to be sure... This sysctl prevents cpufreq to decrease the
frequency but if the frequency is lower than the sysctl, the
frequency is not increased.

Regards.
___
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 ZFS script

2008-06-29 Thread Vince Hoffman

Diego F. Arias R. wrote:

Hi:

Im testing the new ZFS feature on freebsd. On the page i got a script
to monitor kernel memory but the script dont works.
---
#!/bin/sh -

TEXT=kldstat | tr a-f A-F | awk 'BEGIN {print "ibase=16"}; NR > 1
{print $4}' | bc | awk '{a+=$1}; END {print a}'
DATA=vmstat -m | sed 's/K//' | awk '{a+=$3}; END {print a*1024}'
TOTAL=echo $DATA $TEXT | awk '{print $1+$2}'

echo TEXT=$TEXT, echo $TEXT | awk '{print $1/1048576 " MB"}'
echo DATA=$DATA, echo $DATA | awk '{print $1/1048576 " MB"}'
echo TOTAL=$TOTAL, echo $TOTAL | awk '{print $1/1048576 " MB"}'
---

link:

http://wiki.freebsd.org/ZFSTuningGuide



the error i got is

freebsd# ./kernmem.sh

-m: not found




try
--
#!/bin/sh -

TEXT=$(kldstat | tr a-f A-F | \
awk 'BEGIN {print "ibase=16"}; NR > 1 {print $4}'\
| bc | awk '{a+=$1}; END {print a}')
DATA=$(vmstat -m | sed 's/K//' | awk '{a+=$3}; END {print a*1024}')
TOTAL=$(echo "$DATA $TEXT" | awk '{print $1+$2}')

echo "TEXT=$TEXT, $(echo $TEXT | awk '{print $1/1048576 " MB"}')"
echo "DATA=$DATA, $(echo $DATA | awk '{print $1/1048576 " MB"}')"
echo "TOTAL=$TOTAL, $(echo $TOTAL | awk '{print $1/1048576 " MB"}')"
--
Looks like the wiki stripped some formatting.


Vince


Thanks.


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


Re: XScreensaver issue

2008-06-29 Thread Matthew Donovan
> Hi,
>
> I'm getting since my last update an error message in xscreensaver:
> glslideshow: couldn't create GL context
>
> Actually I'm not able to use any OpenGL screensaver anymore. OpenGL is
> running
> fine, I'm using composite options and gears program run at 400 FPS. "Load
> GLX"
> is activated in xorg.conf, that's why I don't understand.
>
snipped the email since it was a bit long but with the nvidia binary
driver you do not have to load glx since the nvidia binary has it's own
glx setup. which you seem to be using nvidia binary driver.


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


Re: Firefox 3

2008-06-29 Thread Anders Trobäck
On Sun, 29 Jun 2008 15:06:45 -0400
"Tsu-Fan Cheng" <[EMAIL PROTECTED]> wrote:

> the gui looks just like v2, right?
> 
> TFC
> 
> On Sun, Jun 29, 2008 at 1:18 PM, Chad Perrin <[EMAIL PROTECTED]>
> wrote:
> > On Sat, Jun 28, 2008 at 08:34:01AM +0200, herbs wrote:
> >> Yes, you invoke #firefox (the V2.x) or #firefox-devel (for the new
> >> one). Dont remember with the bookmarks and plugins though, you
> >> maybe have to import/reinstall these.
> >
> > Thanks for confirmation.
> >
> > --
> > Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
> > Niccolo Machiavelli: "It is a common failing of man not to take
> > account of tempests during fair weather."
> >
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"

Well, almost the same:-)

-- 


Windows: "Where do you want to go today?"
Linux: "Where do you want to go tomorrow?"
FreeBSD: "Are you guys coming, or what?"

Anders Trobäck
http://www.troback.com/
-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Firefox 3

2008-06-29 Thread Tsu-Fan Cheng
the gui looks just like v2, right?

TFC

On Sun, Jun 29, 2008 at 1:18 PM, Chad Perrin <[EMAIL PROTECTED]> wrote:
> On Sat, Jun 28, 2008 at 08:34:01AM +0200, herbs wrote:
>> Yes, you invoke #firefox (the V2.x) or #firefox-devel (for the new one).
>> Dont remember with the bookmarks and plugins though, you maybe have to
>> import/reinstall these.
>
> Thanks for confirmation.
>
> --
> Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
> Niccolo Machiavelli: "It is a common failing of man not to take account
> of tempests during fair weather."
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Cop[ying files from WIndows -> FreeBSD using Cruizer

2008-06-29 Thread Grant Peel

Thanks David,

In my case I was getting a 'deprication' warning so I changed the command 
to:


mount -t msdosfs /dev/da1s1 /usbstick

(I already have a scsi device (SAS) connected).

Thanks again,

-Grant


- Original Message - 
From: "David Gurvich" <[EMAIL PROTECTED]>

To: 
Cc: "Grant Peel" <[EMAIL PROTECTED]>
Sent: Sunday, June 29, 2008 2:14 PM
Subject: Re: Cop[ying files from WIndows -> FreeBSD using Cruizer



You could transfer files in multiple ways other than copying files to a
usb stick and mounting it in freebsd.  To mount a fat32 volume in
freebsd use 'mount -t msdos /path/to/device /mountpoint' and simply
copy the files from the mountpoint.

Alternatives are to use network file sharing, ssh file transfer, etc.



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


Re: Cop[ying files from WIndows -> FreeBSD using Cruizer

2008-06-29 Thread David Gurvich
You could transfer files in multiple ways other than copying files to a
usb stick and mounting it in freebsd.  To mount a fat32 volume in
freebsd use 'mount -t msdos /path/to/device /mountpoint' and simply
copy the files from the mountpoint.

Alternatives are to use network file sharing, ssh file transfer, etc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Cop[ying files from WIndows -> FreeBSD using Cruizer

2008-06-29 Thread Grant Peel

Hi all,

I have a USB sandisk cruiser 2 gig memory stick that I would like to use to 
copy some files from a Windows machine to a Free BSD (6.3).


I findiing the handbook a little confusing on this topic, and was wondering 
if anyone would be willing outline a procedure for this.


-G 


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


XScreensaver issue

2008-06-29 Thread Sébastien Morand

Hi,

I'm getting since my last update an error message in xscreensaver:
glslideshow: couldn't create GL context

Actually I'm not able to use any OpenGL screensaver anymore. OpenGL is running 
fine, I'm using composite options and gears program run at 400 FPS. "Load GLX" 
is activated in xorg.conf, that's why I don't understand.


There is no error message in Xorg.0.org:

X.Org X Server 1.4.2
Release Date: 11 June 2008
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 7.0-STABLE i386
Current Operating System: FreeBSD mellba.mayaseb 7.0-STABLE FreeBSD 7.0-STABLE 
#1: Sun Jun  1 01:12:26 GMT 2008 
[EMAIL PROTECTED]:/mnt/programs/obj/mnt/programs/src/sys/GENERIC i386

Build Date: 21 June 2008  04:04:56PM

Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun 29 17:49:42 2008
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor "SyncMaster"
(**) |   |-->Device "NVIDIA Corporation NVIDIA Default Card"
(**) |-->Input Device "Generic Keyboard"
(**) |-->Input Device "Configured Mouse"
(==) Automatically adding devices
(==) Automatically enabling devices
(WW) The directory "/usr/local/lib/X11/fonts/freefont" does not exist.
Entry deleted from font path.
(WW) The directory "/usr/local/lib/X11/fonts/URW" does not exist.
Entry deleted from font path.
(==) Including the default font path 
/usr/local/lib/X11/fonts/misc/,/usr/local/lib/X11/fonts/TTF/,/usr/local/lib/X11/fonts/OTF,/usr/local/lib/X11/fonts/Type1/,/usr/local/lib/X11/fonts/100dpi/,/usr/local/lib/X11/fonts/75dpi/.

(**) FontPath set to:
/usr/local/lib/X11/fonts/100dpi,
/usr/local/lib/X11/fonts/100dpi:unscaled,
/usr/local/lib/X11/fonts/75dpi,
/usr/local/lib/X11/fonts/75dpi:unscaled,
/usr/local/lib/X11/fonts/util,
/usr/local/lib/X11/fonts/misc,
/usr/local/lib/X11/fonts/local,
/usr/local/lib/X11/fonts/encodings,
/usr/local/lib/X11/fonts/cyrillic,
/usr/local/lib/X11/fonts/bitstream-vera,
/usr/local/lib/X11/fonts/Type1,
/usr/local/lib/X11/fonts/TTF,
/usr/local/lib/X11/fonts/OTF,
/opt/lib/X11/fonts/defoma,
/usr/local/lib/X11/fonts/misc/,
/usr/local/lib/X11/fonts/TTF/,
/usr/local/lib/X11/fonts/OTF,
/usr/local/lib/X11/fonts/Type1/,
/usr/local/lib/X11/fonts/100dpi/,
/usr/local/lib/X11/fonts/75dpi/
(==) RgbPath set to "/usr/local/share/X11/rgb"
(==) ModulePath set to "/usr/local/lib/xorg/modules"
(II) Loader magic: 0x81ced80
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.3
X.Org Video Driver: 2.0
X.Org XInput driver : 2.0
X.Org Server Extension : 0.3
X.Org Font Renderer : 0.5
(II) Loader running on freebsd
(II) LoadModule: "pcidata"
(II) Loading /usr/local/lib/xorg/modules//libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 1.4.2, module version = 1.0.0
ABI class: X.Org Video Driver, version 2.0
(--) Using syscons driver with X support (version 2.0)
(--) using VT number 9

(II) PCI: Probing config type using method 1
(II) PCI: Config type is 1
(II) PCI: stages = 0x03, oldVal1 = 0x80003008, mode1Res1 = 0x8000
(WW) OS did not count PCI devices, guessing wildly
(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:00:0: chip 10de,005e card 1297,5036 rev a3 class 05,80,00 hdr 00
(II) PCI: 00:01:0: chip 10de,0050 card 1297,5036 rev a3 class 06,01,00 hdr 80
(II) PCI: 00:01:1: chip 10de,0052 card 1297,5036 rev a2 class 0c,05,00 hdr 80
(II) PCI: 00:02:0: chip 10de,005a card 1297,5036 rev a2 class 0c,03,10 hdr 80
(II) PCI: 00:02:1: chip 10de,005b card 1297,5036 rev a3 class 0c,03,20 hdr 80
(II) PCI: 00:06:0: chip 10de,0053 card 1297,5036 rev f2 class 01,01,8a hdr 00
(II) PCI: 00:07:0: chip 10de,0054 card 1297,5036 rev f3 class 01,01,85 hdr 00
(II) PCI: 00:08:0: chip 10de,0055 card 1297,5036 rev f3 class 01,01,85 hdr 00
(II) PCI: 00:09:0: chip 10de,005c card , rev a2 class 06,04,01 hdr 01
(II) PCI: 00:0a:0: chip 10de,0057 card 1297,5036 rev a3 class 06,80,00 hdr 00
(II) PCI: 00:0b:0: chip 10de,005d card , rev a3 class 06,04,00 hdr 01
(II) PCI: 00:0c:0: chip 10de,005d card , rev a3 class 06,04,00 hdr 01
(II) PCI: 00:0d:0: chip 10de,005d card , rev a3 class 06,04,00 hdr 01
(II) PCI: 00:0e:0: chip 10de,005d card , rev a3 class 06,04,00 hdr 01
(II) PCI: 00:18:0: chip 1022,1100 card , rev 00 class 06,00,00 hdr 80
(II) PCI: 00:18:1: chip 1022,1101 card , rev 00 class 06,00,00 hdr 80
(II) PCI: 00:18:2: chip 1022,1102 card , rev 00 cl

Re: FreeBSD single user?

2008-06-29 Thread Ryan Coleman

Mukarram Syed wrote:

Hi BSD Gurus.

I am in dire need of your help today.

I purchased an iomega NAS device which runs on FreeBSD.  I happened to 
incorrectly change root password and now I am stuck.  I am not a FreeBSD expert 
to figure this out.

This device does not have a USB connecter nor a cdrom drive. It only has 
Keyboard, Video and RS232 connector along with a couple of RJ45's for network 
access.
Having said that,  I have tried the following after doing a lot of researching 
on the internet:
I could get to to this stage, bootloader stage 2:

  

FreeBSD/i386 BOOT
  

 Default: 0:ad(0,a)/boot/loader
 boot:

At the boot: prompt I am trying to get into single user mode by typing 
boot: /kernel -s


It does go into single user mode, I think and I get the following display:

"Enter full pathname of shell or RETURN for /bin/sh:"

At this point when I type RETURN or /bin/sh nothing gets echoed to the screen.
I think if I could get to proceed from this point, I could be saved.

However when I type ? at the boot: prompt, I get to see a number of options:

. .. dev kernel etc cdrom proc dist bin boot mnt modules root sbin tmp user sys 
.cshrc
.profile COPYRIGHT model compat u3 lost+found markversion home cgi-bin share1 
share2
share3 share4 ... share 16

I none of above options work at the boot: prompt.  The only things that work are 
/kernel and /boot/loader.


Any any ideas to get me to type something here at the "single user prompt" 
would be helpful or any other suggestions you might have...like be able to use the RS232 to

connect an external CDRom drive or something so I could boot off the cd in 
rescue mode or any other ideas.

iomega is not giving me any support since this product is out of warranty and 
they don't support it any more...not even for a price.

Appreciate any of the FreeBSD experts helping me out here.

 Mukarram Syed
[EMAIL PROTECTED]
  

Mukarram,

What does it say in the 2-3 lines above the shell path request? That's 
important information to help you get past it.


Sometimes pressing control-D will skip you past it (after you press enter).

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


PPS and thunderbird

2008-06-29 Thread Sébastien Morand

Hi,

I'm using thunderbird to read my mail and I'm not able to open directly the 
attachments ".pps". Actually I get a lot of file like this for my work, and it's 
quite boring to have to save them in a directory and then read them with openoffice.


When I try to read them zith tunderbird, the mime type is not recognized, this 
is an "unknown" type and the application proposed is mplayer (don't ask why...).


Then i could choose the right application and open it, but the button remember 
the choice is not available, so I have to choose manually the program 
evertytime, this is also quite boring.


So my questions are:
Why pps file are not recognized as powerpoint file?
Why am I not able to keep remember the choice to open .pps file with openoffice?

Thanks for any help,

Sebastien


signature.asc
Description: OpenPGP digital signature


Re: Firefox 3

2008-06-29 Thread Chad Perrin
On Sat, Jun 28, 2008 at 08:34:01AM +0200, herbs wrote:
> Yes, you invoke #firefox (the V2.x) or #firefox-devel (for the new one).
> Dont remember with the bookmarks and plugins though, you maybe have to
> import/reinstall these.

Thanks for confirmation.

-- 
Chad Perrin [ content licensed PDL: http://pdl.apotheon.org ]
Niccolo Machiavelli: "It is a common failing of man not to take account
of tempests during fair weather."


pgpKT6TZgq6SK.pgp
Description: PGP signature


Re: Off Topic: Sunbird calendar server?

2008-06-29 Thread Andrew Berry

On 28-Jun-08, at 12:01 AM, Jack Barnett wrote:

She is a fan of Google Calendars (which I admit works well), but I'm  
a fan of Sunbird (since it's local and don't need internets for it  
to work).
I could probably "convert" her to Sunbird if I found a good way to  
share out our calendars.


As long as you just want to see the other persons calendar, Google can  
export a calendar as an iCal subscription, or as an XML feed.  
gcaldaemon might also be something to look into:


http://gcaldaemon.sourceforge.net/index.html

The problem that I've had is that I want a web front end which can  
talk to a CalDav server. Zimbra has it, but it's a very heavy install  
and only supports Linux :(


--Andrew

Re: Change in /etc/rc.conf:ipv6_defaultrouter

2008-06-29 Thread Kirk Strauser

Ashish Shukla  ? wrote:


| ipv6_ifconfig_fxp0="2001:470:a80a:1:2d0:b7ff:fe0e:3a4a prefixlen
| 64"
| ipv6_defaultrouter="fe80::213:10ff:fe79:137a"



I don't know how is above ipv6_defaultrouter setting is working, since
above is a link-local address, and you've not specified any explicit
link in above fe80::/10 address. BtW, did you recently changed your
configuration ? Is this same setting working since you started using
IPv6 on your FreeBSD host, hmm..?


That configuration has been working, unchanged, for a few months now. 
Until recently it used the fxp0 interface, as evidenced by the fact that 
it actually worked.  :-)



Are you trying to ping6 a link-local address, without any mention of
interface, hmm...?


Again, it worked.  If it hadn't, I would have kept messing with it until 
it did.   I host web and mail on that host's IPv6 address and was very 
keen in getting it up and running.



I think above solution is better.


Perhaps.  I'm content with anything that keeps my connectivity up 
between reboots.

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


FreeBSD single user?

2008-06-29 Thread Mukarram Syed
Hi BSD Gurus.

I am in dire need of your help today.

I purchased an iomega NAS device which runs on FreeBSD.  I happened to 
incorrectly change root password and now I am stuck.  I am not a FreeBSD expert 
to figure this out.

This device does not have a USB connecter nor a cdrom drive. It only has 
Keyboard, Video and RS232 connector along with a couple of RJ45's for network 
access.
Having said that,  I have tried the following after doing a lot of researching 
on the internet:
I could get to to this stage, bootloader stage 2:

>> FreeBSD/i386 BOOT
 Default: 0:ad(0,a)/boot/loader
 boot:

At the boot: prompt I am trying to get into single user mode by typing 
boot: /kernel -s

It does go into single user mode, I think and I get the following display:

"Enter full pathname of shell or RETURN for /bin/sh:"

At this point when I type RETURN or /bin/sh nothing gets echoed to the screen.
I think if I could get to proceed from this point, I could be saved.

However when I type ? at the boot: prompt, I get to see a number of options:

. .. dev kernel etc cdrom proc dist bin boot mnt modules root sbin tmp user sys 
.cshrc
.profile COPYRIGHT model compat u3 lost+found markversion home cgi-bin share1 
share2
share3 share4 ... share 16

I none of above options work at the boot: prompt.  The only things that work 
are 
/kernel and /boot/loader.

Any any ideas to get me to type something here at the "single user prompt" 
would be helpful or any other suggestions you might have...like be able to use 
the RS232 to
connect an external CDRom drive or something so I could boot off the cd in 
rescue mode or any other ideas.

iomega is not giving me any support since this product is out of warranty and 
they don't support it any more...not even for a price.

Appreciate any of the FreeBSD experts helping me out here.

 Mukarram Syed
[EMAIL PROTECTED]



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


E220 Huawei on freebsd 7.0

2008-06-29 Thread nazir
Hi,

I'm already success using E220 HUAWEI to get data connection but still
failed to send sms using smstool. Please help..TQ

ucom0:  on uhub2
Timecounters tick every 1.000 msec
hptrr: no controller detected.

my smsd.conf
# Global configuration
devices = huawei
logfile = /var/log/smsd.log
#infofile = /var/run/smstools/smsd.working
#pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
# You can specify here an external program that is started whenever an
alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value
between 2 and 5.
# alarmlevel = 4
#eventhandler =
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
autosplit = 3

# Modem configuration
[huawei]
#init =
device = /dev/cuad0
incoming = no
baudrate = 115200
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Postfix logging some OTP related permission denied messages

2008-06-29 Thread Ashish Shukla आशीष शुक्ल
,--- Michael Powell writes:
| आशीष शुक्ल Ashish Shukla wrote:

|| Hi,
|| 
|| I'm running 7.0-RELEASE-p2 (amd64). I'm running Postfix 2.5.1_2,1 mail
|| server instead of the default Sendmail which ships with base distribution.
|| 
|| My mail server is working fine with no issues except that I noticed that
|| some messages in /var/log/messages:
|| 
| 8>8
|| Jun 29 03:12:45 chateau postfix/smtpd[1159]: OTP unavailable because can't
|| read/write key database /etc/opiekeys: Permission denied Jun 29 03:18:22
|| chateau postfix/smtpd[1535]: OTP unavailable because can't read/write key
|| database /etc/opiekeys: Permission denied Jun 29 03:23:55 chateau
|| postfix/smtpd[1873]: OTP unavailable because can't read/write key database
|| /etc/opiekeys: Permission denied Jun 29 04:18:25 chateau
|| postfix/smtpd[78118]: OTP unavailable because can't read/write key
|| database /etc/opiekeys: Permission denied Jun 29 16:07:11 chateau
|| postfix/smtpd[1712]: OTP unavailable because can't read/write key database
|| /etc/opiekeys: Permission denied Jun 29 16:07:17 chateau
|| postfix/smtpd[1712]: OTP unavailable because can't read/write key database
|| /etc/opiekeys: Permission denied Jun 29 16:13:30 chateau
|| postfix/smtpd[2125]: OTP unavailable because can't read/write key database
|| /etc/opiekeys: Permission denied 8<8<
|| 
|| I've not done anything explicitly to turn on support for One-time
|| passwords in my system.
|| 
|| Any ideas, reasons behind these messages ?
|| 
|| TIA

| Greetings:

| I've seen some suggestions which involve making changes for allowing the
| access to the files, but my thoughts are if you are not making use of this
| feature this would be tantamount to a small form of security violation.

| The shortcut is probably just to give the group 'mail' rw permissions to
| opiekeys and don't overly muck with a config that works correctly.

| If when you installed Postfix it installed cyrus-sasl as a dependency you
| might try going into /usr/ports/security/cyrus-sasl2 and doing make config
| and clearing the checkbox option near the bottom "OTP Enable OTP auth",
| then make deinstall, and make reinstall.

Reinstall cyrus-sasl2 without OTP support worked, and now no more OTP
related messages.

| -Mike

Thanks :)
-- 
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpByMxNcNFFY.pgp
Description: PGP signature


E220 Huawei on freebsd 7.0

2008-06-29 Thread nazir
Hi,

I'm already success using E220 HUAWEI to data connection but still
failed to send sms using smstool. Please help..TQ

ucom0:  on uhub2
Timecounters tick every 1.000 msec
hptrr: no controller detected.

my smsd.conf
# Global configuration
devices = huawei
logfile = /var/log/smsd.log
#infofile = /var/run/smstools/smsd.working
#pidfile = /var/run/smstools/smsd.pid
outgoing = /var/spool/sms/outgoing
checked = /var/spool/sms/checked
failed = /var/spool/sms/failed
incoming = /var/spool/sms/incoming
sent = /var/spool/sms/sent
stats = /var/log/smstools/smsd_stats
# You can specify here an external program that is started whenever an
alarm occurs.
# alarmhandler = /path/to/an/alarmhandler/script
# Specifies what levels start an alarmhandler. You can use value
between 2 and 5.
# alarmlevel = 4
#eventhandler =
#blacklist = /etc/smstools/blacklist
#whitelist = /etc/smstools/whitelist
autosplit = 3

# Modem configuration
[huawei]
#init =
device = /dev/cuad0
incoming = no
#pin = 1984
baudrate = 115200
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Change in /etc/rc.conf:ipv6_defaultrouter

2008-06-29 Thread Ashish Shukla आशीष शुक्ल
,--- Kirk Strauser writes:
| I've been using IPv6 on my FreeBSD-7 host for quite some time.  My
| IPv6 router is a different machine, so the FreeBSD server is just a
| regular host on the network.

| This morning I discovered that I couldn't pass packets to hosts
| outside my LAN from FreeBSD, although an OS X host on the same LAN had
| no problems pinging www.kame.net.

| I had this in my /etc/rc.conf:

| ipv6_ifconfig_fxp0="2001:470:a80a:1:2d0:b7ff:fe0e:3a4a prefixlen
| 64"
| ipv6_defaultrouter="fe80::213:10ff:fe79:137a"

I don't know how is above ipv6_defaultrouter setting is working, since
above is a link-local address, and you've not specified any explicit
link in above fe80::/10 address. BtW, did you recently changed your
configuration ? Is this same setting working since you started using
IPv6 on your FreeBSD host, hmm..?

| Whenever I'd try to ping6 my local router, I'd get:

| ping6: UDP connect: Network is unreachable

Are you trying to ping6 a link-local address, without any mention of
interface, hmm...?

| Also, the routing table seemed a bit screwy and was sending everything
| to lo0:

| $ netstat -nr -f inet6
| [...]
| default   fe80::213:10ff:fe79:137a UGS
| lo0

| I found two workarounds:

| ipv6_defaultrouter="2001:470:a80a:1::1"

I think above solution is better.

-- 
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpr1InEzQQbE.pgp
Description: PGP signature


Re: can't access cdrom as regular user

2008-06-29 Thread chip

Rudy wrote:


So as root I set the permissions to 777 on acd0, then after a reboot 
the permissions were reset back to what they were previously. What do 
I have to do to get access to my cd drive on my regular account?



Edit your /etc/devfs.conf file...

Add this line:
 permacd00666


Simulate the boot-up of devfs:
 /etc/rc.d/devfs restart

(easier than rebooting)

- Rudy
Thanks Rudy, that fixed that problem, now though another has popped up - 
after listening to a cd, the system doesn't release the drive so the cd 
won't eject, I have to reboot to get the cd out.

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


Re: Postfix logging some OTP related permission denied messages

2008-06-29 Thread Michael Powell
आशीष शुक्ल Ashish Shukla wrote:

> Hi,
> 
> I'm running 7.0-RELEASE-p2 (amd64). I'm running Postfix 2.5.1_2,1 mail
> server instead of the default Sendmail which ships with base distribution.
> 
> My mail server is working fine with no issues except that I noticed that
> some messages in /var/log/messages:
> 
> >8>8
> Jun 29 03:12:45 chateau postfix/smtpd[1159]: OTP unavailable because can't
> read/write key database /etc/opiekeys: Permission denied Jun 29 03:18:22
> chateau postfix/smtpd[1535]: OTP unavailable because can't read/write key
> database /etc/opiekeys: Permission denied Jun 29 03:23:55 chateau
> postfix/smtpd[1873]: OTP unavailable because can't read/write key database
> /etc/opiekeys: Permission denied Jun 29 04:18:25 chateau
> postfix/smtpd[78118]: OTP unavailable because can't read/write key
> database /etc/opiekeys: Permission denied Jun 29 16:07:11 chateau
> postfix/smtpd[1712]: OTP unavailable because can't read/write key database
> /etc/opiekeys: Permission denied Jun 29 16:07:17 chateau
> postfix/smtpd[1712]: OTP unavailable because can't read/write key database
> /etc/opiekeys: Permission denied Jun 29 16:13:30 chateau
> postfix/smtpd[2125]: OTP unavailable because can't read/write key database
> /etc/opiekeys: Permission denied 8<8<
> 
> I've not done anything explicitly to turn on support for One-time
> passwords in my system.
> 
> Any ideas, reasons behind these messages ?
> 
> TIA

Greetings:

I've seen some suggestions which involve making changes for allowing the
access to the files, but my thoughts are if you are not making use of this
feature this would be tantamount to a small form of security violation.

The shortcut is probably just to give the group 'mail' rw permissions to
opiekeys and don't overly muck with a config that works correctly.

If when you installed Postfix it installed cyrus-sasl as a dependency you
might try going into /usr/ports/security/cyrus-sasl2 and doing make config
and clearing the checkbox option near the bottom "OTP Enable OTP auth",
then make deinstall, and make reinstall.

However, my Postfix is only an extremely basic install and I've never seen
these messages. A snippet from my Postfix main.cf:

# sasl config
broken_sasl_auth_clients = yes
smtpd_sasl_local_domain =

smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/usr/local/etc/postfix/sasl_passwd
smtp_sasl_security_options =

#smtpd_sender_restrictions = permit_sasl_authenticated, permit_mynetworks
#smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks

and wrt to sasl in /etc/rc.conf I have:

saslauthd_enable="YES"
saslauthd_flags="-a sasldb"

I've also noticed the following in my /etc/group file, but I believe it has
no bearing on this problem.

mail:*:6:postfix

Since I didn't build Cyrus-SASL without OTP I suspect it is turned on or
somehow being activated in your Postfix config. The docs also say there is
supposed to be an SASL config file somewhere in /usr/local/lib/sasl2, but
I've never seen one.

 

-Mike


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


Re: null bytes after ANSI sequences in color 'ls' output

2008-06-29 Thread Thomas Dickey
On Sat, Jun 28, 2008 at 10:34:06PM -0700, Mike Brown wrote:
> OK, so the null bytes are correct for vt100 and should've always been there, 
> and the fact that they've suddenly showed up in FreeBSD 6.3 is basically a 
> feature.
> 
> Setting NCURSES_NO_PADDING has no effect, so 'ls' apparently does just use 
> termcap features.

yes - in responding, I saw that while I'd implemented NCURSES_NO_PADDING
for just the curses library, it could be made to work with termcap.
But that's not addressing your immediate question, which Dan did.
 
-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgpV9uY2WBo7h.pgp
Description: PGP signature


Re: Problem With ZFS script

2008-06-29 Thread Kris Kennaway

Diego F. Arias R. wrote:

Hi:

Im testing the new ZFS feature on freebsd. On the page i got a script
to monitor kernel memory but the script dont works.
---
#!/bin/sh -

TEXT=kldstat | tr a-f A-F | awk 'BEGIN {print "ibase=16"}; NR > 1
{print $4}' | bc | awk '{a+=$1}; END {print a}'
DATA=vmstat -m | sed 's/K//' | awk '{a+=$3}; END {print a*1024}'
TOTAL=echo $DATA $TEXT | awk '{print $1+$2}'

echo TEXT=$TEXT, echo $TEXT | awk '{print $1/1048576 " MB"}'
echo DATA=$DATA, echo $DATA | awk '{print $1/1048576 " MB"}'
echo TOTAL=$TOTAL, echo $TOTAL | awk '{print $1/1048576 " MB"}'
---

link:

http://wiki.freebsd.org/ZFSTuningGuide



the error i got is

freebsd# ./kernmem.sh

-m: not found


The script is nonsense, it's not valid sh syntax.  I guess it got badly 
mangled by the wiki software.


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


Problem With ZFS script

2008-06-29 Thread Diego F. Arias R.
Hi:

Im testing the new ZFS feature on freebsd. On the page i got a script
to monitor kernel memory but the script dont works.
---
#!/bin/sh -

TEXT=kldstat | tr a-f A-F | awk 'BEGIN {print "ibase=16"}; NR > 1
{print $4}' | bc | awk '{a+=$1}; END {print a}'
DATA=vmstat -m | sed 's/K//' | awk '{a+=$3}; END {print a*1024}'
TOTAL=echo $DATA $TEXT | awk '{print $1+$2}'

echo TEXT=$TEXT, echo $TEXT | awk '{print $1/1048576 " MB"}'
echo DATA=$DATA, echo $DATA | awk '{print $1/1048576 " MB"}'
echo TOTAL=$TOTAL, echo $TOTAL | awk '{print $1/1048576 " MB"}'
---

link:

http://wiki.freebsd.org/ZFSTuningGuide



the error i got is

freebsd# ./kernmem.sh

-m: not found



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


debug.cpufreq.lowest doesn't work?

2008-06-29 Thread Kemian Dang

Hi all,

I set "sysctl debug.cpufreq.lowest=800" but sysctl -a still told me that 
the CPU freq is at 300, though it will jump high if I am doing some 
heavy work.

This reduce of performance makes me even have trouble on browsing website.
Did I miss something important?

12:29pm kemian ~> sudo sysctl debug.cpufreq.lowest=800
debug.cpufreq.lowest: 0 -> 800

12:32pm kemian ~> sysctl -a | grep freq |grep cpu
debug.cpufreq.verbose: 0
debug.cpufreq.lowest: 800
dev.cpu.0.freq: 300
dev.cpu.0.freq_levels: 1800/35000 1600/28347 1400/24803 1200/21260 
1000/17716 800/8227

dev.cpufreq.0.%driver: cpufreq
dev.cpufreq.0.%parent: cpu0
dev.cpufreq.1.%driver: cpufreq
dev.cpufreq.1.%parent: cpu1


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


Postfix logging some OTP related permission denied messages

2008-06-29 Thread आशीष शुक्ल Ashish Shukla
Hi,

I'm running 7.0-RELEASE-p2 (amd64). I'm running Postfix 2.5.1_2,1 mail server
instead of the default Sendmail which ships with base distribution. 

My mail server is working fine with no issues except that I noticed that some
messages in /var/log/messages:

>8>8
Jun 29 03:12:45 chateau postfix/smtpd[1159]: OTP unavailable because can't 
read/write key database /etc/opiekeys: Permission denied
Jun 29 03:18:22 chateau postfix/smtpd[1535]: OTP unavailable because can't 
read/write key database /etc/opiekeys: Permission denied
Jun 29 03:23:55 chateau postfix/smtpd[1873]: OTP unavailable because can't 
read/write key database /etc/opiekeys: Permission denied
Jun 29 04:18:25 chateau postfix/smtpd[78118]: OTP unavailable because can't 
read/write key database /etc/opiekeys: Permission denied
Jun 29 16:07:11 chateau postfix/smtpd[1712]: OTP unavailable because can't 
read/write key database /etc/opiekeys: Permission denied
Jun 29 16:07:17 chateau postfix/smtpd[1712]: OTP unavailable because can't 
read/write key database /etc/opiekeys: Permission denied
Jun 29 16:13:30 chateau postfix/smtpd[2125]: OTP unavailable because can't 
read/write key database /etc/opiekeys: Permission denied
8<8<

I've not done anything explicitly to turn on support for One-time passwords
in my system.

Any ideas, reasons behind these messages ?

TIA
-- 
·-- ·-  ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --


pgpHQ2eMHK0cN.pgp
Description: PGP signature


Re: problem when building dovecot-sieve with the new dovecot port

2008-06-29 Thread Matthias Fechner

Hi Nicolas,

Nicolas Letellier wrote:
I'm upgrading my dovecot from 1.0.14 to 1.1. 
I pkg_deinstall my dovecot and my dovecot-sieve.


you must use a new version of dovecot-sieve too, see that bug report:
http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/125064

After I manually patched my port it built fine.

Bye,
Matthias

--
"Programming today is a race between software engineers striving to 
build bigger and better idiot-proof programs, and the universe trying to 
produce bigger and better idiots. So far, the universe is winning." -- 
Rich Cook

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


Re: Error in /usr/src/sbin/setkey

2008-06-29 Thread Unga
--- On Sat, 6/28/08, Unga <[EMAIL PROTECTED]> wrote:

> From: Unga <[EMAIL PROTECTED]>
> Subject: Error in /usr/src/sbin/setkey
> To: freebsd-questions@freebsd.org
> Date: Saturday, June 28, 2008, 9:15 PM
> Hi all
> 
> I made a separate make in /usr/src/sbin, I get a error in
> /usr/src/sbin/setkey as follows:
> ===> setkey (all)
> yacc -d /usr/src/sbin/setkey/parse.y
> cp y.tab.c parse.c
> cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/setkey
> -I/usr/src/sbin/setkey
> /../../lib/libipsec
> -I/usr/src/sbin/setkey/../../lib/libipsec
> -I/usr/src/sbin/se
> tkey/../../sys/netipsec -DIPSEC_DEBUG -DYY_NO_UNPUT -DINET6
> -I. -Wsystem-headers
>  -Wno-pointer-sign -c /usr/src/sbin/setkey/setkey.c
> cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/setkey
> -I/usr/src/sbin/setkey
> /../../lib/libipsec
> -I/usr/src/sbin/setkey/../../lib/libipsec
> -I/usr/src/sbin/se
> tkey/../../sys/netipsec -DIPSEC_DEBUG -DYY_NO_UNPUT -DINET6
> -I. -Wsystem-headers
>  -Wno-pointer-sign -c parse.c
> lex -t  /usr/src/sbin/setkey/token.l > token.c
> cc -O2 -fno-strict-aliasing -pipe  -I/usr/src/sbin/setkey
> -I/usr/src/sbin/setkey
> /../../lib/libipsec
> -I/usr/src/sbin/setkey/../../lib/libipsec
> -I/usr/src/sbin/se
> tkey/../../sys/netipsec -DIPSEC_DEBUG -DYY_NO_UNPUT -DINET6
> -I. -Wsystem-headers
>  -Wno-pointer-sign -c token.c
> /usr/src/sbin/setkey/token.l: In function 'yylex':
> /usr/src/sbin/setkey/token.l:226: error: lvalue required as
> increment operand
> *** Error code 1
> 
> Stop in /usr/src/sbin/setkey.
> *** Error code 1
> 
> Stop in /usr/src/sbin.
> 
> 

I have narrow down the issue. The issue is with /usr/src/sbin/setkey/token.l .

The relevant section from token.l:
{quotedstring}  {
char *p = yytext;
while (*++p != '"') ;
*p = '\0';
yytext++;
yylval.val.len = yyleng - 2;
yylval.val.buf = strdup(yytext);
if (!yylval.val.buf)
yyfatal("insufficient memory");

return(QUOTEDSTRING);
}

The variable yytext is declared as follows inside the token.c:
extern char yytext[];

But the variable yytext is not declared in any file in /usr/src/sbin/setkey/.

Comment out "yytext++;" line cleanly compiles the token.c.

Similar use of token.l is there in /usr/src/sbin/devd/. The variable yytext is 
used but no increment operator is used on it and it is also not declared in any 
file in /usr/src/sbin/devd/, but that token.c get cleanly compiles.

Is it an error/mistake to have an "yytext++;" line inside token.l? What should 
be the correct fix for this?

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]"


problem when building dovecot-sieve with the new dovecot port

2008-06-29 Thread Nicolas Letellier
Hi.

I'm upgrading my dovecot from 1.0.14 to 1.1. 
I pkg_deinstall my dovecot and my dovecot-sieve.

dovecot installs correctly.

However, dovecot-sieve does not want to be built:

 cc -DHAVE_CONFIG_H -I. -I. -I../.. 
-I/usr/ports/mail/dovecot/work/dovecot-1.1.1 
-I/usr/ports/mail/dovecot/work/dovecot-1.1.1/src/lib -I../../src -std=gnu99 -O2 
-pipe -march=pentium4 -fno-strict-aliasing -Wall -W -Wmissing-prototypes 
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 
-Wbad-function-cast -Wstrict-aliasing=2 -DENABLE_REGEX -MT comparator.lo -MD 
-MP -MF .deps/comparator.Tpo -c comparator.c  -fPIC -DPIC -o .libs/comparator.o
comparator.c:150: error: expected ';', ',' or ')' before '__attr_unused__'
comparator.c:217: error: expected ';', ',' or ')' before '__attr_unused__'
comparator.c:225: error: expected ';', ',' or ')' before '__attr_unused__'
comparator.c:239: error: expected ';', ',' or ')' before '__attr_unused__'
comparator.c:259: error: expected ';', ',' or ')' before '__attr_unused__'
comparator.c: In function 'lookup_comp':
comparator.c:392: error: 'octet_contains' undeclared (first use in this 
function)
comparator.c:392: error: (Each undeclared identifier is reported only once
comparator.c:392: error: for each function it appears in.)
comparator.c:395: error: 'octet_matches' undeclared (first use in this function)
comparator.c:399: error: 'octet_regex' undeclared (first use in this function)
comparator.c:415: error: 'ascii_casemap_contains' undeclared (first use in this 
function)
comparator.c:418: error: 'ascii_casemap_matches' undeclared (first use in this 
function)
*** Error code 1

Stop in /usr/ports/mail/dovecot-sieve/work/dovecot-sieve-1.0.2/src/libsieve.
*** Error code 1

Stop in /usr/ports/mail/dovecot-sieve/work/dovecot-sieve-1.0.2/src.
*** Error code 1

Stop in /usr/ports/mail/dovecot-sieve/work/dovecot-sieve-1.0.2.
*** Error code 1

Stop in /usr/ports/mail/dovecot-sieve/work/dovecot-sieve-1.0.2.
*** Error code 1

Stop in /usr/ports/mail/dovecot-sieve.
** Command failed [exit code 1]: /usr/bin/script -qa /tmp/portinstall.24674.0 
env make
** Fix the problem and try again.
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! mail/dovecot-sieve(compiler error)


So, my upgrade process to new dovecot failed
I'm going to install my backups and go back to dovecot 1.0.14. I cannot upgrade 
my system to new dovecot if dovecot-sieve port is broken.

Thanks.

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