Re: Can't start more than one gnome-session as the same user?

2007-12-20 Thread Clint Olsen
On Dec 19, Clint Olsen wrote:
 I searched and found a lot of old hits of this error.  The solutions are
 not very compelling.  Unsetting SESSION_MANAGER before launching
 vncserver only cascades errors down into the various client programs like
 the desktop etc.

Answering my own question, the problem is that you really need to start
with a fresh shell that isn't inherited from the existing windowing
environment.  So, logging in remotely and starting up vncserver works.
While I wouldn't call this very elegant, at least it works.

Thanks,

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


Re: tail does not exit

2007-12-20 Thread Mikhail Teterin
On середа 19 грудень 2007, Chuck Swiger wrote:
= A quick test suggests that tail -f will close when it gets a SIGPIPE.

SIGPIPE? How is that relevant? Does tail get a SIGPIPE, when awk disappears
in my example? If it does not, why do you bring it up?

And if it does get SIGPIPE, then you are wrong, because the posted
quick test shows the exact opposite behavior -- tail does NOT go
away.

Please, clarify... Thanks.

On середа 19 грудень 2007, Max N. Boyarov wrote:
=  try to test your script with anoter file and add somthing to it
= 
= 1) cons1$ touch /tmp/test
= 2)  cons1$ tail -f /tmp/test | awk '{print Line:  $1 ;  exit(0)}END{print 
Bye}'
= 2a)  Line: Line1
= 2b)  Bye

I'm sorry, this does not make sense to me. Starting with an empty
file, as you do in 1), /may/ make tail not notice, that awk went
away, because tail has nothing to write to stdout.

But /var/log/messages is not empty, and awk -- in my example -- would
exit upon seeing the very first line of its input (tail's output).
Yet tail fails to notice, that its subsequent output (starting with the
second line) is written to nowhere...

Why?

-mi

P.S. Here is the example again:

#!/bin/sh

if tail -f /var/log/messages | awk '{print Exiting; exit 0}'
then
echo Exited
else
echo Failed
fi

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


Re: tail does not exit

2007-12-20 Thread Max N. Boyarov

 MT == Mikhail Teterin writes:
  [...]
 MT I'm sorry, this does not make sense to me. Starting with an empty
 MT file, as you do in 1), /may/ make tail not notice, that awk went
 MT away, because tail has nothing to write to stdout.

 MT But /var/log/messages is not empty, and awk -- in my example -- would
 MT exit upon seeing the very first line of its input (tail's output).
 MT Yet tail fails to notice, that its subsequent output (starting with the
 MT second line) is written to nowhere...

 MT Why?
 Because nothing writeln to /var/log/messages
 
 $ sh -x /tmp/x.sh 
 + + tail -f /var/log/messages  
 awk {print Exiting; exit 0}
 Exiting
 + echo Exited
 Exited
 + exit 0

 after something writeln to /var/log/messages tail get SIGPIPE

open(/var/log/messages,O_RDONLY,0666)  = 3 (0x3)
fstat(3,{mode=-rw-r--r-- ,inode=141327,size=4997,blksize=4096}) = 0 (0x0)
mmap(0x0,4997,PROT_READ,MAP_SHARED,3,0x0)= 672616448 (0x28175000)
Exiting
write(1,Dec 20 11:59:04 solar kernel: da...,1090) = 1090 (0x442)
fstat(3,{mode=-rw-r--r-- ,inode=141327,size=4997,blksize=4096}) = 0 (0x0)
lseek(3,0x0,SEEK_CUR)= 0 (0x0)
lseek(3,0x1000,SEEK_SET) = 4096 (0x1000)
read(3,kernel: da1: 1.000MB/s transfers...,4096) = 901 (0x385)
munmap(0x28175000,4997)  = 0 (0x0)
read(3,0x28204000,4096)  = 0 (0x0)
kqueue(0x28172d40,0x4,0xa,0x0,0x28201088,0x1)= 4 (0x4)
fstatfs(0x3,0xbfbfe44c,0x2815fe98,0x28172d40,0x0,0x2806dee4) = 0 (0x0)
kevent(4,{0x3,EVFILT_READ,EV_ADD|EV_ENABLE|EV_CLEAR,0,0x0,0x0},1,0x0,0,{0.0})
 = 0 (0x0)
kevent(4,0x0,0,{0x3,EVFILT_READ,EV_CLEAR,0,0x3e,0x0},1,0x0) = 1 (0x1)
read(3,Dec 20 12:06:27 solar su: BAD SU...,4096) = 62 (0x3e)
fstat(1,{mode=p- ,inode=0,size=0,blksize=4096}) = 0 (0x0)
read(3,0x28204000,4096)  = 0 (0x0)
write(1,Dec 20 12:06:27 solar su: BAD SU...,62) ERR#32 'Broken pipe'
SIGNAL 13 (SIGPIPE)

-- 
Max N. Boyarov


pgp6Vf07VlDFE.pgp
Description: PGP signature


Re: tail does not exit

2007-12-20 Thread Mikhail Teterin
On четвер 20 грудень 2007, Max N. Boyarov wrote:
= after something writeln to /var/log/messages tail get SIGPIPE

But why is that needed for tail to notice? It is trying to output 10 lines.

After it outputs the very first one of them, awk exits, and the 9 subsequent 
lines go into thin air /without tail noticing/.

Is not that a bug in itself?

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


Re: Can't start more than one gnome-session as the same user?

2007-12-20 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Clint Olsen wrote:
 On Dec 19, Clint Olsen wrote:
 I searched and found a lot of old hits of this error.  The
 solutions are not very compelling.  Unsetting SESSION_MANAGER
 before launching vncserver only cascades errors down into the
 various client programs like the desktop etc.

 Answering my own question, the problem is that you really need to
 start with a fresh shell that isn't inherited from the existing
 windowing environment.  So, logging in remotely and starting up
 vncserver works. While I wouldn't call this very elegant, at least
 it works.

Side question: Can this solution be used to access multiple accounts
on the same machine?

 -- Aryeh M. Friedman FloSoft Systems http://www.flosoft-systems.com
  Developer, not business, friendly
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHajr9zIOMjAek4JIRAiWYAJ90tgiNOc3iPNj997pd6RiAJZ6y0QCeJ8L4
iNP3nXbVZT/3uDJEfcRPs4c=
=+C8X
-END PGP SIGNATURE-

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


Re: tail does not exit

2007-12-20 Thread Mikhail Teterin
On четвер 20 грудень 2007, Max N. Boyarov wrote:
=  MT Is not that a bug in itself?
= 
=  Tail write buffer at all, i.e. all 10 lines writes to pipe.

So, the behavior depends on the size of the buffer -- and thus the size of the 
input lines.

A bug indeed...

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


Re: OSS Virtualization options ...

2007-12-20 Thread Norberto Meijome
On Thu, 20 Dec 2007 18:43:22 +1100
Norberto Meijome [EMAIL PROTECTED] wrote:

 wrt to QEMU,i don't think is fast enough to make it worth it - i think you'd 
 gain more by moving a bit to the side of freebsd for the host and using other 
 options (linux+ Vmware + freebsd as guest)

I meant this in the context of using QEMU to run multiple simultaneous VMs for 
server virtualisation. I think it works OK(ish) for , say, running Windows on 
your bsd boxbut i don't think you can compare it to something like Xen or 
VMWare or MS Virtual Server

probably a bit behind Qemu in speed would be BOCHS, though I think it is a bit 
more flexible wrt to the machines emulated.

B
_
{Beto|Norberto|Numard} Meijome

I sense much NT in you.
NT leads to Bluescreen.
Bluescreen leads to downtime.
Downtime leads to suffering.
NT is the path to the darkside.
Powerful Unix is.

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: tail does not exit

2007-12-20 Thread Max N. Boyarov

 MT == Mikhail Teterin writes:

 MT  On четвер 20 грудень 2007, Max N. Boyarov wrote:
 MT = after something writeln to /var/log/messages tail get SIGPIPE

 MT But why is that needed for tail to notice? It is trying to output 10 lines.

 MT After it outputs the very first one of them, awk exits, and the 9 
subsequent 
 MT lines go into thin air /without tail noticing/.
 
 MT Is not that a bug in itself?

 Tail write buffer at all, i.e. all 10 lines writes to pipe.

$ cat test   
line1
line2
line3
line4
line5
line6
line7
line8
line9
line10
line11

 tail -f test | awk '{print Exiting $1;  exit 0}'

 open(test, O_RDONLY)  = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=68, ...}) = 0
syscall_477(0, 0x44, 0x1, 0x1, 0x3, 0, 0) = 0x28175000
write(1, line2\nline3\nline4\nline5\nline6\nli..., 62Exitingline2
) = 62
fstat(3, {st_mode=S_ISUID|S_ISVTX|070, st_size=0, ...}) = 0
syscall_478(0x3, 0, 0, 0x1) = 0
syscall_478(0x3, 0, 0, 0)   = 0
read(3, line1\nline2\nline3\nline4\nline5\nli..., 4096) = 68
^^ write buff 

munmap(0x28175000, 68)  = 0
read(3, , 4096)   = 0
kqueue(0x28172d40)  = 4
syscall_397(0x3, 0xbfbfe44c)= 0
kevent(0x4, 0x28205040, 0x1, 0, 0, 0xbfbfe624) = 0
kevent(0x4, 0, 0, 0x28205040, 0x1, 0)   = 1
read(3, line++\n, 4096)   = 7
^^ new line added ^

fstat(1, {st_mode=031545, st_size=7596457873570623081, ...}) = 0
read(3, , 4096)   = 0
write(1, line++\n, 7) = -1 EPIPE (Broken pipe)
^ try write ^^

--- SIGPIPE (Broken pipe: 13) ---
--- SIGPIPE (Broken pipe: 13) ---
 exit ^

-- 
Max N. Boyarov


pgpQlaBQK0jet.pgp
Description: PGP signature


Re: OSS Virtualization options ...

2007-12-20 Thread Nikos Vassiliadis
On Thursday 20 December 2007 12:54:36 Norberto Meijome wrote:
 On Thu, 20 Dec 2007 18:43:22 +1100

 Norberto Meijome [EMAIL PROTECTED] wrote:
  wrt to QEMU,i don't think is fast enough to make it worth it - i think
  you'd gain more by moving a bit to the side of freebsd for the host
  and using other options (linux+ Vmware + freebsd as guest)

 I meant this in the context of using QEMU to run multiple simultaneous
 VMs for server virtualisation. I think it works OK(ish) for , say,
 running Windows on your bsd boxbut i don't think you can compare it
 to something like Xen or VMWare or MS Virtual Server

 probably a bit behind Qemu in speed would be BOCHS, though I think it is
 a bit more flexible wrt to the machines emulated.

Hi Mark and Norberto,

Mark, what do you need to virtualize and what your requirements are?

I think the question about virtualization is far too broad.
For example, you mentioned quotas. I think you can bypass storage
control problems, using seperate devices for each client filesystem.
Just create n vnode md(4) devices for your n jails. This has another
advantage besides partitioning storage. Since UFS supports sparse
files, only used blocks will occupy storage space, thus you don't
have to preallocate all storage.

HTH a bit,

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


Re: pdksh vs. mksh info [was: Re: Apparently, csh programming is considered harmful.]

2007-12-20 Thread Jurjen Middendorp
On Mon, Dec 17, 2007 at 03:32:38PM -0500, Chuck Robey wrote:
Jurjen Middendorp wrote:
  If you're familiar with pdksh, are you also familiar with ksh93, which
is (I believe) Mr. Korn's own shell?  If you are, I would be interessted
  in your opinion of the two, any comparisons you might give.
I've never used ksh93 so I really can't say.  There is a NOTES file
included with pdksh which gives a starter.  I created this port a few
years ago because of some random issue I've long since forgotten with
pdksh on my FreeBSD box which didn't happen on my OpenBSD box.

tom

I never used pdksh, but am using ksh93 for quite a while now and have used
bash, too. For some reason i like it better than bash, the vi mode is a bit
better somehow, it feels alot sturdier. It doesn't have those special
variables like $! and !! i believe, but it has alot of neat features like

-^ i ment !$ offcourse :)

basic network programming, lots of parameter expansion stuff and is just a
very nice shell :)

I havre installed it, and played with it a bit, I admit it's nicer than 
sh (and I *think*, bash) but the reason I haven't tried using it 
regularly is because I can't find a nicely set up .kshrc ... if you have 
one, I'd appreciate a copy.  Might be nice, if it's not terribly long, 
to post it to the list, too.

Basically it's just like any other shell .*rc. It sets some environment
variables for stuff, a bunch of aliases and some functions i find useful
myself, or am too lazy to throw away. Nothing really ksh-specific, except
maybe some of the functions i wrote use ksh-stuff like arrays, but that's
not really ksh-specific as well.  You could use google to find any .*rc for
sh-like shells and copy those (or get a copy of unix power tools, it's a
nice book to make you feel at home in a shell)

-jurjen

ps. these functions i probably use the most :)

alias d=do_in_bg dillo
alias x=do_in_bg xpdf
alias ff=do_in_bg firefox
#do a program in the background:
do_in_bg() {
$@  /dev/null 21 
}

#open a webpage from disk, like: $cd /usr/share/doc/en  htm 
#to look at all the (english) freebsd-docs :)
htm() {
set -A stuff $(find -L . -name index.htm* -print)
(for ((i=0; i  ${#stuff[*]}; i++)); do print $i \t: ${stuff[i]}; done) | 
$PAGER
read x  d ${stuff[$x]}
}
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Install doxygen on a non X11 machine

2007-12-20 Thread A.Rymkus
Hi, Christopher.

You wrote at 03.10.2007, 15:31:04:

CK Hello,

CK I'm trying to install doxygen on a non X11 machine from the ports 
CK collection.

CK I've added 'devel/doxygen*: WITHOUT_DOXYWIZARD=yes' to my ports.conf, 
CK which is being recognised:

CK # cd /usr/ports/devel/doxygen
CK # make -V WITHOUT_DOXYWIZRD
CK yes

CK  From my reading of the doxygen Makefile, this should be enough to 
CK prevent any of the graphical tools from being installed.  Nevertheless,
CK whenever I run make, I'm presented with a configuration screen for qt.
CK Can anyone advise?

CK Regards,

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

You have to put WITHOUT_X11=TRUE line in your /etc/make.conf if you
want to make all of ports without X11 support, or you may use
something like that style with make:
env WITHOUT_X11=TRUE; make

-- 
WBR, A.Rymkus

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


Re: OSS Virtualization options ...

2007-12-20 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On Thursday, December 20, 2007 14:57:41 +0200 Nikos Vassiliadis 
[EMAIL PROTECTED] wrote:

 Mark, what do you need to virtualize and what your requirements are?

As mentioned in my original, we provide VPS hosting, so we're virtualizating 
the whole virtual machine ...

 I think the question about virtualization is far too broad.
 For example, you mentioned quotas. I think you can bypass storage
 control problems, using seperate devices for each client filesystem.
 Just create n vnode md(4) devices for your n jails. This has another
 advantage besides partitioning storage. Since UFS supports sparse
 files, only used blocks will occupy storage space, thus you don't
 have to preallocate all storage.

Again, as mentioned in the original, the problem isn't quotaing the whole VPS, 
the problem is software (in this case, plesk) that seems to have a requirement 
to set a hard quota *within* the VPS itself, which isn't supported, currently, 
by jails ...

In the past, for quotaing 'the whole VPS', I had tried the whole md(4) device 
idea, but found that insufficent inodes were being created for to do much, and 
no matter what I tried with newfs, couldn't seem to get more to be created, as 
if, due to the small size of the device, a 'max ratio' was being hit ... but, 
this was way back on 4.x when I tried that ...

- 
Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHanSx4QvfyHIvDvMRAsSMAJ0XEYjZI5ELwFeilPGMrr7LXvFGrACeMF4V
4zmuT2vbGDIOdjGQwbSLjk4=
=EGiy
-END PGP SIGNATURE-

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


Re: NIS Linux - Ubuntu

2007-12-20 Thread Lowell Gilbert
RA Cohen [EMAIL PROTECTED] writes:

 I am sorry, here is an addendum to my previous post:

Somehow Ubuntu was given root user
  permissions

 Actually, upon rereading my notes, Ubuntu was only given permissions of the 
 user doing the login - not root - but we could login with any valid user 
 apparently FreeBSD thought it was presented with a wildcard password.

 And I can also verify that FreeBSD clients are able to use the password map 
 when x is used instead of * in the map to represent the password. So I can 
 secure the system using the x but still cannot get Ubuntu clients to 
 authenticate.

Sounds like Ubuntu is using the wrong map, probably one where it's
getting a different and empty field where it expects to find a password.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: OSS Virtualization options ...

2007-12-20 Thread Nikos Vassiliadis
On Thursday 20 December 2007 15:57:05 Marc G. Fournier wrote:
  I think the question about virtualization is far too broad.
  For example, you mentioned quotas. I think you can bypass storage
  control problems, using seperate devices for each client filesystem.
  Just create n vnode md(4) devices for your n jails. This has another
  advantage besides partitioning storage. Since UFS supports sparse
  files, only used blocks will occupy storage space, thus you don't
  have to preallocate all storage.

 Again, as mentioned in the original, the problem isn't quotaing the
 whole VPS, the problem is software (in this case, plesk) that seems to
 have a requirement to set a hard quota *within* the VPS itself, which
 isn't supported, currently, by jails ...

 In the past, for quotaing 'the whole VPS', I had tried the whole md(4)
 device idea, but found that insufficent inodes were being created for to
 do much, and no matter what I tried with newfs, couldn't seem to get
 more to be created, as if, due to the small size of the device, a 'max
 ratio' was being hit ... but, this was way back on 4.x when I tried that
 ...

UFS2 does not initialize inodes at newfs time as UFS did. So, things
are much better now!

root:0:~# truncate -s 10G jail.00
root:0:~# mdconfig -at vnode -f jail.00 
md0
root:0:~# newfs md0
/dev/md0: 10240.0MB (20971520 sectors) block size 16384, fragment size 2048
using 56 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
super-block backups (for fsck -b #) at:
 160, 376512, 752864, 1129216, 1505568, ...
root:0:~# ls -ls jail.00 
4592 -rw-r--r--  1 root  wheel  10737418240 Dec 20 16:21 jail.00

4.5MB for a 10GB filesystems is fine, isn't it?

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


Re: Does 6.2 Support VIA EPIA M10000G Nehemiah Mini-ITX?

2007-12-20 Thread Lowell Gilbert
Eric Osterweil [EMAIL PROTECTED] writes:

 I just installed 6.2 on a VIA EPIA M1G Nehemiah Mini-ITX.  It all  
 seems to have installed fine, but when I try to buildworld I get  
 internal compiler errors almost immediately.  The problems are not  
 consistently in the same place but they seem to be for the same  
 reason.

Inconsistent compiler errors are almost always a hardware issue.

I have an earlier Nehemiah-class board (possibly the one which yours
replaced), which has been very reliable as my home server for a couple
of years. 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: common filesystem for Linux and FreeBSD

2007-12-20 Thread Drew Tomlinson

On 12/18/2007 2:17 AM Chad Perrin said the following:

On Tue, Dec 18, 2007 at 11:06:15AM +0530, Girish Venkatachalam wrote:
  

[snip]

If FFS2 and EXT3 are ruled out, then what is remaining? ;)

XFS?



Maybe?

My impression is that there isn't good UFS support in Linux, and that
stable ext3 support is read-only in FreeBSD.  If that's the case, then it
really does seem to come down to a matter of figuring out whether XFS,
JFS, or ReiserFS (to throw out a few examples) have stable read/write
support in both Linux and FreeBSD systems.
  
I use XFS on a Gentoo Linux distribution for a MythTV box and it has 
performed well for me.  I've lost power on several occasions and the 
filesystem has remained intact.  However I recall reading somewhere that 
XFS is better tuned for large files (such as the TV recordings that are 
2+ Gb each) so you may want to check that before settling.


I have no idea about XFS on FreeBSD.

[snip]

HTH,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.com

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


Re: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Lowell Gilbert
Alexander Rudyk (Akvelon) [EMAIL PROTECTED] writes:

 I am planning to install FreeBSD 6.2 on my dell laptop with 80Gb HDD and 2GB
 RAM. FreeBSD will be the only OS on the laptop. Laptop will be used to web
 development (RubyOnRails), entertaiment (photo, music, video),
 web browsing and emailing, so no server side task will be handled.

 How you suggest to split 80GB between partitions to solve all laptop tasks.
 Here is partitions:
 /root
 /var
 /usr
 /home
 /swap

You might want to consider a single partition (other than swap).
The only reason I separate partitions these days is to make backups easier.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


libc documentation

2007-12-20 Thread Robe
Hi,

I need to know where I can find the full documentation of the last libc
library.

Thanks,

-- 
Robe.

En el verdadero amor, el alma oculta al cuerpo.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: tail does not exit

2007-12-20 Thread Mikhail Teterin
On четвер 20 грудень 2007, Erik Osterholm wrote:
= The same behavior happens if I use a larger file.  I see no
= inconsistent behavior, nor any bugs.

The inconsistency is in the fact, that the behavior depends on the size of the 
buffer and length of the lines (not the size of the file).

If the 10 lines, which tail tries to output initially, exceed the size of the 
buffer, tail learns about awk going away immediately. If the lines are not 
long enough, it does not.

Also, I would expect a program to be notified (by SIGPIPE?) /immediately/, 
when any of its output pipes are closed -- instead of waiting for it to try 
to write into the pipe. But this issue is not, it seems, FreeBSD-specific...

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


Re: libc documentation

2007-12-20 Thread Dan Nelson
In the last episode (Dec 20), Robe said:
 I need to know where I can find the full documentation of the last
 libc library.

Most of the libc documentation should be in /usr/src/lib/libc/ .  Any
file ending in .2 or .3 is a manpage.  They are also installed in
/usr/share/man and are available using the man command.  Run man 3
printf, for example. 

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


Re: tail does not exit

2007-12-20 Thread Erik Osterholm
On Thu, Dec 20, 2007 at 05:40:11AM -0500, Mikhail Teterin wrote:
 On ?? 20 ??? 2007, Max N. Boyarov wrote: = | MT Is not that
 a bug in itself?  = = | Tail write buffer at all, i.e. all 10 lines
 writes to pipe.

 So, the behavior depends on the size of the buffer -- and thus the
 size of the input lines.

 A bug indeed...

I don't understand.

aleph:~$ cat test
blah1
blah2
blah3
aleph:~$ tail -f test | awk '{print $1; exit 0}'
blah1
(hangs)

This is expected.  Awk printed one time and exited, per the given
script.  The output from tail/input from awk went all at once, awk
printed the first line, exited, and the rest of the input disappeared.
'tail' sent blah1\nblah2\nblah3\n to awk, awk printed until the
first newline and exited.

If I now write to test from another terminal:
aleph:~$ echo blah4  test

Tail tries to write to the pipe, which it finds closed.  It receives a
SIGPIPE (tried to write to a pope with no reader--see man signal), and
it terminates.

The same behavior happens if I use a larger file.  I see no
inconsistent behavior, nor any bugs.

Erik

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


Re: tail does not exit

2007-12-20 Thread Erik Osterholm
On Thu, Dec 20, 2007 at 11:02:59AM -0500, Mikhail Teterin wrote:
 On ?? 20 ??? 2007, Erik Osterholm wrote:
 = The same behavior happens if I use a larger file.  I see no
 = inconsistent behavior, nor any bugs.
 
 The inconsistency is in the fact, that the behavior depends on the size of 
 the 
 buffer and length of the lines (not the size of the file).
 
 If the 10 lines, which tail tries to output initially, exceed the size of the 
 buffer, tail learns about awk going away immediately. If the lines are not 
 long enough, it does not.
 
 Also, I would expect a program to be notified (by SIGPIPE?) /immediately/, 
 when any of its output pipes are closed -- instead of waiting for it to try 
 to write into the pipe. But this issue is not, it seems, FreeBSD-specific...
 
   -mi

Ah, I see.  With very, very long lines, tail doesn't send the output
all at once.  The cutoff seems to be 65536 bytes on my system.  If
tail has to write more than this amount, it breaks it up into mutliple
writes of a maximum of 65536 characters each.  The problem is that
after the first 65536 characters, awk has exited, causing the next
65536 characters which tail attempts to write to cause a SIGPIPE.  It
seems to be working as intended, though.  When piping, you have to be
aware of these issues, but I do not think that it is a bug.  

There must be some boundary where tail splits the output into multiple
writes.  If, after the first write, a \n hasn't been encountered yet,
awk will consider at least some portion of the next write (up until
the first \n) to be the same line, at least until it hits its own
limit.  I have not checked to see what this limit might be.

As for SIGPIPE, that's just how the POSIX standard works.  The signal
is sent to the writing process when it attempts to write to a broken
or closed pipe, not when the pipe has closed.  If you think that this
behavior is bad, you might want to contact IEEE.

Erik

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


What priority this app running?

2007-12-20 Thread Unga
Hi all

$ ps auxl -w | grep amarok
test   1707  0.0  9.4 61680 48544  ??  S12:29AM  
0:17.29 amarokapp 1003 1   1  20  0 ksere

Could I check with the list what is the priority this
amarokapp is running?

The ps man page doesn't show the values for priority,
therefore, what should be the values it should display
for lowest and highest priority (realtime)?

Kind regards
Unga


  

Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


6.2 and Asus A7N8X-E

2007-12-20 Thread At Home

I've got an extra Asus A7N8X-E mobo I'm trying to bring 6.2 up on.
  AMD 3200+, Barton
  2G PC-3200 rom, 1G OCZ and 1G Kingston valueram
  Seagate ES ST3250820NS Sata drives jumpered for 1.5GB only
  NVidia FX5600 AGP display adapter

I checked the archives and found comments about disabling ACPI, which I've 
done, but it still hangs at various points in the process of loading up the 
disk.


I've tried turning off the on-board SATA controller and using an Adaptec 
SATA controller with no improvement.  I've also tried slowing the clock and 
a few other de-optimizations, to no avail.


Is this basically a bad idea, or is there some piece of the puzzle I'm 
missing?  Any help would be much appreciated.


Thanks,

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


RE: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Alexander Rudyk (Akvelon)
Why /var partition is so big? How it will be used?

-Original Message-
From: Frank Bonnet [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 20, 2007 1:35 AM
To: Alexander Rudyk (Akvelon)
Subject: Re: Partitions size for 80GB HDD and 2GB RAM

Alexander Rudyk (Akvelon) wrote:
 Hi all

 I am planning to install FreeBSD 6.2 on my dell laptop with 80Gb HDD and 2GB
 RAM. FreeBSD will be the only OS on the laptop. Laptop will be used to web
 development (RubyOnRails), entertaiment (photo, music, video),
 web browsing and emailing, so no server side task will be handled.

 How you suggest to split 80GB between partitions to solve all laptop tasks.
 Here is partitions:
 /root
 /var
 /usr
 /home
 /swap


oops you miss the / partition !

I suggest

/   2  Gb
/var10 Gb
/usr30 Gb
swap2 Gb
the rest for /root and /home
--
Cordialement
Frank Bonnet
ESIEE Paris

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


Re: tail does not exit

2007-12-20 Thread Mikhail Teterin
четвер 20 грудень 2007 11:58 до, Erik Osterholm Ви написали:
 Ah, I see.  With very, very long lines, tail doesn't send the output
 all at once. The cutoff seems to be 65536 bytes on my system.

They don't even have to be very very long -- unless in an artificial example, 
such as the one I posted. Normal-width text files can also trigger 
inconsistent behavior in some real-life scenario, where awk actually does 
some real processing of its input for a while. The awk script may decide to 
quit after processing the first 1000 (normal-length) lines, for example... 

The behavior of the program will then be different depending on whether the 
average line-length is above, at, or below 65.536 characters.

Maybe, it is awk's fault -- it should not be read-ing more than one line at a 
time, because the script may cause it to ignore some of the read data.

Using line-buffering or some such?

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


Re: What priority this app running?

2007-12-20 Thread Pieter de Goeje
On Thursday 20 December 2007, Unga wrote:
 Hi all

 $ ps auxl -w | grep amarok
 test   1707  0.0  9.4 61680 48544  ??  S12:29AM
 0:17.29 amarokapp 1003 1   1  20  0 ksere

 Could I check with the list what is the priority this
 amarokapp is running?
Priority isn't shown in the output above. Try 
$ ps -o pri,ni,rtprio,command -p `pgrep amarok`
This will display priority, nice value and realtime priority (in that order).

 The ps man page doesn't show the values for priority,
 therefore, what should be the values it should display
 for lowest and highest priority (realtime)?
A lower value means higher priority. Realtime priority 0 is as high as you can 
get. See also rtprio(1).

Hope this helps,

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


Re: will freebsd run on apple intel xserve

2007-12-20 Thread Jason Joines

Jason Joines wrote:

Gabriel Rossetti wrote:

George Hartzell wrote:

Jason Joines writes:
   I'm a Linux guy who has inherited some apple xserve boxes.   
Surprisingly I've discovered that I really hate os x.  For the intel 
  xserve boxes, Linux isn't an option.  The CPUs are amd64 
architecture.   

AMD64on an Intel X-Serve box? I think you got it wrong there...
Anyways, EFI support for Xeon CPUs should work without a problem, even
for linux.
I'm not sure about EFI support, I think it's fine in CURRENT, from what
I've read on the net.

Good luck,
Gabriel
  The EFI capable Linux bootloader, has had beta support for amd64 
since   July.  However, the Linux kernel just got support to boot 
via EFI and   amd64 in a release candidate patch this month.  It'll 
probably be quite   a while before a distribution has an installer 
with what I need.
 At any rate, I've always wanted to try one of the BSDs.  
Will   FreeBSD install on an apple intel xserve?  If not does anyone 
know if   another BSD or some other open source NIX will work?


I can't give you a direct answer, but I was running 6-STABLE on an
8-way mac pro up until a couple of weeks ago (I had to give it back to
it's owners and I'm waiting until after the next wwdc to buy my
own...).

I used bootcamp to partition a spare disk, then just booted from a
freebsd cd and installed onto that partition.  I ended up using refit
as a boot doohickey (initially from an refit cd, eventually taking a
chance on installing it onto the disk itself).

There wasn't anything too surprising.

g.





Nope, it is the AMD64 architecture on apple intel xserve.  Intel 
cloned it and called it Intel 64 and EM64T among other names.  More 
vendor neutral names are x86-64 and x64.  At any rate, many Linux 
distributions, and FreeBSD, release a version they call amd64 that runs 
on CPUs with this instruction set regardless of whether AMD or Intel 
created it.
EFI support may be fine for amd64 xeon's but the elilo boot loader 
wouldn't work with amd64 until the latest beta.  Even though the boot 
loader became capable in that beta, the Linux kernel wouldn't work with 
elilo on amd64 until 2.6.24-rc4.
It may be fine with x86 xeons and it has always worked with ia64, 
just not amd64.


I just don't know enough about FreeBSD to know if it or the 
bootloader(s) it uses have any of the same issues Linux does or not. 
Hopefully I'll get to go onsite soon and give it a try.



Jason
===




Well I tried the amd64 version of FreeBSD 6.2 from the bootonly.iso 
and it didn't work either.  Just like the Linux CDs, the xserve didn't 
even recognize it as bootable.



Jason
===

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


Still is error in atlas package on 2 machines with athlon processors

2007-12-20 Thread Zbigniew Komarnicki
Hello!

I would like to ask you for help with this issue, because about 4 month ago I 
tried compile atlas (ports/math/atlas) and today and still with no success. I 
still obtain the following assertion error:

10 cases: 10 passed, 0 skipped, 0 failed
Benchmarking xcllttstF
NREPS   UPLO  Nlda  TIMEMFLOPS RESID
=  =  =  =      
1  Lower100100   0.00203   671.262  6.761073e-03
1  Lower200200   0.01329   811.882  4.470909e-03
1  Lower300300   0.02895  1253.066  2.536267e-03
1  Lower400400   0.06035  1421.975  2.848316e-03
1  Lower500500   0.13054  1282.513  3.074112e-03
1  Lower600600   0.21536  1342.329  2.439888e-03
1  Lower700700   0.31553  1454.058  2.280117e-03
1  Lower800800   0.46786  1463.242  1.895154e-03
1  Lower900900   0.62829  1550.929  1.907595e-03
1  Lower   1000   1000   0.84989  1572.366  2.426128e-03

10 cases: 10 passed, 0 skipped, 0 failed
Benchmarking xzllttst
NREPS   UPLO  Nlda  TIMEMFLOPS RESID
=  =  =  =      
assertion ATL_zpotrf(CblasColMajor, Uplo, N, A, lda) == 0 failed, line 344 of  
file ../llttst.c
*** Error code 255

Stop in /usr/ports/math/atlas.
*** Error code 1

Stop in /usr/ports/math/atlas.



I have from dmesg the following processor:

FreeBSD 6.3-PRERELEASE #0: Sat Dec  1 18:32:38 CET 2007
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERNEL
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: AMD Athlon(tm)  (1240.53-MHz 686-class CPU)
  Origin = AuthenticAMD  Id = 0x681  Stepping = 1
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE
  AMD Features=0xc0400800SYSCALL,MMX+,3DNow!+,3DNow!
real memory  = 2147418112 (2047 MB)
avail memory = 2088062976 (1991 MB)


On similar machine at my work I also obtained similar assertion error. 
Whats is going on here? Could you help me?

It nervous me that this is not working (4 months pass and still not compiling 
with success), but I don't know why? Maybe it is hardware error? or maybe 
someone has this same problem? Please for your help and suggestions how to 
solve this problem.

If you need more information I send it to you.

I'm sorry for my English.

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


Re: 6.2 and Asus A7N8X-E

2007-12-20 Thread Erik Trulsson
On Thu, Dec 20, 2007 at 10:01:04AM -0700, At Home wrote:
 I've got an extra Asus A7N8X-E mobo I'm trying to bring 6.2 up on.
   AMD 3200+, Barton
   2G PC-3200 rom, 1G OCZ and 1G Kingston valueram
   Seagate ES ST3250820NS Sata drives jumpered for 1.5GB only
   NVidia FX5600 AGP display adapter
 
 I checked the archives and found comments about disabling ACPI, which I've 
 done, but it still hangs at various points in the process of loading up the 
 disk.
 
 I've tried turning off the on-board SATA controller and using an Adaptec 
 SATA controller with no improvement.  I've also tried slowing the clock and 
 a few other de-optimizations, to no avail.
 
 Is this basically a bad idea, or is there some piece of the puzzle I'm 
 missing?  Any help would be much appreciated.
 

Checking the specifications of that motherboard, there is nothing obvious
that should prevent it from working with FreeBSD.


If the process stops at different places each time, then it sounds like
bad hardware.
The kind of hardware problems that most often give strange errors are:
a) Bad RAM.  Check your memory with memtest86 (or equivalent.)  Try removing
   one of the memory sticks at a time.
b) Bad power supply.  Try another if you have one.
c) Overheating of some component.  Make sure you have adequate cooling of
   the system.


You could also try updating the BIOS, in case some bugs have been fixed in a
later version.  Problems with ACPI are almost always due to bugs in the BIOS.




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


Fwd: What priority this app running?

2007-12-20 Thread C High
On Dec 20, 2007 12:54 PM, Pieter de Goeje [EMAIL PROTECTED] wrote:
 On Thursday 20 December 2007, Unga wrote:
  Could I check with the list what is the priority this
  amarokapp is running?

 Priority isn't shown in the output above. Try
 $ ps -o pri,ni,rtprio,command -p `pgrep amarok`
 This will display priority, nice value and realtime priority (in that order).

  The ps man page doesn't show the values for priority,
  therefore, what should be the values it should display
  for lowest and highest priority (realtime)?

 A lower value means higher priority. Realtime priority 0 is as high as you can
 get. See also rtprio(1).


I am not so familiar with the pri or rtprio columns as much as I am
the nice column, and I'm also new to this list. So, I hope I'm not
throwing in my 2 cents too early.

With nice, 20 is the lowest priority, 0 is the base, and -20 is the highest.

for me `ps auxl` shows both pri and ni, but not rtprio and I'm
definitely not the one to ask regarding pri and rtprio.

I should do some reading upon these, too.

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


Re: tail does not exit

2007-12-20 Thread Chuck Swiger

On Dec 20, 2007, at 1:58 AM, Mikhail Teterin wrote:

On середа 19 грудень 2007, Chuck Swiger wrote:
= A quick test suggests that tail -f will close when it gets a  
SIGPIPE.


SIGPIPE? How is that relevant? Does tail get a SIGPIPE, when awk  
disappears

in my example? If it does not, why do you bring it up?


tail should get a SIGPIPE when it tries to write to a pipeline where  
the other end has closed.



And if it does get SIGPIPE, then you are wrong, because the posted
quick test shows the exact opposite behavior -- tail does NOT go
away.

Please, clarify... Thanks.


Worked for me.  I opened two SSH sessions to a FreeBSD 5.5 system, and  
did this in one:


% touch /tmp/logfile
% echo line 1  /tmp/logfile

...and this in the other:

% tail -f /tmp/logfile | awk '{print Line:  $1 ;  exit(0)}END{print  
Bye}'


...when I then did a:

% echo line 2  /tmp/logfile

...in the first, the tail -f process terminated in the second.

--
-Chuck

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


Re: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Nikola Lečić
On Wed, 19 Dec 2007 17:17:50 -0800
Alexander Rudyk (Akvelon) [EMAIL PROTECTED] wrote:
 
 Hi all
 
 I am planning to install FreeBSD 6.2 on my dell laptop with 80Gb HDD
 and 2GB RAM. FreeBSD will be the only OS on the laptop. Laptop will
 be used to web development (RubyOnRails), entertaiment (photo, music,
 video), web browsing and emailing, so no server side task will be
 handled.
 
 How you suggest to split 80GB between partitions to solve all laptop
 tasks. Here is partitions:
 /root
 /var
 /usr
 /home
 /swap

Hi Alexander,

You can find the recommendations regarding partition sizes in
Allocating Disk Space chapter of the FreeBSD Handbook
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/):

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

This means that your partition layout should be like this:

/   512M
swap   4096M (2x RAM)
/tmp512M
/var   1024M
/usrrest

/var's size depends, among other things, on how many logs you want to
keep there (where they live by default); since your machine will not be
a server, 512M should be ok. Please note that /var/db/, the default
place for info about ports installed, occupies roughly 200M or more.

/usr depends on how many applications you need to run. Please note
that /usr is also the default place where applications will be compiled
(inside /usr/ports) and where a lot of distfiles (sources) or
(precompiled) packages will be stored, so huge upgrades can take a lot
of place. [Some applications need ~500M (Firefox), ~1G (gcc42) or
several gigabytes (OpenOffice) to compile. Distfiles can use 1-3G,
depending on cleaning policy you choose.] Therefore, since you have 80G,
it's not a bad idea to use /usr for /home as well (i.e. to have /usr
only; home will be /usr/home, symlinked from /home). Otherwise, you can
easily encounter too much (wasted) or too little free space on /usr.

I've recently configured a laptop with the aforementioned partition
sizes (with smaller swap).

(Besides this, don't forget to read about the difference between
dedicated and sliced disks in the Handbook.)

Regards,
-- 
Nikola Lečić :: Никола Лечић
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: 6.2 and Asus A7N8X-E

2007-12-20 Thread NetOpsCenter

Erik Trulsson wrote:

On Thu, Dec 20, 2007 at 10:01:04AM -0700, At Home wrote:
  

I've got an extra Asus A7N8X-E mobo I'm trying to bring 6.2 up on.
  AMD 3200+, Barton
  2G PC-3200 rom, 1G OCZ and 1G Kingston valueram
  Seagate ES ST3250820NS Sata drives jumpered for 1.5GB only
  NVidia FX5600 AGP display adapter

I checked the archives and found comments about disabling ACPI, which I've 
done, but it still hangs at various points in the process of loading up the 
disk.


I've tried turning off the on-board SATA controller and using an Adaptec 
SATA controller with no improvement.  I've also tried slowing the clock and 
a few other de-optimizations, to no avail.


Is this basically a bad idea, or is there some piece of the puzzle I'm 
missing?  Any help would be much appreciated.





Checking the specifications of that motherboard, there is nothing obvious
that should prevent it from working with FreeBSD.


If the process stops at different places each time, then it sounds like
bad hardware.
The kind of hardware problems that most often give strange errors are:
a) Bad RAM.  Check your memory with memtest86 (or equivalent.)  Try removing
   one of the memory sticks at a time.
b) Bad power supply.  Try another if you have one.
c) Overheating of some component.  Make sure you have adequate cooling of
   the system.


You could also try updating the BIOS, in case some bugs have been fixed in a
later version.  Problems with ACPI are almost always due to bugs in the BIOS.




  

Aloha Gary,

I agree with the hardware diagnosis.

I have an ASUS A8N-VM CSM mobo running FreeBSD 7.*
Dual AMD  CPU
There are still unreliable on board hardware issues with my board so it 
is only used for receiving email and as a desktop.

No on line work that matters.

It did not like FreeBSD 6.1 when I tried to load it as the OS. So I 
tried 7 and it at least worked.  This may work for you.


I just loaded FreeBSD 8.* onto a Winfast mobo to try out on a  box I 
made and it was smooth going. The developers have come a long way with 
aFreeBSD since I started using 3.* many years ago.


~Al Plant - Honolulu, Hawaii -  Phone:  808-284-2740
 + http://hawaiidakine.com + http://freebsdinfo.org + [EMAIL PROTECTED] +
 + http://aloha50.net   - Supporting - FreeBSD 6.* - 7.* +
All that's really worth doing is what we do for others.- Lewis Carrol


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


Re: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Nikola Lečić
Apologies, two corrections:

On Thu, 20 Dec 2007 19:56:36 +0100
Nikola Lečić [EMAIL PROTECTED] wrote:

[...] 
 /var's size depends, among other things, on how many logs you want to
 keep there (where they live by default); since your machine will not
 be a server, 512M should be ok. Please note that /var/db/, the default
   
   correction: /var/db/pkg
 place for info about ports installed, occupies roughly 200M or more.
 ^
   (/var/db)
/var/db/pkg alone is smaller, count on up to 100M.

-- 
Nikola Lečić :: Никола Лечић
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Prova!!

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

RE: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Alexander Rudyk (Akvelon)
Nikola,

Thank you for your extender answer. I have two more comments.

Did you consider /var as your email db partition. I really don’t
know how big will be my mail db on freebsd, but after half of year
I have about 4GB outlook mail db. So 1GB for /var might be not enough
in my case.

Having /home as part of /usr is the good point. But in case of backup
it make sense to have /home as separate partition. What you think about this?

Thx
Alex




-Original Message-
From: Nikola Lečić [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 20, 2007 10:57 AM
To: Alexander Rudyk (Akvelon)
Cc: FreeBSD-questions@FreeBSD.org
Subject: Re: Partitions size for 80GB HDD and 2GB RAM

On Wed, 19 Dec 2007 17:17:50 -0800
Alexander Rudyk (Akvelon) [EMAIL PROTECTED] wrote:

 Hi all

 I am planning to install FreeBSD 6.2 on my dell laptop with 80Gb HDD
 and 2GB RAM. FreeBSD will be the only OS on the laptop. Laptop will
 be used to web development (RubyOnRails), entertaiment (photo, music,
 video), web browsing and emailing, so no server side task will be
 handled.

 How you suggest to split 80GB between partitions to solve all laptop
 tasks. Here is partitions:
 /root
 /var
 /usr
 /home
 /swap

Hi Alexander,

You can find the recommendations regarding partition sizes in
Allocating Disk Space chapter of the FreeBSD Handbook
(http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/):

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

This means that your partition layout should be like this:

/   512M
swap   4096M (2x RAM)
/tmp512M
/var   1024M
/usrrest

/var's size depends, among other things, on how many logs you want to
keep there (where they live by default); since your machine will not be
a server, 512M should be ok. Please note that /var/db/, the default
place for info about ports installed, occupies roughly 200M or more.

/usr depends on how many applications you need to run. Please note
that /usr is also the default place where applications will be compiled
(inside /usr/ports) and where a lot of distfiles (sources) or
(precompiled) packages will be stored, so huge upgrades can take a lot
of place. [Some applications need ~500M (Firefox), ~1G (gcc42) or
several gigabytes (OpenOffice) to compile. Distfiles can use 1-3G,
depending on cleaning policy you choose.] Therefore, since you have 80G,
it's not a bad idea to use /usr for /home as well (i.e. to have /usr
only; home will be /usr/home, symlinked from /home). Otherwise, you can
easily encounter too much (wasted) or too little free space on /usr.

I've recently configured a laptop with the aforementioned partition
sizes (with smaller swap).

(Besides this, don't forget to read about the difference between
dedicated and sliced disks in the Handbook.)

Regards,
--
Nikola Lečić :: Никола Лечић
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

RE: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread James Harrison
On Thu, 2007-12-20 at 11:26 -0800, Alexander Rudyk (Akvelon) wrote:
 Nikola,
 
 Thank you for your extender answer. I have two more comments.
 
 Did you consider /var as your email db partition. I really don’t
 know how big will be my mail db on freebsd, but after half of year
 I have about 4GB outlook mail db. So 1GB for /var might be not enough
 in my case.
 
 Having /home as part of /usr is the good point. But in case of backup
 it make sense to have /home as separate partition. What you think about this?
 
 Thx
 Alex
 
 


/home is just a symlink to /usr/home, so that wouldn't help.


cd /
ls -l
lrwxr-xr-x   1 root  wheel8 Nov  2 05:37 home - usr/home


You might want to put /usr/home on a separate partition, but that's your
call.

James

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


Re: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Jerry McAllister
On Wed, Dec 19, 2007 at 05:17:50PM -0800, Alexander Rudyk (Akvelon) wrote:

 Hi all
 
 I am planning to install FreeBSD 6.2 on my dell laptop with 80Gb HDD and 2GB
 RAM. FreeBSD will be the only OS on the laptop. Laptop will be used to web
 development (RubyOnRails), entertaiment (photo, music, video),
 web browsing and emailing, so no server side task will be handled.
 
 How you suggest to split 80GB between partitions to solve all laptop tasks.
 Here is partitions:
 /root
 /var
 /usr
 /home
 /swap

I would recommend two possibilities, depending on how you you use
the machine and how many ports you intend to install.

One is to have only / and swap.
For that, make swap  4096 MB
and root the rest.
This presumes you will not be running any server which is a realistic
for a laptop and then you will not be doing backups very much and that
you will be the only one with accounts on the machine.

The other would be a more standard division which makes backups easier
and tends to protect the system from runaway users and processes more.

 a:  /  (root)   256 MB
 b:  /swap  4096 MB
 d:  /tmp768 MB
 e:  /usr   4096 MB
 f:  /var   2048 MB
 g:  /home  all the rest.

Some combine root and /usr in to one large partition and then make
the rest as above.  Others make root, /usr and /var one partition
the size of the sum of those above and then keep the rest.  I like
to at least keep /tmp and /home separate from the OS partitions,
namely /, /usr and /tmp.   And, of course, at least some swap should 
be in its own partition.

Alternatively, you could make /var and /usr smaller
and move /var/log, /var/spool, /usr/ports and /usr/local to /home
and make symlinks for them.   Then /var might be 1024 MB
and /usr might be 2048 MB.   If you let your Email inbox grow to large
size before cleaning it out, then you might also want to move /var/mail
to /home. They all would take up just as much room, but it would be 
out of /home where they could grow as needed without having to know how 
much in advance.You want the initial /usr to be at least 2048 MB
in order to initially install source and the base ports tree.  Then,
before you do your fisrt csup of the system and of ports and installation
of any of the ports, you do the move and make the symlinks.  That will
leave /usr a little empty, but no problem.

If you are running some database that uses /var/db, you have to take
that in to account as well.   It can grow pretty fast.

Note, I find the handbook suggested partition sizes to be a little out
of date because of the current trend of increasing size of source and 
the ports tree, plus,  /usr no longer seems to be the assumed location 
of user's home(login) directories any more.  They now tend to go in /home.

But, this tends to end up being a religious issue, so find what works
for you and go with that and ignore all we soothsayers.

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


Re: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Brian

James Harrison wrote:

On Thu, 2007-12-20 at 11:26 -0800, Alexander Rudyk (Akvelon) wrote:
  

Nikola,

Thank you for your extender answer. I have two more comments.

Did you consider /var as your email db partition. I really don’t
know how big will be my mail db on freebsd, but after half of year
I have about 4GB outlook mail db. So 1GB for /var might be not enough
in my case.

Having /home as part of /usr is the good point. But in case of backup
it make sense to have /home as separate partition. What you think about this?

Thx
Alex






/home is just a symlink to /usr/home, so that wouldn't help.


cd /
ls -l
lrwxr-xr-x   1 root  wheel8 Nov  2 05:37 home - usr/home


You might want to put /usr/home on a separate partition, but that's your
call.

James

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]
  
I know of people that put /usr/home on a separate physical disk, then 
they can recover more easily in the event of a system catastrophe.


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


Re: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Jerry McAllister
On Thu, Dec 20, 2007 at 12:40:46PM -0700, James Harrison wrote:

 On Thu, 2007-12-20 at 11:26 -0800, Alexander Rudyk (Akvelon) wrote:
  Nikola,
  
  Thank you for your extender answer. I have two more comments.
  
  Did you consider /var as your email db partition. I really don???t
  know how big will be my mail db on freebsd, but after half of year
  I have about 4GB outlook mail db. So 1GB for /var might be not enough
  in my case.
  
  Having /home as part of /usr is the good point. But in case of backup
  it make sense to have /home as separate partition. What you think about 
  this?
  
  Thx
  Alex
  
  
 
 
 /home is just a symlink to /usr/home, so that wouldn't help.

Not unless you make it that way.   If you do not create a /home partition
then it can become just a symlink to /usr/home.   But, it is not if
you make a /home partition.   Then it gets turned in to a real mount
point.

jerry

 
 
 cd /
 ls -l
 lrwxr-xr-x   1 root  wheel8 Nov  2 05:37 home - usr/home
 
 
 You might want to put /usr/home on a separate partition, but that's your
 call.
 
 James
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to [EMAIL PROTECTED]
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: NIS Linux - Ubuntu

2007-12-20 Thread Chad Perrin
On Thu, Dec 20, 2007 at 09:32:50AM -0500, Lowell Gilbert wrote:
 RA Cohen [EMAIL PROTECTED] writes:
 
  I am sorry, here is an addendum to my previous post:
 
 Somehow Ubuntu was given root user
   permissions
 
  Actually, upon rereading my notes, Ubuntu was only given permissions of the 
  user doing the login - not root - but we could login with any valid user 
  apparently FreeBSD thought it was presented with a wildcard password.
 
  And I can also verify that FreeBSD clients are able to use the password map 
  when x is used instead of * in the map to represent the password. So I can 
  secure the system using the x but still cannot get Ubuntu clients to 
  authenticate.
 
 Sounds like Ubuntu is using the wrong map, probably one where it's
 getting a different and empty field where it expects to find a password.

The behavior with an asterisk instead of an X is pretty worrisome,
however, and is not strictly Ubuntu's fault.  Security of a server should
not rely on the good will and competence of the client developers.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Baltasar Gracian: A wise man gets more from his enemies than a fool from
his friends.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Nikola Lečić
On Thu, 20 Dec 2007 11:26:41 -0800
Alexander Rudyk (Akvelon) [EMAIL PROTECTED] wrote:
 
 Nikola,
 
 Thank you for your extender answer. I have two more comments.
 
 Did you consider /var as your email db partition. I really don’t
 know how big will be my mail db on freebsd, but after half of year
 I have about 4GB outlook mail db. So 1GB for /var might be not enough
 in my case.

The hier(7) manpage is very useful to understand the default directory
structure:

  
http://www.freebsd.org/cgi/man.cgi?query=hierapropos=0sektion=0manpath=FreeBSD+6.2-RELEASEformat=html

As for mail, it depends on how you plan to receive and handle it; if you
just download mail from pop3 account, it will be stored in your home by
a mail client (this goes as well for mail you export from Outlook to
e.g. Thunderbird). For locally (system) delivered mail, /var/spool is
the default place, but unless you want yo use your laptop as a mail
server, it's unlikely you will store your mail there.

 Having /home as part of /usr is the good point. But in case of backup
 it make sense to have /home as separate partition. What you think
 about this?

Of course it's very useful for backups. I just thought it was useful to
warn you about how much space /usr/ports could need because the default
installation procedure on FreeBSD is to compile sources (of thirs
party applications and of FreeBSD itself).

As a useful example on how much space you might need, here are rough
sizes on my home desktop computer, used for everyday work. I have ~850
ports installed.

  /usr/ports~2G (with current distfiles and packages that happen
 to be there + you will need at least 2-3G for
 large upgrades, sometimes  10G)
  /usr/local~5G (third party applications + additions such as
 TeXLive = ~1G)
  /usr/home~20G
  -
  /usr total used: ~30G (includes FreeBSD itself + some other smaller
 storages)

If you plan to build FreeBSD itself in the future, then /usr must be
even bigger. If all this leaves enough room for /home for you, then
it's certainly very useful to make it separate partition.

-- 
Nikola Lečić :: Никола Лечић
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


upgrading mplayer fails on linux-pango

2007-12-20 Thread Dave

Hello,
   Trying to upgrade my ports. And mplayer is failing on the linux-pango 
dependency. The error from linux-pango is that elf binary type 3 is not 
known and the install fails with an error 2. Does anyone have a fix for 
this?

Thanks.
Dave.

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


Re: Can't start more than one gnome-session as the same user?

2007-12-20 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Clint Olsen wrote:
 On Dec 20, Aryeh M. Friedman wrote:
 Side question: Can this solution be used to access multiple
 accounts on the same machine?

 I'm not quite sure what you mean here.  Do you mean multiple gnome
 sessions all as different user ids?  That's not a problem.  It was
 just that I was trying to run gnome both under vncserver and
 natively on the console.


I mean multiple sessions all under the same user *BUT* all tied to the
same xterm.   Namely I often login into my main account then su to
more specialized accounts and do a xhost +/setenv DISPLAY :0 in the
respective .cshrc's.   Thus I can start X apps from the command line
as the su'ed user but I want to make it so I can also have a panel
(xfce4 not gnome but I suspect it is the same issue since both use
GTK) for them.


- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHatFczIOMjAek4JIRAiydAJ9iRKSiH4cYBLS9/DR2s2t6kEhNBwCfcXAU
PEQNpdnjECRFQErPR/NW1/s=
=1HEB
-END PGP SIGNATURE-

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


how long does send-pr take to post

2007-12-20 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

In the past I have not been able to do send-pr but now that I fixed my
local mail issues all other email apps work... how long should I wait
for the pr to show up before I decide some kind of error happened.

- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD4DBQFHaup5zIOMjAek4JIRArgGAJ9GvsmWF6M6iozVPReYPWZiVL3/kQCYyWyJ
rxYXDxUXo9UkdqV30tpndw==
=ytqz
-END PGP SIGNATURE-

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


RE: Partitions size for 80GB HDD and 2GB RAM

2007-12-20 Thread Alexander Rudyk (Akvelon)
Thank all of you for really helpful answers.

I am thinking about this configuration (might be helpful for someone in the 
future)

 a:  /  (root)   256 MB
 b:  /swap  4096 MB
 d:  /tmp768 MB
 e:  /usr   8192 MB
 f:  /var   2048 MB
 g:  /home  all the rest.

Think that 8GB will be enough for /usr ports, local and build os from scratch,
and 2GB for /var - in any case I can symlink some of those to /home

So we need about 15GB of free storage only for FreeBSD needs.

Thx
Alex


-Original Message-
From: Nikola Lečić [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 20, 2007 12:13 PM
To: Alexander Rudyk (Akvelon)
Cc: FreeBSD-questions@FreeBSD.org
Subject: Re: Partitions size for 80GB HDD and 2GB RAM

On Thu, 20 Dec 2007 11:26:41 -0800
Alexander Rudyk (Akvelon) [EMAIL PROTECTED] wrote:

 Nikola,

 Thank you for your extender answer. I have two more comments.

 Did you consider /var as your email db partition. I really don’t
 know how big will be my mail db on freebsd, but after half of year
 I have about 4GB outlook mail db. So 1GB for /var might be not enough
 in my case.

The hier(7) manpage is very useful to understand the default directory
structure:

  
http://www.freebsd.org/cgi/man.cgi?query=hierapropos=0sektion=0manpath=FreeBSD+6.2-RELEASEformat=html

As for mail, it depends on how you plan to receive and handle it; if you
just download mail from pop3 account, it will be stored in your home by
a mail client (this goes as well for mail you export from Outlook to
e.g. Thunderbird). For locally (system) delivered mail, /var/spool is
the default place, but unless you want yo use your laptop as a mail
server, it's unlikely you will store your mail there.

 Having /home as part of /usr is the good point. But in case of backup
 it make sense to have /home as separate partition. What you think
 about this?

Of course it's very useful for backups. I just thought it was useful to
warn you about how much space /usr/ports could need because the default
installation procedure on FreeBSD is to compile sources (of thirs
party applications and of FreeBSD itself).

As a useful example on how much space you might need, here are rough
sizes on my home desktop computer, used for everyday work. I have ~850
ports installed.

  /usr/ports~2G (with current distfiles and packages that happen
 to be there + you will need at least 2-3G for
 large upgrades, sometimes  10G)
  /usr/local~5G (third party applications + additions such as
 TeXLive = ~1G)
  /usr/home~20G
  -
  /usr total used: ~30G (includes FreeBSD itself + some other smaller
 storages)

If you plan to build FreeBSD itself in the future, then /usr must be
even bigger. If all this leaves enough room for /home for you, then
it's certainly very useful to make it separate partition.

--
Nikola Lečić :: Никола Лечић
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]

Re: OSS Virtualization options ...

2007-12-20 Thread Marc G. Fournier
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



- --On Thursday, December 20, 2007 16:37:19 +0200 Nikos Vassiliadis 
[EMAIL PROTECTED] wrote:

 UFS2 does not initialize inodes at newfs time as UFS did. So, things
 are much better now!

 root:0:~# truncate -s 10G jail.00
 root:0:~# mdconfig -at vnode -f jail.00
 md0
 root:0:~# newfs md0
 /dev/md0: 10240.0MB (20971520 sectors) block size 16384, fragment size 2048
 using 56 cylinder groups of 183.77MB, 11761 blks, 23552 inodes.
 super-block backups (for fsck -b #) at:
  160, 376512, 752864, 1129216, 1505568, ...
 root:0:~# ls -ls jail.00
 4592 -rw-r--r--  1 root  wheel  10737418240 Dec 20 16:21 jail.00

 4.5MB for a 10GB filesystems is fine, isn't it?

'k, but that still doesn't address the problem ... being able to setquota's on 
directories within a jail environment ... or does it?

Note that I'm not looking to quota the VPS itself, only allow software *in* the 
VPS to set quotas ...


Marc G. Fournier   Hub.Org Networking Services (http://www.hub.org)
Email . [EMAIL PROTECTED]  MSN . [EMAIL PROTECTED]
Yahoo . yscrappy   Skype: hub.orgICQ . 7615664
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHawZW4QvfyHIvDvMRAljqAKDFNe1n3SwNtpoBI00NClVmjXNOJgCfffDk
SvamRIK3q+tqUBsp2AarpQ4=
=OnvR
-END PGP SIGNATURE-

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


Re: e-mail to root

2007-12-20 Thread jekillen


On Dec 19, 2007, at 7:30 PM, Kurt Buff wrote:


On Dec 19, 2007 6:54 PM, jekillen [EMAIL PROTECTED] wrote:

Hello:
Is there a manual or other publication that deals specifically with
reading e-mail messages to root for FreeBSD?  I have gotten a
message:

setuid diffs:
--- /var/log/setuid.today   Sat Sep  8 03:01:34 2007
+++ /tmp/security.9Jz0CWds  Wed Dec 19 03:01:38 2007

followed by references to various programs

then the next segment:
Checking for a current audit database:

Downloading fresh database.
auditfile.tbz   46 kB   42 
kBps

New database installed.
Database created: Wed Dec 19 14:40:00 PST 2007

Checking for packages with security vulnerabilities:

followed by numerous references to programs and
files on the FreeBSD site.

and I do not know quite what this means.


It means that you have portaudit installed, and it's run as part of
the daily scripts. That's a good thing.

I'd recommend consulting the portaudit man page

What it's found are packages on your machine that have security
bulletins against them - that is, the packages named have
vulnerabilities known to the FreeBSD Security team, which they believe
should be patched. There's a link to the bulletin for each one - I
think you'll find it enlightening to read some or all of them.

I'd do a 'pkg_add -r portupgrade' to install that package, do a cvsup
to get a current ports tree, then assess, very carefully, what you
want to upgrade. IMHO all of the packages mentioned should probably
get upgraded, unless you have *exceptional* reasons not to.

To upgrade you can do 'portupgrade packagename' for each package
named, or if you're feeling bold, 'portupgrade -aRr'.


I know that setuid is cause
for concern. I have three other machines with FreeBSD, with one
going back over a year of virtually continuous 24/7 operation and
this is the first time I have seen this type of message. For the
programs
reported with security problems it begs the question of dependencies
if they are removed or updated. Some references are to cups and
fetchmail
neither of which I use or have use for, that I am aware of.


Portupgrade will take care of dependencies. No worries, though you
should also peruse the man page for portupgrade to get your knowledge
up.


This
particular
machine is primarily a web server. It does have Postfix running but 
just

uses local delivery and only listens on private network interface.
I am also a little dubious about posting any specifics to a public
mailing
list.
I am admittedly a novice at this (on all my own systems so no one
else's behind is on the line). Short of paying consultation fees to
someone, this is about the only live contact I have on the subject.
Thanks in advance for info:


We were all novices - I still am, in far too many ways. Don't sweat
it, and keep asking questions. Also, start reading the FreeBSD
Handbook - it's online, and also downloadable, and covers this very
topic.

Kurt



Thank you kindly for the info;
I have been reading the handbook. I have it installed as html on my
everyday work machine. Having a web server on localhost is great.
It does cover portupgrade, portsnap, ports and all that but it was just
the e-mails to root that had me confused. Does this also cover the
setuid question also?
I also have the new Absolute FreeBSD, and the hard copy manual
obtained through FreeBSD Mall.  I had a problem with e-mail messages
to root some time ago that were showing up every 11 minutes. I look
into crontab and found one script that was set to run every 11 minutes.
I opened the script file and read the authors e-mail address and sent
him an e-mail on the problem. He responded scolding me for putting
commands in rc.conf. Sure enough, though I did not have explicit 
commands

in it, I did have the syntax wrong. Who would have guess that a script
dealing with entropy would complain because of problems with rc.conf?
That is an example of question that might arise that could use some
specific coverage in documentation.
Jeff K

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


Re: e-mail to root

2007-12-20 Thread Kurt Buff
On Dec 20, 2007 4:20 PM, jekillen [EMAIL PROTECTED] wrote:

mucho snippage

 Thank you kindly for the info;

De nada - pass it along when you have the chance.

 I have been reading the handbook. I have it installed as html on my
 everyday work machine. Having a web server on localhost is great.
 It does cover portupgrade, portsnap, ports and all that but it was just
 the e-mails to root that had me confused. Does this also cover the
 setuid question also?

I don't remember, quite frankly. I just know that I get two emails
each day from each of my machines, take a quick look at them, and act
on them as appropriate.

 I also have the new Absolute FreeBSD, and the hard copy manual
 obtained through FreeBSD Mall.  I had a problem with e-mail messages
 to root some time ago that were showing up every 11 minutes. I look
 into crontab and found one script that was set to run every 11 minutes.
 I opened the script file and read the authors e-mail address and sent
 him an e-mail on the problem. He responded scolding me for putting
 commands in rc.conf. Sure enough, though I did not have explicit
 commands
 in it, I did have the syntax wrong. Who would have guess that a script
 dealing with entropy would complain because of problems with rc.conf?
 That is an example of question that might arise that could use some
 specific coverage in documentation.

Who would have guessed? Someone with more experience, or someone with
good documentation in hand who's read it. If the documentation is
lacking, I'll bet there are people who would appreciate your input.
Seriously.

I've absorbed my knowledge from so many sources (books, magazines,
lists like this one) over such a long period of time, that I can no
longer remember where I got any particular fact, in most cases. That's
not always a good thing.

BTW - If you're [contemplating] doing sysadmin work professionally,
I'd highly recommend the following books. The first two are
recommended even if you're doing this as a hobby. The Limoncelli book
I recommend especially highly to anyone in their early-to-middle
career as a sysadmin who wants a coherent way to look at the craft. I
have just ordered the 2nd edition, after reading the 1st a couple of
times.

http://www.bookpool.com/sm/0130206016

http://www.bookpool.com/sm/0201702452

http://www.bookpool.com/sm/0596003439

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


Re: Fwd: What priority this app running?

2007-12-20 Thread Norberto Meijome
On Thu, 20 Dec 2007 13:07:44 -0500
C High [EMAIL PROTECTED] wrote:

 With nice, 20 is the lowest priority, 0 is the base, and -20 is the highest.

that's right - it is because with nice you tell it 'how nice to be'. when you
ask a process to have a level 20 of niceness, it will be VERY nice and the
kernel will let other processes in front of it. If you say, this process will
have a negative value of niceness, it isn't very nice at all ;)

_
{Beto|Norberto|Numard} Meijome

We've been wrong so many times before, why stop now?

I speak for myself, not my employer. Contents may be hot. Slippery when wet.
Reading disclaimers makes you go blind. Writing them is worse. You have been
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Fwd: What priority this app running?

2007-12-20 Thread Aryeh M. Friedman
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Norberto Meijome wrote:
 On Thu, 20 Dec 2007 13:07:44 -0500 C High [EMAIL PROTECTED]
 wrote:

 With nice, 20 is the lowest priority, 0 is the base, and -20 is
 the highest.

 that's right - it is because with nice you tell it 'how nice to
 be'. when you ask a process to have a level 20 of niceness, it will
 be VERY nice and the kernel will let other processes in front of
 it. If you say, this process will have a negative value of
 niceness, it isn't very nice at all ;)

I think the kernel it self (this is based on 43BSD) has a niceness of -25.

- --
Aryeh M. Friedman
FloSoft Systems
http://www.flosoft-systems.com
Developer, not business, friendly
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHazRtzIOMjAek4JIRAtAlAJ4xgwq25KBQ9GAJF4XDr2JbNlXLGgCfa+mP
xr40CG6NrQFBl7GyyWvfbac=
=WRMK
-END PGP SIGNATURE-

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


Re: Install doxygen on a non X11 machine

2007-12-20 Thread stgib
Christopher Key [EMAIL PROTECTED] writes:

 From my reading of the doxygen Makefile, this should be enough to
 prevent any of the graphical tools from being installed.
 Nevertheless, whenever I run make, I'm presented with a configuration
 screen for qt.  Can anyone advise?

You probably overlooked devel/tmake dependencies.

devel/doxygen:
[...]
BUILD_DEPENDS=  tmake:${PORTSDIR}/devel/tmake
LIB_DEPENDS=png:${PORTSDIR}/graphics/png
[...]

devel/tmake:
[...]
USE_PERL5=  yes
USE_QT_VER= 3
[...]

See?

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


/var growing too fast

2007-12-20 Thread zbigniew szalbot

Hello,

I thought I would ask your advice. I only have a 2 GB /var slice and 
space is shrinking fast. I see that most space is taken by /var/db.


$ du -hs /var/db
1.4G/var/db

$  du -hs /var
1.7G/var

$ df
/dev/ad0s1e   2178510 1738396  26583487%/var

Is it possible to release some space from /var/db? I seem to recall that 
/var/db is pretty important and I better not lose it...


It may be that something else is eating up available space but I am not 
sure how to measure it. Every day about 1% more of available space is taken.


Many thanks for ideas what to do (apart from bying a bigger drive :)

And season greetings to you all!

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


Re: OSS Virtualization options ...

2007-12-20 Thread Norberto Meijome
On Thu, 20 Dec 2007 20:18:30 -0400
Marc G. Fournier [EMAIL PROTECTED] wrote:

 'k, but that still doesn't address the problem ... being able to setquota's 
 on 
 directories within a jail environment ... or does it?
 
 Note that I'm not looking to quota the VPS itself, only allow software *in* 
 the 
 VPS to set quotas ...

Marc, 

I've personally given up on Plesk ;) if you want to find out more what it's 
doing, maybe you can run apache with only 1 thread and attach ktrace to it and 
see what plesk's php code is  trying to do, and why it dies? 

or is it an intrinsic issue with quotas in a jail, that are not allowed? (i 
think this is it, yes?) can u install a customised set of libraries in those 
jails so that the syscall that are failing return whatever plesk expects (even 
if it doesn't effectively do anything ? ) ... 

cheers,
B

_
{Beto|Norberto|Numard} Meijome

Windows: Where do you want to go today?
Linux: Where do you want to go tomorrow?
FreeBSD: Are you guys coming, or what?

I speak for myself, not my employer. Contents may be hot. Slippery when wet. 
Reading disclaimers makes you go blind. Writing them is worse. You have been 
Warned.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]