Hardware support for Shuttle SX38P2 Pro

2010-11-21 Thread Ben Quick

 Hi all,
 This is the first question I've asked on here, hopefully I've got all 
the required detail in.


I'm thinking of buying a Shuttle SX38P2 Pro 
(http://www.shuttle.eu/products/mini-pc/sx38p2-pro/specification/) to 
run FreeBSD 8.1 onwards. I'll be using the machine as a desktop and home 
server. A bit of coding, nothing special, and running a few jails. But, 
before making the purchase I want to make sure the hardware is supported.


From the Shuttle spec sheet above, the sound card mentions ALC888DD and 
the FreeBSD supported hardware list states that ALC888 is supported 
under snd_hda. Is the 'DD' important? Would sound still work? My 
assumption is that sound would work, but I'd possibly lose the surround 
sound or something?


The NIC appears to be Marvell 88E8056, which seems to have full support 
using the msk driver. I've never heard of this manufacturer before, 
there aren't any gotchas I need to be aware of are there?


There are two things on the Shuttle spec sheet that I'm unsure of. They are:

* Intel X38 Express (MCH) + ICH9R (I/O Conroller Hub)
* Intel Matrix Storage Technology

I don't really know what either of them are. I'm assuming the Matrix 
Storage is the RAID controller. Is this supported? If not, I'll just use 
gmirror, but will obviously have to be able to access the disks in the 
first instance.


From the Shuttle spec sheet, I can't tell what video card is installed. 
Does anybody know? Is it supported? Initially, I'll be using only one 
monitor, but would intend to have both outputs in use in the longer term.


Sorry, I know there's a lot of questions in there, but I've been unable 
to find the answered for myself so far.


If anyone could shed any light on this, I'd really appreciate it.

Thanks!

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


More On Samba And Softupdates

2010-11-21 Thread Tim Daneliuk
The other day I mentioned I had a problem with a Samba-shared drive that
was just installed blowing up.  When I rebuilt it, I forgot to enable
softupdates but the drive seems to be working flawlessly.  I understand 
it is possible to do this after-the-fact with tunefs.  Some questions:

   Do I have to unmount the drive to do it?   
   What benefit will I get if I turn on softupdates?
 
This drive is being used as a backup drive for all the workstations on 
this particular network, and reliable is much more important than 
slightly faster.
-- 

Tim Daneliuk tun...@tundraware.com
PGP Key: http://www.tundraware.com/PGP/

___
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: Hardware support for Shuttle SX38P2 Pro

2010-11-21 Thread Maciej Milewski
On Sunday 21 November 2010 17:19:05, Ben Quick wrote:
 I don't really know what either of them are. I'm assuming the Matrix
 Storage is the RAID controller. Is this supported? If not, I'll just use
 gmirror, but will obviously have to be able to access the disks in the
 first instance.
AFAIK this matrix storage is supported by ataraid driver.
I think using gmirror or zfs is better than ataraid.

  From the Shuttle spec sheet, I can't tell what video card is installed.
 Does anybody know? Is it supported? Initially, I'll be using only one
 monitor, but would intend to have both outputs in use in the longer term.
From the pic: http://www.shuttle.eu/press/image-resources/sx38p2-
pro/b5ebb3b485/?tx_chgallery_pi1%5Bsingle%5D=2
It looks there is no onboard graphics card. You need to buy it separately.

Maciej
___
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: Hardware support for Shuttle SX38P2 Pro

2010-11-21 Thread Ben Quick

 On 21/11/2010 17:25, Maciej Milewski wrote:

On Sunday 21 November 2010 17:19:05, Ben Quick wrote:

I don't really know what either of them are. I'm assuming the Matrix
Storage is the RAID controller. Is this supported? If not, I'll just use
gmirror, but will obviously have to be able to access the disks in the
first instance.

AFAIK this matrix storage is supported by ataraid driver.
I think using gmirror or zfs is better than ataraid.


Nice one, thank you


   From the Shuttle spec sheet, I can't tell what video card is installed.
Does anybody know? Is it supported? Initially, I'll be using only one
monitor, but would intend to have both outputs in use in the longer term.

 From the pic: http://www.shuttle.eu/press/image-resources/sx38p2-
pro/b5ebb3b485/?tx_chgallery_pi1%5Bsingle%5D=2
It looks there is no onboard graphics card. You need to buy it separately.


My mistake, sorry for the noise

Thanks
Ben


Maciej
___
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: More On Samba And Softupdates

2010-11-21 Thread Adam Vande More
On Sun, Nov 21, 2010 at 10:56 AM, Tim Daneliuk tun...@tundraware.comwrote:


 This drive is being used as a backup drive for all the workstations on
 this particular network, and reliable is much more important than 
 slightly faster.


As someone already said, SU is probably not the culprit here.  I've used
Samba + SU for a long time with no such problems although I have no current
setups to verify.

SU substantially increases disk IO, it's not 'slightly faster' it's much
faster.  The error you see is probably the result of flaky drive or
controller as the additional IO provided by SU allows the flakiness to show
through.  Although from what you describe my choice for the drive would be
gjournal + UFS.  If you've got a lot of asynchronous IO that's a better
solution.

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


Re: More On Samba And Softupdates

2010-11-21 Thread Michael Powell
Tim Daneliuk wrote:

 The other day I mentioned I had a problem with a Samba-shared drive that
 was just installed blowing up.  When I rebuilt it, I forgot to enable
 softupdates but the drive seems to be working flawlessly.  I understand
 it is possible to do this after-the-fact with tunefs.  Some questions:
 
Do I have to unmount the drive to do it?
What benefit will I get if I turn on softupdates?
  
 This drive is being used as a backup drive for all the workstations on
 this particular network, and reliable is much more important than 
 slightly faster.

As per man tunefs:

The tunefs utility cannot be  run on an active file system.  To change an 
active file system, it must  be downgraded to read-only or unmounted.

The benefit is not just speed, but better concurrent multi-user throughput. 
Operations which would block other I/O finish sooner so the next task can 
begin without waiting.

I actually run mine with aio_load=YES in loader.conf in conjunction with 
the following in smb.conf:

aio read size = 16384
aio write size = 16384
aio write behind = true
block size = 16384
use sendfile = Yes

Minor performance tweaks aside, should you continue to see the error(s) 
described in the other mail I sincerely suspect softupdates is not the 
culprit.

-Mike


___
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 8 php 52 extensions dependency on X11 ???

2010-11-21 Thread Matthew Seaman
On 20/11/2010 16:26, Alejandro Imass wrote:
 Hi,
 
 Whilst installing some (many) of the php 52 extensions in a jail I
 suddenly realized I was about to install X11 and a whole bunch of x11
 related deps.
 Can some kind soul explain to me which php 52 extension requires X11
 ??? Should it not say it EXPLICITLY??? !!!

php-gd is the usual culprit.  You can play with the OPTIONs for
installing the GD library to reduce your X dependency.

I don't know, off hand, if php-gd is the only php module that brings in
a dependency on X, but it is certainly the one most commonly encountered.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


pcpu.h: No such file or directory

2010-11-21 Thread Janos Dohanics
I took a crash dump just as a test, and I noticed this:

#0  doadump () at pcpu.h:224
224 pcpu.h: No such file or directory.
in pcpu.h
(kgdb) #0  doadump () at pcpu.h:224
#1  0x805b381e in boot (howto=256)
at /usr/src/sys/kern/kern_shutdown.c:419
#2  0x805b3d1c in reboot (td=0xff00028f08c0, 
uap=0xff8123f57bb0) at /usr/src/sys/kern/kern_shutdown.c:176
#3  0x805f1be5 in syscallenter (td=0xff00028f08c0, 
sa=0xff8123f57ba0) at /usr/src/sys/kern/subr_trap.c:315
#4  0x8089cc3b in syscall (frame=0xff8123f57c40)
at /usr/src/sys/amd64/amd64/trap.c:889
#5  0x80885752 in Xfast_syscall ()
at /usr/src/sys/amd64/amd64/exception.S:377
#6  0x00080078e16c in ?? ()
Previous frame inner to this frame (corrupt stack?)

This is a fresh installed FreeBSD 8.1-STABLE amd64 system, I have
rebuilt kernel and world last night.

Is this something to worry about?

-- 
Janos Dohanics
w...@3dresearch.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: FBSD 8 php 52 extensions dependency on X11 ???

2010-11-21 Thread Alejandro Imass
On Sun, Nov 21, 2010 at 3:51 PM, Matthew Seaman
m.sea...@infracaninophile.co.uk wrote:
 On 20/11/2010 16:26, Alejandro Imass wrote:
 Hi,

 Whilst installing some (many) of the php 52 extensions in a jail I
 suddenly realized I was about to install X11 and a whole bunch of x11
 related deps.
 Can some kind soul explain to me which php 52 extension requires X11
 ??? Should it not say it EXPLICITLY??? !!!

 php-gd is the usual culprit.  You can play with the OPTIONs for
 installing the GD library to reduce your X dependency.


Yeah, I don't mind the X _library_ dependencies, headers etc., but the
ming port carries a dependency called Accerciser which is an
interactive Python accessibility explorer for the GNOME desktop! As
to why the Ming FBSD port depends on Accerciser beats me, because
after reading the PHP docs on Ming it's even supposed to compile on
Windoze as an alternative to the closed source proprietary libswf PHP
extension, and I doubt the PHP folks depend on some Python Gnome
interactive tool. The Accerciser dependency depends in turn on Python
of course, and Xvfb and that of course depends on a complete xorg
install, which is a lot different that depending on a bunch of X libs.

That PHP in particular was the main problem in my case.

 I don't know, off hand, if php-gd is the only php module that brings in
 a dependency on X, but it is certainly the one most commonly encountered.


Thanks for the info!
___
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: Fwd: FBSD 8 php 52 extensions dependency on X11 ???

2010-11-21 Thread doug



On Sat, 20 Nov 2010, Alejandro Imass wrote:


On Sat, Nov 20, 2010 at 1:22 PM, Amitabh Kant amitabhk...@gmail.com wrote:




Thanks for the tip. The ming extension was in fact the culprit. Now
I'm guessing there must be a way to recursively analyze dependencies!


   pkg_info -rRx ming
   pkg_tree


Anyway, IMHO the comment on the ming module should state clearly that
it requires a complete X server. Granted though, I shouldn't have
selected that extension anyway, I did by mistake, so maybe if I knew
what it was it would have been obvious, who knows...


___
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


TLS enabled LDAP, clients fail to connect

2010-11-21 Thread bluethundr
I am attempting to setup SSL/TLS support on my openLDAP 2.4 server on FreeBSD.

LBSD2# pkg_info | grep openldap
openldap-sasl-client-2.4.23 Open source LDAP client implementation
with SASL2 support
openldap-sasl-server-2.4.23 Open source LDAP server implementation

I put my cert file, key file and CA certfile in a directory called
/usr/local/etc/openldap/cacerts

Here's how it looks:

[r...@lbsd2:/usr/local/etc/openldap/cacerts]#ls -l
total 48
dr--r-  2 root  ldap   512 Nov 21 17:12 bak
-r--r-  1 root  ldap  1960 Nov 21 07:05 bsd2.summitnjhome.com.crt
-r--r-  1 root  ldap  4604 Nov 21 17:16 gd_bundle.crt
-r--r-  1 root  ldap  4689 Nov 21 18:59 sf_bundle.crt
-r--r-  1 root  ldap  1537 Nov 21 17:16 sf_issuing.crt
-r--r-  1 root  ldap  1090 Nov 21 12:29 slapd.csr
-r--r-  1 root  ldap  1743 Nov 21 12:26 slapd.key
-r--r-  1 root  ldap  1675 Nov 21 17:25 slapd.pem


My cert flie is a GoDaddy turbo-ssl certfile named
bsd2.summitnjhome.com.crt. slapd.key is the key file and slapd.pem is
the same thing only with the password removed.

I'm a little unsure of which CA file to use but I think that
sf_issuing.crt _should_ work as this is the CA file that I used to
setup a similar SSL enabled LDAP server for a client recently.
Although I have tried all three CA files in this directory:
(gd_bundle.crt, sf_bundle.crt, and sf_issuing.crt).

I put the various cert/key files into my slapd.conf file like this:

LBSD2# cat slapd.conf | grep -i tls
## TLS options for slapd
TLSCipherSuite HIGH:MEDIUM:+SSLv2
TLSCertificateFile  /usr/local/etc/openldap/cacerts/bsd2.summitnjhome.com.crt
TLSCertificateKeyFile /usr/local/etc/openldap/cacerts/slapd.pem
TLSCACertificateFile  /usr/local/etc/openldap/cacerts/sf_issuing.crt


Slapd restarts cleanly!

LBSD2# /usr/local/etc/rc.d/slapd restart
Stopping slapd.
Waiting for PIDS: 81924.
Starting slapd.


Then I attempt to setup a virtual instance of CentOS 5.5 on the client
side and that's where things fall apart...I attempt to ssh to
localhost as an LDAP account:

[r...@virtcent08:/etc/openldap/cacerts]#ssh bluethu...@localhost

[...tectonic plates drift, careers begin and end, babies learn to
walk, talk and grow to adulthood..]

Connection closed by 127.0.0.1

[r...@virtcent08:/etc/openldap/cacerts]#getent passwd | grep ldapAccount
[same interminable wait as above]


This is what my /etc/ldap.conf file looks like on the client:

[r...@virtcent08:/etc/openldap/cacerts]#cat /etc/ldap.conf
# Your LDAP server. Must be resolvable without using LDAP.
# Multiple hosts may be specified, each separated by a
# space. How long nss_ldap takes to failover depends on
# whether your LDAP client library supports configurable
# network or connect timeouts (see bind_timelimit).
#host 127.0.0.1
# The distinguished name of the search base.
base dc=summitnjhome,dc=com
# stored in /etc/ldap.secret (mode 600)
#rootbinddn cn=manager,dc=example,dc=com
# The port.
# Optional: default is 389.
#port 389
# Search timelimit
#timelimit 30
timelimit 120
# Bind/connect timelimit
#bind_timelimit 30
bind_timelimit 120
# Idle timelimit; client will close connections
# (nss_ldap only) if the server has not been contacted
# for the number of seconds specified below.
#idle_timelimit 3600
idle_timelimit 3600
# Netscape SDK LDAPS
#ssl on
# Netscape SDK SSL options
#sslpath /etc/ssl/certs
# OpenLDAP SSL mechanism
# start_tls mechanism uses the normal LDAP port, LDAPS typically 636
#ssl start_tls
#ssl on
# OpenLDAP SSL options
# Require and verify server certificate (yes/no)
# Default is to use libldap's default behavior, which can be configured in
# /etc/openldap/ldap.conf using the TLS_REQCERT setting.  The default for
# OpenLDAP 2.0 and earlier is no, for 2.1 and later is yes.
#tls_checkpeer yes
# CA certificates for server certificate verification
# At least one of these are required if tls_checkpeer is yes
#tls_cacertfile /etc/ssl/ca.cert
#tls_cacertdir /etc/ssl/certs
# SSL cipher suite
# See man ciphers for syntax
#tls_ciphers TLSv1
# Client certificate and key
# Use these, if your server requires client authentication.
#tls_cert
#tls_key
# SASL mechanism for PAM authentication - use is experimental
# at present and does not support password policy control
uri ldap://ldap.summitnjhome.com/
ssl start_tls
tls_cacertdir /etc/openldap/cacerts
pam_password crypt

This is how my nsswitch on the client side is setup:

passwd: files ldap
shadow: files ldap
group:  files ldap

And here is the cert dir on my CentOS client:

[r...@virtcent08:/etc/openldap/cacerts]#ls -l
total 72
lrwxrwxrwx 1 root root   13 Nov 21 09:44 97552d04.0 - gd_bundle.crt
lrwxrwxrwx 1 root root   14 Nov 21 09:44 b737b221.0 - sf_issuing.crt
dr--r--r-- 2 root root 4096 Nov 21  2010 bak
-r--r--r-- 1 root root 1960 Nov 21 07:05 bsd2.summitnjhome.com.crt
lrwxrwxrwx 1 root root   25 Nov 21 09:44 c75be861.0 - bsd2.summitnjhome.com.crt
-r--r--r-- 1 root root 4604 Nov 21  2010 gd_bundle.crt
-r--r--r-- 1 root root 1537 Nov 21  2010 

where is my text file?

2010-11-21 Thread Gary Kline

I was using vim to vreate a file and cleaned up file~.  now when i 
type vim file  I only see data?  is there a w ay of recovering the
file or  did I screw ssomething up?

tia,

gary



-- 
 Gary Kline  kl...@thought.org  http://www.thought.org  Public Service Unix
   Journey Toward the Dawn, E-Book: http://www.thought.org
  The 7.97a release of Jottings: http://jottings.thought.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: More On Samba And Softupdates

2010-11-21 Thread Adam Vande More
On Sun, Nov 21, 2010 at 2:16 PM, Adam Vande More amvandem...@gmail.comwrote:

 Although from what you describe my choice for the drive would be gjournal +
 UFS.  If you've got a lot of asynchronous IO that's a better solution.


Instead of asynchronous, I meant multi-threaded.  gjournal + UFS handles
concurrency better.


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