Re: Question about forcing fsck at boottime

2009-03-31 Thread RW
On Tue, 31 Mar 2009 16:00:18 +0530
manish jain  wrote:

> As for the reason why I want to force fsck is that it has now
> happened 3 timed that, after a clean and proper shutdown - with no
> foreign filesystems mounted, FreeBSD has complained on system restart
> (twice on a 5.x distribution I had briefly used and now once on 7.1)
> that / was not properly unmounted. Having bgfsck enabled is like
> inviting a dragon to dinner when this happens.

If you've done a normal install, soft-updates aren't enabled on /,
so it will get foreground checked by default. 

If I were you I'd reboot into single user mode and do a full fsck on it.
___
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: Question about forcing fsck at boottime

2009-03-31 Thread RW
On Tue, 31 Mar 2009 08:15:54 +0200
Mel Flynn  wrote:

> On Tuesday 31 March 2009 08:05:11 manish jain wrote:
> 
> > I am migrating from Linux and am still learning the basics of
> > FreeBSD. One thing that I would to carry over from my Linux days is
> > to force an fsck on all filesystems at system startup. On Linux,
> > this was simply a matter of editing /etc/rc.sysinit. Things seem a
> > bit more complicated in the BSD world. Can somebody please point me
> > in the right direction ?
> 
> fsck -p is done by default (meaning, filesystems are not fully
> scanned if they are marked clean). If pruning fails, background_fsck
> is checked, which will work on UFS systems with soft updates, but is
> not recommended by many as it may leave some errors unchecked.


I don't think that's quite right,  fsck -p is only done if
background_fsck=NO, otherwise an fsck -pF is done instead. The
latter does an fsck -p on filesystems that aren't eligible for
background checking - usually root and any none UFS filesystems. 

In other words you need to set background_fsck=NO to get a preen on
all filesystems.

___
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: nvidia-drivers crash computer on X start

2009-03-28 Thread RW
On Sat, 28 Mar 2009 13:53:43 +0100
Anders Holmström  wrote:

> The current xorg.conf I'm using is listed below. It was generated with
> X -configure. I've used many different xorg.confs, but they've all
> more or less been using the same settings as below,

I don't know if it will help, but the nvidia driver has its own utility
for generating xorg.conf:

x11/nvidia-xconfig





___
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: Problem with Gmail/Evolution and IPFW

2009-03-27 Thread RW
On Fri, 27 Mar 2009 22:01:51 +0100
Roy Stuivenberg  wrote:

> Hello, 
> 
> I'm having a problem with Gmail and IPFW. 
> Gmail is configured in Evolution.
> 
> 
> When I can't send mail (with attachment), I 
> have to disable IPFW, and at that point I'm able to send mail.

This sounds like it could be a path mtu discovery problem; try adding
the following: 

allow icmp from any to any icmptypes 3
___
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: WINE installation problem

2009-03-26 Thread RW
On Thu, 26 Mar 2009 07:20:38 +0100
"Alain G. Fabry"  wrote:

> Hi,
> 
> My WINE was running fine, but while performing a portupgrade I got an
> error message. So I decided to remove WINE and reinstall. Now I can't
> install it either. 

If you ever do that again, make a package first.

> I get the following message
> ===>  wine-1.1.17,1 builds, but fails upon startup.
> *** Error code 1
> 
> Stop in /usr/ports/emulators/wine.

I'd suggest you either get an old package of wine, or install
portdowngrade and use it to take the wine port back to a previous
version. wine-1.1.16,1 works for me.
___
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: mount 2nd HD containing running Freebsd system

2009-03-25 Thread RW
On Wed, 25 Mar 2009 17:55:50 +0800
Fbsd1  wrote:

> I have run out of space on my running 7.1 system. I have a 2nd HD 
> containing 6.1 that I want to mount and use the 80gb /usr slice.
> 
> What is the mount command to use?
> 
> Thinking   mount /dev/ad1 /mnt  but un-sure how this handles the 6.1 
> slices on that HD.

You need to mount the bsd partition[s] not the whole disk.
Probably something like /dev/ad1s1d 

I'd suggest you re-label it and put a new filesytem on it if you can. 
___
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: updated "world" to CURRENT, how to update ports to CURRENT?

2009-03-24 Thread RW
On Tue, 24 Mar 2009 11:21:10 +0100
Matthias Apitz  wrote:

> El día Tuesday, March 24, 2009 a las 10:07:14AM +, Bruce Cran
> escribió:
> 
> > The ports tree isn't versioned like /usr/src; 'portsnap fetch' will
> > always fetch the latest copy from cvs mainline, and the only way to
> > go back to a branch (e.g RELENG_5_5_0) is by using csup, which you
> > would only really want to do if you're using a release of FreeBSD
> > which has gone out of support, such as 5.x.
> 
> What made me worry about this was reading
> 
> http://www.freebsd.org/ports/index.html
> 
> The Ports Collection supports the latest release on the
> FreeBSD-CURRENT and FreeBSD-STABLE branches

You should still rebuild all your ports, since you have crossed a major
version boundary. 

___
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"


sa-compile's bsdpan package

2009-03-23 Thread RW

I see that when I run Spamassassin's sa-compile it generates a bsdpan
package. Is there any way of preventing this? 
___
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: portupdate xorg-server

2009-03-21 Thread RW
On Sat, 21 Mar 2009 00:39:31 -0500
Adam Vande More  wrote:

> RW wrote:
> >
> > IMO this doesn't make any sense. If portupgrade is failing on a port
> > where manual "make install" works, then portupgrade simply has a
> > bug. Any port upgrading tool belongs in a port, because it's more
> > important that it responds to changes in the ports system than
> > changes in the base system. 
> >
> > As to upgrading piecemeal rather than with -a, I don't see how that
> > helps, and it may actually make things worse by not building in
> > dependency order.
> > ___
> >
> >   
> As to the first part of your msg, what you said doesn't make any
> sense to me either.  Never did I claim portupgrade fails where a
> normal make install would succeed.  I would appreciate it if you
> could take my example as I state it instead adding stuff to make it
> sound implausible. 

And I would appreciate it if you actually read what I posted before you
accuse me of making things up.

My reply wasn't to your email it was to Neil Hogan, who did say that.


> Also
> after you get some experience in ports, you'll be able to understand
> that you can't depend on it compiling all the time. 
>..
>   Hope that clears up the confusion for you.

Since you are the one that sees problems, and I find the whole thing to
be generally straightforward, I don't really think you are in a
position to be condescending. 

Many problems that are seen after a portupgrade -R will go away after
after a "portupgrade -a", so why waste time in debugging them. In my
experience a failed "portupgrade -a" scarcely ever leads to runtime
problems and most build problems are resolved after running csup.

Personally I don't find fault-finding signifiantly harder after a
"portupgrade -a" than after a "portupgrade -R"  YMMV.

The really important thing is to read UPDATING, but if you don't update
frequently enough you can run into a state where it's difficult to
conflate the entries into a single recipe.  If I ever let things slide
to the point where I was faced with two really complex metaport updates,
I *might* be tempted to take the tree back to the point when the first
update stablised and do them sequentially in that way.






___
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: speed in extracting rar files - unrar vs. 7z

2009-03-20 Thread RW
On Sat, 21 Mar 2009 01:53:16 +0200
Ghirai  wrote:

> The shareware WinRAR on windows seems to be better implemented (?), as
> it uses both cores to the fullest, and as such the time needed to
> extract stuff is a lot shorter.

IIRC the unix version is portable C, but winrar has a lot of CPU
specific optimizations.
___
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: portupdate xorg-server

2009-03-20 Thread RW
On Fri, 20 Mar 2009 17:04:00 -0500
Neal Hogan  wrote:
> But, I wonder what the most efficient way is to update ports. I
> appreciate Adam's point about the fact that portupgrade (and
> portmanager and portmaster) are ports themselves and are going to not
> be as reliable as what is in base. 

IMO this doesn't make any sense. If portupgrade is failing on a port
where manual "make install" works, then portupgrade simply has a bug.
Any port upgrading tool belongs in a port, because it's more important
that it responds to changes in the ports system than changes in the
base system. 

As to upgrading piecemeal rather than with -a, I don't see how that
helps, and it may actually make things worse by not building in
dependency order.
___
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: issues in XFCE 4.6 (looking for a working WM)

2009-03-20 Thread RW
On Fri, 20 Mar 2009 01:15:37 -0600 (MDT)
Keith Seyffarth  wrote:

> 
> At this point, I guess I'm looking for recommendations on a window
> manager.

The XFCE upgrade went smoothly for me, apart from missing icons,
although I don't use it all that much so I may have missed something.
At very least I'd do a portupgrade -a,  preferably a  portupgrade -fa.

Running 6.0 isn't very sensible, there aren't all that many people
using Freebsd as a desktop machine in the first place, and most of the
people best suited to fix problems, or file detailed PRs will be on 7
or 8 by now.

> What other window managers do people use, or what would you recommend
> and why?

I'd suggest kde3, it's very stable, and version updates are always
simple. You don't have to install it all, if you don't want to.

xfce is the lightest of the 3 main desktop environments, so the next
down are the likes of windowmaker, fluxbox, icewm, and enlightenment.
Personally I'd go with fluxbox out of these, but that's  largely
personal preference. I like the taskbar and system tray support, icewm
is similar, but seems less sophisticated and isn't really functional
out-of the-box.

If you want a desktop environment on top of a window manager you can use
the rox ports to get session management, icons on the desktop, and a
file manager.


___
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: Portsnap vs CSup

2009-03-19 Thread RW
On Thu, 19 Mar 2009 14:06:31 -0500
Paul Procacci  wrote:


> Freedom of choice.  That choice is up to you.  Whichever you you feel
> most comfortable with...that's the one you should use.  Personally, I
> use both.

Just don't swap back and forth on the same ports tree. If you switch
from csup to portsnap, you should do a "portsnap extract", going from
portsnap to csup you should ideally delete the tree.
___
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: imap on freebsd7

2009-03-18 Thread RW
On Wed, 18 Mar 2009 18:27:32 +0100 (CET)
Pieter Donche  wrote:

> I want to access a mailbox on a FreeBSD7 server via IMAP from Outlook 
> 2003. I had a setup for accessing a mailbox on a Solaris server via
> IMAP from the same Outlook 2003.
> 
> In the FreeSBD7 system, outcommented in /etc/inetd.conf the line
> imap4 stream tcp nowait root /usr/local/libexec/imapd imapd
> 

You didn't mention installing an imap server from a port or package.
AFAIK there isn't one in the base and the /usr/local/ prefix confirms
that.

I'd suggest dovecot (usually started by enabling it in rc.conf
rather than inetd.conf).
___
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: portsnap ignores REFUSE directives

2009-03-16 Thread RW
On Mon, 16 Mar 2009 12:18:06 -0500
Charles Howse  wrote:

> Hi,
> I just installed 6.4-RELEASE on the way to -STABLE.
> I chose NOT to install the ports during installation.
> I configured /etc/portsnap.conf, uncommenting the REFUSE directives,  
> because I only speak English.
> 
> I created the proper directories, including /usr/ports.
> I ran 'portsnap fetch extract', and now I find arabic, chinese,  
> french, german, hebrew, hungarian, etc. in my ports tree.
> 
> What might be the problem here?

Are these directories actually populated with ports?

If not, my guess is that it's simply ignoring ports that match the
category, rather than removing the category entirely.
___
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: cvsup TreeList failed connection timed out

2009-03-15 Thread RW
On Sun, 15 Mar 2009 22:32:49 -0500
Troy  wrote:

> I'm having a problem with cvsup and it just started happening. I have
> other servers on the same LAN that are having no problem connecting
> to the very same servers.  I found other people that had this problem
> by searching but nothing gave a definitive answer on how to solve
> this.  I tried to rebuild cvsup from source again and it build just
> fine but the problem still exists.  

Since you don't mention that you are running an old release, have you
tried switching to csup in the base system?
___
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: Anonymizer tool like Tor?

2009-03-12 Thread RW
On Thu, 12 Mar 2009 11:38:13 +0100 (CET)
Wojciech Puchar  wrote:


> set up tor and use it as socks proxy with your browser and python
> script.
> 
> You don't need privoxy for that.

but isn't the point of of using privoxy to strip identifying
information from http requests  that would otherwise undermine tor.


___
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: torrent client traffic shaping question

2009-03-12 Thread RW
On Thu, 12 Mar 2009 16:24:37 +1100 (EST)
Ian Smith  wrote:

> On Wed, 11 Mar 2009 12:42:23 +0000 RW   

>  > A traffic shaper could efficiently regulate downloads by proxying
>  > TCP. And even though PF does some limited TCP proxying,
>  > unfortunately dummynet and altq  work at the IP level.  
> 
> I don't know why you say 'unfortunately' here?

Because tcp is best controlled at the tcp-level You could get smoother,
lower-latency transfers, and you're not dropping any packets that
have already passed through the ISP bottleneck.
___
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: Problem with installing curl/xine

2009-03-11 Thread RW
On Thu, 12 Mar 2009 04:34:57 +0530
manish jain  wrote:

> Hi all,
> 
> I was trying to install xine on my FreeBSD 7.1 system. At one point,
> it came up with an options dialog (curses-based) where I enabled GNU
> TLS. Since then, xine stops compilation with the following error :
> 
> curl-7.19.2 may use GNU TLS only if OpenSSL support is disabled.
> Error code 1
> 
> I checked the Makefile in /usr/port/ftp/curl but could not figure out
> any way to disable either GNU TLS or OpenSSL support. So in the
> current situation, I cannot install curl and therefore cannot install
> xine.
> 

cd /usr/ports/ftp/curl 
make config
___
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: reinstall package with portinstall

2009-03-11 Thread RW
On Wed, 11 Mar 2009 06:14:58 -0700
Noah  wrote:

> Hi there,
> 
> how can I reinstall a package that could be the same version as the 
> currently Install version with portinstall or portupgrade?

portupgrade -f 
___
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: torrent client traffic shaping question

2009-03-11 Thread RW
On Wed, 11 Mar 2009 11:13:16 +0200
Brent Clark  wrote:

> Hiya
> 
> I got this question to ask, and I was hoping the TCP/IP gurus would be
> able to help me understand this.
> 
> K you know how with traffic shapping you can control only the traffic
> leaving you, how it is that torrent clients say they can control the
> download as well as the upload. I would think the client can only
> control the upload.

If the client reads from a TCP socket slower than the data is coming-in,
the buffers fill-up and the sliding-window algorithm in TCP causes the
sending side to slow down.

A traffic shaper could efficiently regulate downloads by proxying TCP.
And even though PF does some limited TCP proxying, unfortunately
dummynet and altq  work at the IP level.
___
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: IPFW torrent

2009-03-10 Thread RW
On Tue, 10 Mar 2009 20:40:11 +0100
Roy Stuivenberg  wrote:

> Hello,
> 
> I can't seem to get my torrent client working, when ipfw is up.
> 
> This rules i use in my script for the torrent client (ktorrent)

Typically you need separate rules for incoming and outgoing
connections, something like this

add  1000 check-state
add  1010 deny tcp from any to any in established

# bittorrent tcp on 14353
add 10801 allow tcp from any to me 14353 keep-state

# allow outgoing tcp
add 5 allow tcp from any to any out keep-state



BTW if you use p2p a lot then eventually you'll probably want to do
upload prioritisation, and that's a lot easier with pf+altq. I
switched from ipfw to pf a long time ago, and I wouldn't want to go
back. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd 7.1, building kernel

2009-03-09 Thread RW
On Mon, 9 Mar 2009 15:13:55 -0700 (PDT)
gahn  wrote:

> I am trying to build customized kernel with "device carp" and
> followed kernel building procedure of the handbook. unfortunately it
> is failed:
> 
> lab1# make buildkernel KERNCONF=lab1
> ERROR: Missing kernel configuration file(s) (lab1).
> *** Error code 1
> 
> Stop in /usr/src.
> *** Error code 1
> 
> -rw-r--r--   1 root  wheel 13 Jun 20  2005 .cvsignore
> -rw-r--r--   1 root  wheel534 Nov 24 21:59 DEFAULTS
> -rw-r--r--   1 root  wheel  12412 Nov 24 21:59 GENERIC
> -rw-r--r--   1 root  wheel   1745 Nov 24 21:59 GENERIC.hints
> -rw-r--r--   1 root  wheel   1034 Nov 24 21:59 MAC
> -rw-r--r--   1 root  wheel131 Nov 24 21:59 Makefile
> -rw-r--r--   1 root  wheel  38713 Nov 24 21:59 NOTES
> -rw-r--r--   1 root  wheel   2016 Nov 24 21:59 PAE
> -rw-r--r--   1 root  wheel   3539 Nov 24 21:59 XBOX
> lrwxr-xr-x   1 root  wheel 20 Mar  9 18:08 lab1
> -> /root/kernels/lab1


This appears to be /usr/src/sys/i386/conf/ (note the PAE file), but
the following line suggests you are running amd64.

> FreeBSD piper_2 7.1-RELEASE-p3 FreeBSD 7.1-RELEASE-p3 #1: Mon Mar  9
> 16:48:31 EDT 2009 ad...@lab1:/usr/obj/usr/src/sys/GENERIC  amd64
> 
> but for the kernel name GENERIC, the command work fine:

probably because it's finding the amd64 GENERIC file
in /usr/src/sys/amd64/conf/ rather than your symlink.
___
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: rc.conf and starting scripts

2009-03-01 Thread RW
On Sun, 1 Mar 2009 19:14:17 -0800 (PST)
gahn  wrote:

> 
> Hi all:
> 
> I have some starting scripts under some other directories other
> than /etc/rc.d. How could I utilize the rc.conf file to start them
> when the system boots up?
> 
> The default location for rc.conf is /etc/rc.d only and the knob
> "local_startup=/usr/local/etc/rc.d" doesn't seem to be working for me
> for some reasons

/usr/local/etc/rc.d is the default for local scripts, that's where
package put their scripts, but there are some rules.

- they should either be proper RCNG scripts or they should end in a .sh
  extension

- local RCNG scripts are ignored if they order themselves before the
  early-late divider.




___
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: Root shell

2009-03-01 Thread RW
On Sun, 1 Mar 2009 16:16:50 +
Frank Shute  wrote:


> pdksh is statically linked and I don't know if bash is. 

It's a build option.
___
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: portupgrade question

2009-02-24 Thread RW
On Tue, 24 Feb 2009 18:13:19 -0800 (PST)
gahn  wrote:

> Hi all:
> 
> I was doing "portupgrade -fa -y" remotely via ssh (desktop xp), it
> worked fine and was still running almost two days (7.1). But suddenly
> i lost power on my xp station, lost ssh connection to the freebsd7.1
> box.
> 
> What shall i do so that i don't have to start over again?

If you know roughly when you started the run you can do something like
this:

portupgrade -f -y '<2009-02-22 12:00'
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: desktop app/config

2009-02-24 Thread RW
On Tue, 24 Feb 2009 12:08:48 -0500
"Jean-Paul Natola"  wrote:


> Ok so I left the machine running over the weekend to install KDE,
> 
> And when I got in this morning it said that my disk was out of space-
> I loaded nothing but the basic freebsd os and nothing other than kde
> (granted its only a 10 gig drive) but that should be enough for a kde
> desktop no? 

It may be that you need to clean-out the workspaces with 
rm -rf /usr/ports/*/*/work, and start again.

BTW I'd go for KDE3 rather than KDE4. The latter still seems to be very
fragile to me, and it needs a fairly up-to-date machine, with and a well
supported 3-d graphics card if you want the effects.
___
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: globally limit fetch download?

2009-02-19 Thread RW
On Thu, 19 Feb 2009 21:12:48 +0100 (CET)
Wojciech Puchar  wrote:

> > I have several FreeBSD machines located at different sites on very
> > slow DSL lines.
> >
> > Is there a way that I can limit the bandwidth that fetch uses when
> > it fetches ports?
> you may do this and 1000 times more things using IPFirewall

It's not a very efficient way to do it when the firewall is downstream
of the bottleneck - it's also difficult to make it specific to port
downloads. 

I'd go with wget. It's also good at handling unreliable lines, I used
to use it when I was on dial-up

___
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: Upgrading gcc on FreeBSD 4.11

2009-02-14 Thread RW
On Sat, 14 Feb 2009 01:29:12 -0600
Shaun  wrote:

> > > Is it safe to install one of the newer gcc ports on FreeBSD 4.11?
> > > I've had this machine for three years; I don't recall ever
> > > upgrading the compiler, although pkg_info seems to think that I
> > > did, or at least attempted to. I'm wondering if there are any
> > > risks involved in going from gcc 2.95 to, say, 3.4.6. Typically
> > > I'm happy to pull the latest stable of just about anything, but
> > > the compiler is a different story.
>...
> FWIW: The reason I was wanting to upgrade gcc was to get the
> /usr/ports/net-mgmt/darkstat package installed. 


For future reference, installing a gcc port doesn't upgrade gcc, it
installs a extra version of the compiler with differently named binaries
e.g. gcc44 instead of gcc. Ports that need specific versions of gcc to
build will acquire a gcc build-dependency if they cannot be built from
the system compiler.  Probably, this didn't work correctly for you since
the port's infrastructure no longer supports 4.x. Although it might
also happen if you have ccache installed, and you put it's symlinks in
your path.


The only correct way to upgrade the system compiler itself is to build a
later version of FreeBSD. 
___
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: all mail arriving empty - spamassassin?

2009-02-09 Thread RW
On Mon, 9 Feb 2009 21:27:01 +
RW  wrote:

> On Mon, 9 Feb 2009 15:43:21 -0500
> David Banning  wrote:
> 
> > After some upgrades, all mail arriving via sendmail-provmail is
> > empty - when I actually deinstall spamassassin - the mail starts
> > arriving again.
> > 
> > I haven't seen posts on this topic - I wonder if anyone has a guess
> > as to where to look for answers on this.
> 
> There is a problem where spamassassin is dying with SIGPIPE, but
> returning a non-zero error code.
> 
that should have been "returning a zero error code"


> If you are using /usr/local/bin/spamassassin (i.e. not spamd), try
> editing it and changing "sub kill_handler" to exit with a non-zero
> value.
___
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: all mail arriving empty - spamassassin?

2009-02-09 Thread RW
On Mon, 9 Feb 2009 15:43:21 -0500
David Banning  wrote:

> After some upgrades, all mail arriving via sendmail-provmail is
> empty - when I actually deinstall spamassassin - the mail starts
> arriving again.
> 
> I haven't seen posts on this topic - I wonder if anyone has a guess
> as to where to look for answers on this.

There is a problem where spamassassin is dying with SIGPIPE, but
returning a non-zero error code.

If you are using /usr/local/bin/spamassassin (i.e. not spamd), try
editing it and changing "sub kill_handler" to exit with a non-zero
value.
___
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: differences of disk usage between du and quota binaries

2009-02-06 Thread RW
On Fri, 6 Feb 2009 20:13:17 +0100
Nicolas Letellier  wrote:

> Hello.
> 
> I use FreeBSD 6.3. I set quota to my fs.
> But, when I print disk usage with du -sh, I have:
> 
>..
> 
> Why this difference? (633M against 648264)
>

Try dividing 648264 by 1024.
___
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: usage of swap file

2009-02-05 Thread RW
On Fri, 6 Feb 2009 00:33:40 +0200
"Yavuz"  wrote:

> I use freebsd7.0
> I have 2 Gbyte RAM and 4 Gbyte Swap.
> my system sometimes need more memory and although there was 3.90
> Gbyte swap, I saw that run out of memory  when I see with top command.
> Why doesn't the machine use swap properly ?

I'm not sure what you are saying here, but if you mean that it appears
to have very little free memory, but isn't swapping, then that's normal,
see:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/book.html#TOP-FREEMEM
___
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: Patching / Updating / Upgrading

2009-02-03 Thread RW
On Tue, 03 Feb 2009 14:30:14 +0200
"DA Forsyth"  wrote:


> use RELEASE for a production server, STABLE on a desktop or test 
> machine.  IMHO

I'd say follow what it says in the handbook and use a release unless you
have a good reason to use stable, such as support for a particular
piece of hardware. 

If you use stable then every time you update for an advisory, you may
pick-up new features, which means you should pay as much attention as
you would with 7.0 -> 7.1. With point releases you are only getting
minor patches, so there is no need for mergemaster. I just run a single
script that does the full update. 

Also you can't use freebsd-update with stable.

___
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: dump(8) using snapshot + "recommended" cache

2009-02-01 Thread RW
On Sun, 1 Feb 2009 08:59:02 -0400 (AST)
Andrew Hamilton-Wright  wrote:

> 
> Hi All;
> 
> I regularly use dump(8) with snapshots to back up my server.
> 
> While this seems to have been working perfectly well so far,
> upon (re)reading the man page for dump(8), I have noticed a
> somewhat scary pair of lines in the paragraph describing
> the option for -C  (emphasis with stars mine):
> 
>   [Use of this option] will greatly improve performance
>   at the cost of ***dump possibly not noticing changes in
>   the file system*** between passes.
> 
>   ***It is recommended that you always use this option when
>   dumping a snapshot.***
> 

When you dump a snapshot there are, by definition, no changes between
passes. So it's saying that in that case there in no reason not to
cache. 
___
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: Unable to Fetch ktorrent-3.1.6.tar.bz2

2009-01-28 Thread RW
On Wed, 28 Jan 2009 18:53:39 +1000
Warren Liddell  wrote:

> I updated my ports this afternoon and ktorrent has an upgrade, but
> alas the pkg for it isnt in the distfiles list on the website yet,
> was this in error or has something gona astray ?

This question doesn't make much sense, are you looking for a package
for 7-stable or a distfile or what?.
___
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: Steps to upgrade from 7.0-RELEASE to 7.1-RELEASE

2009-01-28 Thread RW
On Wed, 28 Jan 2009 05:07:46 -0700
Tim Judd  wrote:


> Nothing really beats the CVS way.  And when I tried a 7.0 to a 7.1,
> it wanted like >30,000 updates and was taking forever.

It seems to me that most people that come to this list with base-system
update problems are using  freebsd-update.
___
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: KDE: What a monster!

2009-01-27 Thread RW
On Tue, 27 Jan 2009 17:52:31 +0100 (CET)
Wojciech Puchar  wrote:

> > had either followed the Debian approach of keeping KDE3 as the
> > default, or the FreeBSD approach of leaving it up to the user there
> > wouldn't have been such a problem. One of the worst aspect of OSS
> > is the pervasive attitude that software is either bleeding-edge, or
> > it's obsolete.
> 
> it's not OSS problem but general problem with all software. this
> problem started with commercial software some years ago because
> PEOPLE WANTED THIS.

I'm not talking about what you would call bloat, I'm talking about the
use of software that's little better than a prototype, and people that
would rather use unstable software than software that's a few months
old. That is very much an OSS problem.

> for X window system just use some small windows manager that (as 
> name suggest) manages windows on screen and JUST START program you
> use.

IMO these basic window managers are ok if you *only* use them via a
keyboard, but if you ever use a mouse they're very poor ergonomically.
___
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: KDE: What a monster!

2009-01-27 Thread RW
On Tue, 27 Jan 2009 16:56:15 +1000
Da Rock  wrote:


> I'm also ashamed that they released it in a hurry to compete in this
> condition to a very sceptical Window$ crowd. 

People have to use KDE4 in significant numbers for it to mature. The
real problem was not that they released it, but that Linux distributions
rushed to make it the default version, or in some cases the only
version, in their packaging systems. From what I've read, many people
in the KDE4 project were not happy about this. If most distributions
had either followed the Debian approach of keeping KDE3 as the default,
or the FreeBSD approach of leaving it up to the user there wouldn't have
been such a problem. One of the worst aspect of OSS is the pervasive
attitude that software is either bleeding-edge, or it's obsolete.

BTW, I don't think it's really fair to suggest that KDE4 is trying to
ape Vista, it looks to me as if the've both just borrowed a lot from
OS-X, A lot of the other stuff in KDE4, has been under development for a
long-time.  
___
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: Solaris Compat?

2009-01-25 Thread RW
On Mon, 26 Jan 2009 14:46:17 +1000
Da Rock  wrote:

> Why I ask is Adobe have released a version of flash for Solaris, and
> I'm wondering if this might work better than the linux_compat types.
> I tried running it straight out, but I'm getting errors of a missing
> libsocket.so library.

Presumably you would need a minimal version of Solaris, that's
equivalent to the linux-base packages.
___
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: make -jN build with portmaster

2009-01-25 Thread RW
On Sun, 25 Jan 2009 23:46:54 +0100
cpghost  wrote:

> That's a good hint indeed. I'll try it. Maybe I'll modify it a bit to
> include ONLY the "build" target, because -jN fails on nearly every
> other target, AFAICS.

Don't forget that there are two different makes; BSD make does the ports
infrastructure bit, and usually gmake (Gnu Make) does the actual build
and install in the work directory.

IIRC  MAKE_ARGS only goes to the lower-level make (gmake), and aside
from those ports that don't work with -j at all, the failure with
other targets are caused by bsd make i.e. by trying to run the whole
ports infrastructure with -j. 
___
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: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 21:13:00 +0100
Morgan Wesström  wrote:

> gcc 4.2 and later will figure out the correct -march and -mtune for
> you automatically if you use CPUTYPE=native. 

The point I was making before, is that CPUTYPE isn't just passed
transparently to gcc, it's used for setting other variables, such as
CFLAGS. So unless you know that CPUTYPE=native is supported by the OS as
well as the compiler, you probably shouldn't use it in make.conf.
___
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: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 15:27:02 +0100
Morgan Wesström  wrote:


> The section "options enabled" will list them all. I usually only add
> "-march=native" to my CFLAGS to enable a few more CPU specific
> optimizations.

If you set CPUTYPE, -march is set to match, so setting -march=native
should be redundant. OTOH a number of other make variables are defined
from CPUTYPE, so if you set  -march=native, but not CPUTYPE you might
miss some optimisations based on build options. 

I've no idea whether there are any such options, just that you're
probably not going to do better than setting CPUTYPE, and leaving the
rest alone.
___
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: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 12:51:32 +
Saifi Khan  wrote:


> on running the command 'make -V CFLAGS', the output is
> 
> -O2 -fno-strict-aliasing -pipe
> 
> i haven't setup the CPUTYPE anywhere (not as an env variable nor in
> /etc/make.conf)
> So are these default settings for a generc x86 based system ?

Yes, if you are using i386. 

Most CPUs have the same default CFLAGS, it's the value of CPUTYPE
that's passed to the compiler that determines processor optimizations.
___
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: default CFLAGS

2009-01-24 Thread RW
On Sat, 24 Jan 2009 17:35:38 + (GMT)
Saifi Khan  wrote:

> Hi all:
> 
> What is the default CFLAGS if *no* CFLAGS has been specified in
> /etc/make.conf ?
> 
> As an example, let us consider a FreeBSD 7.1 system running on a
> Intel Celeron M.

It depends on what you've set as CPUTYPE, and the platform; you can
find out with

make -V CFLAGS

___
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: KDE: What a monster!

2009-01-23 Thread RW
On Fri, 23 Jan 2009 19:15:47 -0500
Eduardo Cerejo  wrote:

> I just finished installing kde4, and it can barely run on my old p4
> machine!  Where has kde gone? 

I think kde3 is going to be around for some time to come. Hopefully
kde4 will have improved by the time it's phased-out. 
___
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: Keeping FreeBSD updated (the binary way)

2009-01-22 Thread RW
On Fri, 23 Jan 2009 01:58:13 +0100
Svein Halvor Halvorsen  wrote:


> Is it possible to pkg_add -r packages from -STABLE on the latest 
> -RELEASE? That is, will the following work, or slowly render my
> system to an incoherent state:
> 
> 1) Regularly run freebsd-update
> 2) Regularly run portsnap
> 3) Set my PACKAGESITE to the -STABLE location
> 4) Regularly run portupgrade -P
> 

It'll work most of the time, but occasionally it will fail, when a
STABLE package relies on a library or other feature that's not in the
release.

A compromise might be to stick to the release packages, until portaudit
reveals a significant vulnerability and then switch to Stable until
the next release. 
___
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: shell scripting, how to auto-timeout?

2009-01-22 Thread RW
On Thu, 22 Jan 2009 12:41:14 -0800
Nerius Landys  wrote:


> /usr/local/bin/java PipeGenerator $* &
> sleep 1
> 
> 
> Also with the above code I would be waiting for 1 second even if the
> java process finished sooner.  But that is a penalty I'm willing to
> pay, unless there is a more elegant solution.

sleep 1 &&  &

___
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: Is there any tools can build a mirror of portsnap?

2009-01-21 Thread RW
On Wed, 21 Jan 2009 14:17:17 +0100 (CET)
Wojciech Puchar  wrote:

> if portsnap could use proxies - it would be simple. but it cant


It's certainly supposed to, the man page says it does, fetch and
phttpget are both supposed to support proxies, and there's support in
the script for seeding the random selection of servers from the proxy
name.
___
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: source of uname information

2009-01-21 Thread RW
On Wed, 21 Jan 2009 08:06:50 -0500
Robert Huff  wrote:


>   Can someone explain this:
> 
> h...@jerusalem>> sysctl kern.version
> kern.version: FreeBSD 8.0-CURRENT #0: Tue Jan 20 10:40:57 EST 2009
> h...@jerusalem.litteratus.org:/usr/obj/usr/src/sys/JERUSALEM
> h...@jerusalem>> uname -a
> FreeBSD jerusalem.litteratus.org 7.0-CURRENT FreeBSD 7.0-CURRENT #0:
>

Do you have any UNAME_* variables set in the environment?
___
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: RAM/Memory resources on 7 STABLE

2009-01-16 Thread RW
On Fri, 16 Jan 2009 21:14:10 -0500
David Scheidt  wrote:

> On Sat, Jan 17, 2009 at 01:25:19AM +0000, RW wrote:

> > Although, looking at the output of top, most of the memory is in the
> > inactive state. As I understand it cache pages go from active to
> > cached, and the inactive queue contains pages that need to be
> > written out to swap before they can be reused.
> 
> No.  It just means they're not active -- nothing has touched them
> "recently".  They may be dirty.  They may not be.  

Do you know that for a fact, because it contradicts the description in
Matt Dillon's VM-design article. The article say that clean pages go to
the cache queue and dirty pages go to the inactive queue, and
emphasizes the need to keep then separated. If clean pages do go to the
inactive queue I'd be interested to know the reason. 


>  Since I'm not doing anything with it (I'm
> writing this from another machine), and its just hanging out, this is
> what I'd expect. Should it do something that requires memory, the
> pager will toss clean inactive pages to the free list, and they'll be
> reused.  

IIRC, according to the article when you're short of free memory (i.e.
most of the time) it's allocated from the cache queue. The queues are
rebalanced by flushing inactive pages and moving then to the cache
queue, and by pages coming off the active queue. AFAIK pages are taken
off the active queue when there is a significant need for rebalancing.
I've seen memory hang about there pretty much indefinitely after I shut
down kde/xorg - much longer than 20-60 seconds.
___
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: RAM/Memory resources on 7 STABLE

2009-01-16 Thread RW
On Fri, 16 Jan 2009 22:23:06 +0100 (CET)
Wojciech Puchar  wrote:

> > When I boot this machine it usually shows (in top) about 11 G Free
> > in the Mem: line
> >
> > The machine, in this snippet, has been up for 5 days 22 hours and
> > change and it now shows 1436M free in the Mem: line
> > I've been watching the number and it has been slowly decreasing
> > over the 5 days since its last boot.  It looks like as the Free
> > line trends down, the Inact value trends up to keep the total Mem
> > used at the installed 12G
> 
> ALL unused memory is used as disk cache in FreeBSD.

Although, looking at the output of top, most of the memory is in the
inactive state. As I understand it cache pages go from active to
cached, and the inactive queue contains pages that need to be written
out to swap before they can be reused.

The very high level of inactive memory looks suspiciously like a
memory-leak to me. Hopefully someone who knows more about this will
step in - don't take my word for it.
___
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: RAM/Memory resources on 7 STABLE

2009-01-16 Thread RW
On Fri, 16 Jan 2009 12:35:33 -0500
Tim Kellers  wrote:


> I've never noticed this (the slow decline of Free) before on any
> machine I've had.  Maybe that just means it has happened and I
> haven't noticed it, but I don't know.

FreeBSD has worked like that for a long time, it doesn't free memory as
long as there's a better use for it. It just maintains a few percent
free for interrupt handling. 

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


Re: freebsd encrypted hard disk?

2009-01-14 Thread RW
On Thu, 15 Jan 2009 00:20:54 +0100
Roland Smith  wrote:

> On Wed, Jan 14, 2009 at 10:55:38PM +0000, RW wrote:

> > Not just in reduced transfer rates, but also in terms of CPU cycles
> > used - a sustained geli to geli file copy makes things really slow
> > for me.
> 
> That's probably because two geli kernel threads are competing for time
> on a single core. I've had problems with that as well (geli-encrypted
> USB drive stalling).
> 
> Since I've switched to a multi-core machine (where the number of cores
> should be at least equal to the number of geli-encrypted devices), CPU
> load for gele has dropped to barely noticable.
> 

I find that puzzling; have you measured that on sustained geli to
geli transfers (with GB size files).

The reason I'm a bit sceptical is that dd'ing /dev/random to /dev/null
runs at about 20MBytes/s on my single core (verses 700MBytes/s
for /dev/zero). File copies into geli run at about 15Mbytes/s, openssl
enc -aes-256-cbs runs at about the same ballpark figure. Even if I had
multi-cores I would still be cpu-limited to 20MB/s, and that would fully
occupy two cores on geli to geli transfers. Your cores are probably
faster, but I'd expect a factor of two or so would be swallowed-up by
faster transfers. I don't see how cpu usage would be negligible unless
your individual cores are an order of magnitude faster than that.

Just out of curiosity what rate do you get on  
dd if=/dev/random of=/dev/null bs=64k count=1

> Looking at the machines on sale at local computer stores only the
> absolute rock-bottom spec-ed machines are single core these days.

My guess is that you really need quad cores for best performance, so
you avoid having all cores in geli.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: freebsd encrypted hard disk?

2009-01-14 Thread RW
On Wed, 14 Jan 2009 18:59:54 +0100
Roland Smith  wrote:

>  Geli is
> convenient and seems to work well. On modern machines the performance
> penalty is slight. It supports well-regarded encryption algorithms
> like AES and Blowfish.

It depends on what you mean by modern, and slight, on my single-core
amd64 2.8G the performance penalty of geli is substantial. Not just in
reduced transfer rates, but also in terms of CPU cycles used - a
sustained geli to geli file copy makes things really slow for me.

I think most people find that filling a disk from /dev/random is slower
than from /dev/null, or it at least has an impact on overall
performance. And the /dev/random generator stage is  AES encryption of
a counter so the performance hit against /dev/null should be similar to
writing to geli (and in my experience it is). And the faster your disks
are, the more cpu speed you need to avoid cpu-limiting.

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


Re: freebsd encrypted hard disk?

2009-01-14 Thread RW
On Wed, 14 Jan 2009 12:23:09 -0500
Johann Hasselbach  wrote:

> I read the "encrypting disk partitions" section of the Handbook. What
> is the preferred method nowdays, geli or gbde?

Geli.

Geli is  more secure when used with real-world passphrases, supports
hardware acceleration, and is faster, with or without out it. As I
understand it, geli is also more reliable due to some operations being
non-atomic in gdbe and atomic in geli.

___
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: Disk Label Editor problem

2009-01-13 Thread RW
On Tue, 13 Jan 2009 10:02:59 -0200
luizbcampos  wrote:

>   I installed FreeBSD-7.0amd64 on my 40GB disk and I chose automatic
> partition at disk label editor. I need to download a 665GB OS but at a
> given moment the system complains about lack of space on the disk
> (469GB). It has happened for two times.

I presume that should be 665MB and 469MB

> 
>ad4s1a   512MB*
>ad4s1b   2015MB SWAP
>ad4s1d   2031MB*
>ad4s1e   512MB*
>ad4s1f33084MB*
> 
>   Is there any way to correct the problem without reinstalling the OS?

You haven't really said what the problem is. What's the output of 
df -h, and where were you trying to save the file to?

Offhand, I would guess you trying to save it to either /tmp or /root
which doesn't have enough space. 
___
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: gname

2009-01-11 Thread RW
On Sun, 11 Jan 2009 02:49:37 -0500
"Grant Peel"  wrote:

> Wow,
> 
> After a fresh install of FreeBSD 6.4, (with Xorg) I tried installing
> Gnome, and I get a "stop" during build, Filesystem Full!
> 
> Is Gname really that big? or did I miss doing something?
> 
>  Doing a du -h -d1 on /usr shows"
> 
> ...
> 7.0G ports.
> 1.8G local
> 

The problem is that when you install something for the first time you
end up with a lot of cruft in the ports tree because all the work
directories for the dependencies get left-behind.  When you later
update Gnome with portupgrade (or whatever) the tool cleans as it
goes.  If you have portupgrade installed I would run portsclean -CD,
and start again. 

If /usr is on a separate partition, and you have a lot of space
elsewhere then I would suggest you either symlink /usr/ports there or
set WRKDIRPREFIX. Some desktop ports need huge amounts of temporary
space to build - it doesn't make much sense to allocate it  under /usr.

___
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: Mounting /c

2009-01-10 Thread RW
On Sat, 10 Jan 2009 20:09:57 +
Chris Whitehouse  wrote:

> Why not as a matter of curiosity? It has its limitations (eg max file 
> size) but it's very cross platform.

ntfs is much more robust than fat32, if you crash windows or pull the
plug, you are more likely to lose data with fat32.
___
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: Mounting /c

2009-01-09 Thread RW
On Fri, 9 Jan 2009 18:17:49 -0500
Jerry McAllister  wrote:


> In general, you should not expect to be able to write to an ntfs file
> system type.That is why I converted my MS-Win file system to
> FAT32. 

Not a good idea.

> According to the man page, some limited writing can be done,
> but the list of limitations is long and they are not all immediately
> straightforward.

You should be able to write to ntfs if you use the fuse version
sysutils/fusefs-ntfs - it "just works" in my experience. 

The last time I checked it required some (well-documented) adjustment
to make it mount from fstab as FreeBSD uses a hard-coded list of mount_*
commands rather than simply converting "mount -t foo" to mount_foo. I'm
not sure if this is fixed in 7.1 - but it's about time it was.
___
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: how to use the MFS ?

2009-01-09 Thread RW
On Fri, 09 Jan 2009 13:30:30 -0500
Lowell Gilbert  wrote:

> "PstreeM China"  writes:
> 
> > i think the option WRKDIRPREFIX  is a good idea , and i whill test
> > the methon unionfs.
> 
> Definitely benchmark against just using a native local filesystem,
> though.  Taking away all of that memory that FreeBSD would otherwise
> use for *caching* file data could well end up making your builds
> *slower* with the MFS than they would have been without it.

I've a vague recollection that I tried something like this, a few years
ago, and found that the difference was too small to measure. 

I think that however you do it, you basically end-up with something that
looks like: 

   CPU/L1/L2 -> memory -> disk 

and whether the "memory->disk" part is a cached-file or swap-backed
memory is really just a matter of book-keeping - the VM system moves the
physical memory around as it likes. The book-keeping differences may be
significant, but they are not different in the electronic verses
electro-mechanical sense, and such intuitions may not relevant.

Poul-Henning Kamp, has an interesting article in this area for the
varnish project:

"I have spent many years working on the FreeBSD kernel, and only
rarely did I venture into userland programming, but when I had occation
to do so, I invariably found that people programmed like it was still
1975."

http://varnish.projects.linpro.no/wiki/ArchitectNotes


[Not that there's anything wrong with 1975.]
___
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: Sun sucks

2009-01-09 Thread RW
On Thu, 08 Jan 2009 23:16:25 -0500
Steve Bertrand  wrote:

> RW wrote:

> > Just create a new account for some made-up name, don't specify any
> > company, download your file, and then (if you really care) go
> > through the hoops afterwards.
> 
> Improper subject, wrong attitude.
> 
> If one wishes to use a license from another product that is outside of
> the BSD license scope, then follow it properly.
> 
> FreeBSD ( && personnel) does a magnificent job of keeping
> outside-licensed code and objects separate from itself, and I'd rather
> jump through burning hoops of flame to 'add on' to the system to mend
> it to my needs, as opposed to  having the system, and possibly its
> users, face legal ramifications later...

 
That would be an excellent point if I claimed to speak for the FreeBSD
project - I don't, so it isn't. OSS projects aren't liable for the
actions and opinions of their end-users.


___
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: Sun sucks

2009-01-08 Thread RW
On Thu, 8 Jan 2009 17:10:10 -0500
"Ansar Mohammed"  wrote:


> After registering Sun complains that they don't like my ID and I need
> to provide more information. I create another account. Same problem.
> After 3 months I finally get an email saying they want clarification
> on the acronym for my company. 


Well there's your problem. You gave them too much information in the
first place. I usually just make-up a name as a matter of principle.

Just create a new account for some made-up name, don't specify any
company, download your file, and then (if you really care) go through
the hoops afterwards.
___
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: Foiling MITM attacks on source and ports trees

2009-01-03 Thread RW
On Sat, 3 Jan 2009 19:46:59 +0100
cpghost  wrote:

> On Sat, Jan 03, 2009 at 01:38:25AM +0000, RW wrote:
> > On Fri, 02 Jan 2009 17:30:12 +
> > Vincent Hoffman  wrote:
> > > Admittedly this doesn't give a file by file checksum
> > 
> > That's not really a problem, it's no easier to create a collision
> > in a .gz file than a patch file. 
> > 
> > The more substantial weakness is that the key is verified against a
> > hash stored on the original installation media. If someone went to
> > the trouble of diverting dns or routing to create a fake FreeBSD
> > site they would presumably make it self-consistent down to the ISO
> > checksums.
> 
> That's why I suggested that the list of checksums be digitally signed
> by a private key belonging to The FreeBSD Project. It is assumed that
> getting the corresponding public key would be possible by other means
> not susceptible to MITM attacks (e.g. through endless replication all
> over the net, fingerprint in books etc...).

My point is that having signed updates etc (which is essentially what
freebsd-update and portsnap do) is undermined if the original iso is not
obtained securely. Currently that appears to be the weakest link. 

___
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: Foiling MITM attacks on source and ports trees

2009-01-02 Thread RW
On Fri, 02 Jan 2009 17:30:12 +
Vincent Hoffman  wrote:
> Admittedly this doesn't give a file by file checksum

That's not really a problem, it's no easier to create a collision
in a .gz file than a patch file. 

The more substantial weakness is that the key is verified against a
hash stored on the original installation media. If someone went to the
trouble of diverting dns or routing to create a fake FreeBSD site they
would presumably make it self-consistent down to the ISO checksums.
___
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: local copy of handbook

2008-12-29 Thread RW
On Mon, 29 Dec 2008 10:16:42 +0530
"Masoom Shaikh"  wrote:

lso I cud use tarballs from FTP, but is there easy way to install
> them ? also csup didn't help here is my csup file
> 
> *default tag=RELENG_7
> *default host=ftp2.tw.freebsd.org
> *default prefix=/usr
> *default base=/var/db
> *default release=cvs delete use-rel-suffix compress
> src-all
> doc-all
> 
> csup updates the source each time, but now i am not sure about doc!!
> 

If you do it that way, you have to generate the html files yourself,
cvup fetches generic data files that can be used to generate html , pdf
etc.

What I do these days is mirror the online version with wget.



#!/bin/sh

cd /usr/share/doc/en

wg_args=" --mirror -np -nH --cut-dirs=2 --limit-rate=33k"

bg_flags=""

# Run quietly from cron
[ ! -t 0 ] && bg_flags=" --quiet "

wget $bg_flags $wg_args  "http://www.freebsd.org/doc/en_US.ISO8859-1/";
___
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: Could not find package - using ports

2008-12-22 Thread RW
On Mon, 22 Dec 2008 16:29:18 +0100
Polytropon  wrote:

> On Mon, 22 Dec 2008 10:20:24 -0500, "Glen Barber"
>  wrote:
> > Portupgrade won't install packages -- it'll upgrade your ports using
> > the ports tree.  If you want the latest software, you need to
> > compile using ports.  Packages are built once, when the X.X-RELEASE
> > comes out. Did you read the portupgrade man page?
> 
> That's not entirely true. The portupgrade port installs a program
> called portinstall. According to its manpage, portinstall can
> -a- install from ports (compile), -b- install from packages
> or -c- install from packages only (where it works similar to
> pkg_add).

Portinstall is just an alias for portupgrade -N

The reason that portupgrade -P was not using packages is that, by
default it fetches packages  built against the tree that's on the
install disks, so there wont be any for updated ports.

You can set portupgrade to fetch packages for the 7-stable development
branch (you can google for how to do this). For the most part this will
work, but occasionally there will be library problems. 

  
___
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: Network Stack Code Re-write (Possible motivations...?)

2008-12-20 Thread RW
On Sat, 20 Dec 2008 17:54:24 -0500
Lowell Gilbert  wrote:

> However,
> commercial routers generally do not use their OS kernel this way -- it
> is far more common that the kernel does send and receive packets
> within its native IP stack.  

If I'm understanding you right, I'm surprised by that (the native part).
It make any proprietary software less portable.  You're also tying your
code into third-party internals, which sounds like a maintenance
problem. I would have thought that the likes of Cisco and Alcatel
etc would would have reusable codebases that abstract the OS and
minimize OS dependencies.

What's the advantage, don't routers usually lead OS's in terms
of new protocol support?
___
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: Network Stack Code Re-write (Possible motivations...?)

2008-12-20 Thread RW
On Sat, 20 Dec 2008 13:35:35 -0500
Martes G Wigglesworth  wrote:


> However, the intuitive list member response strikes again.
> 
> Thanks alot for you input.
> 
> I, as you, can't really figure out why they felt, years ago, that they
> needed to re-invent the wheel.


Bear in mind that such companies may have a range of products, that
range from something not unlike a pc with lots of interfaces up to
something with multiple levels of embedded processors each running their
own OSes. In the latter case you need a network stack that's
largely OS independent, so it can spread itself across the
(non-symmetric) processors. You may also need to be able to separate
fast-path, slow-path and control path for high performance.

Once you have done all that, you've left the native OS stacks unused,
leaving them available for the user interface or in some cases
communication between sub-systems. This separation is good on security
grounds too, it's preferable not to have network management "in-band".
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: SOLVED: Simple swap question

2008-12-19 Thread RW
On Fri, 19 Dec 2008 13:04:26 -0500
FreeBSD  wrote:

  
> This server is very lightly used, so most of the time if the swap is 
> getting used it shows that something is going wrong. This warning 
> already proved usefull once, so I don't think I'm going to change it.
> I don't want to mess with the kernel actions, but there was no reason
> to keep this in swap. 

It's the other way around, if a page is written-out to swap and then
read back into ram, there's no point in ditching the on-disk copy as
long as it's still valid. If the kernel runs short of memory again, it
can reuse such pages instantaneously. 
___
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: Simple swap question

2008-12-18 Thread RW
On Thu, 18 Dec 2008 15:13:12 -0500
FreeBSD  wrote:


> I can't see any process within parentheses in top... I also looked at 
> the -f option of ps but the process that caused the swapping are not
> listed.
>

FreeBSD only swaps in extreme cases - most of the time it's paging
instead.

If it really worries you:

swapoff -a ; swapon -a
___
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: portsnap and portupgrade

2008-12-18 Thread RW

[ Since this is on-topic, I'm taking it back on-list.  ]

On Thu, 18 Dec 2008 14:11:26 +0100 (CET)
Pieter Donche  wrote:

>
> 'Installing the tree from disk' do you mean with that: the install
> during sysinstall of /usr/ports from what is on the
> FREEBDSD-7.0-RELEASE CD's ?

Yes

> If so, if you have did create a /usr/ports from sysinstall, then only
> a portsnap fetch has to be done, and no portsnap extract
> but only a portsnap update when you need updating a program you
> installed previously from the ports tree ?

Portsnap doesn't know about anything in the ports tree that it didn't
put there itself. For that reason it needs to bring the tree to an
initial known-state by replacing all port directories and other
files. For the same reason you shouldn't mix portsnap and c[v]sup.

> But is it then not better to do a portsnap upgrade immmediatly after
> that first portsnap fetch, since fetch will only get compressed .gz
> files (not decompressed to /usr/ports), so /usr/ports will still be
> of the date of the release of the 7.0 (febr. 2008) ?

The extract will bring the tree up-to-date with the fetched snapshot.
You could use extract instead of update all the time, except that it's
slower and deletes user generated files in the ports directories (e.g.
README.html).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: portsnap and portupgrade

2008-12-18 Thread RW
On Thu, 18 Dec 2008 11:08:44 +0100 (CET)
Pieter Donche  wrote:


> ( decompress to /usr/ports )
> # portsnap extract
> 
> ( it is not clear to me if this is correct if one already has
> a /usr/ports created during sysinstall .. )

You need the extract so that the tree is exactly matched to the
snapshot and the correct metadata is created, it's installing the
tree from disk that's not needed.

> In root /etc/crontab, shedule daily updates of /var/db/portsnap :
> 0 3 * * * root /usr/sbin/portsnap cron
> 
>...
> b. For every future upgrade of  gv  (using portupgrade):
> b.1. ( update ports collection )
> # portsnap update
> ...
> b.5. do the port upgrade
> # portupgrade -R gv
> 
> b.6. install the updated version of ghostview 
> # cd /usr/ports/print/gv
> # make install clean

You don't need the last step, that's what portupgrade does.

For the most part it's better to bring all you ports up-to date if you
can, rather than doing it piecemeal.
___
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: Any doc reference on /entropy file ?

2008-12-16 Thread RW
On Tue, 16 Dec 2008 21:39:56 +0100
Bernard Dugas  wrote:

> Wojciech Puchar wrote:
> >> 2- As / will be mounted read-only, how can i tell the ramdom
> >> generator to put this /entropy file somewhere in /var, where i
> >> think it should be ? Or is there any tricky hidden problem ?
> > 
> > man rc.conf  seek entropy_file and entropy_dir
> 
> Thanks, detail is available in /etc/default/rc.conf :
> 
> "entropy_file="/entropy" # Set to NO to disable caching entropy
> through reboots.
>  # /var/db/entropy-file is preferred if / is
> not avail."
> 
> It means that i can put it in /var when L is read-only. There should
> be no problem as the file is choosen in rc.conf, so after /var is
> mounted.

Whatever it says in /etc/default/rc.conf, /entropy is read before /var
is mounted.  
___
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: Any doc reference on /entropy file ?

2008-12-16 Thread RW
On Tue, 16 Dec 2008 16:23:05 +0100
Bernard Dugas  wrote:


> 2- As / will be mounted read-only, how can i tell the ramdom
> generator to put this /entropy file somewhere in /var, where i think
> it should be ? Or is there any tricky hidden problem ?

It has to be on the root partition as it's used in the early stage of
the boot before any other partitions are mounted, but like like I said
there are other entropy files that are applied a little later as a
boot, and on most machines enough entropy will be generated from
the disk interrupts to suffice anyway.
___
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: Any doc reference on /entropy file ?

2008-12-16 Thread RW
On Tue, 16 Dec 2008 16:07:48 +0100 (CET)
Wojciech Puchar  wrote:

> at startup it seeds random generator, every 11 minutes and at
> shutdown it's saved from random generator.

Only at shutdown, the entropy stored every eleven minutes is
in  /var/db/entropy/
___
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: Any doc reference on /entropy file ?

2008-12-16 Thread RW
On Tue, 16 Dec 2008 14:08:10 +0100
Bernard Dugas  wrote:

> Hi,
> 
> When i look at / in a standard installation like :
> FreeBSD XXX 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52
> UTC 2008 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC
> i386
> 
> There is only 1 file, named entropy :
> 
> -rw---   1 root  wheel  4096 Dec 11 17:36 entropy
> 
> I can't find any reference to that file in FreeBSD doc.
> 

It contains random numbers that are written-out at shutdown and used to
seed /dev/random on the next boot.

> 
> Do i have to keep it read/write ? Can i put it in /var instead of /
> to be able to keep / read-only ?

It has to be on the root-partition, if it's going to be used. 

You can set entropy_file=NO if you don't want it. There are additional
entropy files under /var, and the system generates it's own entropy
during the boot stage, which is good enough for normal cases.
___
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: what is umtxn

2008-12-05 Thread RW
On Fri, 05 Dec 2008 21:16:12 +0200
Giorgos Keramidas <[EMAIL PROTECTED]> wrote:

> On Fri, 5 Dec 2008 19:35:34 +0100 (CET), Wojciech Puchar
> <[EMAIL PROTECTED]> wrote:
> > i've got once my asterisk process in umtxn state (as top shows)
> > using 100% CPU.
> >
> > it was still answering calls.
> >
> > what's umtxn exactly?
> 
> A kernel lock operation.  ``procstat -k PID'' may show more details
> about the in-kernel stack of the process that spins on the lock.
> 

What's procstat?  find isn't finding it, neither is "make search" in
ports. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: named and ntpd start order in rc.d

2008-12-05 Thread RW
On Sat, 06 Dec 2008 01:11:38 +0100
cpghost <[EMAIL PROTECTED]> wrote:

> RW wrote:

> > I have a similar issue with PPP not having connected by the time
> > ntpdate runs , so I just have a script that runs between named and
> > ntpdate, and blocks waiting for access.
> >   
> Those timing / start-order issues are getting more and more
> annoying, IMHO. On my PPPoE / mpd5 connected systems,
> it's the same problem:
>  * openntpd (from ports) can't start, because named is not ready
>  * pf can't parse /etc/pf.conf because the ng0 interface is not yet
> there etc, etc, etc...
> 
> Isn't there a generic way to delay some scripts from starting
> until a specific subset is ready (say: networking fully up,
> and named ready to reply)? Perhaps some keyword or class
> to add to a startup script would be nice to have!

I don't think there's a generic solution, but I've pasted my own
script below, I think if you set "networkwait_ping_hosts" to a
name, rather than IP addresses, it might solve both your
problems. You'll be polling on dns, and then resyncing the pf rules.

$ cat /usr/local/etc/rc.d/networkwait
#!/bin/sh
#
# PROVIDE: networkwait
# REQUIRE: named
# BEFORE:  ntpdate

. /etc/rc.subr

networkwait_enable=${networkwait_enable:-"NO"}
name="networkwait"
rcvar=`set_rcvar`
stop_cmd=":"
start_cmd="networkwait_start"   


networkwait_start(){

   if [ "$networkwait_ping_hosts" ] ; then
  host_list="${networkwait_ping_hosts}"
   else
  # No hosts supplied - use external nameservers
  host_list=`awk '/^ *nameserver/ {print $2}
'< /etc/resolv.conf | grep -E -v '^127\.0+\.0+\.0*1'`
   fi
   echo -n "Waiting for network access ... "
   while true ; do
  for inet_host in $host_list ; do
 if ping -nc1  $inet_host 2>&1 > /dev/null ; then
echo "ping to ${inet_host} succeeded."
# Re-Sync ipfilter and pf in case
# they had failed DNS lookups
/etc/rc.d/ipfilter resync
/etc/rc.d/pf resync
exit 0
 fi
  done
  sleep 5
   done
}

load_rc_config ${name}
run_rc_command "$1"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Performance benchmarks pitting FreeBSD against Windows

2008-12-05 Thread RW
On Fri, 5 Dec 2008 19:36:45 +0100 (CET)
Wojciech Puchar <[EMAIL PROTECTED]> wrote:

> > The userland win32 API might be rather unpleasant but I was
> > surprised to learn to driver interface in the kernel is actually
> > quite nice, and
> 
> whatever ideas/solutions microsoft do it's f..ked up or stolen.
> the stolen case is actually better :)

They poached VMX developers from DEC and got sued over it IIRC. From
what I've read it's supposed to be a pretty good hybrid kernel.

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


Re: named and ntpd start order in rc.d

2008-12-05 Thread RW
On Fri, 5 Dec 2008 13:22:29 -0800
"Nerius Landys" <[EMAIL PROTECTED]> wrote:

> > This shouldn't be needed as ntpd already requires ntpdate and in
> > turn ntpdate requires named. The issue is probably  timing - that
> > named isn't ready.  
> 
> Actually, the REQUIRE thing in the /etc/rc.d scripts means "if the
> required service is enabled, start it before this one".  It does not
> mean "start the required service before this one".  

That's not correct. BEFORE  and  REQUIRE are used by rcorder to
determine the ordering of the scripts without checking if they are
enabled. Actually all scripts get run - if you don't enable ntpdate then
rc.d/ntpdate still runs, but doesn't do anything. 

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


Re: named and ntpd start order in rc.d

2008-12-05 Thread RW
On Fri, 21 Nov 2008 16:47:50 -0800
"Nerius Landys" <[EMAIL PROTECTED]> wrote:

>
> I believe that the fix for this is to add a dependency
> to /etc/rc.d/ntpd script, adding "named" to "REQUIRE" section in
> comments.  In your opinion, is this a robust fix?  For example the
> line in my /etc/rc.d/ntpd script that looks like so:
> 
> # REQUIRE: DAEMON ntpdate cleanvar devfs
> 
> would be changed to this:
> 
> # REQUIRE: DAEMON ntpdate cleanvar devfs named

This shouldn't be needed as ntpd already requires ntpdate and in
turn ntpdate requires named. The issue is probably  timing - that named
isn't ready.

I have a similar issue with PPP not having connected by the time
ntpdate runs , so I just have a script that runs between named and
ntpdate, and blocks waiting for access.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: freebsd-update through proxy with auth

2008-12-03 Thread RW
On Wed, 03 Dec 2008 10:36:29 +0200
"DA Forsyth" <[EMAIL PROTECTED]> wrote:

> Hiya
> 
> How do I get freebsd-update to fetch through a proxy that requires 
> authentication?  I cannot find any options in the man pages.
> 

have you tried putting it in the proxy name

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


Re: Uninstalling kde3 meta-port

2008-12-02 Thread RW
On Tue, 2 Dec 2008 13:35:40 +0100
Mel <[EMAIL PROTECTED]> wrote:

> On Tuesday 02 December 2008 08:38:02 Leslie Jensen wrote:
> 
> > How would you guys uninstall a meta-port?
> >
> > I'm considering a move to kde4 but I want a clean install, so I
> > want to remove the kde3 meta-port first.
> 
> cd /usr/ports/x11/kde3
> for dep in `make -V RUN_DEPENDS`; do 
>   origin=${dep##*:};
>   portname=`make -C ${origin} -V PORTNAME`;
>   pkg_delete -Xf "^${portname}-[0-9\.,_]+\$";
> done
> cd /usr/ports/ports-mgmt/pkg_cutleaves
> make install
> pkg_cutleaves -xg
> 
> Delete all leaves you are sure you don't need anymore, till no leaves
> are left.

If I were you I'd skip the loop at the top and just run  the
pkg_cutleaves command, delete kde3 and work down through the
new leaf-dependencies.

The loop takes out the first level of  kde3 dependencies, saving you a
few seconds in pkg_cutleaves, but also deletes x11-toolkits/qt33,
which is required by some non-kde apps such as Opera.  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Swapping to MMC (Was: To swap or not to swap)

2008-12-02 Thread RW
On Tue, 2 Dec 2008 20:47:26 +
"Anthony M. Rasat" <[EMAIL PROTECTED]> wrote:


> Pros: 1) System requires swap. Period. 2) Swap may need size in range
> between 2.17 times to 2.22 time or whatever size it need. This is not
> prohibited by Eee's SSD size (4GB btw, 701 series).

Add what swap you need, but in my experience things get pretty slow
before you even reach 1x system memory on hard disks. AFAIK the 2x
figure is to do with saving kernel dumps, which you probably don't want
to bother with.

> 
> Cons: 1) Since SSD is manufactured have limited lifetime (around
> 100,000 times write operation or so, I read it somewhere), swapping
> to SSD is more likely not a wise thing to do.

I don't think it's much of a problem with modern wear-levelling.
It's 100,000 writes per block with the writes being spread evenly over
the device (albeit with extra write for the wear-levelling). 

There are few writes to swap until you run low on memory, so simply
having swap wont by itself wear out the device.

> Two against one. I concurr that swap is needed. However since SSD in
> 701 series is not removable, having a bad sector in SSD is one thing
> you don't want to have.

I would think they have spare sectors like hard disks do.


> performances? And what happened if FreeBSD kernel suddenly lose its
> swap file by absent-minded human? Is it going to be just angry or
> having massive heart attack?


I'm not sure whether an active swap file can be deleted or not, but it
would be owned by root, so not deletable by a normal user. I suspect
that it would behave like an open file and not be genuinely deleted
until swapoff'ed. In any case it's not more of a risk than deleting any
critical file.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Date/time installed ports have been updated on a system?

2008-12-01 Thread RW
On Mon, 1 Dec 2008 16:12:49 +0100
Ewald Jenisch <[EMAIL PROTECTED]> wrote:

> Hi,
> 
> Is there any way to determine when upgrades to installed ports have
> been done on a system? I did a "portupgrade -arR" recently and want to
> know which ports have been upgraded in that process (and no I didn't
> run that portupgrade under "script"...)

pkg_glob(1) can show package installed before or after either a time
or a particular port.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Which FreeBSD is best for my PC?

2008-12-01 Thread RW
On Sun, 30 Nov 2008 23:54:38 -0800
"Harry Veltman" <[EMAIL PROTECTED]> wrote:

> Which version and GUI will work best on the internet with my AT
> Pentium II 350MHz x86-based PC?  Some web sites require Flash Player
> 8 or higher, 

If flash is important to you then I'd suggest you run windows firefox
under wine. Native Adobe Flash support is apparently working again in
7.1, but it's only just been restored as being broken for years. And by
all accounts the linux flash-plugin isn't perfect even in Linux.

> and some require 128-bit encryption I think, but doesn't
> 40-bit encryption process data 3 times faster?  How many bit
> encryption is the various versions of FreeBSD?  Thanks.

All the supported versions of FreeBSD should have a wide range of
ciphers available on browsers. IMO it's not really worth using
ciphers below 128 bits. 128 bit is probably safe from the NSA, 40
bits could easily be broken on a pc.  
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD 4.8: can't load kernel after doing "cp -R /" to another disk

2008-11-29 Thread RW
On Sat, 29 Nov 2008 20:37:09 +0400
"admin" <[EMAIL PROTECTED]> wrote:

> 
> Hello, everyone. This is the problem: our SCSI disk with FreeBSD 4.8
> on it has been failing recently, so I copied its root partition to a
> fresh IDE disk with cp -pR and 

You should use dump and restore to copy the root partition, see:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/disks.html#NEW-HUGE-DISK
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: pf or ipf rules to allow p2p Limewire through

2008-11-28 Thread RW
On Fri, 28 Nov 2008 14:24:27 +0800
Fbsd1 <[EMAIL PROTECTED]> wrote:

> How about explaining just why this is going to allow p2p limewire
> work?
> 
> I think you are missing the fact that limewire does not use dedicated 
> port numbers.
> Every session uses different port numbers

You can presumably set the port number in your limewire configuration.
I've not used limewire, but some p2p applications set random ports
the first time they are used. I doubt limewire sets it randomly on
every session - at least not without a way of overriding that behavior.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: firewall rules for bitlord, yahoo, limewire

2008-11-26 Thread RW
On Wed, 26 Nov 2008 10:54:43 -0600
"Andrew Gould" <[EMAIL PROTECTED]> wrote:

> On Wed, Nov 26, 2008 at 10:42 AM, Wojciech Puchar <
> [EMAIL PROTECTED]> wrote:
> 
> > sorry for asking but what are this "limewire" programs are?
> >
> >
> My unofficial take on it is that limewire is a peer-to-peer sharing
> application used by Windows, Mac OS X and Linux users to share files,
> usually music, often copyrighted, over the internet. 

It's a Gnutella client written in Java.

> It is one of the
> fastest, most effective ways to spread viruses, trojans, spyware, etc.
> 
> The program does not use fixed ports, so the services are hard to
> block.  In essence, the program gets the user to bypass security
> measures from the inside.

There's nothing remarkable about that, no p2p filesharing application
uses fixed ports. Some have default ports, but they are widely ignored
because historically ISPs used those ports for throttling. 

 
> When people ask my advice about computers, I always include:  "Never
> use Limewire, or anything like it."

They are as dangerous as you want to make them, I've been using
bittorrent and eD2k for years and have never seem a single virus,
trojan etc. I've seen a few on USENET but they've always been laughably
obvious. People that end-up with that kind of thing are normally
actively seeking executables.

If anyone wants to discuss p2p blocking I'd suggest you start a new
thread. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: question regarding portsnap

2008-11-26 Thread RW
On Wed, 26 Nov 2008 10:57:20 +0300
__ __ <[EMAIL PROTECTED]> wrote:

> Im running FreeBSD 7.0-RELEASE #0
> The OS was downloaded from freebsd.org two months ago.
> 
> When I am trying to upgrade ports by using portsnap, portsnap doesn't
> work.
> 
> # portsnap fetch
> Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
> Fetching public key from portsnap1.freebsd.org... key has incorrect
> hash. Fetching public key from portsnap2.freebsd.org... key has
> incorrect hash. Fetching public key from portsnap4.freebsd.org... key
> has incorrect hash. No mirrors remaining, giving up.
> 
> Why the key is incorrect and what can be done to resolve this issue?


Check /etc/portsnap.conf to see if the hash is correct there.

Mine says:

KEYPRINT=9b5feee6d69f170e3dd0a2c8e469ddbd64f13f978f2f3aede40c98633216c330

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


Re: firewall rules for bitlord, yahoo, limewire

2008-11-26 Thread RW
On Wed, 26 Nov 2008 21:40:27 +0800
Fbsd1 <[EMAIL PROTECTED]> wrote:

> I have inclusive firewall rule set which means only packets matching
> the rules are passed through. The inbound hight port numbers are
> blocked by design.
> 
> How do other firewall users code rules to allow limewire to work?

I don't use limewire, but for other p2p I define pf macros that list the
udp and tcp ports and and explicity allow incoming connections.

If you want to know what ports an application is listening on try
sockstat -l. I wouldn't expose them without tracking down what they do
though in case they are http, telnet, etc.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Installing gimp from ports, need a GTK+, what port is it

2008-11-23 Thread RW
On Sun, 23 Nov 2008 20:23:58 -0700
Andrew Falanga <[EMAIL PROTECTED]> wrote:

> HI,
> 
> I'm installing gimp from ports.  I've recently done a csup on my
> ports tree and was happily working through the issues that were
> coming up while installing.  Normally, the issues were only due to a
> particular package that was installed, such as poppler, being older
> than the one gimp wanted.  So, a call to portupgrade fixed it.
> 

I'd suggest that you install gimp with portinstall (portupgrade -N),
which is supposed to take care of upgrading dependencies. 

Personally, I just bring my existing ports up-to-date before installing
new ports - in the long-term I think it's less hassle if you regard
your own time as more valuable than the CPU's. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeBSD and hardware??

2008-11-18 Thread RW
On Tue, 18 Nov 2008 07:10:48 -0800
Jeremy Chadwick <[EMAIL PROTECTED]> wrote:

> Cygwin is an atrocity,

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


Re: Delay startup of services in rc.conf || elswhere

2008-11-18 Thread RW
On Tue, 18 Nov 2008 12:05:33 +0100
bsd <[EMAIL PROTECTED]> wrote:

> Hello,
> 
> 
> I have a server configured to start 10 services at startup (in /etc/ 
> rc.conf)
> 
> Unfortunately, the startup of MySQL seems to be returning "ok"
> before It actually has started completely the program___ the next
> program rely on MySQL and does not start well because the database is
> not "fully" started.
> 
> I would like to introduce something like a "sleep 10" timer in the  
> service startup process___

The cleanest solution is to create a minimal rc script that will sort
between the mysql and the affected services, and just give it a start
command that pauses for 10 seconds. 

I do a similar thing where I poll for network access before allowing
anything that relies on it to start.



#!/bin/sh
#
# PROVIDE: networkwait
# REQUIRE: named
# BEFORE:  ntpdate

. /etc/rc.subr

networkwait_enable=${networkwait_enable:-"NO"}
name="networkwait"
rcvar=`set_rcvar`
stop_cmd=":"
start_cmd="networkwait_start"   


networkwait_start(){
   if [ "$networkwait_ping_hosts" ] ; then
  host_list="${networkwait_ping_hosts}"
   else
  # No hosts supplied - use external nameservers
  host_list=`awk '/^ *nameserver/ {print $2}
'< /etc/resolv.conf | grep -E -v '^127\.0+\.0+\.0*1'`
   fi
   echo -n "Waiting for network access ... "
   while true ; do
  for inet_host in $host_list ; do
 if ping -nc1  $inet_host 2>&1 > /dev/null ; then
echo "ping to ${inet_host} succeeded."
# Re-Sync ipfilter and pf in case
# they had failed DNS lookups
/etc/rc.d/ipfilter resync
/etc/rc.d/pf resync
exit 0
 fi
  done
  sleep 5
   done
}

load_rc_config ${name}
run_rc_command "$1"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: recommendation word processer for xfce

2008-11-08 Thread RW
On Sat, 8 Nov 2008 15:25:12 +0200
Jonathan McKeown <[EMAIL PROTECTED]> wrote:

> On Saturday 08 November 2008 13:55, Jerry wrote:
>
> The best response to the issue of Outlook and top-posting I've seen
> recently was on the London Perlmongers mailing list 
> ...
> "The last I checked, cursor keys worked in Outlook just fine without
> any third-party hacks, so there is no reason for top-posting just
> because the cursor happens to be there.

Some people argue that the cursor should start-off at the top because
you should start by removing superfluous quoted text before bottom
posting.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to upgrade to KDE4

2008-11-05 Thread RW
On Wed, 05 Nov 2008 06:52:06 -0800
[EMAIL PROTECTED] wrote:
the only
> thing that updated was the meta-port (I did a portupgrade -r too). 

Aside from the fact that there are separate kde meta-ports,
portupgrade -r kde... updates the metaport and everything that depends
on the metaport, not everything the metaport depends on.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: MySQL not restarted after portupgrade

2008-11-03 Thread RW
On Sun, 2 Nov 2008 22:21:53 -0800
Jeremy Chadwick <[EMAIL PROTECTED]> wrote:

> On Mon, Nov 03, 2008 at 12:52:53AM -0500, Andrew Berry wrote:
> > For some reason, after running portupgrade
> > databases/mysql51-server, MySQL is brought down, but not restarted.
> > It's not a huge issue, as I just have to remember to run the rc.d
> > script after upgrading, but I was wondering if anyone else had seen
> > this? portupgrade seems to work fine with other daemons such as
> > Apache and Courier IMAP.
> 
> This is a per-port thing, unless portupgrade provides some form of
> rc.subr script restarting itself.  There is no "standard" for this.

You can setup BEFOREDEINSTALL and/or AFTERINSTALL in
pkgtools.conf to run rc.d scripts per port.

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


Re: port versions query

2008-10-31 Thread RW
On Fri, 31 Oct 2008 16:50:25 -0700
Jim Pazarena <[EMAIL PROTECTED]> wrote:

> I tried the 5.1 mysql port, and found that it was a 5.1.26-rc ... RC
> 
> so I rolled back to 5.0.67
> 
> Is there a way to tell in general what version is 'current' for
> FreeBSD 7? 

There's only one port tree, so it doesn't matter that it's  FreeBSD 7

> How could I query any given port in general and see which
> version it would install?

 'make -V PKGNAME'  will do it.

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


Re: Marvell 88E8052 PCI-E LAN on FreeBSD 7.0 (PYUN Yong-Hyeon)

2008-10-31 Thread RW
On Fri, 31 Oct 2008 08:18:20 -
"Graham Bentley" <[EMAIL PROTECTED]> wrote:

> > I'm not sure you suffers from the same problem but there was a
> > Tx checksum offload related bug in msk(4) driver and it was fixed
> > in HEAD. How about applying the diff in CVS rev 1.33 of if_msk?
> > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/msk/if_msk.c.diff?r1=1.32;r2=1.33;f=h
> 
> Would love to have a crack at this but have never 'applied diffs'
> before?!
> 
> I am guessing I look in to the source for the msk module, find line
> 2601, add the code in the green box, then remake the module and copy
> over the existing one?


Assuming you already have the source,

select "unified" diff  on the above and save it to a file, then

cd /usr
patch < patchfile 

where "patchfile" is the saved file, then build as normal.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


<    1   2   3   4   5   6   7   8   9   10   >