RE: need help setting up a new partition

2006-02-08 Thread Conrad Sabatier

On 09-Feb-2006 Peter wrote:
> Hi everybody,
> 
> I have a dual-boot arrangement with Win2k (on the first and second
> partition) and FreeBSD 5.4 (on the third partition).  I am willing to
> sacrifice the second partition and give it over to FreeBSD as I am
> lacking space there.  I'm just not sure how to proceed.

Use sysinstall to delete the partition and then re-create it as ufs.
 
-- 
Conrad J. Sabatier <[EMAIL PROTECTED]> -- "In Unix veritas"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: problem

2006-02-05 Thread Conrad Sabatier

On 05-Feb-2006 Jose Jesus Ortega wrote:
> I installed Xorg and configurate it and everything and
> installed WindowMaker of
> "/usr/ports/x11-wm/windowmaker" but when I type in
> echo "exec windowmaker" > ~/.xinitrc and use "startx"
> it can't find windowmaker how do I make windowmaker
> start? thanks.

"pkg_info -L windowmaker\*" will show you that the windowmaker executable
is not named "windowmaker", but rather "wmaker".

-- 
Conrad J. Sabatier <[EMAIL PROTECTED]> -- "In Unix veritas"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Gnome port

2006-02-05 Thread Conrad Sabatier

On 05-Feb-2006 Christopher Sean Hilton wrote:
> Is there a reason that the gnome 2 ports don't use the conflicts
> mechanism to avoid completely hosing an existing gnome 2 install? On
> Friday I came across a gimp script-fu which would slice an image into
> pieces and output html that rendered the complete image as a
> table. But it was written in python and my gimp doesn't understand
> python-fu. Well I figured that it would be a simple matter to:
> 
>  # cd /usr/ports/graphics/gimp; make config
> 
> and tell the the port that I wanted to use python plugins. And then a
> simple:
> 
>  # make
> 
> would either build the package or _harmlessly_ barf trying. Well, it
> did barf but only after it had installed gnome2-vfs-2.12.x.x or
> sumsuch and about 5 or six other gnome2-2.12 ports on top of my
> working gnome2-2.10.x.x installation. Obviously this rendered the
> installed gnome2-2.10 ports on my box inoperable in very difficult to
> debug ways.
> 
> Would a CONFLICTS entry in the apropriate make files have stopped the
> gnome overbuilds and left my system in a working state?

I believe you might have avoided this sort of problem if you had used
portinstall (portupgrade) to add the new package.  In that case,
portupgrade would have detected that newer versions of some of your
existing GNOME ports were available, and rather than simply installing the
new versions on top of the old, it would have upgraded the already installed
ports to the newer versions.

> Also please don't get me wrong. I planned to update my laptop from
> 5.4-STABLE to 6.0-STABLE later this week.

That's really beside the point in this case.  The same thing could have
happened regardless of which FreeBSD version you were running at the time.

> But this problem means that
> I'm without my laptop for a client visit and mailserver build which is
> not making me very happy.

Sorry to hear that.  But we've all made our share of these types of
mistakes on the path to greater knowledge, wisdom and understanding.  :-)
 
> Thanks
> -- Chris
> 
> P.S. I glad to post a bug report an fling this email in the direction
> of the port maintainers. Heck I think I could even script the process
> of updating the Makefiles given enough time.

I'm not sure if the behavior you witnessed could rightly be called a "bug",
but it certainly could be considered an issue worth addressing.  Obviously,
running "make install" instead of using portupgrade can be a risky
proposition in some cases, and at the very least, the handbook should make
this clear.

-- 
Conrad J. Sabatier <[EMAIL PROTECTED]> -- "In Unix veritas"

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


Re: Alternative to Running Portupgrade -rf In Upgrade of expat2

2006-02-04 Thread Conrad Sabatier

On 04-Feb-2006 [EMAIL PROTECTED] wrote:
> On 2/4/06, Bob Perry <[EMAIL PROTECTED]> wrote:
>> /usr/ports/UPDATING recommends that users of textproc/expat2
>> run portupgrade -rf textproc/expat2 to properly update expat2 and all of
>> its dependencies.  Am I correct in that I should be able to run
>> portupgrade on the dependencies individually once identified?
> 
> Yes.  Tediously.  I have about 74 things that depend on expat.
> Or you could ignore the whole thing until something important
> depending on expat needs upgrading and do the mess then.
> Firefox might count as this, maybe X.  Both of which seem to
> have updates this last week.
> 
>> I have 48 dependencies on one box and 151 on another and only use a
>> dialup service.  Disconnections are common and can be a real problem in
>> this situation.
> 
> Shouldn't matter for most of them if you didn't delete your distfiles
> as they are merely(!) being rebuilt with expat 2.  If you deleted your
> distfiles, or close with make distclean you will have to download
> them anew, sadly.

Good point.  This is why I *never* use the "distclean" target.  Instead, I
do a periodic "portsclean -CDD" (man portsclean).

-- 
Conrad J. Sabatier <[EMAIL PROTECTED]> -- "In Unix veritas"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: Alternative to Running Portupgrade -rf In Upgrade of expat2

2006-02-04 Thread Conrad Sabatier

On 04-Feb-2006 Bob Perry wrote:
> /usr/ports/UPDATING recommends that users of textproc/expat2
> run portupgrade -rf textproc/expat2 to properly update expat2 and all of 
> its dependencies.  Am I correct in that I should be able to run 
> portupgrade on the dependencies individually once identified?

Sure, you could upgrade the dependent ports manually, if you wish.

I'd suggest doing a "pkg_info -R gettext\*" and saving the resulting list
of dependencies, so you'll have an easy reference.

> I have 48 dependencies on one box and 151 on another and only use a 
> dialup service.  Disconnections are common and can be a real problem in 
> this situation.

Are the two boxes networked together?  If so, you could have the distfiles
directory on one machine and mount it on the other via NFS, thereby
avoiding the need to download to each machine separately.

-- 
Conrad J. Sabatier <[EMAIL PROTECTED]> -- "In Unix veritas"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: question of kernel options

2006-01-30 Thread Conrad Sabatier

On 29-Jan-2006 gahn wrote:
> Hi:
> 
> Where can I find the list of all options of kernel
> file for freebsd 5.4?
> 
> Thanks

/usr/src/sys/conf/NOTES for cross-platform options

/usr/src/sys/${ARCH}/conf/NOTES for architecture-specific options

-- 
Conrad J. Sabatier <[EMAIL PROTECTED]> -- "In Unix veritas"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Mount point's drwxrwxrwt permissions change when device is mounted (5.4-STABLE, amd64)

2005-07-22 Thread Conrad Sabatier
On Wed, Jul 20, 2005 at 10:31:22PM -0400, Chris Hill wrote:
> On Wed, 20 Jul 2005, Conrad J. Sabatier wrote:
> 
> >The mount point, branching off of the root (/) directory and owned by
> >root:wheel, is setup with the correct permissions (chmod 01777) prior
> >to mounting the device, but immediately changes once the device is
> >mounted.
> 
> [...]
> 
> >I've even tried a kernel with "options SUIDDIR", added "suiddir" to the
> >mount point's options in /etc/fstab, and enabled the suid and guid
> >bits in the directory's permissions, but to no avail.  It *still* gets
> >reset to drwxr-x-r-x.
> 
> This sounds like something to do with devfs, since the device files get 
> created and destroyed as the devices themselves come and go. Look into 
> man devfs, also the files devfs.conf and devfs.rules.

Thanks, I'll look into your suggestions.

-- 
Conrad J. Sabatier <[EMAIL PROTECTED]> -- "In Unix veritas"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Questions about "no window found" error

2005-07-19 Thread Conrad Sabatier
On Mon, Jul 18, 2005 at 10:03:21AM +0800, Kun Niu wrote:
> Dear freebsd users,
> 
> I've got such a strange question.
> I can start my xwindow.
> But each time I use mozilla bundled with my 5.3 release.
> I found the error "no window found error"

This is normal, and is not really an error per se.  The Mozilla port is 
actually run from a script, which first checks for an already running 
instance before launching a new browser.

> It also strange that I can start x, but I can't get startkde run.
> I really installed kde on my computer.
> Can anyone give any hints?

If you could post the error messages you're getting when you try to start 
KDE, perhaps someone could tell you what's wrong.

-- 
Conrad J. Sabatier <[EMAIL PROTECTED]> -- "In Unix veritas"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems after CVSUP

2004-05-28 Thread Conrad Sabatier

On 29-May-2004 Edward Carmody wrote:
> Not quite a newbie, but not very good either, apparently. :(  I did a cvsup
> last night, following instructions from the handbook, and hosed up my box.
> 
> =
> [EMAIL PROTECTED] /home/ecarmody] $ uname -a
> FreeBSD oberon.hudsonvalleynetworks.com 5.2.1-RELEASE-p7 FreeBSD
> 5.2.1-RELEASE-p7 #0: Thu May 27 19:57:55 EDT 2004
> root@:/usr/obj/usr/src/sys/GENERIC  i386
> [EMAIL PROTECTED] /home/ecarmody] $
> =
> 
> I should not be running 5.2.1-RELEASE due to my inexperience, I know, but
> need to in order to support my IDE controller.  I was using the box for www,
> sendmail, tacacs, ntp, syslog, samba, for my home network, and just trying
> to learn UNIX a la FreeBSD.  
> 
> My immediate issues are these:
> At boot, ntpd hangs, holding up the rest of the startup process.  If I kill
> it with a ctrl-c, sendmail then does some funky things, and also hangs.  
> 
> ===
> /var/log/ntp shows:
> [EMAIL PROTECTED] /var/log] # cat ntp.log 
> 28 May 23:53:37 ntpd[609]: ntpd exiting on signal 15
> 28 May 23:56:37 ntpd[409]: ntpd exiting on signal 2
> [EMAIL PROTECTED] /var/log] #
> 
> which I think is from me killing it via ctrl-c
> ===
> 
> So, to workaround temporarily, I commented out ntpd_enable="YES" in rc.conf.
> Ntpd obviously doesn't hold up my boot anymore but sendmail does.  
> 
> ===
> Starting sendmail.
> safefile(etc/mail/services.switch, uid=0, gid=0, flags=6480, mode=400):
> safedirpath(/etc/mail, uid=0, gid=0 flags =6580, level=0, offset=0):
>   [dir /etc/mail] OK
>   No such file or directory
> 
> Then I get similar lines for /etc/mail/submit.cf, etc/mail/relay-domains,
> The last line is:
> Recipient names must be specified
> 
> I can't seem to find the output I'm seeing in /var/log/messages or
> /var/log/maillog, so I've hand-typed in the bit above.
> 
> /var/log/maillog has lots of:
> May 29 00:00:05 oberon sm-msp-queue[436]: i4S2ug7P087593: to=root,
> ctladdr=root (0/0), delay=1+01:03:23, xdelay=00:00:00, mailer=relay,
> pri=4980184, relay=[127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused
> by [127.0.0.1]
> 
> which also started after my cvsup last night.  
> ===
> 
> 
> Not sure what else to provide.  Any direction on how to 'shoot and fix this
> wins a free beer next time you're in NYC.  Thanks...

Did you forget to run mergemaster?

When updating via cvsup, you should *always* do the following:

1) cvsup
2) make buildworld
3) make buildkernel
4) make installkernel
5) reboot in single-user mode
6) run mergemaster -p
7) make installworld
8) run mergemaster

Then, double-check /etc/rc.conf against /etc/defaults/rc.conf to see if there
are any important changes in startup functionality.  Then, and only then,
should it be safe to reboot.

If you've merged in any changes under /etc/mail, you should also cd /etc/mail
and make all install before rebooting as well.

HTH

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"

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


Re: best cd ripping option.

2004-05-08 Thread Conrad Sabatier

On 05-May-2004 Lex Hider wrote:
> OK, there are 2 things I'd like help with:
> 
> 1)
> What's the recommended or best way for ripping audio
> CDs in FreeBSD-5.X? That is putting music CD to HD for
> encoding ogg/flac/mp3 etc.
> 
> cdparanoia/cdda2wav/dagrab or "dd"ing /dev/acd0tX?

I've been using the "dd" method ever since it first became available.  Have
never had a need for anything else since.

Just be aware that, for encoding from the resulting raw pcm data to mp3 or
whatever other format, you'll need to let the encoder know to reverse the
endianness, else all you'll wind up with is static.

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"

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


MS Excel/Word compatible ports?

2004-04-13 Thread Conrad Sabatier
I know, I know, I could probably find the answer to this question myself, but I
thought I'd save myself the time and trouble.  :-)

Does anyone know of any ports in the ports collection that can read/write/edit
MS Excel/Word files?  I need this for a project I've been assigned at work.

Thanks!

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"

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


Re: Athlon

2004-02-29 Thread Conrad Sabatier

On 29-Feb-2004 Teilhard Knight wrote:
> Just a couple of easy questions for you. Is a machine with an Athlon
> processor 1.4 MHz an i386 machine? And if so, what kind of processor should
> I select in my kernel? i586, or i686?

I use an Athlon here, myself.

In my kernel config, I have:

machine i386

cpu I686_CPU# aka Pentium Pro(tm)

options CPU_DISABLE_5X86_LSSER
options CPU_FASTER_5X86_FPU
options CPU_UPGRADE_HW_CACHE
options CPU_WT_ALLOC
options NO_MEMORY_HOLE

And in /etc/make.conf:

CPUTYPE?=k7
CFLAGS= -O -pipe
COPTFLAGS= -O -pipe

HTH.

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"

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


Re: Still no handbook

2004-02-08 Thread Conrad Sabatier

On 08-Feb-2004 stan wrote:
> I'm still trying to get my missing handbook back.
> 
> I added teh doc cvsup file to teh set I processes with teis weekends cvsup
> run, on teh machine I want this on. Ran cvsup, make buildowrld, amke
> buildkernel, make installworld, make isntallkernel, and mergemaster.
> 
> But, still no handbook. Is he a make doc target I need to run?

The handbook, etc. are not built via make world.  You have to make them
separately under /usr/doc:

cd /usr/doc
make
make install

Be sure to set DOC_LANG to your desired language(s) before you begin.  You can
add this to /etc/make.conf.

You'll also need to have the complete docproj port installed.

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: MP3 + Create Music CD

2004-02-08 Thread Conrad Sabatier

On 08-Feb-2004 Lowell Gilbert wrote:
> 
> Or if you're looking to create an audio CD out of the mp3s, you
> convert them to audio files first.  I use mpg123 to do that (it
> creates .wav files) and then use cdrecord to burn them to CD (burncd
> doesn't know about the headers in a .wav file), but there are a lot of
> other ways to do it.

You can also convert directly to raw pcm files (basically wav files without the
header), which you can then burncd to disc.  This is how I do it myself.

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Smarter 'make buildkernel'?

2003-03-31 Thread Conrad Sabatier

On 31-Mar-2003 Erik Trulsson wrote:
> On Sun, Mar 30, 2003 at 04:21:57PM -0800, Paul Hoffman wrote:
>> Hi again. Is there a way to get 'make buildkernel' in /usr/src to not 
>> rebuild things that it already compiled? I'm playing around on a 
>> not-very-fast laptop, and the rebuilds take forever.
> 
> 'make -DNOCLEAN buildkernel' should do the trick.

That should be -DNO_KERNELCLEAN.

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: is our printf(1) behavior correct w.r.t \0 escapes?

2003-01-28 Thread Conrad Sabatier

On 28-Jan-2003 John Reynolds~ wrote:
> 
> [ On Tuesday, January 28, Conrad Sabatier wrote: ]
>> 
>> Unless it's already been done.  :-)  Can you check the RCS Id in
>> /usr/src/usr.bin/printf/printf.c?  Here's what I have:
>> 
>> $FreeBSD: src/usr.bin/printf/printf.c,v 1.26 2002/09/04 23:29:05 dwmalone
>> Exp $
>> 
>> Now, if we have identical versions, we have a bona fide mystery on our hands
>> here.  :-)
>> 
> 
> Well, this is what I have:
> 
>   "$FreeBSD: src/usr.bin/printf/printf.c,v 1.12.6.6 2002/04/29 16:45:16
> jmallett
> 
> according to the CVS repo, 1.26 has RELENG_5_0* tags as well as "HEAD" while
> the latest on the RELENG_4 branch is still what I have--1.12.6.6.

Ah, OK.  So there *is* a difference.  I can't imagine there being anything
unsafe about using the 5.0 version under -stable.  But it would be best to
confirm this.  Perhaps you should file a PR?

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: is our printf(1) behavior correct w.r.t \0 escapes?

2003-01-28 Thread Conrad Sabatier

On 28-Jan-2003 John Reynolds~ wrote:
> 
> [ On Tuesday, January 28, Conrad Sabatier wrote: ]
> 
>> It may very well be that printf (or libc?) has a bug under -stable.  Are you
>> using any unusual optimization settings in /etc/make.conf, by the way?  When
>> did you last upgrade?
> 
> nope, nothing unusual.
> 
>  CFLAGS= -O -pipe
> 
> The last time I updated and installed world/kernel was Dec 26th of 2002
> (4.7-STABLE). 
> 
> Maybe if it's not a libc problem but just a printf(1) src problem we could
> get an MFC done ...

Unless it's already been done.  :-)  Can you check the RCS Id in
/usr/src/usr.bin/printf/printf.c?  Here's what I have:

$FreeBSD: src/usr.bin/printf/printf.c,v 1.26 2002/09/04 23:29:05 dwmalone Exp $

> Thanks for the info. At least we know that -current acts like other OS's.

Now, if we have identical versions, we have a bona fide mystery on our hands
here.  :-)

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: is our printf(1) behavior correct w.r.t \0 escapes?

2003-01-28 Thread Conrad Sabatier

On 28-Jan-2003 John Reynolds~ wrote:
> 
> We need to echo a string *and* a NUL character (\0) into a stream so that a
> program that delimits its input by \0 characters will do the right thing.
> 
> He had been doing this via printf(1) like so:
> 
>   % printf "some string\0" | some_process
> 
> however, it never worked under FreeBSD. Upon further inspection, our
> printf(1) does not work like the GNU one with the above string. Consider
> this from a linux box:
> 
>   linux [~]<374>% printf "foo\0bar\0" | od -c
>   000   f   o   o  \0   b   a   r  \0
>   010
> 
> Now the same command from a FreeBSD (4.7-STABLE) box:
> 
>   freebsd [~]<76>% printf "foo\0bar\0" | od -c
>   000f   o   o
>   003

Works fine under -current:

$ printf "foo\0bar\0" | od -c
000f   o   o  \0   b   a   r  \0

> After checking the man pages, I also used a complete octal constant but that
> doesn't work either:
> 
>   linux [~]<376>% printf "foo\" | od -c
>   000   f   o   o  \0
>   004
> 
>   freebsd [~]<77>% printf "foo\" | od -c
>   000f   o   o
>   003

This also works under -current:

$ printf "foo\" | od -c
000f   o   o  \0
004

> I checked our implementation and it seems wrong. The first step done in the
> source code is to interpolate all escape sequences. However, when it does
> this and the octal number happens to be "0", this fact is not "captured"
> later on and that 0 becomes the NULL terminator for the string and nothing
> else is printed after it.
> 
>   linux [~]<379>% printf "foo\0%d" 4 | od -c
>   000   f   o   o  \0   4
>   005
>   
>   freebsd [~]<78>% printf "foo\0%d" 4 | od -c
>   printf: missing format character
>   000f   o   o
>   003

This also works under -current:

$ printf "foo\0%d" 4 | od -c
000f   o   o  \0   4
005

> This behavior has been checked on HP-UX and Solaris and those two systems are
> identical to the Linux one. It seems to me that our printf(1)'s behavior is
> incorrect. Comments?

It may very well be that printf (or libc?) has a bug under -stable.  Are you
using any unusual optimization settings in /etc/make.conf, by the way?  When
did you last upgrade?
 
-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: make clean for /usr/ports fails repeatedly with rm: /usr/ports/net/bind9-dlz/Makefile.inc: Permission denied

2003-01-18 Thread Conrad Sabatier

On 18-Jan-2003 Stacey Roberts wrote:
> Hello,
>  Despite a cvsup'ing a fresh ports tree, "make clean" has been
> failing at the same point for the last two days at the same point:
> ===> net/bind9-dlz
> ===>  Cleaning for libiconv-1.8_2
> ===>  Cleaning for postgresql-7.3.1
> ===>  Cleaning for gettext-0.11.5_1
> ===>  Cleaning for gmake-3.80
> ===>  Cleaning for libgnugetopt-1.2
> ===>  Cleaning for libtool-1.3.4_4
> ===>  Cleaning for openssl-0.9.6h
> ===>  Cleaning for expat-1.95.5
> ===>  Cleaning for bind9-dlz-9.2.1+0.3.0
> rm: /usr/ports/net/bind9-dlz/Makefile.inc: Permission denied
> *** Error code 1
> 
> Stop in /usr/ports/net/bind9-dlz.
> *** Error code 1
> 
> Stop in /usr/ports/net/bind9-dlz.
> *** Error code 1
> 
> Stop in /usr/ports/net.
> *** Error code 1
> 
> Stop in /usr/ports.
> /usr/ports $
> 
> This is what the permissions looks like in this ports dir:
> 
> /usr/ports/net/bind9-dlz $ ls -la
> total 30
> drwxr-xr-x3 root  wheel512 Jan 17 20:11 .
> drwxr-xr-x  647 root  wheel  12288 Jan 17 19:30 ..
> -rw-r--r--1 root  wheel   6551 Jan 16 16:40 Makefile
> -rw-r--r--1 root  wheel 71 Jan 17 20:11 Makefile.inc
> -rw-r--r--1 root  wheel117 Nov 17 21:43 distinfo
> drwxr-xr-x2 root  wheel512 Jan 17 19:29 files
> -rw-r--r--1 root  wheel 55 Aug 30 16:53 pkg-comment
> -rw-r--r--1 root  wheel236 Aug 30 16:53 pkg-descr
> -rw-r--r--1 root  wheel   4990 Aug 30 16:53 pkg-plist
> /usr/ports/net/bind9-dlz $
> 
> Is this what its supposed to be? Let me know what's to be done, or if
> its safe to change the permissions for myself without breaking other
> stuff.
> 
> Thanks in advance.
> 
> Regards,
> 
> Stacey

You would do well to install the portupgrade port, and then do "portsclean -C"
to accomplish the same thing, only much, much faster.

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: watch: fatal: cannot open snoop device

2003-01-14 Thread Conrad Sabatier

On 14-Jan-2003 P. U. Kruppa wrote:
> Hi,
> 
> I try to watch user activities with
># watch [tty]
> but keep receiving
> 
> watch: fatal: cannot open snoop device
> 
> I have recompiled my kernel with
> 
> devicesnp
> 
> as the manual says.
> 
> Any idea what else could be wrong?

You probably just need to make the device files under /dev (assuming you're
not using devfs). 

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: User Mode Linux under Linux emulation

2003-01-12 Thread Conrad Sabatier

On 12-Jan-2003 Rus Foster wrote:
> Hi All,
> I was just debating about trying to install UML under the linux emulation
> and wondered had anyone tried it before? Does it even work or does UML
> rely to much on the linux kernel functionality to work at all under
> FreeBSD?

I'm not sure exactly what the program(s) you're asking about do, but I've
recently been experimenting with things like running rpmfind in a Linux shell
(chroot /compat/linux /bin/bash).  Amazingly, pretty much everything I've
downloaded installs and runs just fine!

Just watch those dependencies.  :-)

-- 
Conrad Sabatier <[EMAIL PROTECTED]> - "In Unix veritas"


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: is there a "replace command" ?

2002-12-02 Thread Conrad Sabatier

On 02-Dec-2002 Malik Bülent wrote:
> On Freebsd4.x
> I have a file. I want to change some expressions with new ones
> For example a file
> touch  /var/qmail/1
> touch  /var/qmail/2
> touch  /var/qmail/3
> touch  /var/qmail/4
> touch  /var/qmail/5
> touch  /var/qmail/6
> I want to change "touch" with "rm"
> How can i replace a newones in stead of a lot of  expressions in a file
> on
> FreeBSD ?
> Which command(s) do i have to use ?

Recent versions of FreeBSD now have a version of 'sed' that can do these
types of replacements "in place", i.e., without the need for a temporary
file:

sed -i -e 's/^touch /rm /' infile

That were a easy one.  :-)

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: dump/restore after filesystem layout changes

2002-12-02 Thread Conrad Sabatier

On 01-Dec-2002 Mark Stosberg wrote:
> On Sun, 1 Dec 2002, Conrad Sabatier wrote:
>>
>> Ok, now on to my question: I'd like to do a full backup on each of my
>> filesystems, zap all the partitions and do a new fdisk/disklabel with
>> more filesystems than I'm currently using.  For example, create a new
>> /home partition instead of using a symlink in / to /usr/home.
>>
>> I'm just wondering if this will present any problems when restoring from
>> backups.  I can't seem to glean this information from the man pages.
> 
> Conrad,
> 
> I did something similar once. I added a new disk that I wanted to
> replace my primary disk, but I wanted the partitioning  a little
> different, like you did. It worked fine for me, copying over one
> partition at a time using "cpio". I imagine then it will work in
> your case as well. If you are interested to know about the process I
> used, you could browse the "disks" section on freebsddiary.org which was
> the basic for my methodology.
> 
>-mark
> 
> http://mark.stosberg.com/

Cool.  I'll definitely check it out.  And if this all goes well, I'll maybe
do a little write-up on the methodology involved that you could use on your
site.

Thanks.

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: dump/restore after filesystem layout changes

2002-12-02 Thread Conrad Sabatier

On 01-Dec-2002 [EMAIL PROTECTED] wrote:
> On Sun, Dec 01, 2002 at 10:40:58AM -0600, Conrad Sabatier wrote:
>>
>> Ok, now on to my question: I'd like to do a full backup on each of my
>> filesystems, zap all the partitions and do a new fdisk/disklabel with
>> more filesystems than I'm currently using.  For example, create a new
>> /home partition instead of using a symlink in / to /usr/home.
>>
>> I'm just wondering if this will present any problems when restoring from
>> backups.  I can't seem to glean this information from the man pages.
> 
> Well it is going to work as long as the directory structure is not
> changed.
> But you will have to be extra carefull with your permissions when you
> backup/restore your files. (what are you going to use for backup?
> dump/restore?)

Yes, I'll be restoring from the backups I just finished making yesterday
using dump/restore (with an ATAPI CD burner, no less; still in awe of
that!).  :-)

I'm thinking it *should* work OK, as long as, as you said, I'm careful with
permissions, and make sure everything gets restored to the right locations
under the new filesystem layout.  I figure mtree(8) should be helpful with
this.

The main reason I want to do this, besides to reclaim some wasted space
from having /, /var, and /tmp partitions that are larger than I really
need, is to make incremental backups easier later on (again, now that I can
finally use dump/restore with my __ATAPI__ CD burner).  :-)

I'll report back later as to how it all went.  Thanks.

Oh, and if anyone's curious as to how I got my CD burner to work with
dump/restore, just let me know.  It was really simple actually.  I'm
running 5.0-CURRENT, by the way, but you -stable users definitely have
something to look forward to very soon (if it hasn't already been MFC'ed). 
:-)

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



dump/restore after filesystem layout changes

2002-12-01 Thread Conrad Sabatier
First of all, I just gotta say: ATAPICAM rocks!!!  I can now use my ATAPI
CD burner with dump/restore!  Awesome!!!

Ok, now on to my question: I'd like to do a full backup on each of my
filesystems, zap all the partitions and do a new fdisk/disklabel with more
filesystems than I'm currently using.  For example, create a new /home
partition instead of using a symlink in / to /usr/home.

I'm just wondering if this will present any problems when restoring from
backups.  I can't seem to glean this information from the man pages.

Thanks!

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: xargs -J

2002-11-25 Thread Conrad Sabatier

On 26-Nov-2002 David S. Jackson wrote:
> Hi,
> 
> I've been trying to use |xargs -J [] mv [] [].suffix
> 
> but to no avail.
> 
> I've tried |xargs -J mv \[\] \[\].suffix and variations but that
> doesn't seem to work either.  It seems to work fine with the -i
> command under GNU xargs, but not under Freebsd.
> 
> An example would be 
> 
> $  touch one two three
> $  ls one two three | xargs -J [] mv [] [].suffix
> 
> I should now have one.suffix two.suffix three.suffix.  At least,
> that's what happens with GNU and the -i \{\}.  (FreeBSD manpage says
> to use -J [] without escapes though.)
> 
> Can anyone lend me a clue here please?

I think what you want here is -I instead of -J.  -I allows for multiple
replacements, whereas -J does not.

Also, I'd suggest using something other than [] as your placeholder, as
those characters have a special meaning in the shell.  Using something
simple, like %, as the man page illustrates.

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: What happened to my ports system?

2002-11-23 Thread Conrad Sabatier

On 22-Nov-2002 Janine C.Buorditez wrote:
> That didn't work :/
> 
> Thanks anyway,
> Janine
> 
> On Fri, 22 Nov 2002 13:30:15 +0100
> Cliff Sarginson <[EMAIL PROTECTED]> wrote:
> 
>> On Fri, Nov 22, 2002 at 02:11:56PM +0100, Janine C. Buorditez wrote:
>> > Hi.
>> > 
>> > This message comes no matter what I do with portupgrade:
>> > 
>> > [Updating the pkgdb  in /var/db/pkg ... - 230
>> > packages found (-7 +1)
>> > (...)/usr/local/lib/ruby/site_ruby/1.6/pkgdb.rb:375: [BUG]
>> > Segmentation fault
>> > ruby 1.6.7 (2002-05-23) [i386-freebsd4]
>> > Abort (core dumped)
>> > 
>> You probably caught it in mid-update .. I had this problem yesterday but
>> in a different place. Try re-cvsupping it and do it again. This happens
>> with stable sometimes.

I ran into this problem once not too long ago.  I think it was the result
of running multiple portupgrades at once, which caused the database to
become corrupted.

Just delete /var/db/pkg/pkgdb.db, then run pkgdb -u again.

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Port managment

2002-11-08 Thread Conrad Sabatier

On 08-Nov-2002 Lefteris Tsintjelis wrote:
> Conrad Sabatier wrote:
>> 
>> On 08-Nov-2002 Lefteris Tsintjelis wrote:
>> > Just to sum it up for the archives
>> >
>> > Conrad Sabatier wrote:
>> >>
>> >> On 07-Nov-2002 Lefteris Tsintjelis wrote:
>> >> > Hi,
>> >> >
>> >> > I have acrually a few questions:
>> >> >
>> >> > 1)How can I find ports that do not depend in any other ports?
>> >>
>> >> pkg_info -ar
>> >
>> > Or, a very nice port (/usr/ports/sysutils/pkg_tree) I just found. It
>> > does the same job with better on screen results. It can even display
>> > dependencies of the dependencies in a nice graphical tree.
>> >
>> > pkg_tree -v
>> 
>> Interesting.  I'll have to have a look at that.
>> 
>> >> > 2)How can I find files that are unused by any port?
>> >>
>> >> /usr/ports/Tools/scripts/check_consistency
>> >
>> > I think /usr/ports/Tools/scripts/consistency-check examines modified
>> > files within /usr/local/bin only.
>> >
>> >> or
>> >>
>> >> pkg_which file(s)
>> >
>> > A better way to examine files in any path would be to use pkg_which -v
>> > Something like "find  -type f | xargs pkg_which -v |
>> > fgrep '?'" would check against any port in any path.
>> 
>> Well, yes, I didn't elaborate any further on this one.  Just wanted to
>> point you in the right direction.  :-)
> 
> Yes, I believe you did. :-)
> 
>> >> > 3)How can I find modified files?
>> >>
>> >> pkg_info -ag
>> >>
>> >> > 4)How can I find missing port files?
>> >>
>> >> Need some clarification as to what you mean.
>> >
>> > I think your previous answer covers this one as well. I meant if any
>> > of
>> > the already installed port files are missing. "pkg_info -ag" displays
>> > results of any modified/missing port files.
>> > Is there a way to also check the system (/bin /sbin ...) for
>> > modified/missing/extra files?
>> 
>> man mtree
> 
> That certainly takes care of that too!
> 
>> >> > 5)_AND_ (yes finally) How can I find missing port dependencies?
>> >>
>> >> pkg_info -I $(pkg_info -arq | cut -d ' ' -f 2)
>> >
>> > I am not sure here if the results are any missing port dependencies. I
>> > get a multiple list of the ports that are already installed.
>> 
>> Well, the idea here is that if a package is missing, an error message
>> will
>> be displayed.  Perhaps a better way to run this would be:
>> 
>> pkg_info -I $(pkg_info -arq | cut -d ' ' -f 2) >/dev/null
>> 
>> So only any errors will actual display.
> 
> I see. There is also a nice sysutil port /usr/ports/sysutils/libchk. It
> checks almost any shared libraries links. I guess that about sums it up.
> Using the above commands, you could check almost everything in your file
> system. Great job, thanks. The idea here is to always be able to check
> the
> whole system against minor data corruption problems or accidental
> deletes or unknown files and file modifications. Is there anything else
> I might be missing? 

I recently hacked together a little script to check for stale symbolic
links:


#!/bin/sh
#
# Check symbolic links to make sure they're valid pointers

if [ $# -eq 0 ]
then
root=/
else
root="$(realpath $1)"
fi

IFS=$(echo -e "\n")

find "$root" -type l | while read link
do
echo -n Checking "$link..."
lp="$(readlink "$link")"
if [ ! -e "$lp" ] && [ ! -e "$(dirname "$link")/$lp" ]
then
echo Bad link: "$link" -- "$lp" does not exist
else
echo OK
fi
done

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Port managment

2002-11-08 Thread Conrad Sabatier

On 08-Nov-2002 Lefteris Tsintjelis wrote:
> Just to sum it up for the archives
> 
> Conrad Sabatier wrote:
>> 
>> On 07-Nov-2002 Lefteris Tsintjelis wrote:
>> > Hi,
>> >
>> > I have acrually a few questions:
>> >
>> > 1)How can I find ports that do not depend in any other ports?
>> 
>> pkg_info -ar
> 
> Or, a very nice port (/usr/ports/sysutils/pkg_tree) I just found. It
> does the same job with better on screen results. It can even display
> dependencies of the dependencies in a nice graphical tree.
> 
> pkg_tree -v

Interesting.  I'll have to have a look at that.

>> > 2)How can I find files that are unused by any port?
>> 
>> /usr/ports/Tools/scripts/check_consistency
> 
> I think /usr/ports/Tools/scripts/consistency-check examines modified
> files within /usr/local/bin only.
> 
>> or
>> 
>> pkg_which file(s)
> 
> A better way to examine files in any path would be to use pkg_which -v
> Something like "find  -type f | xargs pkg_which -v |
> fgrep '?'" would check against any port in any path.

Well, yes, I didn't elaborate any further on this one.  Just wanted to
point you in the right direction.  :-)

>> > 3)How can I find modified files?
>> 
>> pkg_info -ag
>> 
>> > 4)How can I find missing port files?
>> 
>> Need some clarification as to what you mean.
> 
> I think your previous answer covers this one as well. I meant if any of
> the already installed port files are missing. "pkg_info -ag" displays
> results of any modified/missing port files.
> Is there a way to also check the system (/bin /sbin ...) for
> modified/missing/extra files?

man mtree

>> > 5)_AND_ (yes finally) How can I find missing port dependencies?
>> 
>> pkg_info -I $(pkg_info -arq | cut -d ' ' -f 2)
> 
> I am not sure here if the results are any missing port dependencies. I
> get a multiple list of the ports that are already installed.

Well, the idea here is that if a package is missing, an error message will
be displayed.  Perhaps a better way to run this would be:

pkg_info -I $(pkg_info -arq | cut -d ' ' -f 2) >/dev/null

So only any errors will actual display.

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Port managment

2002-11-07 Thread Conrad Sabatier

On 07-Nov-2002 Lefteris Tsintjelis wrote:
> Hi,
> 
> I have acrually a few questions:
> 
> 1)How can I find ports that do not depend in any other ports?

pkg_info -ar

> 2)How can I find files that are unused by any port?

/usr/ports/Tools/scripts/check_consistency

or

pkg_which file(s)

> 3)How can I find modified files?

pkg_info -ag

> 4)How can I find missing port files?

Need some clarification as to what you mean.

> 5)_AND_ (yes finally) How can I find missing port dependencies?

pkg_info -I $(pkg_info -arq | cut -d ' ' -f 2)

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message



Re: Configuring XFree86 - not working...

2002-09-26 Thread Conrad Sabatier


On 26-Sep-2002 MET wrote:
> So I've installed XFree86 (or rather FBSD 4.6.2 did as it came with it).
> I'm updated my ports and my system to -STABLE.  However when I try to
> configure X-Server I get a blue flashy screen that reminds of death (too
> many years on MS I guess).  Any how, I'm attempting to the Handbook (
> http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/x-config.html
> ):
> 
>   # XFree86 -configure
> 
>   # XFree86 -xf86config XF86Config.new
> 
> Instead of the wonderful "black and grey grid and an X mouse cursor" I
> get some retarded shaky blue-ish crap.  My machine is a Dell Inspiron
> 8200 Laptop ( 15 IN SXGA+ || 64MB DDR 4X AGP NVIDIA NV17 3D VIDEO ).
> 
> Any ideas what I have to do in order to get this to work?

Try running "xf86cfg -textmode".

-- 
Conrad Sabatier <[EMAIL PROTECTED]>

Yes, but which self do you want to be?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message