Where is my STRFILE?

2009-02-20 Thread herbert langhans
Hi Daemons,
strange, I have the manpage of strfile, but not the binary itself. I think its 
supposed to be content of every freebsd default installation? Or not? Its not a 
port, isnt it?

Can please anybody check and invoke strfile on his comp? I have FreeBSD 7.1 
here. I want my fortunes back, they dont install without strfile!!

Thanks
herbs

-- 
*** Herbert Langhans, Warschau
*** Sprachtraining Langhans
*** http://www.langhans.com.pl
*** herbert.raim...@gmx.net
*** NIP 526-229-61-51
*** Regon  014911759
*** Tel. 603 341 441
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Where is my STRFILE?

2009-02-20 Thread Wojciech Puchar




/usr/games/strfile


why here? it's not a game


--
Jonathan Chen j...@chen.org.nz
--
   If everything's under control, you're going too slow
 - Mario Andretti
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org



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


video editor

2009-02-20 Thread prad
any recommendations for software that can join or split wmv, mpg, avi
etc etc?

i came across mencoder for joining on this page 
http://mindspill.net/computing/linux-notes/how-to-join-video-files-in-linux.html
but i don't really know much about this sort of thing so i'm looking
for suggestions.

-- 
In friendship,
prad

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


Re: Performance problem with samba/zfs

2009-02-20 Thread Jonathan Belson

Jonathan Belson wrote:
I just moved my work to an exported UFS partition and I've seen the same 
problem appear a couple of times.  It's possibly a little less frequent 
though.


So with zfs off the hook, it's possible that the problem lies with samba 
(or maybe the editor itself, although I don't remember ever coming 
across the issue before).


I've tried a different Windows editor and the problem still occurs, so it is 
mostly likely a problem with samba itself.  I will try increasing the debug 
level of smbd and see if that throws up any clues.


Cheers,

--Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Where is my STRFILE?

2009-02-20 Thread herbert langhans
/usr/games/strfile
..not there. Checked with locate, no strfile anywhere on 7.1!

Maybe it came with a port download of a game? Did they forget it on 7.1?
Cheers
herbs

-- 
*** Herbert Langhans, Warschau
*** Sprachtraining Langhans
*** http://www.langhans.com.pl
*** herbert.raim...@gmx.net
*** NIP 526-229-61-51
*** Regon  014911759
*** Tel. 603 341 441
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: video editor

2009-02-20 Thread Brent Clark

prad wrote:

any recommendations for software that can join or split wmv, mpg, avi
etc etc?

i came across mencoder for joining on this page 
http://mindspill.net/computing/linux-notes/how-to-join-video-files-in-linux.html

but i don't really know much about this sort of thing so i'm looking
for suggestions.

  

Hiya

This is a more Ubuntu / Debian based site, but im sure most of those 
ports are available.


http://www.goodbyemicrosoft.net/news.php?item.417.2

HTH.

Kind Regards
Brent Clark
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Where is my STRFILE?

2009-02-20 Thread Andreas Rudisch
On Fri, 20 Feb 2009 12:19:54 +0100
herbert langhans herbert.raim...@gmx.net wrote:

 /usr/games/strfile
 ..not there. Checked with locate, no strfile anywhere on 7.1!

Looks like it comes with fortune.
/usr/src/games/fortune/strfile

Make sure you did install FreeBSD with games and/or updated it with
games.

/etc/make.conf - NO_GAMES set? Supfile containing src-all or src-games?

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgpsGDAkV7Su6.pgp
Description: PGP signature


Re: Where is my STRFILE?

2009-02-20 Thread Glenn Sieb
herbert langhans said the following on 2/20/09 6:19 AM:
 /usr/games/strfile
 ..not there. Checked with locate, no strfile anywhere on 7.1!

 Maybe it came with a port download of a game? Did they forget it on 7.1?
   

/usr/src/games/fortune/strfile seems to be where the source lives. And
it gets installed to /usr/games/strfile

(Wojciech: I guess because fortune is for entertainment purposes...?)

Best,
--Glenn
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


vi set comment #

2009-02-20 Thread Johan Hendriks
How can i in vi set a # on multiple Lines to comment out some text.

I know it must be a simple thing but i can not seem to get it right.

 

 

Like in a config file i have the following

 

define service{

use generic-service

host_name   w2003hk03

service_description Explorer

check_command   check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe

}

 

And now i want to set a # to all the 6 lines.

 

Thanks for your time

Regards,

Johan 

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


Re: vi set comment #

2009-02-20 Thread Doug Poland

Johan Hendriks wrote:

How can i in vi set a # on multiple Lines to comment out some text.

I know it must be a simple thing but i can not seem to get it right.

Like in a config file i have the following

define service{
use generic-service
host_name   w2003hk03
service_description Explorer
check_command   check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
}

And now i want to set a # to all the 6 lines.

Thanks for your time
Regards,
Johan 



This question is really more germane to a VIm mail list 
(http://www.vim.org/) , but I'll tell you how'd I'd do it.


First, turn on line numbers --

   :set nu

The you'd see something like --

 1
 2
 3   define service{
 4   use generic-service
 5   host_name   w2003hk03
 6   service_description Explorer
 7   check_command   check_nt!PROCSTATE!-d SHOWALL -l
 8   }
 9
10

Then replace the beginning of a line with a # symbol --

   :3,8s/^/#/

That's all there is too it.  BTW, VIm help is your friend

   :help replace


--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: vi set comment #

2009-02-20 Thread DAve

Johan Hendriks wrote:

How can i in vi set a # on multiple Lines to comment out some text.

I know it must be a simple thing but i can not seem to get it right.

 

 


Like in a config file i have the following

 


define service{

use generic-service

host_name   w2003hk03

service_description Explorer

check_command   check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe

}

 


And now i want to set a # to all the 6 lines.



http://lmgtfy.com/?q=comment+multiple+lines+in+vi

Don't take this personal. I've been dying to use that link for over two 
weeks. Normally my tech support staff provides me ample opportunities, 
but they have been quiet lately. ;^)


DAve

--
Posterity, you will know how much it cost the present generation to
preserve your freedom.  I hope you will make good use of it.  If you
do not, I shall repent in heaven that ever I took half the pains to
preserve it. John Quincy Adams

http://appleseedinfo.org

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


RE: vi set comment #

2009-02-20 Thread Johan Hendriks
 How can i in vi set a # on multiple Lines to comment out some text.
 
 I know it must be a simple thing but i can not seem to get it right.
 
 Like in a config file i have the following
 
 define service{
 use generic-service
 host_name   w2003hk03
 service_description Explorer
 check_command   check_nt!PROCSTATE!-d SHOWALL -l Explorer.exe
 }
 
 And now i want to set a # to all the 6 lines.
 
 Thanks for your time
 Regards,
 Johan 
 

This question is really more germane to a VIm mail list 
(http://www.vim.org/) , but I'll tell you how'd I'd do it.

First, turn on line numbers --

:set nu

The you'd see something like --

  1
  2
  3   define service{
  4   use generic-service
  5   host_name   w2003hk03
  6   service_description Explorer
  7   check_command   check_nt!PROCSTATE!-d SHOWALL -l
  8   }
  9
 10

Then replace the beginning of a line with a # symbol --

:3,8s/^/#/

That's all there is too it.  BTW, VIm help is your friend

:help replace


--
Regards,
Doug

Thanks all for the fast and usefull response.

Regards,
Johan Hendriks


No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 8.0.237 / Virus Database: 270.11.1/1962 - Release Date: 02/20/09 
07:26:00
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: vi set comment #

2009-02-20 Thread Rajarajan Rajamani
On Fri, Feb 20, 2009 at 9:52 AM, Doug Poland d...@polands.org wrote:
 Johan Hendriks wrote:

 How can i in vi set a # on multiple Lines to comment out some text.

 I know it must be a simple thing but i can not seem to get it right.

 Like in a config file i have the following

 define service{
use generic-service
host_name   w2003hk03
service_description Explorer
check_command   check_nt!PROCSTATE!-d SHOWALL -l
 Explorer.exe
}

 And now i want to set a # to all the 6 lines.

 Thanks for your time
 Regards,
 Johan



 This question is really more germane to a VIm mail list
 (http://www.vim.org/) , but I'll tell you how'd I'd do it.

 First, turn on line numbers --

   :set nu


   :3,8s/^/#/

 That's all there is too it.  BTW, VIm help is your friend


OR just mark the block visually and then do a
:',' s:/^/#/

the ',' will appear automatically as soon as you hit : after marking
the visual block.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: video editor

2009-02-20 Thread t-u-t

Brent Clark wrote:

prad wrote:

any recommendations for software that can join or split wmv, mpg, avi
etc etc?

i came across mencoder for joining on this page 
http://mindspill.net/computing/linux-notes/how-to-join-video-files-in-linux.html 


but i don't really know much about this sort of thing so i'm looking
for suggestions.

  

Hiya

This is a more Ubuntu / Debian based site, but im sure most of those 
ports are available.


http://www.goodbyemicrosoft.net/news.php?item.417.2

HTH.

Kind Regards
Brent Clark
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to 
freebsd-questions-unsubscr...@freebsd.org


if you are looking for a small app that simply splits and joins kind of 
like an archiver, there is versions of hjsplit if u ever used that in 
windows. i've used a good and simple command line version b4 but i can't 
remember exactly where it is in ports it maybe hjsplit or lhjsplit. 
(google to their site). if you have wine, i actually use the windows 
version.

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


Re: video editor

2009-02-20 Thread Polytropon
On Fri, 20 Feb 2009 02:32:43 -0800, prad p...@towardsfreedom.com wrote:
 any recommendations for software that can join or split wmv, mpg, avi
 etc etc?

I think it can be done with mplayer / (g)mencoder and avidemux2.
The advantage of them is having a GUI (if this is an advantage
to you).



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: video editor

2009-02-20 Thread Adam Vandemore

prad wrote:

any recommendations for software that can join or split wmv, mpg, avi
etc etc?

i came across mencoder for joining on this page 
http://mindspill.net/computing/linux-notes/how-to-join-video-files-in-linux.html

but i don't really know much about this sort of thing so i'm looking
for suggestions.
  
Some files like mpg's you can just cat together and pipe to files then 
run through ffmpeg.  Merging files of different and various types can be 
done with ffmpeg -i.  I've had occasional troubles with ffmpeg choking 
on certain files then having to turn to mencoder or vice versa.  
mencoder is more powerful than ffmpeg in general which means ffmpeg is 
easier to learn.  If you prefer more of a gui approach, avidemux2 is a 
good app.


--
Adam Vandemore
Systems Administrator
IMED Mobility
(605) 498-1610

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


IBM RSA + FreeBSD 7.1

2009-02-20 Thread Proskurin Kirill

Hello.


Could some one confirmed what IBM RSA works good with FreeBSD?

--
Best regards,
Proskurin Kirill
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Updating FBSD 7.1 to the latest ZFS

2009-02-20 Thread Norbert Papke
On February 19, 2009, Bryant Eadon wrote:
 I've scoured the web but haven't found the proper way to upgrade from using
 ZFS v6 to the latest ZFS supported on FreeBSD (v13?).  My zpool is shot and
 I'd like to create a fresh one starting with the latest and greatest.

 Can anyone point me in the right direction on how to properly perform this
 upgrade ?

To get the latest version of ZFS, you need to run -current.  As I understand 
it, 7.1 will likely remain on v6 for a while.

Cheers.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: FreeBSD 7.1: iwi problem with intel 2200 pro wireless card

2009-02-20 Thread Jan Henrik Sylvester

Erik Johnson wrote:
I noticed on your loader.conf that you have the license at the end of 
WiFi Config. I placed mine at the beginning. as in the example below. 
Have you tried loading that first? I'm not sure if it makes a difference 
but might be worth a try. I'm interested in hearing back and keeping in 
contact since we share similar config for older hardware.



---
legal.intel_iwi.license_ack=1
if_iwi_load=YES
wlan_load=YES
firmware_load=YES
iwi_bss_load=YES
iwi_ibss_load=YES
iwi_monitor_load=YES


The ordering in loader.conf does not matter.

I abandoned iwi some time ago: 
http://lists.freebsd.org/pipermail/freebsd-current/2009-February/003125.html


You might want to read the whole thread. Disabling bgscan is mentioned 
there somewhere. IIRC, that is a good idea.


Do you really need ibss and monitor? Have you tried not loading three 
different firmwares at the same time?


Last time I used iwi, I did not have to load the firmware manually. Up 
to 6.1 that was a requirement, but from 6.2 on, iwi could do it 
automatically. (And it worked better that way, IIRC.)


Since the manual page tells you to do so, the loading of the firmware 
must have changed. When manual loading was required on 6.1, loading 
multiple at the same time was not a good idea.


I never got monitor to receive any packages on 7.0, even after manually 
loading the firmware. It did work on 6.2, though. ibss was never really 
reliable.


Cheers,
Jan Henrik
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Aliassing 'svn log' to 'svn log -v'

2009-02-20 Thread Frank Staals

Glen Barber wrote:

On Thu, Feb 19, 2009 at 4:10 PM, Frank Staals franksta...@gmx.net wrote:
  

A bit of an off-topic question, but is there a neat way of aliassing 'svn
log' to 'svn log -v' in zsh ? I chould just write a one line shell script
that does 'svn log -v' and alias something like svnlog to the script but
that is a bit of a hack.



Alias it in $HOME/.zshrc

  
What should be the syntax of that then ? I know you can normally alias 
something with:


alias foo='bar'

Unfortunately using :

alias 'svn log'='svn log -v'
or
alias svn log='svn log -v'

does not seem to do the trick

--

- Frank

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


Re: Aliassing 'svn log' to 'svn log -v'

2009-02-20 Thread Glen Barber
On Fri, Feb 20, 2009 at 1:02 PM, Frank Staals franksta...@gmx.net wrote:
 Glen Barber wrote:

 On Thu, Feb 19, 2009 at 4:10 PM, Frank Staals franksta...@gmx.net wrote:


 A bit of an off-topic question, but is there a neat way of aliassing 'svn
 log' to 'svn log -v' in zsh ? I chould just write a one line shell script
 that does 'svn log -v' and alias something like svnlog to the script but
 that is a bit of a hack.


 Alias it in $HOME/.zshrc



 What should be the syntax of that then ? I know you can normally alias
 something with:

 alias foo='bar'

 Unfortunately using :

 alias 'svn log'='svn log -v'
 or
 alias svn log='svn log -v'

Try escaping it:
alias svn\ log='svn log-v'

-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: video editor

2009-02-20 Thread Roland Smith
On Fri, Feb 20, 2009 at 02:32:43AM -0800, prad wrote:
 any recommendations for software that can join or split wmv, mpg, avi
 etc etc?

The program you found, mencoder, will work fine. E.g. Cutting one minute
from a video starting at 8:09, and converting to msmpeg video goes like
this:

  mencoder -ovc lavc -lavcopts vcodec=msmpeg4v2 -vf decimate -oac copy \
  -ss 8:09 -endpos 1:00 -o small.avi foo.flv

Another example to join several files into one H.264 encoded video with
mp3 sound:

  mencoder -ovc x264 -x264encopts nr=500:keyint=25:qp=26 \
  -vf decimate -oac mp3lame -o outfile.avi one.wmv two.wmv three.wmv

This program is very versatile, and has a lot of advanced options. But
you don't have to use them if you don't want to. Reading the manual page
carefully is advised, though.

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


pgpHPCE0WbOwW.pgp
Description: PGP signature


PoE Midspans

2009-02-20 Thread Midspan Manager
PoE Midspans 

In stock - order now from our distributor WAV. 
Call 800-678-2419 and ask for the Midspan Promotional Price 
These prices are not available online.
 
Through March 31st we are offering PoE Midspans at up to 65% off PowerDsine 
list prices. You can order now through our distributor WAV. Call them at 
800-678-2419 and ask for the Midspan Promotional Price. These prices are not 
availible online.



1 Port 10/100$19.7560% Off
1 Port Gig (10/100/1000)$23.6060% Off
8 Port Gig (10/100/1000)$164.5050% Off
16 Port Gig (10/100/1000)$320.0050% Off
24 Port Gig (10/100/1000) $395.0060% Off
24 Port Gig (10/100/1000) Managed 
(SNMP Management)$495.0065% Off


1 Port Gig (10/100/1000)$39.50 50% Off
8 Port Gig (10/100/1000)$349.5050% Off
16 Port Gig (10/100/1000) Managed 
(SNMP Management)$549.5050% Off
 




 1Calculated savings are based upon list prices of PowerDsine comparable 
products as of 12/1/08. PowerDsine is a trademark of Microsemi Corporation.
This email was sent to you by Phihong USA. We are a top global manufacture of 
power products with OEM customer such as Cisco, HP, Nortel Networks, 3com, 
Accton, Motorola and Siemens. You are being sent this email because you have 
expressed interest in PoE products in the past. If you do not wish to receive 
emails from us in the future and be removed from our list please click on the 
link below. 

To unsubscribe, please click here. 

www.phihong.com - 47800 Fremont Blvd., Fremont, CA. 94538 - Phone 510-445-0100


spacer.htm
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Where is my STRFILE?

2009-02-20 Thread herbert langhans
Even tried that.
In /usr/ports/games/freebsd-games are the classical games, but not the fortunes 
and the strfile. Have it installed now, still no strfile.

If I try installing the fortunes, the port-makefile complains that there is no 
strfile available.

Do you daemons have the binary 'strfile' on your system? Could you please check 
and tell me! Maybe somebody can send me this single binary file offlist by 
email?
Thanks 
herbs


On Fri, 20 Feb 2009 12:33:08 +0100
Andreas Rudisch cyb.@gmx.net wrote:

 On Fri, 20 Feb 2009 12:19:54 +0100
 herbert langhans herbert.raim...@gmx.net wrote:
 
  /usr/games/strfile
  ..not there. Checked with locate, no strfile anywhere on 7.1!
 
 Looks like it comes with fortune.
 /usr/src/games/fortune/strfile
 
 Make sure you did install FreeBSD with games and/or updated it with
 games.
 
 /etc/make.conf - NO_GAMES set? Supfile containing src-all or src-games?
 
 Andreas
 --
 GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
 Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565
 


-- 
*** Herbert Langhans, Warschau
*** Sprachtraining Langhans
*** http://www.langhans.com.pl
*** herbert.raim...@gmx.net
*** NIP 526-229-61-51
*** Regon  014911759
*** Tel. 603 341 441
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Where is my STRFILE?

2009-02-20 Thread Polytropon
On Fri, 20 Feb 2009 20:03:24 +0100, herbert langhans herbert.raim...@gmx.net 
wrote:
 Even tried that.
 In /usr/ports/games/freebsd-games are the classical games, but not the 
 fortunes and the strfile. Have it installed now, still no strfile.

The strfile binary should be built by the system's build
command (make buildworld from /usr/src). Check if a setting
in /etc/make.conf disables the build of the games stuff.



 Do you daemons have the binary 'strfile' on your system? Could you please 
 check and tell me! Maybe somebody can send me this single binary file offlist 
 by email?

% which strfile
/usr/games/strfile

This is from a 7-STABLE system from Aug 2008.


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


strfile
Description: Binary data
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: Aliassing 'svn log' to 'svn log -v'

2009-02-20 Thread Jon Radel


Glen Barber wrote:


Try escaping it:
alias svn\ log='svn log-v'



Or just use your own command name:

alias svnv='svn log -v'

--Jon Radel

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


read() vs fread()

2009-02-20 Thread Junsuk Shin
Hi BSD guys,

While I was doing simple file read test, I found that there is a huge
difference in file read performance between read() and fread(). I'm
wondering if I'm doing something wrong or if someone has experienced
similar things.

Here is what I did,

For the specific application, I need to bypass cache (I read only
once, and that's all)
The test file is 700Mbytes dummy file.
Test app just reads the whole file.

Test is done on FreeBSD 7.1 amd 64, Celeron E1200, WD Caviar SE16 SATA 7200 RPM

For test 1,

fd = open(name, O_RDONLY | O_DIRECT);
while(...) {
  cnt = read();
  
}

for test 2,

fd = open(name, O_RDONLY | O_DIRECT);
file = fdopen(fd,r);
while(...) {
  cnt = fread();
  
}

test 1 takes about 11.64 seconds (63 MBytes/s), and test 2 takes about
51.53 seconds (14 MBytes/s)

If I use the pair of fopen() and fread(), it will have cache effect,
so the result doesn't say much of hdd performance.

Personally, I don't think the overhead of fread() (wrapper in libc) is
that huge. What would be the reason for this?

Thanks.

--
Junsuk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re:(solved) World doesn't build correctly

2009-02-20 Thread Frank Wißmann
Am Donnerstag 19 Februar 2009 21:07:47 schrieb Polytropon:
 On Thu, 19 Feb 2009 18:14:01 +0100, Frank Wißmann 
frank.wissman...@web.de wrote:
  I did it now the way you told me but it still shows 7.0-Release at
  uname -a. I attach my make.conf and cvs-supfile' maybe there is
  something wrong?

 I've found something strange in the CVSup files:

   Your file   My file
   -
   *default base=/usr/src  *default base=/var/db
   *default prefix=/usr/src*default prefix=/usr
   *default release=cvs*default release=cvs tag=RELENG_7

 You see these differences: base and prefix are set incorrectly and
 release / tag is incomplete. You should follow Mel's advice and
 take the file /usr/share/examples/cvsup/stable-supfile as a starting
 point. Of course, you can cut the many comments, but be sure that
 the settings are valid (as shown above).

Yip-yip-yeah!
Once you make it right it works :-).
Thanks to all who helped.

Greetings

Frank

-- 
GU d- s:+ a+ C+$ UBS$ P L- !E--- W N+@ !o K--? !w--- O !M- !V- PS+ PE 
Y? !PGP- t+ 5 X !R tv- b++ DI !D G e h+ r- y? 

When pack meets pack in the jungle
and no one will move from the trail
wait till the leaders have spoken
it may be fair words shall prevail

(Rudyard Kipling)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Top returning 0.0% cpu usage

2009-02-20 Thread mojo fms
What would cause top to report back 0.0% cpu usage across the top row?  It
shows the minmal adverage and max correctly and seems to show the correct
amount for the processes.

Copyright (c) 1992-2009 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009
r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel Pentium III (996.77-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x68a  Stepping = 10

Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
real memory  = 266301440 (253 MB)
avail memory = 246513664 (235 MB)
kbd1 at kbdmux0
ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413)
acpi0: DELL GX150   on motherboard
acpi0: [ITHREAD]
acpi0: Power Button (fixed)
acpi0: reservation of 0, a (3) failed
acpi0: reservation of 10, f0 (3) failed
acpi0: reservation of 100, edf7000 (3) failed
Timecounter ACPI-safe frequency 3579545 Hz quality 850
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
vgapci0: VGA-compatible display mem
0xf400-0xf7ff,0xff00-0xff07 irq 9 at device 2.0 on pci0
agp0: Intel 82815 (i815 GMCH) SVGA controller on vgapci0
pcib1: ACPI PCI-PCI bridge at device 30.0 on pci0
pci1: ACPI PCI bus on pcib1
pcib2: PCI-PCI bridge at device 7.0 on pci1
pci2: PCI bus on pcib2
pcib2: memory: end (f8001fff)  start (fd00)
pcib2: memory: end (f8000fff)  start (fd00)
fxp0: Intel 82558 Pro/100 Ethernet port 0xece0-0xecff mem
0xfdf0-0xfdff irq 9 at device 4.0 on pci2
miibus0: MII bus on fxp0
inphy0: i82555 10/100 media interface PHY 1 on miibus0
inphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:d0:b7:b9:c1:9c
fxp0: [ITHREAD]
fxp1: Intel 82558 Pro/100 Ethernet port 0xecc0-0xecdf mem
0xfde0-0xfdef irq 10 at device 5.0 on pci2
miibus1: MII bus on fxp1
inphy1: i82555 10/100 media interface PHY 1 on miibus1
inphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp1: Ethernet address: 00:d0:b7:b9:c1:9d
fxp1: [ITHREAD]
xl0: 3Com 3c905C-TX Fast Etherlink XL port 0xdc80-0xdcff mem
0xfbfffc00-0xfbfffc7f irq 11 at device 12.0 on pci1
miibus2: MII bus on xl0
ukphy0: Generic IEEE 802.3u media interface PHY 24 on miibus2
ukphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
xl0: Ethernet address: 00:06:5b:81:d2:82
xl0: [ITHREAD]
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH2 UDMA100 controller port
0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xffa0-0xffaf at device 31.1 on pci0
ata0: ATA channel 0 on atapci0
ata0: [ITHREAD]
ata1: ATA channel 1 on atapci0
ata1: [ITHREAD]
uhci0: Intel 82801BA/BAM (ICH2) USB controller USB-A port 0xff80-0xff9f
irq 11 at device 31.2 on pci0
uhci0: [GIANT-LOCKED]
uhci0: [ITHREAD]
usb0: Intel 82801BA/BAM (ICH2) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb0
uhub0: 2 ports with 2 removable, self powered
pci0: serial bus, SMBus at device 31.3 (no driver attached)
uhci1: Intel 82801BA/BAM (ICH2) USB controller USB-B port 0xff60-0xff7f
irq 11 at device 31.4 on pci0
uhci1: [GIANT-LOCKED]
uhci1: [ITHREAD]
usb1: Intel 82801BA/BAM (ICH2) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 on usb1
uhub1: 2 ports with 2 removable, self powered
pci0: multimedia, audio at device 31.5 (no driver attached)
fdc0: floppy drive controller port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: [FILTER]
fd0: 1440-KB 3.5 drive on fdc0 drive 0
atkbdc0: Keyboard controller (i8042) port 0x60,0x64 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: PS/2 Mouse irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on
acpi0
sio0: type 16550A
sio0: [FILTER]
sio1: 16550A-compatible COM port port 0x2f8-0x2ff irq 3 on acpi0
sio1: type 16550A
sio1: [FILTER]
cpu0: ACPI CPU on acpi0
pmtimer0 on isa0
orm0: ISA Option ROMs at iomem 0xc-0xc9fff,0xca000-0xcbfff pnpid
ORM on isa0
ppc0: Parallel port at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: Parallel port bus on ppc0
ppbus0: [ITHREAD]
plip0: PLIP network interface on ppbus0
plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0
ppc0: [GIANT-LOCKED]
ppc0: [ITHREAD]
sc0: 

Ports Options

2009-02-20 Thread Pieter Donche
At the first install of a package via the ports collection (cd 
/usr/ports/../..; make install clean), if the package provides 
configuration options, you can check these on a menu screen,

or accept all the defaults.

If later on, you want to know what the set of the options were when you 
installed a port, how to find that out? I tried

# cd /usr/ports/categoryname/portname
# make
hoping to see the menu again, but it doesn't show any menu, but says:
===  Found saved configuration for portname-version

Where is that saved configuration kept ??
How to get a menu displayed again so you can see and check the options
you want?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Ports Options

2009-02-20 Thread Beech Rintoul
On Friday 20 February 2009 12:24:45 Pieter Donche wrote:
 At the first install of a package via the ports collection (cd
 /usr/ports/../..; make install clean), if the package provides
 configuration options, you can check these on a menu screen,
 or accept all the defaults.

 If later on, you want to know what the set of the options were when you
 installed a port, how to find that out? I tried
 # cd /usr/ports/categoryname/portname
 # make
 hoping to see the menu again, but it doesn't show any menu, but says:
 ===  Found saved configuration for portname-version

 Where is that saved configuration kept ??
 How to get a menu displayed again so you can see and check the options
 you want?

# cd /usr/ports/categoryname/portname
# make config

Beech
-- 
---
Beech Rintoul - FreeBSD Developer - be...@freebsd.org
/\   ASCII Ribbon Campaign  | FreeBSD Since 4.x
\ / - NO HTML/RTF in e-mail   | http://people.freebsd.org/~beech
 X  - NO Word docs in e-mail | Skype: akbeech
/ \  - http://www.FreeBSD.org/releases/7.1R/announce.html
---




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


Re: read() vs fread()

2009-02-20 Thread Pieter de Goeje
On Friday 20 February 2009 21:07:57 Junsuk Shin wrote:
 Hi BSD guys,

 While I was doing simple file read test, I found that there is a huge
 difference in file read performance between read() and fread(). I'm
 wondering if I'm doing something wrong or if someone has experienced
 similar things.

 Here is what I did,

 For the specific application, I need to bypass cache (I read only
 once, and that's all)
 The test file is 700Mbytes dummy file.
 Test app just reads the whole file.

 Test is done on FreeBSD 7.1 amd 64, Celeron E1200, WD Caviar SE16 SATA 7200
 RPM

 For test 1,

 fd = open(name, O_RDONLY | O_DIRECT);
 while(...) {
   cnt = read();
   
 }

 for test 2,

 fd = open(name, O_RDONLY | O_DIRECT);
 file = fdopen(fd,r);
 while(...) {
   cnt = fread();
   
 }

 test 1 takes about 11.64 seconds (63 MBytes/s), and test 2 takes about
 51.53 seconds (14 MBytes/s)

 If I use the pair of fopen() and fread(), it will have cache effect,
 so the result doesn't say much of hdd performance.

 Personally, I don't think the overhead of fread() (wrapper in libc) is
 that huge. What would be the reason for this?

The reason is that by default a FILE has a really small internal buffer. Take 
a look at gstat(8) while running the test: you can clearly see an insane 
amount of I/O requests being done (almost 5000 reads per second on my HDD). 
To solve this call setvbuf(3):

setvbuf(file, buf, _IOFBF, bufsize);

A bufsize of 16k or bigger should help a lot. After this modification, I see 
about 900 reads per second (using bufsize = 64k) and the read speed is equal 
to the read(2) case.

Regards,

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


Re: Ports Options

2009-02-20 Thread Glen Barber
On Fri, Feb 20, 2009 at 4:24 PM, Pieter Donche pieter.don...@ua.ac.be wrote:
 At the first install of a package via the ports collection (cd
 /usr/ports/../..; make install clean), if the package provides configuration
 options, you can check these on a menu screen,
 or accept all the defaults.

 If later on, you want to know what the set of the options were when you
 installed a port, how to find that out? I tried
 # cd /usr/ports/categoryname/portname
 # make
 hoping to see the menu again, but it doesn't show any menu, but says:
 ===  Found saved configuration for portname-version

 Where is that saved configuration kept ??
 How to get a menu displayed again so you can see and check the options
 you want?

`make config'


-- 
Glen Barber
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


When is there going to be a USB install and run iso iamge for FreeBSD?

2009-02-20 Thread Formula 1
Is there going to be a possibility for FreeBSD, in the future or now, that 
there will be a release of it that allows for install and running of the 
operating system off of a USB memory stick?




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


Ports Options

2009-02-20 Thread Robert Huff

Pieter Donche writes:

  If later on, you want to know what the set of the options were when you 
  installed a port, how to find that out? I tried
  # cd /usr/ports/categoryname/portname
  # make

# make showconfig


Robert Huff

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


Re: Ports Options

2009-02-20 Thread Ivan Rambius Ivanov
Hello,

On Fri, Feb 20, 2009 at 4:24 PM, Pieter Donche pieter.don...@ua.ac.be wrote:
 At the first install of a package via the ports collection (cd
 /usr/ports/../..; make install clean), if the package provides configuration
 options, you can check these on a menu screen,
 or accept all the defaults.

 If later on, you want to know what the set of the options were when you
 installed a port, how to find that out? I tried
 # cd /usr/ports/categoryname/portname
 # make
 hoping to see the menu again, but it doesn't show any menu, but says:
 ===  Found saved configuration for portname-version

 Where is that saved configuration kept ??
 How to get a menu displayed again so you can see and check the options
 you want?

make config will show you the menu with the port's options again.
make showconfig will show you the previously saved configuration.
make rmconfig will delete the saved configuration.

Please refer to [1] for more information on how to use ports.

Regards
Rambius

[1] http://www.freebsd.org/doc/en/books/handbook/ports-using.html

-- 
Tangra Mega Rock: http://www.radiotangra.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Aliassing 'svn log' to 'svn log -v'

2009-02-20 Thread Frank Staals

Jon Radel wrote:


Glen Barber wrote:


Try escaping it:
alias svn\ log='svn log-v'


Unfortunately that does not seem to work


Or just use your own command name:

alias svnv='svn log -v'


I kind of wanted to avoid that, but I guess that it can't be avoided then

--Jon Radel




--

- Frank

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


Re: When is there going to be a USB install and run iso iamge for FreeBSD?

2009-02-20 Thread Sergio de Almeida Lenzi
Em Sex, 2009-02-20 às 20:51 +, Formula 1 escreveu:

 Is there going to be a possibility for FreeBSD, in the future or now, that 
 there will be a release of it that allows for install and running of the 
 operating system off of a USB memory stick?
 


I have it running here... two small scripts save it from the disk into a
2mb usb stick.
once in the usb you can boot (from the usb) and install it on any other
disk in 5 minutes
and using zfs (a 1gb ufs partition, a swap partition and a big zfs
partition.
if needed I can put the script in the web fo testing or download.

I adivse that  there is no need to enter sysinstall.

Hope it can help

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


Re: read() vs fread()

2009-02-20 Thread Junsuk Shin
setvbuf(file, buf, _IOFBF, bufsize) solved the problem perfectly.
Thanks a lot.

On Fri, Feb 20, 2009 at 4:09 PM, Pieter de Goeje pie...@degoeje.nl wrote:

 On Friday 20 February 2009 21:07:57 Junsuk Shin wrote:
  Hi BSD guys,
 
  While I was doing simple file read test, I found that there is a huge
  difference in file read performance between read() and fread(). I'm
  wondering if I'm doing something wrong or if someone has experienced
  similar things.
 
  Here is what I did,
 
  For the specific application, I need to bypass cache (I read only
  once, and that's all)
  The test file is 700Mbytes dummy file.
  Test app just reads the whole file.
 
  Test is done on FreeBSD 7.1 amd 64, Celeron E1200, WD Caviar SE16 SATA 7200
  RPM
 
  For test 1,
 
  fd = open(name, O_RDONLY | O_DIRECT);
  while(...) {
cnt = read();

  }
 
  for test 2,
 
  fd = open(name, O_RDONLY | O_DIRECT);
  file = fdopen(fd,r);
  while(...) {
cnt = fread();

  }
 
  test 1 takes about 11.64 seconds (63 MBytes/s), and test 2 takes about
  51.53 seconds (14 MBytes/s)
 
  If I use the pair of fopen() and fread(), it will have cache effect,
  so the result doesn't say much of hdd performance.
 
  Personally, I don't think the overhead of fread() (wrapper in libc) is
  that huge. What would be the reason for this?

 The reason is that by default a FILE has a really small internal buffer. Take
 a look at gstat(8) while running the test: you can clearly see an insane
 amount of I/O requests being done (almost 5000 reads per second on my HDD).
 To solve this call setvbuf(3):

 setvbuf(file, buf, _IOFBF, bufsize);

 A bufsize of 16k or bigger should help a lot. After this modification, I see
 about 900 reads per second (using bufsize = 64k) and the read speed is equal
 to the read(2) case.

 Regards,

 Pieter de Goeje

--
Junsuk
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Ports Options

2009-02-20 Thread Gonzalo Nemmi
On Friday 20 February 2009 7:24:45 pm Pieter Donche wrote:
 At the first install of a package via the ports collection (cd
 /usr/ports/../..; make install clean), if the package provides
 configuration options, you can check these on a menu screen,
 or accept all the defaults.

 If later on, you want to know what the set of the options were when you
 installed a port, how to find that out? I tried
 # cd /usr/ports/categoryname/portname
 # make
 hoping to see the menu again, but it doesn't show any menu, but says:
 ===  Found saved configuration for portname-version

 Where is that saved configuration kept ??

Under /var/db/ports/.../ in a file named options

[gonz...@inferna ~]% more /var/db/ports/hplip/options
# This file is auto-generated by 'make config'.
# No user-servicable parts inside!
# Options for hplip-2.8.2_2
_OPTIONS_READ=hplip-2.8.2_2
WITH_GUI=true
[gonz...@inferna ~]%

 How to get a menu displayed again so you can see and check the options
 you want?

make config or make rmconfig as the other posters told you, or just go 
ahead and manually delete rm -f the options file prior to the make install 
clean

Regards
-- 
Blessings
Gonzalo Nemmi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: video editor

2009-02-20 Thread prad
On Fri, 20 Feb 2009 17:36:19 +0100
t-u-t marshc...@gmail.com wrote:

 there is versions of hjsplit if u ever used that in 
 windows. i've used a good and simple command line version b4 but i
 can't remember exactly where it is in ports it maybe hjsplit or
 lhjsplit. (google to their site).

it is lxsplit, but i can't figure out how to work it.

i settled on mencoder and installed it from ports since there is no pkg
for it. it's a bit of an overkill for my present needs (which have
been met) but it looks like something that is worth learning!

thanks to everyone for your suggestions.

-- 
In friendship,
prad

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


KGDB connection failure - Please help, I'm desparate!

2009-02-20 Thread Peter Craft

I've been trying for three days to get KGDB to work.

I've followed the instructions here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug-online-gdb.html

and here:
http://www.lemis.com/grog/Papers/Debug-tutorial/tutorial.pdf

without success.  Specifically, I've rebuilt my kernel with:
makeoptions DEBUG=-g# Build kernel with gdb(1) debug symbols
..
options KDB
options DDB
options GDB

My boot.config file contains -P and my /boot/loader.conf file contains:
hint.sio.0.flags=0x90

When I issue the boot -d on the target, the system breaks in to the db 
prompt
as expected, at which point I enter gdb followed by s.  All of which seems 
to
work perfectly.

On the debugger side I enter kgdb with  kgdb -r /dev/cuad0 -v kernel.debug
from the build directory and I get:

Ignoring packet error, continuing...
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Couldn't establish connection to remote target
Malformed response to offset query, timeout

If I boot the remote system with set console=comconsole, I'm able to 
communicate
across the serial line as a console, so I believe that the serial ports and 
cable are
functioning properly.  I just can't get gdb to connect.

Can anyone offer any suggestion on what to try next?  Or tips on how to go
about debugging the problem?  This is with FreeBSD 7.1.

Thanks in advance,

Pete
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Re: installworld fails - nb_NO.ISO8859-1/LC_TIME: too many levels of symbolic links

2009-02-20 Thread Gregory W. MacPherson
The problem is that both of the files:

/usr/share/locale/nb_NO.ISO8859-1/LC_TIME

and 

/usr/share/locale/no_NO.ISO8859-1/LC_TIME

... are symbolic links ... to each other.

The solution is to remove one symlink and replace it with a real file as 
shown below:

rm -f /usr/share/locale/no_NO.ISO8859-1/LC_TIME
touch /usr/share/locale/no_NO.ISO8859-1/LC_TIME

Now /usr/share/locale/nb_NO.ISO8859-1/LC_TIME is a symbolic link and
/usr/share/locale/no_NO.ISO8859-1/LC_TIME is a real (albeot zero length)
file.

And, yes, someone ought to fix this in CVS.

-- Greg

 On Saturday 31 January 2009 07:09:39 Anton Shterenlikht wrote:
  I'm upgrading from 7.1-prerelease to 7.1-stable. I followed the
 manual.
  make buildworld, make buildkernel, make installkernel, reboot,
  make installworld fails with
 
  install: /usr/share/locale/nb_NO.ISO8859-1/LC_TIME: Too many levels of
  symbolic links
 
 Can you provide output of:
 ls -l /usr/share/locale/nb_NO.IS8859-1/LC_TIME
 
 -- 
 Mel
 
 Problem with today's modular software: they start with the modules
 and never get to the software part.

-- 
Gregory W. MacPherson
Global Network Exploitation Specialist, CISSP
http://www.datasieve.net/greg/

In the beginning of a change, the patriot is a scarce man and brave,
hated and scorned. When his cause succeeds however, the timid join him,
for then it costs nothing to be a patriot. -- Mark Twain
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: When is there going to be a USB install and run iso iamge for FreeBSD?

2009-02-20 Thread Fbsd1

Formula 1 wrote:

Is there going to be a possibility for FreeBSD, in the future or now, that 
there will be a release of it that allows for install and running of the 
operating system off of a USB memory stick?






In 7.1 I installed from cdrom cd1 to USB memory stick using the 
sysinstall utility. When you do the fdisk be sure to allocate whole USB 
memory stick as a single partition and mark it bootable.

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


Re: When is there going to be a USB install and run iso iamge for FreeBSD?

2009-02-20 Thread Fbsd1

Sergio de Almeida Lenzi wrote:

Em Sex, 2009-02-20 às 20:51 +, Formula 1 escreveu:


Is there going to be a possibility for FreeBSD, in the future or now, that 
there will be a release of it that allows for install and running of the 
operating system off of a USB memory stick?




I have it running here... two small scripts save it from the disk into a
2mb usb stick.
once in the usb you can boot (from the usb) and install it on any other
disk in 5 minutes
and using zfs (a 1gb ufs partition, a swap partition and a big zfs
partition.
if needed I can put the script in the web fo testing or download.

I adivse that  there is no need to enter sysinstall.

Hope it can help

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



Sure would like a copy of your scrips.
Thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: vi set comment #

2009-02-20 Thread Javier Perez
2009/2/20 Rajarajan Rajamani r.rajam...@gmail.com:
 On Fri, Feb 20, 2009 at 9:52 AM, Doug Poland d...@polands.org wrote:
 Johan Hendriks wrote:

 How can i in vi set a # on multiple Lines to comment out some text.

 I know it must be a simple thing but i can not seem to get it right.

 Like in a config file i have the following

 define service{
use generic-service
host_name   w2003hk03
service_description Explorer
check_command   check_nt!PROCSTATE!-d SHOWALL -l
 Explorer.exe
}

 And now i want to set a # to all the 6 lines.

 Thanks for your time
 Regards,
 Johan



 This question is really more germane to a VIm mail list
 (http://www.vim.org/) , but I'll tell you how'd I'd do it.

 First, turn on line numbers --

   :set nu


   :3,8s/^/#/

 That's all there is too it.  BTW, VIm help is your friend


 OR just mark the block visually and then do a
 :',' s:/^/#/

 the ',' will appear automatically as soon as you hit : after marking
 the visual block.

On vim you can also use a keyboard macro in this way:

1G   (or whatever the line you wanna start from)
qa^i#escjq (the macro itself)
5...@a(as many times you need)


Cheers.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org