Re: devel/boost -- where is tools/build/v2?

2007-12-16 Thread Simon Barner
Hello,

   1. I didn't set NOPORTDOCS in /etc/make.conf, yet there's nothing there
  besides some html files.
 
   2. /usr/ports/devel/boost-python/work/boost_1_34_1/tools/build/v2/tools
  for example contains plenty of .jam files that are needed by bjam to
  run. Those are *not* copied over. A few html files are put in doc/,
  but not the real stuff (which belongs elsewhere, see 3.).

You are right, the bjam scripts are currently not installed. I will
prepare a patch and send it to you for testing.

 
   3. Those files are NOT doc files: they are needed by bjam.
  Their right place should be something like, say,
  /usr/local/lib/boost/tools/...

-- 
Best regards / Viele Grüße, [EMAIL PROTECTED]
 Simon Barner[EMAIL PROTECTED]


pgpqI7AX52gTl.pgp
Description: PGP signature


Re: enable fetchmail system-wide mode

2007-06-02 Thread Simon Barner
Hello Gerard,

 I had to slightly modify it to work the way I wanted on my system. I
 would suggest that you do that 'AFTER' you have gotten it to relatively
 the way you want it to.

Are these changes useful for other users, too? If so, please send me
a diff, so I can modify the port.

-- 
Best regards / Viele Grüße, [EMAIL PROTECTED]
 Simon Barner[EMAIL PROTECTED]


pgpwxDUtaN1mw.pgp
Description: PGP signature


Re: enable fetchmail system-wide mode

2007-05-31 Thread Simon Barner
Hello Bob,

 I want to run fetchmail enabled for system wide mode.
 The command line cmd fetchmail -q issued from user root gets meaningless
 error msg.

The error message may be meaningless to you, but without it cannot help
you here.

 Reviewing /usr/local/etc/rc.d/fetchmail has comments talking about system
 wide mode running under user fetchmail.
 How does the system admin control fetchmail when user fetchmail needs
 password to logon and no where is password given during install.

In daemon mode, the password is supposed to be stored in the config file.
Fetchmail also supports more advanced authentication mechanisms like
Kerberos, but I do not have any experience with it, and without support from
the mail server it seems useless.
 
 Also /usr/local/etc/fetchmailrc which is suppose to be the config file is
 empty. Even fetchmailrc.sample is empty.

Fetchmail supports literally dozends of configurations. IMO the port must
try and duplicate fetchmail's documentation.

You can use the fetchmailconf program to create and manage fetchmail
configurations (must not build WITHOUT_X11 then).

 
 The port pkg-message file is absent so there is no information describing
 how to configure fetchmail in system-wide mode or individual user mode.
 These are unique run modes to freebsd and are not covered in the fetchmail
 manual. The port pkg-message file should be created with instructions about
 how to configure it.

Users are supposed to read the 'fetchmail' rc script (this convention is
also used by other ports). You are right in that a short pkg-message that
contains a pointer to that file is usefull for novice fetchmail users on
FreeBSD. 

Did you have a look at the /usr/local/etc/fetchmailrc file? Do you have
suggestions how to improve the documentation provided at the beginning of
that file?

Please update your ports tree and rebuild the port -- I will commit
some small improvements now.

 
 Before in 4.11 through 5.4 I started fetchmail using
 /usr/local/etc/rc.d/fetchmail.sh and /root/,fetchmailrc and had root admin
 control of fetchmail. How do I achieve admin control now that fetchmail has
 been converted to use rc.conf fetchmail_enable=YES to start at boot time?

Simply copy your previous fetchmail config file (presumably /root/.fetchmailrc)
to /usr/local/etc/fetchmailrc), put fetchmail_enable=YES into /etc/rc.conf
and issue /usr/local/etc/rc.d/fetchmail start.

Btw.: Are you sure that you really need one system wide daemon? In my 
experience,
a per-user daemon makes things a lot easier for the administrator since users
can update their email configuration on their own.

If you still have problems, please give me as much detail as you can.

-- 
Best regards / Viele Grüße, [EMAIL PROTECTED]
 Simon Barner[EMAIL PROTECTED]


pgp0XTI0x7lJo.pgp
Description: PGP signature


Re: Firefox 1.5

2006-01-28 Thread Simon Barner
  I opened a bug with the Mozilla people, but it got closed and
  marked as a duplicate of this bug (which they say has been fixed in
  their 1.8 CVS):
 
  https://bugzilla.mozilla.org/show_bug.cgi?id=305970
 
  I have not yet tried to build the CVS, but it is a very annoying
  bug indeed since other things seem to crash 1.5 like the mplayer
  plugin and then I have to restart FF...therefore experiencing the
  problem again.
 I've just tried out the patch in the above bug report and it does seem 
 to fix the problem.  There was a rejected hunk in the patch, but it 
 just looked like a comment so no functionality was actually missing.  
 This should probably be added to the firefox port.

I can confirm this! You probably want to use a slightly modified version
of the patch (from mozilla CVS). I did not test the latter, but the
differences between the patch from CVS and the Bugzilla report are only
minor style issues.

http://bonsai.mozilla.org/cvsview2.cgi?diff_mode=contextwhitespace_mode=showfile=nsWindow.cppbranch=MOZILLA_1_8_0_BRANCHroot=/cvsrootsubdir=mozilla/widget/src/gtk2command=DIFF_FRAMESETrev1=1.145.2.1rev2=1.145.2.1.4.1

-- 
Best regards / Viele Grüße, [EMAIL PROTECTED]
 Simon Barner[EMAIL PROTECTED]


pgpM3gugzeH5T.pgp
Description: PGP signature


Cannot build kernel (Re: Need help ..)

2005-10-10 Thread Simon Barner
anthony endra wrote:
 Dear Sir,
 
 May you help me. I have something problem when make
 installkernel. And showing :

 In file included from
 /usr/src/gnu/lib/csu/../../../contrib/gcc/crtstuff.c:64:./tm.h:15:29:
 insn-constants.h: No such file or directory
 ./tm.h:16:25: insn-flags.h: No such file or directory
 *** Error code 1
 
 Stop in /usr/src/gnu/lib/csu.
 *** Error code 1
 
 Stop in /usr/src/gnu/lib.
 *** Error code 1
 
 Stop in /usr/src/gnu.
 *** Error code 1
 
 Stop in /usr/src.
 *** Error code 1
 
 Stop in /usr/src.
 
 
 
 sk0tak# uname -a
 FreeBSD sk0tak.org 5.3-RELEASE FreeBSD 5.3-RELEASE #0:
 Fri Aug  5 02:05:46 UTC 2005
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/SK0TAKKERNEL-V2 
 i386
 sk0tak#

This mailing list is for questions about porting third party
applications to FreeBSD. For general questions, please use
freebsd-questions, for freebsd-stable, if it's specific to a -STABLE
branch of FreeBSD.

I have Cc'ed freebsd-questions, so further discussion should happen
there.
-- 
Best regards / Viele Grüße, [EMAIL PROTECTED]
 Simon Barner[EMAIL PROTECTED]


pgpJIvrwde2tC.pgp
Description: PGP signature


Re: filtering HTML tags from email

2005-02-23 Thread Simon Barner
Mike Hauber wrote:
  Mutt saves to a temp file then calls the following command:
  lynx -localhost -dump %s
  where '%s' is the temporary file you saved it to.
 
  You could also just pipe it to the following:
  lynx -localhost -dump -stdin
 
  the -localhost argument prevents lynx from simply following
  links external to your machine - helpful to avoid generating
  hits for unscrupulous spammers that get paid for hits on a URL.
 
  Just make sure lynx is installed.
 
  Lou
 
 Okay, so to be sure, there is no filter (as of yet) to simply open 
 an email file, strip the HTML tags, and resave it?  I'm not 
 complaining, as this may actually be something I'm capable of 
 creating myself.  (I'll make this my first python project. :) )
 
 I'm just making sure I'm not missing anything obvious before I 
 start working on it.  It's irritating to spend time on something 
 only to find out that it's already been done.

You probably could do it also with procmail + lynx (or w3m) during the
delivery process.

Another possibility is to have the following entries in your ~/.mailcap
file, which converts html, doc and rtf to plain text.

text/html; w3m -dump -T text/html; copiousoutput;
application/msword; antiword %s; copiousoutput
application/rtf; rtfreader %s; copiousoutput

As for your python script: I don't think that just stripping everything
matching the following expressions is correct because they might appear
in non html emails, too: .* \/.* (perl syntax).

At least, you'd need a list of valid html tags, i.e. a regular grammar
for html: b | /b | i | /i | ... (BNF notation).

While this is not too hard to implement (and possibly a good project to
learn a new programming language), this would be too much work for
something that can be achieved easier with existing tools (that is, for
me, personally ;-)

Simon


pgpgUlVMmAaoT.pgp
Description: PGP signature


Re: Is there a file where I can specify the location of my header files??(like that of ld.so.hints)

2005-02-23 Thread Simon Barner
Mark Jayson Alvarez wrote:
 Hi,
   I think I did something horrible with my machine. I
 cannot complete a make anywhere in ports. For
 example, I'm compiling iperf and got this error.
 
 headers.h:82:19: errno.h: No such file or directory
 headers.h:139:24: syslog.h: No such file or directory
 
 I used find to search for these files and I did find
 it.
 
 #find / -name errno.h -print
 /usr/include/sys/errno.h
 /usr/include/sys/syslog.h
 
 Whenever I'm compiling a c program, I learned that I
 can pass a -Idirectory to the gcc, but I don't know
 how to do it in ports. Is there a file where in I can
 specify where my include files can be found, like that
 of the ld-elf.so.hints and ld.so.hints that contains
 the directory where my libraries can be found?

Hmm, please test whether you can compile the following C program:

#include stdio.h

int main (int argc, char *argv[]) {
printf (Hello, Mark!\n);
return 0;
}

Then compile it using: gcc -c hello.c

If it doesn't compile, something happened to your C compiler since
/usr/include should be searched automatically (i.e. without -I) by gcc.

If so, have a look at /etc/make.conf and also /etc/defaults/make.conf
(the latter one should not be modified!)

Simon


pgpCweqx34LQZ.pgp
Description: PGP signature


Re: Error installing 5.3-release before sysinstall

2005-02-22 Thread Simon Barner
Hi,

try disabling ACPI in your BIOS.

Simon


pgpEhttnkay56.pgp
Description: PGP signature


Re: mouse

2005-02-21 Thread Simon Barner
Hi,

you need to supply more information:

 - Which kind of mouse are you using? USB, PS/2, ...

 - How did you configure your mouse? Using sysinstall? Manually?
   A copy of your /etc/rc.conf file will help us debug.

 - Where are you experiencing your problems? In the text mode console
   or in X?

Usually, the following works best: Configure your mouse using sysinstall
and make sure it works in the console. The use the following for your
XFree/Xorg configuration:

Section InputDevice
Identifier  Mouse1
Driver  mouse
Option ProtocolSysMouse
Option Device  /dev/sysmouse
EndSection

HTH,
 Simon


pgpTGiIVkmWcS.pgp
Description: PGP signature


Re: RE: mouse

2005-02-21 Thread Simon Barner
Euripides Ballis wrote:
 Is a PS2 mouse.
 I using Sysinstall
 I have problem in text mode and X.

Okay, I bet once you have fixed your mouse in the console it will also
work in X.

 How I can see my mouse configuration?

It's in /etc/rc.conf. For more information please see the rc.conf man
page (there are several options starting with moused_).

Another good resource is the moused man page (there is a section
Configuring Mouse Daemon).

I have the following in my rc.conf:

# Mouse
moused_enable=YES
moused_flags=
moused_port=/dev/psm0
moused_type=auto

There's a good chance that this setting will also work for you. If it
doesn't work, please tell us which mouse you are using (vendor, modell,
etc.). Also, please attach a copy of your rc.conf.

Simon


pgpwqf5PiEpgc.pgp
Description: PGP signature


Re: What do you use to burn things ?

2005-02-20 Thread Simon Barner
Hi,

have you tried lower speeds? It seems you are using -s max all the
time...

You also could try whether your drive works better with cdrecord +
ATAPICAM.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/creating-cds.html#ATAPICAM

A benefit of using ATAPICAM is that this enables you to use nice
gui tools like sysutils/k3b.

Simon


pgp2RARspbHRg.pgp
Description: PGP signature


Re: IPFW config

2005-02-20 Thread Simon Barner
 Set IPFW to allow traffic on ports 80, 1, and 23 (That's the default 
 SSH port, right?)

Nope, it's 22.

 Then start IPFW with the kernel module (I know how to do this)

Have you already read
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/firewalls-ipfw.html?

It describes how to enable ipfw in rc.conf, and how to specify a
firewall script that loads the rules during the boot process.

Suppose, your fw script is /etc/ipfw.rules. Then the following should
(no warranty, of course ;-) load your rules without a reboot:

# kldload ipfw.ko  sh /etc/ipfw.rules

Simon


pgpyvIBVFEWrp.pgp
Description: PGP signature


Re: upgrading to a specified version?

2005-02-18 Thread Simon Barner
windlamf wrote:
 Thanks!
 If I specify the parameter of tag as RELENG_4, then does cvsup
 only fetch the latest source code of my current system version?

Well, RELENG_4 a.k.a. FreeBSD 4-stable is FreeBSD 4.11 (the latest
release) + security fixes + bug fixes or small backports from the
-current branch, although this is not very likely for FreeBSD 4 anymore.

RELENG_4_11 on the other and the security branch of FreeBSD 4.11 +
security fixes.

If you want to run FreeBSD 4 on your machine, I'd recommend any of the
two above branches (since FreeBSD 5 is the new stable branch, RELENG_4 and
RELENG_4_11 won't differ a lot).

HTH,
 Simon


pgpuGyuIps1fo.pgp
Description: PGP signature


Re: upgrading to a specified version?

2005-02-17 Thread Simon Barner
windlamf wrote:
 Hi all ! 
 The version of my current system is 4.7, and I want to upgrade the system to 
 4.11.From the description of UPDATING in /usr/src, I know that I have 
 alternatives among severval stable versions. But how can I specify the right 
 version which I want the system upgraded to?
 If I want my fb upgraded to 4.10, what can I do?
 As far as I know, the handbook does not mention things like this. So I turn 
 to you guys for help.

The handbook elaborates quite verbosely on this:

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

Simon


pgpWCooalhLBS.pgp
Description: PGP signature


Re: Which list for ULE issues?

2005-02-16 Thread Simon Barner
Doug Poland wrote:
 Hello,
 
 I've been playing with ULE on 5.3-STABLE and have come up with some
 repeatable issues.  To which list should I post these?  -STABLE,
 -CURRENT, -QUESTIONS?

Since it's on -stable, I'd suggest freebsd-stable@, like last time :-)

Simon


pgphMIxxw9MVR.pgp
Description: PGP signature


Re: sendmail

2005-02-15 Thread Simon Barner
Kim johansen wrote:
 i got a problem with sendmail, when i send a mail it takes
 20-60secound before the mail is queued and another 20-60 secound
 before the mail is sendt.

Hi,

that sounds like a DNS issue. Make sure that forward an reverse lookups are
working correctly, and that your hostname is set properly in
/etc/rc.conf.

Simon


pgpf1T7WOHK3d.pgp
Description: PGP signature


Re: Porting Kolab

2005-01-19 Thread Simon Barner
Aaron, thanks for your efforts! I am redirecting this to the right
mailing list ([EMAIL PROTECTED]), thus the full-quote.

Simon

P.S.: I follow that list quite closely, and I cannot recall a thread
  about porting Kolab/kgroupware.

Aaron Siegel wrote:
 Hello
 
 After years of watching the Kolab/kgroupware project I have finally decide to 
 give it a try. Unfortunately Kolab is distributed using Openpkg the reason I 
 have put off installing the server. I do not want to use two different 
 package management systems on my computer especially if one of them is a rpm 
 based system. I have never liked using rpms even when I was running Red Hat. 
 
 I have decided to start the porting Kolab server to Freebsd I am hoping to 
 incorporate it into the ports collection and abandon the openpkg stuff. There 
 are people running  and developing Kolab on Freebsd system so I know there 
 are not any system level compatibility problems. I have started  the porting 
 process by cross referencing the openpkg names to the FreeBSD ports. As of 
 now I only see two packages that require a  patch specific to Kolab, 
 cyrus-imap and  apache. Kolab use five application that are not 
 in the FreeBSD ports collection, fsl (a wrapper for ossp-l2), kolabd, 
 kolab-webadmin, kolab-resource-handlers, and perl-kolab. These list are in a  
  
 preliminary state, I have not cross referenced all the Perl packages yet nor 
 have I confermined all the ports name match the openpkg names.
 
 Has anyone else thought of performing this port? Is there a discusion in the 
 FreeBSD community on openpkg and how it may or may not be incorporated into 
 the system?  
 
 Aaron


pgplSEEn33wlw.pgp
Description: PGP signature


Re: netstat odd behavior

2005-01-07 Thread Simon Barner
[EMAIL PROTECTED] wrote:
 On all installations of FreeBSD I?ve ever done in the past,
 
 netstat -an
 
 displays LISTENing servers and any tcp connection in any state.
 
 On the 5.3 I have installed here ( updated to RELENG_5_3 + build/installworld 
 ), this command only
 shows only this;

[ no tcp servers ]

I had the same problem, updating to RELENG_5 fixed it for me.

Simon


pgpL82y1lbSKC.pgp
Description: PGP signature


Re: sftp and shell access

2004-12-16 Thread Simon Barner
Josh Paetzel wrote:
 I am looking for a way to give a user an sftp account without giving 
 them a shell.  So far I've tried setting their shell 
 to /sbin/nologin, but when they try to log in via sftp it gives them 
 a message to long error.
 
 Any pointers would be appreciated...I've tried the FAQ, handbook and 
 google so far.

Hi,

I am using ports/shells/scponly for this purpose. It even comes with a
neat little script 'setup_chroot.sh' which automagically sets up a
chroot cage for your scp/sftp user (it will also create the user
itself).

Have a look at the beginning of the port's Makefile for a list of
available options.

The only thing I couldn't get to work (I was in a hurry then) was
authentication with ssh-keys. If you get this one running, please be
so kind and drop me a line.

Simon


pgpu7mSoV645J.pgp
Description: PGP signature


Re: Kernel Compile slow on 5.x series?

2004-10-02 Thread Simon Barner
Markie wrote:
 Has anyone else noticed that the 5.x series kernel compile times take much
 longer than that of the 4.x series? My friends 233MHz machine running 4.x
 finished a kernel compile before my 500MHz machine running 5.x a while
 back. It seems to take forever? Is there a reason for this, or is it just
 me seeing this problem?

FreeBSD 5 uses GCC 3.x as system compiler, whereas 4 is based on GCC
2.y.  

Due to enhenced code optimization, support for modern language features
and other things the _compilation_ times increased considerably in the newk
version of the compiler (the resulting code is often much faster).

Fortunately, things are getting better with the most recent compilers from
the GCC 3.x series.

Simon


pgpLBaw9YOpGg.pgp
Description: PGP signature


Re: ask for information

2004-10-02 Thread Simon Barner
Elwaleed Khafagy wrote:
 dear sir;
 i can not tell you how happy we am to use free BSD
 but i need some information .
 I am from egypt and our language is arabic , so our
 company really need to know how to make free BSD
 support for arabic .
 we have informix database on our server and sometimes
 we need to use arabic .
 would you please tell me if there is a way to make
 free BSD support arabic

This is probably not what you are looking for right now, but it might be
interesting anyways: AFAIK the GNOME desktop enviroment has support the
arabic language, which means that text is displayed properly form right
to left, and there's some sort of advanced text input technique, and
according to http://www.gnome.org/start/2.8/notes/rni18.html, most of
GNOME's base is also translated.

I don't know about other desktop environments, e.g. KDE, but I guess
that making similar efforts are under way.

Regards,
 Simon


pgp1I83KBvRXl.pgp
Description: PGP signature


Re: Last Question On Which Release Is Best For Production

2004-10-01 Thread Simon Barner
Michael G. Goodell wrote:
 My question is this: I currently run 5.1 (uname -a yields: 5.1-RELEASE-p17)
 and I read at the page http://www.freebsd.org/releng/index.html it states
 that 5.1 is Frozen and also states (not officially supported) - Does this
 mean that I am using a release that is not supported at all any longer and I
 should upgrade to 5.3 or will my 5.1 release still have security patches and
 such applied to it and eventually become production worthy.

I'd say a two-fold no. First, it's no longer a security branch, see
e.g. here  http://www.freebsd.org/security/#adv , and 5.1 is
definitively not production worthy. Lot's of improvements (regarding
stability, performance and features) went into FreeBSD 5 since then.

Just have a look at the freebsd-current mailing list archive, and see
how busy they are, and given the fact that 5.1 was released over one
year ago, you can imagine what has changed since then.

 Am I just
 missing out on functionality by sticking with 5.1 and not moving up to 5.3?
 Moreover, *if* I choose to move to 5.3 (when it is ready for prime time) can
 I change my cvsupfile and then rebuild my kernel and world to the new 5.3
 release?

Yes, but you should also rebuild all of your ports, for the following
reasons:
 - the default threading libs changed
 - a new version of gcc was imported (bringing an (binary) incompatible c++
   mangeling scheme)

You might also upgrade to FreeBSD 5.3-BETA6 now, which already is in a
very good condition, and update to 5.3-RELEASE as soon as it's released
(presumably on 17 October).

HTH,
 Simon


pgpMiNYddYjuF.pgp
Description: PGP signature


Re: Gnome very very very slow ...

2004-10-01 Thread Simon Barner
Hi,

I guess you have to fix your hostname:

http://www.freebsd.org/gnome/docs/faq2.html#q20

Simon


pgpFb78V3Nqqd.pgp
Description: PGP signature


Re: I'm a 'tard - I don't know what a Subject line is (Was well, no subject)

2004-10-01 Thread Simon Barner
Bill Moran wrote:
 Chris [EMAIL PROTECTED] wrote:

[...]

  Then something has changed. So often flames start by a user simply 
  asking a question that had he/she simply searched the list - would have 
  found the answer covered many times over.
 
 No.  Nothing has changed.  The official list policy has ALWAYS been to
 be polite.  And people have ALWAYS violated that policy.  And people
 like me have ALWAYS jumped in and made a point of the fact that this
 kind of thing is NOT acceptable.

[ outline of list charta ]

I absolutely agree with Bill. One of the most pleasant things about
FreeBSD mailing lists and the community as a whole is that you have
the feeling that you are talking to adult human beings you share an
interest / preference in operating system / profession / etc. with.

And I heared a lot of people support my opinion, esp. from newbies
trying FreeBSD for the first time. The professional and polite style
here has become rare in today's internet, where every Tom, Dick and
Harry thinks he needs to be kewl or insulting.

Simon


pgptVy56EjdS9.pgp
Description: PGP signature


Re: fetchyahoo Failed: Couldn't get challenge to log in

2004-09-30 Thread Simon Barner
Huajian Luo wrote:
 hi,guys
   I installed fetchyahoo and when I run fetchyahoo
 It told me 
 
 Logging in securely via SSL as 
 Failed: Couldn't get challenge to log in, Try again 
 later,
 
 any comments on this?
 Thanks in advance!!!

I remember to have read that they changed their login interface, and
thus fetchyahoo needs to be updated.

A PR is already in the queue, but since the ports tree is currently
frozen, the update will take some time to take place.

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/71804

If you are very impatienty, you can try the following:

Edit the ports makefile, and change PORTVERSION to 2.8.6.
Now run `make makesum  make build' and see if it works.

No guarantees, of course... ;-)

Simon


pgp9uLjCFxBhq.pgp
Description: PGP signature


Re: Question

2004-09-26 Thread Simon Barner
[EMAIL PROTECTED] wrote:
 Regards,
 
 I have one question.
 When will come FreeBSD 5.3 release ?
 If you can tell me approximately date..

When it's ready.

The schedule is here: http://www.freebsd.org/releases/5.3R/schedule.html


pgpi7tLJBMEds.pgp
Description: PGP signature


Re: dns-more than I ever wanted to know...

2004-09-24 Thread Simon Barner
mailing lists at MacTutor wrote:
 I've come across a ton of DNS tutorials on the web. Everything I've 
 found so far is very lengthy. I need to setup a simple small 
 office/home office network with DNS so that it resolves my inside 
 network among the machines and hides it from the greater internet.
 
 I'm open to suggestions of a quick fix that won't take me a day and 
 half reading full time.

Have you already read this one?
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-dns.html

Simon


pgpCx2Owa2FCZ.pgp
Description: PGP signature


Re: CD burning port recommendations wanted

2004-09-14 Thread Simon Barner
Peter Ryan wrote:
 I plan to burn my distfiles to a CD, but I am not sure
 which of the burn software options is preferable.
 
 I would like to be able to read the CD on both
 XP and FreeBSD.
 
 I would appreciate any recommendations or warnings
 from those who have been there before.

If you like fancy GUIs, ports/sysutils/k3b is great.
ports/sysutils/xcdroast is also quite good, and it doesn't depend on
KDE. Both programs need scsi drivers or the atapicam emulation layer.

Of course you won't need those programs to backup your distfiles, but
they can be quite useful anyway.

Simon


pgp2mpQU3WemT.pgp
Description: PGP signature


Re: Problems with the ports collection

2004-09-12 Thread Simon Barner
Travis Troyer wrote:
 ===  Configuring for libltdl-1.5.8
 cp: /usr/ports/devel/libltdl15/work/libtool-1.5.8
 /usr/ports/devel/libltdl15/work/libtool-1.5.8
 /usr/ports/devel/libltdl15/work/libtool-1.5.8/libltdl
 /usr/ports/devel/libltdl15/work/libtool-1.5.8/libltdl/config.guess: No such 
 file or directory
 
 ===  Configuring for postgresql-7.4.5
 cp: /usr/ports/databases/postgresql7/work/postgresql-7.4.5/config
 /usr/ports/databases/postgresql7/work/postgresql-7.4.5/config/config.guess: 
 No such file or directory
 
 
 Any port I try to install gives me a similar error regarding config.guess.  
 In searching, I haven't found anybody else who has experienced the same 
 problem.  Any ideas?

Hi,

something is borked with your autotools and/or libtool. I'd suggest to
delete all of the following ports.

autoconf*
automake*
libtool*

This may be more than necessary, but the chance is greater to catch the
culprit ... ;-

Afterwards, just build your postgresql port (or anything else), the
deleted ports will be reinstalled as required.

Another point worth giving a shot is deleting old work directories (you
might want to try this before nuking your auto* ports)

Either use portsclean -C (comes with portupgrade) or your preferred
shell poison like 

cd /usr/ports  find . -name work -type d | xargs rm -rf

HTH,
 Simon


pgpnbfQRyao6z.pgp
Description: PGP signature


Re: Mouse problems

2004-09-12 Thread Simon Barner
Thomas,

[ PS/2 mouse woes ]

which mouse device are you using?

Section InputDevice in /etc/X11/XF86Config should look like this (at
least it works for me...)

Section InputDevice
Identifier  Mouse1
Driver  mouse
Option ProtocolSysMouse
Option Device  /dev/sysmouse

For your reference: My /etc/rc.conf entry looks like this:

moused_enable=YES
moused_flags=
moused_port=/dev/psm0
moused_type=auto

If that doesn't help, please provide more information, i.e. post the
mentioned config files, along with the output of `dmesg'.

 I really like BSD so far and am very impressed with it. I'm working 
 on contributing and am already trying to convince all my friends.

Excellent! :-)

HTH,
 Simon


pgpXV8DAxBlvg.pgp
Description: PGP signature


Re: strange kernel messages..

2004-08-04 Thread Simon Barner
Roberto Nunnari wrote:
 Hello.
 
 Please send replies also to my mailbox, as I'm not on this list.
 
 Can anybody tell me what are these messages about? Are them
 just informational or do I have to worry?
 
 Aug  2 18:23:59 web kernel: lock order reversal
 Aug  2 18:23:59 web kernel: 1st 0xc07066e0 UMA lock (UMA lock) @ 
 /usr/src/sys/vm/uma_core.c:1200
 Aug  2 18:23:59 web kernel: 2nd 0xc0c31100 system map (system map) @ 
 /usr/src/sys/vm/vm_map.c:2210
 Aug  2 19:12:21 web kernel: lock order reversal
 Aug  2 19:12:21 web kernel: 1st 0xc8c1c39c vm object (vm object) @ 
 /usr/src/sys/vm/swap_pager.c:1323
 Aug  2 19:12:21 web kernel: 2nd 0xc0705b80 swap_pager swhash (swap_pager 
 swhash) @ /usr/src/sys/vm/swap_pager.c:1838
 Aug  2 19:12:21 web kernel: 3rd 0xc6853108 vm object (vm object) @ 
 /usr/src/sys/vm/uma_core.c:873

This is a so-called lock order reversal (LOR). To learn more about LORs
in general and specifically about the one you are seeing, please see
here:

http://sources.zabbadoz.net/freebsd/lor.html -- # 007

Simon



signature.asc
Description: Digital signature


Re: Freebsd Test Brower

2004-08-02 Thread Simon Barner
Dee Gaans wrote:
 Hi all,
 
 I am wondering if anyone knows of a text browser that
 I can use in FreeBSD 5.21 that supports https?  I am
 currently using Lynx, and it does not support https.. 

ports/www/w3m


signature.asc
Description: Digital signature


Re: GNOME on FreeBSD

2004-08-01 Thread Simon Barner
Vlad Tudorache wrote:
 I'm using kdm as Display Manager with FreeBSD. If I select a GNOME
 session as root and then try to restart/shutdown from GNOME the system
 hangs (until I press Ctrl-Alt-Del, when reboot sequence continues
 normally). How can I avoid this?

Can you switch to a text console (press CTRL+ALT+F1 multiple times)?
If so, login, and run `ps -U the user that is logged into gnome' to
see whether there are hanging processes.

Simon


signature.asc
Description: Digital signature


Re: Way OT programming question

2004-08-01 Thread Simon Barner
Josh Paetzel wrote:
 I've been muddling through some of the source files for FreeBSD 
 5.2.1-RELEASE, and I've noticed that a large number of .c files 
 in /usr/src have something similar to below in them:
 
 #ifndef lint
 #if 0
 static char sccsid[] = @(#)cat.c   8.2 (Berkeley) 4/27/95;
 #endif
 #endif /* not lint */
 #include sys/cdefs.h
 __FBSDID($FreeBSD: src/bin/cat/cat.c,v 1.29 2003/04/30 17:40:28 
 obrien Exp $);
 
 1) Isn't 'if 0' always negative?

Yes, has the same effect as using comments. I don't know why #if 0 was
used here, but the line was probably kept in order to document the
(version) history of the file.

 2) What is the __FBSDID line doing?

It has the same purpose as the static char sccsid[] line: Each and every
source file adds an id line to the resulting binary executable. Thus it
is possible to determine the exact version of file.

Example:

% ident /bin/ls

/bin/ls:
 $FreeBSD: src/lib/csu/i386-elf/crti.S,v 1.6 2002/05/15 04:19:49 obrien Exp $
 $FreeBSD: src/lib/csu/i386-elf/crtn.S,v 1.5 2002/05/15 04:19:49 obrien Exp $
 $FreeBSD: src/lib/csu/common/crtbrand.c,v 1.4 2003/10/17 15:43:13 peter Exp $
 $FreeBSD: src/lib/csu/i386-elf/crt1.c,v 1.12 2003/01/26 23:14:47 markm Exp $
 $FreeBSD: src/bin/ls/cmp.c,v 1.12 2002/06/30 05:13:54 obrien Exp $
 $FreeBSD: src/bin/ls/ls.c,v 1.75 2003/12/01 19:10:29 obrien Exp $
 $FreeBSD: src/bin/ls/print.c,v 1.66 2003/10/16 07:07:20 tjr Exp $
 $FreeBSD: src/bin/ls/util.c,v 1.32 2003/09/09 12:02:52 tjr Exp $

Btw: ident(1) also works on source files, Makefiles -- basically
everything that has a CVS id line.

__FBSDID is defined in /usr/src/sys/sys/cdefs.h

Simon

Btw: While reading the FreeBSD source can be very interesting, browsing the
 commit logs can be even more exciting: You can either use `cvs log'
 directly (on your local copy of the repository or via anoncvs),
 or use the web interface at http://cvsweb.FreeBSD.org.


signature.asc
Description: Digital signature


Re: best way to update my system?

2004-07-27 Thread Simon Barner
Anthony Philipp wrote:
[ please wrap your lines at 72 - 76 characters. Thanks ]

 if patching by source doesnt work this way is there a way to
 use binary patches?

Yes, have a look at ports/security/freebsd-update

I don't know, though, whether it works after you have used the source
method to update your system. I know that it used to not work, but
I remember that something has changed.

Simon


signature.asc
Description: Digital signature


Re: BandwidthD syntax error?

2004-07-27 Thread Simon Barner
Peter wrote:
 use ports install bandwidthd For FreeBSD 4.10
 
 can't use bandwidthd (FreeBSD 4.10)?
 you can try it ^^
 
 ##
 about this error ?G
 
 Syntax Error parse error on line 40 
 Syntax Error parse error on line 40 
 Syntax Error parse error on line 40 
 Syntax Error parse error on line 40 
 
 ##
 ports?G
 
 libpcap ( http://www.tcpdump.org/ )
 /usr/ports/net/libpcap
 
 libpng (http://www.libpng.org/ )
 /usr/ports/graphics/png
 
 ##
 
 Install step?G
 
 1. make deinstall libpcap and libpng and bandwidthd
 2. make install libpcap
 3. make install libpng
 4. make install bandwidthd
 
 now i can use bandwidthd ^^

I guess that the error is due to libpcap, which is also in /usr/lib.
Could you please verify this be de-installing the libpcap port and
building bandwidthd.
Otherwise it libpng must be the culprit...

Be sure to post the whole error message.

Simon


signature.asc
Description: Digital signature


Re: FreeBSD 4.10 pkg_add Shared object libssl.so.3 not found?

2004-07-27 Thread Simon Barner
 EJINSIDE# pkg_add -r links
 /usr/libexec/ld-elf.so.1: Shared object libssl.so.3 not found

It sound like you did not install the crypto package.
To install it now, do the following:

/stand/sysinstall
-Configure-Distributions-crypto

then select your ftp mirror, and you should be done.

HTH,
 Simon


signature.asc
Description: Digital signature


Re: how to upgrade Perl

2004-07-26 Thread Simon Barner
Perica Veljanovski wrote:
 Hi all,
 
 How do I upgrade perl version 5.005_03 to Perl 5.8 on my FreeBSD 4.10-RELEASE
 from ports?
 
 Tryed:
 cd /usr/ports/lang/perl5.8
 make install
 and nothing happend :P

You have to use the use.perl script:

# use.perl port

For more information have a look at:
/usr/ports/lang/perl5.8/pkg-message

Simon


signature.asc
Description: Digital signature


Re: [OT]Re: AMD64 support: FreeBSD v.s. Gentoo

2004-07-26 Thread Simon Barner
 One interesting point for desktop users is that Gentoo automatically compiles 
 X.org as a dependency of KDE rather then XFree86. And I must say, my TFT is 
 quite sharper then it was with XFree86.

Since some days, -current defaults to X.org. Users of other FreeBSD version
can update their ports and have a look at /usr/ports/UPDATING howto
switch from XFree to X.org

Simon


signature.asc
Description: Digital signature


Re: Question about cvs-all mail list

2004-07-12 Thread Simon Barner
BSDjunkie wrote:
 Hello all!
 
 Seems like there is a lot of activity on the cvs-all
 mailing list...however I was wondering what the
 information that passes through that list can do for
 me?
 
 I am not a developer and do not wish to track the
 'bleeding edge'.
 
 Other than telling me what files are being modified
 and how many lines of code were added or
 taken-away...what benefit does that knowlege have for
 me?

Well, that is exactly the purpose of that list: to give developpers an
overview about what's happening in other parts of the CVS repositiory.

If you're not a developper, there is no reason to subscribe to that list
-- even as user who is running -CURRENT: There is the current@ mailing
list for discussions about the `bleeding edge' (development, testing,
debugging, etc.)

There is also a weekly summary about the cvs-src mailing list, so both
interested users and developers can inform themselves abouts what's
going on:

http://excel.xl0.org/FreeBSD/ (also posted to current@)

Simon


signature.asc
Description: Digital signature


Re: allowing users to mount cdrom

2004-07-03 Thread Simon Barner
jobse wrote:
 Dear List,
 When trying to mount the cdrom I get Operation not permitted.
 sysctl: vfs.usermount=0(what does that mean and how can I *permanently*
 change it to 1)

It means, that users are not allowed to mount file systems.

To change it, run (as root)
# sysctl vfs.usermount=1

To make this permanent, add vfs.usermount=1 to /etc/sysctl.conf.

Now, regular users are allowed to mount file systems on directories they
own.

 I'd rather not set the sticky bit on mount/umount if I mustn't.

s/sticky/suid/

Simon


signature.asc
Description: Digital signature


Re: Soundcard woes (help!)

2004-06-30 Thread Simon Barner
ORACLE . wrote:
 hey 
 i am usinf freebsd 5.0 and i added the line pcm to my
 kernel and sound card is working but same problem only
 one speaker(i have two speakers) is working and the
 there is too much noise when i play any mp3 can you
 tell me how can i fix that and i dont know about BIOS
 that much ..

Is your cabeling ok? Does it work on Linux or Windows.

You should also consider upgrading to 5.2.1, since a lot of stuff was
fixed (also sound stuff, IIRC).

Please keep the questions mailing list Cc'ed so other people can help
you, too. I'm quite short on time right now.

Simon


signature.asc
Description: Digital signature


Re: Intel Ethernet card not being detected

2004-06-25 Thread Simon Barner
Richard P. Williamson wrote:

[...]

Here another thing you could try: I once had a problem with a 3Com NIC
not being detected properly when the driver was compiled statically into
the kernel.

Removing it and using the module instead made it work...

[...]

 1) It says 'Ethernet manual'.  Does that mean that there will be 
 a method (ioctl or similar) in the driver that allows me to make
 explicit calls to the devices to configure 100Mb full duplex, for
 example, or even Auto if it is supported.  Before you say 'look 
 at the code yourself', assume that I'm doing so as you read this :
 
 2) Am I SOL, short of doing it myself in the fxp driver?

You may want to ask on the freebsd-stable@ mailing list, but if you can
up with a patch there, that would be even better, of course ;-)

Simon


signature.asc
Description: Digital signature


Re: Soundcard woes (was: help!)

2004-06-23 Thread Simon Barner
 hey thanx man you was a big help.Can you help me with
 another thing.I am having problems with my sound card 
 i have recompiled my kernel with pcm and the sound
 card is working ok but the sound quality is not
 good.

Don't know, I'm affraid. Perhaps manually assigning its interupt
(in the BIOS) helps. Have a look at `dmesg' and see whether there are
conflicts with other cards.

 my sound card is ES1938 can you tell me how can i
 get its drivers or how can i correct the sound card

No need to get drivers -- they come with FreeBSD (don't know about
commercial solutions and whether they are necessary, though).

In any case you will have to provide more information if you want
somebody to help you, e.g. a dmesg would be fine.

Simon


signature.asc
Description: Digital signature


Re: atapi/cam driver

2004-06-22 Thread Simon Barner
Hi,

your kernel configuration looks good:

 # ATA and ATAPI devices
 device  ata
 device  atadisk # ATA disk drives
 device  atapicd # ATAPI CDROM drives
 options ATA_STATIC_ID   #Static device numbering

[...] 
 # Yes they are for SCSI but umass needs them
 device  scbus   # SCSI bus (required)
 device  da  # Direct Access (disks)

[...] 

 # To access IDE devices via scsi system
 device atapicam
 device cd
 device pass

Perhaps there is some strange conflict between your CDROM devices. Did
you try and unplug one of them, use a different IDE channel, etc.

You should see cd0/cd1 devices when you boot.

Simon


signature.asc
Description: Digital signature


Re: Cd burning and what app to use

2004-06-20 Thread Simon Barner
Bruce wrote:
 Hello all,
 
 Currently, I am running Gnome 2.6 and I am just wondering what cd
 burning software is really good from the ports collection? 
 
 I want to burn cd's from iso files or copy music cd's to cd's.
 
 Or make data cd's.

If you want something with gui, have a look at sysutils/xcdroast or
sysutils/k3b. Both need atapicam (if you own an IDE burner), and the
latter one is an KDE application, but it's really sophisticated.

As soon as you have atapicam in your kernel, GNOME's nautilus offers the
burn:/// location: Just drag and drop your stuff there, and click on the
Write to CD button when you're done (needs
sysutils/nautilus-cd-burner which should already be on your system).

HTH,
 Simon


signature.asc
Description: Digital signature


Re: help!

2004-06-19 Thread Simon Barner
ORACLE . wrote:
 when i start the gnome i get this error
 
 Could not look up internet address 
 This will prevent Gnome from operating correctly. It
 may be possible to correct the problem by adding 
 the file /etc/host. 
 Log on anyway? Cancell? 
 
 i am getting this error when i start the gnome please
 tell me what to do i am new to freebsd..

Here is a detailed solution to your problem:

http://www.freebsd.org/gnome/docs/faq2.html#q20

Simon


signature.asc
Description: Digital signature


Re: probably a silly question. probably requires a silly answer.

2004-06-17 Thread Simon Barner
Edd wrote:
 
 Is it a bad idea to use a 5.x kernel on a 4.x system?

It won't work at all, because FreeBSD 5.x and 4.x have substantial
differences.

It isn't even recommented to upgrade the kernel only on a FreeBSD
system, because kernel and userland have to be in sync. This is because
programms like `ps', and `ls', etc. share data type definitions with the
kernel, that might change.

Simon


signature.asc
Description: Digital signature


Re: Swap question

2004-06-02 Thread Simon Barner
Brent Wiese wrote:
 I recently added a new disk to a 4.9 machine. I was having problems running
 out of swap space, so I used a couple gigs of this drive as another swap
 partition.
 
 It is listed as a swap partition in /etc/fstab.
 
 I couldn't actually find something that would confirm this, so hoping
 someone here can.
 
 I saw in man swapon something about only the first swap partition is used
 when the machine boots. The implication was any other swaps needed to be
 turned on afterwards.

That man page misses a SEE ALSO reference to swapinfo. It will show
usage statistics for all of your swap partitions.

Simon


signature.asc
Description: Digital signature


Re: Upgrading to 4.10 using cvsup(Pleeeease! I'm halfway there!!!)

2004-06-02 Thread Simon Barner
Mark Jayson Alvarez wrote:
 I'm currently on freebsd 4.9 and wanted to upgrade to
 4.10 using cvsup
 
 This is my supfile

[...]

Hi,

do yourself a favor and use a copy of the example supfile

/usr/share/examples/cvsup/stable-supfile

The only thing you need to change is the `host' line. If you want the
security branch (4.10 release + security fixes) for FreeBSD 4.10,
you will also need to change RELENG_4 (-stable) into RELENG_4_10.

I wouldn't mess with partial fetching of the sources. If you already
have the sources from your FreeBSD 4.9 cdrom, updating to 4.10 shouldn't
take more than half of an hour using a 56K modem.

I'd also give the same advice for ports: Install the from the cdrom
first, use the example supfile, and fetch the whole tree -- this will
save you a lot of trouble at virtually no expense (I don't now your
connection charges, though).

Simon


signature.asc
Description: Digital signature


Re: Intel Ethernet card not being detected

2004-06-01 Thread Simon Barner
Wayne Pascoe wrote:
 Hi all,
 
 I just bought a server from DNUK . It claims to have the following
 Ethernet card combination:
 
 Intel PRO/1000 / 1000 Mbit / integrated
 Intel PRO/100 / 100 Mbit / integrated
 
 I've installed FreeBSD 4.10-RELEASE onto the box, and all I see is em0,
 I don't see an fxp0 device.

Probably only the device ID of the card is not listed in the fxp0 driver.

Your case reminds of a very similar problem in c.o.f.m., where the
following made the card (also Intel) work (a PR has already been filed):

quote
Try adding the following line into the following struct
static struct fxp_ident fxp_ident_table[]
(/usr/src/sys/dev/fxp/if_fxp.c)

{ 0x1051,   -1, Intel 82562ET Pro/100 Ethernet },
/quote

This was a Tyan S5102G3NR motherboard with 3 onboard NICs. Of course,
the correct name for your NIC might be different, but that shouldn't
bee too much of a problem.

In case I guessed wrong, please provide me with the output of
  pciconfig -l
  dmesg
and I'll what I can do. A link to the specification of the motherboard
wouldn' hurt, either.

Simon



signature.asc
Description: Digital signature


Re: ifconfig documentation

2004-06-01 Thread Simon Barner
Aldinson C. Esto wrote:
 Hello Everyone,
  
 Can anyone give me the ifconfig documentation? or refer me
 to a link wherein I can find one?

If you're on a FreeBSD (or *nix) machine, you there's the ifconfig man page:

% man ifconfig

These man pages are also available on the FreeBSD web site (be sure to
select the right FreeBSD version).

http://www.freebsd.org/cgi/man.cgi
http://www.freebsd.org/cgi/man.cgi?query=ifconfigapropos=0sektion=0manpath=FreeBSD+5.2-RELEASE+and+Portsformat=html

Perhaps, you might also want to have a look at the comprehensive FreeBSD
handbook (also on your local system if you installed the documentation)

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/
file:///usr/share/doc/en_US.ISO8859-1/books/handbook/

HTH,
 Simon


signature.asc
Description: Digital signature


Re: Intel Ethernet card not being detected

2004-06-01 Thread Simon Barner
Hi,

I just had a look at that older post of yours, and I saw that you are
still running FreeBSD 4.8. Could you consider upgrading to 4.10-RELEASE or
-STABLE?

Have a look at the CVS logs for the fxp driver, and at the driver
source itself, and you will notice that quite a lot has changed:

http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/fxp/if_fxp.c

When you compare fxp_ident fxp_ident_table (where the device IDs are
defined) of FreeBSD 4.8 and 4.10, you'll see that there are now entries
for different revisions of 0x12298086 based cards, and there's also an
entry for the chip revision that is used in your board (rev. 0x08).

IMO there's a really good chance that upgrading will make your onboard
NICs work properly.

http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/fxp/if_fxp.c?rev=1.110.2.28content-type=text/plainonly_with_tag=RELENG_4_8
http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sys/dev/fxp/if_fxp.c?rev=1.110.2.32content-type=text/plainonly_with_tag=RELENG_4_10

Simon


signature.asc
Description: Digital signature


Re: RE: ifconfig documentation

2004-06-01 Thread Simon Barner
 Does the handbook or man page you are referring to have the
 documentation for each function of the ifconfig.c's source
 code? I really need this for our DHCP server development.

No, these are just user manuals. I hardly believe that there exists
developer documentation for that.

For specific questions, I'd post to the [EMAIL PROTECTED] mailing list.

Simon


signature.asc
Description: Digital signature


Re: Intel Ethernet card not being detected

2004-06-01 Thread Simon Barner
 I've tried installing 5.2.1 on the machine and it still doesn't work.
 Now though, it's even worse, as the em0 device doesn't work either. 
 
 I get something along these lines:
 em0: Link is up 10Mbps Half Duplex
 em0: watchdog timeout -- resetting 
 em0: Link is up 10Mbps Half Duplex
 em0: watchdog timeout -- resetting 

I can recall from some older postings (and the archives. Hint, hint ;-) that
this can be worked around by disabling ACPI.

[...]

 [EMAIL PROTECTED]:8:0:class=0x02 card=0x30108086 chip=0x10518086 
 rev=0x02 hdr=0x00
 vendor   = 'Intel Corporation'
 device   = '82801EB/ER (ICH5/ICH5R) PRO/100 VE Network Connection'
 class= network
 subclass = ethernet

Okay, that's your Intel NIC that is not detected (yet ;-

Add the following line to struct fxp_ident fxp_ident_table[]
(in /usr/src/sys/dev/fxp/if_fxp.c)

{ 0x1051,   -1, Intel 82562ET (ICH5/ICH5R) Pro/100 VE Ethernet },

and rebuild your kernel. This has already been added to -CURRENT, so you
don't have to file a problem report.

Simon

P.S:
0x1051 are the first four letters of the chip id in the pciconfig output.

-1 matches all chip revisions, i.e. if special hacks for a specific
revision (0x02 in your case) were necessary, the would be an extra line
for that particular chip.


signature.asc
Description: Digital signature


Re: Networking w/ FreeBSD

2004-06-01 Thread Simon Barner
[EMAIL PROTECTED] wrote:
 I have two computers systems in my network. The first system is a headless
 FreeBSD 5.2.1 system. This system stores my mp3's, datafiles and runs mysql and
 apache. I recently, got rid of windows off my laptop and installed FreeBSD
 5.2.1. When I had windows on the laptop, I was able to Map a Network drive to
 the headless system via Samba runing on the server.
 
 My question is this: How would I set something up to perform the same
 functionality, as when I had windows? I'm just not sure what needs to be
 installed on either system? Any ideas or comments would be great!

NFS (network file system).

There is a chapter in the handbook with detailed setup instructions.

http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/network-nfs.html

Simon


signature.asc
Description: Digital signature


Re: archivemail-0.6.1 not working as expected

2004-06-01 Thread Simon Barner
 So to make it clear: If I want to run a cron job for a special user I use
 crontab and otherwise to run a system-wide cron-job that is not defined by
 FreeBSD itself I use /usr/local/etc/periodic?

AFAICS /usr/local/etc/periodic is mainly used by ports, e.g. portaudit
uses it to fetch its database every day.

For your own system wide cron jobs, you could also use user cron tabs,
e.g. root, nobody, ... depending on what you want to do.

I think it's only a matter of taste.

[...]

 So thank you again for all your help and work

Don't mention it -- the only thing I did was pasting my script :-)

Simon


signature.asc
Description: Digital signature


Re: Making chmod changes static

2004-05-31 Thread Simon Barner
 I need to make both the floppy drive (fd0), the internal zip dive (afd0) 
 and the cdrom (acd0) usable by any user without having to use 'sudo' or go
 the 'su' route.

Hi,

you want /dev/devfs.conf (see devfs(8) for more details).

E.g.:

# Commonly used by many ports
linkacd0cdrom
permcdrom   0660
own cdrom   root:operator

# burncd
permacd00660

# xcdroast
permxpt00660
permpass0   0660


This will make your setting persisting over reboots.
In order to apply your changes to that file (without rebooting),
simply run (as root)

/etc/rc.d/devfs restart

Simon


signature.asc
Description: Digital signature


Re: mplayer + realaudio ... what to expect when installing ...

2004-05-27 Thread Simon Barner
Lars Eighner wrote:
 works fine without X - whether you can build it without X, I
 don't know and I rather doubt.

Hi,

out of curiosity, I renamed /usr/X11R6, removed the USE_XLIB line from
the port. It configured fine (stating that all of the X11 video out
options were disabled), so I guess it will also build an run.

Given that fact, that you can also hack the linux-realplayer port not to
depend on the linux compatibility layer (which would probably introduce
a dependency on X11), and the fact that mplayer has its own magic to use
linux and even windows shared libraries, the OPs goal should be really
achievable.

Simon


signature.asc
Description: Digital signature


Re: Getting source by anoncvs

2004-05-25 Thread Simon Barner
Raymond Lillard wrote:

 I just failed at an attempt to pull down the latest sources
 via anoncvs using the instructions found at the URL below.

Hi,

it seems that this server has been shut down due to security concerns.
See this thread on -current for more information:

http://lists.freebsd.org/pipermail/freebsd-current/2004-May/027793.html

Simon


signature.asc
Description: Digital signature


Re: GCC Query.

2004-05-25 Thread Simon Barner
[EMAIL PROTECTED] wrote:
 Which release of FreeBSD by standard has GCC 3.3.3 or higher?

5.2.1 has GCC 3.3.3 - don't know whether some lower versions of FreeBSD
5.x also had it (they're all GCC 3.x based), but you wouldn't want to
install anything below 5.2.1 anyway (if you decide to go for FreeBSD 5).

 Otherwise, are there any decent guides of how to setup GCC properly after
 upgrading 2.95 (FreeBSD 4.8-RELEASE). I've had major troubles since updating
 it - that things aren't being recognised as new - and have had to use
 symbolic links (which I still don't think are working 100%). I used the
 ports/lang/gcc33 port, should this have not have overwritten any gcc i had
 currently?

No!

You _must not_ overwrite your _system compiler_ with a port. The source
tree is only guaranteed to compile with the system compiler (from that
very tree).

If you need GCC 3.x on FreeBSD 4, use one of the ports, but you will
need to build your world with /usr/bin/gcc (a.k.a. 2.95.4). Ports should
work just fine with gcc 3.x, but you should not mix and build some with
gcc 2.x and some with 3.x. This is mainly because C++ name mangeling has
changed in 3.x (read c++ shared libs compiled with different versions of
GCC are incompatible).

Simon


signature.asc
Description: Digital signature


Re: bad gnome responsiveness with network load

2004-05-24 Thread Simon Barner
Hi,

 Summary: with /home NFS mounted at 10Mbit/s, network i/o
 makes my sytem noticeably slower (as in GNOME interactivity). I'm running
 RELENG_5_2, with SCHED_ULE and ADAPTIVE_MUTEXES. 

What NIC are you using? It sounds like your system is slowed down by
vast interrupt stroms (use top an vmstat -i whether interrupts are a
significatan component in your system load).

Simon


signature.asc
Description: Digital signature


How to install boot manager after installation

2004-05-24 Thread Simon Barner
 Hello, I am new to this list, so hopefully I an
 writing to the right address.

Yes, you are, so welcome aboard!

 Anyway, I just installed FreeBSD in conjunction with
 WindowsME, and when it asked for a boot manager to be
 installed, I selected None, since it said that's
 what people who use PC-DOS should select. Now I can't
 boot into my new installation. 

Just boot once again from the installation CDROM and choose the
following options:

Configure-Fdisk-

Now select your FreeBSD hard drive (press space), and exit immediately
from the new menu shown ('q').

Now you'll have an option screen that lets you select BootMgr (the
FreeBSD boot manager).

Simon

P.S. If you did not install Windows before FreeBSD, you should do that
 before going through the above procedure. Windows has the bad habit
 of overwriting boot sectors

P.P.S. Next time, please choose an appropriate subject line. That will
   increase your chance to get an answer.


signature.asc
Description: Digital signature


Re: Special Keys in less

2004-05-19 Thread Simon Barner
 I'm not sure what you mean by Pos1 key?

Pos1 == Home on German keyboards.

 On my machine from both console
 and gnome-terminal I can use the Home and End key to get to the
 beginning and end of the file using versions 358 and 371 of less. It
 works on both FreeBSD 4.x and 5.x in my case.

Also confirmed with an xterm (FBSD 5.2.1).

@ OP: Do you set the right keyboard type? I have the following in
/etc/X11/XF86Config

Option XkbRules   xfree86
Option XkbModel   pc105
Option XkbLayout  de
Option XkbVariant  nodeadkeys

Simon


signature.asc
Description: Digital signature


Re: gnome won't start

2004-05-18 Thread Simon Barner
Khong SF wrote:
 Hi
 
 I've been using FreeBSD 4.7-stable on a PIII box for a while.
 I tried  for weeks to get the gnome1.4 desktop running but to no prevails.
 The problems i encountered were:
 
 1) when gnome starts, it pop up a diaglog box saying
 unable to find host adress for.
  please check the file /etc/hosts .. blah blah blah
 Then it gave me choices to continue/ try again,
 if i click try again, the diaglog box appear again  if i click 
 continue, the blank desktop just freezed
 
 2)  My  /etc/hosts file is OK,  it looks like below:
 ::1   localhost localhost.my.domain
 127.0.0.1  localhost localhost.my.domain

You will need to specify a non-loopback ip address, e.g.

10.0.0.1 mybox mybox.my.domain


 3) my X11  windowmaker (Enlightenment) start just  fine, but every time 
 when i exit the
windowmaker, the same situation like problem 1) reappear.
 
 4) the Xserver-error file in my home dir sounds like this:
Xlib: connection to :0.0 refused by server
Xlib: No protocol specified
Gtk-warning **: cannot open display: :0
SESSION_MANAGER=local/:tmp/.ICE-unix/274
 
 5) do i need Openssh in order to run X11 / gnome1.4 ?
just what's wrong with my gnome desktop ?

No, you don't need OpenSSH for Gnome or XFree. The above addition to
/etc/hosts should suffice.

Just as an aside: Gnome 1.4 is no longer part of the ports collection,
and thus it's not officially supported (the current Gnome version in the
ports collection is 2.6.1).

The same thing applies to FreeBSD 4.7: It's not an officially supported
security branch any more:

http://www.freebsd.org/releng/index.html

Simon


signature.asc
Description: Digital signature


Re: Strange Mozilla crash

2004-05-16 Thread Simon Barner
Daniela wrote:
 Hi!
 
 My Mozilla hangs very often, and now I attached to the hanged process with gdb 
 to see what's wrong. I have debug symbols in Mozilla, in every other program 
 and in the entire OS. The backtrace is:
 
 #0  0x28458d60 in __sys_poll () from /usr/lib/libc_r.so.4
 #1  0x284582ac in thread_kern_poll (wait_reqd=1)
 at /usr/src/lib/libc_r/uthread/uthread_kern.c:817
 #2  0x28457c71 in _thread_kern_scheduler ()
 at /usr/src/lib/libc_r/uthread/uthread_kern.c:493
 #3  0x0 in ?? ()

Hi,

if you're running FreeBSD 5-current, make sure that all of your
ports use the same thread library.

I don't know whether that will fix your particular crash, but it surely won't
harm ;-)


signature.asc
Description: Digital signature


Re: FreeBSD

2004-05-13 Thread Simon Barner
su su wrote:
 sir, my pc is using FreeBSD now. and now i would like to add a new hard 
 disk which is RedHat. The new harddisk is plug with IDE 2. then , i have no 
 idea how to view the data inside the redhatis it i need to mount the 
 new hard disk.???thank 4 help

Yes, you need to mount it. Unfortunately, this will only work with
ext2/3 Linux slice (e.g. ReiserFS is not supported by FreeBSD).

If it's indeed an ext2/3 partition, you can mount it with the following
command (you should not write to Linux slices from FreeBSD in order
to prevent data corruption, so the disk is mounted read-only).

# mount_ext2fs -o ro /dev/adNsS /mnt/linux

You can determine N (the device number of the hard drive) with the following
command:

# dmesg | grep ^ad

To find out the right slice S, run the following:

# fdisk /dev/adN

Now you have all the ingredients, so something like

# mount_ext2fs -o ro /dev/ad2s1 /mnt/linux

will probably work for you.

Simon


signature.asc
Description: Digital signature


Re: remove users from system

2004-05-13 Thread Simon Barner
OLAF STEIN wrote:

[ pls wrap your lines at column 72-76 (for those reading mail in a
  text console - thanks ]
  
 i recently switched from linux to freebsd, so this question might sound
 a little stupid
 
 the problem
 i removed 2 users from my system by deleting their entries in /etc/passwd
 and /etc/group (they had their own group and where in no other groups)
 
 the users are still able to login after i deleted them
 the rmuser command now does not remove them anymore because it cannot
 find their entries in /etc/passwd, cause as mentioned i deleted them
 from their
 
 the handbook lists all actions that are taken, when the rmuser command
 is executed and i did all actions manually except the deletion of the
 home directories of those users, because i want to keep them

You can also safely use rmuser, since it will prompt whether the home
directory is to be removed or not.

Simon


signature.asc
Description: Digital signature


Re: Out of curiousity: Who am I mailing to?

2004-05-12 Thread Simon Barner
Mark Jayson Alvarez wrote:
 I'm just wondrin' who exactly am I mailing to? Are
 you all employees from FreeBSD Mailing Center?

As the others have already pointed out: this is a FreeBSD user mailing
list. But speaking of employees: cheques are welcome anyway ;-)

SCRN,
 Simon


signature.asc
Description: Digital signature


Re: FreeBSD ports

2004-05-11 Thread Simon Barner
[EMAIL PROTECTED] wrote:
 Hi, I am running freeBSD 5.1.  
  
 I read the handbook on updating the ports system. The  
 updated ports were placed in the /home/ncvs/ports. I cd 
 to the /home/ncvs/ports/3ddesktop. I typed the usual 
 make install clean as root. I gotten this error message: 
  
 make: don't know how to make install. Stop 
  
  
 But, when I build from the default directory 
 /usr/ports/package-name it compiles and install 
 the package fine. The 33desktop is not in the 
 /usr/ports directory, but in the /home/ncvs/ports 
 directory. I want to install this package but I 
 get the error above. If you can help, I surely appreciate it. 

Hi,

sounds like you have fetched the ports-CVS collection. The easiest way
to update your ports collection in /usr/ports is to edit a copy of 
/usr/share/examples/cvsup/ports-supfile and specify an appropriate CVSup
server.

Simon


signature.asc
Description: Digital signature


Re: Anyone else having trouble with Samsung 160G drives?

2004-05-10 Thread Simon Barner
Bill Moran wrote:

 Client bought a pair of 160G Samsung SP1604N ATA drives.  I'm supposed
 to  install them in an existing FreeBSD 4.9 system for additional
 storage space.

[ drives don't work in various systems except for one ]

I once had a similar problem with a 120 GB Maxtor drive. My solution was
not to specify the drive in the BIOS, and to pull all of its
configuration. Using a smaller (10 GB) drive as a boot device, FreeBSD
(4.9 and 5.2.1) magically detects the drive.

Simon


signature.asc
Description: Digital signature


Re: trouble compiling gnome 2.6 from ports on fresh 5.2.1 release install

2004-05-09 Thread Simon Barner
Jeronimo Romero wrote:
 
 
 1-Installed 5.2.1 release
 2-installed Developer release (without X)
 3-cvsuped ports tree
 4-tried compiling gnome 2.6 meta port from ports
 it kept on failing at pango 
 
 anybody have any ideas as to why???

Perhaps, if you shared the error messages with us ;-)

Simon


signature.asc
Description: Digital signature


Re: help: Linux Drivers on FreeBSD

2004-05-09 Thread Simon Barner
Mark Jayson Alvarez wrote:
 Hi,
I've installed an internal Smartlink HSP56
 Micromodem pci modem on the first pci slot of my
 H30CF jetway motherboard with(if i'm not mistakem)
 only one com1 port and a com2 header which i think is
 just an extra or something. I'm really having a hard
 time configuring it unlike before when i've installed
 an external modem. I've went to their actual
 site(smartlink) and found a driver but it says its
 only for Linux. I've read that freebsd can run Linux
 programs(that's why I've swithched to it).
My question is, in my case, can I also use Linux
 drivers so that I can get my internal pci modem
 working properly or is there something that i can to
 do to make it work properly?

Unfortunatelly, this probably won't work. Others had this problem, too:

http://freebsd.rambler.ru/bsdmail/freebsd-questions_2000/msg41179.html

Simon


signature.asc
Description: Digital signature


Re: realaudio to mp3/wav conversion utility in FreeBSD ?

2004-05-07 Thread Simon Barner
Joe Schmoe wrote:
 I already have a good method for saving realaudio
 streams to local files.  No discussion of this is
 necessary.
 
 So now I have locally saved realaudio files, and I
 would like to convert them to mp3 (or at least to wav,
 and then to mp3).  There is some lame GUI tool in
 windows to do this, but of course I would like a CLI
 tool in FreeBSD.
 
 Does such a tool exist ?

Yes, it does: Mplayer!

Install the mplayer port with support for realaudio. The following will
convert a ra stream (or any other audio stream mplayer supports) and
save in wave format to the file audiodump.wav:

mplayer file.ra -ao pcm

From there, you can use lame to convert it in the mp3 format.

I have attached a script, that converts all *.wma files in a directory
into mp3s, but it should be easy enough to adopt to your situation.

I once found it via google; there are credits for the authors in the
script.

Simon


signature.asc
Description: Digital signature


Re: realaudio to mp3/wav conversion utility in FreeBSD ?

2004-05-07 Thread Simon Barner
Oops, the script was stripped off by the mailing list software. I'll
post it inline now.

- cut here -
#!/bin/sh
# extraido de http://bulmalug.net/impresion.phtml?nIdNoticia=1744
# y modificado por mapelo [EMAIL PROTECTED]
# necesita mplayer y lame

# Convertimos wma a mp3
for f in *.wma
  do
  mplayer $f -ao pcm
  mv audiodump.wav $f.wav
  #lame $f.wav
  # modificado por mapelo para hacer variable vibrate y de mayor calidad
  lame --vbr-new -V 3 -b 128 $f.wav
  rm $f.wav
  done
- cut here -


signature.asc
Description: Digital signature


Re: Patching ports

2004-05-05 Thread Simon Barner
Hi,

 How do I add a patch to a certain port? Usually I would use the patch
 program to add the patch to the source code. But when using ports the
 system begins compiling right after rewtrieving the source. Thus not
 giving me a change to apply the patch. I've seen a folder named files
 in which patches part of the port seem to be located. But just adding
 the patchfile here apperently wont do much good. I've tried using the
 PATCHFILES variable in the Makefile but then the system complains the
 my patchfile does not have a matching MD5 hash. Does anyone know how to
 handle this issue?

You can use ``make patch'' to extract the port and apply existing
FreeBSD patches to it. Now you can create your own local patches
(relative to ${WRKDIR} which is
/usr/ports/category/portname/work/portname-version-mumble by
default), and put them into into the files subdirectory of your port.
Please note, that the FreeBSD port system will ignore patches that do
not start with the ``patch-'' prefix (you could use the EXTRA_PATCHES
macro to work around or exploit that fact) (``grep'' the ports
tree for examples)

You can find more information on how to work on the ports collection in
the porters handbook:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/index.html
file:///usr/share/doc/en_US.ISO8859-1/books/porters-handbook/index.html

One last side remark:
If you think that your patches are useful for either the FreeBSD or the
whole open source community, it would be really nice if you sent them as
a problem report (send-pr(1), see the porter's handbook) or to the author
of the software.

Regards,
 Simon


signature.asc
Description: Digital signature


Re: please give me some advice

2004-05-05 Thread Simon Barner
?? ?? wrote:
I am a novice to unix,I am going to install it on my computer ,but I 
 encounter a problem,so I report it to you,and I will be very thankful if 
 you can give me some advice!!!
I have installed windows2000 on my computer,I make two boot flopy 
 disks,and copy the files needed for the installation of the freebsd OS to 
 c:\freebsd.but in the process of installation,the system pop up a 
 error:error mounting dev/ad0s1 on /dist: no such file or directory.

From where exactly did you try to install FreeBSD? From a windows 2000
partition? I am afraid, but that won't work, even with boot floppies.

You have two options: Either get a cdrom and install from there, or do a
network installation via ftp. More information is found here:

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

Simon


signature.asc
Description: Digital signature


Re: Beginning C++ in FreeBSD

2004-04-14 Thread Simon Barner
Me wrote:
 Hi,
 I've learn shell scripting and java on my freebsd box
 since I migrated from winblows 98 a while back. now
 i'm ready to move to a more sophisticated language. I
 have decided to go with C++. Is there any bigginer
 guides online that you may have run a cross that would
 help me get started?

Don't know about a guide, but here's what I'd suggest (these suggestions
are - like the question - not specific to FreeBSD at all, but should
apply to any (modern) *nix platform) (modulo paths and package names, of
course).

If you are on FreeBSD 4.x, install the lang/gcc33 port, and use
/usr/local/bin/g++33 as your c++ compiler, since the base system's gcc
(v. 2.95.4) lacks quite a lot of modern C++ features, is less standard
compliant, etc.

Choose your favourite editor. XEmacs, vim and the other usual suspects
come to my mind, but there are also IDE's in the ports collection, like
kdevelop (KDE), and probably others.

Google for book suggestions. Get some from your local library, and
consider to buy your favourite one(s).

Good online resources are (IMO):

http://www.sgi.com/tech/stl/
http://www.mindview.net/Books/TICPP/ThinkingInCPP2e.html

Now: Start your first project ;-) If you think, you are ready for GUI
programming, I'd recommend http://www.wxwidgets.org/ (formerly known as
wxWindows).

Happy programming,
 Simon


signature.asc
Description: Digital signature


Re: Gnome 2.6 upgrade

2004-04-05 Thread Simon Barner
[EMAIL PROTECTED] wrote:
 I am running 5.2.1 Release with Gnome 2.4.  I have cvsuped my ports
 collection today to the latest update.  What is the procedure to upgrade
 to Gnome2.6?

Hi,

it's been released today! See here for more information.

http://lists.freebsd.org/pipermail/freebsd-questions/2004-April/042608.html
http://www.FreeBSD.org/gnome/docs/faq2.html

Enjoy,
 Simon


signature.asc
Description: Digital signature


Re: gnome long startup

2004-04-05 Thread Simon Barner
Antoine Jacoutot wrote:
 I have problems when starting gnome if I enable the esd sound server,
 it takes forever for gnome to launch itself.
 In my logs, I can see a connexion attempt to 127.0.0.1:16001.
 
 Anyone knows how I could speed up gnome start ?

Hi,

do you have a firewall, and if so, are you sure it does not block that
connection?

The same goes for tcpwrappers, so check /etc/hosts.allow and
/etc/hosts.deny.

I third thing that comes to my mind is /etc/hosts? Is it set up properly,
e.g.

::1 localhost localhost.my.domain
127.0.0.1   localhost localhost.my.domain
 10.0.0.1  myhostmyhost.my.domain

Does the problem go away, if you create a test user and try to log into
Gnome? If so, then some of your ~/.* configuration files/directories are
hosed, and you should be able to fix the problem by moving them away.

If all of the above fails, please provide more information, e.g. FreeBSD
version, list of installed packages (ls /var/db/pkg), the login manager
you use. An excerpt from the log you mentioned might also be useful.

HTH,
 Simon


signature.asc
Description: Digital signature


Re: Kernel panic when machine runs for a few hours

2004-04-05 Thread Simon Barner
Jorn Argelo wrote:

[ kernel messages snipped ... ]

 I've always had the above mentioned problems (the smb_maperror and the pid 
 warnings), but I never experienced any problems with it, so I figured it 
 wasn't really a bad thing.

Yes, these are only warnings.

 I'm playing my MP3's from my server, and I mount them with mount_smbfs. Since 
 the machine was running for a few hours, it'll return quite some errors as 
 you can see. The pid errors belong to several things of KDM (kdeinit mostly)
 
 I did compile the kernel myself, so perhaps I made a mistake with that. I'll 
 post my kernel configuration as well:

[ snip ]

Looks good.

 I would be really grateful if any of you guys could help me with this. My 
 machine has been rock-solid for a few months, and now it starts to lock up 
 frequently. It's rather frustrating.

Can you remember when the panics started, e.g. after a specific OS
update?

IMO the best thing to do is to build a debugging kernel and see, if you can
get a backtrace of the crash:

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

Once you have it, send it to the [EMAIL PROTECTED] list, together with
a description of the problem.

Simon


signature.asc
Description: Digital signature


Re: MASTER_SITE_OVERRIDE in make.conf

2004-04-04 Thread Simon Barner
Robert Downes wrote:
 Where should I be looking for the definitive description of this 
 configuration setting, or has it been removed from recent versions of 
 FreeBSD?

To some extend, ports(7) describes the available options for the ports
collection. The ultimate reference, however, are the make files in
ports/Mk themselves.

Simon


signature.asc
Description: Digital signature


Re: Samba Question

2004-04-04 Thread Simon Barner
Darryl Hoar wrote:
 I have Samba installed on a Freebsd 5.1 server.
 I am trying to map a share from a windows machine
 so that I can copy the data.  I can not change the
 windows share name.  It has a space in it.  How
 do I specify the share name in fstab.
 
 share name:  PSR COMPLETE
 
 //[EMAIL PROTECTED]/PSR COMPLETE  /psrcomplete smbfs  ro,noauto 0  0
 
 doesn't work.  Can't use quote marks

Hi,

I once had the same problem, and I came up with the following patch:
http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/55539

(I have attached version of the patch that applies to FreeBSD 5.2.1,
otherwise please use the very last version of it (at the bottom of the
problem report page).

The following instructions assume that you have the system sources in
/usr/src

# cd /usr/src
# patch  /path/to/fstab-vis.patch

Now either do a full buildworld cycle, or use the following commands
(untested):

# cd /usr/src/lib/libc
# make depend  make  make install clean
# cd /usr/src/share/man/man5
# make depend  make  make install clean

Now you can encode the spaces with the vis(1) utility:

vis -w
your mount point goes hereENTER

See also the updated fstab(5) man page.

If you try this patch, please tell me, whether it works for you, perhaps
someday I can get it committed.

Regards,
 Simon
--- lib/libc/gen/fstab.c.orig   Mon Apr  7 14:55:00 2003
+++ lib/libc/gen/fstab.cSun Apr  4 21:45:30 2004
@@ -49,6 +49,7 @@
 #include stdlib.h
 #include string.h
 #include unistd.h
+#include vis.h
 #include un-namespace.h
 
 static FILE *_fs_fp;
@@ -110,6 +111,41 @@
_fs_fstab.fs_spec = buf;
 }
 
+/*
+ * Converts a string *str, that possibly contains vis(1|3) encoded
+ * characters (visual representation) into the original form.
+ * See also: unvis(1|3)
+ *
+ * Return values: 0 on success, 1 otherwise
+ */
+int unescape (char *str) {
+   int state = 0;
+   char out, *s = str, *t = str;
+
+   if (str == NULL)
+   return 1;
+
+   while (*s != '\0') {
+   again:
+   switch(unvis(out, *s, state, 0)) {
+   case 0:
+   case UNVIS_NOCHAR:
+   break;
+   case UNVIS_VALID:
+   *t++ = out;
+   break;
+   case UNVIS_VALIDPUSH:
+   *t++ = out;
+   goto again;
+   case UNVIS_SYNBAD:
+   return 1;
+   }
+   ++s;
+   }
+   *t = '\0';
+   return 0;
+}
+
 static int
 fstabscan()
 {
@@ -128,9 +164,19 @@
if (*line == '#' || *line == '\n')
continue;
if (!strpbrk(p,  \t)) {
-   _fs_fstab.fs_spec = strsep(p, :\n);
-   _fs_fstab.fs_file = strsep(p, :\n);
+   cp = strsep(p, :\n);
+   if (!unescape (cp))
+   _fs_fstab.fs_spec = cp;
+   else
+   goto bad;
+   
+   cp = strsep(p, :\n);
+   if (!unescape (cp))
+   _fs_fstab.fs_file = cp;
+   else
+   goto bad;
fixfsfile();
+   
_fs_fstab.fs_type = strsep(p, :\n);
if (_fs_fstab.fs_type) {
if (!strcmp(_fs_fstab.fs_type, FSTAB_XX))
@@ -152,13 +198,21 @@
 /* OLD_STYLE_FSTAB */
while ((cp = strsep(p,  \t\n)) != NULL  *cp == '\0')
;
-   _fs_fstab.fs_spec = cp;
+   if (!unescape (cp))
+   _fs_fstab.fs_spec = cp;
+   else
+   goto bad;
if (!_fs_fstab.fs_spec || *_fs_fstab.fs_spec == '#')
continue;
+   
while ((cp = strsep(p,  \t\n)) != NULL  *cp == '\0')
;
-   _fs_fstab.fs_file = cp;
+   if (!unescape (cp))
+   _fs_fstab.fs_file = cp;
+   else
+   goto bad;
fixfsfile();
+   
while ((cp = strsep(p,  \t\n)) != NULL  *cp == '\0')
;
_fs_fstab.fs_vfstype = cp;
--- share/man/man5/fstab.5.orig Thu Dec 12 18:25:57 2002
+++ share/man/man5/fstab.5  Sun Apr  4 21:46:35 2004
@@ -10,7 +10,7 @@
 .\notice, this list of conditions and the following disclaimer in the
 .\documentation and/or other materials provided with the distribution.
 .\ 3. All advertising materials mentioning features or use of this software
-.\must display the following acknowledgement:
+.\must display the following acknowledgment:
 .\This product includes software developed by the University of
 .\California, Berkeley and its contributors.
 .\ 

Re: NIC question...

2004-04-04 Thread Simon Barner
   device  pcn # AMD Am79C79x PCI 10/100 NICs
 
   In the new DNS server I'm building, is the following ifconfig
   line correct for the first AMD NIC:
 
   ifconfig_pcn0=inet 216.231.43.140  netmask 255.255.255.0

Yes, that looks good (if the ip address and the netmask are correct ;-)

Be sure to either recompile your kernel with the following options

device miibus
device pcn

or to load the module version of the driver: if_pcn.ko

For more options of that NIC driver, you can have a look at its man
page: pcn(4).

Simon


signature.asc
Description: Digital signature


Re: Gnome 2.6 upgrade

2004-04-04 Thread Simon Barner
[EMAIL PROTECTED] wrote:
 I am running 5.2.1 Release with Gnome 2.4.  I have cvsuped my ports
 collection today to the latest update.  What is the procedure to upgrade
 to Gnome2.6?

Hi, as far as I can see, Gnome 2.6 is not part of the ports collection yet.

However, you can try Gnome 2.6-rc1 by following the instructions at
http://www.FreeBSD.org/gnome/docs/develfaq.html

(please report any oddities to [EMAIL PROTECTED] so they can be fixed
before the official release of Gnome 2.6 on FreeBSD)

Speaking of official release: If that is to close to the ``bleeding edge''
for you, just wait until Gnome 2.6 hits the ports tree.

Simon


signature.asc
Description: Digital signature


Re: Problems upgrading pango

2004-03-29 Thread Simon Barner
stan wrote:
 My portupgrade on one machine is failing in pango, with:
 
 configure: error: Xrender.h not found.
 ===  Script configure failed unexpectedly.
 
 And a sugested search for xrender.pc turns up nothing.
 
 What can I do to fix this problem?

That file is part of the XFree libraries x11/XFree86-4-libraries, and it
should be installed in /usr/X11R6/include/X11/extensions.

Is it possible that you are still running XFree 3.x ?

Simon





signature.asc
Description: Digital signature


Re: dircmp?

2004-03-29 Thread Simon Barner
Shaun T. Erickson wrote:
 Unfortunately, I don't, or I'd lift a copy. :)

Why not ask Google? ;-)

http://www.google.de/search?hl=delr=ie=ISO-8859-1q=dircmp.shsa=Ntab=gw

Simon


signature.asc
Description: Digital signature


Re: gaim error

2004-03-26 Thread Simon Barner
 Fatal error 'Spinlock called when not threaded.' at line 83 in file 
 /mnt/s10/BSD/usr_src/lib/libpthread/thread/thr_spinlock.c (errno = 0)

Hmm, as I thought, there's something wrong with your threads.
Unfortunately, I'm not too familiar with FreeBSD 5 (yet ;-), but the
[EMAIL PROTECTED] mailing list will certainly assist you to fix it.

Unless you find a different solution, I'd suggest that you ask you
question there again (together with all the information you gave me).

A good idea is also to build a debugging version of gaim and provide a
backtrace:

/etc/make.conf:
CFLAGS=-O -pipe -g
STRIP=

The reinstall gaim, and once it crashes, either gather a backtrace with
bugbuddy (it should be started automatically if it's installed), or with
gdb:

gdb gaim gaim.core (the enter 'bt' at the gdb prompt).

 I haven't had time to look into Michael's suggestions, maybe I'll give it
 a go tonight.

I generally dislike the idea of manually building things that are in the
ports collection, but don't feel discouraged to do same investigations
;-)
 - you lose the control about your installed software
 - if the problem is in the ports collection, others will have the same
   problem, so it's better to fix it globally

Cheers,
 Simon


signature.asc
Description: Digital signature


Re: gaim error

2004-03-25 Thread Simon Barner
  - gaim version
 
 /usr/ports/net/gaim/distinfo says:
 
 gaim-0.75.tar.bz2

The output of something like

  pkg_info | grep gaim
  
is usually more helpful, since it also shows the version of the FreeBSD
port you are using.

  - output of ldd -a /usr/X11R6/bin/gaim

Hmm, nothing suspicious, IMO.

Could you please see whether you are running the very latest version of
the port (gaim-0.75_8 at the present)?

Simon


signature.asc
Description: Digital signature


Re: gaim error

2004-03-24 Thread Simon Barner
Hi Adam,

 I am trying to get the gaim port to work.  If I build with:
 
 make WITHOUT_NSS=1
 
 everything is fine, but I can't connect to msn.  If I don't send any
 arguments to make, when I run gaim, I get:
 
 Fatal error 'Spinlock called when not threaded.' at line 83 in file
 /mnt/s10/BSD/usr_src/lib/libpthread/thread/thr_spinlock.c (errno = 0)
 zsh: abort  gaim

could you please provide some more details:

- FreeBSD version
- gaim version
- output of ldd -a /usr/X11R6/bin/gaim

Simon


signature.asc
Description: Digital signature


ATAPI cdrom not found during installation (was: Re: Please, can you

2004-03-22 Thread Simon Barner
help)
Reply-To: 
In-Reply-To: [EMAIL PROTECTED]

Jason,

 the problem is that when it come to install the rest of the bsd i
 try to install from the cd/dvd and it tells me that no CDROM is found
 and i have a ATAPI CDROM set to master on my sec ide controller with
 no slave divice, please can you help

I don't have a solution for your problem, but perhaps someone else can
help you, if you give us a bit more of information about your hardware:

- cdrom
- chipset
- hard drives

Also, it would be important to now which FreeBSD version you are trying
to install.

Regards,
 Simon


signature.asc
Description: Digital signature


Re: Update utility

2004-03-09 Thread Simon Barner
Chris wrote:
  However, once you use a source based update method, the port will not work
  any longer, since your installation will consist of custom binaries that do
  not match the recorded checksums.

 I like the idea of the bin-updates. Most of the end users of FBSD really
 don't have a need to have custom src so this may be a very acceptable
 way to go.

I was not necessarily thinking of local changes to the source tree, but
also of some applications that can be compiled with customized options
(e.g. sendmail with TSL+SASL support). Of course, I agree with you,
that the majority of end users will not do this (or use one of the
ports).

Btw. I just had a look at the web site[1], and it seems that
freebsd-update can deal with systems that were updated using the source
based method.

[...]

 I'm interested in the time it takes to do the freebsd-update, and
 if rebooting is needed. 

I haven't tried it, either. I guess that you will need to reboot as soon
as the kernel is patched, otherwise shutting down and restarting the
service in question should be enough.

Simon

-- 
[1] http://www.daemonology.net/freebsd-update/


pgp0.pgp
Description: PGP signature


Re: How do I add a local patch to a port?

2004-03-09 Thread Simon Barner
Hi,

although your question has already been answered: I have attached a
script that will create the patches for you (yes, it's very bad perl
code, I know, but it creates nice patches of the from
patch-dir1::dir2::filename ;-)

Simply remember to copy the source files to filename.orig before
editing them. Once you are done, cd to ${WRKSRC}, run the script and
copy the _relevant_ patches to the files directory. Please note that it
will also create patch files for those modifications, that came from a
`make patch' run.

Simon


pgp0.pgp
Description: PGP signature


Re: How do I add a local patch to a port?

2004-03-09 Thread Simon Barner
Argh the mailing list software stripped the attachment, so here it is:

#!/usr/bin/perl -w

use strict;

my $origfile;
my $file;
my $patch;
my @files = `find . -name *.orig`;

foreach $origfile (@files) {
chomp ($origfile);
$origfile =~ s/^\.\///;
$file = $origfile;
$file =~ s/\.orig$//;
$patch = $file;
$patch =~ s/\//::/g;
$patch = patch- . $patch;
system (diff -u $origfile $file  $patch\n);
}


pgp0.pgp
Description: PGP signature


Re: Update utility

2004-03-08 Thread Simon Barner
Bart Silverstrim wrote:
 On Mar 8, 2004, at 12:15 PM, Ioannis Vranos wrote:
 Is there any utility in FreeBSD 4.9 to check for possible updates/bug 
 fixes
 via internet?
 
 
 I *think* have have kind of a handle on this on the server I just 
 installed...
 
 I usually do a cvsup to update the list of the ports tree, then use a 
 procedure I picked out of http://www.freebsddiary.org/portupgrade.php 
 to update applications with portupgrade.
 
 If anyone else has a method other than this, I'd love to know the 
 procedure :-)

For third party applications, portupgrade should be the tool of
choice...

 This only updates ports.  Updating FreeBSD, I don't know of anything 
 other than if you find a security advisory, you have to have the src 
 tree and patch that portion and recompile whatever had the 
 vulnerability, following the advisory instructions.  I'm thinking that 
 since most daemons/applications are from ports, keeping your ports tree 
 updated should limit most remote exploits...I would be interested in 
 knowing of a way to check whether the installation of the OS is up to 
 date, though.

This is what the so-called security branches are good for: Just CVSup
your source tree, do a full buildworld cycle, and you should be fine.

Valid security branches (for use in your supfile) are for example RELENG_4_9
or RELENG_5_2.

If you prefer binary updates, there is a special port
(security/freebsd-update), but it will only work on an unaltered
installation (i.e. you did not do any buildworlds), and of course, you
can run the freebsd-update port incrementally.

However, once you use a source based update method, the port will not work
any longer, since your installation will consist of custom binaries that do
not match the recorded checksums.

Simon


pgp0.pgp
Description: PGP signature


Re: phpnuke forbidden, how to install?

2004-03-03 Thread Simon Barner
[EMAIL PROTECTED] wrote:
 i wanted to install phpnuke for content but after cvsuping i found out that
 
 ===  phpnuke-6.9 is forbidden: SQL injection vulnerability in Php-Nuke =
 7.1.0.

Hi,

I have created a patch that contains the security fixes from the web
site.

It's available here:

http://home.leo.org/~barner/phpnuke-sec-fixes.patch.bz2

Could you please test whether phpnuke works as exspected after applying
the patch?

 cd /usr/ports/www
 cat /path/to/phpnuke-sec-fixes.patch.bz2 | bunzip2 | patch -p
 cd phpnuke
 find . -name *.orig -exec rm {} \;
 make build

If your tests are successfull, I will file a PR in order to the the port
updated.

Simon


pgp0.pgp
Description: PGP signature


Re: phpnuke forbidden, how to install?

2004-03-03 Thread Simon Barner
 http://home.leo.org/~barner/phpnuke-sec-fixes.patch.bz2

I just noticed that the patches I used were for phpnuke 6.0, and it
seems that there are no fixes for v. 6.9 available.

The above patch is no longer online, so please consider the
vulnerability _NOT_ to be fixed.

Sorry for the noise!

Simon


pgp0.pgp
Description: PGP signature


Re: phpnuke forbidden, how to install?

2004-03-03 Thread Simon Barner
Oliver Eikemeier wrote:
 [EMAIL PROTECTED] wrote:
 
 i wanted to install phpnuke for content but after cvsuping i found out that
 
 ===  phpnuke-6.9 is forbidden: SQL injection vulnerability in Php-Nuke =
 7.1.0.
 
 and i checked the phpnuke website, they have a patched version of phpnuke.
 
 Where did you find that? I can't even find a security link.
 

He probably refers to the following two fixes from 2003 (from which I
produced my bad patch :((

http://www.phpnuke.org/modules.php?name=Downloadsd_op=searchquery=security

Security Fixes for PHP-Nuke 6.0 (1+2).

Simon


pgp0.pgp
Description: PGP signature


Re: Has anyone succeeded in compiling crm114 Mailfilter

2004-02-27 Thread Simon Barner
Gunnar Flygt wrote:
 I tried to compile the spam catcher CRM114. It bails out fairly quickly.
 Has anyone tweeked the src to work with FreeBSD?
 
 Please cc me, I'm not on the list.


You should post the full error message, otherwise it's very difficult to
help you.

Simon


pgp0.pgp
Description: PGP signature


Re: sendmail to a smarthost?

2004-02-10 Thread Simon Barner
Zhang Weiwu wrote:
 Try reading Simon Barner's tutorial on setting up FreeBSD for workstations.
 
 http://home.leo.org/~barner/freebsd/articles/mailsetup/article.html
  
 
 Oh this article is really helpful, I'm reading it .. it is really long.
 But my situation is pertty typical; I believe many people are like me to 
 rely on ISP's authenticated smtp server. Must things be so complicated 
 for those people like me, as  said in that article?
 Isn't there a replacement of sendmail to do simple mail transfer by just 
 asking a smtp server to do everything?

Postfix + SASL + TSL/SSL. (There is a nice article on that combination
on http://www.postfix.org)

When I wrote the article, my goal was to use FreeBSD's base system for
as many task as possible. That's why I chose sendmail over postfix.

Simon


pgp0.pgp
Description: PGP signature


  1   2   3   >