Re: gmirror and partitioning

2006-05-18 Thread Nagy László Zsolt



Hi Laszlo,

No bugs; I think this is normal.  Both the BIOS and the OS are only
going to see the blocks the hard drive thinks are useable.  
Bad sector information is also stored on the disk, and only the OS can 
interpret this information.
Or is it possible that the manufacturer produces the hard drive first, 
then measures its real capacity and finally burns this info into a flash 
memory on the drive? :-)

Even though
the drive geometry is fictitious, most people still recommend defining
your slices to begin and end on cylinder boundaries.  I assume this
makes accessing blocks in the slice a few nanoseconds faster, but I'm
actually not sure.  Perhaps someone on the list knows more detail.  In
any case, if you do this for as10s1 gmirror will replicate this property
to the other disk.  You'll also most likely have a few blocks left over.
As for units of MB, I'm not sure.  Could be rounding.

Can we assume your gmirror is now working?
  

Oh yes, it is working.
I do not care about that one lost MB. The lesson of the story: I'll 
leave 10MB empty space at the end of the disk whenever I need to use 
gmirror.

Thank you for your help! :-)

 Laszlo


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


uftdi driver with FT2232C based USB serial box

2006-05-18 Thread Eric Loos

Dear group,

I am struggling with attaching a sixteen port serial USB box to a 
FreeBSD RC6.1-RC1 installation. The box in question is a VScom 
USB-16COM-RM (http://www.vscom.com.tw/produkte/vscom_usb-16com-rm.html) 
which has a FT2232L chipset (which is the same as the FT2232C but 
without lead). I confirmed the chipset by opening the box and looking 
for it. According to the docs the uftdi driver supports this chipset and 
presents it to ucom. It should then be available as a /dev/cuaU? file.
As a test a attached a modem to the serial port of the machine and 
established that I could communicate with it on 57600 baud 8N1 hardware 
flow control, however if I try using those settings on any of the 
/dev/cuaU ports (0-15) it just doesnt work. Some communication is 
happening thought since on some ports I see the typical garbage of an 
incorrect setting (there is other equipment connected to it than the 
modem) Does anyone have any suggestions? The devices ucom0-15 are nicely 
discovered when the device is plugged in. Are there some caveats I don't 
know about? Or maybe I shouldn't access it through /dev/cuaU?


Any help would be greatly appreciated.

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


Re: [freebsd-questions] Bandwidth Troubleshooting

2006-05-18 Thread Howard Jones

Gunter Wambaugh wrote:


The sad thing is that I read somewhere (probably on this list) that 
*forcing* 100 would
_increase_ performance because there wouldn't be any auto 
negotiating.   I added it to
my rc.conf, but later I decided that it didn't help any so I ran 
ifconfig fxp0 media autoselect,
but failed to change my rc.conf back!  Now I have learned that not 
only did it not improve performance, it seriously

 crippled it.  Thanks for helping me track that down.
If you have two auto-negotiating devices and one is hard-set to a 
particular speed/duplex, then the other should always choose 100/Half. 
It doesn't try and auto-detect what the other one is speaking. It's 
supposed to be a *negotiation* and if one party doesn't talk, then the 
other one defaults.


So if you can get your Linksys to force the port speed, then you can 
safely do it on your server, otherwise auto-negotiation should negotiate 
100/Full anyway if both can do it.


Here's a better explanation than mine:
  http://www.cites.uiuc.edu/network/autosense.html#how

I lost count of how many times this has bitten me in various shapes and 
forms.


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


ntpd core dump

2006-05-18 Thread Ghislain Garçon

Hello,

I have a core dump with ntpd ( Segmentation fault: 11 (core dumped) ).
I try each line of my ntp.conf and the problem is with the line
server 127.127.1.0
even if i set
fudge 127.127.1.0 stratum 10

This is a FreeBSD 6.1 updated from a 6.0.

Tnahks for any help.

Ghislain





___ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

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


Re: pppoe reliability

2006-05-18 Thread Nikos Vassiliadis
On Thursday 18 May 2006 02:07, Michael P. Soulier wrote:
 Hello,

 I'm trying FreeBSD as a PPPoE client for my ADSL connection. Setup was
 great, but I'm finding that when I lose a connection (troubles with my
 isp), the ppp command does not return like I would like it to.

 [EMAIL PROTECTED] ~]# ppp -foreground -nat storm
 Working in foreground mode
 Using interface: tun0
 tun0: Command: default: set ifaddr 10.0.0.1/0 10.0.0.2/0
 tun0: ID0: 0x282eed00 = fopen(/etc/ppp/ppp.conf, r)
 tun0: Debug: ReadSystem: Checking storm (/etc/ppp/ppp.conf).
 tun0: Command: storm: nat enable yes
 tun0: Command: storm: set device PPPOE:fxp0
 tun0: Command: storm: set authname [EMAIL PROTECTED]
 tun0: Command: storm: set authkey 
 tun0: Command: storm: set dial
 tun0: Command: storm: set login
 tun0: Command: storm: add default HISADDR
 tun0: ID0: 9 = socket(17, 3, 0)
 tun0: ID0: -1 = write(9, data, 140)
 tun0: TCP/IP: rt_Set failure:
 tun0: TCP/IP: rt_Set:  Cmd = Add
 tun0: TCP/IP: rt_Set:  Dst = 0.0.0.0/0
 tun0: TCP/IP: rt_Set:  Gateway = 10.0.0.2
 tun0: Debug: wrote -1: cmd = Add, dst = 0.0.0.0/0, gateway = 10.0.0.2

 I just found the connection down because my modem lost sync, and the
 client didn't return. I was hoping that it would return so that I
 could script the client such that it would always retry, via supervise
 or runit.

 Any ideas?

Enable echo so ppp will know when the other peer is down, and then will act
as you tell it to. I think enabling echo and -ddial mode will be fine, no need 
of
scripting, but anyways the recommended way of interacting with ppp(8) is
pppctl(8).

from ppp man:

-ddial
 This mode is equivalent to -auto mode except that ppp will bring
 the link back up any time it is dropped for any reason.

 echo
 Default: Disabled.  When this option is enabled, ppp will send
 LCP ECHO requests to the peer at the frequency defined by
 echoperiod''.  Note, LQR requests will supersede LCP ECHO
 requests if enabled and negotiated.  See set lqrperiod'' below
 for details.

 Prior to ppp version 3.4.2, echo'' was considered enabled if
 lqr was enabled and negotiated, otherwise it was considered dis-
 abled.  For the same behaviour, it is now necessary to enable
 lqr echo'' rather than just enable lqr''.



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


Re: Some shell scripts; a more elegant approach?

2006-05-18 Thread Kyrre Nygard

At 17:59 16.05.2006, Atom Powers wrote:

It is difficult to understand exactly what you want your script to do
without comments. You may get a better response if you can describe
what you want your scripts to do.


Thanks man, your advice was really helpful!

This though:

--

for file in `find -s . -type f -name *.txt`; do

# This removes CRLF, double or more empty lines
# as well as trailing whitespace.
#
tr -d '\r'  $file | cat -s | sed -E -e 
's/[[:space:]]+$//'  $file.tmp


# Creates file blank containing an empty line
#
echo  blank

# Add an empty line to the end of $file.tmp
#
echo  $file.tmp

# $file now starts with an empty line too
#
cat blank $file.tmp  $file

rm -f blank $file.tmp

done

for file in `find . -type f -name *.txt -size -300c`; do

echo $file: Corrupt

done

--

I'd like to incorporate the 2nd for loop into the first somehow.
That last find command finds files that are below 300 bytes.
Now I'm sure there's a better way of doing that.

Thanks Atom Powers! :)

Take care,
Kyrre


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


first FreeBSD version with IPSec support

2006-05-18 Thread Saifi
Hi:

Which was the first version of FreeBSD that shipped with IPSec support ?

Thanks in advance.

thanks
Saifi.



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


Re: kernel panic on kldload in 6.1

2006-05-18 Thread Frank Steinborn
Kris Kennaway wrote:
 It sounds like you have an old (6.0) module you're still trying to
 load.  Things like the nvidia driver and other ports are prime
 candidates.
 
 Kris

Does that mean that all the panic-issues with kld(un)load are fixed in
6.1? I crashed an important 6.0-STABLE box several times by trying to
unload procfs for example and I don't want to run in such nightmares
again by fiddling with klds unless I'm sure it's safe now.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Converting a zsh prompt to bash

2006-05-18 Thread Kyrre Nygard

At 17:04 17.05.2006, Dan Nelson wrote:

In the last episode (May 17), Kyrre Nygard said:
 Do you think this would work?

 I tried applying your principles, as well as some information design:

 local a1=01;36m
 local a2=22;36m
 local a3=01;30m

 local b1=01;31m
 local b2=22;31m
 local b3=01;30m

 PROMPT=$'%{$a1}([EMAIL PROTECTED])'
 PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n'
 PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})'

 if [[ `whoami` = root ]] then
 PROMPT=$'%{$b1}([EMAIL PROTECTED])'
 PROMPT+=$'%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n'
 PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})'
 fi

Note that zsh provides symbolic variables for color setting:

 autoload -U colors
 colors
 echo $fg[blue]$bg[red]blue on red!

so you don't have to memorize the numbers.  See the zshcontrib manpage,
OTHER FUNCTIONS section.

If the only difference between your root prompt is color, you can also
just set a1,a2,a3 to different values within your if block, then set
PROMPT outside of it.

 if [[ $USER == root ]] ; then
  a1=%{$fg[cyan]$bg[black]}
 else
  a1=%{$fg[red]}$bg[black]}
 fi
 PROMPT=$a1


--
Dan Nelson
[EMAIL PROTECTED]


Hey Dan!

I can't find a list of what colors are available. Besides I doubt 
that mine are accounted for.


I'd be very grateful if you could at least try this prompt out so you 
know my request:


PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@'
PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}('
PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}'
PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}('
PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})'
PROMPT+=$'%{\e[01;30m\e[00m%} '

if [[ `whoami` = root ]] then

PROMPT=$'%{\e[01;31m%}(%{\e[22;31m%}%n%{\e[01;30m%}@'
PROMPT+=$'%{\e[22;31m%}%m%{\e[01;31m%})%{\e[01;31m%}%{\e[01;31m%}('
PROMPT+=$'%{\e[22;31m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;31m%}%D{%d/%m}'
PROMPT+=$'%{\e[01;31m%})%{\e[01;30m\e[00m%}\n%{\e[01;31m%}('
PROMPT+=$'%{\e[22;31m%}%#%{\e[01;30m%}:%{\e[22;31m%}%~%{\e[01;31m%})'
PROMPT+=$'%{\e[01;30m\e[00m%} '

fi

Anyway I just went ahead and tested this:

local a1=01;36m
local a2=22;36m
local a3=01;30m
local b1=01;31m
local b2=22;31m
local b3=01;30m

PROMPT=$'%{$a1}([EMAIL PROTECTED])'
PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n'
PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})'

if [[ `whoami` = root ]] then

PROMPT=$'%{$b1}([EMAIL PROTECTED])'

PROMPT+=$'%{$b1}%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n'
PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})'

fi

But I got:

/etc/zshrc:32: parse error near `)'
$a1}([EMAIL PROTECTED])

The:


 if [[ $USER == root ]] ; then
  a1=%{$fg[cyan]$bg[black]}
 else
  a1=%{$fg[red]}$bg[black]}
 fi
 PROMPT=$a1


Technique sounds very interesting, but it's getting a bit too 
advanced for my part.


Take care man, and thanks again!

All the best,
Kyrre


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


ntpd as a server on 5.4 and 6.0 just doesn't seem to work

2006-05-18 Thread Freminlins

Hello,

I have this problem whereby I just cannot make ntpd work as a server on
FreeBSD 5.4 and 6.0. It works flawlessly on 4.6.2, which I'm still running
somewhere.

The contents of my ntpd.conf file are:
server ntp0.bris.ac.uk
server ntp.linx.net
restrict A.B.0.0 mask 255.255.0.0 notrust nomodify notrap (munged).

statistics clockstats
statsdir /var/db/ntpd
filegen clockstats
driftfile /etc/ntp.drift

I've even tried removing the restritct line but to no avail. ntpd runs,
but it doesn't actually return anything.  The response on any machine
querying this machine is ntpdate[46934]: no server suitable for
synchronization found. The same command works for the older box running
4.6.2. I don't believe it is at all a hardware issue as I've had exactly the
same problem on another machine. I've looked at the handbook here  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-ntp.html;
but it doesn't seem to suggest I have done anything wrong.

Does anyone have a clue what the problem is? I'm just getting nowhere.
Traffic gets to the box (seen via tcpdump). Alas ntpd is not compiled with
-ddebug so the -d and -D options in the man page is moot.


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


Shell script cannot run on FAT32 partition

2006-05-18 Thread Kyrre Nygard


Hello!

I have this nice renaming script here.
It sanitizes badly named parts of files and folders.

But when I run it on my FAT32, dual boot transition partition (hehe), it causes
my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing some
message before it freezes saying Locking from myself or something like that,
this is not recorded into /var/log/messages.

It is very annoying actually because to rename a bunch of files I first have to
copy them to my UFS2 partition, run the script, and then copy them back to the
FAT32 partition.

Does this problem sound familiar to anyone?

Thanks!

Anyway here is the script.

#!/usr/local/bin/bash
#
#   Rename files and folders in MP3 releases.
#   $MERHABA: mp3_rename.sh,v 1.0 2007/11/11 15:09:05 kyrre Exp $
#

if [ $1 ]; then mv=echo; else mv=mv; fi

function do_folders () {

for old in *; do

if [ -f $old ]; then do_files $old
elif [ -d $old ]; then

new=`echo $old | tr [:upper:] [:lower:]`
new=`echo $new | sed -e s/ /_/g \
-e s/)//g \
-e s/-(/-/g \
-e s/_(/-/g \
-e s/(//g \
-e s/_-_/-/g \
-e s/---*/-/g \
-e s/___*/-/g \
-e s/\./_/g \
-e s/,/-/g \
-e s/'//g \
-e s/___*/_/g \
-e s/_-/-/g \
-e s/-_/-/g \
-e s//and/g \
-e s/\([-_]\)ft[_-]/\1feat_/g \
-e s/\([-_]\)featuring[_-]/\1feat_/g \
-e s/[][]//g`

if [ $old != $new ]; then $mv $old $new; fi

echo Renaming $old

cd $new; do_folders $new; cd ..

else echo Directory invalid.; fi

done
}

function do_files () {

old=$1

new=`echo $old | tr [:upper:] [:lower:]`

if [[ $old == *.* ]]; then

extension=${new##*.}
new=${new%.*}

new=`echo $new | sed -e s/ /_/g \
-e s/)//g \
-e s/-(/-/g \
-e s/_(/-/g \
-e s/(//g \
-e s/_-_/-/g \
-e s/---*/-/g \
-e s/___*/-/g \
-e s/\./_/g \
-e s/,/-/g \
-e s/'//g \
-e s/___*/_/g \
-e s/_-/-/g \
-e s/-_/-/g \
-e s/\/and/g \
-e s/\([-_]\)ft[_-]/\1feat_/g \
-e s/\([-_]\)featuring[_-]/\1feat_/g \
-e s/^\([0-9]\{2,3\}\)_/\1-/g \
-e s/[][]//g`

new=`echo $new.$extension`

$mv $old $new; fi
}

do_folders .

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


I could not install Freebsd6 on compaq alpha server.

2006-05-18 Thread Halid Faith
Hello

I use digital unix tru64 on a compaq alpha server.  I want to replace with 
FreeBSD. 

I tried to install with startup diskettes. (As you know to do that there are 
four diskettes that boot.flp, kern1.flp, kern2flp, mfs.flp.)

After I pluged all of the diskettes, I got an error messages as below,

fatal kernel trap
memory management fault.

What shall I do ?

 


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


Re: Gtk-Warning **: Cannot open display

2006-05-18 Thread Barnaby Scott

John Nielsen wrote:

On Tuesday 16 May 2006 17:07, Barnaby Scott wrote:

Kevin Kinsey wrote:

Barnaby Scott wrote:

So, I installed Firefox from ports, having made sure everything was
bang up to date. Evrything seemed to go perfectly well, but lo and
behold, first attempt to use it and I get this:

(firefox-bin:582): Gtk-Warning **: Cannot open display

What the..?

I have searched for this problem and found plenty of references
similar error messages, but none of it seems to apply in my case. I am
not trying to run Firefox as root, I am not doing it from a remote
terminal, I am not standing in a bucket of water, I have the computer
plugged in.

I think these are Good Things(tm), 'though I have been able to operate
a browser whilst standing in a bucket of water.

Q: Are you running an X display at the time this message is given,
or are you attempting to run Firefox from the console?

Kevin Kinsey

I have tried both. It is running from the console that gives the message
  quoted - if I am running an X display at the time it fails with no
message at all.


This is a Firefox oddity.  It needs to be run as root one time after it is 
installed (or [sometimes] upgraded).  Do this from an xterm:


cd
su
cp .Xauthority /root
firefox

Assuming the browser window comes up, you can just close it.  You should be 
able to run it as a regular user afterwards.


JN


Thanks for both bits of advice - one of them worked, though I'm not sure 
which!


So now I can strat Firefox from an xterm, but 2 things still puzzle me 
though:
1) Forgive my stupidity, but why can I not start Firefox from the 
console? Or rather, what could I do to make it do so with a single command?
2) I thought Firefox wasn't going to start from the xterm, but really it 
just took ages - far longer than I am used to with my old OS (same 
machine). Is there something I am missing here too?




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


Re: first FreeBSD version with IPSec support

2006-05-18 Thread Antony M Rasat
Courtesy of Google. Apparently since FreeBSD-4.0-RELEASE. 
 
ftp://ftp-archive.freebsd.org/pub/FreeBSD-Archive/old-releases/i386/ 
4.0-RELEASE/RELNOTES.TXT 
 
Regards, 
 
Anthony M. Rasat 
PT. Kalteng Pos Press 
Palangkaraya - Indonesia.- 
 
On Thursday 18 May 2006 16:42, Saifi wrote: 
 Hi: 
 
 Which was the first version of FreeBSD that shipped with IPSec 
support ? 
 
 Thanks in advance. 
 
 thanks 
 Saifi. 
 
 
 
 ___ 
 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: Gtk-Warning **: Cannot open display

2006-05-18 Thread Saifi
  From: Barnaby Scott [EMAIL PROTECTED]
  Subject: Re: Gtk-Warning **: Cannot open display
  Sent: 18 May '06 16:45
  
  John Nielsen wrote:
   On Tuesday 16 May 2006 17:07, Barnaby Scott wrote:
   Kevin Kinsey wrote:
   Barnaby Scott wrote:
   So, I installed Firefox from ports, having made sure everything was
   bang up to date. Evrything seemed to go perfectly well, but lo and
   behold, first attempt to use it and I get this:
  
   (firefox-bin:582): Gtk-Warning **: Cannot open display
  
   What the..?
  


Hi:

You may want to check the following.

1. prompt$ xhost + (from the connecting client)
2. export DISPLAY=client-ip-address:0.0

Firefox should start if the above mentioned settings are in place.

Hope this helps.

thanks
Saifi.

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


Re: Gtk-Warning **: Cannot open display

2006-05-18 Thread Saifi
  From: Barnaby Scott [EMAIL PROTECTED]
  Subject: Re: Gtk-Warning **: Cannot open display
  Sent: 18 May '06 16:45
  
  John Nielsen wrote:
   On Tuesday 16 May 2006 17:07, Barnaby Scott wrote:
   Kevin Kinsey wrote:
   Barnaby Scott wrote:
   So, I installed Firefox from ports, having made sure everything was
   bang up to date. Evrything seemed to go perfectly well, but lo and
   behold, first attempt to use it and I get this:
  
   (firefox-bin:582): Gtk-Warning **: Cannot open display
  
   What the..?
  


Hi:

You may want to check the following.

1. prompt$ xhost + (from the connecting client)
2. export DISPLAY=client-ip-address:0.0

Firefox should start if the above mentioned settings are in place.

Hope this helps.

thanks
Saifi.

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


Re: Has the port collection become to large to handle.

2006-05-18 Thread Ulrich Spoerlein
fbsd wrote:
 Modify the master make code to post a count to a special 
 purpose FreeBSD website by passing it a cookie.
 Now every time a any user runs the port make install that
 special purpose FreeBSD website will be accessed counting  
 how many times that port is really executed. Then use that 
 count per new release of FreeBSD to determine the ports that 
 go into the commonly used category.

I always thought of such a scheme too. Like the afterboot-manpage (IIRC)
on OpenBSD, where people are encouraged to mail their dmesg output to
the developers.

 The comments from one of the maintainers about the fact that 
 the maintainers are not allowed to build the official 
 packages is a policy that can easily be changed. 

Hell no. Putting the burden on maintainers to build packages for various
architectures and releases is completely utopical. Not to mention the
fact, that they would have to build them in sandboxes much like the
package build cluster. configure script often pick up random libraries
to link against, if these are not recorded as @pkgdep then the package is
mostly useless for other people.

 Its more important to have timely packages available then 
 the security of waiting for the mass package build done once 
 per new FreeBSD version release.

Packages are built on a regular basis, I suggest you get more familiar
with the package building and RE process before starting heated
discussions on ports@

 This also allows the maintainer to build different versions 
 of the package for each different version of major dependents 
 such as php4/5 apache1/2 mysql3/4/5 whatever.
 The mass package build process does not allow this flexibility. 

I already wrote my thoughts about a FLAVOUR system, where multiple
packages are built per port. Sadly, people seem to think that slave
ports are the way to go. But not only do they eat up precious inodes,
increase the fake count of ports/packages available, and increase INDEX
build times. They are also only deemed worthy for important ports,
whatever that means. If you would commit a slave port for every port
that can be built with mysql XOR postgresql, you get an unmaintainable
mess. Not to mention that you violate the one fact in one place rule.
Having duplicate ports, that are almost the same scattered throughout
the ports system is obviously not helpful.

 The resources and time needed for performing the 
 secure massive package built must impact the release timeline of 
 new FreeBSD releases. Doing away with it may streamline many 
 other different internal release process.  

There is a dedicated package build cluster, it does in no way interfere
the RE process. Please read up on the mentioned topics, thanks.

Ulrich Spoerlein
-- 
 PGP Key ID: 20FEE9DD   Encrypted mail welcome!
Fingerprint: AEC9 AF5E 01AC 4EE1 8F70  6CBD E76E 2227 20FE E9DD
Which is worse: ignorance or apathy?
Don't know. Don't care.


pgp00wOvajCdU.pgp
Description: PGP signature


Re: ntpd core dump

2006-05-18 Thread Ghislain Garçon
Ntpd build with FreeBSD can't create a local clock (with  
127.127.1.0) ???



Hello,

I have a core dump with ntpd ( Segmentation fault: 11 (core dumped) ).
I try each line of my ntp.conf and the problem is with the line
server 127.127.1.0
even if i set
fudge 127.127.1.0 stratum 10

This is a FreeBSD 6.1 updated from a 6.0.

Tnahks for any help.

Ghislain







___ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

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


Re: Shell script cannot run on FAT32 partition

2006-05-18 Thread Norberto Meijome
On Thu, 18 May 2006 12:40:08 +0200
Kyrre Nygard [EMAIL PROTECTED] wrote:

 It is very annoying actually because to rename a bunch of files I first have
 to copy them to my UFS2 partition, run the script, and then copy them back to
 the FAT32 partition.

Hi Kyrre,
not a solution to the problem, but why not install cygwin or minGW and run the
same script there?
Beto
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


KERNEL

2006-05-18 Thread KAV

The kernel is not compiled.
Whether it is possible switch-off somehow the module aic?
#
# GENERIC -- Generic kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the handbook section on
# Kernel Configuration Files:
#
#
http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
#
# The handbook is also available locally in /usr/share/doc/handbook
# if you've installed the doc distribution, otherwise always see the
# FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
# latest information.
#
# An exhaustive list of options and more detailed explanations of the
# device lines is also present in the ../../conf/NOTES and NOTES files.
# If you are in doubt as to the purpose or necessity of a line, check first
# in NOTES.
#
# $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.3.2.1 2005/10/28 19:22:41 jhb 
Exp $

machine i386
cpu I686_CPU
ident   MYKERNEL

# To statically compile in device wiring instead of /boot/device.hints
#hints  GENERIC.hints # Default places to look for devices.

makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols

options SCHED_ULE   # ULE scheduler
#optionsSCHED_4BSD  # 4BSD scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
#optionsINET6   # IPv6 communications protocols
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options MD_ROOT # MD is a potential root device
#optionsNFSCLIENT   # Network Filesystem Client
#optionsNFSSERVER   # Network Filesystem Server
#optionsNFS_ROOT# NFS usable as /, requires NFSCLIENT
#optionsMSDOSFS # MSDOS Filesystem
#optionsCD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
#optionsGEOM_GPT# GUID Partition Tables.
options COMPAT_43   # Compatible with BSD 4.3 [KEEP THIS!]
#optionsCOMPAT_FREEBSD4 # Compatible with FreeBSD4
#optionsCOMPAT_FREEBSD5 # Compatible with FreeBSD5
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
options KTRACE  # ktrace(1) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options AHC_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~128k to driver.
options AHD_REG_PRETTY_PRINT# Print register bitfields in debug
# output.  Adds ~215k to driver.
options ADAPTIVE_GIANT  # Giant mutex is adaptive.

device  apic# I/O APIC

# Bus support.
#device eisa
device  pci

# Floppy drives
device  fdc

# ATA and ATAPI devices
device  ata
device  atadisk # ATA disk drives
#device ataraid # ATA RAID drives
device  atapicd # ATAPI CDROM drives
#device atapifd # ATAPI floppy drives
#device atapist # ATAPI tape drives
options ATA_STATIC_ID   # Static device numbering

# SCSI Controllers
#device ahb # EISA AHA1742 family
#device ahc # AHA2940 and onboard AIC7xxx devices
#device ahd # AHA39320/29320 and onboard AIC79xx devices
#device amd # AMD 53C974 (Tekram DC-390(T))
#device isp # Qlogic family
#device ispfw   # Firmware for QLogic HBAs- normally a module
#device mpt # LSI-Logic MPT-Fusion
#device ncr # NCR/Symbios Logic
#device sym # NCR/Symbios Logic (newer chipsets + those of 
`ncr')
#device trm # Tekram DC395U/UW/F DC315U adapters

#device adv # Advansys SCSI adapters
#device adw # Advansys wide SCSI adapters
#device aha # Adaptec 154x SCSI adapters
#device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60.
#device bt  # Buslogic/Mylex 

Re: KERNEL

2006-05-18 Thread Nick Withers
On Thu, 18 May 2006 14:12:42 +1100
KAV [EMAIL PROTECTED] wrote:

 The kernel is not compiled.
 Whether it is possible switch-off somehow the module aic?

(snip)

 cc -O3 -pipe -march=pentium4  -fno-strict-aliasing -Werror
 -D_KERNEL -DKLD_MODULE -nostdinc -I-
 -DHAVE_KERNEL_OPTION_HEADERS
 -include /usr/src/sys/i386/compile/MYKERNEL/opt_global.h -I.
 -I@ -I@/contrib/altq -I@/../include -finline-limit=8000
 -fno-common -g -I/usr/src/sys/i386/compile/MYKERNEL
 -mno-align-long-strings -mpreferred-stack-boundary=2  -mno-mmx
 -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Wall
 -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual
 -fformat-extensions -std=c99
 -c /usr/src/sys/modules/aic/../../dev/aic/aic.c 
 /usr/src/sys/modules/aic/../../dev/aic/aic.c:
 In function `aic_reset': ./machine/bus.h:515: warning: inlining
 failed in call to 'bus_space_write_1': --param
 inline-unit-growth limit
 reached /usr/src/sys/modules/aic/../../dev/aic/aic.c:1345:
 warning: called from here

(snip)

Do you have the compilation optimisation level set to 3? Could
you try with it set to 2 or lower?
-- 
Nick Withers
email: [EMAIL PROTECTED]
Web: http://www.nickwithers.com
Mobile: +61 414 397 446
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Dell Inspiron 6400 Intel PRO/Wireless 3495 trouble

2006-05-18 Thread Matt Schwartz

Hello,

I have a Dell Inspiron 6400 equipped with the Intel PRO/Wireless 3495 card.
I have installed the port for iwi and it does not work for me.  I am able to
do a kldload -v if_iwi without errors.  A kldstat shows that the module has
been loaded.  However, a dmesg | grep iwi reveals nothing.  Additionally, an
ifconfig iwi0 gives an error that the device is not present.

When I do a full length dmesg, I do notice the following line:
pci3: base peripheral at device 1.1 (no driver attached)
pci3: base peripheral at device 1.2 (no driver attached)
pci3: base peripheral at device 1.3 (no driver attached)
pci3: base peripheral at device 1.4 (no driver attached)

I am guessing that this is just the wireless card that is unrecognized
because there are no other messages to the effect of unknown.  I do know for
a fact that I have the 3495 as it worked fine under Windows (ugggh!).  Any
insight would be greatly appreciated.

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


Re: 6.1 new sysinstall country panel?

2006-05-18 Thread Lowell Gilbert
fbsd [EMAIL PROTECTED] writes:

 While installing fresh virgin 6.1 from cdrom, the first thing 
 I get is a new panel asking for me to select the country I am from.

 What is the purpose of this new country selection screen?
 Why was it added to sysinstall in 6.1?

Looks like it selects a keyboard configuration.  Might be locale too,
but I can't find a connection there.

 How can I bypass selecting a country?

I suspect you could script it, like most of sysinstall.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Gtk-Warning **: Cannot open display

2006-05-18 Thread Kevin Kinsey

Barnaby Scott wrote:

So now I can strat Firefox from an xterm, but 2 things still puzzle me 
though:
1) Forgive my stupidity, but why can I not start Firefox from the 
console? Or rather, what could I do to make it do so with a single command?


I'm perfectly willing to be wrong, flamed, and corrected, but my counter
question (and it seems a good one to me):  how do you expect to run a
graphical program in a non-graphical environment?

If you wish, you could add firefox to your ~/.xinitrc or
(? .Xresources ?) file, and then firefox would be called when
you called startx to invoke X Windows.

2) I thought Firefox wasn't going to start from the xterm, but really it 
just took ages - far longer than I am used to with my old OS (same 
machine). Is there something I am missing here too?


I couldn't say.  I've used firefox, and more often the entire Mozilla
suite (which is now 'Seamonkey').  It probably starts slower and hangs
more often than any other program I run on FreeBSD, (with the possible
exception of the xrayswarm screen saver) but I can't say why or that
I've even done much investigating.  I did build a 'debug' version
of Seamonkey last time, but I've not yet done anything with it.  FWIW,
it seems a tad less prone to some of the behavior I saw with Mozilla
(which seems strange, perhaps).

Of course, I use it heavily, so perhaps that characterization is
flawed.

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


Re: pppoe reliability

2006-05-18 Thread Michael P. Soulier

On 5/18/06, Nikos Vassiliadis [EMAIL PROTECTED] wrote:

Enable echo so ppp will know when the other peer is down, and then will act
as you tell it to. I think enabling echo and -ddial mode will be fine, no need 
of
scripting, but anyways the recommended way of interacting with ppp(8) is
pppctl(8).


Also, the handbook doesn't mention pppctl in the pppoe section. I just
followed the handbook.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pppoe.html

I'll read up on pppctl. Thanks.

Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppoe reliability

2006-05-18 Thread Michael P. Soulier

On 5/18/06, Nikos Vassiliadis [EMAIL PROTECTED] wrote:

Enable echo so ppp will know when the other peer is down, and then will act
as you tell it to. I think enabling echo and -ddial mode will be fine, no need 
of
scripting, but anyways the recommended way of interacting with ppp(8) is
pppctl(8).

from ppp man:

-ddial
 This mode is equivalent to -auto mode except that ppp will bring
 the link back up any time it is dropped for any reason.

 echo
 Default: Disabled.  When this option is enabled, ppp will send
 LCP ECHO requests to the peer at the frequency defined by
 echoperiod''.  Note, LQR requests will supersede LCP ECHO
 requests if enabled and negotiated.  See set lqrperiod'' below
 for details.

 Prior to ppp version 3.4.2, echo'' was considered enabled if
 lqr was enabled and negotiated, otherwise it was considered dis-
 abled.  For the same behaviour, it is now necessary to enable
 lqr echo'' rather than just enable lqr''.


I'll try this, thanks.

I've noticed that when I drop ppp, the tun0 seems to hang on a bit. If
I restart too quickly, I get a tun1. The ifconfig command will not
permit me to destroy tun0 either, so I wait for a little while before
bringing it back up again.

Any idea why?

Thanks,
Mike

P.S. The help from this list makes all of the difference when deciding
which OS to use.
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pppoe reliability

2006-05-18 Thread cknipe
Quoting Michael P. Soulier [EMAIL PROTECTED]:
 I've noticed that when I drop ppp, the tun0 seems to hang on a bit. If
 I restart too quickly, I get a tun1. The ifconfig command will not
 permit me to destroy tun0 either, so I wait for a little while before
 bringing it back up again.

In the ppp.linkdown 
mylabel:
 iface clear

That will clear the interface and also remove the address when the PPPoE goes
down.  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Installing a port into a different prefix

2006-05-18 Thread Lennon Cook

I am attempting to have two ports (java/kaffe and java/jdk15)
installed side-by-side. This means installing one of them into a
different prefix, because they both install several files with the
same name (specifically, java{,c,h,doc} and possibly others). At this
point, I would prefer to do this with kaffe if it is possible. I have
attempted to do this by 'pkg_add -p /opt/kaffe -r kaffe', but this
didn't work: the 'kaffe' binary is installed into /usr/local/bin, and
the various files with conflicting names remain the Sun versions. So,
I tried 'cd /usr/ports/java/kaffe ; prefix=/opt/kaffe make install
clean' , which gave me exactly the same results.

Can anyone enlighten me as to what I'm doing wrong here?

--
Lennon Victor Cook
He who receives an idea from me receives without lessening, as he who
lights his candle at mine receives light without darkening - Thomas
Jefferson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: crdit

2006-05-18 Thread Baptist Georges
Dear Home 0vvner,

Your crredit doesn't matter to us!

If you OVVN reeal essttate and want
IMMEDlATE cassh to sppend ANY way you like,
or simply wish to LOVVER your monthly paayments
by a third or more,
here are the deeals we have TOdDAY:

$ 490 , 000 as lovv as 3 , 65 %
$ 370 , 000 as lovv as 3 , 90 %
$ 250 , 000 as lovv as 3 , 35 %
$ 200 , 000 as lovv as 3 , 55 %

go to the web site http://geocities.com/Phyeceitcheming/ 

Baptist Georges , Apprroval Mannager
 
thirsty, without doing anything to relieve them: you cannot quench a
terrible thirst by standing under giant oaks and waiting for a chance
drip to fall on your tongue. The only scrap of comfort there was, came
unexpectedly from Bombur. He woke up suddenly and sat up scratching his

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


Re: Ignorant user overfilled /usr; strange errors followed. Fixed with fsck -y, but what exactly happened?

2006-05-18 Thread Lowell Gilbert
boink [EMAIL PROTECTED] writes:

 Dear FreeBSD,

 While attempting to follow filesystem activity (and not realising the
 effect it would have) I left a ktrace running (something like ktrace
 -di -p0 -ti - seen on a forum while searching for a Filemon equivalent
 for FreeBSD).  I had launched it while in /usr/ports, and forgot about
 it.  Doh!

 Some time later strange things started happening, so I exited from
 X/KDE, and found a whole sequence of 'filesystem is full' errors on
 the console.  df said that /usr was at 108%.

 I found the offending ktrace.out file in /usr/ports (~25GB), killed
 ktrace, deleted the file, and restarted X/KDE.  It took about 5
 minutes to show the desktop, following a number of console messages
 like 'xauth: creating new authority file...'

 So, I Googled around and found a few hints relating to permissions in
 ~, but that didn't seem to  be the problem; anyway I moved my ~/.kde/
 to ~/.kde_20060515 in an attempt to 'reset' kde's startup behaviour,
 but X/KDE still took ages to start the GUI, following similar
 messages.

 Even once X/KDE had started, some applications took a *long* time to
 start (eg Firefox - 3/4 minutes to show blank home page).  However, I
 could still r/w access all files within /usr.

 Following the advice found on various fora, I then ran fsck -y in
 single-user mode, with the following output:
 ** Last mounted on /usr
 ** Phase 1 - Check Blocks and Sizes
 ** Phase 2 - Check Pathnames
 ** Phase 3 - Check Connectivity
 ** Phase 4 - Check Reference Counts
 ** Phase 5 - Check Cyl groups
 FREE BLK COUNT(S) WRONG IN SUPERBLK
 SALVAGE? yes

 401256 files, 4135860 used, 13715938 free (126762 frags, 169-647
 blocks, 0,8% fragmentation)

 Afterwards, X/KDE started with its usual alacrity, so I restored my
 ~/.kde folder, and now everything seems to be exactly as before.

 My questions are these:
 - How could /usr have been at 108%, given that 100% is the logical maximum?

Because that *isn't* a given.
See the FAQ entry on How is it possible for a partition to be more
than 100% full? 

 - Is there any risk that a physically adjacent filesystem be
 damaged?

No.  Furthermore, it's unlikely that your /usr was actually damaged,
either.  Don't run fsck on a live filesystem; of *course* it will
always find errors.

 - How can it be that, immediately following the deletion of
 /usr/ports/ktrace.out, I still had errors *at all* (prior to the
 fsck)?

See the FAQ entry on The du and df commands show different amounts of
disk space available. What is going on?  That describes what you
probably should have done instead of the fsck.

 - Given its recent history, can I now trust the integrity of /usr?

Probably.  But you may have messed it up with the fsck, so just to be
sure, go into single-user mode, umount /usr, and fsck it WHILE IT IS
NOT MOUNTED.

 My interpretation of the situation is that following the deletion of
 /usr/ports/ktrace.out, KDE, on startup, tried to write a file to a
 filesystem that apparently (although incorrectly) had no free blocks.
 fsck fixed the problem of the reported free blocks.

More or less.  But since the kernel's idea of what was on the disk
no longer matched reality (i.e., it knew that in reality there *were* no
free blocks), you may have gotten into trouble.

 However, if this interpretation is correct, it shouldn't have worked
 *at all* until fsck had repaired the filesystem.  That is, KDE should
 not have started at all.

That doesn't necessarily follow.

 So, prior to  the fsck -y in single-user mode, what was happening in
 the five minutes it took KDE to start?

I don't know KDE at all, but my guess would be some kind of timeout.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Converting a zsh prompt to bash

2006-05-18 Thread Dan Nelson
In the last episode (May 18), Kyrre Nygard said:
 At 17:04 17.05.2006, Dan Nelson wrote:
 In the last episode (May 17), Kyrre Nygard said:
  Do you think this would work?
 
  I tried applying your principles, as well as some information design:
 
  local a1=01;36m
  local a2=22;36m
  local a3=01;30m
 
  local b1=01;31m
  local b2=22;31m
  local b3=01;30m
 
  PROMPT=$'%{$a1}([EMAIL PROTECTED])'
  PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n'
  PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})'
 
  if [[ `whoami` = root ]] then
  PROMPT=$'%{$b1}([EMAIL PROTECTED])'
  PROMPT+=$'%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n'
  PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})'
  fi
 
  Note that zsh provides symbolic variables for color setting:
 
  autoload -U colors
  colors
  echo $fg[blue]$bg[red]blue on red!
 
  so you don't have to memorize the numbers.  See the zshcontrib
  manpage, OTHER FUNCTIONS section.
 
  If the only difference between your root prompt is color, you can
  also just set a1,a2,a3 to different values within your if block,
  then set PROMPT outside of it.
 
  if [[ $USER == root ]] ; then
   a1=%{$fg[cyan]$bg[black]}
  else
   a1=%{$fg[red]}$bg[black]}
  fi
  PROMPT=$a1
 
 Hey Dan!
 
 I can't find a list of what colors are available. Besides I doubt 
 that mine are accounted for.

There are only so many ways to combine 8 colors :)  From the manpage:

  colors This function initializes  several  associative  arrays  to  map
 color names to (and from) the ANSI standard eight-color terminal
 codes.  These are used by the prompt theme system  (see  above).
 You seldom should need to run colors more than once.

 The  eight  base  colors  are:  black, red, green, yellow, blue,
 magenta, cyan, and white.  Each of these  has  codes  for  fore-
 ground  and  background.   In addition there are eight intensity
 attributes: bold, faint, standout,  underline,  blink,  reverse,
 and  conceal.   Finally,  there  are  six  codes  used to negate
 attributes: none (reset all attributes to the defaults),  normal
 (neither  bold  nor faint), no-standout, no-underline, no-blink,
 and no-reverse.

 I'd be very grateful if you could at least try this prompt out so you 
 know my request:
 
 PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@'
 PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}('
 PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}'
 PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}('
 PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})'
 PROMPT+=$'%{\e[01;30m\e[00m%} '

How about something like:

autoload -U colors
colors

if [[ $USER == root ]] ; then
 c1=%{$fg_no_bold[cyan]%} # base color1
 c2=%{$fg_bold[cyan]%}# base color2
 c3=%{$fg_bold[black]%}   # punctuation
else
 c1=%{$fg_no_bold[red]%} # base color1
 c2=%{$fg_bold[red]%}# base color2
 c3=%{$fg_bold[black]%}  # punctuation
fi

PROMPT=$c2([EMAIL PROTECTED])($c1%D{%H:%M}$c3+$c1%D{%d/%m}$c2)$'\n'
PROMPT+=$c2($c1%#$c3:$c1%~$c2) %{$reset_color%}

-- 
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: pppoe reliability

2006-05-18 Thread Michael P. Soulier

On 5/18/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:

In the ppp.linkdown
mylabel:
 iface clear

That will clear the interface and also remove the address when the PPPoE goes
down.


Ah, thanks. I see that /usr/share/examples/ppp has more examples of
this. I wish the handbook did, since it's my first reference.

Mike

--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


how to change roots shell

2006-05-18 Thread unixforums 1
Hi,
 I did a completely newbie move and changed the root’s  shell to something that 
doesn’t work. So, needless to say now I can’t su to root  or even login as 
root. Is there a way I can fix this without rebuilding the  server?
  
 Thanks for any help you can provide.


-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
radically better. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to change roots shell

2006-05-18 Thread Jona Joachim
unixforums 1 wrote:
 Hi,
  I did a completely newbie move and changed the root’s  shell to something 
 that doesn’t work. So, needless to say now I can’t su to root  or even login 
 as root. Is there a way I can fix this without rebuilding the  server?
   
  Thanks for any help you can provide.

Boot in single user mode and change it from there.

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


Re: how to change roots shell

2006-05-18 Thread Andy Greenwood

You should be able to boot into single-user mode and change it there.

On 5/18/06, unixforums 1 [EMAIL PROTECTED] wrote:

Hi,
 I did a completely newbie move and changed the root's  shell to something that 
doesn't work. So, needless to say now I can't su to root  or even login as 
root. Is there a way I can fix this without rebuilding the  server?

 Thanks for any help you can provide.


-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
radically better.
___
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]


Possible hack?

2006-05-18 Thread Don O'Neil
This morning I had a process listed as [htttpd32] (perl), yes 3 t's... And
it was eating up TONS of CPU. I could not find such a file named htttpd32,
or where it could be running from, but as soon as I killed the process
everything seemed to go back to normal. 

Anyone heard of such a hack, or know what the problem might be? A google
search turned up nothing.

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


Re: how to change roots shell

2006-05-18 Thread Izwan Mohd

unixforums 1 wrote:


Hi,
I did a completely newbie move and changed the root’s  shell to something that 
doesn’t work. So, needless to say now I can’t su to root  or even login as 
root. Is there a way I can fix this without rebuilding the  server?
 
Thanks for any help you can provide.



-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just radically better. 
___

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

 


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


Re: Gtk-Warning **: Cannot open display

2006-05-18 Thread Barnaby Scott
On Thu, May 18, 2006 2:51 pm, Kevin Kinsey wrote:
 Barnaby Scott wrote:


 So now I can strat Firefox from an xterm, but 2 things still puzzle me
 though:
 1) Forgive my stupidity, but why can I not start Firefox from the
 console? Or rather, what could I do to make it do so with a single
 command?

 I'm perfectly willing to be wrong, flamed, and corrected, but my counter
 question (and it seems a good one to me):  how do you expect to run a
 graphical program in a non-graphical environment?

I'm certainly not going to flame or correct you! I'm afraid it shows the
profundity of my ignorance at this stage, but at least I have browser
functionality without rebooting back into Windows now, so looking up
solutions and sorting my own problems just got a whole lot easier. I guess
my beginner's reasoning was something like this: if a program  needs a gui
to work, then maybe it has a mechanism to fire one up when needed, in the
same way it will look for and use whatever libraries or resources it
needs. Oh dear, looks like I have loads more reading to do.

Thanks for your help



 If you wish, you could add firefox to your ~/.xinitrc or
 (? .Xresources ?) file, and then firefox would be called when
 you called startx to invoke X Windows.

 2) I thought Firefox wasn't going to start from the xterm, but really
 it just took ages - far longer than I am used to with my old OS (same
 machine). Is there something I am missing here too?

 I couldn't say.  I've used firefox, and more often the entire Mozilla
 suite (which is now 'Seamonkey').  It probably starts slower and hangs more
 often than any other program I run on FreeBSD, (with the possible
 exception of the xrayswarm screen saver) but I can't say why or that
 I've even done much investigating.  I did build a 'debug' version
 of Seamonkey last time, but I've not yet done anything with it.  FWIW, it
 seems a tad less prone to some of the behavior I saw with Mozilla (which
 seems strange, perhaps).

 Of course, I use it heavily, so perhaps that characterization is
 flawed.

 Kevin Kinsey
 ___
 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]


ping on desktop

2006-05-18 Thread Rodrigo Mufalani
Hi all,

   I have a freeBSD 5.4, with squid, my desktop go to web via squid.

   On the server, pinging 200.122.122.53 for example, its ok!!!

But , on my desktop, no answer.


How to make my desktop, ping a puublic ip?


Att,

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


kernel module for ipf

2006-05-18 Thread Michael P. Soulier

Hello,

The handbook mentions that ipf should work out of the box in FreeBSD
thanks to a kernel module, but it doesn't say which one.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipf.html

IPF is included in the basic FreeBSD install as a separate run time
loadable module. The system will dynamically load the IPF kernel
loadable module when the rc.conf statement ipfilter_enable=YES is
used. The loadable module was created with logging enabled and the
default pass all options. You do not need to compile IPF into the
FreeBSD kernel just to change the default to block all, you can do
that by just coding a block all rule at the end of your rule set.

I don't see anything under /boot/kernel that looks like a likely
candidate. There's an ipfw.ko, but no ipf or ipfilter. I'd prefer to
not reboot my system just to find out, so could someone point me to
the correct module? I'm running FreeBSD 5.4 with the GENERIC kernel.

Thanks,
Mike

--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to change roots shell

2006-05-18 Thread unixforums 1
 tried it and i get the following error:

su: change: No such file or directory

What happened originally is I accidently changed the shell to change and now 
i get the following error when I su.

su: change: No such file or directory

This is a remote system so if at all possable i need to do it through ssh.

Thanks

Izwan Mohd [EMAIL PROTECTED] wrote: unixforums 1 wrote:

Hi,
 I did a completely newbie move and changed the root�s  shell to something 
 that doesn�t work. So, needless to say now I can�t su to root  or even 
 login as root. Is there a way I can fix this without rebuilding the  server?
  
 Thanks for any help you can provide.

   
-
Sneak preview the  all-new Yahoo.com. It's not radically different. Just 
radically better. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

  

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


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


make installkernel and getcwd(3)

2006-05-18 Thread Doug Poland
Hello,

I'm having a problem getting make to understand the current working
directory.

For example, I have a directory structure where /usr/src and /usr/obj
are symbolic links to another location.  When I type: make
installkernel, make thinks I'm in the directory /mnt/src, instead of
/usr/src, and the make fails.

Question is, how can I get make to resolve it's working directory from
a logical, rather than physical perspective, as in PWD(1) ?


-- 
Regards,
Doug

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


Re: how to change roots shell

2006-05-18 Thread Izwan Mohd
Hope you have sudo you can do sudo -u root bash if don't nothing 
came cross my mine yet how to deal with it :-\


unixforums 1 wrote:


tried it and i get the following error:

su: change: No such file or directory

What happened originally is I accidently changed the shell to change 
and now i get the following error when I su.


su: change: No such file or directory

This is a remote system so if at all possable i need to do it through ssh.

Thanks

*/Izwan Mohd [EMAIL PROTECTED]/* wrote:

unixforums 1 wrote:

Hi,
 I did a completely newbie move and changed the root�s shell to
something that doesn�t work. So, needless to say now I can�t
su to root or even login as root. Is there a way I can fix this
without rebuilding the server?

 Thanks for any help you can provide.


-
Sneak preview the all-new Yahoo.com. It's not radically
different. Just radically better.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
[EMAIL PROTECTED]



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


__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com



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


Re: kernel module for ipf

2006-05-18 Thread Giorgos Keramidas
On 2006-05-18 12:05, Michael P. Soulier [EMAIL PROTECTED] wrote:
 Hello,

 The handbook mentions that ipf should work out of the box in FreeBSD
 thanks to a kernel module, but it doesn't say which one.

 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipf.html

 IPF is included in the basic FreeBSD install as a separate run time
 loadable module. The system will dynamically load the IPF kernel
 loadable module when the rc.conf statement ipfilter_enable=YES is
 used. The loadable module was created with logging enabled and the
 default pass all options. You do not need to compile IPF into the
 FreeBSD kernel just to change the default to block all, you can do
 that by just coding a block all rule at the end of your rule set.

 I don't see anything under /boot/kernel that looks like a likely
 candidate. There's an ipfw.ko, but no ipf or ipfilter. I'd prefer to
 not reboot my system just to find out, so could someone point me to
 the correct module? I'm running FreeBSD 5.4 with the GENERIC kernel.

The module is called ipl.ko:

# ls -l /boot/kernel/ipl.*
-r-xr-xr-x  1 root  wheel  - 171625 May 16 16:05 /boot/kernel/ipl.ko
-r-xr-xr-x  1 root  wheel  - 371887 May 16 16:05 /boot/kernel/ipl.ko.symbols
#

Strange and weird, but this is the name the IP Filter kernel module
has had for years, so it's not easy to change it now without breaking
all the scripts around the world that assume its name is ipl.

- Giorgos

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


Re: ping on desktop

2006-05-18 Thread albi
Rodrigo Mufalani wrote:

I have a freeBSD 5.4, with squid, my desktop go to web via squid.
 
On the server, pinging 200.122.122.53 for example, its ok!!!
 
 But , on my desktop, no answer.
 
 
 How to make my desktop, ping a puublic ip?

you could perhaps try mtr instead of ping (mtr does not use the
ping-protocol)

mtr is in the ports,
see also here :
http://www.freshports.org/net/mtr/
http://www.bitwizard.nl/mtr/

-- 
grtjs, albi
gpg-key: lynx -dump http://scii.nl/~albi/gpg.asc | gpg --import
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: kernel module for ipf

2006-05-18 Thread Michael P. Soulier

On 5/18/06, Scott Mitchell [EMAIL PROTECTED] wrote:

You want the ipl.ko module.  No, I have no idea why it's called ipl not ipf
either...


[EMAIL PROTECTED] ~]# ls /boot/kernel/ipl*
/boot/kernel/ipl.ko*

Ah. Cool. Thanks.

Yes, this should be in the handbook.

Mike
--
Michael P. Soulier [EMAIL PROTECTED]
Any intelligent fool can make things bigger and more complex... It takes a
touch of genius - and a lot of courage to move in the opposite direction.
--Albert Einstein
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Firewall Speed

2006-05-18 Thread bc
I want to run 6.1_RELEASE with Packet Filter(PF) configured as a gateway 
using 2 identical 10/100 nics, on an old 450mhz pentium with 256 meg ram 
and an 8 gig HD.


In general, should I expect any speed performance issues with internet 
access base on the processor, ram and bus speeds of the MB?

Would the PF config cause any speed performance deficiencies?

I had same setup as above but with IPF firewall and received complaints 
about surfing speed so I put them back on a Linksys router firewall.


bc

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


Re: kernel module for ipf

2006-05-18 Thread Scott Mitchell
On Thu, May 18, 2006 at 12:05:00PM -0400, Michael P. Soulier wrote:
 Hello,
 
 The handbook mentions that ipf should work out of the box in FreeBSD
 thanks to a kernel module, but it doesn't say which one.
 
 http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipf.html
 
 IPF is included in the basic FreeBSD install as a separate run time
 loadable module. The system will dynamically load the IPF kernel
 loadable module when the rc.conf statement ipfilter_enable=YES is
 used. The loadable module was created with logging enabled and the
 default pass all options. You do not need to compile IPF into the
 FreeBSD kernel just to change the default to block all, you can do
 that by just coding a block all rule at the end of your rule set.
 
 I don't see anything under /boot/kernel that looks like a likely
 candidate. There's an ipfw.ko, but no ipf or ipfilter. I'd prefer to
 not reboot my system just to find out, so could someone point me to
 the correct module? I'm running FreeBSD 5.4 with the GENERIC kernel.

Hi Mike,

You want the ipl.ko module.  No, I have no idea why it's called ipl not ipf
either...

Cheers,

Scott

-- 
===
Scott Mitchell   | PGP Key ID | Eagles may soar, but weasels
Cambridge, England   | 0x54B171B9 |  don't get sucked into jet engines
scott at fishballoon.org | 0xAA775B8B |  -- Anon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Converting a zsh prompt to bash

2006-05-18 Thread Kyrre Nygard

At 17:02 18.05.2006, Dan Nelson wrote:

In the last episode (May 18), Kyrre Nygard said:
 At 17:04 17.05.2006, Dan Nelson wrote:
 In the last episode (May 17), Kyrre Nygard said:
  Do you think this would work?
 
  I tried applying your principles, as well as some information design:
 
  local a1=01;36m
  local a2=22;36m
  local a3=01;30m
 
  local b1=01;31m
  local b2=22;31m
  local b3=01;30m
 
  PROMPT=$'%{$a1}([EMAIL PROTECTED])'
  PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n'
  PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})'
 
  if [[ `whoami` = root ]] then
  PROMPT=$'%{$b1}([EMAIL PROTECTED])'
  PROMPT+=$'%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n'
  PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})'
  fi
 
  Note that zsh provides symbolic variables for color setting:
 
  autoload -U colors
  colors
  echo $fg[blue]$bg[red]blue on red!
 
  so you don't have to memorize the numbers.  See the zshcontrib
  manpage, OTHER FUNCTIONS section.
 
  If the only difference between your root prompt is color, you can
  also just set a1,a2,a3 to different values within your if block,
  then set PROMPT outside of it.
 
  if [[ $USER == root ]] ; then
   a1=%{$fg[cyan]$bg[black]}
  else
   a1=%{$fg[red]}$bg[black]}
  fi
  PROMPT=$a1

 Hey Dan!

 I can't find a list of what colors are available. Besides I doubt
 that mine are accounted for.

There are only so many ways to combine 8 colors :)  From the manpage:

  colors This function initializes  several  associative  arrays  to  map
 color names to (and from) the ANSI standard eight-color terminal
 codes.  These are used by the prompt theme system  (see  above).
 You seldom should need to run colors more than once.

 The  eight  base  colors  are:  black, red, green, yellow, blue,
 magenta, cyan, and white.  Each of these  has  codes  for  fore-
 ground  and  background.   In addition there are eight intensity
 attributes: bold, faint, standout,  underline,  blink,  reverse,
 and  conceal.   Finally,  there  are  six  codes  used to negate
 attributes: none (reset all attributes to the defaults),  normal
 (neither  bold  nor faint), no-standout, no-underline, no-blink,
 and no-reverse.

 I'd be very grateful if you could at least try this prompt out so you
 know my request:

 PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@'
 PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}('
 PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}'
 PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}('
 PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})'
 PROMPT+=$'%{\e[01;30m\e[00m%} '

How about something like:

autoload -U colors
colors

if [[ $USER == root ]] ; then
 c1=%{$fg_no_bold[cyan]%} # base color1
 c2=%{$fg_bold[cyan]%}# base color2
 c3=%{$fg_bold[black]%}   # punctuation
else
 c1=%{$fg_no_bold[red]%} # base color1
 c2=%{$fg_bold[red]%}# base color2
 c3=%{$fg_bold[black]%}  # punctuation
fi

PROMPT=$c2([EMAIL PROTECTED])($c1%D{%H:%M}$c3+$c1%D{%d/%m}$c2)$'\n'
PROMPT+=$c2($c1%#$c3:$c1%~$c2) %{$reset_color%}

--
Dan Nelson
[EMAIL PROTECTED]


Oh man! That is absolutely gorgeous!!!
Thank you so much :)))

My /etc/zshrc is now worth $10.000 (up from $7.000)

Don't sell it on eBay you all: http://paste.husk.org/5717

Just out of curiosity Dan, how does your prompt look like?

All the best,
Kyrre

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


Re: ping on desktop

2006-05-18 Thread Øyvind Skaar

   I have a freeBSD 5.4, with squid, my desktop go to web via squid.
   On the server, pinging 200.122.122.53 for example, its ok!!!
But , on my desktop, no answer.


You really need to supply more info..
Is the desktop connected to the Internet through the server? how?

ö

--
Øyvind Skaar | os odots.org | 482 78 480 | http://odots.org
http://last.fm/user/%67%69%7A%7A%6C%6Fn | http://43things.com/person/%C3%B8s
6865792c207768617420646f20796f75206b6e6f772c
796f752772652061206e65726420746f6f202e2e
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell script cannot run on FAT32 partition

2006-05-18 Thread Simon Olofsson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi,

FAT32 can't distinguish between upper and lowercase. You need to use an
intermediate filename to do so.
Take a look at lcra:
http://membled.com/work/apps/lcra/lcra-1.0.1/lcra
HTH

on 05/18/2006 12:40 Kyrre Nygard said the following:
 
 Hello!
 
 I have this nice renaming script here.
 It sanitizes badly named parts of files and folders.
 
 But when I run it on my FAT32, dual boot transition partition (hehe), it
 causes
 my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing some
 message before it freezes saying Locking from myself or something like
 that,
 this is not recorded into /var/log/messages.
 
 It is very annoying actually because to rename a bunch of files I first
 have to
 copy them to my UFS2 partition, run the script, and then copy them back
 to the
 FAT32 partition.
 
 Does this problem sound familiar to anyone?
 
 Thanks!
 
 Anyway here is the script.
 
 #!/usr/local/bin/bash
 #
 #   Rename files and folders in MP3 releases.
 #   $MERHABA: mp3_rename.sh,v 1.0 2007/11/11 15:09:05 kyrre Exp $
 #
 
 if [ $1 ]; then mv=echo; else mv=mv; fi
 
 function do_folders () {
 
 for old in *; do
 
 if [ -f $old ]; then do_files $old
 elif [ -d $old ]; then
 
 new=`echo $old | tr [:upper:] [:lower:]`
 new=`echo $new | sed -e s/ /_/g \
 -e s/)//g \
 -e s/-(/-/g \
 -e s/_(/-/g \
 -e s/(//g \
 -e s/_-_/-/g \
 -e s/---*/-/g \
 -e s/___*/-/g \
 -e s/\./_/g \
 -e s/,/-/g \
 -e s/'//g \
 -e s/___*/_/g \
 -e s/_-/-/g \
 -e s/-_/-/g \
 -e s//and/g \
 -e s/\([-_]\)ft[_-]/\1feat_/g \
 -e s/\([-_]\)featuring[_-]/\1feat_/g \
 -e s/[][]//g`
 
 if [ $old != $new ]; then $mv $old $new; fi
 
 echo Renaming $old
 
 cd $new; do_folders $new; cd ..
 
 else echo Directory invalid.; fi
 
 done
 }
 
 function do_files () {
 
 old=$1
 
 new=`echo $old | tr [:upper:] [:lower:]`
 
 if [[ $old == *.* ]]; then
 
 extension=${new##*.}
 new=${new%.*}
 
 new=`echo $new | sed -e s/ /_/g \
 -e s/)//g \
 -e s/-(/-/g \
 -e s/_(/-/g \
 -e s/(//g \
 -e s/_-_/-/g \
 -e s/---*/-/g \
 -e s/___*/-/g \
 -e s/\./_/g \
 -e s/,/-/g \
 -e s/'//g \
 -e s/___*/_/g \
 -e s/_-/-/g \
 -e s/-_/-/g \
 -e s/\/and/g \
 -e s/\([-_]\)ft[_-]/\1feat_/g \
 -e s/\([-_]\)featuring[_-]/\1feat_/g \
 -e s/^\([0-9]\{2,3\}\)_/\1-/g \
 -e s/[][]//g`
 
 new=`echo $new.$extension`
 
 $mv $old $new; fi
 }
 
 do_folders .

- --
Mit freundlichem Gruß,
With best regards,

Simon Olofsson
http://olofsson.de

GPG-Key: 0x3D001BE0
http://olofsson.de/simon/keys/simon_olofsson.asc
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.3 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFEbLNARM/k9z0AG+ARAsy/AKCTZ74GYB9lQbVshtB/RiMSbWoShQCg85Nr
A2iRe7zu3GOyrya3J8QtUm4=
=Av5z
-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: ping on desktop

2006-05-18 Thread Andy Reitz
On Thu, 18 May 2006, Rodrigo Mufalani wrote:

 Hi all,

I have a freeBSD 5.4, with squid, my desktop go to web via squid.

On the server, pinging 200.122.122.53 for example, its ok!!!

 But , on my desktop, no answer.


 How to make my desktop, ping a puublic ip?

Hi Rodrigo,

Squid acts as an protocol-level proxy, allowing you to get traffic like
HTTP from your desktop to the Internet.

Ping utilizes the ICMP protocol, so you will need to run something on your
squid proxy that can work with this protocol.

NAT is a general solution that will work for all IP traffic[1]. If you
configure natd(8) on your squid server, you should be able to use tools
such as ping, and access the internet directly, without going through a
proxy.

In order to setup and configure NAT on FreeBSD, please consult the
handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-natd.html

HTH,
-Andy Reitz.

[1] Well, but all traffic, I really mean most traffic. :)

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


Re: Converting a zsh prompt to bash

2006-05-18 Thread Eric
 Oh man! That is absolutely gorgeous!!!
 Thank you so much :)))
 
 My /etc/zshrc is now worth $10.000 (up from $7.000)
 
 Don't sell it on eBay you all: http://paste.husk.org/5717
 
 Just out of curiosity Dan, how does your prompt look like?
 

post a screenshot somewhere =) sounds like you like your new prompt
quite a bit =)

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


Re: kernel panic on kldload in 6.1

2006-05-18 Thread Kris Kennaway

On Thu, May 18, 2006 at 10:57:51AM +0200, Frank Steinborn wrote:
 Kris Kennaway wrote:
  It sounds like you have an old (6.0) module you're still trying to
  load.  Things like the nvidia driver and other ports are prime
  candidates.
  
  Kris
 
 Does that mean that all the panic-issues with kld(un)load are fixed in
 6.1? I crashed an important 6.0-STABLE box several times by trying to
 unload procfs for example and I don't want to run in such nightmares
 again by fiddling with klds unless I'm sure it's safe now.

No, it means that modules are not cross-compatible between releases.

Please retest your problem with 6.1 and file a PR if you encounter it
again; it's the only way it will get fixed.

Kris


pgpZEQzA6e4Uv.pgp
Description: PGP signature


CVSUP date for a successful x11-toolkits/fox-devel

2006-05-18 Thread Jim Stapleton

I'm trying to install something that requires x11-toolkits/fox-devel,
which will not compile, I've tried the following cvsup dates:

2006.05.05.00.00.00
2006.04.05.00.00.00
2006.03.05.00.00.00
2005.11.05.00.00.00
2005.08.00.00.00.00

Anyone know what CVSUP date works well?

At the end is the last of the compilation error message:

Thanks,
-Jim



c++ -DHAVE_XFT_H=1 -I/usr/local/include/freetype2 -I/usr/local/include
-I/usr/X11R6/include -I/usr/local/include/freetype2
-I/usr/local/include -I/usr/X11R6/include -I/usr/X11R6/include
-DHAVE_XSHAPE_H=1 -DHAVE_XSHM_H=1 -DFOX_THREAD_SAFE=1
-D_POSIX_PTHREAD_SEMANTICS -D_GNU_SOURCE -DHAVE_JPEG_H=1
-DHAVE_PNG_H=1 -DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1
-DHAVE_XCURSOR_H=1 -DHAVE_XRANDR_H=1 -DHAVE_CUPS_H=1 -Wall -W
-Woverloaded-virtual -Wformat -O2 -fno-strict-aliasing -pipe
-march=athlon-mp -DNDEBUG -Wuninitialized -pg -DHAVE_GL_H=1
-DHAVE_GLU_H=1 -I/usr/X11R6/include -Wl,--rpath -Wl,/usr/local/lib -o
.libs/chart chart.o icons.o  -L/usr/local/lib -L/usr/X11R6/lib
./.libs/libCHART-1.4.so ../src/.libs/libFOX-1.4.so
/usr/X11R6/lib/libXft.so /usr/X11R6/lib/libfontconfig.so
/usr/local/lib/libfreetype.so /usr/local/lib/libexpat.so -lXrender
-lX11 -lXext -lXcursor -lXrandr -lpthread -lpng
/usr/local/lib/libtiff.so -lcompat /usr/local/lib/libjpeg.so -lz -lbz2
-lm -lcups -lGL -lGLU -Wl,--rpath -Wl,/usr/local/lib -Wl,--rpath
-Wl,/usr/X11R6/lib
/usr/local/lib/libgcrypt.so.13: undefined reference to `stpcpy'
/usr/local/lib/libintl.so.6: undefined reference to `tsearch'
/usr/lib/libstdc++.so.5: undefined reference to `wcslen'
/usr/local/lib/libgnutls.so.15: undefined reference to `memmem'
/usr/lib/libstdc++.so.5: undefined reference to `tolower'
/usr/lib/libstdc++.so.5: undefined reference to `btowc'
/usr/lib/libstdc++.so.5: undefined reference to `isspace'
/usr/lib/libstdc++.so.5: undefined reference to `wmemcpy'
/usr/lib/libstdc++.so.5: undefined reference to `wcscoll'
/usr/local/lib/libgcrypt.so.13: undefined reference to `mlock'
/usr/lib/libstdc++.so.5: undefined reference to `wmemchr'
/usr/lib/libstdc++.so.5: undefined reference to `putwc'
/usr/lib/libstdc++.so.5: undefined reference to `modf'
/usr/local/lib/libintl.so.6: undefined reference to `nl_langinfo'
/usr/local/lib/libintl.so.6: undefined reference to `tfind'
/usr/lib/libstdc++.so.5: undefined reference to `iswctype'
/usr/lib/libstdc++.so.5: undefined reference to `wmemset'
/usr/local/lib/libgcrypt.so.13: undefined reference to `getrusage'
/usr/lib/libstdc++.so.5: undefined reference to `towupper'
/usr/lib/libstdc++.so.5: undefined reference to `strxfrm'
/usr/lib/libstdc++.so.5: undefined reference to `wctype'
/usr/lib/libstdc++.so.5: undefined reference to `isalnum'
/usr/local/lib/libintl.so.6: undefined reference to `strcspn'
/usr/lib/libstdc++.so.5: undefined reference to `getwc'
/usr/lib/libstdc++.so.5: undefined reference to `wmemcmp'
/usr/lib/libstdc++.so.5: undefined reference to `wmemmove'
/usr/lib/libstdc++.so.5: undefined reference to `ungetwc'
/usr/lib/libstdc++.so.5: undefined reference to `wcsftime'
/usr/lib/libstdc++.so.5: undefined reference to `towlower'
/usr/lib/libstdc++.so.5: undefined reference to `toupper'
/usr/local/lib/libgcrypt.so.13: undefined reference to `clock'
/usr/lib/libstdc++.so.5: undefined reference to `wcsxfrm'
/usr/local/lib/libgcrypt.so.13: undefined reference to `setuid'
*** Error code 1

Stop in /usr/ports/x11-toolkits/fox-devel/work/fox-1.4.7/chart.
*** Error code 1

Stop in /usr/ports/x11-toolkits/fox-devel/work/fox-1.4.7.
*** Error code 1

Stop in /usr/ports/x11-toolkits/fox-devel.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


portaudit report vs. portupgrade report

2006-05-18 Thread Jim Angstadt
Hi All,

I'm new to FreeBSD.

The daily security report lists 9 problems with
installed packages.  

In an earlier message I was advised to use the ports
system to avoid dealing with package dependencies. 
Thanks to all for that advice.

So I have done the cvsup, buildworld, buildkernel,
..., process and completed without errors.  (Thanks to
all who have posted helpful messages on this subject.)

Running portaudit -Fa advised me that the same 9
packages were still a problem.

Running portupgrade -n firefox advised me:

  ** No need to upgrade 'firefox-1.0.7_1,1' (=
firefox-1.0.7_1,1).

Same thing with mozilla:

  ** No need to upgrade 'mozilla-1.7.12,2' (=
mozilla-1.7.12,2).

I did not check the other 7 packages in question.

On the surface, to me, it seems as if these two tools
are giving me opposite information.

So, ... what is going on here?  What should I do to
get right.

Please see below for the actual console traffic,
slightly snipped.


# --- actual console traffic ---

tiny# uname -a
FreeBSD tiny.brc.localnet 6.0-RELEASE-p7 FreeBSD
6.0-RELEASE-p7 #0: Wed May 17 16:26:53 PDT 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC 
i386


tiny# portaudit -Fa
auditfile.tbz 100% of 
 35 kB  154 kBps
New database installed.
Affected package: firefox-1.0.7_1,1
Type of problem: mozilla -- multiple vulnerabilities.
Reference:
http://www.FreeBSD.org/ports/portaudit/84630f4a-cd8c-11da-b7b9-0
00c6ec775d9.html

Affected package: mozilla-1.7.12,2
Type of problem: mozilla -- multiple vulnerabilities.
Reference:
http://www.FreeBSD.org/ports/portaudit/84630f4a-cd8c-11da-b7b9-0
00c6ec775d9.html

[ 7 other packages snipped ]

9 problem(s) in your installed packages found.

You are advised to update or deinstall the affected
package(s) immediately.


tiny# portupgrade -n firefox
---  Session started at: Wed, 17 May 2006 18:55:20
-0700
[Rebuilding the pkgdb format:bdb1_btree in
/var/db/pkg ... - 241 packages found (-0 +241)
.
done]
[Updating the portsdb format:bdb1_btree in
/usr/ports ... - 13306 port entries found
.1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000...
. done]
** No need to upgrade 'firefox-1.0.7_1,1' (=
firefox-1.0.7_1,1). (specify -f to force)
---  Listing the results (+:done / -:ignored /
*:skipped / !:failed)
- www/firefox (firefox-1.0.7_1,1)
---  Packages processed: 0 done, 1 ignored, 0 skipped
and 0 failed
---  Session ended at: Wed, 17 May 2006 18:57:17
-0700 (consumed 00:01:57)


tiny# portupgrade -n mozilla
---  Session started at: Wed, 17 May 2006 18:58:49
-0700
** No need to upgrade 'mozilla-1.7.12,2' (=
mozilla-1.7.12,2). (specify -f to force)
---  Listing the results (+:done / -:ignored /
*:skipped / !:failed)
- www/mozilla (mozilla-1.7.12,2)
---  Packages processed: 0 done, 1 ignored, 0 skipped
and 0 failed
---  Session ended at: Wed, 17 May 2006 18:58:53
-0700 (consumed 00:00:03)


# - end of console traffic -


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing a port into a different prefix

2006-05-18 Thread Paul Schmehl

Lennon Cook wrote:

I am attempting to have two ports (java/kaffe and java/jdk15)
installed side-by-side. This means installing one of them into a
different prefix, because they both install several files with the
same name (specifically, java{,c,h,doc} and possibly others). At this
point, I would prefer to do this with kaffe if it is possible. I have
attempted to do this by 'pkg_add -p /opt/kaffe -r kaffe', but this
didn't work: the 'kaffe' binary is installed into /usr/local/bin, and
the various files with conflicting names remain the Sun versions. So,
I tried 'cd /usr/ports/java/kaffe ; prefix=/opt/kaffe make install
clean' , which gave me exactly the same results.

Can anyone enlighten me as to what I'm doing wrong here?


make PREFIX=/usr/local/lib/ install clean

If you ever deinstall, you will have to:

make PREFIX=/usr/local/lib/ deinstall clean

as well.  And if you try to:

make install clean

the system will complain that it's already installed in a different 
location.  And if you try to:


make deinstall clean

it will tell you that it's not installed there.

--
Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Firewall Speed

2006-05-18 Thread Giorgos Keramidas
On 2006-05-18 11:03, bc [EMAIL PROTECTED] wrote:
 I want to run 6.1_RELEASE with Packet Filter(PF) configured as
 a gateway using 2 identical 10/100 nics, on an old 450mhz
 pentium with 256 meg ram and an 8 gig HD.

 In general, should I expect any speed performance issues with
 internet access base on the processor, ram and bus speeds of
 the MB?  Would the PF config cause any speed performance
 deficiencies?

 I had same setup as above but with IPF firewall and received
 complaints about surfing speed so I put them back on a Linksys
 router firewall.

We'd have to see the ruleset to be able to reply in an informed
manner.  I have seen firewalls doing both filtering  NAT on a
system, with almost no overhead at all though.

This top output:

http://keramida.serverhive.com/pixelshow-top.txt

shows that a FreeBSD 5.X system with 256 MB of physical memory is
happily filtering the traffic and doing NAT for more than 100
users, while still being 97% idle.

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


Re: how to change roots shell

2006-05-18 Thread Andy Greenwood

can you not link /bin/sh to change?

On 5/18/06, Izwan Mohd [EMAIL PROTECTED] wrote:

Hope you have sudo you can do sudo -u root bash if don't nothing
came cross my mine yet how to deal with it :-\

unixforums 1 wrote:

 tried it and i get the following error:

 su: change: No such file or directory

 What happened originally is I accidently changed the shell to change
 and now i get the following error when I su.

 su: change: No such file or directory

 This is a remote system so if at all possable i need to do it through ssh.

 Thanks

 */Izwan Mohd [EMAIL PROTECTED]/* wrote:

 unixforums 1 wrote:

 Hi,
  I did a completely newbie move and changed the root�s shell to
 something that doesn�t work. So, needless to say now I can�t
 su to root or even login as root. Is there a way I can fix this
 without rebuilding the server?
 
  Thanks for any help you can provide.
 
 
 -
 Sneak preview the all-new Yahoo.com. It's not radically
 different. Just radically better.
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]
 
 
 
 su root -c chsh root
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to
 [EMAIL PROTECTED]


 __
 Do You Yahoo!?
 Tired of spam? Yahoo! Mail has the best spam protection around
 http://mail.yahoo.com


___
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: portaudit report vs. portupgrade report

2006-05-18 Thread Gerard Seibert
Jim Angstadt wrote:

 Hi All,
 
 I'm new to FreeBSD.
 
 The daily security report lists 9 problems with
 installed packages.  
 
 In an earlier message I was advised to use the ports
 system to avoid dealing with package dependencies. 
 Thanks to all for that advice.
 
 So I have done the cvsup, buildworld, buildkernel,
 .., process and completed without errors.  (Thanks to
 all who have posted helpful messages on this subject.)
 
 Running portaudit -Fa advised me that the same 9
 packages were still a problem.
 
 Running portupgrade -n firefox advised me:
 
   ** No need to upgrade 'firefox-1.0.7_1,1' (=
 firefox-1.0.7_1,1).
 
 Same thing with mozilla:
 
   ** No need to upgrade 'mozilla-1.7.12,2' (=
 mozilla-1.7.12,2).
 
 I did not check the other 7 packages in question.
 
 On the surface, to me, it seems as if these two tools
 are giving me opposite information.
 
 So, ... what is going on here?  What should I do to
 get right.
 
 Please see below for the actual console traffic,
 slightly snipped.
 
 
 # --- actual console traffic ---
 
 tiny# uname -a
 FreeBSD tiny.brc.localnet 6.0-RELEASE-p7 FreeBSD
 6.0-RELEASE-p7 #0: Wed May 17 16:26:53 PDT 2006
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC 
 i386
 
 
 tiny# portaudit -Fa
 auditfile.tbz 100% of 
  35 kB  154 kBps
 New database installed.
 Affected package: firefox-1.0.7_1,1
 Type of problem: mozilla -- multiple vulnerabilities.
 Reference:
 http://www.FreeBSD.org/ports/portaudit/84630f4a-cd8c-11da-b7b9-0
 00c6ec775d9.html
 
 Affected package: mozilla-1.7.12,2
 Type of problem: mozilla -- multiple vulnerabilities.
 Reference:
 http://www.FreeBSD.org/ports/portaudit/84630f4a-cd8c-11da-b7b9-0
 00c6ec775d9.html
 
 [ 7 other packages snipped ]
 
 9 problem(s) in your installed packages found.
 
 You are advised to update or deinstall the affected
 package(s) immediately.
 
 
 tiny# portupgrade -n firefox
 ---  Session started at: Wed, 17 May 2006 18:55:20
 -0700
 [Rebuilding the pkgdb format:bdb1_btree in
 /var/db/pkg ... - 241 packages found (-0 +241)
 
 done]
 [Updating the portsdb format:bdb1_btree in
 /usr/ports ... - 13306 port entries found
 1000.2000.3000.4000.5000.6000.7000.8000.9000.1.11000.12000.13000...
  done]
 ** No need to upgrade 'firefox-1.0.7_1,1' (=
 firefox-1.0.7_1,1). (specify -f to force)
 ---  Listing the results (+:done / -:ignored /
 *:skipped / !:failed)
 - www/firefox (firefox-1.0.7_1,1)
 ---  Packages processed: 0 done, 1 ignored, 0 skipped
 and 0 failed
 ---  Session ended at: Wed, 17 May 2006 18:57:17
 -0700 (consumed 00:01:57)
 
 
 tiny# portupgrade -n mozilla
 ---  Session started at: Wed, 17 May 2006 18:58:49
 -0700
 ** No need to upgrade 'mozilla-1.7.12,2' (=
 mozilla-1.7.12,2). (specify -f to force)
 ---  Listing the results (+:done / -:ignored /
 *:skipped / !:failed)
 - www/mozilla (mozilla-1.7.12,2)
 ---  Packages processed: 0 done, 1 ignored, 0 skipped
 and 0 failed
 ---  Session ended at: Wed, 17 May 2006 18:58:53
 -0700 (consumed 00:00:03)
 
 
 # - end of console traffic -

Portaudit is reporting problems with certain ports. You need to update
your ports tree, might I suggest portsnap, before you can correct the
problem. Even then, a new version of the port that corrects the problem
may not be available. If it is not, keep trying every day or so and it
will usually be make available to you. Obviously you need to update your
ports tree on a regular schedule. You might want to investigate using
CRON to automate this procedure for you.

Also, you might want to give portmanager a look. Personally, I prefer it
to portupgrade. Strictly a personal choice though. I just think it
handles dependencies in a far superior manner.


-- 
Gerard Seibert
[EMAIL PROTECTED]


Ruth rode upon my motor bike
directly in back of me.
I hit a bump at 95
and rode on Ruthlessly.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Shell script cannot run on FAT32 partition

2006-05-18 Thread Lorin Lund

Kyrre Nygard wrote:



Hello!

I have this nice renaming script here.
It sanitizes badly named parts of files and folders.

But when I run it on my FAT32, dual boot transition partition (hehe), 
it causes
my computer (Pentium 4, 3,2 GHz) to freeze. I vaguely remember seeing 
some
message before it freezes saying Locking from myself or something 
like that,

this is not recorded into /var/log/messages.

It is very annoying actually because to rename a bunch of files I 
first have to
copy them to my UFS2 partition, run the script, and then copy them 
back to the

FAT32 partition.

Does this problem sound familiar to anyone?

Thanks!

Anyway here is the script.


FAT32 seems to have some limitations on moving and renaming files.

Several years ago I had wrote a program (which ran under Win98) which 
received
files by UDP in pieces.  Once fully assembled it would MOVE  the files 
to another director.


That process would bog down.  When I tried the same application under 
WinNT on an NTFS
drive it worked OK.  I don't know if the problem was in Win 98 or if it 
is a weakness of the FAT32
design.  If the problem is in the FAT32 design there could be problems 
that even show up under

FreeBSD.

That's my $0.02

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


Re: kernel module for ipf

2006-05-18 Thread Giorgos Keramidas
On 2006-05-18 12:52, Michael P. Soulier [EMAIL PROTECTED] wrote:
 On 5/18/06, Scott Mitchell [EMAIL PROTECTED] wrote:
 You want the ipl.ko module.  No, I have no idea why it's called ipl not ipf
 either...

 [EMAIL PROTECTED] ~]# ls /boot/kernel/ipl*
 /boot/kernel/ipl.ko*

 Ah. Cool. Thanks.
 Yes, this should be in the handbook.

I'll try to add it :)

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


how to search keywords in all directories

2006-05-18 Thread jason zeng
Hello!
  
  our system is runing on FreeBSD 5.3. using php+mysql. now I take over  
codes(programs) management and maintains.there are a lots of .php code  and  
Database tables. what I have now are database, tables structures, and just a 
few  programs description. so I don't know the relationship in these php  
programs. I really need read these programs when sometime it has  something 
wrong.I have to do these troubleshooting.
I want to know if there are some shortcut way to speed up my work.  there 
is a common program in my system that many others call it.the common.php hase  
many classes and functions, for example, function displaySelect(), I  hope to 
find how many programs call this function and where these  programs are? how 
can I search them using Unix command (s)? What I know  is all php programs are 
at /usr/local/php/html directory.from there,  there are many sub-directories.
THX a lot!
Jason

-
The best gets better. See why everyone is raving about the All-new Yahoo! Mail. 
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to search keywords in all directories

2006-05-18 Thread Giorgos Keramidas
On 2006-05-18 15:22, jason zeng [EMAIL PROTECTED] wrote:
 Hello!

 our system is runing on FreeBSD 5.3. using php+mysql. now I
 take over codes(programs) management and maintains.there are a
 lots of .php code and Database tables. what I have now are
 database, tables structures, and just a few programs
 description. so I don't know the relationship in these php
 programs. I really need read these programs when sometime it
 has something wrong.I have to do these troubleshooting.

 I want to know if there are some shortcut way to speed up my
 work.  there is a common program in my system that many others
 call it.the common.php hase many classes and functions, for
 example, function displaySelect(), I hope to find how many
 programs call this function and where these programs are? how
 can I search them using Unix command (s)? What I know is all
 php programs are at /usr/local/php/html directory.from there,
 there are many sub-directories.

[Text wrapped]

Please try capitalizing sentences  wrap your text using a more
reasonable line length (i.e. 72-75 characters per line).  It is
awful trying to read stuff like the original.

I think what you are looking for is something like:

$ cd /usr/local/php/html
$ find . -type f | xargs fgrep common.php

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


OT: Router Preference

2006-05-18 Thread Joel Gudknecht

DEAR FELLOW USERS:

I realize this is way off topic, however I believe there are people in the
know that read this list.

My question is if you were upgrading routers, would you choose a Cisco 2811
or a Juniper J4300 and why would you make that choice?

Thank you very much.

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


Re: Firewall Speed

2006-05-18 Thread Chad Leigh -- Shire.Net LLC


On May 18, 2006, at 12:39 PM, Giorgos Keramidas wrote:


On 2006-05-18 11:03, bc [EMAIL PROTECTED] wrote:

I want to run 6.1_RELEASE with Packet Filter(PF) configured as
a gateway using 2 identical 10/100 nics, on an old 450mhz
pentium with 256 meg ram and an 8 gig HD.

In general, should I expect any speed performance issues with
internet access base on the processor, ram and bus speeds of
the MB?  Would the PF config cause any speed performance
deficiencies?

I had same setup as above but with IPF firewall and received
complaints about surfing speed so I put them back on a Linksys
router firewall.


We'd have to see the ruleset to be able to reply in an informed
manner.  I have seen firewalls doing both filtering  NAT on a
system, with almost no overhead at all though.

This top output:

http://keramida.serverhive.com/pixelshow-top.txt

shows that a FreeBSD 5.X system with 256 MB of physical memory is
happily filtering the traffic and doing NAT for more than 100
users, while still being 97% idle.



I would think it is more than CPU speed.  The speed of the PCI bus  
and the speed and efficiency of the two network cards being used and  
their drivers may have a bit to do with latency (surfing speed)...


Just a guess
Chad

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


Re: CVSUP date for a successful x11-toolkits/fox-devel

2006-05-18 Thread Kevin Kinsey

Jim Stapleton wrote:

I'm trying to install something that requires x11-toolkits/fox-devel,
which will not compile, I've tried the following cvsup dates:



cvsup dates of the ports tree, we assume?



2006.05.05.00.00.00
2006.04.05.00.00.00
2006.03.05.00.00.00
2005.11.05.00.00.00
2005.08.00.00.00.00

Anyone know what CVSUP date works well?



Any chance of getting uname -a output from you?

It could be that a cvsup of source is what's
needed (plus all that *other* attendant stuff)

Kevin Kinsey

--
Fortune favors the lucky.

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


Re: how to search keywords in all directories

2006-05-18 Thread jason zeng
Hello! Giorgos,
  
  Thanks for your response. It is very useful for me. I tried it works!  so I 
don't warry at weekend to read a lots of programs at home. :-)
  
  Jason

Giorgos Keramidas [EMAIL PROTECTED] wrote:  On 2006-05-18 15:22, jason zeng  
wrote:
 Hello!

 our system is runing on FreeBSD 5.3. using php+mysql. now I
 take over codes(programs) management and maintains.there are a
 lots of .php code and Database tables. what I have now are
 database, tables structures, and just a few programs
 description. so I don't know the relationship in these php
 programs. I really need read these programs when sometime it
 has something wrong.I have to do these troubleshooting.

 I want to know if there are some shortcut way to speed up my
 work.  there is a common program in my system that many others
 call it.the common.php hase many classes and functions, for
 example, function displaySelect(), I hope to find how many
 programs call this function and where these programs are? how
 can I search them using Unix command (s)? What I know is all
 php programs are at /usr/local/php/html directory.from there,
 there are many sub-directories.

[Text wrapped]

Please try capitalizing sentences  wrap your text using a more
reasonable line length (i.e. 72-75 characters per line).  It is
awful trying to read stuff like the original.

I think what you are looking for is something like:

$ cd /usr/local/php/html
 $ find . -type f | xargs fgrep common.php




-
Make free worldwide PC-to-PC calls. Try the new Yahoo! Canada Messenger with 
Voice
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ELF interpreter /libexec/ld-elf.so.1 not found

2006-05-18 Thread David Banning
I am getting this error when attempting to start jboss4.

Google doesn't seem to bring up anything on this. My system is 
4.11-STABLE. I noticed that ld-elf.so.1 -does- exist in 
/usr/libexec/ld-elf.so.1 so one thought I had was just symlinking to it.

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


Openldap problem

2006-05-18 Thread Darryl Hoar
Greetings,
I have Freebsd 6.0-release and configured on my machine.
I need to install and have running openldap on this machine.

here is what I have done:

1. cd /usr/ports/net/openldap22-server
mailman#  make
mailman#  make install.

2. Added the following lines to /etc/rc.conf
   slapd_enable=YES
   slapd_flags='-h ldapi://var/run/openldap/ldapi/ ldap://0.0.0.0/;'
   slapd_sockets=/var/run/openldap/ldapi

rebooted, and the system came up fine.  Unfortunately, it does not
start slapd.   Went into /usr/local/etc/rc.d and did a ./slapd start.

following the article at Onlamp.com to create an address book.
my slapd.conf is:

#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include/usr/local/etc/openldap/schema/inetorgperson.schema

# Define global ACLs to disable default read access.

# Do not enable referrals until AFTER you have a working directory
# service AND an understanding of referrals.
#referral   ldap://root.openldap.org

pidfile /var/run/openldap/slapd.pid
argsfile/var/run/openldap/slapd.args

# Load dynamic backend modules:
modulepath  /usr/local/libexec/openldap
moduleload  back_bdb
# moduleloadback_ldap
# moduleloadback_ldbm
# moduleloadback_passwd
# moduleloadback_shell

# Sample security restrictions
#   Require integrity protection (prevent hijacking)
#   Require 112-bit (3DES or better) encryption for updates
#   Require 63-bit encryption for simple bind
# security ssf=1 update_ssf=112 simple_bind=64

# Sample access control policy:
#   Root DSE: allow anyone to read it
#   Subschema (sub)entry DSE: allow anyone to read it
#   Other DSEs:
#   Allow self write access
#   Allow authenticated users read access
#   Allow anonymous users to authenticate
#   Directives needed to implement policy:
# access to dn.base= by * read
# access to dn.base=cn=Subschema by * read
# access to *
#   by self write
#   by users read
#   by anonymous auth
#
# if no access controls are present, the default policy
# allows anyone and everyone to read anything but restricts
# updates to rootdn.  (e.g., access to * by * read)
#
# rootdn can always read and write EVERYTHING!

###
# BDB database definitions
###

databasebdb
suffix  dc=osborneinternal, dc=com
rootdn  cn=Manager, dc=osborneinternal, dc=com
# Cleartext passwords, especially for the rootdn, should
# be avoid.  See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw secret
# The database directory MUST exist prior to running slapd AND
# should only be accessible by the slapd and slap tools.
# Mode 700 recommended.
directory   /var/db/openldap-data
# Indices to maintain
index   objectClass eq


when I try to do a :

mailman# ldapadd -D 'dc=osborneinternal, dc=com' -f directory.ldif -W
the system prompts
Enter LDAP Password:
I type in my password exactly as it is in the slapd.conf.  So in the above
slapd.conf it would be the password secret without quotes.  No, its not
really the word
secret, and yes its internal so its intended to be a clear text password.

The system replies with :
ldap_bind: Invalid credentials

how the heck do I get this to work ?

thanks for any pointers, tips, etc.  And sorry for the length.

-Darryl


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


Re: how to change roots shell

2006-05-18 Thread unixforums 1
It wont let me link it. Im going to see if I can walk a user at the site 
through single user mode.

Thanks for trying to help.
Thron

Andy Greenwood [EMAIL PROTECTED] wrote: can you not link /bin/sh to change?

On 5/18/06, Izwan Mohd  wrote:
 Hope you have sudo you can do sudo -u root bash if don't nothing
 came cross my mine yet how to deal with it :-\

 unixforums 1 wrote:

  tried it and i get the following error:
 
  su: change: No such file or directory
 
  What happened originally is I accidently changed the shell to change
  and now i get the following error when I su.
 
  su: change: No such file or directory
 
  This is a remote system so if at all possable i need to do it through ssh.
 
  Thanks
 
  */Izwan Mohd /* wrote:
 
  unixforums 1 wrote:
 
  Hi,
   I did a completely newbie move and changed the root�s shell to
  something that doesn�t work. So, needless to say now I can�t
  su to root or even login as root. Is there a way I can fix this
  without rebuilding the server?
  
   Thanks for any help you can provide.
  
  
  -
  Sneak preview the all-new Yahoo.com. It's not radically
  different. Just radically better.
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
  
  
  
  su root -c chsh root
  ___
  freebsd-questions@freebsd.org mailing list
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to
  [EMAIL PROTECTED]
 
 
  __
  Do You Yahoo!?
  Tired of spam? Yahoo! Mail has the best spam protection around
  http://mail.yahoo.com
 

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

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to search keywords in all directories

2006-05-18 Thread Giorgos Keramidas
On 2006-05-18 16:01, jason zeng [EMAIL PROTECTED] wrote:
 Hello! Giorgos,

 Thanks for your response. It is very useful for me. I tried it
 works!  so I don't warry at weekend to read a lots of programs
 at home. :-)

Great!  A good guide about shell scripting will help in similar
casesin the future, i.e. the ``Advanced Bash-Scripting Guide'' of
the Linux Documentation Project:

http://www.tldp.org/LDP/abs/html/

Have fun,

Giorgos

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


Re: Converting a zsh prompt to bash

2006-05-18 Thread Kyrre Nygard

At 19:50 18.05.2006, Eric wrote:

 Oh man! That is absolutely gorgeous!!!
 Thank you so much :)))

 My /etc/zshrc is now worth $10.000 (up from $7.000)

 Don't sell it on eBay you all: http://paste.husk.org/5717

 Just out of curiosity Dan, how does your prompt look like?


post a screenshot somewhere =) sounds like you like your new prompt
quite a bit =)


The prompt is the same however the way of writing it into the zshrc
is now, thanks to Mr. Dan Nelson, much better.

Why a screenshot? There's no virus in it. Give it a go :)

And the best of luck to you,

-- Kyrre

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


Re: ELF interpreter /libexec/ld-elf.so.1 not found

2006-05-18 Thread David Banning
On Thu, May 18, 2006 at 04:02:45PM -0400, David Banning wrote:
 I am getting this error when attempting to start jboss4.
 
 Google doesn't seem to bring up anything on this. My system is 
 4.11-STABLE. I noticed that ld-elf.so.1 -does- exist in 
 /usr/libexec/ld-elf.so.1 so one thought I had was just symlinking to it.
 
 Any direction would be helpful.

I notice I also get a similar error - something like ELF interpreter
not found during boot.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Ignorant user overfilled /usr; strange errors followed. Fixed with fsck -y, but what exactly happened?

2006-05-18 Thread boink

On 18/05/06, Lowell Gilbert [EMAIL PROTECTED] wrote:

boink [EMAIL PROTECTED] writes:


8...


 My questions are these:
 - How could /usr have been at 108%, given that 100% is the logical maximum?

Because that *isn't* a given.
See the FAQ entry on How is it possible for a partition to be more
than 100% full?

 - Is there any risk that a physically adjacent filesystem be
 damaged?

No.  Furthermore, it's unlikely that your /usr was actually damaged,
either.  Don't run fsck on a live filesystem; of *course* it will
always find errors.

 - How can it be that, immediately following the deletion of
 /usr/ports/ktrace.out, I still had errors *at all* (prior to the
 fsck)?

See the FAQ entry on The du and df commands show different amounts of
disk space available. What is going on?  That describes what you
probably should have done instead of the fsck.

 - Given its recent history, can I now trust the integrity of /usr?

Probably.  But you may have messed it up with the fsck, so just to be
sure, go into single-user mode, umount /usr, and fsck it WHILE IT IS
NOT MOUNTED.

 My interpretation of the situation is that following the deletion of
 /usr/ports/ktrace.out, KDE, on startup, tried to write a file to a
 filesystem that apparently (although incorrectly) had no free blocks.
 fsck fixed the problem of the reported free blocks.

More or less.  But since the kernel's idea of what was on the disk
no longer matched reality (i.e., it knew that in reality there *were* no
free blocks), you may have gotten into trouble.

 However, if this interpretation is correct, it shouldn't have worked
 *at all* until fsck had repaired the filesystem.  That is, KDE should
 not have started at all.

That doesn't necessarily follow.

 So, prior to  the fsck -y in single-user mode, what was happening in
 the five minutes it took KDE to start?

I don't know KDE at all, but my guess would be some kind of timeout.




Lowell,

Thank you for taking the time to answer my questions.

I omitted to mention that I had rebooted into single user mode prior
to running fsck, so /usr was not in fact mounted when fsck was run.

The du/df FAQ is interesting, and non-obvious, as is FAQ 9.26. (How is
it possible for a partition to be more than 100% full?), which
explains why the quoted disk usage was 108%.
http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html.

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


Re: Converting a zsh prompt to bash

2006-05-18 Thread Dan Nelson
In the last episode (May 18), Kyrre Nygard said:
 At 17:02 18.05.2006, Dan Nelson wrote:
 In the last episode (May 18), Kyrre Nygard said:
  At 17:04 17.05.2006, Dan Nelson wrote:
  In the last episode (May 17), Kyrre Nygard said:
   Do you think this would work?
  
   I tried applying your principles, as well as some information design:
  
   local a1=01;36m
   local a2=22;36m
   local a3=01;30m
  
   local b1=01;31m
   local b2=22;31m
   local b3=01;30m
  
   PROMPT=$'%{$a1}([EMAIL PROTECTED])'
   PROMPT+=$'%{$a1}('{$a2}%D{%H:%M}%{$a3}+%{$a2}%D{%d/%m}%{$a1})%{$a3}\n'
   PROMPT+=$'%{$a1}(%{$a2}%#%{$a3}:%{$a2}%~%{$a1})'
  
   if [[ `whoami` = root ]] then
   PROMPT=$'%{$b1}([EMAIL PROTECTED])'
   PROMPT+=$'%{$b1}(%{$b2}%D{%H:%M}%{$b3}+%{$b2}%D{%d/%m}%{$b1})%{$b3}\n'
   PROMPT+=$'%{$b1}(%{$b2}%#%{$b3}:%{$b2}%~%{$b1})'
   fi
  
   Note that zsh provides symbolic variables for color setting:
  
   autoload -U colors
   colors
   echo $fg[blue]$bg[red]blue on red!
  
   so you don't have to memorize the numbers.  See the zshcontrib
   manpage, OTHER FUNCTIONS section.
  
   If the only difference between your root prompt is color, you can
   also just set a1,a2,a3 to different values within your if block,
   then set PROMPT outside of it.
  
   if [[ $USER == root ]] ; then
a1=%{$fg[cyan]$bg[black]}
   else
a1=%{$fg[red]}$bg[black]}
   fi
   PROMPT=$a1
 
  Hey Dan!
 
  I can't find a list of what colors are available. Besides I doubt
  that mine are accounted for.
 
 There are only so many ways to combine 8 colors :)  From the manpage:
 
   colors This function initializes  several  associative  arrays  to  map
  color names to (and from) the ANSI standard eight-color terminal
  codes.  These are used by the prompt theme system  (see  above).
  You seldom should need to run colors more than once.
 
  The  eight  base  colors  are:  black, red, green, yellow, blue,
  magenta, cyan, and white.  Each of these  has  codes  for  fore-
  ground  and  background.   In addition there are eight intensity
  attributes: bold, faint, standout,  underline,  blink,  reverse,
  and  conceal.   Finally,  there  are  six  codes  used to negate
  attributes: none (reset all attributes to the defaults),  normal
  (neither  bold  nor faint), no-standout, no-underline, no-blink,
  and no-reverse.
 
  I'd be very grateful if you could at least try this prompt out so you
  know my request:
 
  PROMPT=$'%{\e[01;36m%}(%{\e[22;36m%}%n%{\e[01;30m%}@'
  PROMPT+=$'%{\e[22;36m%}%m%{\e[01;36m%})%{\e[01;36m%}%{\e[01;36m%}('
  PROMPT+=$'%{\e[22;36m%}%D{%H:%M}%{\e[01;30m%}+%{\e[22;36m%}%D{%d/%m}'
  PROMPT+=$'%{\e[01;36m%})%{\e[01;30m\e[00m%}\n%{\e[01;36m%}('
  PROMPT+=$'%{\e[22;36m%}%#%{\e[01;30m%}:%{\e[22;36m%}%~%{\e[01;36m%})'
  PROMPT+=$'%{\e[01;30m\e[00m%} '
 
 How about something like:
 
 autoload -U colors
 colors
 
 if [[ $USER == root ]] ; then
  c1=%{$fg_no_bold[cyan]%} # base color1
  c2=%{$fg_bold[cyan]%}# base color2
  c3=%{$fg_bold[black]%}   # punctuation
 else
  c1=%{$fg_no_bold[red]%} # base color1
  c2=%{$fg_bold[red]%}# base color2
  c3=%{$fg_bold[black]%}  # punctuation
 fi
 
 PROMPT=$c2([EMAIL PROTECTED])($c1%D{%H:%M}$c3+$c1%D{%d/%m}$c2)$'\n'
 PROMPT+=$c2($c1%#$c3:$c1%~$c2) %{$reset_color%}
 
 --
 Dan Nelson
 [EMAIL PROTECTED]
 
 Oh man! That is absolutely gorgeous!!!
 Thank you so much :)))
 
 My /etc/zshrc is now worth $10.000 (up from $7.000)
 
 Don't sell it on eBay you all: http://paste.husk.org/5717
 
 Just out of curiosity Dan, how does your prompt look like?

Mine's strictly functional.  User, host, path in left prompt; error
status in right prompt.  Within screen, I add the window number to the
left prompt and the datetime to the right prompt so I know how long
I've left a window idle.

if [[ $+WINDOW = 1  $TERM = screen* ]] ; then
  PROMPT=([EMAIL PROTECTED]) %B%/%(#/#/)%b 
  RPROMPT=%(?.. %B%?%b)%t %D{%m/%d}
else
  PROMPT=([EMAIL PROTECTED]) %B%/%(#/#/)%b 
  RPROMPT=%(?..%?)
fi

-- 
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: CVSUP date for a successful x11-toolkits/fox-devel

2006-05-18 Thread Jim Stapleton

ahh, yeah, that's the cvsup date:


[EMAIL PROTECTED] 14:25:54 (1) ~  uname -a
FreeBSD aragorn.ameritech.net 6.1-RC FreeBSD 6.1-RC #0: Thu Apr 13
13:54:03 EDT 2006
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386


weird., I had a custom kernel I compiled, I wonder why it's using GENERIC...
*shrug* oh well, I'll think about that at some other time, I want to
figure this out first.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Installing a port into a different prefix

2006-05-18 Thread Lennon Cook

Paul Schmehl [EMAIL PROTECTED] wrote:

make PREFIX=/usr/local/lib/ install clean

Thank you, this works well. :)
Although, doing 'make PREFIX=/opt/kaffe install clean' still installs
kaffe, kaffeh, and kaffe-bin into /usr/local/bin (aswell as installing
everything - including these files - except kaffe-bin into the proper
locations in /opt/kaffe).
Is this normal behavior, or is this a weird port?

--
Lennon Victor Cook
He who receives an idea from me receives without lessening, as he who
lights his candle at mine receives light without darkening - Thomas
Jefferson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Cvsup verses Portsnap

2006-05-18 Thread Aren Olvalde Tyr
On Wednesday 17 May 2006 22:00, martinko wrote:

 i'm eagerly waiting for it.. and i'm sure i'm not the only one.. good
 luck aren!

 m:)

Thanks :^) 

I've actually finally got a day off tomorrow (been working for the last 9 
consecutive days!) so will have a chance to work on it some more.

Aren.


pgpIDkjAcD1XW.pgp
Description: PGP signature


300G PATA disk identified as 131G

2006-05-18 Thread Petri Ojala


Generic PC running FreeBSD 5.4, the PATA controller is an inexpensive  
2-port controller from Adaptec.  Showing:


atapci0: HighPoint HPT370 UDMA100 controller port 0xa000-0xa0ff, 
0x9c00-0x9c03,0x9800-0x9807,0x9400-0x9403,0x9000-0x9007 irq 11 at  
device 1.0 on pci2

ata2: channel #0 on atapci0
ata3: channel #1 on atapci0

ad4: 238475MB ST3250824A/3.AAE [484521/16/63] at ata2-master UDMA100
ad6: 238475MB ST3250824A/3.AAE [484521/16/63] at ata3-master UDMA100
ad7: 131071MB ST3300831A/3.06 [266302/16/63] at ata3-slave UDMA100

The machine has four 250G disks working just fine.  I added a new  
ST3300831 300G 7200.8 disk and it's showing like it wouldn't do lba48.


atacontrol is showing that lba48 is supported:

ATA channel 3, Slave, device ad7:

Protocol  ATA/ATAPI revision 7
device model  ST3300831A
serial number 5NF1SVQQ
firmware revision 3.06
cylinders 16383
heads 16
sectors/track 63
lba supported 268433408 sectors
lba48 supported   268433408 sectors
dma supported
overlap not supported

Feature  Support  EnableValue   Vendor
write cacheyes  yes
read ahead yes  yes
dma queued no   no  0/0x00
SMART  yes  yes
microcode download yes  yes
security   yes  no
power management   yes  yes
advanced power management  no   no  65278/0xFEFE
automatic acoustic management  no   no  0/0x00  128/0x80

(And the 250G disk in the same channel but as master disk:

ATA channel 3, Master, device ad6:

Protocol  ATA/ATAPI revision 7
device model  ST3250824A
serial number 4ND23HXN
firmware revision 3.AAE
cylinders 16383
heads 16
sectors/track 63
lba supported 268435455 sectors
lba48 supported   488397168 sectors
dma supported
overlap not supported

Feature  Support  EnableValue   Vendor
write cacheyes  yes
read ahead yes  yes
dma queued no   no  0/0x00
SMART  yes  yes
microcode download yes  yes
security   yes  no
power management   yes  yes
advanced power management  no   no  65278/0xFEFE
automatic acoustic management  no   no  0/0x00  208/0xD0
)

Any ideas why the 300G disk isn't working?  I couldn't find any  
references to issues with 250G disks.


Petri

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


colors in messages

2006-05-18 Thread [EMAIL PROTECTED]
I would like to introduce color into my messages, 
particularly to the background.  How can I do this?  Is there a sequence of 
characters that I can put into a message that will change the background of the 
rest of the message (or until a similar sequence is encountered) to the color 
designated by this sequence, and if so,
what is the color/sequence relationship?  Similarly for foreground
(i.e., the characters) color.



uname -a
FreeBSD  4.3-RELEASE FreeBSD 4.3-RELEASE #0: Sat Apr 21 10:54:49 GMT
2001 [EMAIL PROTECTED]:/usr/src/sys/compile/GENERIC  i386


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


Re: ELF interpreter /libexec/ld-elf.so.1 not found

2006-05-18 Thread Kris Kennaway
On Thu, May 18, 2006 at 04:02:45PM -0400, David Banning wrote:
 I am getting this error when attempting to start jboss4.
 
 Google doesn't seem to bring up anything on this. My system is 
 4.11-STABLE. I noticed that ld-elf.so.1 -does- exist in 
 /usr/libexec/ld-elf.so.1 so one thought I had was just symlinking to it.
 
 Any direction would be helpful.

You are trying to run a non-FreeBSD 4.x binary.

Kris


pgpUMTVJg2EzI.pgp
Description: PGP signature


star micronics sp200 printer

2006-05-18 Thread Glenn McCalley
Hi there, anybody have a printcap entry for a Star Micronics SP200
receipt/badge/POS printer?  
Or a pointer to programming info for this thing would be appreciated as well.  
Looking to print trade show badges.
Thanks!
Glenn.

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


Re: Installing a port into a different prefix

2006-05-18 Thread Paul Schmehl

Lennon Cook wrote:


Paul Schmehl [EMAIL PROTECTED] wrote:

make PREFIX=/usr/local/lib/ install clean

Thank you, this works well. :)
Although, doing 'make PREFIX=/opt/kaffe install clean' still installs
kaffe, kaffeh, and kaffe-bin into /usr/local/bin (aswell as installing
everything - including these files - except kaffe-bin into the proper
locations in /opt/kaffe).
Is this normal behavior, or is this a weird port?

Perhaps those were left over from a previous install?  When you redefine 
PREFIX, that should affect everything in the port that is installed. 
For example, the normal PREFIX is /usr/local/, so docs are installed in 
/usr/loca/share/doc/portname.  If you redefine PREFIX to /opt/kaffee, 
docs should be installed in /opt/kaffee/share/docs/portname.


--
Paul Schmehl ([EMAIL PROTECTED])
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/


smime.p7s
Description: S/MIME Cryptographic Signature


Re: Installing gdm themes?

2006-05-18 Thread Lowell Gilbert
Angelin Lalev [EMAIL PROTECTED] writes:

 gdmsetup binary seem to miss from the last gnome gdm port.

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


Re: Installing a port into a different prefix

2006-05-18 Thread Lennon Cook

Paul Schmehl [EMAIL PROTECTED] wrote:

Perhaps those were left over from a previous install?

I tested this possibility by completely removing kaffe (and verified
that these files no longer existed), and then reinstating it with
PREFIX=/opt/kaffe. kaffe and kaffeh again exist in both places,
kaffe-bin exists only in /usr/local/bin.
As far as I can tell, these are the only things that have been
installed to /usr/local - everything else exists only in /opt/kaffe

--
Lennon Victor Cook
He who receives an idea from me receives without lessening, as he who
lights his candle at mine receives light without darkening - Thomas
Jefferson
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OT: Router Preference

2006-05-18 Thread Bill Moran
Joel Gudknecht [EMAIL PROTECTED] wrote:

 DEAR FELLOW USERS:
 
 I realize this is way off topic, however I believe there are people in the
 know that read this list.
 
 My question is if you were upgrading routers, would you choose a Cisco 2811
 or a Juniper J4300 and why would you make that choice?

Imagestream:
http://www.imagestream.com/Industrial_Routers.html

-- 
Bill Moran

What hope have we without [Gandalf]?  We must do without hope.

Aragorn, son of Arathorn

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


Intel PRO/Wireless 3495

2006-05-18 Thread Matt Schwartz

Hello All,

Would someone be able to direct me to a good FAQ or howto on using ndis.
Apparently, I need to use ndisulator to be able to use my Intel 3495 because
neither the iwi or ipw drivers seem to work with it.

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


Re: OT: Router Preference

2006-05-18 Thread Bill Campbell
On Thu, May 18, 2006, Joel Gudknecht wrote:
DEAR FELLOW USERS:

I realize this is way off topic, however I believe there are people in the
know that read this list.

My question is if you were upgrading routers, would you choose a Cisco 2811
or a Juniper J4300 and why would you make that choice?

I would use a FreeBSD box with a Sangoma card to connect to the T1.

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

``We maintain that the very foundation of our way of life is what we call
free enterprise,'' said Cash McCall, ``but when one of our citizens
show enough free enterprise to pile up a little of that profit, we do
our best to make him feel that he ought to be ashamed of himself.''
-- Cameron Hawley
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


running jboss4 on FreeBSD 4.11

2006-05-18 Thread David Banning
I have installed jboss4 from the ports and attempted to run jboss4.

The only message I get follows. I notice very few posts on FreeBSD
about jboss4. Any pointers would be helpful.

Unexpected Signal : 11 occurred at PC=0x2A96A42E
Function=org.jboss.mx.loading.ClassLoaderUtils.addPackage(Ljava/lang/String;Ljava/util/Map;Ljava/util/Set;Lorg/jboss/mx/loading/RepositoryClassLoader;Z)V
 (compiled Java code)
Library=(N/A)

Current Java thread:

Dynamic libraries:
Can not get information for pid = 63375

Heap at VM Abort:
Heap
 def new generation   total 576K, used 370K [0x2c9a, 0x2ca4, 0x2d0b)
  eden space 512K,  72% used [0x2c9a, 0x2c9fcbb8, 0x2ca2)
  from space 64K,   0% used [0x2ca2, 0x2ca2, 0x2ca3)
  to   space 64K,   0% used [0x2ca3, 0x2ca3, 0x2ca4)
 tenured generation   total 2092K, used 1254K [0x2d0b, 0x2d2bb000, 
0x309a)
   the space 2092K,  59% used [0x2d0b, 0x2d1e9a90, 0x2d1e9c00, 0x2d2bb000)
 compacting perm gen  total 16384K, used 4929K [0x309a, 0x319a, 
0x349a)
   the space 16384K,  30% used [0x309a, 0x30e70738, 0x30e70800, 0x319a)

Local Time = Thu May 18 18:12:35 2006
Elapsed Time = 12
#
# HotSpot Virtual Machine Error : 11
# Error ID : 4F530E43505002EF
# Please report this error at
# http://java.sun.com/cgi-bin/bugreport.cgi
#
# Java VM: Java HotSpot(TM) Server VM (1.4.2_05-b04 mixed mode)
 

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


What's up with 6.1 and ATA????

2006-05-18 Thread Mike Meyer
Um, someone want to tell me what happened to the ATA drivers in
6.1-RELEASE? I tried to upgrade my desktop box from 5.4 to
6.1-RELEASE, only to have the CDROM fail to find the SATA drive. I
wind up upgrading to 5-STABLE from CVS instead, which works fine.

Today, I tried upgrading an old appliance from 4.X to 6.1. Same thing
- the 6.1 CDROM boots, then fails to find the drive.

Have the ATA drivers been mangled in some way? Or is this a problem
with the CDROM, and if I install 5.X and then upgrade via CVS to 6.1,
it'll work?

Thanks,
mike
-- 
Mike Meyer [EMAIL PROTECTED]  http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Gtk-Warning **: Cannot open display

2006-05-18 Thread Norberto Meijome
On Thu, 18 May 2006 16:59:33 +0100 (BST)
Barnaby Scott [EMAIL PROTECTED] wrote:

  1) Forgive my stupidity, but why can I not start Firefox from the
  console? Or rather, what could I do to make it do so with a single
  command?
 
  I'm perfectly willing to be wrong, flamed, and corrected, but my counter
  question (and it seems a good one to me):  how do you expect to run a
  graphical program in a non-graphical environment?
 
 I'm certainly not going to flame or correct you! I'm afraid it shows the
 profundity of my ignorance at this stage, but at least I have browser
 functionality without rebooting back into Windows now, so looking up
 solutions and sorting my own problems just got a whole lot easier. I guess
 my beginner's reasoning was something like this: if a program  needs a gui
 to work, then maybe it has a mechanism to fire one up when needed, in the
 same way it will look for and use whatever libraries or resources it
 needs. Oh dear, looks like I have loads more reading to do.

Hi,

Saifi's reply should get it all to work, and it comes in handy to understand
why. 

Saifi wrote
 1. prompt$ xhost + (from the connecting client)
 2. export DISPLAY=client-ip-address:0.0

XWindows is a network service. You need a) to tell your client WHERE to send
the 'graphics' ( that's point 2) in Saifi's mail. and b) Xorg has to allow you
to connect to it (has to allow you to send  *your* apps' graphs into its
displays.

When you start an X session, DISPLAY env var is set automatically:

[EMAIL PROTECTED] [Fri May 19 11:06:49 2006]
~
$ env | grep DISPLAY
DISPLAY=:0.0

I am not completelly sure how do clients inside the session get authorised -
BUT anything that is NOT started from another host OR a different user than the
one owning the display (Xorg ) you want to use will need to be authorised with
xhost.

I just tested this doing Ctrl-Alt-F1, logging as myself again, i typed aterm,
then went back to X and there it was my new term. WHY you couldnt do that with
firefox, i dont know.

HIH.
Beto

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


Re: Skype

2006-05-18 Thread Norberto Meijome
On Wed, 17 May 2006 18:19:57 +0300
Adi Pircalabu [EMAIL PROTECTED] wrote:

Although the build/install went fine, Skype wouldn't start due to
missing libraries.  So I copied them over from a Linux partition
(happens to be Gentoo): libGL.so.1 libXmu.so.6
libXrandr.so.2
libXcursor.so.1
libXft.so.2
libSM.so.6
libICE.so.6
libXext.so.6
libX11.so.6
libXxf86vm.so.1
libXt.so.6
libXrender.so.1
libexpat.so.0
  
  Interesting enough, while I have this files on my system, pkg_info -O
  on them doesn't return anything. Adi, could you please check on your
  system ?
 
 
 Same here, no result for pkg_info -O. Though, they are part of
 linux-XFree86-libs

man pkg_info - you are using the wrong params

use  pkg_info -W to determine the package owning a file:

$ pkg_info -L linux-XFree86-libs*
Information for linux-XFree86-libs-4.3.99.902_7:
[...]
/compat/linux/usr/X11R6/lib/libXext.so.6.4
/compat/linux/usr/X11R6/lib/libXfont.so.1
/compat/linux/usr/X11R6/lib/libXfont.so.1.5
/compat/linux/usr/X11R6/lib/libXfontcache.so.1.2
/compat/linux/usr/X11R6/lib/libXft.so.1
/compat/linux/usr/X11R6/lib/libXft.so.1.1
/compat/linux/usr/X11R6/lib/libXft.so.2
/compat/linux/usr/X11R6/lib/libXft.so.2.1.1
/compat/linux/usr/X11R6/lib/libXi.so.6
/compat/linux/usr/X11R6/lib/libXi.so.6.0
/compat/linux/usr/X11R6/lib/libXinerama.so.1.0
[]

[EMAIL PROTECTED] [Fri May 19 11:12:59 2006]
~
$ pkg_info -W /compat/linux/usr/X11R6/lib/libXft.so.2
/compat/linux/usr/X11R6/lib/libXft.so.2 was installed by package
linux-XFree86-libs-4.3.99.902_7

[EMAIL PROTECTED] [Fri May 19 11:13:14 2006]
~
$ pkg_info -O /compat/linux/usr/X11R6/lib/libXft.so.2
The following installed package(s) has /compat/linux/usr/X11R6/lib/libXft.so.2
origin:

man pkg_info ;)

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


Re: how to change roots shell

2006-05-18 Thread [EMAIL PROTECTED]
Login as root, type vipw hich puts you into  vi  on thwe password file, and 
change the root's shell to whatever you want (provided the path is legal).

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


Re: Cvsup verses Portsnap

2006-05-18 Thread Daniel Bye
On Thu, May 18, 2006 at 11:28:10PM +0100, Aren Olvalde Tyr wrote:
 On Wednesday 17 May 2006 22:00, martinko wrote:
 
  i'm eagerly waiting for it.. and i'm sure i'm not the only one.. good
  luck aren!
 
  m:)
 
 Thanks :^) 
 
 I've actually finally got a day off tomorrow (been working for the last 9 
 consecutive days!) so will have a chance to work on it some more.
 
 Aren.

Dude, it's called a day off for a reason!  ;-)  Go to the park with a
book, or stay in bed late, or go for a drive, or something.  After nine
days (and I bet they weren't short days!) you need a break!

Having said that, I'll be interested to see what you come up with.  It
sounds like a good tool to add to the box.

Dan

--  
Daniel Bye

PGP Key: http://www.slightlystrange.org/pgpkey-dan.asc
PGP Key fingerprint: D349 B109 0EB8 2554 4D75  B79A 8B17 F97C 1622 166A
 _
  ASCII ribbon campaign ( )
 - against HTML, vCards and  X
- proprietary attachments in e-mail / \


pgpFZ77Hxnzx7.pgp
Description: PGP signature


Re: 6.1 'No kernel found' after install

2006-05-18 Thread Norberto Meijome
On Wed, 17 May 2006 09:03:35 -0400
Steve Bertrand [EMAIL PROTECTED] wrote:

 Hey everyone,
 
 I downloaded FreeBSD 6.1 yesterday, ensured the checksum was correct,
 and promptly expanded the ISO onto a CD.
 
 After seemingly successfully installing it onto a box (I have several
 other of these exact machines running 5 and 6.0), after reboot, it
 claims it can't find the kernel. I've ls'd pretty much all of the
 directories on the hard disk, and sure enough, it doesn't appear the
 kernel was installed. (I performed the install 4 times to be sure).
 


interesting- on one machine I did a clean 6.1 install and I also got no kernel.
I reloaded the install, went to fixit , mounted ad0s1a and the
copied -R /mnt2/boot/kernel (or whatever was the path to the install media)
into the drive.
 rebooted, all working fine now.

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


Re: running jboss4 on FreeBSD 4.11

2006-05-18 Thread Jonathan Chen
On Thu, May 18, 2006 at 08:45:24PM -0400, David Banning wrote:
 I have installed jboss4 from the ports and attempted to run jboss4.
 
 The only message I get follows. I notice very few posts on FreeBSD
 about jboss4. Any pointers would be helpful.
 

[...]
 # Java VM: Java HotSpot(TM) Server VM (1.4.2_05-b04 mixed mode)

What version of java are you using? The output of java -version
would be helpful. Please note that if you're using anything other
that the native FreeBSD java, you will not be able to get very far.
-- 
Jonathan Chen [EMAIL PROTECTED]
--
Only the meek get pinched. The bold survive.
  - Ferris Bueller
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: running jboss4 on FreeBSD 4.11

2006-05-18 Thread David Banning
 What version of java are you using? The output of java -version
 would be helpful. Please note that if you're using anything other
 that the native FreeBSD java, you will not be able to get very far.

root# java -version
java version 1.3.1-p8
Java(TM) 2 Runtime Environment, Standard Edition (build 
1.3.1-p8-david-030915-12:12)
Classic VM (build 1.3.1-p8-david-030915-12:12, green threads, nojit)
root# 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: running jboss4 on FreeBSD 4.11

2006-05-18 Thread David Banning
 root# java -version
 java version 1.3.1-p8
 Java(TM) 2 Runtime Environment, Standard Edition (build 
 1.3.1-p8-david-030915-12:12)
 Classic VM (build 1.3.1-p8-david-030915-12:12, green threads, nojit)
 root# 

I just noticed while doing a make clean in the jboss4 port the following;

===  Cleaning for jdk-1.3.1p9_6===  Cleaning for linux_base-8-8.0_14

which seems to indicate a linux link - does the above line indicate a
problematic link between jdk and linux? - re your comment that java -must-
be native FreeBSD java.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Keyspan USB2Serial

2006-05-18 Thread Jason Lixfeld

Is this supported?

ugen seems to pick it up:

ugen0: vendor 0x06cd product 0x0118, rev 1.00/80.01, addr 2

$ grep 0x06cd /usr/src/sys/dev/usb/usbdevs
vendor KEYSPAN  0x06cd  Keyspan
$

But I can't seem to access it...

Does/can it work?  If not, what vendor USB2Serial adapter do I need  
to get?

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


  1   2   >