Re: Preventing portmaster from using packages for specified ports

2012-05-08 Thread John Webster


--On May 8, 2012 10:51:16 PM +0100 Mike Clarke  
wrote:

> On Tuesday 08 May 2012, John Webster wrote:
> 
>> Would this work for you?  From the manpage:
>> 
>>      For those who wish to be sure that specific ports are always
>> compiled instead of being installed from packages the
>> PT_NO_INSTALL_PACKAGE vari- able can be defined in the make(1)
>> environment, perhaps in /usr/local/etc/ports.conf if using
>> /usr/ports/ports-mgmt/portconf, or in /etc/make.conf.  This setting
>> is not compatible with the -PP/--packages-only option.
> 
> Yes, that looks like exactly what I need. I don't know how I missed it, 
> I must have searched through the manpage several times and had a total 
> blind spot for that paragraph - sorry for looking so dumb.
> 
> -- 
> Mike Clarke


I know how that is, I've missed stuff in the manpages too.  


> sorry for looking so dumb.

Not dumb.  You had a question and you asked it on freebsd-questions
looking for an answer.  That's smart in my book.  That's what the 
list is for.

Cheers,

jw



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


Re: Preventing portmaster from using packages for specified ports

2012-05-08 Thread John Webster
--On May 8, 2012 9:33:59 PM +0100 Mike Clarke  
wrote:

> 
> I'm happy to use the -P option to let portmaster use packages for most 
> of my ports but there's a few that must be compiled from the port 
> instead because I need to configure non default options, e.g. to enable 
> GIMP plugin support in graphics/xsane
> 
> Is there any way of forcing portmaster to never use packages for certain 
> specified ports?
> 
> -- 

Would this work for you?  From the manpage:

 For those who wish to be sure that specific ports are always compiled
 instead of being installed from packages the PT_NO_INSTALL_PACKAGE vari-
 able can be defined in the make(1) environment, perhaps in
 /usr/local/etc/ports.conf if using /usr/ports/ports-mgmt/portconf, or in
 /etc/make.conf.  This setting is not compatible with the
 -PP/--packages-only option.



pgpBUQ7LBK3b1.pgp
Description: PGP signature


Re: pkdgb and corrupted record(s)

2011-08-12 Thread John Webster


--On August 12, 2011 11:08:01 AM -0700 Kurt Buff  wrote:

> All,
> 
> This seems fairly benign so far, but I find it happening on several
> machines after switching from portupgrade to portmaster. Don't know if
> that switch is actually part of the issue or not, though I'm really
> liking portmaster.
> 
> Anyone have a thought on this?
> 





pgpZ0JBtuDgCM.pgp
Description: PGP signature


Re: .sh check for sufix g or m on size field

2010-07-12 Thread John Webster

--On July 12, 2010 10:29:08 PM +0800 Aiza  wrote:

> Sorry miss send, was not done yet.
> 
> Have a .sh script that accepts an -s sparse file size.
> Only 2 suffix's are valid m and g.
> 
> Been trying to get this line of code to strip out just the single letter. But 
> it strips the letter and every thing to the right of it.
> 
> Timagesize=`echo-n "${imagesize}" | sed 's/g.*$//'`
> 
> I plan to strip just the m or g if its there and the result should be 
> numeric. If not numeric know invalid suffix.
> 
> Need help with the sed syntax. Or if there is better way I want to learn it.
> 
> Thanks

Is this what you want?

sed -n 's/^\([0-9]\{1,\}[gm]\)$/\1/p'

Prints output only if the input begins with digits and ends with g or m.

Or this?

sed -n 's/^\([0-9]\{1,\}\)[gm]$/\1/p'

Prints numeric output only if the input begins with digits and ends with g 
or m.






pgp0dDi9HpJYK.pgp
Description: PGP signature


Re: combining network interfaces

2009-04-09 Thread John Webster
--On April 9, 2009 5:18:26 PM +0200 Frederique Rijsdijk 
 wrote:

> Hello,
> 
> Is there a way in FreeBSD to combine a number of network interfaces to
> one virtual interface on which I can tcpdump all the traffic of those
> interfaces at once?
> 

Take a look at netgraph.  



pgpG4EBL9ulad.pgp
Description: PGP signature


Re: Remote backups using ssh and dump

2008-04-04 Thread John Webster
We use the following in a script to backup our servers.

/bin/ssh -q -o 'BatchMode yes' -l'/sbin/dump -h 0 -0uf - /home \
| /usr/bin/gzip --fast' 2> /path/to/logs//home_full.dump.log
> /backups/_home_full.dump.gz


--On April 4, 2008 12:59:27 PM -0500 Paul Schmehl <[EMAIL PROTECTED]> wrote:

> Has anyone done this?
> 
> I'm presently using rsync over ssh, but I think dump would be better if it 
> will work.  I've been reading the man page, but I'm wondering if anyone is 
> doing this successfully and would like to share their cmdline.
> 
> -- 
> Paul Schmehl ([EMAIL PROTECTED])
> Senior Information Security Analyst
> The University of Texas at Dallas
> http://www.utdallas.edu/ir/security/
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 





pgp99xnQhq6vQ.pgp
Description: PGP signature


Re: Paging Matthew Seaman

2008-01-04 Thread John Webster


--On Friday, January 4, 2008 10:28 AM -0600 Paul Schmehl <[EMAIL PROTECTED]> 
wrote:

>> 
>> du -hd1
> 
> That's not what I'm looking for.  That will return *files* and directories 
> one level deep.  I want directories *only* all levels deep.
> 

Would the following work?

find /path/to/directories -type d -print0 | xargs -0 du -sh


> -- 
> Paul Schmehl ([EMAIL PROTECTED])
> Senior Information Security Analyst
> The University of Texas at Dallas
> http://www.utdallas.edu/ir/security/
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 




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


Re: timekeeping on jail servers

2007-12-21 Thread John Webster


--On Friday, December 21, 2007 13:51:29 -0500 Bill Moran <[EMAIL PROTECTED]> 
wrote:

> In response to John Webster <[EMAIL PROTECTED]>:

>> > Not generally suitable for cron because it can take longer to slew
>> > than it does for the next cron execution to occur, which would then
>> > result in multiple ntpdate programs fighting each other (not sure
>> > what the effect of this would be).
>> 
>> If I were doing it I would write a script with locking in order
>> to ensure multiple jobs don't fight.  Simple.
> 
> Umm 
> 
> At that point, why not just run ntpd?  You've basically replaced it
> with a script anyway.
> 

My suggestions are based on the OP about ntpd binding to everything.


> Besides, it's not that easy.  As Chuck pointed out, ntpdate calls
> adjtime() and exits, which means an adjustment might already be in
> progress when you you call it again.  I don't know if ntpdate checks
> the return pointer from adjtime() to avoid multiple adjustment
> requests.

Just out of curiosity, why run it more that once a day? Or for
that matter every couple of days?





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


Re: timekeeping on jail servers

2007-12-21 Thread John Webster


--On Friday, December 21, 2007 13:24:40 -0500 Bill Moran <[EMAIL PROTECTED]> 
wrote:

> In response to John Webster <[EMAIL PROTECTED]>:
>> 
>> --On December 21, 2007 11:23:03 AM -0500 Bill Moran <[EMAIL PROTECTED]> 
>> wrote:
>> 
>> > In response to shinny knight <[EMAIL PROTECTED]>:
>> > 
>> > The reason that is not recommended is that it results in sudden steps
>> > of the clock.  Occasionally, these steps go backwards.  Software that
>> > is very sensitive to time changes (make processes, database servers,
>> > anything doing calculations WRT time) can break, crash, or work
>> > inaccurately.
>> 
>> ntpdate -B should slew the time slowly.  (According to the manpage.)
> 
> Not generally suitable for cron because it can take longer to slew
> than it does for the next cron execution to occur, which would then
> result in multiple ntpdate programs fighting each other (not sure
> what the effect of this would be).
> 

If I were doing it I would write a script with locking in order
to ensure multiple jobs don't fight.  Simple.


Happy Holidays!

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


Re: timekeeping on jail servers

2007-12-21 Thread John Webster


--On December 21, 2007 11:23:03 AM -0500 Bill Moran <[EMAIL PROTECTED]> wrote:

> In response to shinny knight <[EMAIL PROTECTED]>:
> 
> The reason that is not recommended is that it results in sudden steps
> of the clock.  Occasionally, these steps go backwards.  Software that
> is very sensitive to time changes (make processes, database servers,
> anything doing calculations WRT time) can break, crash, or work
> inaccurately.
> 


ntpdate -B should slew the time slowly.  (According to the manpage.)


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


Re: Two questions about UNIX(r) certification.

2007-10-18 Thread John Webster


--On Thursday, October 18, 2007 13:49:07 + "Aryeh M. Friedman" <[EMAIL 
PROTECTED]> wrote:


>>> From here:
>> 
>> http://www.apple.com/macosx/features/300.html#unix
>> 
>> Mac OS X is now a fully certified UNIX operating system, conforming to
>> both the Single UNIX Specification (SUSv3) and POSIX 1003.1. Deploy
>> Leopard in environments that demand full UNIX conformance and enjoy
>> expanded support for open standards popular in the UNIX community such
>> as the OASIS Open Document Format (ODF) or ECMAs Office XML.
> 
> This is complete and total fluff unless they say who certified it.   And
> no one has legit claim to be able to do that.








pgpuIPMgzwJjC.pgp
Description: PGP signature


Re: doubts about the freebsd devil

2007-08-30 Thread John Webster


--On Thursday, August 30, 2007 19:53:50 -0300 Nélio Mesquita <[EMAIL 
PROTECTED]> wrote:

> Hello to all!
> Just for curiosity, why the FreeBSD logo is a little devil? Is there a
> history around it?
> 
> Thank you!

Sort of answers your question.  (Implied and explicit.)



pgp3poAuy0Wgl.pgp
Description: PGP signature


Re: still generating sendmail.st log using postfix

2007-06-21 Thread John Webster

--On Thursday, June 21, 2007 16:26:58 -0400 Bob <[EMAIL PROTECTED]> wrote:

> I am using postfix and have sendmail_enable="NONE" and I 
> see sendmail.st log file filling up and being rotated.
> 
> Why is the sendmail.st  file still be used with postfix?
> 
> Is there some thing else I have to do to stop sendmail.st file?
> 


By the way, shouldn't that be sendmail_enable="NO"?


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


Re: Interesting Change In ssh Behavior

2007-06-19 Thread John Webster


--On Tuesday, June 19, 2007 15:15:25 -0500 Tim Daneliuk <[EMAIL PROTECTED]> 
wrote:

> Bill Moran wrote:
>> In response to Tim Daneliuk <[EMAIL PROTECTED]>:
>> 
>>> Bill Campbell wrote:
 On Tue, Jun 19, 2007, Tim Daneliuk wrote:
> I just recently update one 6.2 and one 4.11 machine to the latest stable
> sources and built world.  Now, for some odd reason, I cannot tunnel X
> via ssh from remote clients.  Did the defaults for sshd change lately
> or is there some other culprit?
 First make sure that the sshd_config file on the server machine
 has ``X11Forwarding yes'' set.
 
>>> Nope, that's not it. I did set it manually and restarted sshd (even though 
>>> I believe
>>> this is the default).  Still no go...
>> 
>> Are you using the -Y option to ssh when you connect?
>> 
> 
> I've tried both -X and -Y - neither work.  This *used* to work, so I am 
> trying to
> determine if this is a "me" problem or if some default changed somewhere in 
> the
> source tree that may be causing me grief...


What does ssh'ing with verbose mode show?




pgpffg4nlF3cD.pgp
Description: PGP signature


Re: NTPd not syncing time correctly - No errors either

2007-05-31 Thread John Webster


--On Thursday, May 31, 2007 19:02:47 -0400 Schiz0 <[EMAIL PROTECTED]> wrote:

> Hey,
> 
> I'm running a dev server in VMWare (On a WindowsXP host) just to screw
> around with some things. Running FreeBSD 6.2-STABLE. VMWare causes the clock
> in FreeBSD to be a inaccurate; it loses about 2 hours every 24 hours.
> 
> I read the handbook entry on the NTP daemon which automatically syncs the
> clock. Previously I was using cron to run ntpdate every 2 hours.
> 
> I set NTPd to update using NTP.org's pool servers. Yet it isn't syncing. I
> setup NTPd last night. I checked about 20 minutes ago and the time was off
> by 2 hours. I shutdown ntpd and ran ntpdate manually, and it updated just
> fine.
> 
> My logs have only this:
> /var/log/messages:May 30 23:04:19 Jupiter ntpd[489]: ntpd 4.2.0-a Mon May 28
> 23:49:40 EDT 2007 (1)
> /var/log/messages:May 30 23:04:19 Jupiter ntpd[489]: no IPv6 interfaces
> found
> /var/log/messages:May 31 16:41:50 Jupiter ntpd[489]: ntpd exiting on signal
> 15
> 
> The first two came up as soon as I started NTPd. The third one was when I
> stopped it. I rebuild world without IPv6 support. I tried adding the -4 flag
> to ntpd_flags in /etc/rc.conf as it says in the man page, but NTPd reports
> that -4 doesn't exist.
> 
> While NTPd is running, I ran "ntpq -np" to display the peers. It did output
> the four servers from pool.ntp.org, so it's connecting fine.
> 
> My /etc/rc.conf contains:
> ntpd_enable="YES"
> ntpd_sync_on_start="YES"
> ntpd_flags="-p /var/run/ntpd.pid -f /var/db/ntpd.drift -g"
> 
> Anyone know how I can fix this? Or should I just go back to running ntpdate
> with cron?
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 



"NTP was not designed to run inside of a virtual machine. It requires a high 
resolution system clock, with response times to clock interrupts that are 
serviced with a high level of accuracy. No known virtual machine is capable of 
meeting these
requirements.

Run NTP on the base OS of the machine, and then have your various guest OSes 
take advantage of the good clock that is created on the system. Even that may 
not be enough, as there may be additional tools or kernel options that you need 
to enable so that
virtual machine clients can adequately synchronize their virtual clocks to the 
physical system clock. "




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


Re: completly remove (or modify) a port

2007-04-18 Thread John Webster
Look in /var/db/ports.  Removing the postfix directory or
the options file in that directory should do the trick.

jw


--On Wednesday, April 18, 2007 12:16:28 -0600 Ray <[EMAIL PROTECTED]> wrote:

> Hello all,
> I have been trying to work with postfix from the ports collection.
> I need to rebuild it to include mysql support. I tried 
># make deinstall
> but a subsequent
># make install 
> doesn't give me the options screen.
> what is the way to either remove the stored configuration file, or to 
> manually 
> pass the parameters to make.  A look at the Makefile and the other files 
> in /usr/ports/mail/postfix didn't turn up any hints.
> Thanks,
> Ray
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 




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


Re: NTPD not keeping time

2006-12-01 Thread John Webster


--On Friday, December 01, 2006 10:23:17 -0800 Chuck Swiger <[EMAIL PROTECTED]> 
wrote:

> On Dec 1, 2006, at 9:56 AM, Kris Anderson wrote:
>> Darn the system time strayed over night. One thing I
>> failed to mention is that freebsd is running on a
>> virtual machine.
> 
> Sigh-- you're right, you should have mentioned this before.
> 
> One should not attempt to change the clock from within a virtual  machine at 
> all, only in the parent or host OS.  VMs depend on the  host OS to provide 
> the timekeeping, and it is known that systems  running inside a VM may 
> experience timing glitches as
> a result of  running inside the machine emulation.





pgpMohInQAgxV.pgp
Description: PGP signature


Re: deleting with wildcards over ssh ... how ?

2006-08-30 Thread John Webster
--On Wednesday, August 30, 2006 11:06:39 -0400 Ensel Sharon <[EMAIL PROTECTED]> 
wrote:

> 
> I want to delete some remote files with a wildcard, running 'rm' over ssh.
> 
> The obvious syntax doesn't work at all - it doesn't even make an ssh
> connection - I think it is interpreting the wildcard locally:
> 
># ssh [EMAIL PROTECTED] rm -rf /some/testdir/*
> ssh: No match.
> 
> Then, these combinations of single and double quotes:
> 
> ssh [EMAIL PROTECTED] 'rm -rf /some/testdir/*'
> 
> ssh [EMAIL PROTECTED] rm -rf '/some/testdir/*'
> 
> ssh [EMAIL PROTECTED] 'rm -rf "/some/testdir/*"'
> 
> All connect over ssh, and produce no errors, but the remote files are
> still there - nothing was deleted.
> 
> So what is the _right_ way to do this ?
> 
> Thanks.
> 


How about:

ssh [EMAIL PROTECTED] rm -rf /some/testdir/\* 






pgpG0YjshePL9.pgp
Description: PGP signature


Re: find not finding file.

2006-04-27 Thread John Webster


--On Thursday, April 27, 2006 18:43:01 +0100 RW <[EMAIL PROTECTED]> wrote:

> Can anyone explain this:
> 
># find /etc/ -name 'named.conf'
># ls -l /etc/namedb/named.conf
>-rw-r--r--  1 root  wheel  3715 Nov 13 17:35 /etc/namedb/named.conf
> 

/etc/namedb is a link to another directory, don't use the trailing
/ in the ls -ld.  So, in this case, you need to add -follow to find.

# ls -ld /etc/namedb 
lrwxr-xr-x  1 root  wheel  21 Apr 27 08:48 /etc/namedb@ -> 
/var/named/etc/namedb 

# find /etc/ -follow -name 'named.conf'
/etc/namedb/named.conf


> named.conf is not found, but as a sanity check a similar search for ppp.conf 
> succeeds  
> 
># find /etc/ -name 'ppp.conf'
>/etc/ppp/ppp.conf
> 
> there is nothing odd about the directories: 
> 
># ls -dl  /etc/namedb/  /etc/ppp/
>drwxr-xr-x  5 root  wheel  512 Nov 13 17:35 /etc/namedb/
>drwxr-xr-x  2 root  wheel  512 Feb  8 17:36 /etc/ppp/
> 
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 





pgpyoHBgoqLzT.pgp
Description: PGP signature


Re: IP Routing Question

2006-02-14 Thread John Webster


--On Tuesday, February 14, 2006 11:40:45 -0800 Drew Tomlinson <[EMAIL 
PROTECTED]> wrote:

> On 2/14/2006 11:17 AM Steve Douville wrote:
>> Weird stuff...
>> route add -host aaa.bbb.ccc.209 aaa.bbb.ccc.196 -ifp em1
>>   

Shouldn't this be:
route add -host aaa.bbb.ccc.ddd aaa.bbb.ccc.209

Where aaa.bbb.ccc.ddd is not the other gateway (aaa.bbb.ccc.196)
I.e, aaa.bbb.ccc.ddd should be an address on the switch aaa.bbb.ccc.209

Maybe even adding ' -interface ' at the end of the command.
[man route]

jw

> 
> What happens if you leave off the "-ifp em1"?
> 
> Cheers,
> 
> Drew


pgpQYBrxCeXFx.pgp
Description: PGP signature


Re: updating perl

2005-06-25 Thread John Webster
Read /usr/ports/UPDATING:

20050624:
  AFFECTS: users of lang/perl5.8
  AUTHOR: [EMAIL PROTECTED]

  lang/perl5.8 has been updated to 5.8.7.  You should update
  everything depending on perl.  The easiest way to do that is
  to use perl-after-upgrade script supplied with lang/perl5.8.
  Please see its manual page for details.



--On Saturday, June 25, 2005 12:45:37 -0400 dave <[EMAIL PROTECTED]> wrote:

> Hello,
> Trying to update my perl port from 5.8.6 to 5.8.7. The updating of perl
> itself went fine, but all the dependent ports on it like swatch, php, etc.
> previously referenced modules that were included in 5.8.6, now they're not
> working. What extra step do i do?
> Thanks.
> Dave.
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
> 





pgpjECJ5RqTXO.pgp
Description: PGP signature


Re: gnome problem

2004-11-22 Thread John Webster
Antoine,

You need to comment out the following in /etc/X11/XF86Config:
   Option "XkbRules" "xfree86"

See /usr/ports/UPDATING


jw

--On Monday, November 22, 2004 13:43:18 -0500 Antoine Solomon <[EMAIL 
PROTECTED]> wrote:

> When first running gnome I get this error window popping up.  
> 
> Error activating XKB configuration.
> Probably internal X server problem.
> 
> X server version data:
> The X.Org Foundation
> 6070
> 
> If you report this situation as a bug, please include:
> - The result of xprop -root | grep XKB
> - The result of gconftool-2 -R /desktop/gnome/peripherals/keyboard/xkb
> 
> I am not sure where or even how I am able to deal with this problem...
>   Could this be in the xorg config file?





pgplA7RTA9ln9.pgp
Description: PGP signature