How to prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Yuri
Almost every time after improper shutdown (poweroff) and reboot I get 
into interactive fsck.


I am being asked whole bunch of questions to which I just have to answer 
Y (what are my other options?)


Why drop user into interactive fsck if there is not much choice anyways? 
Is there a way to set it up the way it doesn't drop into interactive 
mode? Like answer 'Y' to all questions?


Yuri
___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Remko Lodder

 Almost every time after improper shutdown (poweroff) and reboot I get
 into interactive fsck.

 I am being asked whole bunch of questions to which I just have to answer
 Y (what are my other options?)

 Why drop user into interactive fsck if there is not much choice anyways?
 Is there a way to set it up the way it doesn't drop into interactive
 mode? Like answer 'Y' to all questions?

 Yuri

I think this might do your trick:

fsck_y_enable=NO  # Set to YES to do fsck -y if the initial preen
fails.
fsck_y_flags= # Additional flags for fsck -y

The reason for this to get interactively is because this  might messup
with your filesystem, and you are the one responsible for your filesystem,
not us or the autmated system. So in case you want to play with that,
that's entirely up to you.

In addition, I can imagine that companies (been there done it) do not want
to fsck -y by default, this because of the mentioned potential corruption
and dataloss.

Thanks
remko

p.s. This was found within 5 seconds in /etc/defaults/rc.conf.

-- 
/\   Best regards,  | re...@freebsd.org
\ /   Remko Lodder   | re...@efnet
 Xhttp://www.evilcoder.org/  |
/ \   ASCII Ribbon Campaign  | Against HTML Mail and News

___
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: this is probably a little touchy to ask...

2010-09-15 Thread Joshua Isom

On 9/14/2010 4:21 PM, Randal L. Schwartz wrote:

Jules == Jules Gilbertjules.sto...@gmail.com  writes:


Jules  Now, if Oracle won't adjust their thinking, I intend to look at Java
Jules  sub-systems that are supplied and built by other people than Oracle.
Jules  (It's called Open Source.)

And that's what I tried to say in my last few posts.  Given Oracle's
apparent stance to own Java not by copyright but by patent, it doesn't
*matter* that Java is open source.  We'll have to wait until Oracle
v. Google is decided, but unless Google can invalidate Oracle's
*patents* on Java, Java is effectively dead, unless you want to sleep in
Oracle's bed.



Google sort of shot themselves in the foot since it's like java enough 
that everyone not a lawyer can call it java, except it needs recompiled, 
and that Google ignored the patent grant by Sun since they made it a 
subset.  There's also the issue that Google's not paying licensing fees 
to say it's Java capable.  Google was intentionally weaseling out of a 
potential problem.  Sun being bought got Google in trouble.  Sun's 
patent grant could have protected Google, but Google refused it.


As to the original post, Java, a portable write once run anywhere 
language, doesn't work on FreeBSD, a standard type operating system 
that mainly runs on standard hardware, when used with Xorg, a widely 
used standard, as a plug in for Firefox, a major and presumably the 
dominant *nix web browser.  Maybe the question should go to Oracle about 
why it doesn't work.  A java applet probably works on your Symbian smart 
phone running on ARM.

___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Matthias Apitz
El día Wednesday, September 15, 2010 a las 09:41:54AM +0300, Yuri escribió:

 Almost every time after improper shutdown (poweroff) and reboot I get 
 into interactive fsck.
 
 I am being asked whole bunch of questions to which I just have to answer 
 Y (what are my other options?)
 
 Why drop user into interactive fsck if there is not much choice anyways? 
 Is there a way to set it up the way it doesn't drop into interactive 
 mode? Like answer 'Y' to all questions?

Yes, just do:

$ echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
$ man rc.conf | col -b | fgrep fsck_

In general one should avoid unclean shutdowns. I even after such event
go into single user mode and run fsck(8) by hand.

HIH

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Peter Boosten
On 15-9-2010 8:53, Matthias Apitz wrote:
 echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc

LOL, only worked with quotes, btw ;-)

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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Adam Vande More
On Wed, Sep 15, 2010 at 1:59 AM, Peter Boosten pe...@boosten.org wrote:

 On 15-9-2010 8:53, Matthias Apitz wrote:
  echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc

 LOL, only worked with quotes, btw ;-)


Depends on the shell, I guess he's a bash user.

-- 
Adam Vande More
___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Matthias Apitz
El día Wednesday, September 15, 2010 a las 08:59:07AM +0200, Peter Boosten 
escribió:

 On 15-9-2010 8:53, Matthias Apitz wrote:
  echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
 
 LOL, only worked with quotes, btw ;-)

no,

$ sh
$ echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
RTFM
$ bash
g...@current:/usr/home/guru echo 
16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
RTFM

which shell you used?

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
Solidarity with the zionistic pirates of Israel?   Not in my  name!
¿Solidaridad con los piratas sionistas de Israel? ¡No en mi nombre!
___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Peter Boosten
On 15-9-2010 9:07, Matthias Apitz wrote:
 $ sh
 $ echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
 RTFM
 $ bash
 g...@current:/usr/home/guru echo 
 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
 RTFM
 
 which shell you used?

zsh.

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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Adam Vande More
On Wed, Sep 15, 2010 at 2:07 AM, Matthias Apitz g...@unixarea.de wrote:

 El día Wednesday, September 15, 2010 a las 08:59:07AM +0200, Peter Boosten
 escribió:

  On 15-9-2010 8:53, Matthias Apitz wrote:
   echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
 
  LOL, only worked with quotes, btw ;-)

 no,

 $ sh
 $ echo 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
 RTFM
 $ bash
 g...@current:/usr/home/guru echo
 16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlb xq | dc
 RTFM

 which shell you used?


it doesn't work in zsh, csh, tcsh, I didn't try sh, it didn't even occur to
me since I so rarely use it as an interactive shell.

-- 
Adam Vande More
___
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-read /etc/newsyslog.conf ?

2010-09-15 Thread Antonio Kless
I have changed my /etc/newsyslog.conf by adding some new lines. How to make
FreeBSD re-read it?

# /etc/rc.d/newsyslog status
newsyslog is not running.

Is it OK?


-- 
Best regards,
Antonio Kless,
http://kless.spb.ru/
___
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


virtaullBox AMD64 32bit lib

2010-09-15 Thread Gholam Mostafa Faridi
I want install virtualBox on AMD 64 and I use FreeBSD 8.1 and I have SRC 
directory , but when I run make install clean I see this error

 Requires 32-bit libraries installed under /usr/lib32.
Do: cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32 
and I run this command
cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32
 and after minutes I see this error

=== gnu/lib/csu (obj,depend,all,install)
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbegin.o 
/usr/obj/usr/src/lib32/usr/lib32/crtbegin.o
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtend.o 
/usr/obj/usr/src/lib32/usr/lib32/crtend.o
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbeginT.o 
/usr/obj/usr/src/lib32/usr/lib32/crtbeginT.o
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbegin.So 
/usr/obj/usr/src/lib32/usr/lib32/crtbeginS.o
sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtend.So 
/usr/obj/usr/src/lib32/usr/lib32/crtendS.o

=== lib/csu/i386-elf (obj,depend,all,install)
ld -m elf_i386_fbsd -Y P,/usr/obj/usr/src/lib32/usr/lib32  -o gcrt1.o -r 
crt1_s.o gcrt1_c.o
ld: Relocatable linking with relocations from format elf64-x86-64 
(gcrt1_c.o) to format elf32-i386-freebsd (gcrt1.o) is not supported

*** Error code 1

Stop in /usr/src/lib/csu/i386-elf.
*** Error code 1

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

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

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

Stop in /usr/src.
ldconfig: warning: /usr/lib32: No such file or directory 

I make post about this error in  freebsdforums but they can not help me
please see link

http://forums.freebsd.org/showthread.php?t=17607

they said problem is ccache and I disable and remove ccache  ,but still 
I have that probelm

please help me

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


Re: how to re-read /etc/newsyslog.conf ?

2010-09-15 Thread Matthew Seaman
On 15/09/2010 09:02, Antonio Kless wrote:
 I have changed my /etc/newsyslog.conf by adding some new lines. How to make
 FreeBSD re-read it?
 
 # /etc/rc.d/newsyslog status
 newsyslog is not running.
 
 Is it OK?

newsyslog is a cron job that gets run every hour.  There's nothing to
restart.  Changes to newsyslog.conf will be picked up the next time it
runs.

Cheers,

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: how to re-read /etc/newsyslog.conf ?

2010-09-15 Thread Antonio Kless
2010/9/15 Matthew Seaman m.sea...@infracaninophile.co.uk

 On 15/09/2010 09:02, Antonio Kless wrote:
  I have changed my /etc/newsyslog.conf by adding some new lines. How to
 make
  FreeBSD re-read it?
 
  # /etc/rc.d/newsyslog status
  newsyslog is not running.
 
  Is it OK?

 newsyslog is a cron job that gets run every hour.  There's nothing to
 restart.  Changes to newsyslog.conf will be picked up the next time it
 runs.

Cheers,

Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



OK, now I see.
Then for what /etc/rc.d/newsyslog are there?

FreeBSD 7.2-RELEASE.


-- 
Best regards,
Antonio Kless,
http://kless.spb.ru/
___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Polytropon
On Wed, 15 Sep 2010 08:47:38 +0200, Remko Lodder re...@elvandar.org wrote:
 
  Almost every time after improper shutdown (poweroff) and reboot I get
  into interactive fsck.
 
  I am being asked whole bunch of questions to which I just have to answer
  Y (what are my other options?)
 
  Why drop user into interactive fsck if there is not much choice anyways?
  Is there a way to set it up the way it doesn't drop into interactive
  mode? Like answer 'Y' to all questions?
 
  Yuri
 
 I think this might do your trick:
 
 fsck_y_enable=NO  # Set to YES to do fsck -y if the initial preen
 fails.
 fsck_y_flags= # Additional flags for fsck -y
 
 The reason for this to get interactively is because this  might messup
 with your filesystem, and you are the one responsible for your filesystem,
 not us or the autmated system. So in case you want to play with that,
 that's entirely up to you.
 
 In addition, I can imagine that companies (been there done it) do not want
 to fsck -y by default, this because of the mentioned potential corruption
 and dataloss.

Very important point.

As an addition, allow me to mention

background_fsck=YES

as an entry in /etc/rc.conf. This will let the system boot up and perform
fsck checks while the system is running - running on a maybe defective or
inconsistent file system. This is dangerous, but possible. It utilizes a
snapshot mechanism which can cause further trouble (lost / emptyinodes
and disappearing subtrees of files).

Personally, if fsck requires YOUR attention, there's usually a reason for
this. The reason is possible data loss or file system corruption where YOU
take the responsibility of decision, not fsck. By default, fsck does not
do damaging, but under strange circumstances, it can happen. For example,
if you want to do a special kind of data recovery or forensic analysis on
a file system, you potentially DO NOT WANT fsck to assume y for all the
questions because that can make your job harder.

A common additional y flag is -f (means fsck -yf) to force all operations
suggested by fsck and confirming them.



-- 
Polytropon
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 re-read /etc/newsyslog.conf ?

2010-09-15 Thread Matthew Seaman
On 15/09/2010 10:11, Antonio Kless wrote:
 OK, now I see.
 Then for what /etc/rc.d/newsyslog are there?
 

It's a shell script. If you read it, you'll find the comments will
elucidate.

Matthew

-- 
Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW



signature.asc
Description: OpenPGP digital signature


Re: how to re-read /etc/newsyslog.conf ?

2010-09-15 Thread Bas Smeelen
On 09/15/2010 11:11 AM, Antonio Kless wrote:
 2010/9/15 Matthew Seaman m.sea...@infracaninophile.co.uk

   
 On 15/09/2010 09:02, Antonio Kless wrote:
 
 I have changed my /etc/newsyslog.conf by adding some new lines. How to
   
 make
 
 FreeBSD re-read it?

 # /etc/rc.d/newsyslog status
 newsyslog is not running.

 Is it OK?
   
 newsyslog is a cron job that gets run every hour.  There's nothing to
 restart.  Changes to newsyslog.conf will be picked up the next time it
 runs.

Cheers,

Matthew

 --
 Dr Matthew J Seaman MA, D.Phil.   7 Priory Courtyard
  Flat 3
 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate
 JID: matt...@infracaninophile.co.uk   Kent, CT11 9PW


 
 OK, now I see.
 Then for what /etc/rc.d/newsyslog are there?

 FreeBSD 7.2-RELEASE.


   
Hi

I guess this is for running newsyslog during boot to cleanup logfiles
(enable in rc.conf)
The same as ntpdate for instance




DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, 
disclosure, copying,
distribution or reliance on any of it by anyone else is prohibited. If you have 
received it
by mistake please let us know by reply and then delete it from your system.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: this is probably a little touchy to ask...

2010-09-15 Thread Jerry
On Wed, 15 Sep 2010 01:52:57 -0500
Joshua Isom jri...@gmail.com articulated:

 As to the original post, Java, a portable write once run anywhere 
 language, doesn't work on FreeBSD, a standard type operating system 
 that mainly runs on standard hardware, when used with Xorg, a
 widely used standard, as a plug in for Firefox, a major and
 presumably the dominant *nix web browser.  Maybe the question should
 go to Oracle about why it doesn't work.  A java applet probably works
 on your Symbian smart phone running on ARM.

Java is offered in many different versions that work on a multitude of
operating systems. To expect or require, and I have no idea how you
would enforce the requirement bit, Oracle or any other software
vendor for that matter to design software that is fully functional on
all operating systems is simply unrealistic and most likely
unobtainable.

There are numerous examples of software that work only on a limited
number of *.nix flavors. To be made operational on other operating
systems usually requires reworking the code and in many cases disabling
many of the software's features. Even then there is no guarantee that
it will work correctly, if at all.

It took years, literally, before FreeBSD matured enough to get 64-bit
drivers for nVidia working correctly on its platform. The failure to
get the latest version(s) of Java working correctly on FreeBSD and
thereby, at least in my case, make the latest version of Firefox fully
usable, rests with the FreeBSD developers.

I have not been able to ascertain exactly why Java cannot be made
functional on a modern FreeBSD system. Other than receiving some
useless suggestion about donating money to the Java foundation, or
whatever it is called, nobody has responded with an answer.

The bottom line is that Java appears to be functioning on other flavors
of *.nix, but not FreeBSD. It would seem pretty obvious where the
problem lies.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

What if God’s a woman? Not only am I going to hell, I’ll never know why.

Adam Ferrara
___
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


gcc44 failed while installing x11/kde4

2010-09-15 Thread Aftab Jahan Subedar
I am not getting able to compile gcc44 while making kde4. Below is the
copy n paste.
Anyone found solution to that?


# uname -a
FreeBSD space.subedartech.net 8.1-STABLE FreeBSD 8.1-STABLE #8: Wed
Sep 15 15:36:45 UTC 2010
r...@space.subedartech.net:/usr/obj/usr/src/sys/GENERIC  i386
#cd /usr/ports/lang/gcc44
#make install clean
.
checking dynamic linker characteristics... freebsd8.1 ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C preprocessor... cc -E
checking build system type... i386-portbld-freebsd8.1
checking host system type... i386-portbld-freebsd8.1
checking target system type... checking for stdlib.h... (cached)
i386-portbld-freebsd8.1
yes
checking for unistd.h... (cached) checking LIBRARY_PATH variable... ok
yes
checking GCC_EXEC_PREFIX variable... ok
checking whether to place generated files in the source directory... no
configure: error: cannot execute: /usr/local/bin/ld: check --with-ld or env. var
checking for getpagesize... gmake[2]: *** [configure-stage1-gcc] Error 1
gmake[2]: *** Waiting for unfinished jobs
yes
checking for working mmap... yes
checking for memcpy... yes
checking for strerror... yes
checking for deflate in -lz... yes
checking for unistd.h... (cached) yes
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: executing default-1 commands
config.status: executing depfiles commands
config.status: executing libtool commands
gmake[2]: Leaving directory `/usr/ports/lang/gcc44/work/build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc44/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 1

Stop in /usr/ports/lang/gcc44.
#

- Jahan
  Subedar Technologies Inc
  Dhaka
  Bangladesh
___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread Yuri

On 09/15/10 09:47, Remko Lodder wrote:

I think this might do your trick:

fsck_y_enable=NO  # Set to YES to do fsck -y if the initial preen
fails.
fsck_y_flags= # Additional flags for fsck -y

The reason for this to get interactively is because this  might messup
with your filesystem, and you are the one responsible for your filesystem,
not us or the autmated system. So in case you want to play with that,
that's entirely up to you.

In addition, I can imagine that companies (been there done it) do not want
to fsck -y by default, this because of the mentioned potential corruption
and dataloss.

Thanks
remko

p.s. This was found within 5 seconds in /etc/defaults/rc.conf.

   


Thanks Remko!
I never had spare 5 secs for this :-), and now when I left my computer 
to friends (not computer savvy) they got into this trap. There is no 
database... I think installer better asks this question during 
installation since many users just run a desktop and -y is pretty much 
ok for them.


Thank you again,
Yuri
___
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


CPU temp munin plugin

2010-09-15 Thread Dánielisz László
Hi,

What plugin do you use in munin to get values of your CPU?

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: this is probably a little touchy to ask...

2010-09-15 Thread Michel Talon

Jerry said:

It took years, literally, before FreeBSD matured enough to get 64-bit
drivers for nVidia working correctly on its platform. The failure to
get the latest version(s) of Java working correctly on FreeBSD and
thereby, at least in my case, make the latest version of Firefox fully
usable, rests with the FreeBSD developers.


I would be happy to have a precise information on what is not working.
On my machine, FreeBSD-8.1 x86, Java works.
niobe% java -version
java version 1.6.0_03-p4
Java(TM) SE Runtime Environment (build
1.6.0_03-p4-michel_30_jul_2010_15_01-b00)
Java HotSpot(TM) Client VM (build
1.6.0_03-p4-michel_30_jul_2010_15_01-b00, mixed mode)


As you can see, it is a recent java, and i have compiled it myself.
If i remember well, the prebuilt diablo-jdk was not working. I have
boostraped my compilation by using a prebuilt openjdk installed with
pkg_add -r. Of course i modified the Makefile to be able to use it.

The openjdk package did not include a mozilla plugin, but the above
compilation produces a plugin.

Now the real problem: firefox36 doesn't see the plugin, and even worse
doesn't produce any message about the plugin when starting up. 
However i am able to use the plugin under seamonkey, so it is clearly
a firefox problem, and not a Java problem or a FreeBSD problem.
Strangely enough, Konqueror, which doesn't use the plugin, but a direct
invocation of java, doesn't work either. Execution of an applet begins,
something appears but the applet execution never appears on
screen. This is the first time i see Java not working on Konqueror.


Last point: some people say in this thread that nobody uses Java any
more on the browser, hence it is of no importance that one cannot have a
java enabled firefox. I have an example to the contrary, here in France
you can submit your tax declaration online, and the application allowing
to do that is a java applet running under the browser. Similarly i am
using a printing service for my photographs which allows to download
them and manage the order via a java applet. Hence, at least in my case
i see immediately several important applications using a Java enabled
browser.





-- 

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: this is probably a little touchy to ask...

2010-09-15 Thread Jonathan McKeown
On Wednesday 15 September 2010 13:02:41 Jerry wrote:

 It took years, literally, before FreeBSD matured enough to get 64-bit
 drivers for nVidia working correctly on its platform. The failure to
 get the latest version(s) of Java working correctly on FreeBSD and
 thereby, at least in my case, make the latest version of Firefox fully
 usable, rests with the FreeBSD developers.

 I have not been able to ascertain exactly why Java cannot be made
 functional on a modern FreeBSD system. Other than receiving some
 useless suggestion about donating money to the Java foundation, or
 whatever it is called, nobody has responded with an answer.

 The bottom line is that Java appears to be functioning on other flavors
 of *.nix, but not FreeBSD. It would seem pretty obvious where the
 problem lies.

Yes. It lies with Sun and Oracle, and the licensing terms that prevent the 
FreeBSD project from distributing modified Java packages. More generally, the 
problem lies with companies who won't support FreeBSD but also prevent the 
project from supporting their product itself.

There are strong commercial interests in Linux - IBM, Red Hat, Oracle, to name 
three - which makes it worth spending some money supporting a product on 
Linux. (That goes for other products too: nvidia graphics card drivers, 
flash, wireless networking device drivers...) Even so there are products that 
have patchy support in Linux too.

FreeBSD isn't as attractive a commercial target, since it has no financially 
powerful backers (that I'm aware of), a small market share, and not much 
public awareness. Some companies are prepared to sink resources into 
supporting it anyway, and others are prepared to release the information 
needed for the FreeBSD project to support their products for them. There are 
other companies, as I said, that won't do either.

I don't think it's fair to blame the FreeBSD developers for that; nor indeed 
to expect the FreeBSD developers to be responsible for making Sun/Oracle's 
Java and the Mozilla Foundation's Firefox work.

Jonathan
___
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: this is probably a little touchy to ask...

2010-09-15 Thread C. Bergström

Jonathan McKeown wrote:


Yes. It lies with Sun and Oracle, and the licensing terms that prevent the 
FreeBSD project from distributing modified Java packages. More generally, the 
problem lies with companies who won't support FreeBSD but also prevent the 
project from supporting their product itself.
  


I've been wanting to ignore this thread because I know the amount of 
work involved, but


#1 Why doesn't someone sign-up and get the OpenJDK validation suite?
#2 Why doesn't someone pull Icedtea6, build it and then run the OpenJDK 
validation suite?


I don't know if waiting for others is going to get the desired results 
in this case..


After the project is rolling I'm happy to help make suggestions or give 
a hand with how to make Hotspot and the whole JDK a little better 
performance.


Thanks

./C
___
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: virtaullBox AMD64 32bit lib

2010-09-15 Thread Gholam Mostafa Faridi

On 09/15/2010 13:00, Edho P Arief wrote:

sh install.sh
I download all file and go to download directory and run that command , 
for first time I do not see error and do not see messages , but when I 
run that sh install.sh again I see this error


mfaridipc# sh install.sh

./usr/lib32/libc.so.7: Could not unlink
./usr/lib32/libcrypt.so.5: Could not unlink
./usr/lib32/librt.so.1: Could not unlink
./usr/lib32/libthr.so.3: Could not unlink
./libexec/ld-elf32.so.1: Could not unlink
tar: Error exit delayed from previous errors.

and problem do not solve
___
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: this is probably a little touchy to ask...

2010-09-15 Thread Jerry
On Wed, 15 Sep 2010 15:17:32 +
Michel Talon ta...@lpthe.jussieu.fr articulated:

 
 Jerry said:
 
 It took years, literally, before FreeBSD matured enough to get 64-bit
 drivers for nVidia working correctly on its platform. The failure to
 get the latest version(s) of Java working correctly on FreeBSD and
 thereby, at least in my case, make the latest version of Firefox fully
 usable, rests with the FreeBSD developers.
 
 
 I would be happy to have a precise information on what is not working.
 On my machine, FreeBSD-8.1 x86, Java works.
 niobe% java -version
 java version 1.6.0_03-p4
 Java(TM) SE Runtime Environment (build
 1.6.0_03-p4-michel_30_jul_2010_15_01-b00)
 Java HotSpot(TM) Client VM (build
 1.6.0_03-p4-michel_30_jul_2010_15_01-b00, mixed mode)

On my system, using the latest build available in the ports system:

$ java -version
java version 1.6.0_07
Diablo Java(TM) SE Runtime Environment (build 1.6.0_07-b02)
Diablo Java HotSpot(TM) 64-Bit Server VM (build 10.0-b23, mixed mode)


 As you can see, it is a recent java, and i have compiled it myself.
 If i remember well, the prebuilt diablo-jdk was not working. I have
 boostraped my compilation by using a prebuilt openjdk installed with
 pkg_add -r. Of course i modified the Makefile to be able to use it.
 
 The openjdk package did not include a mozilla plugin, but the above
 compilation produces a plugin.
 
 Now the real problem: firefox36 doesn't see the plugin, and even worse
 doesn't produce any message about the plugin when starting up. 
 However i am able to use the plugin under seamonkey, so it is clearly
 a firefox problem, and not a Java problem or a FreeBSD problem.
 Strangely enough, Konqueror, which doesn't use the plugin, but a
 direct invocation of java, doesn't work either. Execution of an
 applet begins, something appears but the applet execution never
 appears on screen. This is the first time i see Java not working on
 Konqueror.

I am using Firefox:

$ firefox3 --version
Mozilla Firefox 3.6.9, Copyright (c) 1998 - 2010 mozilla.org

If I wanted to use a different browser, I would. Hell, I could just use
Windows and not worry about Java incompatibilities entirely.

As per the Mozilla site:

Starting in Firefox 3.6, you also need the new Java plugin included in
Java 6 Update 15 and above.

FreeBSD does not supply, nor support as far as I can decipher, that
version or any of the newer versions, the latest being version 6, update
21. Nor, as I stated previously, has anyone stated definitively why.

 Last point: some people say in this thread that nobody uses Java any
 more on the browser, hence it is of no importance that one cannot
 have a java enabled firefox. I have an example to the contrary, here
 in France you can submit your tax declaration online, and the
 application allowing to do that is a java applet running under the
 browser. Similarly i am using a printing service for my photographs
 which allows to download them and manage the order via a java applet.
 Hence, at least in my case i see immediately several important
 applications using a Java enabled browser.

People bitch about not needing or requiring Java based virtually solely
on the lack of support the FreeBSD community (developers) have afforded
it. If, Java worked as well on FreeBSD as it does on Windows and many
other operating systems, their scorn would turn to praise. It is just
the nature of the beast.

-- 
Jerry ✌
freebsd.u...@seibercom.net

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the Reply-To header.
__

___
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: this is probably a little touchy to ask...

2010-09-15 Thread Michel Talon
Jerry said:

 Starting in Firefox 3.6, you also need the new Java plugin included in
 Java 6 Update 15 and above.

OK, this explains why my plugin doesn't work. So the only solution is to
use the port firefox35 hoping that other components (flash plugin
support) also work in this case. 

 FreeBSD does not supply, nor support as far as I can decipher, that
 version or any of the newer versions, the latest being version 6, update
 21. Nor, as I stated previously, has anyone stated definitively why.

It takes a long time for FreeBSD to support a new version of the jdk,
because this is an extremely voluminous and complicated software, and
the number of developers working on Java support is very small.


-- 

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


Prova sin relation med vår prisbelönt k ärleksmete

2010-09-15 Thread MobTech Sverige
Hur het är er relation? 

Kylig som ett isberg eller het som en vulkan? Låt oss hjälpa dig. Vi ger dig 
svaret vilket kan förändra ditt liv!

Skicka ett SMS med sökorden TXT LOVE NAMN+NAMN till nummer 72401 och ta reda på 
hur kompatibelt du är!
Exempel på SMS: TXT LOVE ELIN+ANDERS

Efter du har skickat SMSet börjar vår system analysera olika aspekter av er 
relation och skickar svaret med passningsprocent och tre olika körvisare 
(kärlek, hur rolig, stödja varandra).

Tjänsten körs i all svenska mobilnät.

Kostnaden för ett SMS är 20 kronor.
Om du inte vill få mer information från MobTech Sverige klicka här: 
mailto:remo...@tech-center.com?subject=unsubscribe;freebsd-questions@freebsd.org


---
You are receiving this mailing because you have subscribed your e-mail 
freebsd-questions@freebsd.org to receive newsletters of this context.
If you feel that your e-mail is abused, please send a report to 
report...@tech-center.com and insert freebsd-questions@freebsd.org in the 
subject line of your message.

MobTech Group LLC. W1U3HB, London, United Kingdom. 

___
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: apropos returning same item twice

2010-09-15 Thread Wayne Sierke
On Tue, 2010-09-14 at 00:37 +, Alexander Best wrote:
 On Sat Sep 11 10, Steven Friedrich wrote:
  Why does apropos list mysql(1) twice?
  
  It doesn't return duplicates with apropos kde...
 
 maybe you have a gzip'ed and plain version in /usr ?
 
 see PR #4419.
 
 cheers.
 alex

Are you certain that /etc/manpath.config doesn't just still
have /usr/X11R6/man configured (as well as /usr/local/man)? Admittedly
the kde issue is a mystery, assuming its manpages are installed
in /usr/local/man. This system has the following:

OPTIONAL_MANPATH/usr/local/man
# (disabled by xorg-libraries port) OPTIONAL_MANPATH/usr/X11R6/man

MANPATH_MAP /usr/local/bin  /usr/local/man
# (disabled by xorg-libraries port) MANPATH_MAP /usr/X11R6/bin  /usr/X11R6/man


Is the whatis file being updated? Check the timestamp:

# ls -l /usr/local/man/whatis
-rw-r--r--  1 root  wheel  273178 Sep 11 04:22 /usr/local/man/whatis


Wayne


  ad...@laptop2(/dev/pts/1)/usr/home/admin 106% apropos mysql 
 
  mysql(1) - the MySQL command-line tool  
 
  mysql.server(1)  - MySQL server startup script
  mysql_config(1)  - get compile options for compiling clients
  mysql_install_db(1)  - initialize MySQL data directory
  mysql_tzinfo_to_sql(1)   - load the time zone tables
  mysql_upgrade(1) - check tables for MySQL upgrade
  mysql_waitpid(1) - kill process and wait for its termination
  mysqladmin(1)- client for administering a MySQL server
  mysqlbinlog(1)   - utility for processing binary log files
  mysqlbug(1)  - generate bug report
  mysqlcheck(1)- a table maintenance program
  mysqld_safe(1)   - MySQL server startup script safe_mysqld - MySQL 
  server startup script
  mysqldump(1) - a database backup program
  mysqlimport(1)   - a data import program
  mysqlshow(1) - display database, table, and column information
  mysqltest(1) - program to run test cases mysqltest_embedded - 
  program to run embedded test cases
  slapd-ndb(5) - MySQL NDB backend to slapd
  mysql(1) - the MySQL command-line tool
  mysql.server(1)  - MySQL server startup script
  mysql_config(1)  - get compile options for compiling clients
  mysql_install_db(1)  - initialize MySQL data directory
  mysql_tzinfo_to_sql(1)   - load the time zone tables
  mysql_upgrade(1) - check tables for MySQL upgrade
  mysql_waitpid(1) - kill process and wait for its termination
  mysqladmin(1)- client for administering a MySQL server
  mysqlbinlog(1)   - utility for processing binary log files
  mysqlbug(1)  - generate bug report
  mysqlcheck(1)- a table maintenance program
  mysqld_safe(1)   - MySQL server startup script safe_mysqld - MySQL 
  server startup script
  mysqldump(1) - a database backup program
  mysqlimport(1)   - a data import program
  mysqlshow(1) - display database, table, and column information
  mysqltest(1) - program to run test cases mysqltest_embedded - 
  program to run embedded test cases
  slapd-ndb(5) - MySQL NDB backend to slapd
  
  -- 
  System Name:   laptop2.StevenFriedrich.org
  Hardware:  2.80GHz Intel Pentium 4 (HTT) with 2 GB memory
  OS version:FreeBSD 8.1-RELEASE i386 (6.9 MB kernel)
  manager(s):kde4-4.5.1 
  X windows: xorg-7.5X.Org X Server 1.7.5
 


___
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


Hur het är er relation? :)

2010-09-15 Thread MobTech Sverige
Hur het är er relation? 

Kylig som ett isberg eller het som en vulkan? Låt oss hjälpa dig. Vi ger dig 
svaret vilket kan förändra ditt liv!

Skicka ett SMS med sökorden TXT LOVE NAMN+NAMN till nummer 72401 och ta reda på 
hur kompatibelt du är!
Exempel på SMS: TXT LOVE ELIN+SVEN

Efter du har skickat SMSet börjar vår system analysera olika aspekter av er 
relation och skickar svaret med passningsprocent och tre olika körvisare 
(kärlek, hur rolig, stödja varandra).

Tjänsten körs i all svenska mobilnät.

Kostnaden för ett SMS är 20 kronor.
Om du inte vill få mer information från MobTech Sverige klicka här: 
mailto:remo...@tech-center.com?subject=unsubscribe;questi...@freebsd.org


---
You are receiving this mailing because you have subscribed your e-mail 
questi...@freebsd.org to receive newsletters of this context.
If you feel that your e-mail is abused, please send a report to 
report...@tech-center.com and insert questi...@freebsd.org in the subject line 
of your message.

MobTech Group LLC. W1U3HB, London, United Kingdom. 

___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread David Brodbeck
On Wed, Sep 15, 2010 at 12:00 AM, Yuri y...@rawbw.com wrote:
 Thanks Remko!
 I never had spare 5 secs for this :-), and now when I left my computer to
 friends (not computer savvy) they got into this trap. There is no
 database... I think installer better asks this question during installation
 since many users just run a desktop and -y is pretty much ok for them.

Train your friends to shut the machine down by pressing (not holding
down!) the power button.  On any modern machine ACPI should trigger a
clean shutdown/poweroff.
___
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: this is probably a little touchy to ask...

2010-09-15 Thread bdsfbsd
On Wed, 15 Sep 2010 12:46:35 -0400, Michel Talon ta...@lpthe.jussieu.fr  
wrote:



Jerry said:


Starting in Firefox 3.6, you also need the new Java plugin included in
Java 6 Update 15 and above.


OK, this explains why my plugin doesn't work. So the only solution is to
use the port firefox35 hoping that other components (flash plugin
support) also work in this case.



This, by the way, is probably the correct and only answer the OP was  
looking for. I had Java working just fine in a previous install, but  
hadn't bothered with it lately so I didn't want to answer the OP and  
possibly misinform. The OP didn't mean to troll (thus the non-descriptive  
yet truthful subject line), but we got treated to a big pointless  
discussion of whether or not Java is useful/evil anyway, with the added  
joy for some of us of receiving many copies of the responses thanks to the  
cross-posting. Sometimes people just want the _technical_ answer, not the  
_political_ one, regardless of the strength of your convictions.


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


gateway_enable

2010-09-15 Thread Wolfgang Riegler
Hi,

I have a question about building a FreeBSD gateway.

I want to create a subnet in our internal company network. I have installed 
FreeBSD 8.0 RELEASE i386, no updates, right from the FreeBSD CD. Now I want to 
configure this box as the gateway of the subnet. I have two NICs configured. 
One external for the company network and one for the new subnet. On this box I 
can reach any other computer in our internal network, I have internet access, 
too, and I can reach the box on the subnet. The box on the subnet is able to 
ping both NICs on my FreeBSD box, but cannot reach any other computer of my 
company network or the internet. Because I don't need any firewall on this 
subnet, I thought gateway_enable=YES in /etc/rc.conf should be sufficient. 
But it doesn't work. Do I need something else?


# cat /etc/rc.conf
keymap=german.iso
moused_enable=YES
sshd_enable=YES
hostname=gw2
ifconfig_rl0=DHCP
ifconfig_re0=inet 192.168.50.1  netmask 255.255.255.0
gateway_enable=YES


# sysctl net.inet.ip.forwarding
net.inet.ip.forwarding: 1


# netstat -rn
Routing tables

Internet:
DestinationGatewayFlagsRefs  Use  Netif Expire
default192.168.40.1   UGS 00rl0
127.0.0.1  link#6 UH  00lo0
192.168.40.0/24link#2 U   1  274rl0
192.168.40.122 link#2 UHS 00lo0
192.168.50.0/24link#1 U   0   15re0
192.168.50.1   link#1 UHS 00lo0

Internet6:
Destination   Gateway   Flags  
Netif Expire
::1   ::1   UH  lo0
fe80::%lo0/64 link#6U   lo0
fe80::1%lo0   link#6UHS lo0
ff01:6::/32   fe80::1%lo0   U   lo0
ff02::%lo0/32 fe80::1%lo0   U   lo0


___
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: gateway_enable

2010-09-15 Thread Chuck Swiger
On Sep 15, 2010, at 12:10 PM, Wolfgang Riegler wrote:
 I want to create a subnet in our internal company network. I have installed 
 FreeBSD 8.0 RELEASE i386, no updates, right from the FreeBSD CD. Now I want 
 to configure this box as the gateway of the subnet. I have two NICs 
 configured. One external for the company network and one for the new subnet. 
 On this box I can reach any other computer in our internal network, I have 
 internet access, too, and I can reach the box on the subnet. The box on the 
 subnet is able to ping both NICs on my FreeBSD box, but cannot reach any 
 other computer of my company network or the internet. Because I don't need 
 any firewall on this subnet, I thought gateway_enable=YES in /etc/rc.conf 
 should be sufficient. But it doesn't work. Do I need something else?

Yes.  What you've done thus far should work fine if your internal subnet was 
using routable IPs; since you are using 192.168.x.y RFC-1918 unroutable IPs, 
you want to also setup NAT on your gateway box:

  http://www.freebsd.org/doc/handbook/network-natd.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: gateway_enable

2010-09-15 Thread Beat Siegenthaler


 On 15.09.10 21:10, Wolfgang Riegler wrote:

   I thought gateway_enable=YES in /etc/rc.conf should be sufficient. But 
  it doesn't work. Do I need something else?
 
 
Looks all ok.
But does 192.168.40.1 have a route to 192.168.50.0/24 via GW
192.168.40.122?

  Internet:
  DestinationGatewayFlagsRefs  Use  Netif Expire
  default192.168.40.1   UGS 00rl0
  127.0.0.1  link#6 UH  00lo0
  192.168.40.0/24link#2 U   1  274rl0
  192.168.40.122 link#2 UHS 00lo0
  192.168.50.0/24link#1 U   0   15re0
  192.168.50.1   link#1 UHS 00lo0
 
Gruss Beat

___
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


Discard file cache

2010-09-15 Thread CyberLeo Kitsana
Hi!

I'm helping port a utility [1] to program the EyeFi card [2] and I seem
to be running into problems properly manipulating the configuration.

The card is programmed by writing encoded commands to certain hidden
files on the card, and reading the coded responses back from other
files. Since the card modifies the data in these files independently of
the host operating system, there is a need to avoid all caching (read
and write) whenever interacting with the card's interface. fsync(2)
works for eliminating write caching, so that's no issue.

While the Linux port of the software successfully accomplishes avoiding
read caching by utilizing posix_fadvise and POSIX_FADV_DONTNEED to clear
the caches for a particular file, the same does not appear to function
on FreeBSD. I have also tried using msync with MS_INVALIDATE, but this
doesn't appear to work either.

Is there an official (or at least consistent) API for discarding a
file's cached read data, so that it may be fetched afresh from the
backing store?

Thanks!

[1] http://git.cyberleo.net/eyefi-config.git
[2] http://www.eye.fi/

-- 
Fuzzy love,
-CyberLeo
Technical Administrator
CyberLeo.Net Webhosting
http://www.CyberLeo.Net
cyber...@cyberleo.net

Furry Peace! - http://.fur.com/peace/
___
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


So I've Been Wondering...

2010-09-15 Thread Jud
Thinking of installing FreeBSD with ZFS root on my MacBook Pro as dual  
boot, possibly treble with Win7.  What's the best way to do this - Boot  
Camp, then follow FreeBSD Wiki?


Thanks,

Jud

--
I'd take the awe of understanding over the awe of ignorance any day. —  
Douglas Adams

___
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 prevent system to launch interactive fsck after improper shutdown and reboot?

2010-09-15 Thread doug


On Wed, 15 Sep 2010, Polytropon wrote:


On Wed, 15 Sep 2010 08:47:38 +0200, Remko Lodder re...@elvandar.org wrote:



Almost every time after improper shutdown (poweroff) and reboot I get
into interactive fsck.

I am being asked whole bunch of questions to which I just have to answer
Y (what are my other options?)

Why drop user into interactive fsck if there is not much choice anyways?
Is there a way to set it up the way it doesn't drop into interactive
mode? Like answer 'Y' to all questions?

Yuri


I think this might do your trick:

fsck_y_enable=NO  # Set to YES to do fsck -y if the initial preen
fails.
fsck_y_flags= # Additional flags for fsck -y

The reason for this to get interactively is because this  might messup
with your filesystem, and you are the one responsible for your filesystem,
not us or the autmated system. So in case you want to play with that,
that's entirely up to you.

In addition, I can imagine that companies (been there done it) do not want
to fsck -y by default, this because of the mentioned potential corruption
and dataloss.


Very important point.

As an addition, allow me to mention

background_fsck=YES

as an entry in /etc/rc.conf. This will let the system boot up and perform
fsck checks while the system is running - running on a maybe defective or
inconsistent file system. This is dangerous, but possible. It utilizes a
snapshot mechanism which can cause further trouble (lost / emptyinodes
and disappearing subtrees of files).

Personally, if fsck requires YOUR attention, there's usually a reason for
this. The reason is possible data loss or file system corruption where YOU
take the responsibility of decision, not fsck. By default, fsck does not
do damaging, but under strange circumstances, it can happen. For example,
if you want to do a special kind of data recovery or forensic analysis on
a file system, you potentially DO NOT WANT fsck to assume y for all the
questions because that can make your job harder.

A common additional y flag is -f (means fsck -yf) to force all operations
suggested by fsck and confirming them.

I have had two systems die with bad disks. This email contains great information 
and spot-on advice from my experience. When I was ready to give up on my last 
system I did a -yf in single user mode and was able to get most of my data 
because the bad sectors were in /usr/local which had many missing files and 
directories. Modern disks die silently which I think is too bad. If this is 
happening and you have data you want to recover you might try booting in single 
user move and using fsck manually on each slice. If you are lucky, your errors 
will be in /tmp or /var.

___
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: gateway_enable

2010-09-15 Thread Nathan Vidican
On Wed, Sep 15, 2010 at 3:30 PM, Beat Siegenthaler 
beat.siegentha...@beatsnet.com wrote:



  On 15.09.10 21:10, Wolfgang Riegler wrote:

I thought gateway_enable=YES in /etc/rc.conf should be sufficient.
 But it doesn't work. Do I need something else?
  
  
 Looks all ok.
 But does 192.168.40.1 have a route to 192.168.50.0/24 via GW
 192.168.40.122?

   Internet:
   DestinationGatewayFlagsRefs  Use  Netif
 Expire
   default192.168.40.1   UGS 00rl0
   127.0.0.1  link#6 UH  00lo0
   192.168.40.0/24link#2 U   1  274rl0
   192.168.40.122 link#2 UHS 00lo0
   192.168.50.0/24link#1 U   0   15re0
   192.168.50.1   link#1 UHS 00lo0
  
 Gruss Beat

 ___
 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


As Beat questioned, I suspect your company network (192.168.40.0/24) know
that it must use your machine (192.168.50.122) as it's gateway to get to
192.168.50.0/24 ?

In other words, it would appear you have one side of the equation correct
but are missing the other side. Assuming the other gateway is the (single)
default gateway for 192.168.40.0/24 - you should simply have to add a route
on that router instructing it to use 192.168.40.122 (your ip) as the gateway
to the other subnet you created as 192.168.50.0/24.

NETWORK A
   - use 192.168.50.1 as default gateway
   192.168.50.1 == router == 192.168.40.122

NETWORK B
   - use 192.168.40.1 as default gateway
   192.168.40.1 == router - add entry on this router to use 192.168.40.122
to get to 192.168.50.1

Unfortunately, without seeing the route table for both sides I can't be sure
- but like I'd said and Beat had eluded to, I think your missing the
instructions to the other side of the route.

-- 
Nathan Vidican
nat...@vidican.com
___
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: jumbo frame support in bge(4) for BCM5704

2010-09-15 Thread David Newman
On 9/14/10 7:43 PM, Adam Vande More wrote:
 On Tue, Sep 14, 2010 at 9:19 PM, David Newman dnew...@networktest.comwrote:
 
 8.0-RELEASE amd64, Tyan S2882-D motherboard, Broadcom BCM5704C gigabit
 Ethernet transceivers

 Thanks in advance for any clues on enabling jumbos on this system.

 
 What happens if you boot from a linux live cd and try to enable frames
 there?

With Ubuntu 10.04, the system accepts ifconfig eth1 mtu N for any
value of N up to 9000, and shows an MTU of N in response to 'ifconfig'.

With 8.1-RELEASE (not 8.0 as stated before, sorry), the command
'ifconfig bge0 mtu 8000' produces an error:

ifconfig: ioctl (set mtu): Invalid argument

Same thing with 'mtu 1500', 'mtu 1400', etc.

dn

___
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: apropos returning same item twice

2010-09-15 Thread Steven Friedrich
On Wednesday 15 September 2010 12:39:15 pm Wayne Sierke wrote:
 On Tue, 2010-09-14 at 00:37 +, Alexander Best wrote:
  On Sat Sep 11 10, Steven Friedrich wrote:
   Why does apropos list mysql(1) twice?
   
   It doesn't return duplicates with apropos kde...
  
  maybe you have a gzip'ed and plain version in /usr ?
  
  see PR #4419.
  
  cheers.
  alex
 
 Are you certain that /etc/manpath.config doesn't just still
 have /usr/X11R6/man configured (as well as /usr/local/man)? Admittedly
 the kde issue is a mystery, assuming its manpages are installed
 in /usr/local/man. This system has the following:
 
 OPTIONAL_MANPATH  /usr/local/man
 # (disabled by xorg-libraries port) OPTIONAL_MANPATH  /usr/X11R6/man
 
 MANPATH_MAP   /usr/local/bin  /usr/local/man
 # (disabled by xorg-libraries port)
 MANPATH_MAP   /usr/X11R6/bin  /usr/X11R6/man
 
 
 Is the whatis file being updated? Check the timestamp:
 
 # ls -l /usr/local/man/whatis
 -rw-r--r--  1 root  wheel  273178 Sep 11 04:22 /usr/local/man/whatis
 
 
 Wayne
 
   ad...@laptop2(/dev/pts/1)/usr/home/admin 106% apropos mysql
snip 
 ___
 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

I still have X11R6 in usr symlinked to /usr/local. This was done per entry 
20070519 in /usr/ports/UPDATING.

Do we still need this symlink?

-- 
System Name:   laptop2.StevenFriedrich.org
Hardware:  2.80GHz Intel Pentium 4 (HTT) with 2 GB memory
OS version:FreeBSD 8.1-RELEASE i386 (6.9 MB kernel)
manager(s):kde4-4.5.1 
X windows: xorg-7.5X.Org X Server 1.7.5
___
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: CPU temp munin plugin

2010-09-15 Thread Rob Byrnes
2010/9/15 Dánielisz László laszlo_daniel...@yahoo.com:
 Hi,

 What plugin do you use in munin to get values of your CPU?

There are several, and some have dependencies on other software - what
cpu are you using?

Rob
___
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: virtaullBox AMD64 32bit lib

2010-09-15 Thread Rob Byrnes
On 15 September 2010 17:43, Gholam Mostafa Faridi
mostafafar...@gmail.com wrote:
 I want install virtualBox on AMD 64 and I use FreeBSD 8.1 and I have SRC
 directory , but when I run make install clean I see this error
  Requires 32-bit libraries installed under /usr/lib32.
 Do: cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32 
 and I run this command
 cd /usr/src; make build32 install32; ldconfig -v -m -R /usr/lib32
  and after minutes I see this error

 === gnu/lib/csu (obj,depend,all,install)
 sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbegin.o
 /usr/obj/usr/src/lib32/usr/lib32/crtbegin.o
 sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtend.o
 /usr/obj/usr/src/lib32/usr/lib32/crtend.o
 sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbeginT.o
 /usr/obj/usr/src/lib32/usr/lib32/crtbeginT.o
 sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtbegin.So
 /usr/obj/usr/src/lib32/usr/lib32/crtbeginS.o
 sh /usr/src/tools/install.sh -o root -g wheel -m 444  crtend.So
 /usr/obj/usr/src/lib32/usr/lib32/crtendS.o
 === lib/csu/i386-elf (obj,depend,all,install)
 ld -m elf_i386_fbsd -Y P,/usr/obj/usr/src/lib32/usr/lib32  -o gcrt1.o -r
 crt1_s.o gcrt1_c.o
 ld: Relocatable linking with relocations from format elf64-x86-64
 (gcrt1_c.o) to format elf32-i386-freebsd (gcrt1.o) is not supported
 *** Error code 1

 Stop in /usr/src/lib/csu/i386-elf.
 *** Error code 1

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

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

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

 Stop in /usr/src.
 ldconfig: warning: /usr/lib32: No such file or directory 

 I make post about this error in  freebsdforums but they can not help me
 please see link

 http://forums.freebsd.org/showthread.php?t=17607

 they said problem is ccache and I disable and remove ccache  ,but still I
 have that probelm
 please help me

I had a similar problem, and removing the contents of /usr/obj and
then rebuilding world (cvsup'ed as of 15/09) with  make -DNO_CCACHE
seemed to work.  This was on a real AMD64 machine too.

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


make buildkernel pre-build too long

2010-09-15 Thread David DEMELIER
Hi there,

I can't understand why this part of make buildkernel is so long on my
amd64 machine (8.1-R)

make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES |  MKDEP_CPP=cc -E
CC=cc xargs mkdep -a -f .newdep -O2 -frename-registers -pipe
-fno-strict-aliasing  -std=c99  -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 -I/usr/src/sys/contrib/ipfilter
-I/usr/src/sys/contrib/pf -I/usr/src/sys/dev/ath
-I/usr/src/sys/dev/ath/ath_hal -I/usr/src/sys/contrib/ngatm
-I/usr/src/sys/dev/twa -I/usr/src/sys/gnu/fs/xfs/FreeBSD
-I/usr/src/sys/gnu/fs/xfs/FreeBSD/support -I/usr/src/sys/gnu/fs/xfs
-I/usr/src/sys/contrib/opensolaris/compat -I/usr/src/sys/dev/cxgb
-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  -fno-omit-frame-pointer -mcmodel=kernel
-mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx
-mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables
-ffreestanding -fstack-protector

This command takes around 5-6 minutes before continuing, on my i386
machine (which is really old) it only takes about 20 seconds. The
kernel configs are almost the same for both machines.

Do you have any idea?

Kind regards,

-- 
Demelier David
___
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