Re: Software RAID options

2010-01-30 Thread Mike Clarke
On Saturday 30 January 2010, Danny Edge wrote:

 Thanks, Glen, I should have mentioned that I did see gmirror
 mentioned in the HB. Pending further suggestions, I will try gmirror
 for software RAID 1 (yes, as large as the smallest disk).

It's also possible to mirror individual slices rather than an entire 
disk http://people.freebsd.org/~rse/mirror/ so you could create 
matching slices on the disks and still have the spare space of the 
larger disk available for use as non-mirrored space.

-- 
Mike Clarke
___
freebsd-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: Shared object libcrypt.so.4 not found ...(or library munging after make-delete-old)

2010-01-30 Thread krad
On 29 January 2010 20:53, Chuck Swiger cswi...@mac.com wrote:

 Hi--

 On Jan 29, 2010, at 12:45 PM, mikel king wrote:
 [ ... ]
  I would have thought that perl was rebuilt when I make the world and
 upgraded from 7.x to 8.0.
 
  Anyone have a quick and easy fix out of this mess?

 perl isn't part of FreeBSD 7.x; hence, it was not rebuilt when you upgraded
 to 8.0.

 There isn't a quick and easy fix to dealing with ports after upgrading to a
 different major OS version, short of rebuilding all of the installed ports.

 Regards,
 --
 -Chuck

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



well you could do

pkg_delete -f perl*
pkg_add -rv perl

you might need to redo your modules as well

or you could install the compatibility libs

cd /usr/ports/misc/compat7x
make
make installl
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Recommendation on GPS time source for FreeBSD

2010-01-30 Thread Per olof Ljungmark

Hi all,

Does anyone have a recommendation on a good GPS receiver/board for use 
with NTP/FreeBSD to create a stratum 1 public time server?


Preferably something above the Garmin puck level but not ridiculously 
expensive either...


Thanks for any input,

--
per
___
freebsd-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: gjournal on compact flash

2010-01-30 Thread Nikos Vassiliadis

On 1/30/2010 1:35 AM, Adam Vande More wrote:

There is an rc flags to automatically do a full fsck instead of
backgroud, but I am unsure exactly what you mean by user intervention.


Practice has shown that while softupdates handle most situations
cleanly, they don't handle ALL situations. In short, having to do
a blind_yes_to_all full fsck is not an option for me. OTOH a journaling
solution like gjournal or softupdates journaling, makes sure that
the filesystem will be surely consistent after an ungraceful power
cycle. I am not in a hurry and waiting for SUJ to hit the 8 branch
seems sensible.

Nikos
___
freebsd-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 : Recommendation on GPS time source for FreeBSD

2010-01-30 Thread Alexandre L.
You can see here : http://www.meinberg.de/english/
I don't use their products (I don't know about the quality products), I just 
use their NTP package software for Windows.

--- En date de : Sam 30.1.10, Per olof Ljungmark p...@intersonic.se a écrit :

 De: Per olof Ljungmark p...@intersonic.se
 Objet: Recommendation on GPS time source for FreeBSD
 À: freebsd-questions@freebsd.org
 Date: Samedi 30 Janvier 2010, 9h51
 Hi all,
 
 Does anyone have a recommendation on a good GPS
 receiver/board for use with NTP/FreeBSD to create a stratum
 1 public time server?
 
 Preferably something above the Garmin puck level but not
 ridiculously expensive either...
 
 Thanks for any input,
 
 --
 per
 ___
 freebsd-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


ral vap

2010-01-30 Thread Gaurang Pandya
Hi ,

Just configured my new linksys wmp54G in Freebsd-8 worked like charm, but when 
tried to create yet another wireless interface (wlan1), am getting error 

ral0: only 1 vap supported,

checked man for ral and found 

Only one hostap

Just before selling the wifi card in ebay (as I wanted, it just for multiple 
wireless interfaces), I thought let me post a question in list to check if 
there is any possibilities of getting multiple virtual wlan interfaces 
configured with ral0, both working in ap mode?

Thanks,

Gaurang.



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


Replacing base NTP with ports NTP

2010-01-30 Thread David Rawling

Greetings all and sundry

About 3 months ago I built myself a time server using 8.0-RC3, IIRC, and 
I upgraded to 8.0-RELEASE (and now -p2). Naturally, as I want this 
server to provide time services, I've installed the net/ntp port, among 
others.


Recently, for reasons that have become lost in the mists of time, I 
noticed that I wasn't running the port version of NTP 
(/usr/local/sbin/ntpd), but the version installed with the base system 
(/usr/sbin/ntpd).


For the immediate term, I've renamed the base versions of the files in 
/usr/sbin, and then symlinked to the port version (in /usr/local) - ntpd 
is now the ports version, as are most of the tools. This does, however, 
seem like a rather silly way of getting the most current NTPd running.


I cannot, for the life of me, figure out how to get the Ports version of 
NTP to overwrite the base system's NTP. Yet I'm sure (since there *is* a 
port of NTP) there must be a better way to do this.


Can anyone point me in the direction of some documentation?

Dave.

--
David Rawling
PD Consulting And Security
Mob: +61 412 135 513
Email: d...@pdconsec.net

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


Re: Replacing base NTP with ports NTP

2010-01-30 Thread Ben Schumacher
On Sat, Jan 30, 2010 at 8:06 AM, David Rawling d...@pdconsec.net wrote:
 About 3 months ago I built myself a time server using 8.0-RC3, IIRC, and I
 upgraded to 8.0-RELEASE (and now -p2). Naturally, as I want this server to
 provide time services, I've installed the net/ntp port, among others.

 Recently, for reasons that have become lost in the mists of time, I noticed
 that I wasn't running the port version of NTP (/usr/local/sbin/ntpd), but
 the version installed with the base system (/usr/sbin/ntpd).

 For the immediate term, I've renamed the base versions of the files in
 /usr/sbin, and then symlinked to the port version (in /usr/local) - ntpd is
 now the ports version, as are most of the tools. This does, however, seem
 like a rather silly way of getting the most current NTPd running.

 I cannot, for the life of me, figure out how to get the Ports version of NTP
 to overwrite the base system's NTP. Yet I'm sure (since there *is* a port of
 NTP) there must be a better way to do this.

 Can anyone point me in the direction of some documentation?

David-

I'm not going to claim that this is the best way either, but if
you're doing source installs you could just set WITHOUT_NTP=true in
/etc/src.conf to disable the installation of the system one. You can
use man src.conf to find out more about this. I stop installations
of a bunch of standard services this way -- lpr, bind, nis, sendmail,
etc. make delete-old from your source build will clean up those
files that are no longer used.

Hope this helps,
Ben
___
freebsd-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: Replacing base NTP with ports NTP

2010-01-30 Thread Daniel Molina Wegener
On Saturday 30 January 2010,
David Rawling d...@pdconsec.net wrote:

 Greetings all and sundry

  Hello David,

 
 About 3 months ago I built myself a time server using 8.0-RC3, IIRC, and
 I upgraded to 8.0-RELEASE (and now -p2). Naturally, as I want this
 server to provide time services, I've installed the net/ntp port, among
 others.
 
 Recently, for reasons that have become lost in the mists of time, I
 noticed that I wasn't running the port version of NTP
 (/usr/local/sbin/ntpd), but the version installed with the base system
 (/usr/sbin/ntpd).

  OK, rc.conf(5) does the trick.

  Look here for an overview of rc.conf:
  http://www.freebsd.org/doc/handbook/configtuning-rcd.html

  And try the next command to gather information about rc.conf(5):
  man 5 rc.conf

  Possibly you are looking for the /ntpd_program/ variable (from the
manual page):
-8--8--8-
ntpd_program
 (str) Path to ntpd(8) (default /usr/sbin/ntpd).
-8--8--8-

 
 For the immediate term, I've renamed the base versions of the files in
 /usr/sbin, and then symlinked to the port version (in /usr/local) - ntpd
 is now the ports version, as are most of the tools. This does, however,
 seem like a rather silly way of getting the most current NTPd running.

  Bad practice... ;)

 
 I cannot, for the life of me, figure out how to get the Ports version of
 NTP to overwrite the base system's NTP. Yet I'm sure (since there *is* a
 port of NTP) there must be a better way to do this.

  No problem, just try the configuration above. Also, you do not need
to restart the complete system, just proceed as follows:

1. As root stop ntpd:
  # /etc/rc.d/ntpd stop

2. Edit the /etc/rc.conf file...

3. Start ntpd:
  # /etc/rc.d/ntpd start

 
 Can anyone point me in the direction of some documentation?
 
 Dave.
 

Best regards,
-- 
| Daniel Molina dmw [at] coder [dot] cl |
| IT Consulting  Software Development|
| Phone: +56 2 9790277 | http://coder.cl/ |


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


Re: Replacing base NTP with ports NTP

2010-01-30 Thread Jerry
On Sun, 31 Jan 2010 02:06:53 +1100
David Rawling d...@pdconsec.net articulated:

 Greetings all and sundry
 
 About 3 months ago I built myself a time server using 8.0-RC3, IIRC,
 and I upgraded to 8.0-RELEASE (and now -p2). Naturally, as I want
 this server to provide time services, I've installed the net/ntp
 port, among others.
 
 Recently, for reasons that have become lost in the mists of time, I 
 noticed that I wasn't running the port version of NTP 
 (/usr/local/sbin/ntpd), but the version installed with the base
 system (/usr/sbin/ntpd).
 
 For the immediate term, I've renamed the base versions of the files
 in /usr/sbin, and then symlinked to the port version (in /usr/local)
 - ntpd is now the ports version, as are most of the tools. This does,
 however, seem like a rather silly way of getting the most current
 NTPd running.
 
 I cannot, for the life of me, figure out how to get the Ports version
 of NTP to overwrite the base system's NTP. Yet I'm sure (since there
 *is* a port of NTP) there must be a better way to do this.
 
 Can anyone point me in the direction of some documentation?
 
 Dave.

From the /etc/defaults/rc.conf file:

ntpdate_enable=NO # Run ntpdate to sync time on boot (or NO).
ntpdate_program=/usr/sbin/ntpdate # path to ntpdate, if you want a 
different one.
ntpdate_flags=-b  # Flags to ntpdate (if enabled).
ntpdate_config=/etc/ntp.conf  # ntpdate(8) configuration file
ntpdate_hosts=# Whitespace-separated list of ntpdate(8) 
servers.
ntpd_enable=NO# Run ntpd Network Time Protocol (or NO).
ntpd_program=/usr/sbin/ntpd   # path to ntpd, if you want a different one.
ntpd_config=/etc/ntp.conf # ntpd(8) configuration file
ntpd_sync_on_start=NO # Sync time on ntpd startup, even if offset is 
high
ntpd_flags=-p /var/run/ntpd.pid -f /var/db/ntpd.drift
# Flags to ntpd (if enabled).

Enter the appropriate line(s) into your /etc/rc.conf file. DO NOT
modify the /etc/defaults/rc.conf file.

-- 
Jerry
ges...@yahoo.com

|===
|===
|===
|===
|

You will soon meet a person who will play an important role in your
life.



signature.asc
Description: PGP signature


fstab syntax

2010-01-30 Thread Jeff Laine
Hello,

My question is regarding /etc/fstab synax. 
How can I use spaces and quote symbols in my device name? 
I tried to use double quotes and backslash, but no luck so far.
I.e. I'd like to put the following line:

/dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0

Any ideas?


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


Pain finding packages

2010-01-30 Thread Joe Springer
Hi.

I am very new to FreeBSD with several years of Linux experience. After 
installed FreeSDB for the first time, I wanted to install some packages. For 
example, samba.

I found that

   pkg_add -r samba 

fails. I need to know specifically the samba version to install it. 

To install, I needed do this:
   pkg_add -r samba3

This is difficult. Do I need to look up every package in advance on your 
website to understand what version I need to install?

Isn't there a way to specify Install the latest version of some package that 
is appropriate to the version of my installed FreeBSD?

Thanks,
Joe



  
___
freebsd-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: fstab syntax

2010-01-30 Thread krad
On 30 January 2010 19:05, Jeff Laine wtf.jla...@gmail.com wrote:

 Hello,

 My question is regarding /etc/fstab synax.
 How can I use spaces and quote symbols in my device name?
 I tried to use double quotes and backslash, but no luck so far.
 I.e. I'd like to put the following line:

 /dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0

 Any ideas?


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


/dev/msdosfs/MY\ FLASH /mnt/flash msdosfs rw,noauto 0 0

or

/dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0

should work, but i guess you tried these?

The alternative way would be to use the UUID of the drive, as that wont have
spaces in, and is more versatile than /dev/das1a type syntax
___
freebsd-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: Pain finding packages

2010-01-30 Thread Tim Judd
On Sat, Jan 30, 2010 at 11:48 AM, Joe Springer joe...@yahoo.com wrote:

 Hi.

 I am very new to FreeBSD with several years of Linux experience. After
 installed FreeSDB for the first time, I wanted to install some packages. For
 example, samba.

 I found that

   pkg_add -r samba

 fails. I need to know specifically the samba version to install it.

 To install, I needed do this:
   pkg_add -r samba3

 This is difficult. Do I need to look up every package in advance on your
 website to understand what version I need to install?

 Isn't there a way to specify Install the latest version of some package
 that is appropriate to the version of my installed FreeBSD?

 Thanks,
 Joe


Since the ports tree (for which packages are made from) can house multiple
versions of a software package (samba 3.0, 3.2 and 3.3 IIRC), specifying
samba alone sometimes work for the default, and sometimes it's samba32
or similar.  It's up to the port maintainer to name it and what the
resulting package name will be.  Like most distributions, a search online
can yield the version you want.  Go to http://ports.freebsd.org and query
any part of a substring to search for.



--TJ
___
freebsd-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: Pain finding packages

2010-01-30 Thread Jerry
On Sat, 30 Jan 2010 10:48:23 -0800 (PST)
Joe Springer joe...@yahoo.com articulated:

 Hi.
 
 I am very new to FreeBSD with several years of Linux experience.
 After installed FreeSDB for the first time, I wanted to install some
 packages. For example, samba.
 
 I found that
 
pkg_add -r samba 
 
 fails. I need to know specifically the samba version to install it. 
 
 To install, I needed do this:
pkg_add -r samba3
 
 This is difficult. Do I need to look up every package in advance on
 your website to understand what version I need to install?
 
 Isn't there a way to specify Install the latest version of some
 package that is appropriate to the version of my installed FreeBSD?

You didn't specify exactly what you wanted installed. Just specifying
'samba' is useless. There are several versions of samba, as well as
ports that begin with samba. For example:

Port:   ja-samba-3.0.35,1
Path:   /usr/ports/japanese/samba3
Info:   Japanese Samba

Port:   gnosamba-0.3.3_5
Path:   /usr/ports/net/gnosamba
Info:   Samba configuration tool for X Window System

Port:   gsambad-0.1.9_3
Path:   /usr/ports/net/gsambad
Info:   Gtk2 Frontend for samba daemon

Port:   p5-Samba-LDAP-0.05_1
Path:   /usr/ports/net/p5-Samba-LDAP
Info:   Manage a Samba PDC with an LDAP Backend

Port:   py26-samba-3.0.37
Path:   /usr/ports/net/py-samba
Info:   Python bindings for Samba

Port:   samba-libsmbclient-3.0.37
Path:   /usr/ports/net/samba-libsmbclient
Info:   Shared libs from the samba package

Port:   samba-nmblookup-3.0.37
Path:   /usr/ports/net/samba-nmblookup
Info:   NetBIOS Name lookup tool

Port:   samba-pdbsql-0.3.1_1
Path:   /usr/ports/net/samba-pdbsql
Info:   Multiplexor, MySQL and PostgeSQL passdb backends for Samba3

Port:   samba-smbclient-3.0.37
Path:   /usr/ports/net/samba-smbclient
Info:   Samba ftp-like client

Port:   samba-3.0.37,1
Path:   /usr/ports/net/samba3
Info:   A free SMB and CIFS client and server for UNIX

Port:   samba-3.2.15
Path:   /usr/ports/net/samba32
Info:   A free SMB and CIFS client and server for UNIX

Port:   samba-3.3.9
Path:   /usr/ports/net/samba33
Info:   A free SMB and CIFS client and server for UNIX

Port:   samba4-devel-4.0.0.a8_2
Path:   /usr/ports/net/samba4-devel
Info:   A free SMB and CIFS client and server for UNIX

Port:   samba4wins-1.0.7_1
Path:   /usr/ports/net/samba4wins
Info:   A full featured replicating WINS server for UNIX

Port:   sambasentinel-0.1_5
Path:   /usr/ports/net/sambasentinel
Info:   SambaSentinel is a gtk-frontend to smbstatus with
additional features

Port:   cups-samba-6.0_2
Path:   /usr/ports/print/cups-samba
Info:   The Common UNIX Printing System: MS Windows client drivers

Port:   samba-vscan-0.3.6c_2
Path:   /usr/ports/security/samba-vscan
Info:   On-access virus scanning with Samba

Port:   japanese/samba20
Moved:  japanese/samba
Date:   2003-04-13
Reason: security vulnerability

Port:   net/samba-tng
Moved:  
Date:   2003-08-07
Reason: port was marked broken for 3 months with no fix submitted

Port:   net/samba-devel
Moved:  net/samba3
Date:   2004-06-07
Reason: considered stable

Port:   net/samba
Moved:  net/samba3
Date:   2006-09-02
Reason: Security vulnerabilities

Port:   japanese/samba
Moved:  japanese/samba3
Date:   2008-07-21
Reason: Superseded by japanese/samba3

Port:   net/samba32-devel
Moved:  net/samba32
Date:   2009-02-16
Reason: Samba 3.2 became stable enough to be used in production.

Did you read man pkg_add(1) thoroughly before using the utility?

-- 
Jerry
ges...@yahoo.com

|===
|===
|===
|===
|

Systems programmers are the high priests of a low cult.

R. S. Barton

___
freebsd-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: fstab syntax

2010-01-30 Thread Jerry
On Sat, 30 Jan 2010 22:05:43 +0300
Jeff Laine wtf.jla...@gmail.com articulated:

 Hello,
 
 My question is regarding /etc/fstab synax. 
 How can I use spaces and quote symbols in my device name? 
 I tried to use double quotes and backslash, but no luck so far.
 I.e. I'd like to put the following line:
 
 /dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0

As far as I know, that cannot be done. I saw something about that
here awhile ago. Perhaps, a patch has been submitted that will modify
its behavior by now.

-- 
Jerry
ges...@yahoo.com

|===
|===
|===
|===
|

Don't try to outweird me, three-eyes.  I get stranger things than you
free with my breakfast cereal.

Zaphod Beeblebrox

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


Problems with make clean

2010-01-30 Thread Frank Wißmann

Hi, Beasties!
I just installed the new VirtualBox through ports. It worked fine, but 
now I have trouble cleaning the directory. Neither make clean nor a 
rm -rf work/ do what they are supposed to. Here is the output:


rm: 
work/virtualbox-3.0.51r22902/out/freebsd.amd64/debug/obj/VBoxRT/VBox: 
Directory not empty
rm: 
work/virtualbox-3.0.51r22902/out/freebsd.amd64/debug/obj/VBoxRT/common: 
Directory not empty
rm: work/virtualbox-3.0.51r22902/out/freebsd.amd64/debug/obj/VBoxRT: 
Invalid argument
rm: work/virtualbox-3.0.51r22902/out/freebsd.amd64/debug/obj: Directory 
not empty
rm: work/virtualbox-3.0.51r22902/out/freebsd.amd64/debug: Directory not 
empty

rm: work/virtualbox-3.0.51r22902/out/freebsd.amd64: Directory not empty
rm: work/virtualbox-3.0.51r22902/out: Directory not empty
rm: work/virtualbox-3.0.51r22902: Directory not empty
rm: work/: Directory not empty

A cd to the named directories and a ls -la show no files there. Has 
anybody an explanation for this?


Greetings Frank

--
GU d- s:+ a+ C+$ UBS$ P L- !E--- W N+@ !o K--? !w--- O !M- !V- PS+ PE 
Y? !PGP- t+ 5 X !R tv- b++ DI !D G e h+ r- y?


When pack meets pack in the jungle
and no one will move from the trail
wait till the leaders have spoken
it may be fair words shall prevail

(Rudyard Kipling)
___
freebsd-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: Pain finding packages

2010-01-30 Thread Chad Perrin
On Sat, Jan 30, 2010 at 10:48:23AM -0800, Joe Springer wrote:
 Hi.
 
 I am very new to FreeBSD with several years of Linux experience. After
 installed FreeSDB for the first time, I wanted to install some
 packages. For example, samba.
 
 I found that
 
pkg_add -r samba 
 
 fails. I need to know specifically the samba version to install it. 
 
 To install, I needed do this:
pkg_add -r samba3
 
 This is difficult. Do I need to look up every package in advance on
 your website to understand what version I need to install?
 
 Isn't there a way to specify Install the latest version of some
 package that is appropriate to the version of my installed FreeBSD?

Unfortunately, there isn't -- sometimes.  Some ports (and their
associated packages) will have the name you expect.  Some will not.

The names of binary packages should have the same names as their
respective ports, at least most of the time, as far as I'm aware.  Thus,
if you have the ports tree on your system, you can at least check locally
to see what various software installs will be called.  If not, you may
have to search online.

I don't use binary packages much, personally, so I'm not exactly an
expert in that regard.  Something I said may turn out to be mistaken.

-- 
Chad Perrin [ original content licensed OWL: http://owl.apotheon.org ]


pgpDnQDYwu3mc.pgp
Description: PGP signature


Re: fstab syntax

2010-01-30 Thread Jeff Laine
On Sat,30-01-2010 [19:33:37], krad wrote:
 On 30 January 2010 19:05, Jeff Laine wtf.jla...@gmail.com wrote:
 
  Hello,
 
  My question is regarding /etc/fstab synax.
  How can I use spaces and quote symbols in my device name?
  I tried to use double quotes and backslash, but no luck so far.
  I.e. I'd like to put the following line:
 
  /dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0
 
  Any ideas?
 
 
  --
  Best regards,
  Jeff
 
  | Nobody wants to say how this works.  |
  |  Maybe nobody knows ...  |
  |   Xorg.conf(5)|
 
 
 /dev/msdosfs/MY\ FLASH /mnt/flash msdosfs rw,noauto 0 0
 
 or
 
 /dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0
 
 should work, but i guess you tried these?
 
 The alternative way would be to use the UUID of the drive, as that wont have
 spaces in, and is more versatile than /dev/das1a type syntax


Yep, neither is working. 

After all I used glabel to generate a new label and avoid reformatiing my 
volume.


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


Jails and Hardware security

2010-01-30 Thread Jay Hall
Is it possible to limit what hardware a jail has access to?  I am  
wanting to limit access to the tape drive/autoloader in one jail, but  
allow another to have access to it.


Is this as simple as deleting the appropriate entries in /dev?

Thanks,

Jay
___
freebsd-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: fstab syntax

2010-01-30 Thread Elias Chrysocheris
On Saturday 30 of January 2010 21:05:43 Jeff Laine wrote:
 Hello,
 
 My question is regarding /etc/fstab synax.
 How can I use spaces and quote symbols in my device name?
 I tried to use double quotes and backslash, but no luck so far.
 I.e. I'd like to put the following line:
 
 /dev/msdosfs/MY FLASH /mnt/flash msdosfs rw,noauto 0 0
 
 Any ideas?
 
Unfortunatelly, spaces are not allowed in fstab syntax. I also have tried it 
before and figured out that there is no way to insert spaces in a folder or 
device name.

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


apache22 and new hostname???

2010-01-30 Thread Gary Kline

Guys,

As some of you might know, i am trying to host a friend's website on my
DNS and web server.  Can anybody suggest what i have to add to my
/usr/local/etc/apache22/* files and directories to get 
http://www.anacondabuilders.us to display since I do not own this
domain .  My builder friend, Steven Ross just bought the website.  I am
trying to get his .us site be served on my DNS server; in my 
/etc/namedb/* files.

Steven's needs as a builder, home-repair, home-improvement, etc, are
much simpler than my own web sites: basically one page with a few lines
of text and photos of his work.   Since I am the {throat-clearing here}
designer, the KISS philosophy servers well.  But I do need the basics
of having/serving/hosting two domains on one computer.

gary



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

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


Re: apache22 and new hostname???

2010-01-30 Thread Matt Emmerton

Gary,

But I do need the basics of having/serving/hosting two domains on one 
computer.


What you are looking for are called virtual hosts.
See the examples in /usr/local/etc/apache22/extra/httpd-vhosts.conf.
The Apache documentation (mentioned in the above file) is also helpful.

Regards,
--
Matt Emmerton 


___
freebsd-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: Recommendation on GPS time source for FreeBSD

2010-01-30 Thread David Kelly


On Jan 30, 2010, at 3:51 AM, Per olof Ljungmark wrote:


Hi all,

Does anyone have a recommendation on a good GPS receiver/board for  
use with NTP/FreeBSD to create a stratum 1 public time server?


Preferably something above the Garmin puck level but not  
ridiculously expensive either...



Why would you want something more than the Garmin puck?

I have a couple of instrumentation grade GPS's at work but their  
primary justification is to generate IRIG time to sync a multitude of  
instruments which expect a time signal in IRIG format.


--
David Kelly N4HHE, dke...@hiwaay.net

Whom computers would destroy, they must first drive mad.

___
freebsd-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: Pain finding packages

2010-01-30 Thread Kurt Buff
On Sat, Jan 30, 2010 at 10:48, Joe Springer joe...@yahoo.com wrote:
 Hi.

 I am very new to FreeBSD with several years of Linux experience. After 
 installed FreeSDB for the first time, I wanted to install some packages. For 
 example, samba.

 I found that

   pkg_add -r samba

 fails. I need to know specifically the samba version to install it.

 To install, I needed do this:
   pkg_add -r samba3

 This is difficult. Do I need to look up every package in advance on your 
 website to understand what version I need to install?

 Isn't there a way to specify Install the latest version of some package that 
 is appropriate to the version of my installed FreeBSD?

 Thanks,
 Joe

Not really.

However, you should have installed a copy of the ports tree during the
creation of your machine.

Here are your tools: csup (or portsnap, either of which will keep your
ports tree current), portupgrade (or portmaster or one of a couple of
others, to upgrade your current ports) and make. csup is native, and
portupgrade seems to be more commonly used than the others of its
kind.

For make, do the following, after csup (or an alternative):

 cd /usr/ports
 make search name=samba | less
or
 cd /usr/ports
 make search key=samba | less

Then browse that list to see what most particularly applies to your needs.


HTH,

Kurt
___
freebsd-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: Problems with make clean

2010-01-30 Thread Kevin Kinsey

Frank Wißmann wrote:

Hi, Beasties!
I just installed the new VirtualBox through ports. It worked fine, but 
now I have trouble cleaning the directory. Neither make clean nor a 
rm -rf work/ do what they are supposed to. Here is the output:


rm: 
work/virtualbox-3.0.51r22902/out/freebsd.amd64/debug/obj/VBoxRT/VBox: 
Directory not empty


No explanation, sorry.  Have you tried

$chflags -R nosch work
$rm -rf work

?

HTH,

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


Generating normally distributed random numbers.

2010-01-30 Thread Rolf Nielsen

Hi all,

I am working on a project where I have the need to generate normally 
distributed random positive integers, preferably unsigned 64 bit (or 
even longer if possible) integers. More specifically, I will need the 
ability to supply the expected value and the standard deviation for the 
desired distribution, so a standard normal distribution will not do.


Is there anyone out there who knows how to accomplish this? I have no 
idea whatsoever, and for all I know there may already be a function that 
does this in the math library. I'm quite accomplished when it comes to 
math, but strangely I've never programmed computers for it.


Any help will greatly appreciated.

Cheers,

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


Nehelem 64 bit, kern conf and /etc/make.conf

2010-01-30 Thread Nerius Landys
I just installed FreeBSD 8.0 (amd64) onto my new Nehalem-based system.

CPU: Intel(R) Xeon(R) CPU   L5506  @ 2.13GHz (2128.00-MHz K8-class CPU)
  Origin = GenuineIntel  Id = 0x106a5  Stepping = 5
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
  
Features2=0x9ce3bdSSE3,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,DCA,SSE4.1,SSE4.2,POPCNT
  AMD Features=0x28100800SYSCALL,NX,RDTSCP,LM
  AMD Features2=0x1LAHF
  TSC: P-state invariant


I am now in the process of configuring the kernel config file.

A few questions;

1. Is the kernel config file I want to modify
/usr/src/sys/amd64/conf/GENERIC ?  (Copy that file as /root/PORKY, and
set up a symlink from /usr/src/sys/amd64/conf to /root/PORKY.)

2. What should I set this line to:
cpu HAMMER
Right now it's HAMMER, I have no idea what Hammer is.  What would be
the best thing to set it to?  I want to be as specific as possible for
my CPU type.

3. The instructions here:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html
mention a line like this:
machinei386
(which would probably by amd64 in my case), but the machine line
is missing entirely from GENERIC conf file.  Should I add it?

4. In /etc/make.conf, I'm used to having, for example:
CPUTYPE?=core2
What would be my CPU in this case (Xeon L5506)?  I know this line is
not necessary, but I'd like to set it to the most specific kind of CPU
possible for my case to gain any optimizations, so long as it does not
make my system unstable.
___
freebsd-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: Generating normally distributed random numbers.

2010-01-30 Thread J65nko
On Sun, Jan 31, 2010 at 4:30 AM, Rolf Nielsen
listrea...@lazlarlyricon.com wrote:

 I am working on a project where I have the need to generate normally
 distributed random positive integers, preferably unsigned 64 bit (or even
 longer if possible) integers. More specifically, I will need the ability to
 supply the expected value and the standard deviation for the desired
 distribution, so a standard normal distribution will not do.

 Is there anyone out there who knows how to accomplish this? I have no idea
 whatsoever, and for all I know there may already be a function that does
 this in the math library. I'm quite accomplished when it comes to math, but
 strangely I've never programmed computers for it.


http://en.wikipedia.org/wiki/Random_number_generator#Generation_from_a_probability_distribution
refers to two methods.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Help! Upgrade from fbsd 5.4 to 8.x

2010-01-30 Thread Jeff Mitchell


Hello my friends,

	I've just noticed one of my beloved headless shell boxen is 
FreeBSD 5.4; its a workhorse I've been neglecting far too long and I'd 
really like to bring it up to 'current' (say fbsd 8.x). For awhile it was 
held back by very specific applications I had to support, but I'm in the 
clear now.


	Given the age of the installation, I'm wondering what the 
recommended upgrade path would be.


	ie: This machine has a lot going on .. wiki's (ie: apache et al), 
mysql databases, mailing lists, and a dozen hand rolled applications. 
(Hey, someone has to write custom emulators of ancient systems to keep 
BBSes alive, right?) Naturally, /etc is modified all to hell, and I'm 
terrified of any automated upgrades for fear random things would just not 
work later. Especially with the age... Things work great, but I worry 
about security naturally, and keeping up with patches or installing 
anything new is a nightmare due to dependancies.


	o I should be able to identify most important changes and data; 
/etc, /home, the kernel build path so I've got the old kernel conf files I 
used for this machine (yay!), /usr/local was used instead of polluting 
/usr-proper, etc.


	o I'd love if I coudl do an upgrade, and things would still work; 
I mean, from samba configuration etc and so on, eveyrthign is great. I 
realize this is unlikely though .. upgrading services likely means conf 
changes all over the random place, etc.


	o Some of the executables on this box are without source but I 
still need them to run; short of moving them to a VM and doing some 
voodoo, what are the chances a binary built for fbsd 5.x works fine in 
8.x? (earlier fbsd's had the break between gcc versions, but I'm rather 
hoping thats not a problem here.)

gcc (GCC) 3.4.2 [FreeBSD] 20040728

The obvious options are..

	1 - upgrade step by step; go from fbsd 5.4 to 6.4 (say) to 7.2 
(say) to 8.0


2 - one big-ass upgrade from 5.4 to 8 (*fear*)

	3 - yank the drive, slap a giant new fat drive in there, do a full 
fbsd 8.0 install, and then migration from old drive as needed


	Strikes me most people will recommend (3) -- nice big new drive, 
no risk of destroying a working machine (can always slap old drive back 
in), easy migration of service by service, etc and so on. Strikes me as a 
PITA, but then again .. the others are probably all PITAs as well given 
the age of the box. Something will break, so maybe its best to just start 
fresh with a nice new install and go from there.


*ugh* but that'll teach me to stay on top of it more :)

	Aside -- whats the recommended way to stay on top of upgrades 
anyway? It used to be a tortuous process back 5 years ago, but hopefully 
things are much more streamlined now .. nightly 'make upgrade' ftw :)


jeff

--
If everyone would put barbecue sauce on their food, there would be no war.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Help! Upgrade from fbsd 5.4 to 8.x

2010-01-30 Thread Amitabh Kant
On Sun, Jan 31, 2010 at 9:38 AM, Jeff Mitchell skee...@skeleton.org wrote:


Hello my friends,

I've just noticed one of my beloved headless shell boxen is FreeBSD
 5.4; its a workhorse I've been neglecting far too long and I'd really like
 to bring it up to 'current' (say fbsd 8.x). For awhile it was held back by
 very specific applications I had to support, but I'm in the clear now.

Given the age of the installation, I'm wondering what the
 recommended upgrade path would be.

The obvious options are..

1 - upgrade step by step; go from fbsd 5.4 to 6.4 (say) to 7.2 (say)
 to 8.0

2 - one big-ass upgrade from 5.4 to 8 (*fear*)

3 - yank the drive, slap a giant new fat drive in there, do a full
 fbsd 8.0 install, and then migration from old drive as needed


I would suggest going in for 3 too, but then you would get better
suggestions on this list.



Aside -- whats the recommended way to stay on top of upgrades
 anyway? It used to be a tortuous process back 5 years ago, but hopefully
 things are much more streamlined now .. nightly 'make upgrade' ftw :)

jeff


Take a look at freebsd-update (
http://www.freebsd.org/doc/en/books/handbook/updating-freebsdupdate.html).

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