error: field 'aio_sigevent' has incomplete type

2009-01-22 Thread Janos Dohanics

I am trying to build a new kernel for an amd64 machine but the build
fails:

objcopy --only-keep-debug ahd.ko.debug ahd.ko.symbols
objcopy --strip-debug --add-gnu-debuglink=ahd.ko.symbols ahd.ko.debug
ahd.ko
=== aio (all)
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 
-mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
-mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-Werror  /usr/src/sys/libkern/scanc.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 
-mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
-mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-Werror  /usr/src/sys/libkern/skpc.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 
-mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
-mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-Werror  /usr/src/sys/libkern/strcasecmp.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys
-I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
-include opt_global.h -fno-common -finline-limit=8000 --param
inline-unit-growth=100 --param large-function-growth=1000 
-mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
-mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-Werror  /usr/src/sys/libkern/strcat.c
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
-nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
/usr/obj/usr/src/sys/FRACASSO2009012201/opt_global.h -I. -I@
-I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100
--param large-function-growth=1000 -fno-common -g
-fno-omit-frame-pointer -I/usr/obj/usr/src/sys/FRACASSO2009012201
-mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
-mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
-Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes 
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
-Wno-pointer-sign -fformat-extensions -c
/usr/src/sys/modules/aio/../../kern/vfs_aio.c
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2548: error: field
'aio_sigevent' has incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2564: error: field
'aio_sigevent' has incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function
'convert_old_sigevent32':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2575: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2580: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2584: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2585: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function
'convert_sigevent32':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2621: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2626: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2629: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2632: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2633: error: dereferencing
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function
'freebsd32_olio_listio':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: error: storage size
of 'osig' isn't known
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: warning: 

Subversion install problem on FreeBSD

2009-01-22 Thread Guillaume BABIK
Hi,

 

I am new on Subversion installation.

 

I tried to install Subversion 1.5.5 on a FreeBSD 6.2.

 

I use Port’s system.

 

The installation seems to be ok, but I can’t access to my Subversion with
svn+ssh protocol.

Although I can access to my FreeBSD with ssh (via Putty)

 

When I type : svnadmin –version, I obtain : 

svnadmin, version 1.5.5 (r34862)

compilé Jan 21 2009, 09:51:35

 

Copyright (C) 2000-2008 CollabNet.

Subversion est un logiciel libre, cf http://subversion.tigris.org/

Il inclut du logiciel développé par CollabNet (http://www.Collab.Net/).

 

Les types de stockage de dépôt (FS) suivants sont disponibles :

 

* fs_base : Module destiné à travailler avec un dépôt Berkeley DB.

* fs_fs : Module de stockage de dépôt à base de fichiers simples (FSFS).

 

I search for 2 days ! :-(

 

Many thanks for your future help !

 

PS : Sorry for my poor English.

 

Guillaume BABIK

 

 

___
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 thru SSH session

2009-01-22 Thread Jos Chrispijn


[Josh Carroll]

For future runs, you might consider using something like screen
(/usr/ports/sysutils/screen) so you can resume the session later,
should you get disconnected.
  

I will, thanks for sharing.
Jos
___
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


[SOLVED] Re: Strange nvidia GeForce 9800GT--harddrive conflict?

2009-01-22 Thread Jakub T
2009/1/20 Jakub T jakub.t...@gmail.com

 Hi,

 I'm trying to start X on FreeBSD-7.1-RELEASE (i386) with up-to-date ports
 tree with this graphics card:

 nvidia0: GeForce 9800 GT on vgapci0
 vgapci0: child nvidia0 requested pci_enable_busmaster
 vgapci0: child nvidia0 requested pci_enable_io
 nvidia0: [GIANT-LOCKED]
 nvidia0: [ITHREAD]
 ...


Hi again,

The problem is solved with upgrade to latest 7.1-STABLE, whatever was the
cause. For the archives and people with similar problem, the Xorg.0.log that
contains more about this issue can be found here:

http://pastebin.com/f3a116b3b

Jakub
___
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: ASL 2.0 based software contribution to FreeBSD code base

2009-01-22 Thread Saifi Khan
On Wed, Jan 21, 2009 at 10:16 AM, Vincent Hoffman vi...@unsane.co.uk wrote:
 Saifi Khan wrote:
 Hi:

 Is Apache Software License (ASL) 2.0 based software contributions
 accepted in FreeBSD code base ?

 Specific case to consider would be:
  a. device driver code released under ASL 2.0
  b. code contributed to kernel (eg. scheduler implementation) under ASL 2.0
  c. code contributed to userland (eg. new implementation of ctags) under ASL 
 2.0

 Can some of the experienced members share how things work within the
 context of FreeBSD project ?


 I was going to answer with
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/committers-guide/pref-license.html
 however in a recent discussion on the -current list
 (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=163526+0+current/freebsd-current)
 Brooks Davis bro...@freebsd.org said
 This file is outdated.  While this remains our prefered license, the
 current
 OpenBSD prefered license is the ISC licesed which is allowed by the license
 policy we published to developers last year.  We should probably replace
 this
 page with that policy.

 I'd ask for a copy of the current policy on freebsd-current@ if you dont
 get any answers here.



Hi Vince:

Thank you for your kind reply.

Please see my writeup on ASL at http://www.twincling.org/node/277

While i understand ASL, i'm keen to know what are the technical
deviations (if any) in the BSD  licsense followed by FreeBSD project.

eg. if i write a device driver and release it under ASL 2.0, can it
legally make into FreeBSD project ?

-- 
thanks
Saifi.
___
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: ASL 2.0 based software contribution to FreeBSD code base

2009-01-22 Thread Vincent Hoffman
Saifi Khan wrote:
 On Wed, Jan 21, 2009 at 10:16 AM, Vincent Hoffman vi...@unsane.co.uk wrote:
   
 Saifi Khan wrote:
 
 Hi:

 Is Apache Software License (ASL) 2.0 based software contributions
 accepted in FreeBSD code base ?

 Specific case to consider would be:
  a. device driver code released under ASL 2.0
  b. code contributed to kernel (eg. scheduler implementation) under ASL 2.0
  c. code contributed to userland (eg. new implementation of ctags) under 
 ASL 2.0

 Can some of the experienced members share how things work within the
 context of FreeBSD project ?


   
 I was going to answer with
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/committers-guide/pref-license.html
 however in a recent discussion on the -current list
 (http://docs.freebsd.org/cgi/getmsg.cgi?fetch=163526+0+current/freebsd-current)
 Brooks Davis bro...@freebsd.org said
 This file is outdated.  While this remains our prefered license, the
 current
 OpenBSD prefered license is the ISC licesed which is allowed by the license
 policy we published to developers last year.  We should probably replace
 this
 page with that policy.

 I'd ask for a copy of the current policy on freebsd-current@ if you dont
 get any answers here.


 

 Hi Vince:

 Thank you for your kind reply.

 Please see my writeup on ASL at http://www.twincling.org/node/277

 While i understand ASL, i'm keen to know what are the technical
 deviations (if any) in the BSD  licsense followed by FreeBSD project.

 eg. if i write a device driver and release it under ASL 2.0, can it
 legally make into FreeBSD project ?

   
I'm in no way a licence expert and I'm not a FreeBSD developer, however
my understanding (from sources such as
[http://wiki.freebsd.org/VendorInformation])
is that in answer to your original questions
a) Device drivers - yes but it cannot be included in the GENERIC config,
but thats what modules are for anyway.
b) Kernel/base system - No - I belive this would need to be BSD licensed.
c) userland - Yes but probably needs to be in the contrib directory

as an example, all the ZFS stuff is CDDL licenced , This had to be kept
separate from pretty much everything but it's there.
However I could well be wrong and its almost certainly worth asking
these questions again on the freebsd-current mailing list where
developers who might actually know the answers hang out.

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


need Tutorial IN Pdf or Doc.

2009-01-22 Thread Mbung Linux
hello i'm from indonesia.i really want to try freebsd,but my office have a 
proxy...
it very sucks..i can't download u'r documentation at 
ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/
so please send tutorial in pdf or doc that i can learn more about it

Thank's a lot.

Danang

 

=


-- 
Powered by Outblaze
___
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


FreeBSD7+KDE3, Ctrl-Alt-F9 : no signal

2009-01-22 Thread Pieter Donche

Hi,

FreeBSD7-amd + X + KDE3 installed.

When connecting from a WindowsXP PC via an X-windows emulator, everything
is OK (1280x1024 screen)

On a console monitor (capable of 1280x1024) plugged in directly in
VGA connector of the machine (and a mouse and keyboard also),
Ctrl-Alt-F1 gives Command line interface (and reponds to keystrokes),
but when switching via Ctrl-Alt-F9 for X, I get a black screen,
and after 2 seconds the LED on the monitor turns from green to orange 
(meaning: no signal)


What can be wrong and how to remedy?
___
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: need Tutorial IN Pdf or Doc.

2009-01-22 Thread Johann Kois
Hi,

try using one of the http mirrors instead if you are not allowed to access
ftp sites.  You can find a list here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-ftp.html.
Look for one which has the comment (http) after its name.  For example
http://ftp2.de.freebsd.org/pub/FreeBSD/.  There is a subdirectory doc
which contains all the documentation for all available languages.


Johann


--
Johann Kois
jk...@freebsd.org
FreeBSD Documentation Project
FreeBSD German Documentation Project - https://doc.bsdgroup.de



 -Original Message-
 From: owner-freebsd-...@freebsd.org [mailto:owner-freebsd-
 d...@freebsd.org] On Behalf Of Mbung Linux
 Sent: Donnerstag, 22. Jänner 2009 13:32
 To: d...@freebsd.org
 Cc: questi...@freebsd.org
 Subject: need Tutorial IN Pdf or Doc.
 
 hello i'm from indonesia.i really want to try freebsd,but my office
 have a proxy...
 it very sucks..i can't download u'r documentation at
 ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/
 so please send tutorial in pdf or doc that i can learn more about it
 
 Thank's a lot.
 
 Danang
 
 
 
 =
 
 
 --
 Powered by Outblaze
 ___
 freebsd-...@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-doc
 To unsubscribe, send any mail to freebsd-doc-unsubscr...@freebsd.org


___
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


load average + with no visible load ?

2009-01-22 Thread Laszlo Nagy

#uptime
9:06AM  up  6:14, 12 users, load averages: 25.39, 13.19, 9.55

I would think that CPU is under 100% when load=15.58 . But it is not:

#top -S

last pid: 17095;  load averages: 13.26, 11.20,  
8.57 
up 0+06:12:25  09:04:27

514 processes: 3 running, 490 sleeping, 1 zombie, 20 waiting
CPU states: 16.1% user,  0.0% nice,  1.8% system,  0.0% interrupt, 82.1% 
idle

Mem: 1406M Active, 272M Inact, 247M Wired, 70M Cache, 112M Buf, 8380K Free
Swap: 4096M Total, 4096M Free

 PID USERNAMETHR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
  11 root  1 171   52 0K 8K RUN0 214:21 43.70% 
idle: cpu0
  10 root  1 171   52 0K 8K RUN1 282:08 34.28% 
idle: cpu1
  21 root  1 -68 -187 0K 8K WAIT   1   2:15  2.05% 
irq19: myk0 uhci3
16480 timea 1  970 34376K 17628K select 0   0:03  1.81% 
wnck-applet

14813 kornel1  960 34376K 27384K select 0   0:20  1.12% skype
17095 root  1  960  3104K  2324K CPU1   1   0:00  1.00% top
16443 timea 1  960 17304K 12560K select 1   0:03  0.98% metacity
  12 root  1 -44 -163 0K 8K WAIT   1   1:21  0.88% 
swi1: net

16550 timea 1  970 41760K 37284K select 0   0:15  0.73% wish8.4
2317 zsolt 1  960 29680K 22344K select 1   3:13  0.59% skype
3450 szgabor   1  960 28344K 21484K select 1   2:56  0.49% skype

The most strange is that last pid is almost constant, about 1 process 
started per second.


So how it is possible that top -S tells 82% idle but load tells 
15.58 ?


Thanks,

  Laszlo

___
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: change root pasword

2009-01-22 Thread Jerry McAllister
On Thu, Jan 22, 2009 at 09:33:26AM +0200, Ivailo Tanusheff wrote:

 Hi,
 
 If you have a physical access to the server - reboot in single user mode 
 and change the password.
 Other option is to login on the console with user toor and no password and 
 change it then.

   If you have made user toor able to be logged in to without a password, 
then I would be surprised if your system isn't riddled with rootkits and other
trash and if it isn't, it deserves to be.   You should no more make toor or 
any other id accessible without password or some authentication/authorization
required control than you should do it for root.

Good grief!!

Otherwise, the first item, single user boot and set the root password
is the correct answer.   Note, you will have to remount / for writes.

  mount -u /
 
jerry


 
 
 You can change the password by passwd command, which syntax you may find 
 in internet or just type man passwd.
 
 Regards,
 
 Ivailo Tanusheff
 Deputy Head of IT Department
 ProCredit Bank (Bulgaria) AD
 
 Valdis Ziedi?? valdis.zied...@gmail.com 
 Sent by: owner-freebsd-questi...@freebsd.org
 21.01.2009 22:01
 
 To
 freebsd-questions@FreeBSD.org
 cc
 
 Subject
 change root pasword
 
 hi,
 i'm new your product user! my first admin leave new server with freebsd!
 someone change root pasword can you help me step by step change this
 pasword! i'll be thankfull!
 
 i'm now studing your product but if you can help me it would be nice!
 
 best regart valdis
 ___
 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
___
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


Code to enlarge/shrink browser's embedded quicktime player

2009-01-22 Thread David Karapetyan
I was wondering if it was possible to generate code that would allow my 
clients to shrink or enlarge their quicktime players when playing 
lecture videos from my server. I know one can embed players into html 
code; however, wheat I specifically want is for someone to be able to 
click on a particular file in my apache server directory and then, when 
it begins streaming, have it play via a quicktime embedded interface 
that gives the client the option to manipulate its size. Ideally, I 
would like to generate a single bit of html code that can apply to all 
the files (rather than generate a series of href anchors for each). Can 
this be done?

-- --
Best,
David Karapetyan
http://davidkarapetyan.homeunix.com
University of Notre Dame
Department of Mathematics
255 Hurley Hall
Notre Dame, IN 46556-4618
Phone: 574-631-5706
Cell:  202-460-5173
Fax:   574-631-6579

___
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: old cruft after source upgrading --- clean install?

2009-01-22 Thread Lowell Gilbert
Novembre novem...@gmail.com writes:

 I have a system which was updated from 6.3-RELEASE to 7.0-RELEASE some
 eight months ago via a source upgrade. After that, I rebuilt all the
 packages on the system as well. Now, I would like to update it again
 to 7.1-RELEASE, and I'm wondering whether I should do a clean install
 or just do a source upgrade again. My question is regarding all the
 old cruft that remains after the upgrade and rebuilding of all the
 packages, as I already know that there are a bunch of old libraries
 residing somewhere on the system.

pkg_delete (or portupgrade, etc.) should not orphan any libraries
(occasionally there is a bug in a port that does, but it's rare).  As
far as the base system, remember the make delete-old step, which is
part of the official UPDATING instructions.

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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


Is aio or vm broken for FreeBSD 7-STABLE ?

2009-01-22 Thread Abdullah Ibn Hamad Al-Marri
Hello,

This is fresh csup and buildworld after make cleandir and make cleanworld, then 
I built world.

GENERIC KERNEL conf.

=== aio (all)
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc   
-DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/GENERIC/opt_global.h 
-I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 
--param large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer 
-I/usr/obj/usr/src/sys/GENERIC -mcmodel=kernel -mno-red-zone  -mfpmath=387 
-mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls 
-Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith 
-Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c 
/usr/src/sys/modules/aio/../../kern/vfs_aio.c
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq 
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -mcmodel=kernel -mno-red-zone  -mfpmath=387 
-mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -Werror  
/usr/src/sys/vm/vm_unix.c
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2548: error: field 'aio_sigevent' 
has incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2564: error: field 'aio_sigevent' 
has incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 
'convert_old_sigevent32':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2575: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2580: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2584: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2585: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 'convert_sigevent32':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2621: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2626: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2629: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2632: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2633: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 
'freebsd32_olio_listio':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: error: storage size of 
'osig' isn't known
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: warning: unused variable 
'osig'
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 
'freebsd32_lio_listio':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2904: error: storage size of 
'sig32' isn't known
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2904: warning: unused variable 
'sig32'
*** Error code 1
1 error
*** Error code 2
1 error
*** Error code 2
cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g -Wall 
-Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes 
-Wpointer-arith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign 
-fformat-extensions -nostdinc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq 
-D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common 
-finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000  -mcmodel=kernel -mno-red-zone  -mfpmath=387 
-mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float 
-fno-asynchronous-unwind-tables -ffreestanding -Werror  
/usr/src/sys/vm/vm_zeroidle.c
1 error
*** Error code 2
1 error
*** Error code 2
1 error

 Regards,


-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/



  

___
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: error: field 'aio_sigevent' has incomplete type

2009-01-22 Thread Mel
On Wednesday 21 January 2009 22:48:45 Janos Dohanics wrote:

 cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
 -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
 /usr/obj/usr/src/sys/FRACASSO2009012201/opt_global.h -I. -I@
 -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100
 --param large-function-growth=1000 -fno-common -g
 -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/FRACASSO2009012201
 -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
 -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
 -Wno-pointer-sign -fformat-extensions -c
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2548: error: field
 'aio_sigevent' has incomplete type

snip more errors

 *** Error code 1
 1 error
 *** Error code 2
 1 error
 *** Error code 2

build continues:
 cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g
 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
 -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
 -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys
 -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
 -include opt_global.h -fno-common -finline-limit=8000 --param
 inline-unit-growth=100 --param large-function-growth=1000
 -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
 -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
 -Werror  /usr/src/sys/libkern/strcmp.c

Build kernel without -j2, then report if error persists.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: error: field 'aio_sigevent' has incomplete type

2009-01-22 Thread Abdullah Ibn Hamad Al-Marri
- Original Message 

 From: Mel fbsd.questi...@rachie.is-a-geek.net
 To: freebsd-questions@freebsd.org
 Cc: Janos Dohanics w...@3dresearch.com
 Sent: Thursday, January 22, 2009 9:24:14 PM
 Subject: Re: error: field 'aio_sigevent' has incomplete type
 
 On Wednesday 21 January 2009 22:48:45 Janos Dohanics wrote:
 
  cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
  -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
  /usr/obj/usr/src/sys/FRACASSO2009012201/opt_global.h -I. -I@
  -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100
  --param large-function-growth=1000 -fno-common -g
  -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/FRACASSO2009012201
  -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
  -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
  -Wno-pointer-sign -fformat-extensions -c
  /usr/src/sys/modules/aio/../../kern/vfs_aio.c
  /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2548: error: field
  'aio_sigevent' has incomplete type
 
 
 
  *** Error code 1
  1 error
  *** Error code 2
  1 error
  *** Error code 2
 
 build continues:
  cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g
  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
  -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys
  -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
  -include opt_global.h -fno-common -finline-limit=8000 --param
  inline-unit-growth=100 --param large-function-growth=1000
  -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
  -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
  -Werror  /usr/src/sys/libkern/strcmp.c
 
 Build kernel without -j2, then report if error persists.
 -- 
 Mel
 
 Problem with today's modular software: they start with the modules
 and never get to the software part.

Here we go without -j flag for the kernel.

=== aio (all)
cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc   
-DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/VB/opt_global.h -I. 
-I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param 
large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer 
-I/usr/obj/usr/src/sys/VB -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse 
-mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables 
-ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  
-Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef 
-Wno-pointer-sign -fformat-extensions -c 
/usr/src/sys/modules/aio/../../kern/vfs_aio.c
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2548: error: field 'aio_sigevent' 
has incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2564: error: field 'aio_sigevent' 
has incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 
'convert_old_sigevent32':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2575: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2580: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2584: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2585: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 'convert_sigevent32':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2621: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2626: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2629: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2632: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2633: error: dereferencing 
pointer to incomplete type
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 
'freebsd32_olio_listio':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: error: storage size of 
'osig' isn't known
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: warning: unused variable 
'osig'
/usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function 
'freebsd32_lio_listio':
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2904: error: storage size of 
'sig32' isn't known
/usr/src/sys/modules/aio/../../kern/vfs_aio.c:2904: warning: unused variable 
'sig32'
*** Error code 1

Stop in /usr/src/sys/modules/aio.
*** Error code 1

Stop in /usr/src/sys/modules.
*** Error code 1

Stop in /usr/obj/usr/src/sys/VB.
*** Error code 1

Stop in /usr/src.
*** Error code 1



 Regards,

-Abdullah Ibn Hamad Al-Marri
Arab Portal
http://www.WeArab.Net/


  


Re: Sysinstall partition oddities (6.3/i386 - 7.x/amd64)

2009-01-22 Thread Steve Polyack

Steve Polyack wrote:
I've seen some oddities with the partition and bsdlabel editors in the 
sysinstall program on the 7.0 and 7.1 releases.  The partition editor 
seems to be reading or parsing the partition table incorrectly.  I had 
a 6.3-RELEASE system with the following layout:

/dev/amrd3s1a on / (ufs, local)
/dev/amrd3s1g on /opt (ufs, local, soft-updates)
/dev/amrd3s1f on /usr (ufs, local, soft-updates)
/dev/amrd3s1d on /var (ufs, local, soft-updates)
/dev/amrd3s1e on /var/log (ufs, local, soft-updates)

Upon booting into the 7.x install media and encountering the FDISK 
Partition Editor, the partition it's seeing is amrd3*a*s1, as opposed 
to amrd3s1.  Trying to continue with the partition table and bsd 
labels as is only led to the installer bailing out.  As soon as it 
would attempt to newfs the disk partitions, the installer would error 
and report that it can't find a device entry in /dev for amrd3*a*s1a.  
Since preserving the data on the disk was not critical, I was able to 
continue by deleting the original partition/slice and recreating 
them.  This worked fine.


However, I'm still curious as to what the cause of this is.  I have 
seen this before on two other systems while installing 7.x, quite 
possibly while upgrading from 6.3.  When this occurred, I was also 
moving from i386 to amd64;  Is there some kind of offset for partition 
tables which may change based on architecture?


Lastly, here's a screenshot of the partition editor: 
http://people.collaborativefusion.com/~spolyack/fbsd-install.jpg


Unfortunately, I do not have any screenshots of the errors during the 
newfs step.  If this comes up again, I'll be sure to take some.  Thanks.


This also occurs in VMWare.  I'm able to get the exact same behavior by 
installing a 7.1-RELEASE system (single slice, da0s1), then booting off 
the install media and start a new installation.  It picks up the 
partition as da0as1 instead of da0s1, making it impossible to use 
sysinstall while preserving existing partitions.


-Steve Polyack
___
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: load average + with no visible load ?

2009-01-22 Thread Chuck Swiger

On Jan 22, 2009, at 6:01 AM, Laszlo Nagy wrote:

#uptime
9:06AM  up  6:14, 12 users, load averages: 25.39, 13.19, 9.55

I would think that CPU is under 100% when load=15.58 . But it is not:



See: http://en.wikipedia.org/wiki/Load_average

A high load average should have your CPUs running near 100%; if they  
are not, on some platforms that tends to indicate that many processes  
are (or would be) runnable but are being blocked in a short-term wait  
condition due to network or disk I/O, or are being affected by VM  
paging activity.  This line of your top output indicates many  
processes are in a WAIT condition:



514 processes: 3 running, 490 sleeping, 1 zombie, 20 waiting



Regards,
--
-Chuck
___
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: Help! locate.code /tmp: filesystem full

2009-01-22 Thread Mel
On Thursday 15 January 2009 13:37:06 Polytropon wrote:
 On Thu, 15 Jan 2009 21:37:24 +0100, Andy Wodfer wod...@gmail.com wrote:

Added context:

  Here's the output of fsck (this was a new command to me):
 
  # fsck
  ** /dev/ar0s1a (NO WRITE)

  Should I run fsck -y? Is it safe to do so?

 At least, fsck will do its best to repair the defective file system.
 As you have seen from the messages, you will surely lose some files
 when their information gets cleared. If you use -y, fsck is allowed
 to do anything it considers neccessary doing.

fsck on a live filesystem (hint: NO WRITE) is a bad idea. Doing an fsck that 
is supposed to repair stuff, always requires downtime, unless you use 
background_fsck. However, many people discourage it's usage as it can leave 
some errors unfixed.

In short: reboot in single user mode, then run fsck -y at the prompt.

Never ever run fsck -y on a live filesystem.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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


Backup program on FreeBSD for DLT drive

2009-01-22 Thread bsd

Hello,


I am using a FreeBSD server 7.0 as a Samba server and wanted to backup  
this server using Quantum DLT tape.


I would need a simple tool that could be configured rapidl at that's  
stable enough to provide high security for the data.

Ideally any good pointer to a howto would be a must!


Thanks for your support.



Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



___
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: looking for a fail over system

2009-01-22 Thread Roger Olofsson



Buck Jones skrev:
MY web server just died and It's taking some time to get back up . I 
want to find a fail over device so when one computer dies another 
automatically takes over. of course letting me know this happened would 
be a good thing too.

___
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





No virus found in this incoming message.
Checked by AVG - http://www.avg.com 
Version: 8.0.176 / Virus Database: 270.10.10/1906 - Release Date: 2009-01-21 07:07




Hello Buck,

I have been using some approaches over the years.

One is a hot/cold failover like carp only I used freevrrpd 
(/usr/ports/net/freevrrpd).


The second one is a simple loadbalancer called pen (/usr/ports/net/pen 
(http://siag.nu hit the 'More stuff' link).


The third approach would be using dns - providing you run your own dns, 
you could do simple round-robin 
(http://en.wikipedia.org/wiki/Round_robin_DNS).


The easiest one, providing you have a mirror of your web server would 
probably be pen.


/R



___
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: error: field 'aio_sigevent' has incomplete type

2009-01-22 Thread Mel
On Thursday 22 January 2009 09:32:45 Abdullah Ibn Hamad Al-Marri wrote:
 - Original Message 

  From: Mel fbsd.questi...@rachie.is-a-geek.net
  To: freebsd-questions@freebsd.org
  Cc: Janos Dohanics w...@3dresearch.com
  Sent: Thursday, January 22, 2009 9:24:14 PM
  Subject: Re: error: field 'aio_sigevent' has incomplete type
 
  On Wednesday 21 January 2009 22:48:45 Janos Dohanics wrote:
   cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
   -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
   /usr/obj/usr/src/sys/FRACASSO2009012201/opt_global.h -I. -I@
   -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100
   --param large-function-growth=1000 -fno-common -g
   -fno-omit-frame-pointer -I/usr/obj/usr/src/sys/FRACASSO2009012201
   -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
   -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
   -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
   -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
   -Wno-pointer-sign -fformat-extensions -c
   /usr/src/sys/modules/aio/../../kern/vfs_aio.c
   /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2548: error: field
   'aio_sigevent' has incomplete type
  
  
  
   *** Error code 1
   1 error
   *** Error code 2
   1 error
   *** Error code 2
 
  build continues:
   cc -c -O2 -frename-registers -pipe -fno-strict-aliasing  -std=c99 -g
   -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes
   -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef
   -Wno-pointer-sign -fformat-extensions -nostdinc  -I. -I/usr/src/sys
   -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS
   -include opt_global.h -fno-common -finline-limit=8000 --param
   inline-unit-growth=100 --param large-function-growth=1000
   -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx
   -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding
   -Werror  /usr/src/sys/libkern/strcmp.c
 
  Build kernel without -j2, then report if error persists.
  --
  Mel
 
  Problem with today's modular software: they start with the modules
  and never get to the software part.

 Here we go without -j flag for the kernel.

 === aio (all)
 cc -O2 -fno-strict-aliasing -pipe  -D_KERNEL -DKLD_MODULE -std=c99
 -nostdinc   -DHAVE_KERNEL_OPTION_HEADERS -include
 /usr/obj/usr/src/sys/VB/opt_global.h -I. -I@ -I@/contrib/altq
 -finline-limit=8000 --param inline-unit-growth=100 --param
 large-function-growth=1000 -fno-common -g -fno-omit-frame-pointer
 -I/usr/obj/usr/src/sys/VB -mcmodel=kernel -mno-red-zone  -mfpmath=387
 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float
 -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls
 -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith
 -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -c
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2548: error: field
 'aio_sigevent' has incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2564: error: field
 'aio_sigevent' has incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function
 'convert_old_sigevent32':
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2575: error: dereferencing
 pointer to incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2580: error: dereferencing
 pointer to incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2584: error: dereferencing
 pointer to incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2585: error: dereferencing
 pointer to incomplete type /usr/src/sys/modules/aio/../../kern/vfs_aio.c:
 In function 'convert_sigevent32':
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2621: error: dereferencing
 pointer to incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2626: error: dereferencing
 pointer to incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2629: error: dereferencing
 pointer to incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2632: error: dereferencing
 pointer to incomplete type
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2633: error: dereferencing
 pointer to incomplete type /usr/src/sys/modules/aio/../../kern/vfs_aio.c:
 In function 'freebsd32_olio_listio':
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859: error: storage size of
 'osig' isn't known /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2859:
 warning: unused variable 'osig'
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c: In function
 'freebsd32_lio_listio': /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2904:
 error: storage size of 'sig32' isn't known
 /usr/src/sys/modules/aio/../../kern/vfs_aio.c:2904: warning: unused
 variable 'sig32' *** Error code 1

 Stop in /usr/src/sys/modules/aio.
 *** Error code 1

Likely culprit:
http://svn.freebsd.org/viewvc/base?view=revisionrevision=187559

Best continued on -stable.

-- 

OpenOffice 3.0, which java must I use?

2009-01-22 Thread Sebastian Setzer
Hi,
On 64-bit FreeBSD 7, I installed these two packages:
  OOo_3.0.0_FreeBSD71X86-64_install_de.tbz
  diablo-caffe-freebsd6-amd64-1.5.0_07-b01.tar.bz2
When I run OOo, it prints
  javaldx: Could not find a Java Runtime Environment!
Is diablo the wrong java 1.5 JDK?

I didn't expect to need java - I just wantet to use StarBasic Macros.
But OOo seems to need it. I can't even set the Macro security options (when I 
press the button, nothing happens).

Sebastian
___
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: questions named.conf

2009-01-22 Thread bsd

Well,

I use this:

logging {
channel syslog_errors { syslog daemon; severity info; };
channel file_log {
file /var/log/dns.log versions 3 size 10m;
severity dynamic;
print-category no;
print-severity yes;
print-time yes;
};
category default { file_log; syslog_errors; };
category lame-servers { null; };
};


;;

Maybe you should add a category default statement…



Le 22 janv. 09 à 10:37, GanGan a écrit :


first question :

for have log i add this in my named.conf

logging {
   category resolver { debug; };
   category client { debug; };
   category queries { debug; };
   channel debug {
   file /var/log/named/named.log versions 2 size 50m;
   print-time yes;
   print-category yes;
   };
   };

It's good ? because my named.log is empty



Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



___
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


Gérez et fidélisez vos clients

2009-01-22 Thread Ciel par Webcarnews
Si vous desirez visualiser ce mail au format html, recopiez l'adresse suivante 
dans votre navigateur: 
http://www.vmail-gamma.com/view.html?id=14017ref=h4b68f65790




___
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: Backup program on FreeBSD for DLT drive

2009-01-22 Thread bsd
Well I have installed It but I find It quite confusing to configure…  
so I have just stopped;

The problem is that I don't have a lot of time to really get into it…


Did you use any good pointer or just take time to learn It the  
standard way… ??


I found It quite hard to configure to tell the truth!


Le 22 janv. 09 à 20:51, Stephen Corbesero a écrit :


I used to use Amanda on a small FreeBSD RAID server that used a single
DLT drive.  It held up pretty well.




Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



___
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: Backup program on FreeBSD for DLT drive

2009-01-22 Thread Chuck Swiger

On Jan 22, 2009, at 11:30 AM, bsd wrote:
I am using a FreeBSD server 7.0 as a Samba server and wanted to  
backup this server using Quantum DLT tape.


I would need a simple tool that could be configured rapidl at that's  
stable enough to provide high security for the data.

Ideally any good pointer to a howto would be a must!


See the fine Handbook:

  http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backup-basics.html
  
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/backups-tapebackups.html

Regards,
--
-Chuck

___
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: Backup program on FreeBSD for DLT drive

2009-01-22 Thread Roland Smith
On Thu, Jan 22, 2009 at 08:30:56PM +0100, bsd wrote:
 I am using a FreeBSD server 7.0 as a Samba server and wanted to backup  
 this server using Quantum DLT tape.
 
 I would need a simple tool that could be configured rapidl at that's  
 stable enough to provide high security for the data.
 Ideally any good pointer to a howto would be a must!

Read §16.12 (Backup Basics) in the FreeBSD Handbook. You'll find the
English version in 
/usr/share/doc/en_US.ISO8859-1/books/handbook/backup-basics.html.
For full backups dump(8) and mt(1) seem to be the tools of choice.

If you use dump and you want encryption, you could pipe the dump output
through openssl to encrypt it with e.g. the AES algorithm with a 256 bit
key. Run 'openssl enc -help' to see the encryption algorithms available.

All the tools mentioned above are available in the base system, which is
a prequisite for restoring system partitions in my book.

My own backup strategy is to write dumps or /, /usr and /var to an
external USB harddisk or DVD, for an easy restore. For large data partitions I
prefer to rsync(1) to a geli(8) encrypted partition on an external
harddisk, because it is faster and more convenient than a dump.

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgphXHUJDfXXS.pgp
Description: PGP signature


technical drawing program

2009-01-22 Thread prad
any recommendations?
i've tried dia and inkscape. the former seems to be good for flowcharts
and general diagrams while the latter is great for all sorts of things,
but i'd like to be able to do accurate geometric diagrams and was
wondering if something more appropriate is available.

-- 
In friendship,
prad

  ... with you on your journey
Towards Freedom
http://www.towardsfreedom.com (website)
Information, Inspiration, Imagination - truly a site for soaring I's
___
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


shell scripting, how to auto-timeout?

2009-01-22 Thread Nerius Landys
This is a shell scripting question, it is not specific to FreeBSD.

I am writing a script that I want to terminate after 1 second (because
it has the potential to infinite loop).  The script I have so far is:

#!/bin/sh
cd `dirname $0`
CLASSPATH=mapgen.jar
export CLASSPATH
/usr/local/bin/java PipeGenerator $*

The java process has the potential to run forever, and I want it to
run for at most 1 second then get killed.  I could write a parent
script that somehow gets the PID of the child script, but the problem
is that the java program writes to standard out, the result of the
program is written to standard out.  I also don't really want to share
a PID with a temporary file.

So what I might do is this:

/usr/local/bin/java PipeGenerator $* 
sleep 1
kill the java command if not already killed

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.

How do I do 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: shell scripting, how to auto-timeout?

2009-01-22 Thread Sebastian Mellmann

 The java process has the potential to run forever, and I want it to
 run for at most 1 second then get killed.  I could write a parent
 script that somehow gets the PID of the child script, but the problem
 is that the java program writes to standard out, the result of the
 program is written to standard out.  I also don't really want to share
 a PID with a temporary file.

 So what I might do is this:

 /usr/local/bin/java PipeGenerator $* 
 sleep 1
 kill the java command if not already killed

   

What about using 'pidof' and then check if it gives you a PID and kill
the process?

 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.

 How do I do this?
   


Regards,
Sebastian
___
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


dumb how to clear scroll-back buffer in console/xterm?

2009-01-22 Thread Steve Franks
Occasionally, one wants to do this.  Unfortunately this is one of
those topics with too many generic search terms that gives 2.99x10e8
hits.  Clearly, I'm suffering from information overload both in my
console sessions and my google searches ;)

Steve
___
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: technical drawing program

2009-01-22 Thread Dave Feustel
On Thu, Jan 22, 2009 at 12:37:34PM -0800, prad wrote:
 any recommendations?
 i've tried dia and inkscape. the former seems to be good for flowcharts
 and general diagrams while the latter is great for all sorts of things,
 but i'd like to be able to do accurate geometric diagrams and was
 wondering if something more appropriate is available.
 
 -- 
 In friendship,
 prad

I have no idea whether this is what you're looking for, but check out
http://www.geometricalgebra.net/.
You need Java on your computer to run this software.
___
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: technical drawing program

2009-01-22 Thread Michel Talon
On Thu, Jan 22, 2009 at 12:37:34PM -0800, prad wrote:
 any recommendations?
 i've tried dia and inkscape. the former seems to be good for
 flowcharts
 and general diagrams while the latter is great for all sorts of
 things,
 but i'd like to be able to do accurate geometric diagrams and was
 wondering if something more appropriate is available.

The most appropriate freely available program to do that is qcad,
otherwise autocad if you want to pay money. See
/usr/ports/cad/qcad


-- 

Michel TALON

___
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 nlan...@gmail.com wrote:


 /usr/local/bin/java PipeGenerator $* 
 sleep 1
 kill the java command if not already killed
 
 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  kill the java command 

___
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: dumb how to clear scroll-back buffer in console/xterm?

2009-01-22 Thread Frank Shute
On Thu, Jan 22, 2009 at 01:49:13PM -0700, Steve Franks wrote:

 Occasionally, one wants to do this.  Unfortunately this is one of
 those topics with too many generic search terms that gives 2.99x10e8
 hits.  Clearly, I'm suffering from information overload both in my
 console sessions and my google searches ;)
 

Ctl-L does it for me in xterm. Might work in the console too.

 Steve

Anybody know how to clear the buffer in screen?

Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.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: technical drawing program

2009-01-22 Thread Roland Smith
On Thu, Jan 22, 2009 at 12:37:34PM -0800, prad wrote:
 any recommendations?
 i've tried dia and inkscape. the former seems to be good for flowcharts
 and general diagrams while the latter is great for all sorts of things,
 but i'd like to be able to do accurate geometric diagrams and was
 wondering if something more appropriate is available.

You could try graphics/xfig if you want an interactive graphical
program. Or cad/qcad for a real 2D drafting program.

For very accurate file-based drawing you could try the metapost
programming language {name of the binary: mpost(1)
[http://en.wikipedia.org/wiki/MetaPost]}, available from the
print/teTeX-base port. Or the Asymptote language from the math/asymptote
port.  [http://asymptote.sourceforge.net/].

Roland
-- 
R.F.Smith   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)


pgpNoaUhI0K1K.pgp
Description: PGP signature


Dell 2900 invalid partition table

2009-01-22 Thread Len Conrad
freebsd 7.1

Dell 2900, perc 6/i controller with 4 SATA disks in RAID1.

We get all the through the disc1 install, reboot,

arrive up to 

Press ctrl-E for remote access setup  within 5 secs 

then die with

Invalid partition table

We had RAID5, same problem, switch to RAID1.

suggestions?

Len

___
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: dumb how to clear scroll-back buffer in console/xterm?

2009-01-22 Thread Steve Franks
 Ctl-L does it for me in xterm. Might work in the console too.

Just clears the screen, not the scrollback buffer for me.  Must be
some secret setting somewhere...

Steve
___
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 Maxim Khitrov
On Thu, Jan 22, 2009 at 3:41 PM, Nerius Landys nlan...@gmail.com wrote:
 This is a shell scripting question, it is not specific to FreeBSD.

 I am writing a script that I want to terminate after 1 second (because
 it has the potential to infinite loop).  The script I have so far is:

 #!/bin/sh
 cd `dirname $0`
 CLASSPATH=mapgen.jar
 export CLASSPATH
 /usr/local/bin/java PipeGenerator $*

 The java process has the potential to run forever, and I want it to
 run for at most 1 second then get killed.  I could write a parent
 script that somehow gets the PID of the child script, but the problem
 is that the java program writes to standard out, the result of the
 program is written to standard out.  I also don't really want to share
 a PID with a temporary file.

 So what I might do is this:

 /usr/local/bin/java PipeGenerator $* 
 sleep 1
 kill the java command if not already killed

 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.

 How do I do this?

Give this a try:

#!/bin/sh

java()
{
echo 'start'
sleep 5
echo 'stop'
}

sleep 1  kill $$ 
java
kill $!

Replace the java function with your code. The basic idea is that you
start a child process which will kill its parent after 1 second
(parent pid is $$, child is $!). If the java command terminates before
then, the child is killed. Test both cases out by commenting out
'sleep 5' line above.

- Max
___
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: dumb how to clear scroll-back buffer in console/xterm?

2009-01-22 Thread Frank Shute
On Thu, Jan 22, 2009 at 02:50:09PM -0700, Steve Franks wrote:

  Ctl-L does it for me in xterm. Might work in the console too.
 
 Just clears the screen, not the scrollback buffer for me.  Must be
 some secret setting somewhere...
 

Sorry Steve, I forgot to mention that I've got:

XTerm*VT100*translations: #override \
CtrlKeyPressl : clear-saved-lines()

in ~/.Xdefaults


Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.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: Dell 2900 invalid partition table

2009-01-22 Thread Jerry McAllister
On Thu, Jan 22, 2009 at 10:35:45PM +0100, Len Conrad wrote:

 freebsd 7.1
 
 Dell 2900, perc 6/i controller with 4 SATA disks in RAID1.
 
 We get all the through the disc1 install, reboot,
 
 arrive up to 
 
 Press ctrl-E for remote access setup  within 5 secs 
 
 then die with
 
 Invalid partition table
 
 We had RAID5, same problem, switch to RAID1.
 
 suggestions?

Is your BIOS set to boot from the right device - the raid and
not the one of the disks in it???

jerry


 
 Len
 
 ___
 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
___
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: dumb how to clear scroll-back buffer in console/xterm?

2009-01-22 Thread Frank Shute
On Thu, Jan 22, 2009 at 01:49:13PM -0700, Steve Franks wrote:

 Occasionally, one wants to do this.  Unfortunately this is one of
 those topics with too many generic search terms that gives 2.99x10e8
 hits.  Clearly, I'm suffering from information overload both in my
 console sessions and my google searches ;)
 
 Steve

From vidcontrol(1):

-C  Clear the history buffer.

So that should work for the console.


Regards,

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.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: shell scripting, how to auto-timeout?

2009-01-22 Thread Nerius Landys
 #!/bin/sh

 java()
 {
echo 'start'
sleep 5
echo 'stop'
 }

 sleep 1  kill $$ 
 java
 kill $!
 {
echo 'start'
sleep 5
echo 'stop'
 }

 sleep 1  kill $$ 
 java
 kill $!

That is very genious.  However, I had to add an exec to the parent
script.  Here is the test parent script, see the exec line below:

#!/bin/sh
cd `dirname $0`
THIS_SCRIPT_PROCESS=$$
sleep 5  echo killing parent script, PID $THIS_SCRIPT_PROCESS 
kill $THIS_SCRIPT_PROCESS 
TERMINATOR_PROCESS=$!
exec ./child_script
echo killing terminator process, PID $TERMINATOR_PROCESS  kill
$TERMINATOR_PROCESS


And here is the child script child_script:

#!/bin/sh
echo start
while true; do
  # Infinite loop; use some CPU so that it's easy to find this in the
output of top.
  echo foo  /dev/null
done
echo stop


Without the exec in the parent script, the parent's child is not
killed when the parent is killed.
___
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 Nerius Landys
Actually, because of the exec in the parent script, the line below
it, the killing terminator process line, never gets reached.  So the
terminator process that waits to kill its parent always waits the full
5 seconds in the background.  If I pipe the output of the parent
script through less, it waits 5 seconds before it reaches the end of
the output.  That is annoying.  Is there any way to solve that?
___
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: Dell 2900 invalid partition table

2009-01-22 Thread Len Conrad
 freebsd 7.1
 
 Dell 2900, perc 6/i controller with 4 SATA disks in RAID1.
 
 We get all the through the disc1 install, reboot,
 
 arrive up to 
 
 Press ctrl-E for remote access setup  within 5 secs 
 
 then die with
 
 Invalid partition table
 
 We had RAID5, same problem, switch to RAID1.
 
 suggestions?

Is your BIOS set to boot from the right device - the raid and
not the one of the disks in it???


Boot sequence says 1. drive c:

controller disk setup shows RAID1 ready.

I've looked everywhere to see if I can point the boot at RAID1.

Thanks,
Len





___
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: old cruft after source upgrading --- clean install?

2009-01-22 Thread Novembre
On Wed, Jan 21, 2009 at 9:20 PM, Robert Huff roberth...@rcn.com wrote:


 Novembre writes:

   I have a system which was updated from 6.3-RELEASE to 7.0-RELEASE
   some eight months ago via a source upgrade. After that, I rebuilt
   all the packages on the system as well. Now, I would like to
   update it again to 7.1-RELEASE, and I'm wondering whether I
   should do a clean install or just do a source upgrade again. My
   question is regarding all the old cruft that remains after the
   upgrade and rebuilding of all the packages, as I already know
   that there are a bunch of old libraries residing somewhere on the
   system.

 Do you have ports-mgmt/portupgrade(-devel) installed?
If so, are you aware of portsclean?
This has worked successfully for me for several years.


Robert Huff


I use portupgrade and portsclean. However, it puts the old libraries in
/usr/local/lib/compat/pkg,
and on my system, there are some files in that directory. Since I have
rebuilt all the packages, my
question was how to be sure if that they are not being used anymore and hwo
to get rid of these
old libraries. Is it safe for me to simply delete them?
Also, what are all these unreferenced libraries (according to libchk) doing
on my machine (see the
previous post)?

Thanks :)
___
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: Do I need to run netif stop/start if IP is changed?

2009-01-22 Thread Mel
On Wednesday 21 January 2009 08:20:07 Peter Steele wrote:

 The user later runs a tool and specifies the IP address to use for a
 given system. This tool modifies ifconfig and default router lines, e.g.



 ifconfig_lagg0=laggproto failover laggport nfe0 laggport nfe1
 192.168.17.49 netmask 255.255.240.0

 defaultrouter=192.168.16.1



 and also executes explicit ifconfig and route add commands that match
 the entries in rc.conf.



 The question is, should we also execute a netif stop/start sequence when
 this IP/router information is assigned? Are there other services that
 should also be stopped/restarted when the IP is set? Ideally, we want to
 avoid having to reboot the box to set the IP as we are doing.

The question is, should the tool execute the ifconfig and route commands or 
should the tool simply call netif stop/start so that the tool does not have 
to be maintained for those command sequences and dependencies of netif get 
processed (i.e.: /etc/rc.d/pf resync).

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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: old cruft after source upgrading --- clean install?

2009-01-22 Thread Novembre
On Thu, Jan 22, 2009 at 10:31 AM, Lowell Gilbert 
freebsd-questions-lo...@be-well.ilk.org wrote:

 Novembre novem...@gmail.com writes:

  I have a system which was updated from 6.3-RELEASE to 7.0-RELEASE some
  eight months ago via a source upgrade. After that, I rebuilt all the
  packages on the system as well. Now, I would like to update it again
  to 7.1-RELEASE, and I'm wondering whether I should do a clean install
  or just do a source upgrade again. My question is regarding all the
  old cruft that remains after the upgrade and rebuilding of all the
  packages, as I already know that there are a bunch of old libraries
  residing somewhere on the system.

 pkg_delete (or portupgrade, etc.) should not orphan any libraries
 (occasionally there is a bug in a port that does, but it's rare).  As
 far as the base system, remember the make delete-old step, which is
 part of the official UPDATING instructions.

 --
 Lowell Gilbert, embedded/networking software engineer, Boston area

 http://be-well.ilk.org/~lowell/http://be-well.ilk.org/%7Elowell/



By 'orphan' do you mean the unreferenced libraries that libchk has found on
my machine?
I use portupgrade, and apparently, the upgrade process leaves them there.
I was also not aware of the 'make delete-old' step! I had never seen it
before. I did the
source upgrade of my machine following what is in the handbook, but i don't
remember
doing any 'make delete-old'...

What should I do with the unreferenced libraries and the ones on the
/usr/local/lib/compat/pkg/
directory?

Thanks :)
___
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


Dumb ipnat question

2009-01-22 Thread Michael VanLoon
I have built a simple 7.1 system in a VM.  I built a custom kernel that is 
basically GENERIC minus some hardware stuff I don't need, plus a few things 
that look cool.
 
When I attempt to run the ipnat command, I get the error:
/dev/ipnat: open: No such file or directory
 
Sure enough, there are no ip* devices in /dev/.  In the olden days, when I 
used to do a lot of BSD hacking, you used MAKEDEV to make the devices you 
wanted.  Nowadays, it's done with devfs.  I believe the upshot is that it's 
supposed to be semi-automagic, isn't it?
 
Anyway, what am I doing wrong?  What do I need to configure to use ipnat and 
then later ipfw or ipfilter?
 
- Michael
___
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: old cruft after source upgrading --- clean install?

2009-01-22 Thread Mel
On Thursday 22 January 2009 14:41:30 Novembre wrote:

 Also, what are all these unreferenced libraries (according to libchk) doing
 on my machine (see the
 previous post)?

Unreferenced can mean no program or other library uses this library, but can 
also mean libchk was unable to find a program that uses this library, yet a 
program/library might still need it through runtime loading. If you're 
interested in the technical details, see dlopen(3).

All libchk can determine is whether a library is linked against, not whether 
it uses some construct to dynamically load a library upon request.

That said:
- if libfoo.so.2 is said to be unreferenced
- AND libfoo.so.3 (or higher) exists
- it is 99.9% safe to assume libfoo.so.2 can be deleted.

Also, for the list libchk gives concerning not anything in /usr/local, 
execute:
cd /usr/src
make delete-old-libs

You should've done that right after you rebuilt your ports [1], but you can 
still do it.

Last but not least, since you're doing a *minor* version upgrade, it's not 
strictly necessary to rebuild all your ports. Keeping them up-to-date is not 
a bad idea, but unless it's explicitedly mentioned in /usr/src/UPDATING, no 
library in FreeBSD is version bumped, so that installed applications break. 
This only applies to *major* version upgrades.

[1] It's possible to do after source upgrade and before port rebuild, but not 
if you use portupgrade (use portmaster instead), since it needs ruby which is 
linked to the old 6.x libraries.
-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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 Maxim Khitrov
On Thu, Jan 22, 2009 at 5:58 PM, Nerius Landys nlan...@gmail.com wrote:
 Actually, because of the exec in the parent script, the line below
 it, the killing terminator process line, never gets reached.  So the
 terminator process that waits to kill its parent always waits the full
 5 seconds in the background.  If I pipe the output of the parent
 script through less, it waits 5 seconds before it reaches the end of
 the output.  That is annoying.  Is there any way to solve that?


I see what you mean. Here's another option without exec:

#!/bin/sh -T

kill_all()
{
echo 'killing everything'
kill $SPID $CPID 2 /dev/null
exit 0
}

trap kill_all SIGCHLD

./child 
CPID=$!

sleep 5 
SPID=$!

echo child is $CPID
echo sleeper is $SPID
wait

Here I'm using the fact that the termination of any child process
causes SIGCHILD to be sent to the parent. Notice the '-T' in the first
line; this is important, because without it the 'wait' call isn't
interrupted until both children are dead. Unfortunately, this is a
non-standard option, so you'll have to check if it is supported in
your environment.

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


Issues with PF and 7.1

2009-01-22 Thread Michael K. Smith - Adhost
** Apologies to folks already subscribed to p...@freebsd.org.  This was posted 
there as well but I'm not getting any responses at all so I thought it best to 
post it here as well. **


We are having memory issues with PF and 7.1p2 that we didn't experience with 
6.3.   Here's what happens.

# pfctl -f /usr/local/etc/pf.conf
/usr/local/etc/pf.conf:135: cannot define table smtpd_reject_policyd: Cannot 
allocate memory
/usr/local/etc/pf.conf:139: cannot define table smtpd_reject_spam: Cannot 
allocate memory
pfctl: Syntax error in config file: pf rules not loaded
# pfctl -t smtpd_reject_policyd -T flush
94390 addresses deleted.
# pfctl -t smtpd_reject_spam -T flush
62464 addresses deleted.
# pfctl -f /usr/local/etc/pf.conf

So, after I flush the tables it loads.  Sometimes, however, we get a global out 
of memory error  DIOCADDRULE: Cannot allocate memory 

Here are my entries from pf.conf for various limits.  Everything else is 
defaults.

set limit tables 500
set limit table-entries 25
set limit { states 100, src-nodes 30, frags 10 }
set optimization normal
set skip on lo0
set state-policy if-bound
set timeout interval 300
set timeout src.track 1200

Finally, the box is using EM interfaces with VLAN's and has 4 Gig of physical 
RAM.  There are two PF boxes in Active/Failover and the errors show up on both, 
although they seem to show up more often on the Backup device, which seems odd.

Any help would be greatly appreciated.  

Regards,

Mike

--
Michael K. Smith - CISSP, GISP
Chief Technical Officer - Adhost Internet LLC
mksm...@adhost.com
w: +1 (206) 404-9500 f: +1 (206) 404-9050
PGP: B49A DDF5 8611 27F3  08B9 84BB E61E 38C0 (Key ID: 0x9A96777D)




PGP.sig
Description: PGP signature


Re: Filesystem tunning

2009-01-22 Thread Mel
On Wednesday 21 January 2009 08:14:49 Clifton Royston wrote:
 On Wed, Jan 21, 2009 at 12:01:04PM +0100, Matias Surdi wrote:
  Hi,
 
  Is there any way to avoid the system going to single user mode when a
  secondary storage device cannot be mounted?.
 
  I mean, if all system filesystems are OK, how can set up a device with a
  custom mount point so that when it's tried to mount at boot time and
  fails doesn't cause the system to be in single user mode?
 
  I know that if in fstab I set the last parameter to 0 checking will
  not be made at boot time, but instead what I want is the check to be
  run, correct any automatically correctable error, and continue booting
  anyway, despite the result of the check.Later a custom script will check
  the filesystem and send a mail, for example.

 Try this:

  Set to noauto in /etc/fstab, and add a custom script to run at the
 end of the boot process to check and mount your special device if it's
 OK, and do whatever additional processing you want if not.
   -- Clifton

wishlist
It would be nice if the mount_nfs -b flag would be 'universally' supported, so 
that removable devices can be mounted pending on presence.
/wishlist

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
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


Keeping FreeBSD updated (the binary way)

2009-01-22 Thread Svein Halvor Halvorsen

Hi, list!


I have just acquired a new computer to replace an old server. This older 
server has been running FreeBSD 5.3 since 2004 and most of its packages 
are way out of date. I've been scared of changing something in fear of 
rendering the machine unbootable, or some core applications unrunnable.


I want to make sure I have better routines this time around, when I'm 
starting a-fresh. I'd like to keep my system and packages fairly up to 
date, and still keep the compiling to a minimum.


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


Will the postsnap'ed index always be in sync with what's available as 
precompiled packages for -STABLE? Will these -STABLE packages always run 
on my freebsd-update'd -RELEASE system? If some ports have the 
NO_PACKAGE bit set, will compiling them against dependencies from 
-STABLE work, as long as I've run portsnap?




Svein Halvor
___
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


Portmanager gives me an error message

2009-01-22 Thread Eduardo Cerejo
I'm trying to upgrade any port with portmanager because portupgrade keeps 
failing all the time.  No matter what port I try to upgrade I get this error:

sudo portmanager x11/xterm -l -u
Password:
MGrStrlen error: NULL marker not found in string
Assertion failed: (0), function MGrStrlen, file MGrStrlen.c, line 54.
Abort

I'm running FreeBSD 7.1 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: FreeBSD Transition Questions.

2009-01-22 Thread Polytropon
On Wed, 21 Jan 2009 18:00:19 -0500, matt donovan kitchet...@gmail.com wrote:
 On Wed, Jan 21, 2009 at 1:37 PM, Kurt Buff kurt.b...@gmail.com wrote:
 
  On Wed, Jan 21, 2009 at 10:01 AM, Chad Perrin per...@apotheon.com wrote:
   On Tue, Jan 13, 2009 at 11:50:55AM -0800, Kurt Buff wrote:
  
   And, unfortunately, that doesn't help. I think the procedure described
   by George Davidovich is your best bet.
  
   I haven't used Thunderbird in a very long time, but . . . can't you
   import emails from OE to Thunderbird on the MS Windows system, then move
   them from the MS Windows system to the FreeBSD system and import them to
   Thunderbird there?
  
   --
   Chad Perrin [ content licensed OWL: http://owl.apotheon.org ]
   Quoth Niccolo Machiavelli: It is a common failing of man not to take
   account of tempests during fair weather.
 
  I don't know. I haven't used OE in over 10 years.
 
 
 From what I heard no since Windows thunderbird is different then the layout
 of the *nix thunderbird. but that was a while ago I heard that

As far as I know - it's been a long time, please mind this - OE
uses a proprietary mail storage system, while TB uses the standard
mbox system. The FreeBSD ports do contain a converter OE - mbox,
and after transforming the OE boxes into mbox format, they should
be importable without problems.

Another idea would be to manually import them, this means that
you would not use TB's import function, but instead locate where
it stores mail, check file naming conventions and then put the mail
in there manually, hoping that TB would recognize and maybe index
them at next startup.

I'm not sure about how the OE - mbox converter from the ports
collection was called, but I remember having read it somewhere...

Sorry for being such unprecise, but I haven't used any MICROS~1
product for more than 20 years now... =^_^=



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


how to create a DVD backup filesystem?

2009-01-22 Thread Gary Kline
Guys, I've got several directories off ~kline/ that I want to
store permanently.  Like all my development code in ~/devel, and
all my music mp3's and ogg's in ~/Music, and all my online and
mp3 books from libribox.org in ~/readings.  There are PDF files
and HTML and a slew of other stuff.

Can I use K3B or some other GUI program to create a filesystem on
either a few CD's or one DVD?  Right now, I'm cross-backing up
stuff to four live servers.  It's just data, but I would like to
be able to inset it into my optical tray, cd to it and cd to
wherever and read or listen to AND (if some disaster strikes) be
able to copy my files from the disc to the computer.

I think I figured out how to create a tiny filesystem on a floppy
disc, but this was a Long time ago.  Anything push-button?

tia,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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 svei...@lvor.halvorsen.cc 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: Code to enlarge/shrink browser's embedded quicktime player

2009-01-22 Thread Polytropon
On Thu, 22 Jan 2009 11:14:15 -0500, David Karapetyan 
david.karapet...@gmail.com wrote:
 I was wondering if it was possible to generate code that would allow my 
 clients to shrink or enlarge their quicktime players when playing 
 lecture videos from my server. I know one can embed players into html 
 code; however, wheat I specifically want is for someone to be able to 
 click on a particular file in my apache server directory and then, when 
 it begins streaming, have it play via a quicktime embedded interface 
 that gives the client the option to manipulate its size. Ideally, I 
 would like to generate a single bit of html code that can apply to all 
 the files (rather than generate a series of href anchors for each). Can 
 this be done?

An idea that would come to my mind would be this:

1. Let the lecture content (QT video) be handeled by an external
   program, i. e. mplayer.

2. If the content has been selected and the download / downstream
   starts, mplayer plays it, and (according to the window manager
   used) mplayer's window can be changed in size. Or, more easily,
   the key f can be pressed to put mplayer into fullscreen mode.

This would only require changes on the clients' site.


-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Help! locate.code /tmp: filesystem full

2009-01-22 Thread Polytropon
On Thu, 22 Jan 2009 10:24:39 -0900, Mel fbsd.questi...@rachie.is-a-geek.net 
wrote:
 In short: reboot in single user mode, then run fsck -y at the prompt.
 
 Never ever run fsck -y on a live filesystem.

A very good hint. Didn't I mention it? No? Bad idea.

Background concept: The fsck utility does changes to the file system
when repairing it, and the kind of these changes implies that the file
system is not mounted, so there's no unexpected interruption by maybe
a write operation from a program.

That's what downtime is good for - letting fsck doing its job well.




-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: technical drawing program

2009-01-22 Thread Polytropon
On Thu, 22 Jan 2009 12:37:34 -0800, prad p...@towardsfreedom.com wrote:
 any recommendations?
 i've tried dia and inkscape. the former seems to be good for flowcharts
 and general diagrams while the latter is great for all sorts of things,
 but i'd like to be able to do accurate geometric diagrams and was
 wondering if something more appropriate is available.

xfig



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: dumb how to clear scroll-back buffer in console/xterm?

2009-01-22 Thread Polytropon
On Thu, 22 Jan 2009 21:28:12 +, Frank Shute fr...@shute.org.uk wrote:
 On Thu, Jan 22, 2009 at 01:49:13PM -0700, Steve Franks wrote:
 
  Occasionally, one wants to do this.  Unfortunately this is one of
  those topics with too many generic search terms that gives 2.99x10e8
  hits.  Clearly, I'm suffering from information overload both in my
  console sessions and my google searches ;)
  
 
 Ctl-L does it for me in xterm. Might work in the console too.

Works there, but you can still press the Scroll Lock key and then
use the cursor / page moving keys to check what's up there.

If you need to clear the console when logging out, just put the
command

clear

in your ~/.logout, or globally into /etc/csh.logout.



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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 create a DVD backup filesystem?

2009-01-22 Thread cpghost
On Thu, Jan 22, 2009 at 05:10:46PM -0800, Gary Kline wrote:
   Guys, I've got several directories off ~kline/ that I want to
   store permanently.  Like all my development code in ~/devel, and
   all my music mp3's and ogg's in ~/Music, and all my online and
   mp3 books from libribox.org in ~/readings.  There are PDF files
   and HTML and a slew of other stuff.
 
   Can I use K3B or some other GUI program to create a filesystem on
   either a few CD's or one DVD?  Right now, I'm cross-backing up
   stuff to four live servers.  It's just data, but I would like to
   be able to inset it into my optical tray, cd to it and cd to
   wherever and read or listen to AND (if some disaster strikes) be
   able to copy my files from the disc to the computer.
 
   I think I figured out how to create a tiny filesystem on a floppy
   disc, but this was a Long time ago.  Anything push-button?

Perhaps there is something like that, but I do it manually like this:

* mkdir cdr/
* copy approx 3.0 to 3.1 GB worth of files into cdr/
* mkisofs -R -J -o cdr.iso cdr/

Then use dvdisaster (/usr/ports/sysutils/dvdisaster) to
augment cdr.iso with RS02 error correction data. This creates
a bigger cdr.iso of 4.4GB ISO with approx 32% to 40% redundancy,
which is quite good.

Now, burn it to DVD:

* growisofs -dvd-compat -speed=8 /dev/cd0=cdr.iso

and make sure your system is as (disk-)idle as possible while
burning.

To use growisofs, install it from /usr/ports/sysutils/dvd+rw-tools.
You may need to

# kldload atapicam

so that you can get /dev/cd0. Don't forget that you need write
permission to /dev/cd0 and /dev/pass0, so either run growisofs
as root, or add this to /etc/devfs.rules:

permcd0 0666
permpass0   0666

and restart devfs (/etc/rc.d/devfs restart).

After having burned the DVD, eject it, and insert it again.  Then read
it back in with dvdisaster (to some OTHER directory!), and verify the
integrity of the backup (with dvdisaster). That's an important step,
as you can never be sure that the burning was flawless, unless you
were able to read it back in without faulty sectors.

If you plan to archive the DVDs, be sure to schedule some date in
a couple of years ahead to read them back in and verify their
condition. If some of those DVDs developed bad sectors, you could
then try to reconstruct those with dvdisaster (but only if you created
the error correction data before burning!), and burn a new DVD.

Oh, and try to stick to good DVD blanks like Taiyo Yuden or Verbatim
(only those made in Taiwan or Japan) to minimize the risk of bad
sectors (i.e. especially avoid no-names or el-cheapo blanks).

You can also do without dvdisaster, and write more than 3 GB to the
DVDs, but if you plan to archive them and be able to read them a few
years ahead, you'll highly value the error correction codes
overhead. ;) Oh, and you'll still have to read the data back after
burning, just to be sure everything's okay. Some kind of checksums
(md5, sha256) of the directories would be useful, so plan ahead
and add them before creating the ISO.

Note that all this is possibly already integrated in K3B or some
other fancy GUI front-ends, or it may not: I'm not familiar with
the GUI tools.

   tia,
 
   gary

Regards,
-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
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 create a DVD backup filesystem?

2009-01-22 Thread Polytropon
On Thu, 22 Jan 2009 17:10:46 -0800, Gary Kline kl...@thought.org wrote:
   Guys, I've got several directories off ~kline/ that I want to
   store permanently.  Like all my development code in ~/devel, and
   all my music mp3's and ogg's in ~/Music, and all my online and
   mp3 books from libribox.org in ~/readings.  There are PDF files
   and HTML and a slew of other stuff.
 
   Can I use K3B or some other GUI program to create a filesystem on
   either a few CD's or one DVD?  Right now, I'm cross-backing up
   stuff to four live servers.  It's just data, but I would like to
   be able to inset it into my optical tray, cd to it and cd to
   wherever and read or listen to AND (if some disaster strikes) be
   able to copy my files from the disc to the computer.

You would need a two stage approach.

1.

Create an ISO-9660 file system with a standard RockRidge extension.
This would allow you to master a file system for the CD or DVD which
is usually represented by a .iso file.

2.

You record this file onto a CD or DVD using the data disc settings.

Of course, K3B can do this with an implicite step 1 (on the fly)
with no .iso file hanging around.



   I think I figured out how to create a tiny filesystem on a floppy
   disc, but this was a Long time ago. 

Do you think you can tell me what a floppy disc would look like? :-)

Don't confuse disk (floppy disk) and disc (like CD or DVD).



 Anything push-button?

K3B should be able to generate an ISO-9660 file system with the
standard RockRidge extension.

But if you do consider 3 lines of shell code push-button, maybe
this is for you:

% mkisofs -r -o /tmp/kline.iso ~/kline
% cdrecord dev=1,0,0 speed=32 -v -eject -tao -data /tmp/kline.iso
% rm /tmp/kline.iso

Don't store the .iso file within the subtree you're recording, this
may lead to infinity. :-)

Of course, you don't need to use cdrecord. The burncd command or
cdrdao will do fine, too.

For a DVD, you need growisofs.

% growisofs -dvd-compat -Z /dev/dvd=/tmp/kline.iso

In my opinion, all this stuff is more push-button than trying to
find all the settings in a GUI application. :-)



As a sidenote, I just like to mention that you don't need to use an
ISO-9660 filesystem. Because we're on FreeBSD here, you can use any (!)
file system on a CD or DVD, such as UFS or tar (check advantages and
disadvantages).



-- 
Polytropon
From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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


How to re-start freebsd-update?

2009-01-22 Thread Ian
Hi,
I've started upgrading a machine from 7.0 to 7.1 using freebsd-update. It's 
the first time I've upgraded to a new os version with it (always used cvsup/ 
make world  mergemaster before).

All was going well until it came to merging the new  old conf files. I wasn't 
quite sure what to do when asked to edit some of the files (it's not the same 
as mergemaster), so I did what I thought was best (having made a backup 
of /etc first!)

Anyway, once that was finished, it then showed me the resulting merged files 
and asked if each one looked reasonable. I answered yes to the first one, but 
with the second file wasn't right, so I answered no - assuming it would give 
me the chance to edit the file again (like mergemaster does). 

Instead it just dumped me back at the command prompt with no indication as to 
how to proceed from there.

I tried running the freebsd-update install command again, but it said no 
updates are available to install, run freebsd-update fetch first.

Is there some way I can resume the upgrade process? Or do I need to do a 
rollback and then fetch  update again?

Cheers,
-- 
Ian
gpg key: http://home.swiftdsl.com.au/~imoore/no-spam.asc


signature.asc
Description: This is a digitally signed message part.


Re: Backup program on FreeBSD for DLT drive

2009-01-22 Thread Geoff Fritz
On Thu, Jan 22, 2009 at 08:30:56PM +0100, bsd wrote:
 Hello,
 
 
 I am using a FreeBSD server 7.0 as a Samba server and wanted to backup  
 this server using Quantum DLT tape.
 
 I would need a simple tool that could be configured rapidl at that's  
 stable enough to provide high security for the data.
 Ideally any good pointer to a howto would be a must!

I've had success with Bacula for a small office file server (FreeBSD) and
Windows clients clients.  It supports SSL for the data transfer (if the
client and server are not the same machine), as well as data encryption:

http://www.bacula.org/en/dev-manual/Data_Encryption.html

I haven't used the encryption myself.  Bacula has a bit of a learning curve
to set up corretly, but I really enjoy its use once it it set up correctly.

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


flashplugin7 doesn't play video

2009-01-22 Thread Old Zhang

I just updated linux-flashplugin7, xorg, and firefox (version 2) up to date.  
However, the flashplugin7 can't play video, I see only a black box on YouTube.

Please help.

Zhang

___
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: Flashplugin7 doesn't play video

2009-01-22 Thread Jimmie James
I just updated linux-flashplugin7, xorg, and firefox (version 2) up to date.  
However, the flashplugin7 can't play video, I see only a black box on YouTube.



Following this, http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71
I have linux-flash9 working with native firefox3.



*NOTE*

Sorry, forgot to mention this, once in a while, firefox will hang which 
some flash videos, running killall npviewer.bin unhangs it, without 
having to kill firefox.


--
Over the years I've come to regard you as people I've met.



--
Over the years I've come to regard you as people I've met.

___
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 create a DVD backup filesystem?

2009-01-22 Thread Tim Judd

Gary Kline wrote:

Guys, I've got several directories off ~kline/ that I want to
store permanently.  Like all my development code in ~/devel, and
all my music mp3's and ogg's in ~/Music, and all my online and
mp3 books from libribox.org in ~/readings.  There are PDF files
and HTML and a slew of other stuff.

Can I use K3B or some other GUI program to create a filesystem on
either a few CD's or one DVD?  Right now, I'm cross-backing up
stuff to four live servers.  It's just data, but I would like to
be able to inset it into my optical tray, cd to it and cd to
wherever and read or listen to AND (if some disaster strikes) be
able to copy my files from the disc to the computer.

I think I figured out how to create a tiny filesystem on a floppy
disc, but this was a Long time ago.  Anything push-button?

tia,

gary




You can always try to tar it up directly

tar -czf /dev/acd0 ~kline/ ~devel/

Good luck.
___
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 Tim Judd

Svein Halvor Halvorsen wrote:

Hi, list!


I have just acquired a new computer to replace an old server. This older 
server has been running FreeBSD 5.3 since 2004 and most of its packages 
are way out of date. I've been scared of changing something in fear of 
rendering the machine unbootable, or some core applications unrunnable.


I want to make sure I have better routines this time around, when I'm 
starting a-fresh. I'd like to keep my system and packages fairly up to 
date, and still keep the compiling to a minimum.


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:



snip

This was once not the way to do it.  I read on the handbook recently 
that they actually advertize to use -STABLE packages if you want more 
up-to-date programs.


Why is it you wnat to remove the compiling part of it?  portupgrade, 
portmaster or any other port management tool will take care of that for 
you.  Just curious on this one.


--Tim
___
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: Flashplugin7 doesn't play video

2009-01-22 Thread Jimmie James
I just updated linux-flashplugin7, xorg, and firefox (version 2) up to date.  
However, the flashplugin7 can't play video, I see only a black box on 

YouTube.

Following this, http://crnl.org/blog/2008/11/01/flash-9-for-freebsd-71
I have linux-flash9 working with native firefox3.

Hope this helps.


--
Over the years I've come to regard you as people I've met.

___
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-questions Digest, Vol 246, Issue 44

2009-01-22 Thread Peter Boosten
[SNIP very big digest]

 
 can someone *please* FIX the aebc support autoreplys?! 
 surely there is a list owner who can unsubscribe that address? 
 having the entire digest repeated by the autoreply in every following 
 digest is a royal pain.
 

Not quoting properly also is...

Peter
-- 
http://www.boosten.org
___
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 create a DVD backup filesystem?

2009-01-22 Thread Gary Kline
On Fri, Jan 23, 2009 at 02:40:01AM +0100, cpghost wrote:
 On Thu, Jan 22, 2009 at 05:10:46PM -0800, Gary Kline wrote:
  Guys, I've got several directories off ~kline/ that I want to
  store permanently.  Like all my development code in ~/devel, and
  all my music mp3's and ogg's in ~/Music, and all my online and
  mp3 books from libribox.org in ~/readings.  There are PDF files
  and HTML and a slew of other stuff.
  
  Can I use K3B or some other GUI program to create a filesystem on
  either a few CD's or one DVD?  Right now, I'm cross-backing up
  stuff to four live servers.  It's just data, but I would like to
  be able to inset it into my optical tray, cd to it and cd to
  wherever and read or listen to AND (if some disaster strikes) be
  able to copy my files from the disc to the computer.
  
  I think I figured out how to create a tiny filesystem on a floppy
  disc, but this was a Long time ago.  Anything push-button?
 
 Perhaps there is something like that, but I do it manually like this:
 
 * mkdir cdr/
 * copy approx 3.0 to 3.1 GB worth of files into cdr/

You mean, I'm guessing, my devel files/subsirs, Music files, and
other text and data, correct?

 * mkisofs -R -J -o cdr.iso cdr/
 
 Then use dvdisaster (/usr/ports/sysutils/dvdisaster) to
 augment cdr.iso with RS02 error correction data. This creates
 a bigger cdr.iso of 4.4GB ISO with approx 32% to 40% redundancy,
 which is quite good.


It is building as I write; thanks for the clue:-)  Anything with
error correction has to be a win.

 
 Now, burn it to DVD:
 
 * growisofs -dvd-compat -speed=8 /dev/cd0=cdr.iso
 
 and make sure your system is as (disk-)idle as possible while
 burning.


Sure. Common-sense.

 
 To use growisofs, install it from /usr/ports/sysutils/dvd+rw-tools.
 You may need to
 
 # kldload atapicam
 
 so that you can get /dev/cd0. Don't forget that you need write
 permission to /dev/cd0 and /dev/pass0, so either run growisofs
 as root, or add this to /etc/devfs.rules:
 
 permcd0 0666
 permpass0   0666
 
 and restart devfs (/etc/rc.d/devfs restart).


I set this up at least *three* times.  
 
 After having burned the DVD, eject it, and insert it again.  Then read
 it back in with dvdisaster (to some OTHER directory!), and verify the
 integrity of the backup (with dvdisaster). That's an important step,
 as you can never be sure that the burning was flawless, unless you
 were able to read it back in without faulty sectors.

Will do.

 
 If you plan to archive the DVDs, be sure to schedule some date in
 a couple of years ahead to read them back in and verify their
 condition. If some of those DVDs developed bad sectors, you could
 then try to reconstruct those with dvdisaster (but only if you created
 the error correction data before burning!), and burn a new DVD.


I'm planning on burning a new DVD every few months; storing
off-site.  Probably recycling some discs.


 
 Oh, and try to stick to good DVD blanks like Taiyo Yuden or Verbatim
 (only those made in Taiwan or Japan) to minimize the risk of bad
 sectors (i.e. especially avoid no-names or el-cheapo blanks).
 
 You can also do without dvdisaster, and write more than 3 GB to the
 DVDs, but if you plan to archive them and be able to read them a few
 years ahead, you'll highly value the error correction codes
 overhead. ;) Oh, and you'll still have to read the data back after
 burning, just to be sure everything's okay. Some kind of checksums
 (md5, sha256) of the directories would be useful, so plan ahead
 and add them before creating the ISO.


I'll have checksums Plus usin the dvdisaster, :-)  [[ i actually
did this in the 90's with my floppies; when the CRC failed i knew 
a floppy had gone south. ]]

 
 Note that all this is possibly already integrated in K3B or some
 other fancy GUI front-ends, or it may not: I'm not familiar with
 the GUI tools.
 

k3b IS probably the most likely tool to automate this, but it's a
bit too simple for me to figure out.  I want to wind up with a
DVD that I can mount, cd into, and cd around within.  That is my
particular gotcha.  So if anybody can teach me how to create a
mountable/umountable DVD that would be a _filesystem_, using K3B, 
that might be helpful.

thanks for your insights,

gary





  tia,
  
  gary
 
 Regards,
 -cpghost.
 
 -- 
 Cordula's Web. http://www.cordula.ws/

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

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

Re: Backup program on FreeBSD for DLT drive

2009-01-22 Thread bsd

Yes,

This is probably the one I'll go for…
There is a good hack described in the O'Reilly BSD hacks to setup  
Bacula…


I'll consider this article as a starting point…



Thank you very much folks.


Le 23 janv. 09 à 04:21, Geoff Fritz a écrit :


On Thu, Jan 22, 2009 at 08:30:56PM +0100, bsd wrote:

Hello,


I am using a FreeBSD server 7.0 as a Samba server and wanted to  
backup

this server using Quantum DLT tape.

I would need a simple tool that could be configured rapidl at that's
stable enough to provide high security for the data.
Ideally any good pointer to a howto would be a must!


I've had success with Bacula for a small office file server  
(FreeBSD) and
Windows clients clients.  It supports SSL for the data transfer (if  
the
client and server are not the same machine), as well as data  
encryption:


http://www.bacula.org/en/dev-manual/Data_Encryption.html

I haven't used the encryption myself.  Bacula has a bit of a  
learning curve
to set up corretly, but I really enjoy its use once it it set up  
correctly.


-- Geoff



Gregober --- PGP ID -- 0x1BA3C2FD
bsd @at@ todoo.biz


P Please consider your environmental responsibility before printing  
this e-mail



___
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


jdk16

2009-01-22 Thread Brian McQueen
I can't seem to find the files listed in the jdk16 port.  What are
folks doing to get java going?  The urls listed in the port are not
right, so the manual download step does not work.
___
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: jdk16

2009-01-22 Thread Peter Boosten
Brian McQueen wrote:
 I can't seem to find the files listed in the jdk16 port.  What are
 folks doing to get java going?  The urls listed in the port are not
 right, so the manual download step does not work.

I use this one:

ra% pkg_info -o diablo-jdk-1.6.0.07.02_3
Information for diablo-jdk-1.6.0.07.02_3:

Origin:
java/diablo-jdk16


Peter

-- 
http://www.boosten.org
___
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: jdk16

2009-01-22 Thread Peter Boosten
Peter Boosten wrote:
 Brian McQueen wrote:
 I can't seem to find the files listed in the jdk16 port.  What are
 folks doing to get java going?  The urls listed in the port are not
 right, so the manual download step does not work.
 
 I use this one:
 
 ra% pkg_info -o diablo-jdk-1.6.0.07.02_3
 Information for diablo-jdk-1.6.0.07.02_3:
 
 Origin:
 java/diablo-jdk16
 

Ah, and to complete your question: just start make all install clean (or
 portinstall diablo-jdk16 or whatever) and the install process will show
you the right download locations.

Peter

-- 
http://www.boosten.org
___
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 create a DVD backup filesystem?

2009-01-22 Thread Gary Kline
On Fri, Jan 23, 2009 at 02:48:11AM +0100, Polytropon wrote:
 On Thu, 22 Jan 2009 17:10:46 -0800, Gary Kline kl...@thought.org wrote:
  Guys, I've got several directories off ~kline/ that I want to
  store permanently.  Like all my development code in ~/devel, and
  all my music mp3's and ogg's in ~/Music, and all my online and
  mp3 books from libribox.org in ~/readings.  There are PDF files
  and HTML and a slew of other stuff.
  
  Can I use K3B or some other GUI program to create a filesystem on
  either a few CD's or one DVD?  Right now, I'm cross-backing up
  stuff to four live servers.  It's just data, but I would like to
  be able to inset it into my optical tray, cd to it and cd to
  wherever and read or listen to AND (if some disaster strikes) be
  able to copy my files from the disc to the computer.
 
 You would need a two stage approach.
 
 1.
 
 Create an ISO-9660 file system with a standard RockRidge extension.
 This would allow you to master a file system for the CD or DVD which
 is usually represented by a .iso file.


So if I use my space in /usr/tmp, would I use the cmd given by
cpghost:

% mkisoft -R -J -o cdr.iso /usr/tmp/cdr/  ?  If this wouldn't
% create the RockRidge extension, what then?

 
 2.
 
 You record this file onto a CD or DVD using the data disc settings.


Tried that; get lost after the first few clicks... Got to be
'too-too simple' :)


 
 Of course, K3B can do this with an implicite step 1 (on the fly)
 with no .iso file hanging around.
 
 
 
  I think I figured out how to create a tiny filesystem on a floppy
  disc, but this was a Long time ago. 
 
 Do you think you can tell me what a floppy disc would look like? :-)
 
 Don't confuse disk (floppy disk) and disc (like CD or DVD).


---just between you and me, Polyt, i've got to watch my fingers;
i might type floppy dick and that would get lots of snickers... .
 
 
 
  Anything push-button?
 
 K3B should be able to generate an ISO-9660 file system with the
 standard RockRidge extension.


Exact where do I click instructions, please.  Alao, if I'm
brave enough to use GUI, can I use ~/devel, ~/Music, and, say 
~/texts?  ---I have learned to mouse-around and select my
favorite mp3 and ogg-vorbis tunes, but that's just 80 minutes of
music.  No mount, no umount.

 
 But if you do consider 3 lines of shell code push-button, maybe
 this is for you:
 
   % mkisofs -r -o /tmp/kline.iso ~/kline
   % cdrecord dev=1,0,0 speed=32 -v -eject -tao -data /tmp/kline.iso
   % rm /tmp/kline.iso
 
 Don't store the .iso file within the subtree you're recording, this
 may lead to infinity. :-)


Something like that happened a couple months ago (*sigh*)

 
 Of course, you don't need to use cdrecord. The burncd command or
 cdrdao will do fine, too.
 
 For a DVD, you need growisofs.
 
   % growisofs -dvd-compat -Z /dev/dvd=/tmp/kline.iso
 
 In my opinion, all this stuff is more push-button than trying to
 find all the settings in a GUI application. :-)
 

That makes my century!!!
 
 
 As a sidenote, I just like to mention that you don't need to use an
 ISO-9660 filesystem. Because we're on FreeBSD here, you can use any (!)
 file system on a CD or DVD, such as UFS or tar (check advantages and
 disadvantages).
 

OK, then what about the mount, umount commands?

% mount /dev/cd0 /mnt

// cd to /dev/dv0, read, listen, whatever.  Then::

% umount /dev/cd0

??   Would this work with our FBSD filesystem and-or RockRidge?

gary


 
 
 -- 
 Polytropon
 From Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...

-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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 create a DVD backup filesystem?

2009-01-22 Thread Gary Kline
On Thu, Jan 22, 2009 at 10:26:22PM -0700, Tim Judd wrote:
 Gary Kline wrote:
  Guys, I've got several directories off ~kline/ that I want to
  store permanently.  Like all my development code in ~/devel, and
  all my music mp3's and ogg's in ~/Music, and all my online and
  mp3 books from libribox.org in ~/readings.  There are PDF files
  and HTML and a slew of other stuff.
 
  Can I use K3B or some other GUI program to create a filesystem on
  either a few CD's or one DVD?  Right now, I'm cross-backing up
  stuff to four live servers.  It's just data, but I would like to
  be able to inset it into my optical tray, cd to it and cd to
  wherever and read or listen to AND (if some disaster strikes) be
  able to copy my files from the disc to the computer.
 
  I think I figured out how to create a tiny filesystem on a floppy
  disc, but this was a Long time ago.  Anything push-button?
 
  tia,
 
  gary
 
 
 
 You can always try to tar it up directly
 
 tar -czf /dev/acd0 ~kline/ ~devel/
 
 Good luck.


I do tar ~kline --bzip'd-- and scp it around.  3 times/week.  I
want my most important stuff, ~/[DOT] files too, on a DVD.
Y'never know when a meteor will destroy the Earth... .





-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
http://jottings.thought.org   http://transfinite.thought.org
The 2.23a release of Jottings: http://jottings.thought.org/index.php

___
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