Re: Koffice in KDE-4.2.2

2009-04-08 Thread Odhiambo Washington
On Tue, Apr 7, 2009 at 7:07 PM, Roland Smith rsm...@xs4all.nl wrote:

 On Tue, Apr 07, 2009 at 06:54:02PM +0300, Odhiambo Washington wrote:
  Hello pple,
 
  I installed KDE-4.2.2 but I cannot see the office apps. What am I
 missing?

 The Koffice version for KDE-4 is still in beta.

 Looking at the ports tree, there is only the
 /usr/ports/editors/koffice-kde3 port (except from a lot of localization
 ports).


So it is not installed by default when I:

cd /usr/ports/x11/kde4  make all install clean ???


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
Clothes make the man.  Naked people have little or no influence on
society.
  -- Mark Twain
___
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: Mysql make question

2009-04-08 Thread Mel Flynn
On Wednesday 08 April 2009 02:30:03 Lars Eighner wrote:
 On Tue, 7 Apr 2009, Dave Stegner wrote:
  I am venturing into Mysql.  I am trying to install it from the port,
  5.1.33.
 
  Simple question:
 
  Immediately after the start of make, you are presented with a list of
  options.
 
  Are those options selected by entering them on the make line like:
 
  make BUILD_OPTIMIZED=yes BUILD_STATIC=yes

 Yes.  Note however that test in most cases is only for the *existence*
 of the argument, so WITH_OPENSSL=yes is the same as WITH_OPENSSL=no;

In those cases you can also use -DWITH_OPENSSL.
-- 
Mel
___
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: Copying files without scp

2009-04-08 Thread Mel Flynn
On Wednesday 08 April 2009 01:31:18 Steve Bertrand wrote:
 Doug Hardie wrote:
  On Apr 7, 2009, at 16:13, Steve Bertrand wrote:
  Hi all,
 
  To copy data from one server, I normally (always) use scp.
 
  I'm looking for a method to perform this copy task without the overhead
  of encryption for infrequent, high-volume transfers (hundreds to
  thousands of GB).
 
  The data will be transferred server-to-server within a private
  datacentre.
 
  Can someone recommend a *known good* production quality copy mechanism
  that will act like scp, but without the overhead? rsh? nc?
 
  In that environment you can use ftp just fine.  Make sure to restrict it
  to the local IP addresses.

 Thanks, but I've never found a way to copy complete directories with FTP.

 I'll need to copy entire multi-nested directory structures.

 Do you have an example how to do this via FTP? (CLI-only).

ftp/ncftp3: ncftpget -R ftp://servername/path/to/start/
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: make, list and M pattern

2009-04-08 Thread Mel Flynn
On Tuesday 07 April 2009 21:54:13 Boris Samorodov wrote:
 Hello List,


 I need to create a list with some valid values and check an input
 value. Should this makefile work?
 -
 LIST=f8 f9

 all:
   @echo USE_LINUX=${USE_LINUX}, LIST=${LIST}
 .if empty(LIST:M${USE_LINUX})
   @echo The value is invalid
 .else
   @echo The value is valid
 .endif
 -
 % make USE_LINUX=f8
 USE_LINUX=f8, LIST=f8 f9
 The value is invalid
 -

Doesn't work because the match is not on words of the list but on the full 
list and you're not using globs.
Aside from Giorgos' method, one might consider:
LIST=f8 f9
LINUX_VER=invalid

.for _VERSION in ${LIST}
.if (${USE_LINUX} == ${_VERSION})
LINUX_VER=${_VERSION}
.endif
.endfor

all:
.if !empty(LINUX_VER:Minvalid)
@echo Invalid linux version: ${USE_LINUX}
.else
@echo Using linux version ${LINUX_VER}
.endif

-- 
Mel
___
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: new package system proposal

2009-04-08 Thread Jonathan McKeown
On Tuesday 07 April 2009 23:35:03 Bob Johnson wrote:
 On 4/4/09, Chris Whitehouse cwhi...@onetel.com wrote:
  Hi all

 [...]

  My suggestion is to start with a ports tree that is fixed in time. Make
  that ports tree available as part of this package system and compile a
  typical desktop set of ports, particularly choosing ones which are large
  or have many dependencies. When it is all complete release it and start
  again. Surely quite a wide selection of desktops, wm's and apps could be
  compiled in a couple of weeks?

 How is it an improvement over the existing tools? I must be missing
 something, because it sounds to me like you are merely asking that
 there be more ports made available as packages than are now offered.

I think what you're missing is the suggestion to bundle a set of pre-built 
packages with a snapshot of the ports tree used to build them. Currently it's 
difficult to mix and match packages and ports because the versions of 
dependencies are likely to differ between the package and the local version 
of the ports tree. If you know you have the same ports tree your packages 
were built from, you can much more easily combine pre-built packages and 
local builds from source.

This has clear advantages. At the moment, unless you're very lucky with your 
timing, you tend to find that as soon as you want to build one port from 
source (perhaps to fiddle with the configuration) you have to stop using 
prebuilt packages altogether.

The drawback I can see is the disk space required to keep several generations 
of packages online - if the package-port bundle is rebuilt every three weeks, 
let's say, and you want to keep 6 months' worth of packages online, you need 
to keep 9 complete versions available.

Chris's suggestion is certainly more than just a request for more packages, 
though.

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: make, list and M pattern

2009-04-08 Thread Boris Samorodov
On Wed, 08 Apr 2009 00:09:43 +0300 Giorgos Keramidas wrote:
 On Tue, 07 Apr 2009 23:54:13 +0400, Boris Samorodov b...@ipt.ru wrote:
  Hello List,
 
  I need to create a list with some valid values and check an input
  value. Should this makefile work?
 
  -
  LIST=f8 f9
 
  all:
  @echo USE_LINUX=${USE_LINUX}, LIST=${LIST}
  .if empty(LIST:M${USE_LINUX})
  @echo The value is invalid
  .else
  @echo The value is valid
  .endif
  -
  % make USE_LINUX=f8
  USE_LINUX=f8, LIST=f8 f9
  The value is invalid
  -

 Hi Boris! :)

Hi Giorgos! :)

 This is not exactly what you asked for, but you can probably loop
 instead of trying to match regular expressions:

   keram...@kobe:/tmp$ cat -n Makefile
1  LIST= f8 f9
2  USE_LINUX?= f9
3
4  LINUX_VERSION= ${USE_LINUX:C/[ ]*([^ ]*)[ ]*/\1/}
5
6  .if defined(USE_LINUX)
7  .for item in ${LIST}
8  .if ${USE_LINUX} == ${item}
9  RESULT= ${item}
   10  .endif
   11  .endfor
   12  .endif
   13
   14  all:
   15  .if empty(RESULT)
   16  @echo Version ${LINUX_VERSION} is not valid.
   17  .else
   18  @echo Valid version ${RESULT} selected.
   19  .endif
   keram...@kobe:/tmp$ make
   Valid version f9 selected.
   keram...@kobe:/tmp$ make -e USE_LINUX=f10
   Version f10 is not valid.
   keram...@kobe:/tmp$

Thanks, that would fit enough.


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: make, list and M pattern

2009-04-08 Thread Boris Samorodov
On Wed, 8 Apr 2009 08:45:04 +0200 Mel Flynn wrote:
 On Tuesday 07 April 2009 21:54:13 Boris Samorodov wrote:
  Hello List,
 
 
  I need to create a list with some valid values and check an input
  value. Should this makefile work?
  -
  LIST=f8 f9
 
  all:
  @echo USE_LINUX=${USE_LINUX}, LIST=${LIST}
  .if empty(LIST:M${USE_LINUX})
  @echo The value is invalid
  .else
  @echo The value is valid
  .endif
  -
  % make USE_LINUX=f8
  USE_LINUX=f8, LIST=f8 f9
  The value is invalid
  -

Hi Mel!

 Doesn't work because the match is not on words of the list but on the full 
 list and you're not using globs.

You are ringht, but not for the case. The case here seems to exist
because variables are not guaranteed to be expanded for M modifier.
I.e. even with globs the result will not be as expected.

 Aside from Giorgos' method, one might consider:
 LIST=f8 f9
 LINUX_VER=invalid

 .for _VERSION in ${LIST}
 .if (${USE_LINUX} == ${_VERSION})
 LINUX_VER=${_VERSION}
 .endif
 .endfor

 all:
 .if !empty(LINUX_VER:Minvalid)
 @echo Invalid linux version: ${USE_LINUX}
 .else
 @echo Using linux version ${LINUX_VER}
 .endif

Works. Thanks!


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
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


TeX/LaTeX in FreeBSD

2009-04-08 Thread Olivier Nicole
Hi,

I build print/tex and print/latex from the ports, but I must be
forgetting some configuration somewhere, because when trying to
compose qa document LaTeX cannot find the various include files like
article.cls

That must be a very stupid mistake. Few years ago I did build
TeX/laTeX from the ports, but I cannot find out what I did then to
make it work.

TIA,

Olivier
___
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: SQLgrey not happy

2009-04-08 Thread Mel Flynn
On Tuesday 07 April 2009 16:05:53 Len Conrad wrote:
 Trying to install everything via pkgs, but it messed up.

 fbsd 7.1

 SQLgrey 1.7.6 installed as pkg_add

 p5-DBD-mysql installed as:

 pkg_add -r
 ftp://ftp4.freebsd.org/pub/FreeBSD/ports/i386/packages-8-current/All/p5-DBD
-mysql-4.010.tbz

snip

 Apr  7 08:25:22 mx1 sqlgrey: fatal: Can't locate loadable object for module
 DBD::mysql in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/BSDPAN
  ^

Ports is at 5.8.9 since a few, so my guess is that p5-DBD-mysql-4.010 is 
installed in /usr/local/lib/perl5/5.8.9/BSDPAN.
You probably ignored the warning that p5-DBD-mysql-4.010 requires perl-5.8.9 
but perl-5.8.8_1 is installed.
Upgrading perl or finding an older package is the solution.
-- 
Mel
___
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: TeX/LaTeX in FreeBSD

2009-04-08 Thread Ionut Vancea
Hi,

On Wed, Apr 8, 2009 at 8:15 AM, Olivier Nicole o...@cs.ait.ac.th wrote:
 Hi,

 I build print/tex and print/latex from the ports, but I must be
 forgetting some configuration somewhere, because when trying to
 compose qa document LaTeX cannot find the various include files like
 article.cls

try to install print/teTeX as well, maybe it will solve your issue.


 That must be a very stupid mistake. Few years ago I did build
 TeX/laTeX from the ports, but I cannot find out what I did then to
 make it work.

Cheers,
-- 
===
Ioan Vancea
http://www.vioan.ro
___
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


Change to Graphical Mode from DOS Mode

2009-04-08 Thread Rajeev Sharma
Sir,
  I have successfully downloaded FreeBSD 6.4 Release linux  installed
on my PC.  But it starts in DOS Mode.

I want to shift to Graphical Mode.


Kindly advice me what to do.


Thanks


Rajeev Sharma
rajb3...@gmail.com
rajb3...@rediffmail.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: Change to Graphical Mode from DOS Mode

2009-04-08 Thread Fernando Apesteguía
On 4/8/09, Rajeev Sharma rajb3...@gmail.com wrote:
 Sir,
  I have successfully downloaded FreeBSD 6.4 Release linux  installed

FreeBSD is _not_ linux ;)

 on my PC.  But it starts in DOS Mode.

aka Console mode.


 I want to shift to Graphical Mode.

Once you log in, (use your login name and password), and assuming you
installed some graphical environment, try to type:

startx

Cheers



 Kindly advice me what to do.


 Thanks


 Rajeev Sharma
 rajb3...@gmail.com
 rajb3...@rediffmail.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

___
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 to Graphical Mode from DOS Mode

2009-04-08 Thread Ricardo Jesus

Rajeev Sharma wrote:

Sir,
  I have successfully downloaded FreeBSD 6.4 Release linux  installed
on my PC.  But it starts in DOS Mode.

I want to shift to Graphical Mode.


Kindly advice me what to do.


Thanks


Rajeev Sharma
rajb3...@gmail.com
rajb3...@rediffmail.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


Better read this: http://www.freebsd.org/doc/en/books/handbook/x11.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: C programming question

2009-04-08 Thread Frank Shute
On Tue, Apr 07, 2009 at 11:41:54AM +0200, Valentin Bud wrote:

 Hello community,
 
  I have built with a micro controller a system of power plugs that
  can be controlled through the serial port.  I have 2 plugs that i
  can start/stop and check the status of them. This is accomplished
  by sending different letters (eg. A/W) to start/stop one of the
  plugs and another set of letter for the other plug and one letter
  to check the status.
 
  Taking into account the fact that my C skills are almost 0 how
  complicated would be to write a program so I can control that micro
  controller through the serial port. Or is there some kind of
  program that can read/write from/to the serial port from the
  command line. I don't want an interactive program like minicom,
  just a program that connects and send a command (a letter in my
  case) to the serial port.
 
  Why not minicom (or any other program like it)? My goal is to be
  able to start/stop the plugs using a web interface.  I have tried
  using minicom and background it but when i log out minicom closes.
  If minicom is started i can send commands to ttyd0 with echo, but i
  can't read anything from serial.
 
  Now back to my original question, how hard/complicated will it be
  to write a C program to control the micro controller through the
  serial port.
 
  Of course on FreeBSD :).
 

About 10 years ago I adapted a a C program that was used to control a
board (which basically had a chip and a thermocouple on it) via the
serial port.

IIRC, the C was relatively simple but if you're a total beginner then
it would be hard without cribbing code off the 'net.

If you want to learn C then go for it but if you don't you'd be better
off using one of the scripting languages: perl, python, ruby etc. and
your development time will be much reduced.

Also they all have facilities for easily converting your program to
use the CGI so that you can webify the control and I'm sure they all
have some module for using a serial port (comms/p5-Device-SerialPort
in ports for perl).

Have fun!

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: Copying files without scp

2009-04-08 Thread A. Wright

On Tue, 7 Apr 2009, Steve Bertrand wrote:


Can someone recommend a *known good* production quality copy mechanism
that will act like scp, but without the overhead? rsh? nc?


If you are happy with rsh authentication, then have you looked at
plain old rcp?

A.

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


BREAK_TO_DEBUGGER in VNC-client

2009-04-08 Thread pluknet
Hi, folks.

Is there any VNC-client able to throw ctrl-alt-esc event
in order to break to debugger?

I need this feature to control a guest FreeBSD which
console is exported via VNC.

Thanks.

-- 
wbr,
pluknet
___
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: Multiple instances of MySQL

2009-04-08 Thread Mel Flynn
On Tuesday 07 April 2009 14:55:26 DAve wrote:

  However, I would suggest that you provide, as you suggest, a separate
  instance of mysql just for this client as well.  If they screw up the
  instance they won't affect other customers.  To run a separate instance,
  I would suggest using different names for the binaries, conf files and
  datadir.  This can be easily done using symlinks; e.g. mysql and
  mysql-special.  Then copy the startup script in /usr/local/etc/rc.d/,
  rename it to mysql-special and edit it to change all references to the
  newly-named instance.  Use a my-special.cnf file for the special
  instance and reference it in /etc/rc.conf using mysql_args=.

 Thanks, looks like it would be doable. I do plan to use a separate
 my.cnf, separate logging, and even a seperate mysql DB. I was going to
 share the binaries but I may rethink that decision after your suggestion.

Any reason a jail can't be used? This would allow sharing the binary using 
null or union fs, little overhead, yet seperated from host install and no 
maintenance of port installed files, like rc.d/mysql-server.
-- 
Mel
___
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 to Graphical Mode from DOS Mode

2009-04-08 Thread Chris Rees
2009/4/8 Wojciech Puchar woj...@wojtek.tensor.gdynia.pl:
     I have successfully downloaded FreeBSD 6.4 Release linux  installed
 on my PC.  But it starts in DOS Mode.

 how you started FreeBSD in DOS mode? i would like to do so as i sometimes
 need to run DOS programs, but i have to boot DOS or use slow dosbox.

 tell me - it's interesting.
 ___

Pretty sure he meant virtual terminal mode, where all you get is
command prompts. There is no DOS mode, but there is a port;
emulators/bochs that one can install DOS into.

Chris

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in 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: C programming question

2009-04-08 Thread Valentin Bud
On Wed, Apr 8, 2009 at 12:52 PM, Konrad Heuer kheu...@gwdg.de wrote:


 On Wed, 8 Apr 2009, Frank Shute wrote:

  On Tue, Apr 07, 2009 at 11:41:54AM +0200, Valentin Bud wrote:


 Hello community,

  I have built with a micro controller a system of power plugs that
  can be controlled through the serial port.  I have 2 plugs that i
  can start/stop and check the status of them. This is accomplished
  by sending different letters (eg. A/W) to start/stop one of the
  plugs and another set of letter for the other plug and one letter
  to check the status.

  Taking into account the fact that my C skills are almost 0 how
  complicated would be to write a program so I can control that micro
  controller through the serial port. Or is there some kind of
  program that can read/write from/to the serial port from the
  command line. I don't want an interactive program like minicom,
  just a program that connects and send a command (a letter in my
  case) to the serial port.

  Why not minicom (or any other program like it)? My goal is to be
  able to start/stop the plugs using a web interface.  I have tried
  using minicom and background it but when i log out minicom closes.
  If minicom is started i can send commands to ttyd0 with echo, but i
  can't read anything from serial.

  Now back to my original question, how hard/complicated will it be
  to write a C program to control the micro controller through the
  serial port.

  Of course on FreeBSD :).


 About 10 years ago I adapted a a C program that was used to control a
 board (which basically had a chip and a thermocouple on it) via the
 serial port.

 IIRC, the C was relatively simple but if you're a total beginner then
 it would be hard without cribbing code off the 'net.

 If you want to learn C then go for it but if you don't you'd be better
 off using one of the scripting languages: perl, python, ruby etc. and
 your development time will be much reduced.

 Also they all have facilities for easily converting your program to
 use the CGI so that you can webify the control and I'm sure they all
 have some module for using a serial port (comms/p5-Device-SerialPort
 in ports for perl).


 Please find a program of mine attached; it was used to communicate with a
 card reader connected via serial port. Maybe it will help you a little bit
 although you don't need all the stuff.

 Best regards

 Konrad Heuer
 GWDG, Am Fassberg, 37077 Goettingen, Germany, kheu...@gwdg.de


Thanks everybody for the heads up. I don't know (yet) which path i am going
to take. I know a little bit of perl so i guess i'll start reading on how
can i accomplish my goal with perl.

thanks,
v


-- 
network warrior since 2005
___
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 to Graphical Mode from DOS Mode

2009-04-08 Thread Wojciech Puchar

how you started FreeBSD in DOS mode? i would like to do so as i sometimes
need to run DOS programs, but i have to boot DOS or use slow dosbox.

tell me - it's interesting.
___


Pretty sure he meant virtual terminal mode, where all you get is


so he should first learn about unix more. reading FreeBSD handbook is more 
than enough.


It's NOT DOS, and NOT WINDOWS


command prompts. There is no DOS mode, but there is a port;
emulators/bochs that one can install DOS into.

and dosbox - a bit faster but still emulation
___
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 to Graphical Mode from DOS Mode

2009-04-08 Thread Chris Rees
Quoting from earlier:

2009/4/8 Fernando Apesteguía fernando.apesteg...@gmail.com:
 On 4/8/09, Rajeev Sharma rajb3...@gmail.com wrote:
 Sir,
      I have successfully downloaded FreeBSD 6.4 Release linux  installed

 FreeBSD is _not_ linux ;)

 on my PC.  But it starts in DOS Mode.

 aka Console mode.


 I want to shift to Graphical Mode.

 Once you log in, (use your login name and password), and assuming you
 installed some graphical environment, try to type:

 startx

 Cheers



 Kindly advice me what to do.



Wojciech wrote:

 so he should first learn about unix more. reading FreeBSD handbook is more 
 than enough.

Really, this has already been said. Try to read the whole thread
rather than the first post. It's much easier to follow emails if you
turn off digest mode and just accept each email individually, using a
threading client... This also makes misunderstanding and repetition
leading to embarrassment less likely.

Chris

-- 
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in 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: C programming question

2009-04-08 Thread William Gordon Rutherdale

Valentin Bud wrote:

Thanks everybody for the heads up. I don't know (yet) which path i am going
to take. I know a little bit of perl so i guess i'll start reading on how
can i accomplish my goal with perl.

thanks,
v
  
I've been programming for a very long time, and I can tell you that both 
Perl and C/C++ have done me very well.


The centre of gravity keeps shifting in software, but most of the 
scripting languages, and the libraries they depend on, are written in 
C.  Installing most packages from scratch usually depends on having a C 
compiler around and knowing how to use it.  The fundamental system 
interfaces in all forms of Unix are written in and for C.  There are 
always jobs out there requiring knowledge of C, especially in embedded 
programming.


I would suggest that you can't go wrong taking the C path, and you would 
probably do well trying it in Perl too.


-Will

___
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


mysql memory

2009-04-08 Thread Valentin Bud
Hello community,

 I have mysql installed on FreeBSD 7.0 i386. I am using mysqltuner.pl from
ports
to check for tuning parameters. Now my problem, sort of speak, is that
mysqltuner.pl
shows the following:
[OK] Maximum possible memory usage: 1.6G (53% of installed RAM)

 So as far as i understand mysql is limited to using max 1.6G of RAM. But
top
shows different things
PID USERNAME  THR PRI NICE   SIZERES   STATE  C   TIMEWCPU COMMAND
68083 mysql   18  440   2901M  1927M ucond   3   608:36
1.07%  mysqld

 Why is mysql using more memory than showed in mysqltuner. Is mysqltuner
inaccurate?

 Mysql is used for storing fulltext obtained throuhg OCR from different
documents. Is there a way
to make a chart on how much memory is needed for a given number of pages or
documents?

thanks,
v
-- 
network warrior since 2005
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: make, list and M pattern

2009-04-08 Thread Boris Samorodov
On Wed, 08 Apr 2009 00:09:43 +0300 Giorgos Keramidas wrote:
 On Tue, 07 Apr 2009 23:54:13 +0400, Boris Samorodov b...@ipt.ru wrote:
 
  I need to create a list with some valid values and check an input
  value. Should this makefile work?
 
  -
  LIST=f8 f9
 
  all:
  @echo USE_LINUX=${USE_LINUX}, LIST=${LIST}
  .if empty(LIST:M${USE_LINUX})
  @echo The value is invalid
  .else
  @echo The value is valid
  .endif
  -
  % make USE_LINUX=f8
  USE_LINUX=f8, LIST=f8 f9
  The value is invalid
  -

 Hi Boris! :)

Hi Giorgos, Mel and list!

 This is not exactly what you asked for, but you can probably loop
 instead of trying to match regular expressions:

   keram...@kobe:/tmp$ cat -n Makefile
1  LIST= f8 f9
2  USE_LINUX?= f9
3
4  LINUX_VERSION= ${USE_LINUX:C/[ ]*([^ ]*)[ ]*/\1/}
5
6  .if defined(USE_LINUX)
7  .for item in ${LIST}
8  .if ${USE_LINUX} == ${item}
9  RESULT= ${item}
   10  .endif
   11  .endfor
   12  .endif
   13
   14  all:
   15  .if empty(RESULT)
   16  @echo Version ${LINUX_VERSION} is not valid.
   17  .else
   18  @echo Valid version ${RESULT} selected.
   19  .endif
   keram...@kobe:/tmp$ make
   Valid version f9 selected.
   keram...@kobe:/tmp$ make -e USE_LINUX=f10
   Version f10 is not valid.
   keram...@kobe:/tmp$

Hm, And what if I need to compare two lists and detect if they
have any common items?

VALID_LIST=f8 f9
INPUT_LIST=f6 f7 f8

Nested .for loops are not helpful since .if statement is not
useful here:
.for x in ${VALID_LIST}
. for y in ${INPUT_LIST}
.  if $x == $y   --  make error here


Thanks!


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone  Internet SP
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve
___
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: Copying files without scp

2009-04-08 Thread Lowell Gilbert
Steve Bertrand st...@ibctech.ca writes:

 To copy data from one server, I normally (always) use scp.

 I'm looking for a method to perform this copy task without the overhead
 of encryption for infrequent, high-volume transfers (hundreds to
 thousands of GB).

 The data will be transferred server-to-server within a private datacentre.

 Can someone recommend a *known good* production quality copy mechanism
 that will act like scp, but without the overhead? rsh? nc?

 I recall a thread not too long ago regarding this, but I'd like to have
 a simple working example if possible, without getting into detail why
 one shouldn't transfer data unencrypted.

I haven't hit a case in years where the encryption overhead was actually
measurable as a significant issue.  Still, anything you can do over ssh
can be done just as well over rsh.  There's always rcp if you want the
same syntax as scp, but if the data consists of a lot of different
files, using tar on both ends of a pipe will probably be much faster.

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


Re: Change to Graphical Mode from DOS Mode

2009-04-08 Thread Wojciech Puchar

 I have successfully downloaded FreeBSD 6.4 Release linux  installed
on my PC.  But it starts in DOS Mode.


how you started FreeBSD in DOS mode? i would like to do so as i sometimes 
need to run DOS programs, but i have to boot DOS or use slow dosbox.


tell me - it's interesting.
___
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: mysql memory

2009-04-08 Thread William Gordon Rutherdale
I think 'top' is showing the external view of the process and how many 
pages total of heap have been allocated (under 'RES').  Possibly your 
tuner program is just showing the size of the cache specifically.


-Will

Valentin Bud wrote:

Hello community,

 I have mysql installed on FreeBSD 7.0 i386. I am using mysqltuner.pl from
ports
to check for tuning parameters. Now my problem, sort of speak, is that
mysqltuner.pl
shows the following:
[OK] Maximum possible memory usage: 1.6G (53% of installed RAM)

 So as far as i understand mysql is limited to using max 1.6G of RAM. But
top
shows different things
PID USERNAME  THR PRI NICE   SIZERES   STATE  C   TIMEWCPU COMMAND
68083 mysql   18  440   2901M  1927M ucond   3   608:36
1.07%  mysqld

 Why is mysql using more memory than showed in mysqltuner. Is mysqltuner
inaccurate?

 Mysql is used for storing fulltext obtained throuhg OCR from different
documents. Is there a way
to make a chart on how much memory is needed for a given number of pages or
documents?

thanks,
v
  


___
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


firefox3 with high latencies when acting with mouse or keyboard and graphics refresh

2009-04-08 Thread O. Hartmann

Hello,
got a problem since yesterday after having done a lot of updates 
(ports): on all of my FreeBSD 8.0-CURRENT/amd64 boxes firefox does have 
enormous high latencies when typing in or moving the mouse or popping up 
the window icon or down. Since this happens on all of 8.0-CUR/amd boxes, 
I guess it has something to do with an upgrade of the ports.


I reinstalled firefox twice, but without success, so I want to ask for 
some hints..


Regards,
Oliver
___
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: bsnmpd

2009-04-08 Thread Festin Alexander
В Mon, 6 Apr 2009 16:08:32 -0400
alexus ale...@gmail.com пишет:

 On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin
 claudiu.vas...@gmail.com wrote:
  All out of ideas. try with a script...maybe, i dnt know.
 
 
 I understand there is always that way, but I'd like to figure out the
 proper way
 

How about to put some echo or logger into /etc/rc.d/bsnmpd for
tracing script? 

I use bsnmpd and have no troubles.
___
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


Three little question.

2009-04-08 Thread makefile

Every time I run make fetch-recursive,it fetched all the dependence 
packages.Not only the package I need to compile.
For example,in the /usr/ports/x11-drivers/xf86-video-intel,I run make 
fetch-recursive,it will download glib,but I alreaday have glib installed.Is 
there another command can solve my problem?

I installed gnome2-lite,but I don't think it is small enough.I don't need 
file-roller,epiphany,totem...How should I do?Gnome2-lite depend on them.

I am installing gnome2-lite under 7.2-BETA1 now.When compiling 
ghostscript-8.64,an error comes.
gmake[1]: *** [bin/../sobin/libgs.so.8.64] Error 1
How to solve this?I can not install gnome2-lite,then I can not get into the X 
environment.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


geli on exisitng laptop

2009-04-08 Thread new_guy

Hi guys,

I'd like to use geli to whole disk encrypt a FreeBSD 7.1 laptop I already
have setup. The laptop is up and working fine and I don't want to screw it
up. It have the default partition layout. I've already used geli to encrypt
the swap partition. 

The default partitioning at install creates / /tmp /usr and /var. I thought
I would start with /tmp as I should be able to fix that if I mess up. 

Some questions...

1. Will each partition have to be mounted with a password?
2. What's the most straight-forward way to go about this without screwing
up?

I already have the eli module loaded in the /boot/loader.conf so I won't
need to re-compile, etc.

Thanks


-- 
View this message in context: 
http://www.nabble.com/geli-on-exisitng-laptop-tp22951183p22951183.html
Sent from the freebsd-questions mailing list archive at Nabble.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: bsnmpd

2009-04-08 Thread alexus
2009/4/8 Festin Alexander fes...@sakha.net:
 В Mon, 6 Apr 2009 16:08:32 -0400
 alexus ale...@gmail.com пишет:

 On Mon, Apr 6, 2009 at 3:38 PM, Vasadi I. Claudiu Florin
 claudiu.vas...@gmail.com wrote:
  All out of ideas. try with a script...maybe, i dnt know.
 

 I understand there is always that way, but I'd like to figure out the
 proper way


 How about to put some echo or logger into /etc/rc.d/bsnmpd for
 tracing script?

 I use bsnmpd and have no troubles.

have you used it inside of jail? or in host environment? as i
mentioned earlier it works fine in host, but not in jail...


 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




-- 
http://alexus.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: Copying files without scp

2009-04-08 Thread Oliver Fromme
Steve Bertrand wrote:
  To copy data from one server, I normally (always) use scp.
  
  I'm looking for a method to perform this copy task without the overhead
  of encryption for infrequent, high-volume transfers (hundreds to
  thousands of GB).
  
  The data will be transferred server-to-server within a private datacentre.

There are quite a lot of ways to do that.

You could NFS-export then files and then use a tool to copy
them on the other box locally (tar, cpio, cpdup, whatever).

You could run an FTP server and then use one of the various
FTP mirror tools to copy the files (e.g. ports/ftp/omi).

You could use plain old rcp.

You could apply this (trivial) patch that adds support for
cipher none in ssh and scp:

http://www.secnetix.de/olli/FreeBSD/patches/openssh-cipher-none

The advantage of using scp (with -c none) is that you can
use all of the ssh features, such as key authentication,
server aliases (via ~/.ssh/config) etc.  You can also use
other file copy tools (such as cpdup) that can be tunneled
through ssh.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

IRIX is about as stable as a one-legged drunk with hypothermia
in a four-hundred mile per hour wind, balancing on a banana
peel on a greased cookie sheet -- when someone throws him an
elephant with bad breath and a worse temper.
-- Ralf Hildebrandt
___
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: powerd

2009-04-08 Thread Oliver Fromme
David Collins wrote:
  viper:~$ sudo powerd
  powerd: lookup freq: No such file or directory
  
  I also have the following
  
  viper:~$ sysctl dev.cpu
  dev.cpu.0.%desc: ACPI CPU
  dev.cpu.0.%driver: cpu
  dev.cpu.0.%location: handle=\_PR_.CPU_
  dev.cpu.0.%pnpinfo: _HID=none _UID=0
  dev.cpu.0.%parent: acpi0
  dev.cpu.0.cx_supported: C1/0
  dev.cpu.0.cx_lowest: C1
  dev.cpu.0.cx_usage: 100.00%
  dev.cpu.1.%desc: ACPI CPU
  dev.cpu.1.%driver: cpu
  dev.cpu.1.%location: handle=\_PR_.CPU1
  dev.cpu.1.%pnpinfo: _HID=none _UID=0
  dev.cpu.1.%parent: acpi0
  dev.cpu.1.cx_supported: C1/0
  dev.cpu.1.cx_lowest: C1
  dev.cpu.1.cx_usage: 100.00%

Frequency control is not supported in your case.  You must
have dev.cpu.0.freq and so on.  What kind of processor do
you have?  Does it support powernow, cool'n'quiet or
similar features?

Also, make sure that you have device cpufreq in your
kernel configuration.  If you don't have it, try to load
the module:  kldload cpufreq

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

It's trivial to make fun of Microsoft products,
but it takes a real man to make them work,
and a God to make them do anything useful.
___
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: Copying files without scp

2009-04-08 Thread Wojciech Puchar


To copy data from one server, I normally (always) use scp.



man rcp
___
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: powerd

2009-04-08 Thread David Collins
 Frequency control is not supported in your case.  You must
 have dev.cpu.0.freq and so on.  What kind of processor do
 you have?  Does it support powernow, cool'n'quiet or
 similar features?

CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0x673  Stepping = 3
  
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE


 Also, make sure that you have device cpufreq
 kernel configuration.  If you don't have it, try to load
 the module:  kldload cpufreq

I have device cpufreq in the kernel conf and I loaded/unloaded it separately.
___
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: powerd

2009-04-08 Thread Oliver Fromme
David Collins davidcollins...@gmail.com wrote:
   Frequency control is not supported in your case.  You must
   have dev.cpu.0.freq and so on.  What kind of processor do
   you have?  Does it support powernow, cool'n'quiet or
   similar features?
  
  CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU)
Origin = GenuineIntel  Id = 0x673  Stepping = 3

  Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE

I'm afraid this one does not support CPU frequency control.

Best regards
   Oliver

-- 
Oliver Fromme, secnetix GmbH  Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606,  Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758,  Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart

FreeBSD-Dienstleistungen, -Produkte und mehr:  http://www.secnetix.de/bsd

I invented Ctrl-Alt-Delete, but Bill Gates made it famous.
-- David Bradley, original IBM PC design team
___
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: powerd

2009-04-08 Thread Erik Trulsson
On Wed, Apr 08, 2009 at 04:37:35PM +0100, David Collins wrote:
  Frequency control is not supported in your case.  You must
  have dev.cpu.0.freq and so on.  What kind of processor do
  you have?  Does it support powernow, cool'n'quiet or
  similar features?
 
 CPU: Pentium III/Pentium III Xeon/Celeron (501.14-MHz 686-class CPU)
   Origin = GenuineIntel  Id = 0x673  Stepping = 3
   
 Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE


AFAIK that processor does not support changing frequency or voltage on the fly.

You will not be able to get powerd to do anything useful with that CPU.



 
 
  Also, make sure that you have device cpufreq
  kernel configuration.  If you don't have it, try to load
  the module:  kldload cpufreq
 
 I have device cpufreq in the kernel conf and I loaded/unloaded it separately.
 ___
 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

-- 
Insert your favourite quote here.
Erik Trulsson
ertr1...@student.uu.se
___
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: powerd

2009-04-08 Thread Vasadi I. Claudiu Florin


AFAIK that processor does not support changing frequency or voltage on  
the fly.


Your right, I also had one of those CPU. Only thig you can do is OC from  
BIOS. I managed to OC it at a 566 MHz stable rate; also managed to have a  
near 600 MHz (589 MHz) experience but was unstable as hell.

___
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


ZFS Question

2009-04-08 Thread Amaru Netapshaak

Hello,

I am interested in using something like ZFS for its distributed nature. I run a 
file server
with samba acting as a PDC. I also run a second server as a BDC.  What I would
like is a method for keeping both servers shared data drives in sync when 
both the
PDC and BDC are running. 

I am currently doing an incremental update twice daily to the BDC using rsync 
over
SSH.  It works, but its just not good enough.. if the PDC goes down, anything 
created
or altered after midnight or so, isnt propagated to the BDC. 

I understand I can use ZFS to accomplish this easily.. but from what I've read, 
you still
need to manually push updates to the backup server over ssh via cron.  So I 
would still
have windows of time where the file systems would not be in sync..  am I 
heading in the
wrong direction here? I am beginning to think I am.. 

I've been afraid of NFS for some time.. remembering back to the days when it 
was just
not safe to use NFS.  I may have carried that fear on irrationally.. is NFS a 
viable 
solution to my problem these days?  

Thanks for the advice!

+-+ AMARU




___
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: ZFS Question

2009-04-08 Thread Julien Cigar
On Wed, 2009-04-08 at 08:57 -0700, Amaru Netapshaak wrote:
 Hello,
 
 I am interested in using something like ZFS for its distributed nature. I run 
 a file server
 with samba acting as a PDC. I also run a second server as a BDC.  What I would
 like is a method for keeping both servers shared data drives in sync when 
 both the
 PDC and BDC are running. 
 
 I am currently doing an incremental update twice daily to the BDC using rsync 
 over
 SSH.  It works, but its just not good enough.. if the PDC goes down, anything 
 created
 or altered after midnight or so, isnt propagated to the BDC. 
 
 I understand I can use ZFS to accomplish this easily.. but from what I've 
 read, you still
 need to manually push updates to the backup server over ssh via cron.  So I 
 would still
 have windows of time where the file systems would not be in sync..  am I 
 heading in the
 wrong direction here? I am beginning to think I am.. 
 
 I've been afraid of NFS for some time.. remembering back to the days when it 
 was just
 not safe to use NFS.  I may have carried that fear on irrationally.. is NFS a 
 viable 
 solution to my problem these days?  
 
 Thanks for the advice!
 

you could use ggated/ggatec together with gmirror

 +-+ AMARU
 
 
 
   
 ___
 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
-- 
Julien Cigar
Belgian Biodiversity Platform
http://www.biodiversity.be
Université Libre de Bruxelles (ULB)
Campus de la Plaine CP 257
Bâtiment NO, Bureau 4 N4 115C (Niveau 4)
Boulevard du Triomphe, entrée ULB 2
B-1050 Bruxelles
Mail: jci...@ulb.ac.be
@biobel: http://biobel.biodiversity.be/person/show/471
Tel : 02 650 57 52

___
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: Three little question.

2009-04-08 Thread RW
On Wed, 8 Apr 2009 21:55:44 +0800 (CST)
makefile makef...@yeah.net wrote:

 
 Every time I run make fetch-recursive,it fetched all the dependence
 packages.Not only the package I need to compile. For example,in
 the /usr/ports/x11-drivers/xf86-video-intel,I run make
 fetch-recursive,it will download glib,but I alreaday have glib
 installed.Is there another command can solve my problem?

Then leave off the -recursive part, although actually the targets you
really need are checksum[-recursive] not  fetch[-recursive].

It's good practice to leave the files in the distfile directory and
clean it with portsclean -D, then you don't have to download them
again. Ports often need to be rebuilt with the same distfile.

 I installed gnome2-lite,but I don't think it is small enough.I don't
 need file-roller,epiphany,totem...How should I do?Gnome2-lite
 depend on them.

gnome2-lite is just a metaport, so you could just delete it and install
just the ports you want. 
___
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: geli on exisitng laptop

2009-04-08 Thread Geoff Fritz
On Wed, Apr 08, 2009 at 07:06:27AM -0700, new_guy wrote:
 
 Hi guys,
 
 I'd like to use geli to whole disk encrypt a FreeBSD 7.1 laptop I already
 have setup. The laptop is up and working fine and I don't want to screw it
 up. It have the default partition layout. I've already used geli to encrypt
 the swap partition. 
 
 The default partitioning at install creates / /tmp /usr and /var. I thought
 I would start with /tmp as I should be able to fix that if I mess up. 
 
 Some questions...
 
 1. Will each partition have to be mounted with a password?

If you plan on converting existing partitions to geli-backed, then each
one will require its own initialization.  It's up to you on whether or not
you wish to use the same password/keyfile -- or different ones -- for each.

I personally experiment with geli all the time, and for convenience, I have
my primary drive prompt for a passord at boot time.  Under my encrypted drive,
I use key files without password to mount other devices.

From my rc.conf file:
geli_devices=ad3
geli_ad3_flags=-p -k /etc/geli/ad3.key
geli_ad3_autodetach=NO

(then the appropriate entry for ad3.eli in my fstab)

This would probably be unnacceptable to those who wear tin-foil hats and
think the NSA is out to get them, but it sure beats typing in a high-entropy
password for each and every device/partition in your system.

One potential gotchya: If you your primary device gets hosed (hardware failure,
lost password, corruption), then you won't be able to access the other devices
since you can't get access to your keys.  I *strongly* suggest that you back
up your key file(s) -- I keep 2, one on the USB stick that I use to boot my
machine, and one on a webmail account (both gpg-encrypted, of course).

Don't forget to encrypt swap (described in the handbook, I think).

 2. What's the most straight-forward way to go about this without screwing
 up?

For someone new to this, it would be far easier to start from scratch.
However, in your case, I suggest that you free up a partition to start with
(/tmp comes to mind here).  Experiment with a few geli init incantations
in order to get it to prompt for a password at boot time, and then mount the
device.  Mount it under something like /root2 or /newroot.  Then, copy your
entire content of / over to the new mountpoint (use tar or rsync, and don't
forget to exclude other devices).

Once you have that mounting at boot and synced up, you can change the /
entry in your current /etc/fstab (make sure the new fstab is correct for
the new mounts, too).

You system will start booting, and you'll be prompted for a password to
unlock the new encrypted device.  Then, it'll mount / (the new encrytped
device), and once that happens, the old / will be essentially ignored
since the new one will be mounted over it, so the new fstab and directory
structure will assume control.

Once that is working, you can migrate other partitions over, one at a time,
until all required devices are encrypted.  If you don't want to be prompted
for passwords for these other devices, you should use keys instead of
passwords and use the rc.conf method I mentioned above.

Personally, I'd add a 2nd drive, encrypt it wholesale (ad0.eli), then
partition that device in whatever way you wish (/dev/ad0.elia,
/dev/ad0.elib, etc. by way of bsdlabel -w ad0.eli ; bsdlabel -e ad0.eli).
Then mount those partitions under a /newroot tree, then rsync your entire
filesystem tree over to that, then switch your fstab to point to the new root.
(again, don't forget to correctly edit the *new* fstab after you sync, or
you'l be hating life as you try to fix the mess from the boot loader prompt
or a recovery disk).

Moving everything back to your newly-encrypted old drive will be more
difficult.

I cut my geli teeth on the following docs:
http://nullpointer.dk/2007/06/05/encrypting-a-freebsd-system-using-geli/
http://events.ccc.de/congress/2005/fahrplan/attachments/586-paper_Complete_Hard_Disk_Encryption.pdf

There appear to be quite a few more decent tutorials online these days.
Just google freebsd geli encryption.

The good news is that many of the methods used for crypto (loading modules from
/boot/loader.conf) can be applied to things having gjournal or ZFS running
on your root device.  In fact, I've run ZFS over geli, and I currently use
gjournal over geli.  Both work very well.

Good luck.

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


Re: Change to Graphical Mode from DOS Mode

2009-04-08 Thread Polytropon
On Wed, 8 Apr 2009 10:19:26 +0200, Fernando Apesteguía 
fernando.apesteg...@gmail.com wrote:
 FreeBSD is _not_ linux ;)

You're right. A german computer magazine wrote that
FreeBSD is the better Linux. :-)



  on my PC.  But it starts in DOS Mode.
 
 aka Console mode.

There is no DOS mode in FreeBSD. Console mode is
correct, as well as text mode or even terminal mode
(last one not used very often).



 Once you log in, (use your login name and password), and assuming you
 installed some graphical environment, try to type:
 
 startx

Or follow the handbook according to how to install KDE
or Gnome which provide the usual means for a full-featured
graphical environment.

(At this point, I can really recommend reading FreeBSD's
excellent documentation in the handbook and in its FAQ,
to be found on the main web 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: Change to Graphical Mode from DOS Mode

2009-04-08 Thread Polytropon
On Wed, 8 Apr 2009 13:40:18 +0200 (CEST), Wojciech Puchar 
woj...@wojtek.tensor.gdynia.pl wrote:
 so he should first learn about unix more.

At least to avoid misunderstandings due to wrong terminology.
We UNIX guys are usually smart enough to know what DOS
mode refers to, but without correction such a behaviour
(accepting it without mentioning that it's plain wrong)
will stengthen the belief that there's a DOS mode in
FreeBSD, or that every text mode interface is called DOS
mode.

When I switched on my modem, it only resets in TSO mode.
I want CDE mode, what should I do? :-)

Depending on what environment some user comes from, the
terminology chosen may vary. Some words are more advanced
than others, but still wrong.



 reading FreeBSD handbook is more 
 than enough.

I agree, FreeBSD's excellent documentation gives a very good
step-by-step introduction about how to solve this particula
problem (and others, too). It isn't that hard to find.



 It's NOT DOS, and NOT WINDOWS

I'm glad it's not.




-- 
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: low-level format before install?

2009-04-08 Thread Geoff Fritz
On Tue, Apr 07, 2009 at 05:41:27PM -0400, John Almberg wrote:
 Thanks for all the tips. At least I have something to start with.
 
 The guys in the data center reinstalled FreeBSD (the filesystem was  
 totally corrupted again), and then ran what they called SMART test,  
 which might be smartctl, and said the hard drives look good.
 
 I am now able to get back in.
 
 So the system ran fine until I put a load on it with the database  
 (many transactions a second). This corrupted the file system again.
 
 So I guess I need to load it enough to produce error messages  
 (hopefully) but not enough to destroy the file system again.

I've had issues with a few hosted servers, and more often than not, it was
a bad PSU on the server and/or rack.

Assuming that you can't get these folks to run a good hardware diag for
you, there are a few things you can do.  You can beat up the RAM/cpu with
various burn-in programs (I like benchmarks/stream for its simplicity --
you'll need to make extract, customize, then ,make install for your own
memory size).  You can thrash the disks pretty well with either dd or
badblocks from sysutils/e2fsprogs, both can be non-destructive.

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


Re: geli on exisitng laptop

2009-04-08 Thread Matthew Seaman

new_guy wrote:

Hi guys,

I'd like to use geli to whole disk encrypt a FreeBSD 7.1 laptop I already
have setup. The laptop is up and working fine and I don't want to screw it
up. It have the default partition layout. I've already used geli to encrypt
the swap partition. 


The default partitioning at install creates / /tmp /usr and /var. I thought
I would start with /tmp as I should be able to fix that if I mess up. 


Some questions...

1. Will each partition have to be mounted with a password?
2. What's the most straight-forward way to go about this without screwing
up?

I already have the eli module loaded in the /boot/loader.conf so I won't
need to re-compile, etc.



To convert a partition to geli requires you to wipe out all the contents,
scribble over the partition with random data to get rid of any remnants of
the unencrypted content, set up the encryption keys and then rebuild the file
system and recover the data from backup.

Yes, you will need to supply some sort of secret value to retrieve the 
encrypted disk contents.  This is usually configured to mean typing in a

passphrase at the time the partition is mounted, although it is also possible
to store crypto keys on a removable medium such as  USB key -- you don't 
necessarily have to use a pass phrase in that case, although it's a good idea

for the most effective security.  Once the partition is mounted, you should be
able to take the key out and put it in a safe place and still keep running.

Depending on your requirements you can encrypt the whole drive -- which while
highly secure requires you to have crypto keys etc. on a removable medium and
is a little tricky to get working properly -- or you can create a small
unencrypted partition which should contain the kernel and necessary crypto bits
(ie. the contents of /boot at a minimum) and then encrypt things partition by 
partition.  You will have to type in a pass phrase to mount each different
encrypted partition -- to prevent this becoming too onerous, consider using a
'one big partition' layout.

Also note that you should encrypt the swap partition, or someone coming into
possession of the laptop may be trivially able to recover secret data from it:
this is pretty automated and can be achieved by simply editing /etc/fstab to
change the mount device to eg. /dev/ad0s1b.eli and rebooting -- an ephemeral
key is used, so no typing passphrases is required in this instance.  Setting up
a swap-backed tmpmfs will then then give you an encrypted /tmp too.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: firefox3 with high latencies when acting with mouse or keyboard and graphics refresh

2009-04-08 Thread Jeff Laine
On Wed, Apr 08, 2009 at 01:42:56PM +, O. Hartmann wrote:
 Hello,
 got a problem since yesterday after having done a lot of updates 
 (ports): on all of my FreeBSD 8.0-CURRENT/amd64 boxes firefox does have 
 enormous high latencies when typing in or moving the mouse or popping up 
 the window icon or down. Since this happens on all of 8.0-CUR/amd boxes, 
 I guess it has something to do with an upgrade of the ports.
 
 I reinstalled firefox twice, but without success, so I want to ask for 
 some hints..
 
 Regards,
 Oliver


It is unlikely your case, but I've had similar issues with firefox on my laptop 
with intel video under 7.2-PRERELEASE.
Setting video driver option AccelMethod to old XAA mode in xorg.conf helped a 
lot.




-- 
Best regards,
Jeff

| Nobody wants to say how this works.  |
|  Maybe nobody knows ...  |
|   Xorg.conf(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: geli on exisitng laptop

2009-04-08 Thread Roland Smith
On Wed, Apr 08, 2009 at 07:06:27AM -0700, new_guy wrote:
 
 Hi guys,
 
 I'd like to use geli to whole disk encrypt a FreeBSD 7.1 laptop I already
 have setup. The laptop is up and working fine and I don't want to screw it
 up. It have the default partition layout. I've already used geli to encrypt
 the swap partition. 
 
 The default partitioning at install creates / /tmp /usr and /var. I thought
 I would start with /tmp as I should be able to fix that if I mess up. 
 
 Some questions...
 
 1. Will each partition have to be mounted with a password?

You can use a password, a file containing a key or both. See
geli(8). The security of an encrypted partition relying solely on a key
from another partition is qeustionable at least.

 2. What's the most straight-forward way to go about this without screwing
 up?

You cannot encrypt the whole disk. You'll need an unencrypted /boot
partition to read the kernel from, and unencrypted boot sector.

Furthermore, you cannot encrypt a partition in place. You'll have to
move the data somewhere else, unmount the partition, encrypt it, newfs
it, attach and mount the encrypted partition and restore the data

Personally, I think there is little value or security in encrypting /
and /usr. There is really nothing secret there. One could even argue
that the well-known content of / might /usr might facilitate known
plaintext attacks! The only possible reason is to inconvenience a thief,
but one might argue that putting anything but windows on it accomplishes
that quite nicely. :-)

And if your laptop is not a powerhouse, using encryption is going to eat
CPU cycles.

My advice would be to put /home (where _your_ data resides) on a
seperate partition and encrypt only that partition, with a password.

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)


pgpQex37aCU1L.pgp
Description: PGP signature


Xorg and nvidia-driver-173 ABI

2009-04-08 Thread RW
I picked-up the most recent xorg update a couple of days ago, and
since then X has been failing to start with the binary nvidia driver,
and is leaving the following in Xorg.0.log:

  (EE) NVIDIA(0): This video driver ABI is not supported.
  (EE) NVIDIA(0): Use the -ignoreABI option to override this check.

-ignoreABI doesn't help.

I presume that nvidia will eventually fix this for the current driver,
but I'm using the legacy driver port x11/nvidia-driver-173. Is there any
prospect of the nvidia driver working again on my hardware?

If the answer is no, would the nv driver benefit from a switch from
i386 to amd64.  

___
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: geli on exisitng laptop

2009-04-08 Thread new_guy


Roland Smith wrote:
 
 My advice would be to put /home (where _your_ data resides) on a
 seperate partition and encrypt only that partition, with a password.
 

Thanks to everyone for the advice. I really do appreciate it. I like this
tip a lot. Since the default FreeBSD installer puts /home as a link to
/usr/home... could I just encrypt /usr and get the same result? I'm thinking
this would be the best way.

Thanks again for the Great tips!

-- 
View this message in context: 
http://www.nabble.com/geli-on-exisitng-laptop-tp22951183p22956085.html
Sent from the freebsd-questions mailing list archive at Nabble.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


recovering from a missing package database?

2009-04-08 Thread Mark Stosberg


-- 
 . . . . . . . . . . . . . . . . . . . . . . . . . . . 
   Mark StosbergPrincipal Developer  
   m...@summersault.com Summersault, LLC 
   765-939-9301 ext 202 database driven websites
 . . . . . http://www.summersault.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


Recovering loss of /var/db/pkg ?

2009-04-08 Thread Mark Stosberg

I'll just say it plainly:

/var/db/pkg is long gone and there is no backup. It was not copied to  
new a machine.

Is there is any hope of being able to use the ports or packages system in a
meangingful way again?

My sense is that some recovery is possible, but may be prohibitively expensive.

Thanks for any tips!

   Mark


___
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


getfib?

2009-04-08 Thread Peter Cornelius
Dear list,

Now, there, we've got setfib(1). Very well. But -- how do I figure out the FIB 
associated with a running process?

Thanks,

Peter.

---

[1] setfib(1), cf. 
http://www.freebsd.org/cgi/man.cgi?query=setfibsektion=1apropos=0manpath=FreeBSD+8-current
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01
___
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


sorta newb help compiling samba

2009-04-08 Thread Gary Gatten
Good afternoon,

 

I've been playing with various flavors of *nix off and on for almost
twenty years, but not doing much development the make process often
causes me issues - as is the case with samba.

 

I'm running freebsd 6.0.  I've tried installing three different versions
of samba from ports and none of them complete.  I downloaded the 3.3.3
port and tried to make it, but it fails as well with the error below:

 

libsmb/clikrb5.c: In function `krb5_set_real_time':

libsmb/clikrb5.c:132: error: dereferencing pointer to incomplete type

libsmb/clikrb5.c:133: error: dereferencing pointer to incomplete type

The following command failed:

cc -I. -I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source
-I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source/iniparser/src
-Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc
-I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H
-I/usr/local/include -Iinclude -I./include -I. -I. -I./lib/replace
-I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt
-I/usr/local/include -DLDAP_DEPRECATED -O2 -fno-strict-aliasing -pipe
-DLDAP_DEPRECATED -O -D_SAMBA_BUILD_=3
-I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source/lib
-D_SAMBA_BUILD_=3 -fPIC -DPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o

gmake: *** [libsmb/clikrb5.o] Error 1

*** Error code 2

 

Stop in /usr/ports/net/samba33/samba33.

*** Error code 1

 

Stop in /usr/ports/net/samba33/samba33.

 

I also search for a package but could not find.  Any advice would be
greatly appreciated.  Trying to integrate FreeRADIUS with AD and I'm
kinda stuck.

 

Thanks in advance!

 

Gary

 






font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
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: new package system proposal

2009-04-08 Thread Bob Johnson
On 4/8/09, Jonathan McKeown j.mcke...@ru.ac.za wrote:
 On Tuesday 07 April 2009 23:35:03 Bob Johnson wrote:
 On 4/4/09, Chris Whitehouse cwhi...@onetel.com wrote:
  Hi all

 [...]

  My suggestion is to start with a ports tree that is fixed in time. Make
  that ports tree available as part of this package system and compile a
  typical desktop set of ports, particularly choosing ones which are large
  or have many dependencies. When it is all complete release it and start
  again. Surely quite a wide selection of desktops, wm's and apps could be
  compiled in a couple of weeks?

 How is it an improvement over the existing tools? I must be missing
 something, because it sounds to me like you are merely asking that
 there be more ports made available as packages than are now offered.

 I think what you're missing is the suggestion to bundle a set of pre-built
 packages with a snapshot of the ports tree used to build them. Currently
 it's
 difficult to mix and match packages and ports because the versions of
 dependencies are likely to differ between the package and the local version
 of the ports tree. If you know you have the same ports tree your packages
 were built from, you can much more easily combine pre-built packages and
 local builds from source.

OK, I see now.


 This has clear advantages. At the moment, unless you're very lucky with your
 timing, you tend to find that as soon as you want to build one port from
 source (perhaps to fiddle with the configuration) you have to stop using
 prebuilt packages altogether.


I've not really had a lot of trouble with that, although it sometimes
causes problems. OK, with something big like KDE it causes problems.

 The drawback I can see is the disk space required to keep several
 generations
 of packages online - if the package-port bundle is rebuilt every three
 weeks,
 let's say, and you want to keep 6 months' worth of packages online, you need
 to keep 9 complete versions available.


I think a bigger drawback is the security issue. As soon as any
package in the collection has a significant announced security flaw,
you are faced with the choice of withdrawing the entire collection,
withdrawing only that package, or leaving the flawed package out there
for people to use because it is more convenient for them.

At the very least, it creates a management headache for whomever has
to make the decisions.

 Chris's suggestion is certainly more than just a request for more packages,
 though.


It seems to me that a great deal of what his suggestion would
accomplish would be accomplished by building a very extensive set of
packages once a week or so, so that it is easy to do binary updates of
anything that needs updating. For many, that should solve the bulk of
the problem. And because most ports don't change weekly, the
week-to-week changes shouldn't be unmanageably large.

That could also be a starting point for implementing his full
suggestion. Keeping around week-to-week deltas rather than an entire
collection would reduce the storage requirement substantially.

PC-BSD seems to already keep up-to-date binary packages of their
applications. Do they accomplish that by only offering a small subset
of the full ports collection?

-- 
-- Bob Johnson
   fbsdli...@gmail.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: Recovering loss of /var/db/pkg ?

2009-04-08 Thread Lowell Gilbert
Mark Stosberg m...@summersault.com writes:

 I'll just say it plainly:

 /var/db/pkg is long gone and there is no backup. It was not copied to  
 new a machine.

 Is there is any hope of being able to use the ports or packages system in a
 meangingful way again?

 My sense is that some recovery is possible, but may be prohibitively 
 expensive.

You can do a forced reinstall of all your ports, and you'll end up with
a repopulated ports database.  It will take a lot of clock time, but not
much human time.

It's not necessarily easy to figure out what all of the ports were, but
there are a number of choices.  If you can wipe out most of /usr/local
and rebuild the ports, you can reinstall everything you want, and the
database will be repopulated in the process.  That's the easiest
approach to understand, but involves considerable downtime.  Another
alternative would be to install all the ports to a non-standard PREFIX,
and use the results of that to tell you which ports need to be
reinstalled to the standard PREFIX.

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


Re: geli on exisitng laptop

2009-04-08 Thread Roland Smith
On Wed, Apr 08, 2009 at 10:48:31AM -0700, new_guy wrote:
 
 
 Roland Smith wrote:
  
  My advice would be to put /home (where _your_ data resides) on a
  seperate partition and encrypt only that partition, with a password.
 
 Thanks to everyone for the advice. I really do appreciate it. I like this
 tip a lot. Since the default FreeBSD installer puts /home as a link to
 /usr/home... could I just encrypt /usr and get the same result? I'm thinking
 this would be the best way.

You could do that. But since enabling encryption effectively destroys
the data on the old partition, you might as well split the old /usr into
/usr and /home while you're at it. On my workstation /usr fills about
5GB. So reserving 5-8GB for /usr should be plenty. An encrypted /usr
can be a PITA if you have to boot into single user mode for
maintenance. You'd have to attach and mount the geli device by hand,
instead of having the rc scripts automate it.

A word of warning: make sure you have good recent backups before
enabling encryption, in case it becomes FUBAR.

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)


pgpuCHJW02kGa.pgp
Description: PGP signature


[ fbsd_quest ] file_caching and hd caches

2009-04-08 Thread spellberg_robert

howdy, y'all ---

so, i was looking over the offerings of the on_line retailing usual suspects,
  when i got to thinking:

  q:  to what extent does freebsd cache recently_used hard_drive files ?

  q:  under freebsd, to what extent are
hard_drive internal_caches and their sizes [ e. g., 2mb, 8mb, 16mb ]
important ?



i am not so much looking for a history_ and theory_of_operation as
  i am looking for a yes/no to the question:

  q:  should i pay up for hd_cache, if the other hd parameters are the same ?



something else that i just thought up while typing this:

  q:  are hd internal_caches non_volatile ?

id est,

  q:  do the cache contents survive a power_cycle ?



[ some supplementary fyis:

yes, i am aware that
  hd access_times are a relative eternity to a chip_set's hd_port.

i am not thinking about ram_size and swap_size and thrashing;
  all of my boxen have plenty of ram.

i know i have to read it in the first time.
rather, i am thinking about opening and reading
  some file that i recently wrote and closed.
]



in advance, i thank you.
please cc.

rob



ps --- remember, slavery sucks; so, have a happy pesach.

___
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: sorta newb help compiling samba

2009-04-08 Thread Vasadi I. Claudiu Florin
On Wed, 08 Apr 2009 23:39:55 +0300, Gary Gatten ggat...@waddell.com  
wrote:



I found a 3.3.1 package - if my current attempts at the port upgrades
fails I'll try this route.

Thanks again!

Gary


Hey,



If I were you, first of all, I would try the make clean; make  
distclean;make rmconfig; make install clean thinghy first.

But then again, I'm not you :P. So wish you pull it off eventually.



Good luck,
Claudius
___
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 subject)

2009-04-08 Thread Len Conrad

We need to print a line when the 3rd field (with trailing ; delimiter) is, 
eg, exactly 5 lower case characters

awk ' $3 ~ /^[a-z]{5,5};$/ {print $0} ' file 

... doesn't work.  

Suggestions?

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: firefox3 with high latencies when acting with mouse or keyboard and graphics refresh

2009-04-08 Thread Tim Kientzle

I saw something similar recently due to a mismatch
between hald and the xorg server.  In my case, it
affected all applications, not just firefox.
* Are you running hald?
* Do you have AllowEmptyInput set in /etc/X11/xorg.conf?
* Are you starting xdm, kdm, or gdm from /etc/ttys?

Tim

O. Hartmann wrote:

Hello,
got a problem since yesterday after having done a lot of updates 
(ports): on all of my FreeBSD 8.0-CURRENT/amd64 boxes firefox does have 
enormous high latencies when typing in or moving the mouse or popping up 
the window icon or down. Since this happens on all of 8.0-CUR/amd boxes, 
I guess it has something to do with an upgrade of the ports.


I reinstalled firefox twice, but without success, so I want to ask for 
some hints..


Regards,
Oliver
___
freebsd-curr...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to freebsd-current-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


(no subject)

2009-04-08 Thread Len Conrad
We need to print a line when the 3rd field (with trailing ; delimiter) is, 
eg, exactly 5 lower case characters

awk ' $3 ~ /^[a-z]{5,5};$/ {print $0} ' file

... doesn't work.  

Suggestions?

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: Recovering loss of /var/db/pkg ?

2009-04-08 Thread Robert Huff

Lowell Gilbert writes:

   /var/db/pkg is long gone and there is no backup. It was not copied to  
   new a machine.
  
   Is there is any hope of being able to use the ports or packages
   system in a meangingful way again?

  You can do a forced reinstall of all your ports, and you'll end
  up with a repopulated ports database.  It will take a lot of
  clock time, but not much human time.

Assuming everything goes cleanly.

  It's not necessarily easy to figure out what all of the ports
  were, but there are a number of choices.

It will make life ... interesting ... if the OP ever wants to
update.
I'm not sure I fully understand the original question.
However: I have ~950 ports on the current box.  At one point I lost
/var/db/pkg and needed to rebuild.  Remembering some of what was
installed was easy - OpenOffice, FireFox, java, gnome/kde, etc., all
of which draw in large numbers of (cummonly-used) dependencies.
But there were others I would have had no hope of even
remembering I had installed.  Then I realized I still had
/usr/ports/distfiles, and most of the tarball names give you enough
clue you can correctly guess the package from /usr/ports INDEX.  If
I knew anything about the MASTER_SITES (I think) variable(s ?) I
could porbably have written a script.  (For those who go this route,
the pkg_sort program that comes with portupgrade will be useful.)


Robert huff





___
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: [ fbsd_quest ] file_caching and hd caches

2009-04-08 Thread Warren Block

On Wed, 8 Apr 2009, spellberg_robert wrote:


howdy, y'all ---

so, i was looking over the offerings of the on_line retailing usual 
suspects,

 when i got to thinking:

 q:  to what extent does freebsd cache recently_used hard_drive files ?


To the extent that RAM is available.


 q:  under freebsd, to what extent are
   hard_drive internal_caches and their sizes [ e. g., 2mb, 8mb, 16mb ]
   important ?


It depends on workload.


i am not so much looking for a history_ and theory_of_operation as
 i am looking for a yes/no to the question:

 q:  should i pay up for hd_cache, if the other hd parameters are the same ?


Again, depends on workload.  Also the difference in price for relatively 
small differences in cache RAM on the hard drive.



something else that i just thought up while typing this:

 q:  are hd internal_caches non_volatile ?


No.


id est,

 q:  do the cache contents survive a power_cycle ?


No.  You may want to look at SSDs.


[ some supplementary fyis:

   yes, i am aware that
 hd access_times are a relative eternity to a chip_set's hd_port.

   i am not thinking about ram_size and swap_size and thrashing;
 all of my boxen have plenty of ram.

   i know i have to read it in the first time.
   rather, i am thinking about opening and reading
 some file that i recently wrote and closed.


FreeBSD is pretty good at that.  For example, reboot and start Firefox. 
Then close it and start it again.


There may be ways of prioritizing what's kept in cache, although I don't 
know them.


-Warren Block * Rapid City, South Dakota USA
___
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: sorta newb help compiling samba

2009-04-08 Thread Gary Gatten
Latest error below.  Going with the pkg_add...

libsmb/clikrb5.c: In function `krb5_set_real_time':
libsmb/clikrb5.c:132: error: dereferencing pointer to incomplete type
libsmb/clikrb5.c:133: error: dereferencing pointer to incomplete type
The following command failed:
cc -I. -I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source
-I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source/iniparser/src
-Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc
-I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H
-I/usr/local/include -Iinclude -I./include -I. -I. -I./lib/replace
-I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt
-I/usr/local/include -DLDAP_DEPRECATED -O2 -fno-strict-aliasing -pipe
-DLDAP_DEPRECATED -O -D_SAMBA_BUILD_=3 -I/usr/local/include
-I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source/lib
-D_SAMBA_BUILD_=3 -fPIC -DPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o
gmake: *** [libsmb/clikrb5.o] Error 1
*** Error code 2

Stop in /usr/ports/net/samba33/samba33.
*** Error code 1

-Original Message-
From: Vasadi I. Claudiu Florin [mailto:claudiu.vas...@gmail.com] 
Sent: Wednesday, April 08, 2009 3:41 PM
To: Gary Gatten
Cc: freebsd-questions@freebsd.org
Subject: Re: sorta newb help compiling samba

On Wed, 08 Apr 2009 23:39:55 +0300, Gary Gatten ggat...@waddell.com  
wrote:

 I found a 3.3.1 package - if my current attempts at the port upgrades
 fails I'll try this route.

 Thanks again!

 Gary

Hey,



If I were you, first of all, I would try the make clean; make  
distclean;make rmconfig; make install clean thinghy first.
But then again, I'm not you :P. So wish you pull it off eventually.



Good luck,
Claudius





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
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


awk field (was Re: (no subject))

2009-04-08 Thread Warren Block

On Wed, 8 Apr 2009, Len Conrad wrote:



We need to print a line when the 3rd field (with trailing ; delimiter) is, 
eg, exactly 5 lower case characters

awk ' $3 ~ /^[a-z]{5,5};$/ {print $0} ' file

... doesn't work.

Suggestions?


Please give an example of the line this doesn't work on, and exactly 
what you want it to do.


{5} is probably acceptable instead of {5,5}.  I don't do much awk, 
but here's a Perl example:


perl -e '$x = abcde;; print Yes\n if $x =~ /^[a-z]{5};$/'

-Warren Block * Rapid City, South Dakota USA
___
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: Re: where is spl_autoload found in PHP

2009-04-08 Thread af300wsm

On Apr 6, 2009 2:04pm, Maxim Khitrov mkhit...@gmail.com wrote:

On Mon, Apr 6, 2009 at 3:13 PM, af300...@gmail.com wrote:



 Hi,






 I saw Zend in the ports and so I'm hoping that some here use it and can  
help


 me with this one. I've installed the latest stable Zend, which is a  
little


 newer than what I found in ports, and I'm running PHP version 5.2.8  
(which I



 did install from ports). I'm going through the Zend QuickStart guide


  
(http://framework.zend.com/docs/quickstart/create-an-action-controller-and-view),



 and ran into this error when loading the page at this point of the quick



 start;






 Fatal error: Uncaught exception 'Zend_Exception' with  
message 'spl_autoload



 does not exist in this PHP installation' in


 /usr/local/www/apache22/data/QuickStart/library/Zend/Loader.php:206  
Stack



 trace: #0 /usr/local/www/apache22/data/QuickStart/public/index.php(18):



 Zend_Loader::registerAutoload() #1 {main} thrown in


 /usr/local/www/apache22/data/QuickStart/library/Zend/Loader.php on line  
206






 I've searched through the ports looking for auto and load in php5  
modules


 and I've found nothing (I did my searching at freshports.org). I then  
did a


 make config in the /usr/ports/lang/php5 directory but didn't see a  
check box



 for spl_autoload in the options. How do I get this installed in my PHP



 installation?





devel/php5-spl





Thank you very much. I'm not sure I'd have found that too easily.

Andy
___
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: sorta newb help compiling samba

2009-04-08 Thread Gary Gatten
LOL - pkg_add failed, couldn't find openLDAP!  I thought ports and
packages was supposed to automagically address all the dependencies!

Trying to install krb5 now - couple other users reported same issue I
had so maybe recent port is fixed.

Did I mention how much fun this is?!

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Gary Gatten
Sent: Wednesday, April 08, 2009 5:08 PM
To: Vasadi I. Claudiu Florin
Cc: freebsd-questions@freebsd.org
Subject: RE: sorta newb help compiling samba

Latest error below.  Going with the pkg_add...

libsmb/clikrb5.c: In function `krb5_set_real_time':
libsmb/clikrb5.c:132: error: dereferencing pointer to incomplete type
libsmb/clikrb5.c:133: error: dereferencing pointer to incomplete type
The following command failed:
cc -I. -I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source
-I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source/iniparser/src
-Iinclude -I./include  -I. -I. -I./lib/replace -I./lib/talloc
-I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H
-I/usr/local/include -Iinclude -I./include -I. -I. -I./lib/replace
-I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt
-I/usr/local/include -DLDAP_DEPRECATED -O2 -fno-strict-aliasing -pipe
-DLDAP_DEPRECATED -O -D_SAMBA_BUILD_=3 -I/usr/local/include
-I/usr/ports/net/samba33/samba33/work/samba-3.3.3/source/lib
-D_SAMBA_BUILD_=3 -fPIC -DPIC -c libsmb/clikrb5.c -o libsmb/clikrb5.o
gmake: *** [libsmb/clikrb5.o] Error 1
*** Error code 2

Stop in /usr/ports/net/samba33/samba33.
*** Error code 1

-Original Message-
From: Vasadi I. Claudiu Florin [mailto:claudiu.vas...@gmail.com] 
Sent: Wednesday, April 08, 2009 3:41 PM
To: Gary Gatten
Cc: freebsd-questions@freebsd.org
Subject: Re: sorta newb help compiling samba

On Wed, 08 Apr 2009 23:39:55 +0300, Gary Gatten ggat...@waddell.com  
wrote:

 I found a 3.3.1 package - if my current attempts at the port upgrades
 fails I'll try this route.

 Thanks again!

 Gary

Hey,



If I were you, first of all, I would try the make clean; make  
distclean;make rmconfig; make install clean thinghy first.
But then again, I'm not you :P. So wish you pull it off eventually.



Good luck,
Claudius





font size=1
div style='border:none;border-bottom:double windowtext
2.25pt;padding:0in 0in 1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
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





font size=1
div style='border:none;border-bottom:double windowtext 2.25pt;padding:0in 0in 
1.0pt 0in'
/div
This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system.
/font

___
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: [ fbsd_quest ] file_caching and hd caches

2009-04-08 Thread Wojciech Puchar

   hard_drive internal_caches and their sizes [ e. g., 2mb, 8mb, 16mb ]
   important ?


It depends on workload.


almost not important. if FreeBSD would support NCQ it will be more, but 
still anything above 4MB doesn't make a difference IMHO.


___
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: [ fbsd_quest ] file_caching and hd caches

2009-04-08 Thread spellberg_robert

thanks, warren [ love your dot_com, btw ] ---



Warren Block wrote:

On Wed, 8 Apr 2009, spellberg_robert wrote:


howdy, y'all ---

so, i was looking over the offerings of the on_line retailing usual 
suspects,

 when i got to thinking:

 q:  to what extent does freebsd cache recently_used hard_drive files ?



To the extent that RAM is available.


 q:  under freebsd, to what extent are
   hard_drive internal_caches and their sizes [ e. g., 2mb, 8mb, 
16mb ]

   important ?



It depends on workload.


i am not so much looking for a history_ and theory_of_operation as
 i am looking for a yes/no to the question:

 q:  should i pay up for hd_cache, if the other hd parameters are the 
same ?



Again, depends on workload.  Also the difference in price for relatively 
small differences in cache RAM on the hard drive.


now that i have a handle on today's prices,
  the choice of retailer is very important.

it also appears [ from my reading of manufacturer's literature ] that
  the hd internal_cache is used as a write_buffer
  for the benefit of the chip_set,
  then the drive can take its own sweet time writing to its notion of sectors.

therefore,
  for a mobo that is stuffed_to_the_gills with ram
  [ relative to the apps that it is running ],
  if i read you correctly,
  then reads will tend to come from mobo_ram and
  the hd_cache is mostly a write_buffer.
i suspect that the hd_cache would be more important for
  an os that doesn't do its own caching
  [ until its notion of idleness occurs ].






something else that i just thought up while typing this:

 q:  are hd internal_caches non_volatile ?



No.


not surprised.






id est,

 q:  do the cache contents survive a power_cycle ?



No.  You may want to look at SSDs.


understood.






[ some supplementary fyis:

   yes, i am aware that
 hd access_times are a relative eternity to a chip_set's hd_port.

   i am not thinking about ram_size and swap_size and thrashing;
 all of my boxen have plenty of ram.

   i know i have to read it in the first time.
   rather, i am thinking about opening and reading
 some file that i recently wrote and closed.



FreeBSD is pretty good at that.  For example, reboot and start Firefox. 
Then close it and start it again.


understood.





There may be ways of prioritizing what's kept in cache, although I don't 
know them.


not important.
thanks for the thought, though.



to summarize,
  it looks like, for freebsd, i should
  get a good price from a reputable retailer
  on a high_quality product from a reputable manufacturer.
then, i can save my worrying_time for really important subjects, like
  the determination of the correct yardarm height for the hanging of pirates.





-Warren Block * Rapid City, South Dakota USA


nice part of the country, that.
chicago  north western territory.



rob
mchenry county, illinois

___
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


Why USB enclosure with HD isn't a block device?

2009-04-08 Thread Yuri

I got USB enclosure and put HD there.
I tried to create NTFS on it (using mkntfs from sysutils/ntfsprogs).

And got the message:
/dev/da0 is not a block device.
Refusing to make a filesystem here!

mkntfs does 'stat' on /dev/da0.
Why /dev/da0 stats not as a block device?

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: Why USB enclosure with HD isn't a block device?

2009-04-08 Thread Olivier Nicole
 And got the message:
 /dev/da0 is not a block device.
 Refusing to make a filesystem here!

Just a wild guess, but shouldn't you create slices first?

Then create the filesystem on /dev/da0s1

Bests,

Olivier
___
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: Why USB enclosure with HD isn't a block device?

2009-04-08 Thread Yuri

Olivier Nicole wrote:

Just a wild guess, but shouldn't you create slices first?

Then create the filesystem on /dev/da0s1

Bests,

Olivier
  


This as a must in the past.
But now I always format, for example flash disks, without slices. And 
both Windows and FreeBSD have no problem.


And I think /dev/da0 for US enclosure actually should be a block device like 
all disks.
I think this is a bug.

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: Why USB enclosure with HD isn't a block device?

2009-04-08 Thread Roland Smith
On Wed, Apr 08, 2009 at 08:50:41PM -0700, Yuri wrote:
 I got USB enclosure and put HD there.
 I tried to create NTFS on it (using mkntfs from sysutils/ntfsprogs).
 
 And got the message:
 /dev/da0 is not a block device.
 Refusing to make a filesystem here!
 
 mkntfs does 'stat' on /dev/da0.
 Why /dev/da0 stats not as a block device?

FreeBSD doesn't have block devices anymore. Try 'ls -l /dev/|less' and
you'll see that every device's permissions begin with a 'c' for
character devices. See
[http://www.freebsd.org/doc/en/books/arch-handbook/driverbasics-block.html]
as to the reason why.

The complaint from mkntfs is probably a linuxism. Isn't there an
override switch? On FreeBSD, the test should probably test for a
character device.

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)


pgpwGls9MICG7.pgp
Description: PGP signature