Re: Advise for buying a Refurbished machine

2009-07-10 Thread Olivier Nicole
Hi,

 2) please advice me If I buy this machine is that a wise decision or
 refurbished machines are of high risk ?

You have to ponder the fact that notebook are always fragile machines:

- they are moved around often, so more subject to miss handeling (a
  notebook is more likely to fall from your lap than a desktop is
  likely to fall from your desk)

- they are compact, less ventilation, more subject to over heating =
  component aging faster

- they use smaller components, so less robusts

I would always buy a new machine if I can.

I hope you have a waranty that comes with your refurbished machine.

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: jail/system crash with mount_unionfs

2009-07-10 Thread Ruben de Groot
On Thu, Jul 09, 2009 at 10:37:40AM -0400, Jim typed:
 
 As you can see, there is a work around, so I'm not that /bothered/ by
 this, but it'd be nice to know what's up. Am I doing something wrong?
 If not, can anyone replicate this? Should I file a bug report?

according to the manpage, unionfs is still buggy in 7.2:

BUGS
 THIS FILE SYSTEM TYPE IS NOT YET FULLY SUPPORTED (READ: IT DOESN'T WORK)
 AND USING IT MAY, IN FACT, DESTROY DATA ON YOUR SYSTEM.  USE AT YOUR OWN
 RISK.  BEWARE OF DOG.  SLIPPERY WHEN WET.

I'm using nullfs to do what you're trying and it just works.

regards,
Ruben

___
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


Out of memory during request for 32 bytes

2009-07-10 Thread Per olof Ljungmark
Apache web server on 7-STABLE running nagios and OTRS. My problem is I
cannot understand what I should increase to satisfy those memory-hungry
Perl scripts?

Out of memory during request for 32 bytes, total sbrk() is 17192960 bytes!
Out of memory during request for 4072 bytes, total sbrk() is 17192960 bytes!
Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at /usr/local/lib/perl5/site_perl/5.8.9/CGI/Carp.pm line 553.
Global $r object is not available. Set:
PerlOptions +GlobalRequest
in httpd.conf at /usr/local/lib/perl5/site_perl/5.8.9/CGI/Carp.pm line 553.

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


Strange behaviour on Gnome with FreeBSD-7.2

2009-07-10 Thread Manish Jain


Hello,

This message was earlier posted to freebsd-gnome, from where there was 
no response. I am consequently re-posting to freebsd-questions in hope 
of something better.


I had FreeBSD-7.2 on my system a few days back, but had to reinstall it 
afresh last week. In the new install, I did not install any packages 
from the distribution media. Instead I built everything from ports. The 
previous installation used gnome packages from the distribution media 
itself.


There is one problem that I faced with the old installation and am 
facing with the new installation as well. Upon startx, all font sizes 
(application, desktop, document, fixed, window title) are always one 
unit less (in size) compared to what they are set. The moment I 
right-click on the desktop and select 'Change desktop background', the 
font sizes get incremented to the correct values everywhere.


With the new installation, I am facing additional - and much more 
serious - problems, maybe on account of something I have missed.


1) Window applications which normally remember their size and position 
(eg, Nautilus) have lost this capability. Now I have to resize and 
reposition these windows each time I exec gnome-session from .xinitrc


2) Resizing/repositioning windows happens in slow, jittery movements 
with the display getting wavy till the window is dropped into its 
desired size/position


3) Scrolling up and down a window (eg in Firefox3, Nautilus) using the 
mouse or the scrollbar is painfully slow, with the display again getting 
highly wavy.



If anybody has any clue what could possibly be wrong with my setup, I 
would be grateful to find out what.



Thanks in advance

--
Regards
Manish Jain
invalid.poin...@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: Out of memory during request for 32 bytes

2009-07-10 Thread Wojciech Puchar

do uname -a

if you are on 32-bit arch you may add

kern.dfldsiz=2147483648
kern.maxdsiz=2147483648


to /boot/loader.conf


but most likely you'll need to edit /etc/login.conf
On Fri, 10 Jul 2009, Per olof Ljungmark wrote:


Apache web server on 7-STABLE running nagios and OTRS. My problem is I
cannot understand what I should increase to satisfy those memory-hungry
Perl scripts?

Out of memory during request for 32 bytes, total sbrk() is 17192960 bytes!
Out of memory during request for 4072 bytes, total sbrk() is 17192960 bytes!
Global $r object is not available. Set:
   PerlOptions +GlobalRequest
in httpd.conf at /usr/local/lib/perl5/site_perl/5.8.9/CGI/Carp.pm line 553.
Global $r object is not available. Set:
   PerlOptions +GlobalRequest
in httpd.conf at /usr/local/lib/perl5/site_perl/5.8.9/CGI/Carp.pm line 553.

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


Re: Advise for buying a Refurbished machine

2009-07-10 Thread Wojciech Puchar

  I need an advice  from  FreeBSD users.  I would like to buy a  refurbished 
notebook from IBM.

Model   IBM T60I heard  T60 series are excellent ?


i heard too. but my T23 is :)



Please see this URL   and apecifications  of the notebook 
http://www-304.ibm.com/shop/americas/webapp/wcs/stores/servlet/default/ProductDisplay?productId=4611686018425958881storeId=1langId=-1categoryId=2576396dualCurrId=73catalogId=-840

I want to know
1)  whether this notebook go well with FreeBSD-7.x  versions ?



should work. buying used older machine is actually low risk route. newer 
are usually less compatible.

___
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: Advise for buying a Refurbished machine

2009-07-10 Thread Wojciech Puchar

My loader.conf includes a few thinkpad-specific bits, like:

 # Intel wireless WiFi Link 4965AGN driver options.
 legal.intel_iwn.license_ack=1
 if_iwn_load=YES

 # Autoloaded modules.
 acpi_ibm_load=YES
 snd_hda_load=YES


i needed only last 2 lines on my T31.

Anyway acpi_ibm is really useful, like dev.acpi_ibm sysctl node - setting 
manual/automatic fan speeds etc.



It is not obvious from the webpage you pasted if the T60 you are going
to buy uses an Intel or ATI VGA chipset.  I generally opt for Intel VGA


At least intels are really supported with open sources.

___
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: Advise for buying a Refurbished machine

2009-07-10 Thread Wojciech Puchar

You have to ponder the fact that notebook are always fragile machines:

- they are moved around often, so more subject to miss handeling (a
 notebook is more likely to fall from your lap than a desktop is
 likely to fall from your desk)

- they are compact, less ventilation, more subject to over heating =
 component aging faster

- they use smaller components, so less robusts


And the newer notebook is - the more cheaply it's made.. If you have old 
and new laptop, most probably new one will break first ;)

___
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


FTP Server for individual client spaces

2009-07-10 Thread RS Wood
I run a small engineering company* that exchanges large files (CAD,
etc.) with clients, and I want to keep the docs off my email server by
setting up a stand alone FTP server where each client can upload and
download its relevant files.  As such, my own users/employees should be
able to reach every client’s FTP space but each client should only be
able to reach his own.  As my users finish a doc, they place it in that
client’s FTP directory and the client can log in and get it.  As such,
I don’t want any form of unauthenticated FTP.

I’ve tried different combinations of group names and directory
permissions without success, but chrooting users doesn’t seem to solve
my problem either, and my two favorite BSD books – Tiemann et. al.
(Unleashed) and Lucas (Absolute) take the same approach the man pages
do, in my opinion, which guides you either into an all anonymous system,
or a system suitable for organizations such as software distributors in
which clients/users authenticate but then all access the same directory
(/pub for example).  I could use some help conceptualizing this.

Is the solution ftpchroot?  If so, it’s not clear how I can chroot
each potential client into his own directory, as my understanding is
that all chrooted users wind up at the same place (like /var/ftp/pub). 
Or is the solution that each client gets access to his own home
directory; if so, how do I ensure my staff has access to each client’s
home directory?  Lastly, I’ve also been reading up on PureFTP, which
seems to have some advanced configuration potential (including LDAP
authentication, something else that interests me) but it’s not clear
that using an alternative product is indicated here.
This seems like something other organizations must have dealt with, so I
must be missing something fundamental.  Can someone point me in the
right direction?

Finally, I’m aware FTP has inherent security liabilities as passwords
cross the net in clear text, but I’m not convinced casual users on
Windows boxes will be able to manage fun stuff like SSH connections or
alternative software, like SCP.  In my experience, the “modern”
windows user accesses FTP sites using Internet Explorer, which is
tremendously underwhelming.  As such I am choosing a stand alone box on
which no other services are running (mail, X, etc.).  Am I right?  Or is
there some better method that won’t be too complex for the casual
Windows user?

Thanks advance for the pointers.

Randy
--
www.therandymon.com

*Actually, this is all hypothetical, but I’m learning server admin so
I can cross this bridge when the time comes, and having a lot of fun,
naturally, since right now my screw ups don’t count!
___
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: FTP Server for individual client spaces

2009-07-10 Thread Jonathan McKeown
On Friday 10 July 2009 16:10:24 RS Wood wrote:
 I run a small engineering company* that exchanges large files (CAD,
 etc.) with clients, and I want to keep the docs off my email server by
 setting up a stand alone FTP server where each client can upload and
 download its relevant files.  As such, my own users/employees should be
 able to reach every client’s FTP space but each client should only be
 able to reach his own.  As my users finish a doc, they place it in that
 client’s FTP directory and the client can log in and get it.  As such,
 I don’t want any form of unauthenticated FTP.
[snip]
 Is the solution ftpchroot?  If so, it’s not clear how I can chroot
 each potential client into his own directory, as my understanding is
 that all chrooted users wind up at the same place (like /var/ftp/pub).
 Or is the solution that each client gets access to his own home
 directory; if so, how do I ensure my staff has access to each client’s
 home directory?

I haven't tried this, but man ftpd.conf suggests something along the lines of:

chroot chroot /some/path/%u

where the second chroot is the ftp class, and %u will be expanded to the 
username. Make sure all your external users are in ftp class chroot (by 
putting their usernames in /etc/ftpchroot), and make /some/path group-owned 
and group-readable by a group all your staff are in (the group ownership of a 
directory automatically propagates to new directories created below it).

Let us know how it goes!

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: FTP Server for individual client spaces

2009-07-10 Thread Steve Bertrand
RS Wood wrote:
 I run a small engineering company* that exchanges large files (CAD,
 etc.) with clients, and I want to keep the docs off my email server by
 setting up a stand alone FTP server where each client can upload and
 download its relevant files.  As such, my own users/employees should be
 able to reach every client’s FTP space but each client should only be
 able to reach his own.  As my users finish a doc, they place it in that
 client’s FTP directory and the client can log in and get it.  As such,
 I don’t want any form of unauthenticated FTP.
 
 I’ve tried different combinations of group names and directory
 permissions without success, but chrooting users doesn’t seem to solve
 my problem either, and my two favorite BSD books – Tiemann et. al.
 (Unleashed) and Lucas (Absolute) take the same approach the man pages
 do, in my opinion, which guides you either into an all anonymous system,
 or a system suitable for organizations such as software distributors in
 which clients/users authenticate but then all access the same directory
 (/pub for example).  I could use some help conceptualizing this.
 
 Is the solution ftpchroot?  

It works for us, for the users who still need FTP access:

# cp /sbin/nologin /sbin/ftp-only
# echo /sbin/ftp-only  /etc/shells

# adduser

homedir == /ftp/username
shell   == /sbin/ftp-only

I then:

# cd /ftp/username
# rm -r .*

# echo username  /etc/ftpchroot

Now, you can create staff accounts in the same way, but set their home
directory as /ftp. They'll be able to traverse the entire FTP tree from
there. Just ensure that the /ftp directory structure is owned by a group
that your staff accounts are in, and that all of the sub directories are
modded with appropriate permissions.

 If so, it’s not clear how I can chroot
 each potential client into his own directory, as my understanding is
 that all chrooted users wind up at the same place (like /var/ftp/pub). 
 Or is the solution that each client gets access to his own home
 directory; 

Yes, each to their own home dir.

 if so, how do I ensure my staff has access to each client’s
 home directory?  

I'm assuming that your staff will be using FTP as well. Simply assign
their home directory to the root FTP directory.

 Lastly, I’ve also been reading up on PureFTP, which
 seems to have some advanced configuration potential (including LDAP
 authentication, something else that interests me) but it’s not clear
 that using an alternative product is indicated here.
 This seems like something other organizations must have dealt with, so I
 must be missing something fundamental.  Can someone point me in the
 right direction?
 
 Finally, I’m aware FTP has inherent security liabilities as passwords
 cross the net in clear text, but I’m not convinced casual users on
 Windows boxes will be able to manage fun stuff like SSH connections or
 alternative software, like SCP.  

Provide them a link to a client software that uses SFTP. I use WinSCP
(portable), which defaults to SFTP, and provides the server, username
and password fields as soon as it is launched.

Hope I didn't miss anything ;)

Steve



smime.p7s
Description: S/MIME Cryptographic Signature


Re: FTP Server for individual client spaces

2009-07-10 Thread Dan Nelson
In the last episode (Jul 10), Steve Bertrand said:
 RS Wood wrote:
  Finally, I'm aware FTP has inherent security liabilities as passwords
  cross the net in clear text, but I'm not convinced casual users on
  Windows boxes will be able to manage fun stuff like SSH connections or
  alternative software, like SCP.
 
 Provide them a link to a client software that uses SFTP. I use WinSCP
 (portable), which defaults to SFTP, and provides the server, username and
 password fields as soon as it is launched.

WinSCP is good.  Other nice free SFTP clients are FileZilla (has Windows, OS
X and Unix versions) and muCommander (Java so it will run on anything).

http://www.winscp.net/
http://www.filezilla-project.org/
http://www.mucommander.com/

-- 
Dan Nelson
dnel...@allantgroup.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: Xorg - how can I configure this thing??

2009-07-10 Thread Jakub Lach

Hello.

6.   Make sure the following 2 lines are in /etc/rc.conf: 
 hald_enable=YES 
 dbus_enable=YES

That's not necessary if you (re)configure X server without HAL. Just
pointing, since
lots of people recommends anybody with input problems to add those lines. 

It's still possible to run X server without HAL, even the newest one.

-best regards, 
Jakub Lach

-- 
View this message in context: 
http://www.nabble.com/Xorg---how-can-I-configure-this-thing---tp24417470p24428745.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: FTP Server for individual client spaces

2009-07-10 Thread Ruben de Groot
On Fri, Jul 10, 2009 at 03:10:24PM +0100, RS Wood typed:
 I run a small engineering company* that exchanges large files (CAD,
 etc.) with clients, and I want to keep the docs off my email server by
 setting up a stand alone FTP server where each client can upload and
 download its relevant files.  As such, my own users/employees should be
 able to reach every client???s FTP space but each client should only be
 able to reach his own.  As my users finish a doc, they place it in that
 client???s FTP directory and the client can log in and get it.  As such,
 I don???t want any form of unauthenticated FTP.

Do your employees need access through the same ftp server?
You could serve them any other way (e.g. internally export the entire ftp
tree as an NFS or CIFS share).

___
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


dump hangs on 7.1

2009-07-10 Thread Len Conrad
FreeBSD 7.1-RELEASE #0: Thu Jan  1 14:37:25 UTC 2009 
r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

CPU: Intel(R) Xeon(R) CPU   E5420  @ 2.50GHz (2496.26-MHz 686-class 
CPU) 
  Origin = GenuineIntel  Id = 0x1067a  Stepping = 10
  AMD Features=0x2010NX,LM
  AMD Features2=0x1LAHF
  Cores per package: 4
real memory  = 3484745728 (3323 MB)
avail memory = 3405537280 (3247 MB)
ACPI APIC Table: DELL   PE_SC3  
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3


/sbin/dump -0uanL -f - / | ssh dump_ima...@xxx.net dd 
of=/var/ftp/dump_images/mx1-root-test

dump has completed only once. Several other dumps have all gotten under way, 
target file is created and increases until the hang.  

CTRL-C gets back to shell,eg:

  DUMP: Date of this level 0 dump: Fri Jul 10 10:25:33 2009
  DUMP: Date of last level 0 dump: the epoch
  DUMP: Dumping snapshot of /dev/da0s1d (/usr) to standard output
  DUMP: mapping (Pass I) [regular files]
  DUMP: mapping (Pass II) [directories]
  DUMP: estimated 1713942 tape blocks.
  DUMP: dumping (Pass III) [directories]
  DUMP: dumping (Pass IV) [regular files]
^C  DUMP: Interrupt received.
  DUMP: Do you want to abort dump?: (yes or no) Killed by signal 2.
  DUMP: Broken pipe
  DUMP: The ENTIRE dump is aborted.

Hangs always in Pass IV

Plenty of google hits for dump hang freebsd 7.1 but I can't find one with a 
solution.

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: Advise for buying a Refurbished machine

2009-07-10 Thread Charlie Kester

On Fri 10 Jul 2009 at 07:10:20 PDT Wojciech Puchar wrote:

You have to ponder the fact that notebook are always fragile machines:

- they are moved around often, so more subject to miss handeling (a
notebook is more likely to fall from your lap than a desktop is
likely to fall from your desk)

- they are compact, less ventilation, more subject to over heating =
component aging faster

- they use smaller components, so less robusts


And the newer notebook is - the more cheaply it's made.. If you have
old and new laptop, most probably new one will break first ;)


In my experience, electronic parts fail within a year of manufacture if
they're going to fail at all.  Heat-related problems are mainly of two
kinds: bad solder joints and parts that are drawing more current than
they're spec'd to do.  Both kinds of problems usually shake out in the
first year.

Mechanical problems, otoh, are the bane of portable devices.  If I were
buying a used notebook, I'd take a close look at the hinges, switches,
keyboard and any other moving parts.  I'd factor in the cost of a new
harddrive as it's very likely to need one -- if not now, soon.  


I've also had numerous problems with the sockets for the AC adaptor
plug. I think that design was intended for stationary devices, not
devices that you're holding on your lap and moving around a lot while
they're plugged in.  (Not to mention tripping over the cord!)  After a
while they seem to come loose and the plug no longer makes good contact.
In one case, I had to open up the machine and resolder the socket to
the board. 
___

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


question about a driver - Gigabit - HP NC362i

2009-07-10 Thread João Pagaime

hello all

any chance of the following NIC working with
the latests freeBSD release:

Embedded HP NC362i Integrated Dual Port Gigabit Server Adaptor

FreeBSD's hardware release notes dont look very promising

thanks
João Pagaime

___
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 this flash drive not detected in devd?

2009-07-10 Thread Roland Smith
On Thu, Jul 09, 2009 at 08:41:28PM -0500, Sagara Wijetunga wrote:
  Roland Smith writes:
 
On Thu, Jul 09, 2009 at 11:22:16PM +0800, Sagara Wijetunga wrote:
 
  Hi FreeBSD community
 
  This is FreeBSD 7.2 on i386.
 
  sysctl -a | grep dev.umass
  dev.umass.1.%desc: Imation Flash Drive, class 0/0, rev 2.00/1.03, addr 3
  dev.umass.1.%driver: umass
  dev.umass.1.%location: port=6 interface=0
  dev.umass.1.%pnpinfo: vendor=0x0718 product=0x0081 devclass=0x00 
 devsubclass=0x00
  release=0x0103 sernum=14925B00 intclass=0x08 intsubclass=0x06
  dev.umass.1.%parent: uhub4
 
  Following added to /etc/devd.conf:
   1. Imation Flash Drive, class 0/0, rev 2.00/1.03, addr 3
  attach 200 {
  match vendor  0x0718;
  match product 0x0081;
  match serial  14925B00;
  action touch /tmp/Imation-Flash-Drive-detected;
  };
 
  Could I know why the flash drive is not detected on attach?
 
The USB subsystem isn't currently equipped to notify devd (technically,
the devctl_notify function isn't used in the USB stack). So the only
notification you'll get is when devfs creates a device. Since there is
no predictable link between a USB device and a disk device, info from
the USB stack would be less then usefull.
 
You can check this by reading from /dev/devctrl (when devd is not
running, since this device can only be opened by one program at a time)
just after you plugged in the device. For my usb thumbdrive I get:
 
cat /dev/devctl
!system=DEVFS subsystem=CDEV type=CREATE cdev=pass2
!system=DEVFS subsystem=CDEV type=CREATE cdev=da0
!system=DEVFS subsystem=CDEV type=CREATE cdev=da0s1
!system=DEVFS subsystem=CDEV type=CREATE cdev=msdosfs/RFS1
 
While sysctl gives:
 
dev.umass.0.%desc: vendor 0x3538 USB Mass Storage Device, class 0/0, rev 
 2.00/1.00, addr 2
dev.umass.0.%driver: umass
dev.umass.0.%location: port=4 interface=0
dev.umass.0.%pnpinfo: vendor=0x3538 product=0x0042 devclass=0x00 
 devsubclass=0x00 release=0x0100
sernum=0004E1 intclass=0x08 intsubclass=0x06
dev.umass.0.%parent: uhub4
 
So for now, you'll have to match on the creation of da* devices, or
labels if you use those.
 
  Roland, thanks for the reply.
 
  Here is my side info on FreeBSD 7.2:
  cat /dev/devctl
  ? at port=6 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 
 release=0x0103
  sernum=14925B00 on uhub4

The ? means Unknown device detected. See devctl(4). This is _not_
noticed be devd, I think

  +umass1 vendor=0x0718 product=0x0081 devclass=0x00 devsubclass=0x00 
 release=0x0103
  sernum=14925B00 intclass=0x08 intsubclass=0x06 at port=6 interface=0 
 vendor=0x0718
  product=0x0081 devclass=0x00 devsubclass=0x00 release=0x0103 
 sernum=14925B00 intclass=0x08
  intsubclass=0x06 on uhub4

Note that while + denotes a device creation event, it is for umass1,
not for a disk device.

  !system=DEVFS subsystem=CDEV type=CREATE cdev=pass4
  !system=DEVFS subsystem=CDEV type=CREATE cdev=da4
  !system=DEVFS subsystem=CDEV type=CREATE cdev=da4s1
  !system=DEVFS subsystem=CDEV type=CREATE cdev=msdosfs/
 
  I have few questions:
  1. Above shows info we need available under '?' and '+' lines. What
  we need is vendor, product and sernum. Can these be accessed in
  addition to cdev?

Not currently. The hooks into the USB subsystem are missing. 

But even if they were there, that info is not very usefull in
itself. You also need to know the disk device number that the USB drive
gets! If there were hooks in the USB system, you would get _multiple_
events in devd:

1) USB device plugged in. (serial no etc...)
2) pass device created by devfs
3) da devices created by devfs
4) msdodfs/ devices created by devfs.

So you would need to remember the first event until the device creation
happens. Devd itself has no facilities for that. Sure, you can cobble
something together with tempoeary files etc., but that would be fragile.

And as I've said before, there is no one-on-one link between a USB
device that gets plugged in and the disk device that is assigned to it!
 
  2. Is this issue been fixed in FreeBSD 8.0?

I don't know. The USB stack was rewritten for 8.0. Ask on the -current
or -hackers list.
 
  3. Can you or someone think of a patch against FreeBSD 7.2 to provide
  vendor, product and sernum in addition to cdev? It's very big help
  someone could extend to us to release Tomahawk Desktop

As I explained above, this would not accomplish what you want.

Again, maybe you should check out sysutils/hal.

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)


pgp4KKxENKdn6.pgp
Description: PGP signature


Asus P5VD2-MX SE mobo and Xorg

2009-07-10 Thread Kurt Buff
it-kbuff-fbsd# uname -a
FreeBSD it-kbuff-fbsd 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1
14:37:25 UTC 2009
r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

Can't seem to make it go. Complete contents of xorg.conf below, but
symptoms first: I can start X, via 'startx' but the screen hangs -
mouse and keyboard are not responsive. I have to ssh in from another
machine to kill Xorg. I've installed xfce4, and the box is up to date
- I csuped ports yesterday and updated everything.

I've looked at /var/log/Xorg.0.log, but don't see anything that looks
like a real failure. I've even tried launching xorg and xfce4 as root
- no joy.

xorg.conf, at /home/kbuff, seems to show the correct video card, so
any suggestions welcome.

Section ServerLayout
Identifier X.org Configured
Screen  0  Screen0 0 0
InputDeviceMouse0 CorePointer
InputDeviceKeyboard0 CoreKeyboard
EndSection

Section Files
ModulePath   /usr/local/lib/xorg/modules
FontPath /usr/local/lib/X11/fonts/misc/
FontPath /usr/local/lib/X11/fonts/TTF/
FontPath /usr/local/lib/X11/fonts/OTF
FontPath /usr/local/lib/X11/fonts/Type1/
FontPath /usr/local/lib/X11/fonts/100dpi/
FontPath /usr/local/lib/X11/fonts/75dpi/
EndSection

Section Module
Load  extmod
Load  record
Load  dbe
Load  glx
Load  dri
Load  dri2
EndSection

Section InputDevice
Identifier  Keyboard0
Driver  kbd
EndSection

Section InputDevice
Identifier  Mouse0
Driver  mouse
Option  Protocol auto
Option  Device /dev/sysmouse
Option  ZAxisMapping 4 5 6 7
EndSection

Section Monitor
Identifier   Monitor0
VendorName   Monitor Vendor
ModelNameMonitor Model
EndSection

Section Device
### Available Driver options are:-
### Values: i: integer, f: float, bool: True/False,
### string: String, freq: f Hz/kHz/MHz
### [arg]: arg optional
#Option PrintVGARegs  # [bool]
#Option PrintTVRegs   # [bool]
#Option I2CScan   # [bool]
#Option VBEModes  # [bool]
#Option NoAccel   # [bool]
#Option AccelMethod   # str
#Option ExaNoComposite# [bool]
#Option ExaScratchSize# i
#Option SWCursor  # [bool]
#Option ShadowFB  # [bool]
#Option Rotate# [str]
#Option VideoRAM  # i
#Option ActiveDevice  # [str]
#Option BusWidth  # [str]
#Option Center# [bool]
#Option PanelSize # [str]
#Option ForcePanel# [bool]
#Option TVDotCrawl# [bool]
#Option TVDeflicker   # i
#Option TVType# [str]
#Option TVOutput  # [str]
#Option DisableVQ # [bool]
#Option DisableIRQ# [bool]
#Option EnableAGPDMA  # [bool]
#Option NoAGPFor2D# [bool]
#Option NoXVDMA   # [bool]
#Option VbeSaveRestore# [bool]
#Option DisableXvBWCheck  # [bool]
#Option MaxDRIMem # i
#Option AGPMem# i
Identifier  Card0
Driver  openchrome
VendorName  VIA Technologies, Inc.
BoardName   P4M890 [S3 UniChrome Pro]
BusID   PCI:1:0:0
EndSection

Section Screen
Identifier Screen0
Device Card0
MonitorMonitor0
SubSection Display
Viewport   0 0
Depth 1
EndSubSection
SubSection Display
Viewport   0 0
Depth 4
EndSubSection
SubSection Display
Viewport   0 0
Depth 8
EndSubSection
SubSection Display
Viewport   0 0
Depth 15
EndSubSection
SubSection Display
Viewport   0 0
Depth 16
EndSubSection
SubSection Display
Viewport   0 0
Depth 24
EndSubSection
EndSection
___
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: question about a driver - Gigabit - HP NC362i

2009-07-10 Thread Erik Trulsson
On Fri, Jul 10, 2009 at 07:33:37PM +0100, João Pagaime wrote:
 hello all
 
 any chance of the following NIC working with
 the latests freeBSD release:
 
 Embedded HP NC362i Integrated Dual Port Gigabit Server Adaptor
 
 FreeBSD's hardware release notes dont look very promising

Looks like a quite good chance of it working.
That controller is apparently based around Intel's 82576 controller chip,
which should be supported by the igb(4) driver.


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


Matlab running on linux wrapper

2009-07-10 Thread Daniel Underwood
Will binaries running on the linux binaries wrapper run slower due to
having to be run on the linux layer?
___
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: Matlab running on linux wrapper

2009-07-10 Thread Frank Steinborn
Daniel Underwood wrote:
 Will binaries running on the linux binaries wrapper run slower due to
 having to be run on the linux layer?

It depends. In most cases, it will just run as fine as on Linux,
sometimes it is even faster. The Linux compatibility is no emulation,
it just translates syscalls, so you shouldn't notice a performance-hit
in 99% of cases... but of course there are corner cases where it could
be that the performance of your Linux-binary on FreeBSD is not 100% as
fast as Linux.

See the Handbook for a deeper understanding of how the Linux
compatibility is working :) 

Cheers,
steinex
___
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: question about a driver - Gigabit - HP NC362i

2009-07-10 Thread Michael Powell
Erik Trulsson wrote:

 On Fri, Jul 10, 2009 at 07:33:37PM +0100, João Pagaime wrote:
 hello all
 
 any chance of the following NIC working with
 the latests freeBSD release:
 
 Embedded HP NC362i Integrated Dual Port Gigabit Server Adaptor
 
 FreeBSD's hardware release notes dont look very promising
 
 Looks like a quite good chance of it working.
 That controller is apparently based around Intel's 82576 controller chip,
 which should be supported by the igb(4) driver.
 

And found in if_igb.c:

{ 0x8086, E1000_DEV_ID_82576,   PCI_ANY_ID, PCI_ANY_ID, 0},
{ 0x8086, E1000_DEV_ID_82576_FIBER, PCI_ANY_ID, PCI_ANY_ID, 0},
{ 0x8086, E1000_DEV_ID_82576_SERDES,PCI_ANY_ID, PCI_ANY_ID, 0},

So it might work. And if it doesn't because of some minor problem it might 
be fairly straightforward to get it going as Intel has a driver developer 
who is plugged into the community.

-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: Asus P5VD2-MX SE mobo and Xorg

2009-07-10 Thread Kurt Buff
On Fri, Jul 10, 2009 at 12:00, Kurt Buffkurt.b...@gmail.com wrote:
 it-kbuff-fbsd# uname -a
 FreeBSD it-kbuff-fbsd 7.1-RELEASE FreeBSD 7.1-RELEASE #0: Thu Jan  1
 14:37:25 UTC 2009
 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386


Putting in hald_enable=YES and commenting out moused_enable=YES
fixed the issue.

All these newfangled ways of doing things get confusing at times.

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: FixIt CD Tool Availability - SOLVED

2009-07-10 Thread Drew Tomlinson

Michel Talon wrote:

Drew Tomlinson wrote:
  
The command 'gmirror label root ad8a ad6a' does not return an error but 
no device is created in /dev/mirror


The command 'zpool create data  raid1z ad14d ad12d ad8d ad6d' gives me 
an error about the ZFS library being unavailable.


Are these tools supposed to work when using the Fix It CD?  If not, does 
7.2-RELEASE-amd64-disc1.iso have these tools?



One can load kernel modules from the fixit cdrom, but as far as i
remember this requires some manipulations.

What i do is, from the fixit prompt:
chroot /mnt2
to go to the full system available on the cdrom under /mnt2. But then 
required things are missing, so i do further:

mount -t devfs devfs /dev
because access to /dev is frequently required, and for commodity
set -o emacs
(to have shell history and editing)
export PAGER=more
(to be able to access man pages)
After that one has a more or less standard environment. Sometimes one
needs a writable filesystem, for example for accessing internet
(dhclient, resolv.conf, etc.) 
mount -t tmpfs tmpfs /tmp

does that.

It would be nice to have a shell script on the fixit cdrom doing similar
things automatically when one accesses fixit.

In your case i suspect appropriate kernel modules were not loaded
and commands failed silently.
  


For the archives, the above works.  I don't know what I did wrong the 
first day I tried.  However after walking away for a few days and then 
starting over, the commands above gave me a functional FixIt 
environment.  Thanks!


Cheers,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.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


Attempting ZFS Only Install of 7.2

2009-07-10 Thread Drew Tomlinson

I'm following guides at:

http://lulf.geeknest.org/blog/freebsd/Setting_up_a_zfs-only_system/
http://wiki.freebsd.org/AppleMacbook
http://menelkir.wordpress.com/2008/07/30/howto-install-freebsd-under-zfs-including-root-part-2/

If I understand correctly, only the first link is about setting up ZFS 
using gptzfsboot and not a UFS partition so I used it as my primary guide.


I've gone through the steps below but can't do the one to copy 
zpool.cache to my zpool(s).  Although the 'zpool import' and 'zpool 
export' succeed, I can not find zpool.cache (not even using 'find / 
-iname zpool.cache' anywhere to copy.  I've tried rebooting once after 
skipping this step and got stuck at the boot prompt.  Upon rebooting 
with the LiveDVD and entering FixIt, I did not have any zpools anymore.  
Not knowing what else to do, I started over from creating zpools.


And now I'm here again.  The only step left is to copy zpool.cache and I 
can't.  What must I do to ensure that my zpools will survive reboot?


I've included my exact steps below for reference.

My system has 4 drives.  I booted from the LiveDVD, entered the FixIt 
shell, and partitioned them as follows using gpart:


ad6 - 750 GB
ad6p1 - 128KB freebsd-boot
ad6p2 - 512MB freebsd-zfs
ad6p3 - 512MB freebsd-swap
ad6p4 - 465GB freebsd-zfs
ad6p5 - 233GB freebsd-ufs

ad8 - 500 GB
ad8p1 - 128KB freebsd-boot
ad8p2 - 512MB freebsd-zfs
ad8p3 - 512MB freebsd-swap
ad8p4 - 465GB freebsd-zfs

ad12 - 500 GB
ad12p1 - 1024MB freebsd-swap
ad12p2 - 465GB freebsd-zfs

ad14 - 500 GB
ad14p1 - 1024MB freebsd-swap
ad14p2 - 465GB freebsd-zfs

I used gptzfsboot from the 8.1-Beta1 iso and used a USB key mounted at 
/tmp/da0 to copy it to the system.  Basically I did:


gpart bootcode -b /boot/pmbr -p /tmp/da0/gptzfsboot -i 1 ad6
gpart bootcode -b /boot/pmbr -p /tmp/da0/gptzfsboot -i 1 ad8

Next I chrooted into /dist to make a more normal for me environment.  
To get a good environment I performed these commands:


1. chroot /dist
2. mount -t devfs devfs /dev
3. mount -t tmpfs tmpfs /tmp
4. set -o emacs

Next I created two zpools:

kldload zfs.ko
zpool create root mirror /dev/ad6p1 /dev/ad8p1
zpool create data raid1z /dev/ad6p4 /dev/ad8p4 /dev/ad12p2 /dev/ad14p2

Because /root exists, the root zpool was mounted there.  However /data 
doesn't exist and can't be created because FixIt is a read-only file 
system and thus the error.  But in both cases, the zpool was created.


Now to unmount zfs:root from /root:

zfs umount root

To stop zfs automounting for now, I set mount properties on the two zpools:

zfs set mountpoint=none root
zfs set mountpoint=none data

Next I created zfs filesystems for usr and var:

zfs create data/usr
zfs create data/var

I mounted my destination filesystems under /mnt as so:

mount -t zfs root /mnt
mkdir /mnt/usr
mkdir /mnt/var
mount -t zfs data/usr /mnt/usr
mount -t zfs data/var /mnt/var

Next, copy contets of LiveDVD system to destination filesystems:

cd /
cp -Rv bin boot etc lib libexec root sbin tmp usr var /mnt
(Note: I excluded 'rescue' because on the LiveDVD it's 478MB and thus, 
too large for my 512MB root filesystem.  I don't know why it's so big on 
the LiveDVD because its only around 7MB on a running 7.2 system I 
checked. I'm excluding and hoping my next 'make world' resolves this.)

mkdir /mnt/dev

Create/edit /mnt/boot/loader.conf as follows:

zfs_load=YES
vfs.root.mountfrom=zfs:tank

And now I'm at the part where I'm stuck at copying the zpool.cache 
file.  Help?


Thanks,

Drew

--
Be a Great Magician!
Visit The Alchemist's Warehouse

http://www.alchemistswarehouse.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


Prudhvi Krishna S's Member Invite

2009-07-10 Thread Scour
Hey there,

Not too long ago Prudhvi Krishna S sent you an invite to join the Scour
search community and your invite is still open!

The Scour search engine is shaped by a community of users just like you,
and your contributions are what make it a success!

Why use Scour?
1. Get Yahoo, Google and MSN results in one search
2. Vote on result relevancy
3. Read user comments
4. Get paid for searching!

Create your profile at http://scour.com/invite/prudhvikrishna/r/ and enjoy
searching the web through your favorite search engines. With time, you’ll
get paid like these loyal users: http://www.scour.com/leaderboard page.

Come and be part of the largest Social Search community and help make the
results better!

See you soon,
The Scour Team
www.scour.com





This message was sent to you as a friend referral to join scour.com, please
feel free to review our http://scour.com/privacy page and our
http://scour.com/communityguidelines/antispam page.
If you prefer not to receive invitations from ANY scour members,
please click here - 
http://www.scour.com/unsub/e/ZnJlZWJzZC1xdWVzdGlvbnNAZnJlZWJzZC5vcmc=
-OR-
Write to us at:
Scour, Inc., 15303 Ventura Blvd. Suite 860, Sherman Oaks, CA 91403, USA.

campaignid: scour20090712

___
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


Subversion URL for FreeBSD souce...

2009-07-10 Thread Modulok
List,

What's the right URL for a subversion checkout of the freeBSD source?
For example,

svn checkout svn://somewhere/RELENG_7_2_0_RELEASE

While I use subversion for personal projects, I've never checked out
the FreeBSD sources with it. A kick in the right direction would be
great :)

Thanks!
-Modulok-
___
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: Subversion URL for FreeBSD souce...

2009-07-10 Thread Glen Barber
On Fri, Jul 10, 2009 at 10:17 PM, Modulokmodu...@gmail.com wrote:
 List,

 What's the right URL for a subversion checkout of the freeBSD source?
 For example,

 svn checkout svn://somewhere/RELENG_7_2_0_RELEASE

 While I use subversion for personal projects, I've never checked out
 the FreeBSD sources with it. A kick in the right direction would be
 great :)


http://svn.freebsd.org/base/release/7.2.0/

-- 
Glen Barber
___
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


Prevent reboot-after-panic behavior?

2009-07-10 Thread jw
I'm trying to figure out a strange panic issue (see:
http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/201842.html).

The problem is I generally need to run it overnight in order to reproduce it.
By the time I get back to it, the machine has auto-rebooted, losing
precious info in ttyv0.
I cannot simply analyze a dump because the dump fails (see other
thread for that info - possibly a separate issue).

I am working on getting the dump to succeed, but in the meantime:

Is there a way to turn off the auto-reboot behavior?
I found this link: http://www.webhostingtalk.com/showthread.php?t=438372
But it is about turning it *on* and is somewhat old.

Is there a way to change the behavior without recompiling the kernel?

Thanks
-John
___
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: Prevent reboot-after-panic behavior?

2009-07-10 Thread Glen Barber
Hi.

On Sat, Jul 11, 2009 at 12:25 AM, jwjwde...@gmail.com wrote:
 I'm trying to figure out a strange panic issue (see:
 http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/201842.html).

 The problem is I generally need to run it overnight in order to reproduce it.
 By the time I get back to it, the machine has auto-rebooted, losing
 precious info in ttyv0.
 I cannot simply analyze a dump because the dump fails (see other
 thread for that info - possibly a separate issue).

 I am working on getting the dump to succeed, but in the meantime:

 Is there a way to turn off the auto-reboot behavior?
 I found this link: http://www.webhostingtalk.com/showthread.php?t=438372
 But it is about turning it *on* and is somewhat old.

 Is there a way to change the behavior without recompiling the kernel?


If you don't have debugging enabled in the kernel (KDB, DDB), no.  If
you do, you can set the following sysctl to disable automatic reboot
on panic:
   debug.debugger_on_panic: 1

HTH.

-- 
Glen Barber
___
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