The FreeBSD Diary: 2005-10-02 - 2005-10-22

2005-10-23 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives http://www.freebsd.org/search/search.html#mailinglists 
and/or The FreeBSD Diary http://www.freebsddiary.org/. 

These are the articles posted during this period:

18-Oct : FreeBSD 6.0-RC1
 This is the desciption 
 http://freebsddiary.org/freebsd-6.0-rc1.php?2

14-Oct : Cross compiling on AMD64 - the teaser
 Why let a big machine idle? 
 http://freebsddiary.org/index.html?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

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


Re: Editor for C C++ language

2005-10-23 Thread Frank Staals

vittorio wrote:

Working usually under kde I'm looking for something similar to the llc-win32 
program under ms-windows - that is a development environment where you can 
edit your c++ program, compile it, debug it step by step, and finally run it 
in a suitable window.
I tried the nice editor kate which allows to compile the file only. No 
debugging, no running.

Is  there anything of the kind of llc-win32?
Ciao
Vittorio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


 

If you have an up to date system with at least 512MB ram I reccommend 
Eclipse with CDT as someone else allready mentioned. But a bit less 
system-resources-draining is anjuta, which works pretty nice. 
http://anjuta.sourceforge.net/ The anjuta 1 ( stable ) port is available 
in the portstree devel/anjuta . Their developement release ( 2.X ) isn't 
available in the portstree and should be manually installed.




--
-Frank Staals


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


Re: Editor for C C++ language

2005-10-23 Thread vittorio
Alle 02:34, domenica 23 ottobre 2005, Giorgos Keramidas ha scritto:
 On 2005-10-22 22:07, vittorio [EMAIL PROTECTED] wrote:
  Working usually under kde I'm looking for something similar to the
  llc-win32 program under ms-windows - that is a development environment
  where you can edit your c++ program, compile it, debug it step by
  step, and finally run it in a suitable window.
 
  I tried the nice editor kate which allows to compile the file only. No
  debugging, no running.
 
  Is  there anything of the kind of llc-win32?

 I'm using Emacs as my IDE for years now.  It's not exactly what someone
 who is used to windowing environments would call a GUI IDE, but it can
 do the following:

 - Edit the source code (with syntax highlighting if need be)

 - Compile (with the hit of a single key, once configured)

 - Parse compiler output and move to the file/line of an error,
   then to the next error, etc.
 - Interactively debug C, C++, Perl, Python, or LISP programs,
   line by line -- working as a control program for GNU gdb

 and that's only a minor subset of the features it has.

Well, as a matter of fact I'm obliged at wok to use windows but my pet OS are 
both BSDs.
In my freebsd portable I have xemacs that is sensitive to many environments 
(I use it for the statiscal program R and for pdflatex)  among which  C++ . 
In  fact the C++ program I edit triggers a C++ menu and many options among 
which there are also debug and compile. This latter unfortunately calls a 
make -k command while I'd like to run g++ prog.c -g -o prog as usual.
Could someone  explain what shoujld I do to modify xemacs as I want?

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


Re: Editor for C C++ language

2005-10-23 Thread Giorgos Keramidas
On 2005-10-23 12:52, vittorio [EMAIL PROTECTED] wrote:
 In my freebsd portable I have xemacs that is sensitive to many
 environments (I use it for the statiscal program R and for pdflatex)
 among which  C++ .  In  fact the C++ program I edit triggers a C++
 menu and many options among which there are also debug and compile.
 This latter unfortunately calls a make -k command while I'd like to
 run g++ prog.c -g -o prog as usual.  Could someone  explain what
 shoujld I do to modify xemacs as I want?

This is probably an effect of the default value of ``compile-command''.

What do you see if you type:

M-: (list compile-command) RET

should be (make -k).  By customizing this variable, or setting it to a
local value when C++ code is edited, you should be able to make the menu
entry invoke any command you find more useful.

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


Re: vrele: negative ref cnt

2005-10-23 Thread Michał T . Masłowski
  When I turn off the computer by halt, halt -p or something else,
usually it 
  shows kernel panic with vrele: negative ref cnt. What should I do?
  I'm using FreeBSD 5.4-p7.
 
 Try updating to -stable, or try the 6.0 beta.  If the problem
 persists, follow the advice in the chapter on kernel debugging in the
 developers handbook.
 
 Kris
 

Thank for your advice. I will try updating, but I think that the
problem is with the hard disk.

It occurs only when device of file system which is being unmounted
has read errors.
What else should I do except from changing the faulty disk?

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


qemu

2005-10-23 Thread dick hoogendijk
I discouvered QEMU today and I think it is an amazing program.
Just to be sure and on the safe site:

Will the command qemu -hda win98se.img -boot d -user-net do as I
think it will do: .. boot from my cdrom device so I can install windows
from it to the win98se.img file?

Needless to sy I created the img file with qemu-img create -f qcow
win98se.img 10G

On oszoo.org they say you can even create a compressed clone of the
image file by giving this cmd: qemu-img convert -f qcow -c win98se.img
-O qcow image_compressed.img but this does not work form me. The msg
is that compression is not supproted for this format. Is this right? Or
do I do something wrong?

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4
+ Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: qemu

2005-10-23 Thread albi
 I discouvered QEMU today and I think it is an amazing program.

fully agreed :)

 Just to be sure and on the safe site:

 Will the command qemu -hda win98se.img -boot d -user-net do as I think
it  will do: .. boot from my cdrom device so I can install windows from
it to
 the win98se.img file?

i never had success with booting from the real cdrom, but creating an
iso-file
(using dd) and booting from that (-cdrom file.iso) did the trick

see also : http://www.qemu.org/qemu-doc.html#SEC10



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


Re: Bash Pattern Matching Syntax

2005-10-23 Thread Michał Masłowski
 I want to list the files in a directory that end in .jpg irregardless
 of case.  Thus after reading the bash man page, it seems I should be
 able to issue a command something along the lines of ls [*.[JjPpGg]]
 or ls *.[JjPpGg] but neither of these work and return a No such file
 or directory message.  I've also tried various ways of  escaping the
 '*' and '. but that didn't help either.  However ls *[JjPpGg] does
 work by listing the files.  However I want to match the . before jpg
 as well.  What is the correct syntax for what I'm trying to do?

 Thanks,

 Drew

ls *.{JPG,jpg}
or
ls *.{J,j}{P,p}{G,g}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: qemu

2005-10-23 Thread dick hoogendijk
On Sun, 23 Oct 2005 14:41:59 +0200 (CEST)
albi [EMAIL PROTECTED] wrote:

  I discouvered QEMU today and I think it is an amazing program.
 
 fully agreed :)
 
  Just to be sure and on the safe site:
 
  Will the command qemu -hda win98se.img -boot d -user-net do as I
  think
 it  will do: .. boot from my cdrom device so I can install windows
 from it to
  the win98se.img file?
 
 i never had success with booting from the real cdrom, but creating an
 iso-file
 (using dd) and booting from that (-cdrom file.iso) did the trick

Thanks. Some googling learns that the -f raw fileformat is used.
As I understand the -f qcow fileformat gives the option that it is
growable. Which is better? qcow or raw ?

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4
+ Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: qemu

2005-10-23 Thread Roland Smith
On Sun, Oct 23, 2005 at 02:28:50PM +0200, dick hoogendijk wrote:
 I discouvered QEMU today and I think it is an amazing program.

Indeed. Very usefull to check out other OS on your FreeBSD box.

 Just to be sure and on the safe site:
 
 Will the command qemu -hda win98se.img -boot d -user-net do as I
 think it will do: .. boot from my cdrom device so I can install windows
 from it to the win98se.img file?

You'll have to add '-cdrom /dev/cd0' (substitute your CD-ROM drive for
cd0). Alternatively, you can use an ISO image as CD-ROM.

snip 
 On oszoo.org they say you can even create a compressed clone of the
 image file by giving this cmd: qemu-img convert -f qcow -c win98se.img
 -O qcow image_compressed.img but this does not work form me. The msg
 is that compression is not supproted for this format. Is this right? Or
 do I do something wrong?

I get the same. According to the qemu-img manual page, this command
should be formatted as

   convert [-c] [-e] [-f fmt] filename [-O output_fmt] output_filename

but that doesn't work either; it just produces a help message.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpTV6zFLd4tN.pgp
Description: PGP signature


problems running mixxx (direct rendering, segfault)

2005-10-23 Thread Linnea Forslund
Yesterday I installed mixxx and managed to start it, but only as root.
Then i got this message:


Direct rendering is not enabled in your machine.

This means that the waveform displays will be very slow and take a lot
of CPU time. Either upgrade your configuration to enable direct
rendering or disable the waveform displays in the control panel by
selecting Simple under waveform displays. NOTE: In case you run
NVidia hardware direct rendering may not be present, but you will not
experience a degradation in performance.


I tried selecting simple but it said that the changes will take
effect only after I restart the program and since it started everytime
like the first time it was back to the normal waveform again.

Also the sound was hacking. I don't know if this was because of the
waveform-thing. If it's something else then I have another problem.


Today it won't start from root etiher. I get the same text as when I'm
ordinary:

Debug: Starting up...
Debug: MidiObjectOSS: No MIDI devices available.
Debug: playlist name Default
Debug: id 0, sr 8000, ch 2, bufsize 16, bufno 400
Segmentation fault (core dumped)


I'm supposed to have this running smoothly on thursday when I'm taking
care of the music at my schools halloween-party so I'm kind of
stressed out. Do you think you can help me? I'm new to both unix and
freeBSD so if you explain things like I'm a retarded kid i might get
it ^^


Here they had the same problem:
http://sourceforge.net/forum/forum.php?thread_id=1236134forum_id=156157
and someone said I can disable visuals manually by editing your
~/.mixxx.cfg file so that the line with Visuals reads 1 instead of 0
Sounds like something to do if nothing else works. How would I do
that?


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


Re: IPFW equivalent of iptables --state ESTABLISHED, RELATED

2005-10-23 Thread Eric F Crist

On Oct 22, 2005, at 11:53 PM, John Do wrote:


Hi guys

I'm having trouble with IPFW I need to allow user
initiated traffic IN but I can't

Basically in iptables for Linux I would have used
something like
-A INPUT -p tcp -m tcp --state ESTABLISHED,RELATED -j
ACCEPT


Can someone help me discover what the equivalent
syntax in IPFW would be?

I have tried to use allow tcp from any to any
established in but it doesn't work

much appreciated

thanks guys !


I'm not quite sure what you're trying to accomplish.  If you just  
want traffic enabled so that when users are browsing the web they get  
the replies from their requests, that rule is written as:


ipfw add ### allow ip from any to any established

The rule won't allow new traffic in or out without other rules  
enabling it.  An example ruleset could look like this:


ipfw add 100 allow ip from me to any
ipfw add 200 allow ip from 192.168.1.0/24 to any out via dc0
ipfw add 300 allow ip from any to any established
ipfw add 400 deny ip from 192.168.1.0/24 to me in via dc0
ipfw add 500 allow ip from any to any via sk0

In this example, I'm assuming your FreeBSD machine is the network  
gateway.  NIC dc0 is the outside NIC and sk0 is the internal one.


HTH
___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson

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


Re: qemu

2005-10-23 Thread dick hoogendijk
On Sun, 23 Oct 2005 14:53:10 +0200
Roland Smith [EMAIL PROTECTED] wrote:

 On Sun, Oct 23, 2005 at 02:28:50PM +0200, dick hoogendijk wrote:
  I discouvered QEMU today and I think it is an amazing program.
 
 Indeed. Very usefull to check out other OS on your FreeBSD box.

Win98 is up and runnign very smoothly. I'm very impressed. I used to
run vmware3 on FreeBSD, but lately this was kind of a hassle on my 5.4
system. Hangups, crashes..

QEMU even toggles between fullscreen and a small window without errors
(unlike vmware) and last but nog least, even the sound is OK!

-- 
dick -- http://nagual.st/ -- PGP/GnuPG key: F86289CE
++ Running FreeBSD 4.11-stable ++ FreeBSD 5.4
+ Nai tiruvantel ar vayuvantel i Valar tielyanna nu vilja
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ntpd problems

2005-10-23 Thread Lowell Gilbert
Shelby Westman [EMAIL PROTECTED] writes:

 I am a relatively new freeBSD user. The problem I describe below happens on
 both a 5.4 install and a 6.0 RC1 install.
 
 Right after installing the OS, I enable ntpd in rc.conf, and setup a simple
 config file in /etc/ntp.conf. When I reboot, I get this message:
 
 Oct 22 10:40:57 alter ntpd[392]: ntpd 4.2.0-a Sun Oct 9 18:33:33 UTC 2005
 (1)
 Oct 22 10:40:57 alter ntpd[392]: bind() fd 6, family 28, port 123, addr
 fe80:1::202:55ff:fe58:2957, in6_is_addr_multicast=0 flags=0 fails: Can't
 assign requested address
 
 Then ntpd does not synchronize the time. I set the clock manually (using
 date) five minutes ahead to check and in fact it does not get adjusted.
 
 I have tried all sorts of things. I tried assigning numeric addresses rather
 than host names in the config file. I tried enabling ipv6 in sysinstall.
 This machine does have a good route to the internet - I can use nslookup to
 resolve host names, so I know the networking is working.
 
 Below I have quoted the ntp.conf. The log file is empty - nothing is being
 written there.
 
 Does anyone have any ideas? I am stumped... thanks for your help.
 
 Shelby
 
 __
 
 config file as it stands now...
 
 logfile /var/log/ntpd.log
 
 # deny-by-default policy
 restrict default ignore
 
 #server -4 ntp-2.ece.cmu.edu http://ntp-2.ece.cmu.edu
 #server -4 ticker.cis.sac.accd.edu http://ticker.cis.sac.accd.edu
 #server -4 lain.ziaspace.com http://lain.ziaspace.com
 #server -4 ntp1.linuxmedialabs.com http://ntp1.linuxmedialabs.com
 server 17.254.0.31 http://17.254.0.31
 
 driftfile /var/spool/ntp.drift


You're probably running into problems with your restrict clause, but
I'm not sure what offhand.
Use the -d flag to ntpd (or more than one) to get more information
on what it thinks the problem is.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Difficulties to launch KDE

2005-10-23 Thread Michał Masłowski
 Hello:

 I am sure you will find my problem quite easy. I just installed FreeBSD
 5.4, and I configured KDE and related configurations according with the
 handbook. My .xinitrc file contains only the line: echo exec startkde.
 When I type startx everything seems to be well, but KDE doesn't start.
 There are no errors reported or anything pointing to the problem, except a
 line at the end which reads:

 xauth: (argv):1:  bad display name Monique.gateway.2wire.net:0 in
 remove command

 I am behind a wireless modem-router with domain name gateway.2wire.net.

 I do not know what command remove is referred here or where it occurs,
 and how to fix it. No entry like this in xorg.conf.

 I will appreciate any help.

 Teilhard.

Do you have exec startkde in .xinitrc ?
echo exec startkde is used to put it in a file.

If this problem still occurs, read startx's man page.

I don't know anything about xauth.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


NAT+NET-SNMP Problem+FreeBSD-4.10

2005-10-23 Thread Edwin D. Vinas
Hi,
 This is just a follow-up on my previous posting on my problem with snmp. My
setup involves 1 DSL interface and 1 LAN interface in a FreeBSD-4.10 which
is configured as gateway and NAT router. I haven't been able to query any
SNMP data from this machine which acts as my DSL router. Was it a problem
with NAT?

--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Fwd: NAT+NET-SNMP Problem+FreeBSD-4.10

2005-10-23 Thread Edwin D. Vinas
Applications that work with identified devices, or that actually identify
devices (such as the *Simple Network Management Protocol* [SNMP] and DNS)
require very careful configuration when operating an a NAT environment. -
Source:
http://www.cisco.com/en/US/about/ac123/ac147/archived_issues/ipj_7-3/anatomy.html
 Am I really right to assume that my SNMP problem was a missing
configuration in NAT?


-- Forwarded message --
From: Edwin D. Vinas [EMAIL PROTECTED]
Date: Oct 23, 2005 8:26 AM
Subject: NAT+NET-SNMP Problem+FreeBSD-4.10
To: freebsd-questions@freebsd.org

 Hi,
 This is just a follow-up on my previous posting on my problem with snmp. My
setup involves 1 DSL interface and 1 LAN interface in a FreeBSD-4.10 which
is configured as gateway and NAT router. I haven't been able to query any
SNMP data from this machine which acts as my DSL router. Was it a problem
with NAT?

--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--


--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Difficulties to launch KDE

2005-10-23 Thread Philip Lykke Carlsen
Sunday 23 October 2005 17:13 skrev Michał Masłowski:
  Hello:
 
  I am sure you will find my problem quite easy. I just installed FreeBSD
  5.4, and I configured KDE and related configurations according with the
  handbook. My .xinitrc file contains only the line: echo exec
  startkde. When I type startx everything seems to be well, but KDE
  doesn't start. There are no errors reported or anything pointing to the
  problem, except a line at the end which reads:
 
  xauth: (argv):1:  bad display name Monique.gateway.2wire.net:0 in
  remove command
 
  I am behind a wireless modem-router with domain name gateway.2wire.net.
 
  I do not know what command remove is referred here or where it occurs,
  and how to fix it. No entry like this in xorg.conf.
 
  I will appreciate any help.
 
  Teilhard.

 Do you have exec startkde in .xinitrc ?
 echo exec startkde is used to put it in a file.

 If this problem still occurs, read startx's man page.

 I don't know anything about xauth.

Well, .xinitrc only needs to contain startkde.. the echo thing will only 
write it to the terminal you use to start X with.. 
your xauth problem is probably due to your hostname not being in 
your /etc/hosts.. just add it under localhost and you should be fine..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: IPFW equivalent of iptables --state ESTABLISHED, RELATED

2005-10-23 Thread Chuck Swiger

John Do wrote:


Hi guys

I'm having trouble with IPFW I need to allow user
initiated traffic IN but I can't

Basically in iptables for Linux I would have used
something like
-A INPUT -p tcp -m tcp --state ESTABLISHED,RELATED -j
ACCEPT


Can someone help me discover what the equivalent
syntax in IPFW would be?

I have tried to use allow tcp from any to any
established in but it doesn't work 


allow tcp from any to any established

...as another poster said, however, this will allow data traffic not associated 
with legitimate connections in, too.  If you want use stateful rules in IPFW, 
something like:


check-state
allow ip from me to any setup keep-state

Take a look at /etc/rc.firewall for more detailed rules...

--
-Chuck

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


Hosting a mirror?

2005-10-23 Thread nocturnal

Hi

I really tried finding information for people who can host mirrors but 
could not find any. I'd like to know everything i need to know about 
hosting a mirror for the FreeBSD project and how i apply for it.

--



Med vänliga hälsningar

Stefan Midjich aka nocturnal
[Swehack] http://swehack.se

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


Re: Hosting a mirror?

2005-10-23 Thread nocturnal

Hi

Sorry for my last e-mail, i was not paying attention and found 
everything i needed now.

--



Med vänliga hälsningar

Stefan Midjich aka nocturnal
[Swehack] http://swehack.se

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


RFC: my firewall ruleset(s)

2005-10-23 Thread Eric F Crist
Hey all.  I'm relatively new to shell scripting and I'm looking for  
some comments on my firewall script.


Comments on either the ipfw rules themselves or on my scripting lack  
of ability would be appreciated.


Thanks.



nerp.firewall
Description: Binary data



___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson

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

Re: RFC: my firewall ruleset(s)

2005-10-23 Thread Eric F Crist

On Oct 23, 2005, at 10:44 AM, Eric F Crist wrote:

Hey all.  I'm relatively new to shell scripting and I'm looking for  
some comments on my firewall script.


Comments on either the ipfw rules themselves or on my scripting  
lack of ability would be appreciated.


Thanks.


nerp.firewall


___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson



Sorry to post a shell program as an attachment.  I wasn't thinking.   
Please don't run the shell program - it'll set an open firewall on  
your *nix system if you're root.


___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson

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


Preloading of shared libraries

2005-10-23 Thread Philip Lykke Carlsen
Hey.. I wondered if it was possible to load a selection of shared libraies 
into the cache at boot time.. I figure that it would speed up starting 
things.. like the KDE login manager for instance.. 

hm.. is this possible? .. and if so.. would it speed up the process of 
starting stuff at all?..
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: OpenAFS for FreeBSD...

2005-10-23 Thread Jack T
Forrest Aldrich wrote:
 I've asked the OpenAFS people about a port to FreeBSD.

 They recently gained a port to OS X, which I understand
 has a similar/FreeBSD codebase.

Please look at Arla. I've been using Arla quite happily on FreeBSD 5.4,
and it provides all the AFS functionalities I need.

Perhaps it would be sufficient for you?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sound driver

2005-10-23 Thread Mark Kane

Teilhard Knight wrote:

Mark Kane wrote:


Teilhard Knight wrote:


Hello:

I have only compiled a kernel for FreeBSD for the series 4.x. I now
installed version 5.4, and I do not have sound. I am compiling my
custom kernel essentially to get sound. In the series 4.x the driver
pcm worked fine for me. My question is whether I should stick to
the same driver or I should use another driver in the 5.4 install.
Any feedback will be appreciated.

Teilhard.



Hi. Check out:

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



It's device sound in 5.x instead of device pcm. Obviously then add
in support for your specific sound card with the documentation
provided there.

Hope that helps. :)



It helped a lot. I issued the command kldload sound in my original 
kernel, and loaded the module snd_ich. I have sound now when I click on 
test sound in the sound section of the CC and on starting a KDE session.


Problem is, I only get sound through the right hand side and I get 
nothing when trying to play a CD. Any ideas?


Teilhard.


Glad you got it working. Now for the new issues:

I have not used KDE in a long time but I do know that their aRTs daemon 
takes over sound. Are there any settings showing the left and right 
channels that you can adjust? Maybe called Balance? You might also 
make sure that the connector on the actual sound card going to your 
speakers/headphones is plugged in all the way. I know if mine is only 
halfway in then I only hear one channel.


As for CD audio not playing, have you made sure that the audio connector 
is connected from your CD drive to your sound card? It could be that, or 
the mixer levels in aRTs are muted or not raised for CD's.


-Mark

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


Re: RFC: my firewall ruleset(s)

2005-10-23 Thread Chuck Swiger

Eric F Crist wrote:
Hey all.  I'm relatively new to shell scripting and I'm looking for  
some comments on my firewall script.


Comments on either the ipfw rules themselves or on my scripting lack  of 
ability would be appreciated.


Ugh.  :-)  IPFW knows how to increment rule numbers all by itself; you can get 
rid of the rulenum1=`expr $rulenum1 + 50` stuff.


The breakdown of sh functions like setup_loopback, setup_keepstate, setup_ntp 
is fine if you want to play with shell scripts, but it scatters your IPFW rules 
into different places.  I'd rather see something that closely resembles what 
ipfw list gives you.


You could chain several ports together into a list rather than listing them all 
seperately as individual rules, IPFW will end up doing less work.


You have anti-spoofing for the lookback, lo0 interface, but not for your other 
interfaces.  You should add anti-spoofing rules, and also block strict and 
loose source routing [1]:


# Stop strict and loose source routing
add deny log all from any to any ipoptions ssrr
add deny log all from any to any ipoptions lsrr

You should give some thought to ICMP filtering.  Consider something like:

add allow icmp from any to any icmptypes 0,3,4,8,11,12

You should use the log command more when developing a ruleset, to see what 
traffic you are blocking or permitting, until you've gotten your rules and 
network finalized.


--
-Chuck

[1]: This is known to hackers as the how to go through a firewall as if it 
wasn't there IP option if you don't block these.  :-)


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


Re: OpenAFS for FreeBSD...

2005-10-23 Thread Jason C. Wells

Jack T wrote:

Forrest Aldrich wrote:

I've asked the OpenAFS people about a port to FreeBSD.

They recently gained a port to OS X, which I understand
has a similar/FreeBSD codebase.


Please look at Arla. I've been using Arla quite happily on FreeBSD 5.4,
and it provides all the AFS functionalities I need.


Arla was marked as BROKEN when I last tried to build it under 6X.  IIRC, 
it was marked as broken for 5.4 too.  Is there some special secret you 
could share with us to get an AFS client?  I'd love to hear it.


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


Re: Preloading of shared libraries

2005-10-23 Thread Chuck Swiger

Philip Lykke Carlsen wrote:
Hey.. I wondered if it was possible to load a selection of shared libraies 
into the cache at boot time.. I figure that it would speed up starting 
things.. like the KDE login manager for instance.. 

hm.. is this possible? .. and if so.. would it speed up the process of 
starting stuff at all?..


Sort of.  At one point, you could set the sticky bit on files as a hint to the 
pager to try and keep them in memory, which was intended for things like 
/bin/sh, cron, login, and maybe libc.


Whether it would help in your particular case is harder to say, how much RAM 
does your machine have, and what kind of CPU?  Some people believe that KDE 
requires excessive resources for what it does, consider fluxbox or something 
more lightweight...


--
-Chuck

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


Re: Sound driver

2005-10-23 Thread Teilhard Knight

Mark Kane wrote:

Teilhard Knight wrote:

Mark Kane wrote:


Teilhard Knight wrote:


Hello:

I have only compiled a kernel for FreeBSD for the series 4.x. I now
installed version 5.4, and I do not have sound. I am compiling my
custom kernel essentially to get sound. In the series 4.x the
driver pcm worked fine for me. My question is whether I should
stick to the same driver or I should use another driver in the 5.4
install. Any feedback will be appreciated.

Teilhard.



Hi. Check out:

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


It's device sound in 5.x instead of device pcm. Obviously then
add in support for your specific sound card with the documentation
provided there.

Hope that helps. :)



It helped a lot. I issued the command kldload sound in my original
kernel, and loaded the module snd_ich. I have sound now when I click
on test sound in the sound section of the CC and on starting a KDE
session. Problem is, I only get sound through the right hand side and I 
get

nothing when trying to play a CD. Any ideas?

Teilhard.


Glad you got it working. Now for the new issues:

I have not used KDE in a long time but I do know that their aRTs
daemon takes over sound. Are there any settings showing the left and
right channels that you can adjust? Maybe called Balance? You might
also make sure that the connector on the actual sound card going to your
speakers/headphones is plugged in all the way. I know if mine is only
halfway in then I only hear one channel.

As for CD audio not playing, have you made sure that the audio
connector is connected from your CD drive to your sound card? It could be 
that,

or the mixer levels in aRTs are muted or not raised for CD's.


As far as I can see, the only thing present in my system to make audio 
adjustments is Kmix. Very simple compared to Alsamixer in Mandriva. It does 
not have any sort of balance or individual controls for left and right 
channels, but for example, only slider for volume.


I have now compiled my kernel and included support for audio. It came out 
without it, as the generic kernel. I'd better make another post and explain 
in more detail, as it is a different issue. Thanks so much for your 
feedback.


Teilhard. 


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


Re: RFC: my firewall ruleset(s)

2005-10-23 Thread Eric F Crist

On Oct 23, 2005, at 11:12 AM, Chuck Swiger wrote:



Eric F Crist wrote:


Hey all.  I'm relatively new to shell scripting and I'm looking  
for  some comments on my firewall script.
Comments on either the ipfw rules themselves or on my scripting  
lack  of ability would be appreciated.





Ugh.  :-)  IPFW knows how to increment rule numbers all by itself;  
you can get rid of the rulenum1=`expr $rulenum1 + 50` stuff.





I do this so that I have sufficient space between rules for my own  
sanity.  By default, IPFW numbers rules that increment by 1.  I have  
a need on occasion to add or remove a rule on the fly.  Perhaps there  
is a better way?



The breakdown of sh functions like setup_loopback, setup_keepstate,  
setup_ntp is fine if you want to play with shell scripts, but it  
scatters your IPFW rules into different places.  I'd rather see  
something that closely resembles what ipfw list gives you.





The reasoning behind this is so I have a single firewall script for  
all of my servers. At some point in the very near future, there will  
be a cron job on each server the pulls the current script from a  
central source.  Depending on the rc.conf entries on that server, the  
firewall script will be executed accordingly.  This allows me to edit  
one script and have it apply to multiple systems.  I'm calling the  
functions for basic components, rather than writing the whole thing  
out each time.



You could chain several ports together into a list rather than  
listing them all seperately as individual rules, IPFW will end up  
doing less work.




Is this a 'good' way to do things?  The server in this instance has  
really nothing else to do, save serving up a couple website with low  
traffic.





You have anti-spoofing for the lookback, lo0 interface, but not for  
your other interfaces.  You should add anti-spoofing rules, and  
also block strict and loose source routing [1]:





Point taken.  I pulled those rules from the default script that ships  
with FreeBSD.  I did a brief google search on the strict and loose  
source routing.  Can you share more information?




# Stop strict and loose source routing
add deny log all from any to any ipoptions ssrr
add deny log all from any to any ipoptions lsrr




You should give some thought to ICMP filtering.  Consider something  
like:






add allow icmp from any to any icmptypes 0,3,4,8,11,12




This was simply forgotten.  Thanks!


You should use the log command more when developing a ruleset, to  
see what traffic you are blocking or permitting, until you've  
gotten your rules and network finalized.





Is there a way to direct different rules to different facilities or  
log files?  This is the primary reason I have not enabled logging more.




--
-Chuck

[1]: This is known to hackers as the how to go through a firewall  
as if it wasn't there IP option if you don't block these.  :-)





Thanks for the great input!  I'll work further to develop my script.   
Part of my reason for getting so involved with the shell scripting on  
this ruleset is so that I have an actual project with a purpose in  
front of me to develop my scripting abilities.



___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson


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


Re: Sound driver

2005-10-23 Thread Teilhard Knight

Mark Kane wrote:

Teilhard Knight wrote:

Hello:

I have only compiled a kernel for FreeBSD for the series 4.x. I now
installed version 5.4, and I do not have sound. I am compiling my
custom kernel essentially to get sound. In the series 4.x the driver
pcm worked fine for me. My question is whether I should stick to
the same driver or I should use another driver in the 5.4 install.
Any feedback will be appreciated.

Teilhard.


Hi. Check out:

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

It's device sound in 5.x instead of device pcm. Obviously then add
in support for your specific sound card with the documentation
provided there.

Hope that helps.


It helped a lot. I issued the command kldload sound in my original kernel,
and loaded the module snd_ich. I have sound now when I click on test sound
in the sound section of the CC and on starting a KDE session.

Problem is, I only get sound through the right hand side and I get nothing
when trying to play a CD. Any ideas?

Teilhard 


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


Re: How do I name my network interface?

2005-10-23 Thread Chris
Andreas Davour wrote:
 
 Hi!
 
 I have realized that my new motherboard has a built-in network
 interface, and I'd like to use it as well as the PCI based one I have.
 
 But, what do I call it when I plumb it with ifconfig?
 
 The PCI card I have is identified during boot as rl0, and the built-in
 as rlphy0: RealTek internal media interface on miibus0.
 
 Using ifconfig rlphy0 plumb does not work. It says:
 ifconfig: SIOCIFCREATE: Invalid argument
 
 and that's it.
 
 So, what do I call it? I tried rl1 as well, no cookie.
 
 /andreas
 

Do this:  dmesg | more

Look for instances of all nics.
If its onboard - it may be called fxp0

-- 
Best regards,
Chris

A shy, introverted child will choose a crowded public
area to loudly demonstrate new acquired vocabulary.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: How do I name my network interface?

2005-10-23 Thread Eric F Crist

On Oct 23, 2005, at 11:30 AM, Andreas Davour wrote:



Hi!

I have realized that my new motherboard has a built-in network  
interface, and I'd like to use it as well as the PCI based one I have.


But, what do I call it when I plumb it with ifconfig?

The PCI card I have is identified during boot as rl0, and the built- 
in as rlphy0: RealTek internal media interface on miibus0.


Using ifconfig rlphy0 plumb does not work. It says:
ifconfig: SIOCIFCREATE: Invalid argument

and that's it.

So, what do I call it? I tried rl1 as well, no cookie.



If you type 'ifconfig -a' at the command line, it should list all  
network interfaces...


___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson

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


writing to syslog from a shell script?

2005-10-23 Thread Eric F Crist
How could I write an entry to syslog from a shell script.  For  
example, I want to write an entry stating that a command worked or  
didn't work, along with an error message.


TIA

___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson

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


Re: How do I name my network interface?

2005-10-23 Thread Erik Trulsson
On Sun, Oct 23, 2005 at 06:30:35PM +0200, Andreas Davour wrote:
 
 Hi!
 
 I have realized that my new motherboard has a built-in network 
 interface, and I'd like to use it as well as the PCI based one I have.
 
 But, what do I call it when I plumb it with ifconfig?

That would depend on what chipset, etc. the built-in interface uses.


 
 The PCI card I have is identified during boot as rl0, and the built-in 
 as rlphy0: RealTek internal media interface on miibus0.

rlphy0 is just part of the rl0 interface, and not a separate interface by
itself.  Reading the miibus(4) manpage might be useful.

 
 Using ifconfig rlphy0 plumb does not work. It says:
 ifconfig: SIOCIFCREATE: Invalid argument
 
 and that's it.
 
 So, what do I call it? I tried rl1 as well, no cookie.
 
 /andreas

If it does not show up in the dmesg(8) output it might not be supported, or
the correct driver might not be included in the kernel.

What does 'pciconf -lv' say?


-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: writing to syslog from a shell script?

2005-10-23 Thread David Kirchner
On 10/23/05, Eric F Crist [EMAIL PROTECTED] wrote:
 How could I write an entry to syslog from a shell script.  For
 example, I want to write an entry stating that a command worked or
 didn't work, along with an error message.

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


Re: How do I name my network interface?

2005-10-23 Thread Roland Smith
On Sun, Oct 23, 2005 at 06:30:35PM +0200, Andreas Davour wrote:
 
 Hi!
 
 I have realized that my new motherboard has a built-in network 
 interface, and I'd like to use it as well as the PCI based one I have.
 
 But, what do I call it when I plumb it with ifconfig?
 
 The PCI card I have is identified during boot as rl0, and the built-in 
 as rlphy0: RealTek internal media interface on miibus0.

This is not another network card, but another interface to the rl0 card.

Using dmesg |grep 'Ethernet address'|sort|uniq gives a list of network
interfaces.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpVR3sZHXEP2.pgp
Description: PGP signature


I compiled mykernel seeking for sound support

2005-10-23 Thread Teilhard Knight

Hello:

This is a second post in which I seek for advice about sound. I tried to
solve my problem with the kernel after install, by using kldload
snd_driver. The result was that I had sound only in the right channel, and
there was no output from audio CD's.

I now compiled my own kernel with sound support and I have no sound
regardless. The two lines I added to have sound in the configuration file
are:

device sound
device snd_ich

snd_ich is the driver loaded by snd_driver. Did I make anything wrong?
Surely I did, and any help you can give me will be highly appreciated. I 
know my card, speakers and CD wiring are OK, as this machine has several 
OS's and everything works perfectly in them.


Teilhard 


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


Re: RFC: my firewall ruleset(s)

2005-10-23 Thread Chuck Swiger

Eric F Crist wrote:
[ ... ]
Ugh.  :-)  IPFW knows how to increment rule numbers all by itself;  
you can get rid of the rulenum1=`expr $rulenum1 + 50` stuff.


I do this so that I have sufficient space between rules for my own  
sanity.  By default, IPFW numbers rules that increment by 1.  I have  a 
need on occasion to add or remove a rule on the fly.  Perhaps there  is 
a better way?


The default increment should be 100, and it is controlled by:

Automatic rule numbers are assigned by incrementing the last non-
default rule number by the value of the sysctl variable
net.inet.ip.fw.autoinc_step which defaults to 100.  If this is
not possible (e.g. because we would go beyond the maximum allowed
rule number), the number of the last non-default value is used
instead.

The breakdown of sh functions like setup_loopback, setup_keepstate,  
setup_ntp is fine if you want to play with shell scripts, but it  
scatters your IPFW rules into different places.  I'd rather see  
something that closely resembles what ipfw list gives you.


The reasoning behind this is so I have a single firewall script for  all 
of my servers. At some point in the very near future, there will  be a 
cron job on each server the pulls the current script from a  central 
source.  Depending on the rc.conf entries on that server, the  firewall 
script will be executed accordingly.  This allows me to edit  one script 
and have it apply to multiple systems.  I'm calling the  functions for 
basic components, rather than writing the whole thing  out each time.


Large-scale firewall deployments (think Cisco Enterprise Manager, or Edition, 
or whatever it's called) use such techniques to manage hundreds or thousands of 
firewalls, but they have several weaknesses, in particular the central 
distribution server becomes a target, which, if compromised, can then be used 
to compromise all of the firewall boxes pulling down rulesets.


One of the whole reasons for setting up multiple firewalls and multiple 
rulesets is to obtain defense in depth.  Using a central config mechanism 
contradicts that design intention.


Therefore, I am convinced that a firewall ought to be self-contained in terms 
of enforcing a security policy, and should have as little dependence on any 
other host as practical, none at all, if possible.  Other opinions are 
possible, but Microsoft's domain-aware firewall and proxy box is a good example 
of what this can lead to.


You could chain several ports together into a list rather than  
listing them all seperately as individual rules, IPFW will end up  
doing less work.


Is this a 'good' way to do things?  The server in this instance has  
really nothing else to do, save serving up a couple website with low  
traffic.


It's more efficient from the standpoint of IPFW workload, but if the traffic 
volume is low, go with whatever design seems the easiest to work with and 
understand.  I find something like this:


# block all NetBIOS, domain-server, UPnP traffic
add deny log tcp from any to any 135-139,445,5000

...to be more clear than 4 seperate lines, YMMV.

You have anti-spoofing for the lookback, lo0 interface, but not for  
your other interfaces.  You should add anti-spoofing rules, and  also 
block strict and loose source routing [1]:


Point taken.  I pulled those rules from the default script that ships  
with FreeBSD.  I did a brief google search on the strict and loose  
source routing.  Can you share more information?



# Stop strict and loose source routing
add deny log all from any to any ipoptions ssrr
add deny log all from any to any ipoptions lsrr


Sure.  In the early days of TCP/IP networking, people didn't always have 
conventions like default routes and routers which could figure out where to 
send traffic for any destination, so there is a mechanism for routing traffic 
directly, hop by hop, which supercedes the normal behavior of routers and many 
firewalls.  It conceptually resembles the bang-path notation used for UUCP 
email before SMTP email using domains via DNS was available.


It can be used to pretend that traffic from outside your network came from an 
inside IP, or from the firewall itself, which often lets that traffic go 
through.  In practice nowadays, the LSR and SSR options are pretty much *only* 
used for malicious traffic, except once in a while by people writing a TCP/IP 
stack who are testing the option handling code.


See page 15  17-20 of RFC-791, http://www.rfc-editor.org/rfc/rfc791.txt:

The following internet options are defined:

  CLASS NUMBER LENGTH DESCRIPTION
  - -- -- ---
0 0  -End of Option list.  This option occupies only
  1 octet; it has no length octet.
0 1  -No Operation.  This option occupies only 1
  octet; it has no length octet.
0 2 11Security.  Used to carry Security,
  Compartmentation, User Group 

Re: I compiled mykernel seeking for sound support

2005-10-23 Thread Chris
Teilhard Knight wrote:
 Hello:
 
 This is a second post in which I seek for advice about sound. I tried to
 solve my problem with the kernel after install, by using kldload
 snd_driver. The result was that I had sound only in the right channel, and
 there was no output from audio CD's.
 
 I now compiled my own kernel with sound support and I have no sound
 regardless. The two lines I added to have sound in the configuration file
 are:
 
 device sound
 device snd_ich
 
 snd_ich is the driver loaded by snd_driver. Did I make anything wrong?
 Surely I did, and any help you can give me will be highly appreciated. I
 know my card, speakers and CD wiring are OK, as this machine has several
 OS's and everything works perfectly in them.
 
 Teilhard

I would go back to the kldload options.
With sound_load=YES and snd_ich_load=YES in /boot/loader.conf and
you were only able to get half the sound - ensure you are using the
proper driver.

When in doubt, load em all:
sound_load=YES
snd_driver_load=YES

This will ensure that you get them all and perhaps it will work after
the fact. Then, play around untill you get the right driver.

You can find them listed in /boot/defaults/loader.conf near the bottom
of the file.

HTH

-- 
Best regards,
Chris

Blessed are those who go around in circles,
for they shall be known as wheels.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: su command PPP

2005-10-23 Thread Chris
Mohsen Pahlevanzadeh wrote:
 Dears,
 I have 2 question :
 1.for dialing PPP ,Am i do compile kernel?

I don't know - I have not done PPP in years.

 2.When i run gdm,i can't use su command.When i use this command,i
 recieve following text :
 su : sorrry!

Add yourself to the group wheel

 Please guide me...
 Yours,Mohsen.
 



-- 
Best regards,
Chris

If a series of events can go wrong, it will do so in
the worst possible sequence.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


promail error message

2005-10-23 Thread stan
I'm trying to implement a new users .procmailrc file, and I'm getting this:

Suspicious rcfile /home/sff/.procmailrc

in /var/mail/log

Here's the .prcmailrc file


SHELL=/bin/sh
PATH=/usr/bin:/bin:/usr/local/bin:.

DEFAULT=/var/Mail/sff

MAILDIR=$HOME/Mail # You'd better make sure it exists
LOCKFILE=$HOME/.lockmail
LOGFILE=$HOME/.procmail/procmail.log


# Create a backup cache of 1000 most recent messages in case of mistakes
:0 c
${MAILDIR}/.backup

  :0 ic
| cd ${MAILDIR}/.backup  rm -f dummy `ls -t msg.* | sed -e 1,1000d`


# Regenerate From lines to make sure they are valid
:0 fhw
| formail -I From  -a From 

# Regenerate From lines to make sure they are valid
:0 fhw
| formail -I From  -a From 

TO=`formail -xTo:`

# is moved to viruses.
:0:
* ^X-Virus-Status: Yes
| formail -I To: is_virus, $TO

# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
| formail -I To: certainly_spam, $TO

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to probably-spam.
:0:
* ^X-Spam-Status: Yes
| formail -I To: probably_spam, $TO


# If you leav this in messages already in teh DCC list of spam
@ will simply be /dev/null'd
# If you'd rather keep this, just change the action line
# to be like one of the formail commands above.
:0 fW
| /usr/local/bin/dccproc -ERw whiteclnt -ccmn,10
:0 e
{
   EXITCODE=67
   :0
   /dev/null
 }

 And here are the permissions:

-rw-r-  1 sff  staff  1417 Oct 23 12:55 .procmailrc

What am I doing wrong?


-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Hosting a mirror?

2005-10-23 Thread Chris
nocturnal wrote:
 Hi
 
 I really tried finding information for people who can host mirrors but
 could not find any. I'd like to know everything i need to know about
 hosting a mirror for the FreeBSD project and how i apply for it.

Simply typing in mirrors in the search box near the top of the FreeBSD
site gives you many tags.

One of which is:
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/hubs/mirror-official.html

-- 
Best regards,
Chris

Only a mediocre person is always at their best.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: su command PPP

2005-10-23 Thread Chris
Mohsen Pahlevanzadeh wrote:
 Dears,
 I have 2 question :
 1.for dialing PPP ,Am i do compile kernel?
 2.When i run gdm,i can't use su command.When i use this command,i
 recieve following text :
 su : sorrry!
 Please guide me...
 Yours,Mohsen.


Oh - and btw, fix your time and date.


-- 
Best regards,
Chris

Only a mediocre person is always at their best.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: promail error message

2005-10-23 Thread Roland Smith
On Sun, Oct 23, 2005 at 01:13:52PM -0400, stan wrote:
 I'm trying to implement a new users .procmailrc file, and I'm getting this:
 
 Suspicious rcfile /home/sff/.procmailrc
 
 in /var/mail/log
 
 Here's the .prcmailrc file

snip
 @ will simply be /dev/null'd

'@' should be '#', I think.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpS51wzmTqco.pgp
Description: PGP signature


Re: RFC: my firewall ruleset(s)

2005-10-23 Thread Giorgos Keramidas
On 2005-10-23 12:12, Chuck Swiger [EMAIL PROTECTED] wrote:
 You have anti-spoofing for the lookback, lo0 interface, but not for
 your other interfaces.  You should add anti-spoofing rules, and also
 block strict and loose source routing [1]:

 # Stop strict and loose source routing
 add deny log all from any to any ipoptions ssrr
 add deny log all from any to any ipoptions lsrr

Agreed.  Please note that this is ``an extra layer of protection''
though.  The relevant bits are already disabled through sysctl
settings, by default, and have to be explicitly enabled:

% flame:/home/keramida$ sysctl -a | fgrep accept_source
% net.inet.ip.accept_sourceroute: 0
% flame:/home/keramida$ sysctl -a | fgrep redirect
% net.inet.ip.redirect: 1
% net.inet.icmp.log_redirect: 1
% net.inet.icmp.drop_redirect: 1
% net.inet6.ip6.redirect: 1
% flame:/home/keramida$

I'm sure Chuck already knows this.  Just adding a minor note, to make
sure you Eric don't get the wrong impression that a firewall is an
absolute *requirement* to block these.

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


Re: writing to syslog from a shell script?

2005-10-23 Thread Eric F Crist

On Oct 23, 2005, at 11:42 AM, David Kirchner wrote:


On 10/23/05, Eric F Crist [EMAIL PROTECTED] wrote:


How could I write an entry to syslog from a shell script.  For
example, I want to write an entry stating that a command worked or
didn't work, along with an error message.



Check out logger(1)


Thanks!  That does exactly what I need!

___
Eric F Crist  I am so smart, S.M.R.T!
Secure Computing Networks  -Homer J Simpson

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


Crash When make index - Repair Needed?

2005-10-23 Thread Richard Collyer

Hello,

My box (5.4 Stable) has taken to crashing when I do a make index (in 
/usr/ports) after a cvsup ports upgrade. I think the problem may be down 
to overheating as it only does this when the server is put under 
considerable stress (I take it that make index is stressful on the PC) 
and has done it before when I was doing some data manipulation which 
stressed it for an hour or so. After that I added some cooling which 
solved the problem...until now.



My question is do I need to repair the index if the box crashes while 
making it? If so how do I do it. I read on google that 5.x doesnt need 
to make index in the same way as 4.x did so I am safe by not running the 
command?



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


SNMP problem in FreeBSD-4.10 has been solved

2005-10-23 Thread Edwin D. Vinas
If you are having some problems with net-snmp in FreeBSD-4.10:
- Don't use latest net-snmp from sourceforge.
- Use the /usr/ports/net-mgmt/net-snmp4/ which is the original UCD-SNMP
package.
- Use also the mrtg package which comes with ports.
 Now, I can already monitor my DSL link!

--
--
Edwin D. Viñas
http://www.geocities.com/edwin_vinas/
IN THE WORLD OF SCIENCE,
NOTHING IS IMPOSSIBLE.
--
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ntpd problems

2005-10-23 Thread Shelby Westman
Also... another thought. You might try disabling IPv6 unless you need
it. (remove 'options INET6' from kernconf)

Yes, after I did that and recompiled the kernel, it got rid of the error
message.

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


Re: Making ports in alternative areas

2005-10-23 Thread ross
On Fri, 21 Oct 2005 16:07:12 -0700, Kris Kennaway [EMAIL PROTECTED]  
wrote:



On Fri, Oct 21, 2005 at 06:42:36PM -0400, Jerry McAllister wrote:


 I'm running low on disc space on my /usr partition and I would like to
 compile a program from the ports that is rather large. I have enough  
space
 once it's compiled, it's just the work that I don't have enough space  
for.
 how can I get the port to do it's work in a different area on a  
different

 partition?

Do you have enough space on another partition to move the whole
ports tree over there?   That would be nicest.   But, the principle
is the same even if you only move that directory.

Make a directory in the larger partition.   If it is for all of ports
I might suggest calling it usr.ports
Tar up the stuff you want to move.
Unroll it in the new roomier space.
Create a symlink to the new space.
You can tar to a pipe and untar from that pipe, but if there is room
I prefer to go to and from a file.   It improves my confidence.


[...]

This is way too much work.  We have environment variable to solve the
OP's problem.  See make.conf(5) and ports(7).

Kris


Thanks for the solution. There is still the problem being that I, being  
the beginner I am, don't know how to change the enviroment variable for  
WRKDIRPREFIX. Think I could get a little more guidence?

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


Re: promail error message

2005-10-23 Thread stan
On Sun, Oct 23, 2005 at 07:22:19PM +0200, Roland Smith wrote:
 On Sun, Oct 23, 2005 at 01:13:52PM -0400, stan wrote:
  I'm trying to implement a new users .procmailrc file, and I'm getting this:
  
  Suspicious rcfile /home/sff/.procmailrc
  
  in /var/mail/log
  
  Here's the .prcmailrc file
 
 snip
  @ will simply be /dev/null'd
 
 '@' should be '#', I think.
 

Thansk, that does appear to have fixed it.

Good catch!

Interesting error message though.


-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OpenAFS for FreeBSD...

2005-10-23 Thread Jack T
On 10/23/05, Jason C. Wells [EMAIL PROTECTED] wrote:
 Arla was marked as BROKEN when I last tried to build it under 6X.  IIRC,
 it was marked as broken for 5.4 too.  Is there some special secret you
 could share with us to get an AFS client?  I'd love to hear it.

It's broken only for the reason that it overwrites files from
security/heimdal. Otherwise, I believe it works just fine on FreeBSD 5.4.

So, that means (1) you should install and configure security/heimdal
until you are happy with it, and then install arla.
And (2) you can upgrade heimdal or arla using portupgrade
or any of the automatic port upgrade tools.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OpenAFS for FreeBSD...

2005-10-23 Thread Jack T
On 10/23/05, Jack T [EMAIL PROTECTED] wrote:
 On 10/23/05, Jason C. Wells [EMAIL PROTECTED] wrote:
  Arla was marked as BROKEN when I last tried to build it under 6X.  IIRC,
  it was marked as broken for 5.4 too.  Is there some special secret you
  could share with us to get an AFS client?  I'd love to hear it.

 It's broken only for the reason that it overwrites files from
 security/heimdal. Otherwise, I believe it works just fine on FreeBSD 5.4.

 So, that means (1) you should install and configure security/heimdal
 until you are happy with it, and then install arla.
 And (2) you can upgrade heimdal or arla using portupgrade
 or any of the automatic port upgrade tools.

I apologize for replying to my own message (thus cluttering the mailing list).
But I had a typo: I meant to say that you can NOT upgrade
heimdal or arla using portupgrade.

(To build it, just edit the Makefile and remove the line that
says BROKEN, then you can make install it just fine)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


procmail/formail syntax question

2005-10-23 Thread stan
I'm trying to get procmail to rewrite the TO: header. I've tried something like:

TO=`formail -xTo:`

# is moved to viruses.
:0:
* ^X-Virus-Status: Yes
| formail -I To: is_virus, $TO


# Mails with a score of 15 or higher are almost certainly spam (with 0.05%
# false positives according to rules/STATISTICS.txt). Let's put them in a
# different mbox. (This one is optional.)
:0:
* ^X-Spam-Level: \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*
| formail -I To: certainly_spam, $TO

# All mail tagged as spam (eg. with a score higher than the set threshold)
# is moved to probably-spam.
:0:
* ^X-Spam-Status: Yes
| formail -I To: probably_spam, $TO

But this does not seem to be working.

What am I doing wrong?

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


M-Audio Transit USB on FreeBSD 5.4

2005-10-23 Thread Seamus Abshere

dear FreeBSD friends,

is there any way I can use my M-Audio Transit USB soundcard on FreeBSD 5.4?

I have tried OSS, but they do not support any USB cards on FreeBSD.

thanks,

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


Re: How do I name my network interface?

2005-10-23 Thread Roland Smith
On Sun, Oct 23, 2005 at 09:36:38PM +0200, Andreas Davour wrote:
 Using dmesg |grep 'Ethernet address'|sort|uniq gives a list of network
 interfaces.
 
 It unfortunately just shows my rl0 device.

Then it seems that the other device is not supported my the FreeBSD
kernel, or it could be disabled in the BIOS.

If you could post the make and type of your motherboard, it might be
easier to tell...

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpuHrIVgaLlb.pgp
Description: PGP signature


Re: procmail/formail syntax question

2005-10-23 Thread Roland Smith
On Sun, Oct 23, 2005 at 03:09:51PM -0400, stan wrote:
 I'm trying to get procmail to rewrite the TO: header. I've tried something 
 like:
 
 TO=`formail -xTo:`

I think this command is expanded only once, and gives an empty string
because you didn't give formail any input.

 # is moved to viruses.
 :0:
 * ^X-Virus-Status: Yes
 | formail -I To: is_virus, $TO
 snip
 But this does not seem to be working.
 
 What am I doing wrong?

Why don't you put it in an appropriate mailbox directly? E.g:

:0:
* ^X-Virus-Status: Yes
/home/username/Mail/virus

:0:
* ^X-Spam-Status: Yes
/home/username/Mail/probably_spam

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpk5BDfQAFVK.pgp
Description: PGP signature


Re: extending volumes

2005-10-23 Thread Dimitar Vasilev
2005/10/23, bc [EMAIL PROTECTED]:
 On Fri, 2005-10-21 at 07:35 +0300, Dimitar Vasilev wrote:
  Hi!
  Could someone advise on how to extend an existing stripe with growfs?
  I posted a question on freebsd-questions before 3 days and never got reply.
  The message is available at
  http://marc.theaimsgroup.com/?l=freebsd-questionsm=112966827119797w=2
 

 Hello,

 I think you're attempting to do impossible.
Under Solaris and AIX it is perfectly possible - however they're another beer.
 I've recreated your scenario using 3 mfs backed disks md0, md1 and m2.
 And I'm keep getting this in my logs:

 Oct 23 22:03:54 serafim kernel: GEOM_STRIPE: Disk md0 removed from
 test2.
 Oct 23 22:03:54 serafim kernel: GEOM_STRIPE: Disk md1 removed from
 test2.
 Oct 23 22:03:54 serafim kernel: GEOM_STRIPE: Device test2 destroyed.
 Oct 23 22:03:54 serafim kernel: GEOM_STRIPE: Device test2 created
 (id=4230158283).
 Oct 23 22:03:54 serafim kernel: GEOM_STRIPE: Disk md0 attached to test2.
 Oct 23 22:03:54 serafim kernel: GEOM_STRIPE: Disk md1 attached to test2.
 Oct 23 22:03:54 serafim kernel: GEOM_STRIPE: Disk md1 removed from
 test2.
 Oct 23 22:03:54 serafim kernel: GEOM_STRIPE: Disk md1 attached to test2.


 I've joined md0 and md1 in one striped volume, created some bulk files,
 stopepd it, then created again along with md2 in group. Beside that log
 snippet nothing apears in /dev/stripe/

 Btw, I've used 5.4-RELEASE GENERIC kernel.

Ours is not very far from GENERIC - we include GENERIC and couple of
options (PF,PIM,etc). The machine is  5.4-stable/amd64
It's still a solution - we will know that is risky and will setup a
new stripe from the spare disks that we have and will run with them
for about a year.
Then will upgrade to a decent 3ware controller, a bunch of new disks
and other stuff.

Благодаря/Thanks/Hvala!
--
Димитър Василев
Dimitar Vassilev

GnuPG key ID: 0x4B8DB525
Keyserver: pgp.mit.edu
Key fingerprint: D88A 3B92 DED5 917E 341E D62F 8C51 5FC4 4B8D B525
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: How do I name my network interface?

2005-10-23 Thread Roland Smith
On Sun, Oct 23, 2005 at 10:00:55PM +0200, Andreas Davour wrote:
 Having done that I conclude it is a Realtek 8201BL chip. Wouldn't there 
 be another rl interface, then?

The re nor the rl driver seem to support the 8201BL.

 What does 'pciconf -lv' say?
 
 Quite a lot. The parts that looks relevant is this:
 [EMAIL PROTECTED]:11:0:  class=0x02 card=0x813910ec chip=0x813910ec 
 rev=0x10 
 hdr=0x00
 vendor   = 'Realtek Semiconductor'
 device   = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
 class= network
 subclass = ethernet
 
 and
 
 [EMAIL PROTECTED]:18:0:class=0x02 card=0x80ed1043 chip=0x30651106 
 rev=0x78 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT6102 Rhine II PCI Fast Ethernet Controller'
 class= network
 subclass = ethernet
 
 But none2 doesn't sound much like the name of a network device. I guess 
 it does confirm that there exists such a thing. It says nothing about 
 Realtek, like the docs, though.

The none only means it's not bound to a driver. You might try the
vr(4) driver, although the 6102 is not mentioned in vr(4).

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpd7cewIfxRy.pgp
Description: PGP signature


Re: ntpd problems

2005-10-23 Thread Shelby Westman
Regarding ntpd, Lowell wrote


  # deny-by-default policy
  restrict default ignore


 You're probably running into problems with your restrict clause, but
 I'm not sure what offhand.
 Use the -d flag to ntpd (or more than one) to get more information
 on what it thinks the problem is.


Yes, I think you are right. When I removed that clause, ntpd started
working. I did try the -d flag, but it reported back to me that ntpd was
compiled without debugging, so that -d wouldn't report anything. oh, well,
I'll restrict access other ways.

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


Re: Making ports in alternative areas

2005-10-23 Thread Chris

ross wrote:


This is way too much work.  We have environment variable to solve the
OP's problem.  See make.conf(5) and ports(7).

Kris



Thanks for the solution. There is still the problem being that I, being  
the beginner I am, don't know how to change the enviroment variable for  
WRKDIRPREFIX. Think I could get a little more guidence?


In /etc/make.conf:
WRKDIRPREFIX=/someplace/workdir

You can put it there by doing as root:

# echo WRKDIRPREFIX=/someplace/workdir  /etc/make.conf

and check it is there with

# tail /etc/make.conf

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


Re: How do I name my network interface?

2005-10-23 Thread Erik Trulsson
On Sun, Oct 23, 2005 at 10:00:55PM +0200, Andreas Davour wrote:
 On Sun, 23 Oct 2005, Erik Trulsson wrote:
 
 On Sun, Oct 23, 2005 at 06:30:35PM +0200, Andreas Davour wrote:
 
 Hi!
 
 I have realized that my new motherboard has a built-in network
 interface, and I'd like to use it as well as the PCI based one I have.
 
 But, what do I call it when I plumb it with ifconfig?
 
 That would depend on what chipset, etc. the built-in interface uses.
 
 Reasonable. Considering it is mounted to the motherboard I guess I 
 should look at the motherboard documentation.
 
 *later*
 
 Having done that I conclude it is a Realtek 8201BL chip. Wouldn't there 
 be another rl interface, then?

No, that is only the PHY part of the interface, and should should show up as
rlphy0, attached to miibus0, which in turn will be attached to actual
interface.

 
 The PCI card I have is identified during boot as rl0, and the built-in
 as rlphy0: RealTek internal media interface on miibus0.
 
 rlphy0 is just part of the rl0 interface, and not a separate interface by
 itself.  Reading the miibus(4) manpage might be useful.
 
 There is a miibus manpage? OK, I'll do that.
 
 If it does not show up in the dmesg(8) output it might not be supported, or
 the correct driver might not be included in the kernel.
 
 I can't find anything looking like a network interface in the dmesg 
 output. I guess I could always post all of it here.
 
 I don't understand how to include the driver if I don't know what I 
 need, but since it's supposed to be a Realtek controller I should be set 
 already, yes?
 
 What does 'pciconf -lv' say?
 
 Quite a lot. The parts that looks relevant is this:
 [EMAIL PROTECTED]:11:0:  class=0x02 card=0x813910ec chip=0x813910ec 
 rev=0x10 
 hdr=0x00
 vendor   = 'Realtek Semiconductor'
 device   = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
 class= network
 subclass = ethernet
 
 and
 
 [EMAIL PROTECTED]:18:0:class=0x02 card=0x80ed1043 chip=0x30651106 
 rev=0x78 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT6102 Rhine II PCI Fast Ethernet Controller'
 class= network
 subclass = ethernet
 
 But none2 doesn't sound much like the name of a network device. I guess 
 it does confirm that there exists such a thing. It says nothing about 
 Realtek, like the docs, though.

That one certainly looks like a network card, and should show up as vr0, if
you have the vr(4) driver loaded.

 
 All of the output follows:
 bash-2.05b$ pciconf -lv
 [EMAIL PROTECTED]:0:0:class=0x06 card=0x807f1043 chip=0x31891106 
 rev=0x80 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT8377 Apollo KT400/A/600 CPU to PCI Bridge'
 class= bridge
 subclass = HOST-PCI
 [EMAIL PROTECTED]:1:0: class=0x060400 card=0x0080 chip=0xb1981106 
 rev=0x00 
 hdr=0x01
 vendor   = 'VIA Technologies Inc'
 device   = 'ProSavageDDR P4X600 CPU to AGP Bridge'
 class= bridge
 subclass = PCI-PCI
 [EMAIL PROTECTED]:11:0:  class=0x02 card=0x813910ec chip=0x813910ec 
 rev=0x10 
 hdr=0x00
 vendor   = 'Realtek Semiconductor'
 device   = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
 class= network
 subclass = ethernet
 [EMAIL PROTECTED]:15:0:  class=0x010400 card=0x80ed1043 chip=0x31491106 
 rev=0x80 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = '??? SATA RAID Controller'
 class= mass storage
 subclass = RAID
 [EMAIL PROTECTED]:15:1:  class=0x01018a card=0x80ed1043 chip=0x05711106 
 rev=0x06 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT82 EIDE Controller (All VIA Chipsets)'
 class= mass storage
 subclass = ATA
 [EMAIL PROTECTED]:16:0:class=0x0c0300 card=0x80ed1043 chip=0x30381106 
 rev=0x81 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)'
 class= serial bus
 subclass = USB
 [EMAIL PROTECTED]:16:1:class=0x0c0300 card=0x80ed1043 chip=0x30381106 
 rev=0x81 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)'
 class= serial bus
 subclass = USB
 [EMAIL PROTECTED]:16:2:class=0x0c0300 card=0x80ed1043 chip=0x30381106 
 rev=0x81 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)'
 class= serial bus
 subclass = USB
 [EMAIL PROTECTED]:16:3:class=0x0c0300 card=0x80ed1043 chip=0x30381106 
 rev=0x81 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)'
 class= serial bus
 subclass = USB
 [EMAIL PROTECTED]:16:4:class=0x0c0320 card=0x80ed1043 chip=0x31041106 
 rev=0x86 hdr=0x00
 vendor   = 'VIA Technologies Inc'
 device   = 'VT6202 USB 2.0 Enhanced Host Controller'
 class= serial bus
 subclass 

Re: How do I name my network interface?

2005-10-23 Thread Erik Trulsson
On Sun, Oct 23, 2005 at 10:29:14PM +0200, Roland Smith wrote:
 On Sun, Oct 23, 2005 at 10:00:55PM +0200, Andreas Davour wrote:
  Having done that I conclude it is a Realtek 8201BL chip. Wouldn't there 
  be another rl interface, then?
 
 The re nor the rl driver seem to support the 8201BL.
 
  What does 'pciconf -lv' say?
  
  Quite a lot. The parts that looks relevant is this:
  [EMAIL PROTECTED]:11:0:  class=0x02 card=0x813910ec chip=0x813910ec 
  rev=0x10 
  hdr=0x00
  vendor   = 'Realtek Semiconductor'
  device   = 'RT8139 (A/B/C/810x/813x/C+) Fast Ethernet Adapter'
  class= network
  subclass = ethernet
  
  and
  
  [EMAIL PROTECTED]:18:0:class=0x02 card=0x80ed1043 
  chip=0x30651106 
  rev=0x78 hdr=0x00
  vendor   = 'VIA Technologies Inc'
  device   = 'VT6102 Rhine II PCI Fast Ethernet Controller'
  class= network
  subclass = ethernet
  
  But none2 doesn't sound much like the name of a network device. I guess 
  it does confirm that there exists such a thing. It says nothing about 
  Realtek, like the docs, though.
 
 The none only means it's not bound to a driver. You might try the
 vr(4) driver, although the 6102 is not mentioned in vr(4).

VT6102 might not be mentioned in the vr(4) manpage, but Rhine II is.
VT6102 is mentioned in the sourcecode for the vr(4) driver though, so it
should work fine.



-- 
Insert your favourite quote here.
Erik Trulsson
[EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sound driver

2005-10-23 Thread Kaspars Bankovskis
hi!

for audio adjustment:
mixer 100:100
(or any other value instead of 100 - from 0 to 100)
as for audio cd's - if i'm not wrong, there was something about groups - add 
yourself to the operator group. i suppose it helps.

On Sun, 23 Oct 2005 11:26:48 -0500
Teilhard Knight [EMAIL PROTECTED] wrote:

 Mark Kane wrote:
  Teilhard Knight wrote:
  Mark Kane wrote:
 
  Teilhard Knight wrote:
 
  Hello:
 
  I have only compiled a kernel for FreeBSD for the series 4.x. I now
  installed version 5.4, and I do not have sound. I am compiling my
  custom kernel essentially to get sound. In the series 4.x the
  driver pcm worked fine for me. My question is whether I should
  stick to the same driver or I should use another driver in the 5.4
  install. Any feedback will be appreciated.
 
  Teilhard.
 
 
  Hi. Check out:
 
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/sound-setup.html
 
 
  It's device sound in 5.x instead of device pcm. Obviously then
  add in support for your specific sound card with the documentation
  provided there.
 
  Hope that helps. :)
 
 
  It helped a lot. I issued the command kldload sound in my original
  kernel, and loaded the module snd_ich. I have sound now when I click
  on test sound in the sound section of the CC and on starting a KDE
  session. Problem is, I only get sound through the right hand side and I 
  get
  nothing when trying to play a CD. Any ideas?
 
  Teilhard.
 
  Glad you got it working. Now for the new issues:
 
  I have not used KDE in a long time but I do know that their aRTs
  daemon takes over sound. Are there any settings showing the left and
  right channels that you can adjust? Maybe called Balance? You might
  also make sure that the connector on the actual sound card going to your
  speakers/headphones is plugged in all the way. I know if mine is only
  halfway in then I only hear one channel.
 
  As for CD audio not playing, have you made sure that the audio
  connector is connected from your CD drive to your sound card? It could be 
  that,
  or the mixer levels in aRTs are muted or not raised for CD's.
 
 As far as I can see, the only thing present in my system to make audio 
 adjustments is Kmix. Very simple compared to Alsamixer in Mandriva. It does 
 not have any sort of balance or individual controls for left and right 
 channels, but for example, only slider for volume.
 
 I have now compiled my kernel and included support for audio. It came out 
 without it, as the generic kernel. I'd better make another post and explain 
 in more detail, as it is a different issue. Thanks so much for your 
 feedback.
 
 Teilhard. 
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]


-- 
Kaspars Bankovskis  +371-6365619[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: procmail/formail syntax question

2005-10-23 Thread stan
On Sun, Oct 23, 2005 at 10:07:17PM +0200, Roland Smith wrote:
 On Sun, Oct 23, 2005 at 03:09:51PM -0400, stan wrote:
  I'm trying to get procmail to rewrite the TO: header. I've tried something 
  like:
  
  TO=`formail -xTo:`
 
 I think this command is expanded only once, and gives an empty string
 because you didn't give formail any input.
 
  # is moved to viruses.
  :0:
  * ^X-Virus-Status: Yes
  | formail -I To: is_virus, $TO
  snip
  But this does not seem to be working.
  
  What am I doing wrong?
 
 Why don't you put it in an appropriate mailbox directly? E.g:
 
 :0:
 * ^X-Virus-Status: Yes
 /home/username/Mail/virus
 
 :0:
 * ^X-Spam-Status: Yes
 /home/username/Mail/probably_spam
 

That is _exactly_ wht _I_ do. However this is for a friend who recieves
mail on this machine, then uses IMAP to fecth it to a Windoze box where he
reads it with Outlook. He aparently does not now how to filter within
Outlook on anything but the subject.

So, I need to be able to rewrite the subject. Yes it's dumb but


-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Sound driver

2005-10-23 Thread Danny Pansters
On Sunday 23 October 2005 16:26, Teilhard Knight wrote:

 As far as I can see, the only thing present in my system to make audio
 adjustments is Kmix. Very simple compared to Alsamixer in Mandriva. It does
 not have any sort of balance or individual controls for left and right
 channels, but for example, only slider for volume.

It does. Right click on the channel, and you can split them in left and right. 
The horizontal slider at the bottom is for overall L/R balance also.

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


Re: procmail/formail syntax question

2005-10-23 Thread Giorgos Keramidas
On 2005-10-23 17:49, stan [EMAIL PROTECTED] wrote:
On Sun, Oct 23, 2005 at 10:07:17PM +0200, Roland Smith wrote:
On Sun, Oct 23, 2005 at 03:09:51PM -0400, stan wrote:
 I'm trying to get procmail to rewrite the TO: header. I've tried something 
 like:

 TO=`formail -xTo:`

 I think this command is expanded only once, and gives an empty string
 because you didn't give formail any input.

 # is moved to viruses.
 :0:
 * ^X-Virus-Status: Yes
 | formail -I To: is_virus, $TO
 snip
 But this does not seem to be working.

 What am I doing wrong?

 Why don't you put it in an appropriate mailbox directly? E.g:

 :0:
 * ^X-Virus-Status: Yes
 /home/username/Mail/virus

 :0:
 * ^X-Spam-Status: Yes
 /home/username/Mail/probably_spam

 That is _exactly_ wht _I_ do. However this is for a friend who recieves
 mail on this machine, then uses IMAP to fecth it to a Windoze box where he
 reads it with Outlook. He aparently does not now how to filter within
 Outlook on anything but the subject.

 So, I need to be able to rewrite the subject. Yes it's dumb but

``Much confusion in you I sense, young Jedi.''

If you want to rewrite the *SUBJECT* of the messages, then why are you
trying to rewrite the *RECIPIENT* header?

Having said that, I think that what you're missing is the 'f' option in
the rule that pipes mail to formail and that you don't really need
formail for something as simple:

:0 Hf
* X-Virus-Status: Yes
| sed -e 's/^[sS]ubject:[[:space:]]\+/Subject: [virus] '

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


Re: How do I name my network interface?

2005-10-23 Thread Roland Smith
On Sun, Oct 23, 2005 at 10:52:39PM +0200, Andreas Davour wrote:
 The none only means it's not bound to a driver. You might try the
 vr(4) driver, although the 6102 is not mentioned in vr(4).
 
 Ok, then none makes more sense. It read about the vr driver and it 
 worked! How did you know the vr(4) driver was for Rhine I/II/III 
 controllers? It feels like there's something I have missed...

By using this command: grep Rhine /usr/src/sys/i386/conf/GENERIC,
which returned: device  vr  # VIA Rhine, Rhine II.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt


pgpM3TrStVx17.pgp
Description: PGP signature


Re: procmail/formail syntax question

2005-10-23 Thread stan
On Mon, Oct 24, 2005 at 01:13:18AM +0300, Giorgos Keramidas wrote:
 On 2005-10-23 17:49, stan [EMAIL PROTECTED] wrote:
 On Sun, Oct 23, 2005 at 10:07:17PM +0200, Roland Smith wrote:
 On Sun, Oct 23, 2005 at 03:09:51PM -0400, stan wrote:
  I'm trying to get procmail to rewrite the TO: header. I've tried 
  something like:
 
  TO=`formail -xTo:`
 
  I think this command is expanded only once, and gives an empty string
  because you didn't give formail any input.
 
  # is moved to viruses.
  :0:
  * ^X-Virus-Status: Yes
  | formail -I To: is_virus, $TO
  snip
  But this does not seem to be working.
 
  What am I doing wrong?
 
  Why don't you put it in an appropriate mailbox directly? E.g:
 
  :0:
  * ^X-Virus-Status: Yes
  /home/username/Mail/virus
 
  :0:
  * ^X-Spam-Status: Yes
  /home/username/Mail/probably_spam
 
  That is _exactly_ wht _I_ do. However this is for a friend who recieves
  mail on this machine, then uses IMAP to fecth it to a Windoze box where he
  reads it with Outlook. He aparently does not now how to filter within
  Outlook on anything but the subject.
 
  So, I need to be able to rewrite the subject. Yes it's dumb but
 
   ``Much confusion in you I sense, young Jedi.''
 
 If you want to rewrite the *SUBJECT* of the messages, then why are you
 trying to rewrite the *RECIPIENT* header?
 
 Having said that, I think that what you're missing is the 'f' option in
 the rule that pipes mail to formail and that you don't really need
 formail for something as simple:
 
   :0 Hf
   * X-Virus-Status: Yes
   | sed -e 's/^[sS]ubject:[[:space:]]\+/Subject: [virus] '
 
Yes, Oh freat master, I sense a great confusion :-)

It's the To: header he wants rewriten.

I'll try your magic spell with To:

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Editor for C C++ language

2005-10-23 Thread Peter Clutton
On 10/23/05, Johnny Billquist [EMAIL PROTECTED] wrote:
 emacs can do anything. Put it might not be graphical enough for your taste
 if you come from Windows...

I agree that Emacs rocks. I come from a Windows background and
appreciated the control, and just plain coolness of Emacs. Took a
little getting used to, but a fine book by O'Rielly, and alot of
practice helped ease the transition. A useful group of indenting
styles for C and C++ makes it easy to find the appropriate one, or
make your own.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procmail/formail syntax question

2005-10-23 Thread Giorgos Keramidas
Please do *not* remove the mailing list from the Cc: header, unless
there is a very good reason (i.e. confidential information in the
message text).

On 2005-10-23 19:11, stan [EMAIL PROTECTED] wrote:
On Mon, Oct 24, 2005 at 01:13:18AM +0300, Giorgos Keramidas wrote:
On 2005-10-23 17:49, stan [EMAIL PROTECTED] wrote:
On Sun, Oct 23, 2005 at 10:07:17PM +0200, Roland Smith wrote:
On Sun, Oct 23, 2005 at 03:09:51PM -0400, stan wrote:
 I'm trying to get procmail to rewrite the TO: header. I've tried 
 something like:

 TO=`formail -xTo:`

  :0 Hf
  * X-Virus-Status: Yes
  | sed -e 's/^[sS]ubject:[[:space:]]\+/Subject: [virus] '

 Mmm, we are close here I put in:

 # test
 :0 Hf
 | sed -e 's/^[tT]o:[[:space:]]\+/To: [STAN] '

 (Unconditional to test the action).

That's plainly wrong.  The To: header will contain broken crap instead
of a recipient address.  Just *DON'T* do that.  Try to modify the
Subject: instead.  I'm positively sure than even the crapware from a
well-known Redmond-based company can filter based on the subject of
individual posts.

 But I got this error in the procmail logfile:

 sed: 1: s/^[tT]o:[[:space:]]\+/ ...: unescaped newline inside substitute 
 pattern

It may be that procmail does weird things with the regexp string or that
procmail doesn't accept extended regexps (I think I remember finding out
about this one a while ago).  Let's see:

% flame:/home/keramida$ cd /tmp/stan/
% flame:/tmp/stan$ ls -l
% total 6
% -rw---  1 keramida  wheel  - 4109 Oct 24 02:13 mbox
% flame:/tmp/stan$ cat  procmailrc
% :0 Hf
% | sed -e 's/^[tT]o:[[:space:]]\+/To: [STAN] '
% flame:/tmp/stan$ formail -s procmail /tmp/stan/procmailrc  mbox | grep -i to:
% sed: 1: s/^[tT]o:[[:space:]]\+/ ...: unescaped newline inside substitute 
pattern
% flame:/tmp/stan$

When I avoid using the \+ trick, it works fine:

% flame:/tmp/stan$ cat  procmailrc
% :0 Hf
% | sed -e 's/^[tT][oO]:[[:space:]][[:space:]]*\([^[:space:]]\)/To: [STAN] \1/'
%
% :0
% /tmp/stan/newbox
% flame:/tmp/stan$ formail -s procmail /tmp/stan/procmailrc  mbox
% flame:/tmp/stan$ ls -l
% total 14
% -rw---  1 keramida  wheel  - 4109 Oct 24 02:13 mbox
% -rw---  1 keramida  wheel  - 4116 Oct 24 02:20 newbox
% -rw-rw-r--  1 keramida  wheel  -  105 Oct 24 02:19 procmailrc
% flame:/tmp/stan$ diff -u mbox newbox
% --- mboxMon Oct 24 02:13:03 2005
% +++ newbox  Mon Oct 24 02:20:05 2005
% @@ -36,7 +36,7 @@
% for [EMAIL PROTECTED]; Sun, 23 Oct 2005 19:11:03 -0400
%  Date: Sun, 23 Oct 2005 19:11:03 -0400
%  From: stan [EMAIL PROTECTED]
% -To: Giorgos Keramidas [EMAIL PROTECTED]
% +To: [STAN] Giorgos Keramidas [EMAIL PROTECTED]
%  Subject: Re: procmail/formail syntax question
%  Message-ID: [EMAIL PROTECTED]
%  References: [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] 
[EMAIL PROTECTED]

So it *does* work, using plain regexps and not extended regexps and it
changes the To: header as expected (even though that's wrong, as I said
above).

- Giorgos

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


Re: procmail/formail syntax question

2005-10-23 Thread Giorgos Keramidas
On 2005-10-23 18:56, stan [EMAIL PROTECTED] wrote:
On Mon, Oct 24, 2005 at 01:13:18AM +0300, Giorgos Keramidas wrote:
On 2005-10-23 17:49, stan [EMAIL PROTECTED] wrote:
On Sun, Oct 23, 2005 at 10:07:17PM +0200, Roland Smith wrote:
On Sun, Oct 23, 2005 at 03:09:51PM -0400, stan wrote:
 I'm trying to get procmail to rewrite the TO: header. I've tried 
 something like:

 TO=`formail -xTo:`

 [...]

 So, I need to be able to rewrite the subject. Yes it's dumb but
 
  ``Much confusion in you I sense, young Jedi.''
 
 If you want to rewrite the *SUBJECT* of the messages, then why are you
 trying to rewrite the *RECIPIENT* header?
 
 Having said that, I think that what you're missing is the 'f' option in
 the rule that pipes mail to formail and that you don't really need
 formail for something as simple:
 
  :0 Hf
  * X-Virus-Status: Yes
  | sed -e 's/^[sS]ubject:[[:space:]]\+/Subject: [virus] '

 Yes, Oh freat master, I sense a great confusion :-) 
 It's the To: header he wants rewriten.

You can always hit the Windows user hard on the head with a cluebat.
All the mail reading software for Windows that I've recently had to work
with supports filtering by the _SUBJETC_ of the messages too :-)

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


Re: procmail/formail syntax question

2005-10-23 Thread stan
On Mon, Oct 24, 2005 at 02:25:30AM +0300, Giorgos Keramidas wrote:
 Please do *not* remove the mailing list from the Cc: header, unless
 there is a very good reason (i.e. confidential information in the
 message text).
 

Sorry, I hit r instead of l in mutt.

My apoligies.

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: procmail/formail syntax question

2005-10-23 Thread Giorgos Keramidas
On 2005-10-23 19:53, stan [EMAIL PROTECTED] wrote:
On Mon, Oct 24, 2005 at 02:25:30AM +0300, Giorgos Keramidas wrote:
 Please do *not* remove the mailing list from the Cc: header, unless
 there is a very good reason (i.e. confidential information in the
 message text).

 Sorry, I hit r instead of l in mutt.
 My apoligies.

That's ok.  I usually hit 'g' (group-reply), and it's not too much
trouble to Cc: the list again.

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


Re: procmail/formail syntax question

2005-10-23 Thread stan
On Mon, Oct 24, 2005 at 04:28:49AM +0300, Giorgos Keramidas wrote:
 On 2005-10-23 19:53, stan [EMAIL PROTECTED] wrote:
 On Mon, Oct 24, 2005 at 02:25:30AM +0300, Giorgos Keramidas wrote:
  Please do *not* remove the mailing list from the Cc: header, unless
  there is a very good reason (i.e. confidential information in the
  message text).
 
  Sorry, I hit r instead of l in mutt.
  My apoligies.
 
 That's ok.  I usually hit 'g' (group-reply), and it's not too much
 trouble to Cc: the list again.

hits g

Oh, and I learned another mutt command!

Another secret mutt user surfaces :-)

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Crash When make index - Repair Needed?

2005-10-23 Thread Kevin Kinsey

Richard Collyer wrote:


Hello,

My box (5.4 Stable) has taken to crashing when I do a make
index (in /usr/ports) after a cvsup ports upgrade. I think the
problem may be down to overheating as it only does this when
the server is put under considerable stress (I take it that
make index is stressful on the PC) and has done it before
when I was doing some data manipulation which stressed
it for an hour or so. After that I added some cooling which
solved the problem...until now.


My question is do I need to repair the index if the box crashes
while making it? If so how do I do it. I read on google that 5.x
doesnt need to make index in the same way as 4.x did so I am
safe by not running the command?


Cheers
Richard




Sounds like a case for make fetchindex, in which your box
will download INDEX-5 from a freebsd.org server instead of
building it from scratch.

HTH,

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


default routing question ZIPB ADSL PPPoA

2005-10-23 Thread Ahnjoan Amous
The short : I believe the problem I am having is due to routing. A DHCP
server sends me IP A.B.C.D with a default route of A.B.C.D. dhclient isn't
handling this well and I don't know how to fix it. Windows as well as Linux
DHCP clients do not have a problem with this and I am at my wits end trying
to figure out what combination of route commands will fix my issue.

The long : I have a CellPipe ADSL router/bridge from Lucent. This device is
provided by our ISP. I am exploring the ZIPB functionality of the device to
allow my FreeBSD host to own the public IP. The basics of the configuration
for those unfamiliar is as follows. PPPoA is established by the device and
the the (public) IP acquired through the previous process is delivered to a
host behind that CellPipe via DHCP. After DHCP the device acts as a
bridge, allowing the internal device to use the public IP as its own. I'm
sure this description is vague but I don't know any other way to explain.

Info : After dhclient acquires its info the ethernet interface looks like
this
ifconfig ethernet interface – inet A.B.C.D netmask
255.255.255.255http://255.255.255.255/

When I connect a windows or Linux host they seem to treat the interface as
the default route and work as expected. With FreeBSD I have tried removing
all routes for the device after assignment, and then adding default route
based on -interface flag for route command. I have also tried opening up the
netmask on the ethernet interface and adding a default route destined for
what I know the PPPoA connections end point is.

Nothing I have tried seems to work. I don't consider myself an expert by any
means but this is clearly beyond my knowledge.

I'm happy to provide any information you need it you have an idea.

Thanks

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

an Iranian forum power of BSD

2005-10-23 Thread Mohsen Pahlevanzadeh
Dears,I'm discussing on power of BSD family.I told you bind(),accept()  
socket() is own of BSD.But they saying me GNU write it.write or Rewrite?

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


Re: Editor for C C++ language

2005-10-23 Thread Mohsen Pahlevanzadeh

vittorio wrote:

Working usually under kde I'm looking for something similar to the llc-win32 
program under ms-windows - that is a development environment where you can 
edit your c++ program, compile it, debug it step by step, and finally run it 
in a suitable window.
I tried the nice editor kate which allows to compile the file only. No 
debugging, no running.

Is  there anything of the kind of llc-win32?
Ciao
Vittorio
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
 


May be yoo need to an IDE insted of editor.
You can use kdevelop package.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: an Iranian forum power of BSD

2005-10-23 Thread stheg olloydson
it was said:

 Dears,I'm discussing on power of BSD family.I told you
bind(),accept()  
socket() is own of BSD.But they saying me GNU write it.write or
Rewrite?
Yours,Mohsen

You do not specify which bind(), accept(), and socket() you are
talking about, so I will assume you mean the system calls. They
first appeared in 4.2BSD, which was released in August 1983.
(This is NOT the same thing as FreeBSD 4.2.) This was the first
unix to have TCP/IP built in. The following month, September
1983, Richard Stallman started the GNU project. 
By the way, FreeBSD 1.0 was released in December 1993. Linux 1.0
was released in March 1994; but the first version of Linux,
0.01, was released in August 1991.

HTH,

stheg




__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
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]


newbie

2005-10-23 Thread Eyad Salah
I'm kinda new to Linux, How can I start FreeBSD GUI (Like windows)?

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