Re: Korn shell script Question

2007-02-02 Thread Dak Ghatikachalam

On 1/31/07, kris [EMAIL PROTECTED] wrote:


On Wed, Jan 31, 2007 at 02:27:24PM -0500, Dak Ghatikachalam wrote:
Thanks a lot , I test ran it. This is great

No problem. I should add that if this is to be part of a long running
script, you should close the co-process (the while-loop running cat),
with something like:

exec 5p
exec 5-




I did not really understand this part of the email

Did you mean that I should

{ while cat /tmp/availdest.$$; do false; done } |
exec 5p

{ while cat file1.txt; do false; done } |

cat file2.txt |
while read file_b
do
   read -p file_a
   echo $file_b $file_a
done file3.txt

exec 5-

should I do something like this?  will this work ?


-

WHen I put this code in large part of the code,  several times it speews out
error like coprocess already exists

here is excerpts of the code.

{ while cat /tmp/availdest.$$; do false; done } |

cat  ${RESTORELINKDIR}/rman_restore_dir/${RESTORENAM}|awk '/DATAFILE/ {
print $0
}'|tr -d ' '|
while read file_b
do
   read -p file_a
   echo $file_b | $file_a
done /tmp/dataf.$$

prev_used=none;
typeset -i initial_cntr=0;
rm -rf /tmp/spaceiss.$$ /tmp/reprocesses.$$ /tmp/availspace.$$
for dbfilerec in `cat  /tmp/dataf.$$|awk '/DATAFILE/ { print $0 }'|tr -d ' '
`
do
   dest_tst=`echo $dbfilerec|awk -F| '{print $5}'`
   DISK_MB=`df -k ${dest_tst} | tail -1|awk '{print
int($4/1024)}'`
   echo Available Disk space = ${DISK_MB} MB
   Fil_size=`echo $dbfilerec |awk -F| '{print int($4)}'`
   echo Filesize needed  = ${Fil_size} MB

if [ ${DISK_MB} -gt ${Fil_size} ]
FIL_NO=`echo $dbfilerec |awk -F| '{print int($2)}'`
   TARGET_DIR=`echo
$dest_tst/$DEST_ORA_SID|tr -d ' '`
   mkdir -p  ${TARGET_DIR}
   if [ $? != 0 ]
   then
   SendNotification For Database
${ORACLE_SID} RMAN backup $RESTOREPRCSLOGDIR Could not be created for
backup
   fi
   strip_dir=`echo $dbfilerec |awk -F|
'{print $3}'`
   TARGET_FILE=`basename $strip_dir|tr -d ' '`
   perform_actual_restore;
   prev_used=`echo $dest_tst`

   fi
if [ ${DISK_MB} -le ${Fil_size} ]
then
   echo $dbfilerec|awk -F| '{print $5}'

/tmp/spaceiss.$$

   echo $dbfilerec|awk -F|  '/DATAFILE/ {OFS
= |;$5=; print}'   /tmp/reprocesses.$$
fi
done

if [ -s /tmp/reprocesses.$$ ]
then
   diff /tmp/availdest.$$ /tmp/spaceiss.$$|awk -F '{print $2}'|awk
NF|tr -d ' '/tmp/availspace.$$
fi
if [ -s /tmp/availspace.$$ ]
then



but one thing I noticed  was that
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Does KDE on freeBSD use Qt toolkit or some other one?

2007-02-02 Thread Pieter de Goeje
Yes, KDE uses the Qt toolkit.

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


Flash Player

2007-02-02 Thread RYAN M. vAN GINNEKEN

Hello again all i have been having a really hard time figuring out how to get 
flash to work on my Freebsd machine. I go to lots of sites and they tell me to 
get the plugin but i have tried everything and cannot get it to work. 

I am running firefox from the ports and have the following ports installed to 
try and make this work but it will not. 


flashplugin-mozilla-0.4.13 A GPL standalone Flash (TM) plugin for Mozilla web 
browser 
libflash-0.4.13_1 GPL Flash (TM) Library 
linux-flashplugin-7.0r69 Adobe Flash Player NPAPI Plugin 

gnash-0.7.1_1 GNU Flash movie player 

firefox-2.0.0.1_1,1 Web browser based on the browser portion of Mozilla 

I have also done a bunch of goggling and noticed that there were and still be 
many licensing issues. Do these still exist or am i just doing something wrong 
the above mentioned plugins should play flash right? 
-- 
Computer King  CaN Mail - Sales Service Hosting Backup 

http://www.computerking.ca http://www.canmail.org 

NEW!!! Custom Service Packages 
Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online Accounting 
Packages 

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


unexpected result from sh script with `date`

2007-02-02 Thread Tigger
Hello, the following simply sh script is outputting unexpected results.
Any idea why?

--script--

#!/bin/sh

started=`date`

echo Started at: $started
echo Finished  : `date`
exit

--output--

Started at: Fri Feb  2 22:13:51 EST 2007
Finished  : Fri Feb 2 22:13:51 EST 2007

--problem--

Between 'Feb' and '2', there is two spaces on the 'Started at' line,
however the 'Finished' one only has 1 space.

I know this sounds picky, but I was not expecting this at all.

uname -a
FreeBSD piglet 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 19 04:13:20 EST
2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PIGLET  i386


-Tig

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


Re: unexpected result from sh script with `date`

2007-02-02 Thread J65nko

On 2/2/07, Tigger [EMAIL PROTECTED] wrote:

Hello, the following simply sh script is outputting unexpected results.
Any idea why?

--script--

#!/bin/sh

started=`date`

echo Started at: $started
echo Finished  : `date`
exit

--output--

Started at: Fri Feb  2 22:13:51 EST 2007
Finished  : Fri Feb 2 22:13:51 EST 2007

--problem--

Between 'Feb' and '2', there is two spaces on the 'Started at' line,
however the 'Finished' one only has 1 space.

I know this sounds picky, but I was not expecting this at all.

uname -a
FreeBSD piglet 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 19 04:13:20 EST
2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PIGLET  i386


The same on OpenBSD here (ksh)
OpenBSD 4.0-current (GENERIC) #1194: Thu Nov  2 16:32:12 MST 2006
   [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC

It seems to depend whether  the command substitution is within the
quote-delimited string,   for 'echo' or outside that string, in other
words on its own.
--- script--
#!/bin/sh

started=$(date)

echo \$started within \ delimited string for echo
echo Started at: $started
echo Command substitution \$(date) within \ delimited string for echo
echo Finished  : $(date)
echo Command substitution \$(date) outside \ delimited string for echo
echo Finished  : $(date)
echo Command substitution \`date\` outside \ delimited string for echo
echo Finished  : $(date)
---
Output:
---
$started within  delimited string for echo
Started at: Fri Feb  2 13:46:07 CET 2007
Command substitution $(date) within  delimited string for echo
Finished  : Fri Feb  2 13:46:07 CET 2007
Command substitution $(date) outside  delimited string for echo
Finished  : Fri Feb 2 13:46:07 CET 2007
Command substitution `date` outside  delimited string for echo
Finished  : Fri Feb 2 13:46:07 CET 2007
---
Embedded inside the string there are two spaces between Feb and the 2,
as stand-alone there is only one space.

Strange indeed ;)

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


CVSup Touch

2007-02-02 Thread Cy Schubert
What is a CVSup Touch? What is it? (A touch, right?) Why does it happen? 
What triggers it?

e.g.
 Touch ports/devel/makeplus/files/patch-main.mk,v
 Touch ports/devel/makeplus/pkg-descr,v
 Touch ports/devel/makeplus/pkg-plist,v

I have a CVSup that's been running here for 15 minutes touching every ,v 
file in ports. It still has not competed.



-- 
Cheers,
Cy Schubert [EMAIL PROTECTED]
FreeBSD UNIX:  [EMAIL PROTECTED]   Web:  http://www.FreeBSD.org

e**(i*pi)+1=0


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


Tapecopy(1) Function Query

2007-02-02 Thread Leigh Thomas
Hi,
Will the above tapecopy facility copy a tape from one format to another?
i.e. DAT to AIT for instance and does the format of the tape matter? i.e.
will it copy a windows format tape?
 
Many thanks for your time. Any answer would be very much appreciated.
Regards,
 
Leigh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: windows behaviour on installing new packages

2007-02-02 Thread Bill Moran
In response to Gobbledegeek [EMAIL PROTECTED]:

 Hi
 
 I  noticed  over the past few weeks, that  after  installing  numerous
 packages (pkg_add  -r),  I could not execute them  (not  found). They
 were standard  packages installed in the standard locations like
 /usr/local/bin or sbin (already in $PATH).  Running ldconfig, logging
 out and  logging back in did not help either.  *Rebooting*  helps
 however.
 
 What gives?Are the  package install scripts missing  some  install
 command ? System is 6.2  production release.
 
 Mine is a home desktop, but in the context of  a server this  is
 completely  unacceptable.
 
 Please copy  me  as I  am not subscribed.

I really think you're going to have to provide a _specific_ example.

The behaviour you describe is neither intended nor expected.  I don't
see it on either of my desktop machines, or my laptop.

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


Dyscalculia

2007-02-02 Thread Chris Glavin

Hi,
My name is Chris Glavin. I run a website devoted to providing resourceful 
information for a number of topics in education and disabilities and 
disorders. I have created an information page on Dyscalculia including 
symptoms, causes, students with dyscalculia, support services, special 
education schools, camps, articles  books on the learning disability.


Please take a moment out of your day to visit the page. If you would like to 
help in any way please do not hesitate to contact me. I am always looking 
for individuals interested in providing articles, resources or have any 
services for individuals with Cerebral Palsy.

http://www.k12academics.com/dyscalculia.htm
Thanks!
Chris Glavin
K12academics.com





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


SSH woes

2007-02-02 Thread Arindam

I have a Pentium III 733 Mhz box with 512 MB RAM running FreeBSD 6.1.
I also have a second box with Fedora Core 2. I tried connecting to my
FreeBSD box using ssh from my Fedora Core 2 machine.

# ssh -l root myFreeBSD box
Password:
Password:
Password:

It kept asking me for Password: although everytime I put the correct
value. I tried out clearing the .ssh* files in my home directories and
trying to reconnect. None of it worked.

Where am I going wrong.

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


Re: SSH woes

2007-02-02 Thread usleepless

Arindam,

On 2/2/07, Arindam [EMAIL PROTECTED] wrote:

I have a Pentium III 733 Mhz box with 512 MB RAM running FreeBSD 6.1.
I also have a second box with Fedora Core 2. I tried connecting to my
FreeBSD box using ssh from my Fedora Core 2 machine.

# ssh -l root myFreeBSD box
Password:
Password:
Password:

It kept asking me for Password: although everytime I put the correct
value. I tried out clearing the .ssh* files in my home directories and
trying to reconnect. None of it worked.

Where am I going wrong.


try logging in a regular user ( ie: not root )

regards,

usleep



-- Arindam
___
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: Synaptics touchpad freezes

2007-02-02 Thread Gábor Gábris

The SHMConfig option seems to have no effect on the problem. It is
rather some ACPI-related thing, as I could figure out from the Linux
ACPI mailing list archives (on linux the same problem occurs, but more
severely - no recovery from freezes), the problem seems to be with the
access of embeddedcontroller, that makes the batter checking. But it
is a bi technical for me...

2007/2/2, Timothy Bourke [EMAIL PROTECTED]:

On Jan 31 at 23:13 +0100, Gábor Gábris wrote:
 I have a problem with my synaptics touchpad under FreeBSD 6.2 on an
 Albacomp Eco Traveller V4 laptop (AFAIK a rebranded Clevo M660S). I
 have 'hw.psm.synaptics_support=1' in my /boot/loader.conf an the
 synaptics driver for X from Ports.

I am running FreeBSD 6.2 on a ThinkPad R52 with a synaptics touchpad.

My system does not have that sysctl variable:
sysctl: unknown oid 'hw.psm.synaptics_support'

 During the daily use of X (browsing, etc.) the mouse cursor freezes at
 ranom times for intervals of about 3-5 seconds, than it gets back to
 work. But the freezes are likely to occur serially, with some seconds
 between them.

 During this the following messages show up in dmesg:

 can't re-use a leaf (directional_scrolls)!
 can't re-use a leaf (low_speed_threshold)!
 can't re-use a leaf (min_movement)!
 can't re-use a leaf (squelch_level)!

These messages occur on my R52 only after awaking from suspend to ram
(zzz). The touchpad works regardless provided the sleep is requested
from within X11.

 If anyobody has the same problem or know what causes it or (even
 better) knows how to solve it please let me know!

Does changing the SHMConfig option (xorg.conf) make any difference?

I have:
Section InputDevice
...
Option SHMConfig on
...
EndSection

Tim.




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


Re: SSH woes

2007-02-02 Thread Vince
Arindam wrote:
 I have a Pentium III 733 Mhz box with 512 MB RAM running FreeBSD 6.1.
 I also have a second box with Fedora Core 2. I tried connecting to my
 FreeBSD box using ssh from my Fedora Core 2 machine.
 
 # ssh -l root myFreeBSD box
 Password:
 Password:
 Password:
 
 It kept asking me for Password: although everytime I put the correct
 value. I tried out clearing the .ssh* files in my home directories and
 trying to reconnect. None of it worked.
 
 Where am I going wrong.
 

By default Freebsd will not allow root login via ssh. best bet is to add
your  non root user to wheel and login as that user, then su to root. If
you really need to login as root you need to edit /etc/ssh/sshd_config
but then again the only reason to allow remote root logins rather than
using su/sudo i can think of is laziness ;)

Vince

 -- Arindam
 ___
 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: unexpected result from sh script with `date`

2007-02-02 Thread Erik Trulsson
On Fri, Feb 02, 2007 at 01:48:31PM +0100, J65nko wrote:
 On 2/2/07, Tigger [EMAIL PROTECTED] wrote:
 Hello, the following simply sh script is outputting unexpected results.
 Any idea why?
 
 --script--
 
 #!/bin/sh
 
 started=`date`
 
 echo Started at: $started
 echo Finished  : `date`
 exit
 
 --output--
 
 Started at: Fri Feb  2 22:13:51 EST 2007
 Finished  : Fri Feb 2 22:13:51 EST 2007
 
 --problem--
 
 Between 'Feb' and '2', there is two spaces on the 'Started at' line,
 however the 'Finished' one only has 1 space.
 
 I know this sounds picky, but I was not expecting this at all.
 
 uname -a
 FreeBSD piglet 6.2-STABLE FreeBSD 6.2-STABLE #0: Fri Jan 19 04:13:20 EST
 2007 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/PIGLET  i386
 
 The same on OpenBSD here (ksh)
 OpenBSD 4.0-current (GENERIC) #1194: Thu Nov  2 16:32:12 MST 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
 
 It seems to depend whether  the command substitution is within the
 quote-delimited string,   for 'echo' or outside that string, in other
 words on its own.
 --- script--
 #!/bin/sh
 
 started=$(date)
 
 echo \$started within \ delimited string for echo
 echo Started at: $started
 echo Command substitution \$(date) within \ delimited string for echo
 echo Finished  : $(date)
 echo Command substitution \$(date) outside \ delimited string for echo
 echo Finished  : $(date)
 echo Command substitution \`date\` outside \ delimited string for echo
 echo Finished  : $(date)
 ---
 Output:
 ---
 $started within  delimited string for echo
 Started at: Fri Feb  2 13:46:07 CET 2007
 Command substitution $(date) within  delimited string for echo
 Finished  : Fri Feb  2 13:46:07 CET 2007
 Command substitution $(date) outside  delimited string for echo
 Finished  : Fri Feb 2 13:46:07 CET 2007
 Command substitution `date` outside  delimited string for echo
 Finished  : Fri Feb 2 13:46:07 CET 2007
 ---
 Embedded inside the string there are two spaces between Feb and the 2,
 as stand-alone there is only one space.
 
 Strange indeed ;)

Not strange at all if think about how 'echo' works and how the arguments are
passed to it.
If you do a  
  echo `date` 
then echo will be passed 6 arguments ('Fri' 'Feb' '2' '13:46:07' 'CET' '2007')
and print them with a single space between each of them.
If you do a 
  echo `date`
then echo will be passed only a single argument ('Fri Feb  2 13:46:07 CET 2007')
which will be printed unmodified.

As another example compare the outputs of
  echo  a  b c
and
  echo a  b c




-- 
Insert your favourite quote here.
Erik Trulsson
[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: SSH woes

2007-02-02 Thread cknipe
 # ssh -l root myFreeBSD box
 Password:
 Password:
 Password:
 
 It kept asking me for Password: although everytime I put the correct
 value. I tried out clearing the .ssh* files in my home directories and
 trying to reconnect. None of it worked.


Don't login as root... It's not good practise, SSH on BSD by default does also
not allow for it.  Add your normal user to the wheel group, use that to login
via SSH, and use su or sudo to gain root privlidges when needed



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


Re: SSH woes

2007-02-02 Thread Jeffrey Belles

On Fri, 2 Feb 2007 18:37:14 +0530, Arindam wrote
 I have a Pentium III 733 Mhz box with 512 MB RAM running FreeBSD 6.1.
 I also have a second box with Fedora Core 2. I tried connecting to my
 FreeBSD box using ssh from my Fedora Core 2 machine.
 
 # ssh -l root myFreeBSD box
 Password:
 Password:
 Password:
 
 It kept asking me for Password: although everytime I put the correct
 value. I tried out clearing the .ssh* files in my home directories 
 and trying to reconnect. None of it worked.
 
 Where am I going wrong.

By default ssh-ing to root is denied for security-reasons
Try login in with a normal account and do a 'su -' to act as root.
If you really really really want to allow root-logins through ssh, edit the 
file /etc/ssh/sshd_config

and remove the hash from the following line:
#PermitRootLogin yes


 HTH
 -Jeffrey




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


--
Open WebMail Project (http://openwebmail.org)

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


Re: USB TV Tuner vs. FreeBSD

2007-02-02 Thread Simon Phoenix
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

 Hello. Share successes who has forced to work the given device.

I have AverTV USB 2.0 Plus, but i can't make it working for this time. :(

- --
Best regards,
Simon Phoenix (Phoenix Lab.)
- ---
KeyID: 0x2569D30B
Fingerprint: 78FC 5C40 07CC D331 148E CC79 84B8 D514 2569 D30B
- ---
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFw0bVhLjVFCVp0wsRCmRSAJ9oWcO24dFc3H6A6CwX1UH3GuKsVQCgvNPj
E4pIThHUVL1YmwxuDCeSBj4=
=R4LN
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: CVSup Touch

2007-02-02 Thread Kevin Kinsey

Cy Schubert wrote:
What is a CVSup Touch? What is it? (A touch, right?) Why does it happen? 
What triggers it?


e.g.
 Touch ports/devel/makeplus/files/patch-main.mk,v
 Touch ports/devel/makeplus/pkg-descr,v
 Touch ports/devel/makeplus/pkg-plist,v

I have a CVSup that's been running here for 15 minutes touching every ,v 
file in ports. It still has not competed.


Could we see your supfile?  Looks as if CVSup is, err, barking up the 
wrong tree?


KDK


--
Men love to wonder, and that is the seed of science.

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


Determining daylight savings changes on BSD

2007-02-02 Thread Robert Fitzpatrick
I use the following command on our CentOS Linux servers to find out if
the system is ready for the daylight savings changes coming up, but it
does not seem to work the same on our FreeBSD 5.4 and 6.1 servers. How
can I do this? I see the zdump command and the man page seems to suggest
the same usage, but...

esmtp# zdump -v US/Eastern | grep 2007
esmtp# zdump -v US/Eastern
US/Eastern  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC isdst=0 
gmtoff=0
US/Eastern  Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC isdst=0 
gmtoff=0
US/Eastern  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 
gmtoff=0
US/Eastern  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC isdst=0 
gmtoff=0

The Linux version spits out all years, hence the need for grep:

[EMAIL PROTECTED] ~]# zdump -v US/Eastern |grep 2007
US/Eastern  Sun Mar 11 06:59:59 2007 UTC = Sun Mar 11 01:59:59 2007 EST isdst=0 
gmtoff=-18000
US/Eastern  Sun Mar 11 07:00:00 2007 UTC = Sun Mar 11 03:00:00 2007 EDT isdst=1 
gmtoff=-14400
US/Eastern  Sun Nov  4 05:59:59 2007 UTC = Sun Nov  4 01:59:59 2007 EDT isdst=1 
gmtoff=-14400
US/Eastern  Sun Nov  4 06:00:00 2007 UTC = Sun Nov  4 01:00:00 2007 EST isdst=0 
gmtoff=-18000

-- 
Robert

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


Re: Korn shell script Question

2007-02-02 Thread Dak Ghatikachalam

On 1/31/07, kris [EMAIL PROTECTED] wrote:


On Wed, Jan 31, 2007 at 02:27:24PM -0500, Dak Ghatikachalam wrote:
Thanks a lot , I test ran it. This is great

No problem. I should add that if this is to be part of a long running
script, you should close the co-process (the while-loop running cat),
with something like:

exec 5p
exec 5-
___



Kris, Thanks  again

I got that right after more digging in man ksh and baby trying for a long
night.

My code worked well after putting like  you said, which I did not understand
initially, but now it is clear.

the code turned out something like


{ while cat /tmp/availspace.$$; do false; done } |
exec 5p
cat  /tmp/reprocesses.$$|awk '/DATAFILE/ { print $0 }'|tr -d ' '|
while read file_b
do
   read -u5 file_a
   echo $file_b $file_a
done /tmp/reprocessrecset.$$

exec 5-

this what you meant ?


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


Re: Tapecopy(1) Function Query

2007-02-02 Thread Dan Nelson
In the last episode (Feb 02), Leigh Thomas said:
 Will the above tapecopy facility copy a tape from one format to
 another? i.e. DAT to AIT for instance and does the format of the tape
 matter? i.e. will it copy a windows format tape?

You mean the tcopy command?  Yes, it can read from one tape drive type
and write to another, assuming the destination tape is not smaller than
the source :)  It really doesn't care; they're all the same from its
point of view.

-- 
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: Determining daylight savings changes on BSD

2007-02-02 Thread Dan Nelson
In the last episode (Feb 02), Robert Fitzpatrick said:
 I use the following command on our CentOS Linux servers to find out
 if the system is ready for the daylight savings changes coming up,
 but it does not seem to work the same on our FreeBSD 5.4 and 6.1
 servers. How can I do this? I see the zdump command and the man page
 seems to suggest the same usage, but...
 
 esmtp# zdump -v US/Eastern | grep 2007
 esmtp# zdump -v US/Eastern
 US/Eastern  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC 
 isdst=0 gmtoff=0
 US/Eastern  Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC 
 isdst=0 gmtoff=0
 US/Eastern  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC 
 isdst=0 gmtoff=0
 US/Eastern  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC 
 isdst=0 gmtoff=0

That means you need to update your zoneinfo tables.  You can also use
the date command to see if you need updating:

date -r 1173679260

If that prints Mon Mar 12 02:01:00 EST 2007 you know you need to
update.

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


File won't move

2007-02-02 Thread Jay Chandler

Have a file mounted on an NFS share.

I attempt to move it, rename it, copy it, or just about ANYTHING to it 
as root, and get a Permission Denied error.


How can I figure out what's going on?

--
Jay Chandler
Network Administrator, Chapman University
714.628.7249 / [EMAIL PROTECTED]
Today's Excuse: those damn raccoons! 


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


Re: File won't move

2007-02-02 Thread Dan Nelson
In the last episode (Feb 02), Jay Chandler said:
 Have a file mounted on an NFS share.
 
 I attempt to move it, rename it, copy it, or just about ANYTHING to
 it as root, and get a Permission Denied error.
 
 How can I figure out what's going on?

Root usually has no permissions over NFS (it gets mapped to the user
nobody).  Try manipulating the file directly on the NFS server.

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


How to get best results from FreeBSD-questions

2007-02-02 Thread Greg Lehey

How to get the best results from FreeBSD questions.
===

Last update $Date: 2005/08/10 02:21:44 $

This is a regular posting to the FreeBSD questions mailing list.  If
you got it in answer to a message you sent, it means that the sender
thinks that at least one of the following things was wrong with your
message:

- You left out a subject line, or the subject line was not appropriate.
- You formatted it in such a way that it was difficult to read.
- You asked more than one unrelated question in one message.
- You sent out a message with an incorrect date, time or time zone.
- You sent out the same message more than once.
- You sent an 'unsubscribe' message to FreeBSD-questions.

If you have done any of these things, there is a good chance that you
will get more than one copy of this message from different people.
Read on, and your next message will be more successful.

This document is also available on the web at
http://www.lemis.com/questions.html.

=

Contents:

I:Introduction
II:   How to unsubscribe from FreeBSD-questions
III:  Should I ask -questions or -hackers?
IV:   How to submit a question to FreeBSD-questions
V:How to answer a question to FreeBSD-questions

I: Introduction
===

This is a regular posting aimed to help both those seeking advice from
FreeBSD-questions (the newcomers), and also those who answer the
questions (the hackers).

   Note that the term hacker has nothing to do with breaking
   into other people's computers.  The correct term for the latter
   activity is cracker, but the popular press hasn't found out
   yet.  The FreeBSD hackers disapprove strongly of cracking
   security, and have nothing to do with it.

In the past, there has been some friction which stems from the
different viewpoints of the two groups.  The newcomers accused the
hackers of being arrogant, stuck-up, and unhelpful, while the hackers
accused the newcomers of being stupid, unable to read plain English,
and expecting everything to be handed to them on a silver platter.  Of
course, there's an element of truth in both these claims, but for the
most part these viewpoints come from a sense of frustration.

In this document, I'd like to do something to relieve this frustration
and help everybody get better results from FreeBSD-questions.  In the
following section, I recommend how to submit a question; after that,
we'll look at how to answer one.

II:  How to unsubscribe from FreeBSD-questions
==

When you subscribed to FreeBSD-questions, you got a welcome message
from [EMAIL PROTECTED]  In this message, amongst
other things, it told you how to unsubscribe.  Here's a typical
message:

  Welcome to the freebsd-questions@freebsd.org mailing list!

If you ever want to unsubscribe or change your options (eg, switch to
or from digest mode, change your password, etc.), visit your
subscription page at:

  http://lists.freebsd.org/mailman/options/freebsd-questions/[EMAIL PROTECTED]
  
(obviously, substitute your mail address for [EMAIL PROTECTED]).  You can
also make such adjustments via email by sending a message to:

  [EMAIL PROTECTED]
  
with the word 'help' in the subject or body (don't include the
quotes), and you will get back a message with instructions.

You must know your password to change your options (including
changing the password, itself) or to unsubscribe.
  
Normally, Mailman will remind you of your freebsd.org mailing list
passwords once every month, although you can disable this if you
prefer.  This reminder will also include instructions on how to
unsubscribe or change your account options.  There is also a button on
your options page that will email your current password to you.

  Here's the general information for the list you've
  subscribed to, in case you don't already have it:

  FREEBSD-QUESTIONS   User questions
  This is the mailing list for questions about FreeBSD.  You should not
  send how to questions to the technical lists unless you consider the
  question to be pretty technical.

Normally, unsubscribing is even simpler than the message suggests: you
don't need to specify your mail ID unless it is different from the one
which you specified when you subscribed.

If Majordomo replies and tells you (incorrectly) that you're not on
the list, this may mean one of two things:

  1.  You have changed your mail ID since you subscribed.  That's where
  keeping the original message from majordomo comes in handy.  For
  example, the sample message above shows my mail ID as
  [EMAIL PROTECTED]  Since then, I have changed it to
  [EMAIL PROTECTED]  If I were to try to remove [EMAIL PROTECTED] from
  the list, it would fail: I would have to specify the name with
  which I joined.

  2.  You're subscribed to a mailing list which is subscribed to
  

The Complete FreeBSD: errata and addenda

2007-02-02 Thread Greg Lehey
The trouble with books is that you can't update them the way you can a web page
or any other online documentation.  The result is that most leading edge
computer books are out of date almost before they are printed.  Unfortunately,
The Complete FreeBSD, published by O'Reilly, is no exception.  Inevitably, a
number of bugs and changes have surfaced.

The Complete FreeBSD has been through a total of five editions, including its
predecessor Installing and Running FreeBSD.  Two of these have been reprinted
with corrections.  I maintain a series of errata pages.  Start at
http://www.lemis.com/errata-4.html to find out how to get the errata
information.

Note also that the book has now been released for free download in PDF
form.  Instead of downloading the changed pages, you may prefer to
download the entire book.  See http://www.lemis.com/grog/Documentation/CFBSD/ 
for more information.

Have you found a problem with the book, or maybe something confusing?
Please let me know: I'm no longer constantly updating it, but I may be
able to help

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


Re: Flash Player

2007-02-02 Thread youshi10

On Fri, 2 Feb 2007, RYAN M. vAN GINNEKEN wrote:



Hello again all i have been having a really hard time figuring out how to get 
flash to work on my Freebsd machine. I go to lots of sites and they tell me to 
get the plugin but i have tried everything and cannot get it to work.

I am running firefox from the ports and have the following ports installed to 
try and make this work but it will not.


flashplugin-mozilla-0.4.13 A GPL standalone Flash (TM) plugin for Mozilla web 
browser
libflash-0.4.13_1 GPL Flash (TM) Library
linux-flashplugin-7.0r69 Adobe Flash Player NPAPI Plugin

gnash-0.7.1_1 GNU Flash movie player

firefox-2.0.0.1_1,1 Web browser based on the browser portion of Mozilla

I have also done a bunch of goggling and noticed that there were and still be 
many licensing issues. Do these still exist or am i just doing something wrong 
the above mentioned plugins should play flash right?
--
Computer King  CaN Mail - Sales Service Hosting Backup

http://www.computerking.ca http://www.canmail.org

NEW!!! Custom Service Packages
Secure IMAP Email - Automated Remote Backups - Photo Blogs - Online Accounting 
Packages


Install linux-pluginwrapper and please read previous threads this month about 
this particular issue.
-Garrett


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


Re: Flash Player

2007-02-02 Thread Michael M. Press

I am running firefox from the ports and have the following ports installed to 
try and make this work but it will not.


flashplugin-mozilla-0.4.13 A GPL standalone Flash (TM) plugin for Mozilla web 
browser
libflash-0.4.13_1 GPL Flash (TM) Library
linux-flashplugin-7.0r69 Adobe Flash Player NPAPI Plugin

gnash-0.7.1_1 GNU Flash movie player

firefox-2.0.0.1_1,1 Web browser based on the browser portion of Mozilla



I would recommend installing the linux-firefox port. It can coexist
with the native freebsd firefox that you already have (in case you
want to keep it for some reason), and it is an easy way to fix all the
flash player problems.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Flash Player (fwd)

2007-02-02 Thread youshi10

On Fri, 2 Feb 2007, Michael M. Press wrote:

I am running firefox from the ports and have the following ports installed 
to try and make this work but it will not.



flashplugin-mozilla-0.4.13 A GPL standalone Flash (TM) plugin for Mozilla 
web browser

libflash-0.4.13_1 GPL Flash (TM) Library
linux-flashplugin-7.0r69 Adobe Flash Player NPAPI Plugin

gnash-0.7.1_1 GNU Flash movie player

firefox-2.0.0.1_1,1 Web browser based on the browser portion of Mozilla



I would recommend installing the linux-firefox port. It can coexist
with the native freebsd firefox that you already have (in case you
want to keep it for some reason), and it is an easy way to fix all the
flash player problems.


If you're going to be running the version 7 flash player, I highly recommend 
sticking with what you have but install the linux-pluginwrapper item as I 
suggested earlier. linux-firefox was incredibly buggy for me and I didn't think 
that it was as good as the natively built firefox I had.


-Garrett


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


Re: CVSup Touch

2007-02-02 Thread Kent Stewart
On Friday 02 February 2007 07:26, Kevin Kinsey wrote:
 Cy Schubert wrote:
  What is a CVSup Touch? What is it? (A touch, right?) Why does it
  happen? What triggers it?
 
  e.g.
   Touch ports/devel/makeplus/files/patch-main.mk,v
   Touch ports/devel/makeplus/pkg-descr,v
   Touch ports/devel/makeplus/pkg-plist,v
 
  I have a CVSup that's been running here for 15 minutes touching
  every ,v file in ports. It still has not competed.

 Could we see your supfile?  Looks as if CVSup is, err, barking up
 the wrong tree?

I suspect that it is part of decoupling FreeBSD-4.x from the port tree.

Kent

-- 
Kent Stewart
Richland, WA

http://www.soyandina.com/ I am Andean project.
http://users.owt.com/kstewart/index.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Recovering a file on an msdosfs partition

2007-02-02 Thread Tore Lund
The thing that should never, ever happen did happen yesterday.  I lost a
file and was not able to recover it.  ROX-filer said NewFile where I
should have seen a familiar filename.  I tried fsck_msdosfs and got this
meaningful answer:

isidoros# fsck_msdosfs /kdisk
** /kdisk (NO WRITE)
Invalid signature in boot block: 

Not much help there, so I booted into Windows and ran chkdsk /f on the
slice in question.  The only thing it was able to recover was 4 kB of
binary zeroes.

Now, this was not a very important file.  And I may have written to the
slice since losing that file, so it may indeed have been unrecoverable.
 My question is whether I could have done anything else to make FreeBSD
correct the goof it had made.  The answer from fsck_msdosfs above does
not tell me a lot, and one fine day this may happen to some really
important file that has not yet been backed up.
-- 
Tore

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


Re: Determining daylight savings changes on BSD

2007-02-02 Thread Jerry McAllister
On Fri, Feb 02, 2007 at 10:36:37AM -0600, Dan Nelson wrote:

 In the last episode (Feb 02), Robert Fitzpatrick said:
  I use the following command on our CentOS Linux servers to find out
  if the system is ready for the daylight savings changes coming up,
  but it does not seem to work the same on our FreeBSD 5.4 and 6.1
  servers. How can I do this? I see the zdump command and the man page
  seems to suggest the same usage, but...
  
  esmtp# zdump -v US/Eastern | grep 2007
  esmtp# zdump -v US/Eastern
  US/Eastern  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC 
  isdst=0 gmtoff=0
  US/Eastern  Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC 
  isdst=0 gmtoff=0
  US/Eastern  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC 
  isdst=0 gmtoff=0
  US/Eastern  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC 
  isdst=0 gmtoff=0

I don't know how to read this.  There was another command I saw a while
back that gave similar looking information, but actually put out something
for 2007.   But, I can't find that mesage at the moment.

 That means you need to update your zoneinfo tables.  You can also use
 the date command to see if you need updating:
 
 date -r 1173679260
 
 If that prints Mon Mar 12 02:01:00 EST 2007 you know you need to
 update.

Are you sure?   I see the EST where mine says EDT, but mine gives the
exact same date/time information as you show above outside of the EST.

If I subtract out exactly one day (86400 seconds) I get:
  Sun Mar 11 01:01:00 EST 2007which is just 59 minutes before
the changeover.

Then, if I add an hour (3600 seconds) I get:
  Sun Mar 11 03:01:00 EDT 2007

So, I would expect the non-updated system to give:
  Mon Mar 12 01:01:00 EST 2007

Or is something else really messed up?
My system seems to be giving the correct current date/time.

jerry

 
 -- 
   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]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Flash Player

2007-02-02 Thread RW
On Fri, 2 Feb 2007 12:23:42 -0500
Michael M. Press [EMAIL PROTECTED] wrote:

  I am running firefox from the ports and have the following ports
  installed to try and make this work but it will not.
 
 
  flashplugin-mozilla-0.4.13 A GPL standalone Flash (TM) plugin for
  Mozilla web browser libflash-0.4.13_1 GPL Flash (TM) Library
  linux-flashplugin-7.0r69 Adobe Flash Player NPAPI Plugin
 
  gnash-0.7.1_1 GNU Flash movie player
 
  firefox-2.0.0.1_1,1 Web browser based on the browser portion of
  Mozilla
 
 
 I would recommend installing the linux-firefox port. It can coexist
 with the native freebsd firefox that you already have (in case you
 want to keep it for some reason),

although you can't run them both at the same time.

I've found that Opera is better under linux emulation, than Firefox.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Recovering a file on an msdosfs partition

2007-02-02 Thread Chuck Swiger

Tore Lund wrote:

The thing that should never, ever happen did happen yesterday.  I lost a
file and was not able to recover it.  ROX-filer said NewFile where I
should have seen a familiar filename.

[ ... ]

My question is whether I could have done anything else to make FreeBSD
correct the goof it had made.


Sure.  People normally make backups of the data they care about in order to 
avoid losing that data if a problem happens.


(I don't know what ROX-filer is, but it's not part of FreeBSD.)

--
-Chuck

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


Re: CVSup Touch

2007-02-02 Thread Cy Schubert
In message [EMAIL PROTECTED], Kent Stewart writes:
 On Friday 02 February 2007 07:26, Kevin Kinsey wrote:
  Cy Schubert wrote:
   What is a CVSup Touch? What is it? (A touch, right?) Why does it
   happen? What triggers it?
  
   e.g.
Touch ports/devel/makeplus/files/patch-main.mk,v
Touch ports/devel/makeplus/pkg-descr,v
Touch ports/devel/makeplus/pkg-plist,v
  
   I have a CVSup that's been running here for 15 minutes touching
   every ,v file in ports. It still has not competed.
 
  Could we see your supfile?  Looks as if CVSup is, err, barking up
  the wrong tree?
 
 I suspect that it is part of decoupling FreeBSD-4.x from the port tree.

That's what I suspect. I think that the files were either updated or 
touched to make sure that the whole tree was propagated the next time 
people did a CVSup of the tree itself. It's not a big deal, it the first 
time I've noticed CVSup do that as I usually just look at the exit status 
of my cron job and go onto the next email.


-- 
Cheers,
Cy Schubert [EMAIL PROTECTED]
FreeBSD UNIX:  [EMAIL PROTECTED]   Web:  http://www.FreeBSD.org

e**(i*pi)+1=0


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


Help! Sata controller reset failure after 6.2 upgrade!

2007-02-02 Thread Steve Franks

Everything looks spiffy after my upgrade except all my sata disks are
gone.  Thank goodness the os in on a pata controller:

atapci1: AcerLabs M5287 SATA150 controller port
0xec00-0xec0f,0xe880-0xe887,0xe800-0xe80f,0xe480-0xe487,0xe400-0xe41f
mem 0xd800-0xdbff irq 21 at device 31.1 on pci0
atapci1: AHCI controller reset failure
device_attach: atapci1 attach returned 6

So, I booted the 6.2 iso to find identical behavior, so it is not my
mistake in the upgrade process (unless the mistake was to upgrade at
all).

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


Re: Korn shell script Question

2007-02-02 Thread Kris Maglione

On Fri, Feb 02, 2007 at 11:10:02AM -0500, Dak Ghatikachalam wrote:

{ while cat /tmp/availspace.$$; do false; done } |
exec 5p
cat  /tmp/reprocesses.$$|awk '/DATAFILE/ { print $0 }'|tr -d ' '|
while read file_b
do
   read -u5 file_a
   echo $file_b $file_a
done /tmp/reprocessrecset.$$

exec 5-

this what you meant ?


It doesn't matter where you put the redirects, so long as they're in 
order and you wind up closing the coprocess's standard output so that it 
exits. It's more a matter of style and taste than anything. Here are 
some more options if you're interested:


As long as you haven't started any other background jobs, this would 
work in place of the final 'exec 5-':

kill -INT %+

Or, after you start the coprocess, you can store its PID, and kill that 
later:

copid=$!
...
kill -INT $copid

Again, it's a matter of style and taste. If it's not to be part of a 
long running script, though, don't even worry about it.

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


Re: Determining daylight savings changes on BSD

2007-02-02 Thread Dan Nelson
In the last episode (Feb 02), Jerry McAllister said:
 On Fri, Feb 02, 2007 at 10:36:37AM -0600, Dan Nelson wrote:
  In the last episode (Feb 02), Robert Fitzpatrick said:
   I use the following command on our CentOS Linux servers to find
   out if the system is ready for the daylight savings changes
   coming up, but it does not seem to work the same on our FreeBSD
   5.4 and 6.1 servers. How can I do this? I see the zdump command
   and the man page seems to suggest the same usage, but...
   
   esmtp# zdump -v US/Eastern | grep 2007
   esmtp# zdump -v US/Eastern
   US/Eastern  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC 
   isdst=0 gmtoff=0
   US/Eastern  Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC 
   isdst=0 gmtoff=0
   US/Eastern  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC 
   isdst=0 gmtoff=0
   US/Eastern  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC 
   isdst=0 gmtoff=0
 
 I don't know how to read this.  There was another command I saw a while
 back that gave similar looking information, but actually put out something
 for 2007.   But, I can't find that mesage at the moment.
 
  That means you need to update your zoneinfo tables.  You can also use
  the date command to see if you need updating:
  
  date -r 1173679260
  
  If that prints Mon Mar 12 02:01:00 EST 2007 you know you need to
  update.
 
 Are you sure?   I see the EST where mine says EDT, but mine gives the
 exact same date/time information as you show above outside of the EST.
 
 If I subtract out exactly one day (86400 seconds) I get:
   Sun Mar 11 01:01:00 EST 2007which is just 59 minutes before
 the changeover.
 
 Then, if I add an hour (3600 seconds) I get:
   Sun Mar 11 03:01:00 EDT 2007

So you're saying that for dates on March 11 after 2AM, you get EDT, but
on March 12 it's back to EST?  That doesn't make sense :)  I get:

$ TZ=America/New_York ; export TZ
$ date -r 1173592860
Sun Mar 11 01:01:00 EST 2007
$ date -r 1173596460
Sun Mar 11 03:01:00 EDT 2007
$ date -r 1173679260
Mon Mar 12 02:01:00 EDT 2007
$ 

 So, I would expect the non-updated system to give:
   Mon Mar 12 01:01:00 EST 2007

Yes, that's what a system without the updated zoneinfo should print, I
think.
 
 Or is something else really messed up?
 My system seems to be giving the correct current date/time.

-- 
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: Korn shell script Question

2007-02-02 Thread Dak Ghatikachalam

On 2/2/07, Kris Maglione [EMAIL PROTECTED] wrote:


On Fri, Feb 02, 2007 at 11:10:02AM -0500, Dak Ghatikachalam wrote:
{ while cat /tmp/availspace.$$; do false; done } |
exec 5p
cat  /tmp/reprocesses.$$|awk '/DATAFILE/ { print $0 }'|tr -d ' '|
while read file_b
do
read -u5 file_a
echo $file_b $file_a
done /tmp/reprocessrecset.$$

exec 5-

this what you meant ?

It doesn't matter where you put the redirects, so long as they're in
order and you wind up closing the coprocess's standard output so that it
exits. It's more a matter of style and taste than anything. Here are
some more options if you're interested:

As long as you haven't started any other background jobs, this would
work in place of the final 'exec 5-':
kill -INT %+

Or, after you start the coprocess, you can store its PID, and kill that
later:
copid=$!
...
kill -INT $copid

Again, it's a matter of style and taste. If it's not to be part of a
long running script, though, don't even worry about it.



Kris,

That is great , Thanks  a lot for your  input and insight.

It just amazes me how powerful a korn shell script in general  any Unix
shell, process handling  can be.

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


Re: Determining daylight savings changes on BSD

2007-02-02 Thread Jerry McAllister
On Fri, Feb 02, 2007 at 01:18:14PM -0600, Dan Nelson wrote:

 In the last episode (Feb 02), Jerry McAllister said:
  On Fri, Feb 02, 2007 at 10:36:37AM -0600, Dan Nelson wrote:
   In the last episode (Feb 02), Robert Fitzpatrick said:
  
 some deleted

  I don't know how to read this.  There was another command I saw a while
  back that gave similar looking information, but actually put out something
  for 2007.   But, I can't find that mesage at the moment.
  
   That means you need to update your zoneinfo tables.  You can also use
   the date command to see if you need updating:
   
   date -r 1173679260
   
   If that prints Mon Mar 12 02:01:00 EST 2007 you know you need to
   update.
  
  Are you sure?   I see the EST where mine says EDT, but mine gives the
  exact same date/time information as you show above outside of the EST.
  
  If I subtract out exactly one day (86400 seconds) I get:
Sun Mar 11 01:01:00 EST 2007which is just 59 minutes before
  the changeover.
  
  Then, if I add an hour (3600 seconds) I get:
Sun Mar 11 03:01:00 EDT 2007
 
 So you're saying that for dates on March 11 after 2AM, you get EDT, but
 on March 12 it's back to EST?  That doesn't make sense :)  I get:

No.  For March 12 I get what I expect - EDT.

 
 $ TZ=America/New_York ; export TZ
 $ date -r 1173592860
 Sun Mar 11 01:01:00 EST 2007
 $ date -r 1173596460
 Sun Mar 11 03:01:00 EDT 2007
 $ date -r 1173679260
 Mon Mar 12 02:01:00 EDT 2007
 $ 

Yes, that is exactly what I get and that seems right to me.
I was just questioning the one first posted above that was:
  date -r 1173679260resulting in:
  Mon Mar 12 02:01:00 EST 2007
That would be the EDT figures, except it is labeled EST
But, if it was really EST (and thus need the zonefile updated)
I thought it would say:
  Mon Mar 12 01:01:00 EST 2007
 
  So, I would expect the non-updated system to give:
Mon Mar 12 01:01:00 EST 2007
 
 Yes, that's what a system without the updated zoneinfo should print, I
 think.

OK.   So the earlier post must have been a typo.

jerry

  
  Or is something else really messed up?
  My system seems to be giving the correct current date/time.
 
 -- 
   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: php 5.2.0... go boom!

2007-02-02 Thread Spil Oss

Hi Jonathan,

Dunno if you managed to solve it, but I found out what my problem was.

My kernel config has INET6 commented out
My /etc/make.conf has NO_INET6

After adding WITHOUT_IPV6 to my /etc/make.conf, a newly built php 5.2
runs fine (need to check with suhosin patch)

Kind regards,

Spil

PS. At least this will come up searches now!

On 08/11/06, Jonathan Horne [EMAIL PROTECTED] wrote:

On Tuesday 07 November 2006 21:08, Jonathan Horne wrote:
 well, im franticly researching that bit of text that has flashed by during
 countless portupgrades... backing up previous version.  right about now,
 i would LOVE to have php 5.1.6_3 back...

 1) anyone else have bad luck with the upgrade to 5.2.0?  my httpd-error
 logs are filling with this:

 [Tue Nov 07 20:49:09 2006] [notice] child pid 58928 exit signal
 Segmentation fault (11

 2) can anyone shed light on the fabled way of backing out of a portupgrade
 gone awry?

 thanks,
 jonathan

well for the moment, lucky for me, i have backups like a good boy.  for now, i
just reloaded last fridays copy of lang/php5 lang/php5-extensions, and so
far, it seems to be rebuilding 5.1.6_3 without complaint.

whew!  the sad part, is i accidently kicked off a portupgrade without thinking
about what box i was on!  after it was started, i didnt want to stop for fear
of damage it would cause.

*shakes head*

well i hope others have better luck than me with the new php5!

cheers,
jonathan
___
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]


FreeBSD6.2 DIY wireless AP?

2007-02-02 Thread Roger Olofsson

Dear mailing list,

One of the many ideas, inspired by FreeBSD, that passed through my head 
is the one about making my own wireless access point using an old 
computer with FreeBSD and a wireless nic.


First question, will a Fujitsu USB D1075 wireless nic work for this purpose?

Second question, any pointers to how to make this small project happen 
would be appreciated. I've googled and found some but I like to read up 
on different ideas before I decide where to go. I would prefer to use 
ipfilter since I've been using that beast for quite some years now, but 
I might as well take a closer look at pf if recommended enough.


Thanks in advance!

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


Re: Determining daylight savings changes on BSD

2007-02-02 Thread Dan Nelson
In the last episode (Feb 02), Jerry McAllister said:
 On Fri, Feb 02, 2007 at 01:18:14PM -0600, Dan Nelson wrote:
  $ TZ=America/New_York ; export TZ
  $ date -r 1173592860
  Sun Mar 11 01:01:00 EST 2007
  $ date -r 1173596460
  Sun Mar 11 03:01:00 EDT 2007
  $ date -r 1173679260
  Mon Mar 12 02:01:00 EDT 2007
  $ 
 
 Yes, that is exactly what I get and that seems right to me.
 I was just questioning the one first posted above that was:
   date -r 1173679260resulting in:
   Mon Mar 12 02:01:00 EST 2007
 That would be the EDT figures, except it is labeled EST
 But, if it was really EST (and thus need the zonefile updated)
 I thought it would say:
   Mon Mar 12 01:01:00 EST 2007

Probably a bad cut'n'paste on my part.  The important part is whether
there's a D in the zone name.

-- 
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: FreeBSD6.2 DIY wireless AP?

2007-02-02 Thread Gable Barber

On 2/2/07, Roger Olofsson [EMAIL PROTECTED] wrote:

Dear mailing list,

One of the many ideas, inspired by FreeBSD, that passed through my head
is the one about making my own wireless access point using an old
computer with FreeBSD and a wireless nic.

First question, will a Fujitsu USB D1075 wireless nic work for this purpose?



The best place to look, at least initially is:

http://www.freebsd.org/releases/6.2R/hardware-i386.html#WLAN


Second question, any pointers to how to make this small project happen
would be appreciated. I've googled and found some but I like to read up
on different ideas before I decide where to go. I would prefer to use
ipfilter since I've been using that beast for quite some years now, but
I might as well take a closer look at pf if recommended enough.



Ive done this in the past, and I found many resources (howto's
walkthroughs, etc.) available online. There are many different ways to
do it, depending on what your needs are.

My suggestion would be to find a wireless nic, that is well supported,
and go from there. Fr me, once I had a nicely supported card, the rest
was relatively easy.


Thanks in advance!

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



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


Re: FreeBSD6.2 DIY wireless AP?

2007-02-02 Thread Kris Maglione

On Fri, Feb 02, 2007 at 09:07:52PM +0100, Roger Olofsson wrote:

First question, will a Fujitsu USB D1075 wireless nic work for this purpose?

Second question, any pointers to how to make this small project happen 
would be appreciated. I've googled and found some but I like to read up 
on different ideas before I decide where to go. I would prefer to use 
ipfilter since I've been using that beast for quite some years now, but 
I might as well take a closer look at pf if recommended enough.


If I recall correctly, only cards using the PRISM chipset support access 
point mode. You might have a look at the m0n0wall project: 
http://m0n0.ch/wall/


It's a FreeBSD based firewall that's designed to work like an appliance 
and works very well with low-power, flash-based PCs. Soekris 
(soekris.com) makes several mini-computers with PCMCIA slots that will 
accept most wireless cards and run well on m0n0wall.

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


Re: Recovering a file on an msdosfs partition

2007-02-02 Thread youshi10

On Fri, 2 Feb 2007, Chuck Swiger wrote:


Tore Lund wrote:

The thing that should never, ever happen did happen yesterday.  I lost a
file and was not able to recover it.  ROX-filer said NewFile where I
should have seen a familiar filename.

[ ... ]

My question is whether I could have done anything else to make FreeBSD
correct the goof it had made.


Sure.  People normally make backups of the data they care about in order to 
avoid losing that data if a problem happens.


(I don't know what ROX-filer is, but it's not part of FreeBSD.)

--
-Chuck


Rox filer should be in ports; it's a file manager that some use to take care of 
their files.

Chuck's right though--you should back up your data regularly if it's mission 
critical.
-Garrett


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


Re: Help! Sata controller reset failure after 6.2 upgrade!

2007-02-02 Thread youshi10

On Fri, 2 Feb 2007, Steve Franks wrote:


Everything looks spiffy after my upgrade except all my sata disks are
gone.  Thank goodness the os in on a pata controller:

atapci1: AcerLabs M5287 SATA150 controller port
0xec00-0xec0f,0xe880-0xe887,0xe800-0xe80f,0xe480-0xe487,0xe400-0xe41f
mem 0xd800-0xdbff irq 21 at device 31.1 on pci0
atapci1: AHCI controller reset failure
device_attach: atapci1 attach returned 6

So, I booted the 6.2 iso to find identical behavior, so it is not my
mistake in the upgrade process (unless the mistake was to upgrade at
all).

Thanks,


What version did you upgrade from and what does your kernel look like?
-Garrett

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


Re: Help! Sata controller reset failure after 6.2 upgrade!

2007-02-02 Thread Steve Franks

Upgraded from 6.1 release to 6.2 release.  Kernel is generic, which is
to say I'm pretty much a newbie, haven't hacked anything.  I can
configure unix reasonably well, but I haven't tweaked it. If there are
specific files you'd like a look at besides the dmesg output, you'll
have to name them.

Steve

On 2/2/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

On Fri, 2 Feb 2007, Steve Franks wrote:

 Everything looks spiffy after my upgrade except all my sata disks are
 gone.  Thank goodness the os in on a pata controller:

 atapci1: AcerLabs M5287 SATA150 controller port
 0xec00-0xec0f,0xe880-0xe887,0xe800-0xe80f,0xe480-0xe487,0xe400-0xe41f
 mem 0xd800-0xdbff irq 21 at device 31.1 on pci0
 atapci1: AHCI controller reset failure
 device_attach: atapci1 attach returned 6

 So, I booted the 6.2 iso to find identical behavior, so it is not my
 mistake in the upgrade process (unless the mistake was to upgrade at
 all).

 Thanks,

What version did you upgrade from and what does your kernel look like?
-Garrett

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




--
Steve Franks, KE7BTE
Staff Engineer
La Palma Devices, LLC
http://www.lapalmadevices.com
(520) 312-0089
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


trouble using raidtest on gstripe array

2007-02-02 Thread Peter
On 6.2 STABLE GENERIC, I have set up RAID0 using gstripe on two SATA 
drives and installed benchmarks/raidtest for testing.

The array is known as /dev/stripe/data.

These were my steps:

# export mediasize=`diskinfo /dev/stripe/data | awk '{print $3}'`
# export sectorsize=`diskinfo /dev/stripe/data | awk '{print $2}'`
# raidtest genfile -s $mediasize -S $sectorsize -n 5
# ls
-rw-r--r--  1 root  super   781K Jan 27 08:42 raidtest.data
# raidtest test -d /dev/stripe/data -n 10 raidtest.data

raidtest: Cannot open 'raidtest.data' device: Operation not permitted

# ktrace raidtest test -d /dev/stripe/data -n 10 raidtest.data
# kdump

  1222 raidtest CALL  open(0xbfbfed3f,0,0x8049e6c)
  1222 raidtest NAMI  raidtest.data
  1222 raidtest RET   open 3
  1222 raidtest CALL  fstat(0x3,0xbfbfeb30)
  1222 raidtest RET   fstat 0
  1222 raidtest CALL  open(0xbfbfed28,0x10002,0x8049e6c)
  1222 raidtest NAMI  /dev/stripe/data
  1222 raidtest RET   open -1 errno 1 Operation not permitted
  1222 raidtest CALL  write(0x2,0xbfbde3d0,0xa)
  1222 raidtest GIO   fd 2 wrote 10 bytes
       raidtest: 
  1222 raidtest RET   write 10/0xa
  1222 raidtest CALL  write(0x2,0xbfbde3f0,0x22)
  1222 raidtest GIO   fd 2 wrote 34 bytes
       Cannot open 'raidtest.data' device
  1222 raidtest RET   write 34/0x22
  1222 raidtest CALL  write(0x2,0x2813ed98,0x2)
  1222 raidtest GIO   fd 2 wrote 2 bytes
       : 
  1222 raidtest RET   write 2
  1222 raidtest CALL  write(0x2,0xbfbde3d0,0x18)
  1222 raidtest GIO   fd 2 wrote 24 bytes
       Operation not permitted
       
  1222 raidtest RET   write 24/0x18
  1222 raidtest CALL  exit(0x1)

---

Looks like the gstripe label (/dev/stripe/data) is not available 
somehow.  Is there any known workaround?

---

Port info:

This utility can be used to test performance of storage devices.
First, one need to generate file with I/O operations:

        # set mediasize=`diskinfo /dev/device | awk '{print $3}'`
        # set sectorsize=`diskinfo /dev/device | awk '{print $2}'`
        # raidtest genfile -s $mediasize -S $sectorsize -n 5

It will generate test which contains 5 I/O requests with random
size and random offset. Size is a multiple of sectorsize, but less than 
or
equal to 128kB (maxium size of I/O request). I/O request type (READ or 
WRITE)
is random as well.
All test data are stored in 'raidtest.data' file in current working 
directory.

To run test, one should type:

        # raidtest test -d /dev/device -n 10

This command will read test data from 'raidtest.data' file, run 10 
processes
which will be used to send requests to the given device in parallel.
When test is finished you will see statistics:

        Bytes per second: x
        Requests per second: y

If you compare performance of two storage devices, use the same data 
file!

usage: raidtest genfile [-frw] -s mediasize [-S sectorsize] -n 
nrequests [file]
       raidtest test [-Rrw] -d device [-n processes] [file]

where:
        -d device       path to tested device
        -f              if raidtest.data file or specified file already 
exists,
                        remove it and create new one
        -n nrequests    number of requests to generate
        -n processes    number of processes to run
        -r              generate/run only READ requests
        -R              generate random data for write requests
        -s              size of destination device
        -S              sector size of destination device
        -w              generate/run only WRITE requests
        file            path to the data file instead of 
default 'raidtest.data'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problem of segmentation fault with a lot of KDE programs

2007-02-02 Thread Gregory Nou

Hi again !
Replying to myself, as I made some progress, and would like to share them.
I put the line :
libpthread.so.2   libpthread.so.1
(which are /lib/libpthread.so.2 and /usr/local/lib/compat/libpthread.so.1)
in /etc/libmap.conf and now, kdevelop, kdvi and amarok work... but
with this tuning, Terminal and Mozilla are not working, and I suspect
that it's the case for lot of other programs.
Error is :
/libexec/ld-elf.so.1: /usr/local/lib/compat/libpthread.so.1: Undefined
symbol __malloc_lock

So how could I make it work ?
How could I help the system to choose between both ?
I tried to put things like :
[/usr/local/bin/kdevelop-bin]
libpthread.so.2   libpthread.so.1
in libmap.conf, but it does not work for all the programs, and that
force me to add a lot of things manually to the libmap.conf file,
which is not that good...

Thanks !
Grégory


2007/2/1, Gregory Nou [EMAIL PROTECTED]:

Hi,

After trying to figure out how to solve the problem I have on my own,
I'd like to submit it to you, to get some hints.
Here it is: almost all programs related to kde (kdevelop, kghosviewer,
kile, ...) and gaim are segfaulting, because of a problem which seems
to be related to pthread.
Please note that everything else is working fine : xfce-4.4, anjuta,
firefox, etc...

FreeBSD 7.0-CURRENT #6: Fri Feb  2 13:47:26 EST 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYSMP  i386

running gdb kile :

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 100060]
0x29d0f1f9 in pthread_join () from /lib/libpthread.so.2
(gdb) bt
#0  0x29d0f1f9 in pthread_join () from /lib/libpthread.so.2
#1  0x29d0374a in pthread_self () from /lib/libpthread.so.2
#2  0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2
#3  0x29d0f2b2 in pthread_join () from /lib/libpthread.so.2
#4  0x29d0374a in pthread_self () from /lib/libpthread.so.2
#5  0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2
#6  0x29d0f2b2 in pthread_join () from /lib/libpthread.so.2
#7  0x29d0374a in pthread_self () from /lib/libpthread.so.2
#8  0x29d03dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2
...

and it goes far, repeating it ad vitam. (using ktrace and kdump, wc -l
outputs 637047)
By the way, the equivalent in the ktrace part is :
 2913 kile CALL  getpid
 2913 kile RET   getpid 2913/0xb61
 2913 kile CALL  getpid
 2913 kile RET   getpid 2913/0xb61
 2913 kile CALL  getpid
 2913 kile RET   getpid 2913/0xb61

Same for kdevelop-bin and all the kde-related who segfault (because
some rare k(something) work, like konsole oder KDE System Guard)

For gaim, the error message is a bit different, but bt gives the same output :

Program received signal SIGSEGV, Segmentation fault.
[Switching to LWP 100079]
0x28b38d3e in sysctl () from /lib/libc.so.6
(gdb) bt
#0  0x28b38d3e in sysctl () from /lib/libc.so.6
#1  0x28a852b2 in pthread_join () from /lib/libpthread.so.2
#2  0x28a7974a in pthread_self () from /lib/libpthread.so.2
#3  0x28a79dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2
#4  0x28a852b2 in pthread_join () from /lib/libpthread.so.2
#5  0x28a7974a in pthread_self () from /lib/libpthread.so.2
#6  0x28a79dfc in pthread_rwlock_unlock () from /lib/libpthread.so.2

I experience these problems for more than a week now. Everything is
up-to-date on my system (src + ports) - last cvsup a few hours ago. I
recompiled everything a few time.
As I did not see feedback on forums or on mailing lists, I assume I am
the only one who has this problem. Which makes me feel a bit lonely ;)

Could you please me help me ? Also, I would be glad to provide any
further information like dmesg, bt, ktrace, whatever, ...

Thanks !
Gregory


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


Re: Easy USB-drive automounter and filemanager for nontechies?

2007-02-02 Thread Dave
On Friday 02 February 2007 00:52, Chris Shenton wrote:
 I'm a longtime FreeBSD user but my S.O. just barely uses the machines
 -- Pine and Firefox mostly.  Doesn't even know she has a homedir or
 that there's a bunch of stuff in it.

 She now has a digital recorder with a 1GB CF card that interfaces to
 computers with a USB cable and she needs to get files off of.  She can
 plug it into USB OK but -- as her sysadm -- I have to mount it and
 copy the files off, then unmount.

 I'm looking for something like she'd get on a Mac or PC:

 1. a way to automount the USB 'drive' when she plugs in
 2. a visual filemanager or some other friendly way for her to see
files and copy them off so she can mail them or whatnot.
 3. a way to safely unmount the USB device when she's done

 I'm starting to play with the user-priv mounting, then will look at
 telling usbd to mount the drive when it sees it... Is this is the
 right technical solution?

 I've got no idea about friendly GUI/filemanager with drag-n-drop or
 other easy way to get files off.  She's using simple olde FVWM2 now
 and I'd prefer not to load up a massive GUI like KDE or Gnome.  I just
 don't know what's out there, being a command line dinosuar myself.

 Any recommendations?

 Thanks.

Not specifically what you are asking for but you might consider a shell script 
behind a desktop/menu icon to mount the device, sync the files with a 
directory on the HDD and then unmount it.  That way she doesn;t have to worry 
about pulling it while it's mounted amd can work in the safe environment of 
the HDD.

Something like:
(cobbled up from a couple of scripts I use, could use more error trapping)

#find and mount device
camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00  /dev/null 21
if [ $? -eq 0 ]; then
  dev=`camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00 | 
grep -o 'da[0-9][0-9]*'`
  if [ `df | grep $dev | grep -o 'da[0-9][0-9]*'` ]; then
echo MP3Player already mounted
  else
mount_msdosfs /dev/${dev} /home/dave/mp3player ;
echo Mounted MP3Player to ~/mp3player as /dev/${dev}
  fi
else
  echo MP3Player not plugged in
fi

#sync directory with device
rsync -rv --ignore-existing --delete /home1/audiobooks/0mp3/ ~/mp3player

#unmount device
if [ `df | grep mp3player | grep -o 'da[0-9][0-9]*'` ]; then
  umount ~/mp3player ; i=1 ;
  echo MP3Player safely un-mounted
fi

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


Re: Easy USB-drive automounter and filemanager for nontechies?

2007-02-02 Thread dgmm
On Friday 02 February 2007 00:52, Chris Shenton wrote:
 I'm a longtime FreeBSD user but my S.O. just barely uses the machines
 -- Pine and Firefox mostly.  Doesn't even know she has a homedir or
 that there's a bunch of stuff in it.

 She now has a digital recorder with a 1GB CF card that interfaces to
 computers with a USB cable and she needs to get files off of.  She can
 plug it into USB OK but -- as her sysadm -- I have to mount it and
 copy the files off, then unmount.

 I'm looking for something like she'd get on a Mac or PC:

 1. a way to automount the USB 'drive' when she plugs in
 2. a visual filemanager or some other friendly way for her to see
files and copy them off so she can mail them or whatnot.
 3. a way to safely unmount the USB device when she's done

 I'm starting to play with the user-priv mounting, then will look at
 telling usbd to mount the drive when it sees it... Is this is the
 right technical solution?

 I've got no idea about friendly GUI/filemanager with drag-n-drop or
 other easy way to get files off.  She's using simple olde FVWM2 now
 and I'd prefer not to load up a massive GUI like KDE or Gnome.  I just
 don't know what's out there, being a command line dinosuar myself.

 Any recommendations?

 Thanks.

Not specifically what you are asking for but you might consider a shell script 
behind a desktop/menu icon to mount the device, sync the files with a 
directory on the HDD and then unmount it.  That way she doesn;t have to worry 
about pulling it while it's mounted amd can work in the safe environment of 
the HDD.

Something like:
(cobbled up from a couple of scripts I use, could use more error trapping)

#find and mount device
camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00  /dev/null 21
if [ $? -eq 0 ]; then
  dev=`camcontrol devlist | grep USB2.0\ \(FS\)\ FLASH\ DISK\ 1.00 | 
grep -o 'da[0-9][0-9]*'`
  if [ `df | grep $dev | grep -o 'da[0-9][0-9]*'` ]; then
echo MP3Player already mounted
  else
mount_msdosfs /dev/${dev} /home/dave/mp3player ;
echo Mounted MP3Player to ~/mp3player as /dev/${dev}
  fi
else
  echo MP3Player not plugged in
fi

#sync directory with device
rsync -rv --ignore-existing --delete /home1/audiobooks/0mp3/ ~/mp3player

#unmount device
if [ `df | grep mp3player | grep -o 'da[0-9][0-9]*'` ]; then
  umount ~/mp3player ; i=1 ;
  echo MP3Player safely un-mounted
fi


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


Problem with mod_fcgid inside a jail.

2007-02-02 Thread Vincent Bolinard

Hi,

I'm getting trouble if I run Apache with mod_fcgid in a jail.

If I run Apache outside the jail, it works. But, here is the error
message when I start Apache inside a jail :

[emerg] (2)No such file or directory: mod_fcgid: Can't create share
memory for size 316628 byte

I tried to set security.jail.sysvipc_allowed to 1, but there's still
the same error message.
Here is the command I use to run jail :

# jail /var/chroot/httpd httpd.domain.net 192.168.1.3 /usr/local/sbin/httpd
(httpd.domain.net is not the real fqdn)

I'm running FreeBSD 6.2-RELEASE, Apache 2.0.59 and mod_fcgid 1.09.

I don't know if this is a bug, or if I forgot something.

Can somebody help me ?

Thank you.
___
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 mod_fcgid inside a jail.

2007-02-02 Thread Ivan Voras
Vincent Bolinard wrote:

 [emerg] (2)No such file or directory: mod_fcgid: Can't create share
 memory for size 316628 byte

 I'm running FreeBSD 6.2-RELEASE, Apache 2.0.59 and mod_fcgid 1.09.

Try running v1.10, here's what it says in changelog:

3. Use anonymous shared memeory to make OS X happy. (Thank andkjar at
obtech.net for the patch.)

Maybe it will help you.



signature.asc
Description: OpenPGP digital signature


Re: FreeBSD6.2 DIY wireless AP?

2007-02-02 Thread Erik Trulsson
On Fri, Feb 02, 2007 at 03:30:53PM -0500, Kris Maglione wrote:
 On Fri, Feb 02, 2007 at 09:07:52PM +0100, Roger Olofsson wrote:
 First question, will a Fujitsu USB D1075 wireless nic work for this 
 purpose?
 
 Second question, any pointers to how to make this small project happen 
 would be appreciated. I've googled and found some but I like to read up 
 on different ideas before I decide where to go. I would prefer to use 
 ipfilter since I've been using that beast for quite some years now, but 
 I might as well take a closer look at pf if recommended enough.
 
 If I recall correctly, only cards using the PRISM chipset support access 
 point mode. You might have a look at the m0n0wall project: 
 http://m0n0.ch/wall/

Wireless NICs with Atheros chipsets also work fine as AP. 


 
 It's a FreeBSD based firewall that's designed to work like an appliance 
 and works very well with low-power, flash-based PCs. Soekris 
 (soekris.com) makes several mini-computers with PCMCIA slots that will 
 accept most wireless cards and run well on m0n0wall.


-- 
Insert your favourite quote here.
Erik Trulsson
[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: Problem with mod_fcgid inside a jail.

2007-02-02 Thread Josh Tolbert
On Fri, Feb 02, 2007 at 10:51:32PM +0100, Ivan Voras wrote:
 Vincent Bolinard wrote:
 
  [emerg] (2)No such file or directory: mod_fcgid: Can't create share
  memory for size 316628 byte
 
  I'm running FreeBSD 6.2-RELEASE, Apache 2.0.59 and mod_fcgid 1.09.
 
 Try running v1.10, here's what it says in changelog:
 
 3. Use anonymous shared memeory to make OS X happy. (Thank andkjar at
 obtech.net for the patch.)
 
 Maybe it will help you.

Update to 2.0 will be coming soon...Maybe this weekend, if I find some time. I
have no idea if it'll fix the problem, but 1.x is dead either way.

Thanks,

Josh
-- 
Josh Tolbert
[EMAIL PROTECTED]  ||  http://www.puresimplicity.net/~hemi/

Security is mostly a superstition. It does not exist in nature, nor
do the children of men as a whole experience it. Avoiding danger
is no safer in the long run than outright exposure. Life is either
a daring adventure, or nothing.
-- Helen Keller
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD6.2 DIY wireless AP?

2007-02-02 Thread Brian

Kris Maglione wrote:

On Fri, Feb 02, 2007 at 09:07:52PM +0100, Roger Olofsson wrote:
First question, will a Fujitsu USB D1075 wireless nic work for this 
purpose?


Second question, any pointers to how to make this small project 
happen would be appreciated. I've googled and found some but I like 
to read up on different ideas before I decide where to go. I would 
prefer to use ipfilter since I've been using that beast for quite 
some years now, but I might as well take a closer look at pf if 
recommended enough.


If I recall correctly, only cards using the PRISM chipset support 
access point mode. You might have a look at the m0n0wall project: 
http://m0n0.ch/wall/


It's a FreeBSD based firewall that's designed to work like an 
appliance and works very well with low-power, flash-based PCs. Soekris 
(soekris.com) makes several mini-computers with PCMCIA slots that will 
accept most wireless cards and run well on m0n0wall.

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

I believe Linux people are doing this with Soekris boards as well.

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


Fast SCSI RAID controller

2007-02-02 Thread Josef Grosch
Can anyone suggest a fast SCSI RAID controller for FreeBSD 6.2 ? Our vendor
is having trouble with the latest Adaptec


Josef

-- 
Josef Grosch   | Another day closer to a | FreeBSD 6.2
[EMAIL PROTECTED] |   Micro$oft free world  | Berkeley, Ca.


pgpoSZ9E60HbC.pgp
Description: PGP signature


Re: Determining daylight savings changes on BSD

2007-02-02 Thread Robert Fitzpatrick
On Fri, 2007-02-02 at 10:36 -0600, Dan Nelson wrote:
 In the last episode (Feb 02), Robert Fitzpatrick said:
  I use the following command on our CentOS Linux servers to find out
  if the system is ready for the daylight savings changes coming up,
  but it does not seem to work the same on our FreeBSD 5.4 and 6.1
  servers. How can I do this? I see the zdump command and the man page
  seems to suggest the same usage, but...
  
  esmtp# zdump -v US/Eastern | grep 2007
  esmtp# zdump -v US/Eastern
  US/Eastern  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC 
  isdst=0 gmtoff=0
  US/Eastern  Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC 
  isdst=0 gmtoff=0
  US/Eastern  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC 
  isdst=0 gmtoff=0
  US/Eastern  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC 
  isdst=0 gmtoff=0
 
 That means you need to update your zoneinfo tables.  You can also use
 the date command to see if you need updating:
 
 date -r 1173679260
 

Yes, thanks, looks like I need to do that, how do I update my zoneinfo
tables?

esmtp# zdump -v EST5EDT | grep '200[67]'
EST5EDT  Sun Apr  2 06:59:59 2006 UTC = Sun Apr  2 01:59:59 2006 EST isdst=0 
gmtoff=-18000
EST5EDT  Sun Apr  2 07:00:00 2006 UTC = Sun Apr  2 03:00:00 2006 EDT isdst=1 
gmtoff=-14400
EST5EDT  Sun Oct 29 05:59:59 2006 UTC = Sun Oct 29 01:59:59 2006 EDT isdst=1 
gmtoff=-14400
EST5EDT  Sun Oct 29 06:00:00 2006 UTC = Sun Oct 29 01:00:00 2006 EST isdst=0 
gmtoff=-18000
EST5EDT  Sun Apr  1 06:59:59 2007 UTC = Sun Apr  1 01:59:59 2007 EST isdst=0 
gmtoff=-18000
EST5EDT  Sun Apr  1 07:00:00 2007 UTC = Sun Apr  1 03:00:00 2007 EDT isdst=1 
gmtoff=-14400
EST5EDT  Sun Oct 28 05:59:59 2007 UTC = Sun Oct 28 01:59:59 2007 EDT isdst=1 
gmtoff=-14400
EST5EDT  Sun Oct 28 06:00:00 2007 UTC = Sun Oct 28 01:00:00 2007 EST isdst=0 
gmtoff=-18000

-- 
Robert

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


Re: Determining daylight savings changes on BSD

2007-02-02 Thread Dan Nelson
In the last episode (Feb 02), Robert Fitzpatrick said:
 On Fri, 2007-02-02 at 10:36 -0600, Dan Nelson wrote:
  In the last episode (Feb 02), Robert Fitzpatrick said:
   I use the following command on our CentOS Linux servers to find
   out if the system is ready for the daylight savings changes
   coming up, but it does not seem to work the same on our FreeBSD
   5.4 and 6.1 servers. How can I do this? I see the zdump command
   and the man page seems to suggest the same usage, but...
   
   esmtp# zdump -v US/Eastern | grep 2007
   esmtp# zdump -v US/Eastern
   US/Eastern  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901 UTC 
   isdst=0 gmtoff=0
   US/Eastern  Sat Dec 14 20:45:52 1901 UTC = Sat Dec 14 20:45:52 1901 UTC 
   isdst=0 gmtoff=0
   US/Eastern  Mon Jan 18 03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC 
   isdst=0 gmtoff=0
   US/Eastern  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038 UTC 
   isdst=0 gmtoff=0
  
  That means you need to update your zoneinfo tables.  You can also use
  the date command to see if you need updating:
  
  date -r 1173679260
  
 
 Yes, thanks, looks like I need to do that, how do I update my zoneinfo
 tables?

Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of
the upgrade :)  If you don't want to upgrade, just install the
misc/zoneinfo port and rerun tzsetup.


-- 
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: SSH woes

2007-02-02 Thread Brian A. Seklecki

Don't login as root... It's not good practise, SSH on BSD by default does also
not allow for it.  Add your normal user to the wheel group, use that to login


The top Linux distros screw up a bunch of the ssh_config(5) and 
sshd_config(5) defaults.


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


Re: interpreting top output (computing n% cpu usage in actual megahertz)

2007-02-02 Thread pete wright

On 2/1/07, Mark Jayson Alvarez [EMAIL PROTECTED] wrote:

Hi,


My goal is to find out how much CPU a program consumes  when I execute it.
In the manual, it says I  can toggle from raw cpu mode to weighted cpu.
However, I can't still understand the difference between the two and how it
has something to
do with my goal. Suppose my computer has a 1.6Ghz pentium 4 processor.
I want to know how much is already in use or what percent. I also want to
know how much it has increased
when I run a particular program so that I can decide if this I can install
this program without affecting other
existing critical programs.


this link should be helpful regarding the cpu utilization:
http://students.cs.unipi.gr/pub/docs/sysadmin-1992-1998/html/v07/i05/a7.htm

from the article:
On AIX 4 systems, CPU% is computed by dividing the time the process
uses the CPU by the elapsed time of the process. For example, if a
process was started 60 minutes ago, and has so far used 60 seconds of
the CPU, then its CPU% is 1 2/3%. This is sometimes called the
weighted CPU%.

which i believe gives a rough idea of how a weighted cpu average is
calculated.  hopefully someone more familiar with bsd internals can
comment on how we arrive at this value.



The same goes with memory usage.. Free doesn't
mean that that are all my
memory left that is useable right?
The Description of Memory section just says:
Active: number of pages active
Inactive: number of pages inactive

and so on and so forth without telling what the heck does it mean when a
page is inactive and just what does pages
means..

Buf, Free, Wired, Cache... don't know what are these either.. Perhaps I
should consult wiki or google for this.



yea that might be a good place to start.  these are fairly common
terms used when talking about the state of memory in operating
systems.  another excellent source is this book:
http://www.amazon.com/Design-Implementation-FreeBSD-Operating-System/dp/0201702452

it's an excellent reference for any OS in my opinion, but is obviously
very pertinent to FreeBSD.

this URL may also be a decent place to start:
http://en.wikipedia.org/wiki/Memory_management

HTH
-pete

--
~~o0OO0o~~
Pete Wright
www.nycbug.org
NYC's *BSD User Group
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


305 GB hard drive reduced to 266 GB (why?)

2007-02-02 Thread Peter
I am installing a new 6.2 STABLE system and I am troubled by the amount 
of available disk space I'm getting on one of my IDE devices:

# df -h
Filesystem SizeUsed   Avail Capacity  Mounted on
...
...
/dev/ad1a  289G4.0K266G 0%/ad1

This drive is 320 GB by the manufacturer and thus I should theoretically 
have 305 GBs.  This is confirmed by dmesg:

ad1: 305244MB WDC WD3200JB-00KFA0 08.05J08 at ata0-slave UDMA33

Steps:

# fdisk -i /dev/ad1
# bsdlabel -w /dev/ad1
# newfs /dev/ad1a
# mount /dev/ad1a /ad1

Info:

# bsdlabel /dev/ad1
# /dev/ad1:
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a: 625140319   164.2BSD 2048 16384 28552
  c: 6251403350unused0 0

Thanks in advance for any pointers,

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


Backspaces converted to ^? -- want to get rid of ^? -_-...

2007-02-02 Thread youshi10

   Ok, this happens regularly on my FreeBSD box at home when I'm not su'ed 
in as root using vim, or the SuSe box at work when I VNC into it (using vim 
once again), and I'm frankly quite tired of lame control characters screwing up 
my day. Is there any way to fix this behavior so pressing backspace erases a 
character, not prints out a ^? character?

Thanks,
-Garrett

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


Re: 305 GB hard drive reduced to 266 GB (why?)

2007-02-02 Thread Peter A. Giessel
On 2007/02/02 14:39, Peter seems to have typed:
 I am installing a new 6.2 STABLE system and I am troubled by the amount 
 of available disk space I'm getting on one of my IDE devices:

Its in the FAQ:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#MANUFACTURER-DISK-SIZE
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Backspaces converted to ^? -- want to get rid of ^? -_-...

2007-02-02 Thread Bill Campbell
On Fri, Feb 02, 2007, [EMAIL PROTECTED] wrote:
   Ok, this happens regularly on my FreeBSD box at home when I'm not 
   su'ed in as root using vim, or the SuSe box at work when I VNC into 
   it (using vim once again), and I'm frankly quite tired of lame 
   control characters screwing up my day. Is there any way to fix this 
   behavior so pressing backspace erases a character, not prints out a 
   ^? character?

This is generally a function of your terminal emulator or xterm and is a
carryover from old DEC terminal's stupid keyboard mappings.

The attached XTerm file put in $HOME/XTerm will get xterms to send ctrl-h
from the backspace key.  Other programs like putty typically have a
keyboard configuration that permits setting the backspace key to send
either ctrl-H or a DEL character.

I leave it as an exercise for the student to figure out my other tweaks in
this file :-).

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software, LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``Microsoft IIS has more holes than a wheel of Swiss Cheese after a shotgun
blast'' -- John Dvorak
!
!!
!! SAMPLE .Xdefaults / app-defaults  RESOURCE SPECIFICATIONS FOR XTERM
!!
!
!
!
!!
!! set default tty mode.
!!
!
!XTerm*ttyModes: intr ^? erase ^H kill ^U
!
!
!
!!
!! modify mouse functionality so that Shift Btn1Down has the same
!! functionality as Btn2Down.
!!
!! The CtrlBtn2Down xterm window menu CANNOT be popped up using
!! Shift CtrlBtn1Down
!!
!
!*VT100*translations: #override\
! Shift Btn1Down: insert-selection(PRIMARY, CUT_BUFFER0) \n\
! Button1 Btn3Down: insert-selection(PRIMARY, CUT_BUFFER0)
!
!*VT100*Scrollbar*translations: #override\
! Shift Btn1Down:   StartScroll(Continuous) MoveThumb() NotifyThumb() \n\
! Shift Btn1Motion: MoveThumb() NotifyThumb() \n\
! Button1 Btn3Down:   StartScroll(Continuous) MoveThumb() NotifyThumb() 
\n\
! Button1 Btn3Motion: MoveThumb() NotifyThumb()
!
!
!
!!
!! menu resources
!!
!
!*SimpleMenu*BackingStore: NotUseful
!*SimpleMenu*menuLabel.font: 
-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso*-*
!*SimpleMenu*menuLabel.vertSpace:   100
!*SimpleMenu*HorizontalMargins: 16
!*SimpleMenu*Sme.height:16
!
!*SimpleMenu*Cursor: left_ptr
!*mainMenu.Label:  Main Options
!*mainMenu*securekbd*Label:  Secure Keyboard
!*mainMenu*allowsends*Label:  Allow SendEvents
!*mainMenu*logging*Label:  Log to File
!*mainMenu*redraw*Label:  Redraw Window
!*mainMenu*suspend*Label:  Send STOP Signal
!*mainMenu*continue*Label:  Send CONT Signal
!*mainMenu*interrupt*Label:  Send INT Signal
!*mainMenu*hangup*Label:  Send HUP Signal
!*mainMenu*terminate*Label:  Send TERM Signal
!*mainMenu*kill*Label:  Send KILL Signal
!*mainMenu*quit*Label:  Quit
!
!*vtMenu.Label:  VT Options
!*vtMenu*scrollbar*Label:  Enable Scrollbar
!*vtMenu*jumpscroll*Label:  Enable Jump Scroll
!*vtMenu*reversevideo*Label:  Enable Reverse Video
!*vtMenu*autowrap*Label:  Enable Auto Wraparound
!*vtMenu*reversewrap*Label:  Enable Reverse Wraparound
!*vtMenu*autolinefeed*Label:  Enable Auto Linefeed
!*vtMenu*appcursor*Label:  Enable Application Cursor Keys
!*vtMenu*appkeypad*Label:  Enable Application Keypad
!*vtMenu*scrollkey*Label:  Scroll to Bottom on Key Press
!*vtMenu*scrollttyoutput*Label:  Scroll to Bottom on Tty Output
!*vtMenu*allow132*Label: Allow 80/132 Column Switching
!*vtMenu*cursesemul*Label:  Enable Curses Emulation
!*vtMenu*visualbell*Label:  Enable Visual Bell
!*vtMenu*marginbell*Label:  Enable Margin Bell
!*vtMenu*altscreen*Label:  Show Alternate Screen
!*vtMenu*softreset*Label:  Do Soft Reset
!*vtMenu*hardreset*Label:  Do Full Reset
!*vtMenu*tekshow*Label:  Show Tek Window
!*vtMenu*tekmode*Label:  Switch to Tek Mode
!*vtMenu*vthide*Label:  Hide VT Window
!
!*fontMenu.Label:  VT Fonts
!*fontMenu*fontdefault*Label:   Default
!*fontMenu*font1*Label: 6x10
!*VT100*font1:  6x10
!*fontMenu*font2*Label: 6x12
!*VT100*font2:  6x12
!*fontMenu*font3*Label: 9x15
!*VT100*font3:  9x15
!*fontMenu*font4*Label: 10x20
!*VT100*font4:  10x20
!*fontMenu*fontescape*Label:Escape Sequence
!*fontMenu*fontsel*Label:   Selection
!!fontescape and fontsel overridden by application
!
!*tekMenu.Label:  Tek Options
!*tekMenu*tektextlarge*Label:  Large Characters
!*tekMenu*tektext2*Label:  #2 Size Characters
!*tekMenu*tektext3*Label:  #3 Size Characters
!*tekMenu*tektextsmall*Label:  Small Characters
!*tekMenu*tekpage*Label:  PAGE
!*tekMenu*tekreset*Label:  RESET
!*tekMenu*tekcopy*Label:  COPY
!*tekMenu*vtshow*Label:  Show VT Window
!*tekMenu*vtmode*Label:  Switch to VT Mode
!*tekMenu*tekhide*Label:  Hide Tek Window
!
*tek4014*fontLarge: 10x20
*tek4014*font2: 9x15
*tek4014*font3: 6x13
*tek4014*fontSmall: 6x10

XTerm*font: 10x20
XTerm*pointerShape: arrow
XTerm*termName: xterm
XTerm*blink:true
XTerm*loginShell:

Re: 305 GB hard drive reduced to 266 GB (why?)

2007-02-02 Thread Peter
Le Vendredi 2 Février 2007 18:46, Peter A. Giessel a écrit :
 On 2007/02/02 14:39, Peter seems to have typed:
  I am installing a new 6.2 STABLE system and I am troubled by the
  amount of available disk space I'm getting on one of my IDE
  devices:

 Its in the FAQ:
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#MANUF
ACTURER-DISK-SIZE

I already took account of manufacturer disk size.  However, I didn't 
know about the FreeBSD 8% rule which accounts for the discrepancy 
between my disk size of 289 GB and its available space of 266 GB.

So now my question becomes Where does FreeBSD get 289 from 305?.

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


Re: 305 GB hard drive reduced to 266 GB (why?)

2007-02-02 Thread Peter A. Giessel
On 2007/02/02 15:18, Peter seems to have typed:
 So now my question becomes Where does FreeBSD get 289 from 305?.

Well, for one thing, you never have 305GB.  1024MB = 1GB.

You only had 298GB UNFORMATTED.  Formatted, you had 289GB.  With
8% reserve, you're down to 266GB.

Remember the 2MB floppies? 2,000,000 bytes = 1.907MB UNFORMATTED.
1.44 MB formatted.  Same principle applies to all disks.  Formatting
takes space, but makes the disk usable.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


firefox, extensions, and *.php pages

2007-02-02 Thread Gary Kline
i've been experimenting with the firefox plugins in recent days,
and hhave slammed into something I don't understand.  Many web
pages are on domain are in pHP.  Now when I try to view myown
pages, I get a popup dialog named Opening that reads:

You have chosen to open 

[  ]  (blank)

which is a: appplication/x-httpd-php
from http://www.thought.org

  What should Firefox do with this file?

The one of three options *not* greyed out is:

(*) Save to Disk


What's going on?  And/or: how did I shoot myself in the foot?

thanks for any insights; a couple of these addon are useful...

gary




-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

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


Re: Fast SCSI RAID controller

2007-02-02 Thread Derek Ragona
Take a look at LSI controllers.  With any SCSI make sure you get one for 
the correct slot you have, i.e. PCI, PCI-X, etc.


-Derek


At 04:22 PM 2/2/2007, Josef Grosch wrote:

Can anyone suggest a fast SCSI RAID controller for FreeBSD 6.2 ? Our vendor
is having trouble with the latest Adaptec


Josef

--
Josef Grosch   | Another day closer to a | FreeBSD 6.2
[EMAIL PROTECTED] |   Micro$oft free world  | Berkeley, Ca.


--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.

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


Re: Backspaces converted to ^? -- want to get rid of ^? -_-...

2007-02-02 Thread youshi10

On Fri, 2 Feb 2007, Bill Campbell wrote:


On Fri, Feb 02, 2007, [EMAIL PROTECTED] wrote:

  Ok, this happens regularly on my FreeBSD box at home when I'm not
  su'ed in as root using vim, or the SuSe box at work when I VNC into
  it (using vim once again), and I'm frankly quite tired of lame
  control characters screwing up my day. Is there any way to fix this
  behavior so pressing backspace erases a character, not prints out a
  ^? character?


This is generally a function of your terminal emulator or xterm and is a
carryover from old DEC terminal's stupid keyboard mappings.

The attached XTerm file put in $HOME/XTerm will get xterms to send ctrl-h
from the backspace key.  Other programs like putty typically have a
keyboard configuration that permits setting the backspace key to send
either ctrl-H or a DEL character.

I leave it as an exercise for the student to figure out my other tweaks in
this file :-).

Bill
--
INTERNET:   [EMAIL PROTECTED]  Bill Campbell; Celestial Software, LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:(206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

``Microsoft IIS has more holes than a wheel of Swiss Cheese after a shotgun
blast'' -- John Dvorak


Hmmm... you have a lot of different tweaks in there.
I'll definitely implement the delete thing as soon as possible.
Thanks!
-Garrett


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


configuring all dependancies before making in ports

2007-02-02 Thread Jim Stapleton

Quick question, I'm trying to build a couple of packages that take a
long time to build, even longer because they just stop when it's time
to configure something. That's a problem if it's configure time, say
when I need to sleep, or am at work.

Is there a way to have the make run through all the dependancies that
need build, running their configuration menus /before/ doing any of
the builds?

i.e.
$ cd /usr/ports/x11/kde3
$ make -dependancies=configure install clean


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


Re: Determining daylight savings changes on BSD

2007-02-02 Thread John Nielsen
On Friday 02 February 2007 17:35, Dan Nelson wrote:
 In the last episode (Feb 02), Robert Fitzpatrick said:
  On Fri, 2007-02-02 at 10:36 -0600, Dan Nelson wrote:
   In the last episode (Feb 02), Robert Fitzpatrick said:
I use the following command on our CentOS Linux servers to find
out if the system is ready for the daylight savings changes
coming up, but it does not seem to work the same on our FreeBSD
5.4 and 6.1 servers. How can I do this? I see the zdump command
and the man page seems to suggest the same usage, but...
   
esmtp# zdump -v US/Eastern | grep 2007
esmtp# zdump -v US/Eastern
US/Eastern  Fri Dec 13 20:45:52 1901 UTC = Fri Dec 13 20:45:52 1901
UTC isdst=0 gmtoff=0 US/Eastern  Sat Dec 14 20:45:52 1901 UTC = Sat
Dec 14 20:45:52 1901 UTC isdst=0 gmtoff=0 US/Eastern  Mon Jan 18
03:14:07 2038 UTC = Mon Jan 18 03:14:07 2038 UTC isdst=0 gmtoff=0
US/Eastern  Tue Jan 19 03:14:07 2038 UTC = Tue Jan 19 03:14:07 2038
UTC isdst=0 gmtoff=0
  
   That means you need to update your zoneinfo tables.  You can also use
   the date command to see if you need updating:
  
   date -r 1173679260
 
  Yes, thanks, looks like I need to do that, how do I update my zoneinfo
  tables?

 Upgrading to 5.5 or 6.2 will get you the new tables as a side-effect of
 the upgrade :)  If you don't want to upgrade, just install the
 misc/zoneinfo port and rerun tzsetup.

The last bit (rerunning tzsetup(8)) is good advice for anyone who hasn't run 
it in a while. Upgrading from earlier versions of FreeBSD will install the 
new tzdata files but it will not touch /etc/localtime.

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


Re: configuring all dependancies before making in ports

2007-02-02 Thread Jonathan Horne
try:

make config-recursive

or, if i want to just take all the default options (like, for kde which is a 
ridiculously long build):

make BATCH=yes install clean

cheers,
jonathan

On Friday 02 February 2007 20:55, Jim Stapleton wrote:
 Quick question, I'm trying to build a couple of packages that take a
 long time to build, even longer because they just stop when it's time
 to configure something. That's a problem if it's configure time, say
 when I need to sleep, or am at work.

 Is there a way to have the make run through all the dependancies that
 need build, running their configuration menus /before/ doing any of
 the builds?

 i.e.
 $ cd /usr/ports/x11/kde3
 $ make -dependancies=configure install clean


 Thanks,
 -Jim Stapleton
 ___
 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: 305 GB hard drive reduced to 266 GB (why?)

2007-02-02 Thread Peter
Le Vendredi 2 Février 2007 19:41, Peter A. Giessel a écrit :
 On 2007/02/02 15:18, Peter seems to have typed:
  So now my question becomes Where does FreeBSD get 289 from 305?.

 Well, for one thing, you never have 305GB.  1024MB = 1GB.

As I said, I already accounted for that.  320 000 / 1024 = 305 GB.

 You only had 298GB UNFORMATTED.  Formatted, you had 289GB.  With
 8% reserve, you're down to 266GB.

You think the formatting takes up the missing 16 GB (305 - 289)?

PM

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


firefox, mozilla won't display PHP (Was: Re: firefox, extensions, and *.php pages)

2007-02-02 Thread Gary Kline
On Fri, Feb 02, 2007 at 04:53:39PM -0800, Gary Kline wrote:



Well, the fact that my trying seever firefox addson and the 
failure of firefox and mozilla to display my PHP  files just
happened to be co-incident.  As of this writing, none of my
browsers displays my php pages.   I am rebuilding php5; php4
refuses to build.  

If anybody knows if I ought to be building php4, please let me
know. --I've surfed the web looking for answers; so far,
nothing-works  

(***)

 
   You have chosen to open 
 
   [  ]  (blank)
 
   which is a: appplication/x-httpd-php
   from http://www.thought.org
 
 What should Firefox do with this file?
 
   The one of three options *not* greyed out is:
 
   (*) Save to Disk
 
 
   What's going on?  And/or: how did I shoot myself in the foot?
 
   thanks for any insights; a couple of these addon are useful...
 
   gary
 
 
 
 
 -- 
   Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
 

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

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


Help with autostarting Apache

2007-02-02 Thread Belanger, Benoit
Hi,

 

It seems that I am unable to autostart apache 2.2.4 at boot time with
FreeBSD 6.2. Apache is working fine once loaded manually but I really need
it to run by itself at system startup since this system will be left
unattended for long periods.

 

It seems that adding apache2_enable=YES in rc.conf does not produce the
desired result. Can anybody tell me what I am doing wrong?

 

Otherwise, this version of FreeBSD is working just fine (almost flawlessly).

 

Thanks in advance.

 

Benoit Belanger

Securidata

514.748.4838 (Bureau)

514.945.3647 (Mobile)

[EMAIL PROTECTED]

 http://www.securidata.net/ http://www.securidata.net

 

 

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


Fwd: 305 GB hard drive reduced to 266 GB (why?)

2007-02-02 Thread Amitabh Kant

-- Forwarded message --
From: Amitabh Kant [EMAIL PROTECTED]
Date: Feb 3, 2007 11:11 AM
Subject: Re: 305 GB hard drive reduced to 266 GB (why?)
To: Peter [EMAIL PROTECTED]


On 2/3/07, Peter [EMAIL PROTECTED] wrote:

Le Vendredi 2 Février 2007 19:41, Peter A. Giessel a écrit:
 On 2007/02/02 15:18, Peter seems to have typed:
  So now my question becomes Where does FreeBSD get 289 from 305?.

 Well, for one thing, you never have 305GB.  1024MB = 1GB.

As I said, I already accounted for that.  320 000 / 1024 = 305 GB.



The correct calculation would be 320 * 1000 * 1000 * 1000 = 3200
3200/1024/1024/1024 = 298 GB raw capacity

You need to account for every conversion:
Bytes-KB-MB-GB

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


Re: firefox, mozilla won't display PHP (Was: Re: firefox, extensions, and *.php pages)

2007-02-02 Thread Joe Holden

Gary Kline wrote:

On Fri, Feb 02, 2007 at 04:53:39PM -0800, Gary Kline wrote:



	Well, the fact that my trying seever firefox addson and the 
	failure of firefox and mozilla to display my PHP  files just

happened to be co-incident.  As of this writing, none of my
browsers displays my php pages.   I am rebuilding php5; php4
	refuses to build.  


If anybody knows if I ought to be building php4, please let me
know. --I've surfed the web looking for answers; so far,
	nothing-works  


(***)

	You have chosen to open 


[  ]  (blank)

which is a: appplication/x-httpd-php
from http://www.thought.org

  What should Firefox do with this file?

The one of three options *not* greyed out is:

(*) Save to Disk


What's going on?  And/or: how did I shoot myself in the foot?

thanks for any insights; a couple of these addon are useful...

gary



You've added AddType lines to config, but the module is missing, or 
isn't being loaded presumably.

--
Joe Holden
Telephone: +44 (0) 207 100 9593
Email: [EMAIL PROTECTED]
Website: http://www.joeholden.co.uk
IRC: [EMAIL PROTECTED]/#FreeBSD
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: firefox, mozilla won't display PHP (Was: Re: firefox, extensions, and *.php pages)

2007-02-02 Thread Gary Kline
On Sat, Feb 03, 2007 at 06:38:10AM +, Joe Holden wrote:
 Gary Kline wrote:
 On Fri, Feb 02, 2007 at 04:53:39PM -0800, Gary Kline wrote:
 
 
 
  Well, the fact that my trying seever firefox addson and the 
  failure of firefox and mozilla to display my PHP  files just
  happened to be co-incident.  As of this writing, none of my
  browsers displays my php pages.   I am rebuilding php5; php4
  refuses to build.  
 
  If anybody knows if I ought to be building php4, please let me
  know. --I've surfed the web looking for answers; so far,
  nothing-works  
 
  (***)
 
 You have chosen to open 
 
 [  ]  (blank)
 
 which is a: appplication/x-httpd-php
 from http://www.thought.org
 
   What should Firefox do with this file?
 
 The one of three options *not* greyed out is:
 
 (*) Save to Disk
 
 
 What's going on?  And/or: how did I shoot myself in the foot?
 
 thanks for any insights; a couple of these addon are useful...
 
 gary
 
 
 You've added AddType lines to config, but the module is missing, or 
 isn't being loaded presumably.



Right; after a couple hours tracing, I find that for some reason,
devel/libtool15 says that regex/regcomp.lo isn't valid.


output
[EMAIL PROTECTED]:/usr/ports/lang/php4/work/php-4.4.4# k
Makefile, line 496: warning: duplicate script for target
main/internal_functions.lo ignored
/bin/sh /usr/local/bin/libtool --preserve-dup-deps --mode=link cc
-export-dynamic -pipe -g -Wall regex/regcomp.lo regex/regexec.lo

[[ ... ]

Zend/zend_ini.lo Zend/zend_qsort.lo Zend/zend_multibyte.lo
Zend/zend_strtod.lo Zend/zend_canary.lo Zend/zend_execute.lo
sapi/cgi/libfcgi/fcgi_stdio.lo sapi/cgi/libfcgi/fcgiapp.lo
sapi/cgi/libfcgi/os_unix.lo sapi/cgi/cgi_main.lo sapi/cgi/getopt.lo
main/internal_functions.lo -lcrypt -lcrypt -lm -lcrypt -lcrypt  -o
sapi/cgi/php
libtool: link: `regex/regcomp.lo' is not a valid libtool object
*** Error code 1

/output

I have php4 and apache running on other servers, and there,
when I point mozilla at a php file, it works, of course..
--So: nothing to do with the extensions; for unknown reasons, 
php4 will not build.   

Has anybody else experienced this snufu??

thanks, Joe.

gary


 -- 
 Joe Holden
 Telephone: +44 (0) 207 100 9593
 Email: [EMAIL PROTECTED]
 Website: http://www.joeholden.co.uk
 IRC: [EMAIL PROTECTED]/#FreeBSD
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix

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