X11 - keyboard driver unloaded, how to load it again

2011-12-07 Thread Sebastian Chmielewski
Hi,
I've an USB Mouse - Microsoft Wireless Mouse 1000, which is recognized also
as a keyboard:
ugen1.3: vendor 0x192f at usbus1 (disconnected)
ums0: at uhub2, port 2, addr 3 (disconnected)
ugen0.5: Microsoft at usbus0
ukbd0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
2.00/6.56, addr 5 on usbus0
kbd2 at ukbd0
ums0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
2.00/6.56, addr 5 on usbus0
ums0: 5 buttons and [XYZT] coordinates ID=26
ums0: 0 buttons and [T] coordinates ID=0
uhid0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
2.00/6.56, addr 5 on usbus0

After disconnecting this mouse kbd module was unloaded by X:

[ 40002.703] (**) Microsoft 2.4GHz Transceiver v8.0: always reports core
events
[ 40002.703] (**) Microsoft 2.4GHz Transceiver v8.0: always reports core
events
[ 40002.704] (**) Option Protocol standard
[ 40002.704] (**) Option XkbRules base
[ 40002.704] (**) Option XkbModel pc105
[ 40002.704] (**) Option XkbLayout pl
[ 40002.704] (**) Option XkbOptions terminate:ctrl_alt_bksp
[ 40002.709] (**) Option config_info
hal:/org/freedesktop/Hal/devices/usb_device_45e_745_noserial_if0
[ 40002.709] (II) XINPUT: Adding extended input device Microsoft 2.4GHz
Transceiver v8.0 (type: KEYBOARD)
[ 47161.229] (II) 3rd Button detected: disabling emulate3Button
[ 49888.691] (II) config/hal: removing device Microsoft 2.4GHz Transceiver
v8.0
[ 49888.696] (II) UnloadModule: kbd
[ 49888.696] (II) Unloading kbd

Question is: how to prevent this behavior in X and how to reload module
'kbd' under working X session (I can connect through ssh to this machine).

best regards,
-- 
Sebastian Chmielewski
___
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


Switching default gateways

2011-12-07 Thread Ross
I have a host with two uplinks. One is the default gateway. I want the
system to automatically switch to the other one if it detects problems
with the first one. How do I do this?
___
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: FreeBSD 10.0-CURRENT/AMD64 (CLANG): lang/gcc46 fails to build

2011-12-07 Thread Dimitry Andric

On 2011-12-07 05:56, O. Hartmann wrote:

On FreeBSD 10.0-CURRENT/amd64 I run into the error shown below when
updating the installation of the gcc46 compiler suite.


If you report port compilation errors, always use DISABLE_MAKE_JOBS,
otherwise the actual error message will drown in multithreaded spam. :)

(And even if you would save and post the full build log, it is sometimes
still impossible to see which exact command failed and why.)

That said, you are most likely running into an issue with the fix for
FreeBSD 10-CURRENT in bsd.port.mk, causing the lto-plugin stage
configure script to fail.

This is because the gcc ports unpack their source code into
${WRKDIR}/gcc-${VERSIONSTRING}, and then override WRKSRC to
${WRKDIR}/build.  Since bsd.port.mk only applies the run-autotools-fixup
to ${WRKSRC}, the gcc source itself is not properly fixed up.

You can try the attached patch, which fixes this (and fixes it for all
other ports that override WKRSRC).
Index: Mk/bsd.port.mk
===
RCS file: /home/mirror/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.699
diff -u -r1.699 bsd.port.mk
--- Mk/bsd.port.mk	9 Nov 2011 08:53:12 -	1.699
+++ Mk/bsd.port.mk	7 Dec 2011 08:16:56 -
@@ -3663,7 +3663,7 @@
 run-autotools-fixup:
 # Work around an issue where FreeBSD 10.0 is detected as FreeBSD 1.x.
 .if ${OSVERSION} = 100  !defined(WITHOUT_FBSD10_FIX)
-	-@for f in `${FIND} ${WRKSRC} -type f \( -name config.libpath -o \
+	-@for f in `${FIND} ${WRKDIR} -type f \( -name config.libpath -o \
 		-name config.rpath -o -name configure -o -name libtool.m4 -o \
 		-name ltconfig -o -name libtool -o -name aclocal.m4 -o \
 		-name acinclude.m4 \)` ; do \
___
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: Playing .ASX files via/within Firefox ?

2011-12-07 Thread Ronald F. Guilmette

In message 4edf4d7a.ac3xg02r+czwn8xy%per...@pluto.rain.com, you wrote:

Ronald F. Guilmette r...@tristatelogic.com wrote:

 I've been trying to look at California Dept. of Transportation
 webcams using Firefox on FreeBSD and so far it simply ain't workin'.
 ...
 http://www.dot.ca.gov/dist3/departments/traffic/cameras/

Works for me on 8.1-RELEASE with FF 3.5.10 and these packages:

Well, thanks, I guess.  At least this gives me confidence that it can
be done.

I am still somewhat at a loss to know exactly _how_ it can be done however.

___
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: Nuxeo install in FreeBSD

2011-12-07 Thread Bruno Gruel

On Tue, 06 Dec 2011 20:50:06 +0100, Peter Ulrich Kruppa wrote:

I unzipped the thing in /usr/local and tried to execute the
./bin/nuxeoctl start

I do the same thing
command, which failed. Having a look at the first line of this file I 
found

#!/bin/bash

Idem

But my bash is installed in
# which bash
/usr/local/bin/bash
So I changed the first line of nuxeoctl into
#!/usr/local/bin/bash

Idem

and now I can start and run Nuxeo.
Not work for me but i must try it on a 32 bits FreeBSD and give you 
some feed back.

I hope that helps

Yes it's help me

Peter.


Thank's

Bruno
--
Sallanches Data Network (SDN)
Pour l'Internet des internautes
___
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: umass to /dev/da* mapping

2011-12-07 Thread Zane C. B-H.
On Mon, 5 Dec 2011 17:08:15 +
Mike Clarke jmc-freeb...@milibyte.co.uk wrote:

 
 I have a fairly simple perl script which is run by devd when I plug
 in a USB memory stick. The script sets up some permissions and a
 link to make life easy for a user to mount the memory stick.
 
 This normally works fine but there are problems if the memory stick
 is already inserted before booting.
 
 Normally my internal 4 slot memory card reader is detected as
 umass0 with devices da[0-3] and when the USB memory stick is
 inserted it comes up as umass1 with device da4 and my script works
 on that assumption. If the USB stick is present on booting then it
 appears as da0 on umass0 and the card reader is da[1-4] on umass1
 so the script fails.
 
 Is there any convenient way for my script to determine which da*
 devices correspond to the umass device name?

Why are you using a custom Perl script for this instead of the built
in tools for this?

Below is how I have it setup on my system...

In /etc/devfs.rules...

[localrules=10]
add path 'da*s*' mode 0660 group 5001

In /etc/rc.conf...

devfs_system_ruleset=localrules

In /etc/sysctl.conf...

vfs.usermount=1

And what group 5001 is...

[kitsune@vixen42]/etc getent group 5001
devDAaccess:*:5001:kitsune
[kitsune@vixen42]/etc 

Allows the group devDAaccess to access /dev/da*s* and mount it.

For more reading on this, I suggest the following man files...

devfs.rules(5)
rc.conf(5)
devfs(8)
___
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: X11 - keyboard driver unloaded, how to load it again

2011-12-07 Thread Zane C. B-H.
On Wed, 7 Dec 2011 08:48:20 +0100
Sebastian Chmielewski chmi...@o2.pl wrote:

 Hi,
 I've an USB Mouse - Microsoft Wireless Mouse 1000, which is
 recognized also as a keyboard:
 ugen1.3: vendor 0x192f at usbus1 (disconnected)
 ums0: at uhub2, port 2, addr 3 (disconnected)
 ugen0.5: Microsoft at usbus0
 ukbd0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
 2.00/6.56, addr 5 on usbus0
 kbd2 at ukbd0
 ums0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
 2.00/6.56, addr 5 on usbus0
 ums0: 5 buttons and [XYZT] coordinates ID=26
 ums0: 0 buttons and [T] coordinates ID=0
 uhid0: Microsoft Microsoft 2.4GHz Transceiver v8.0, class 0/0, rev
 2.00/6.56, addr 5 on usbus0
 
 After disconnecting this mouse kbd module was unloaded by X:
 
 [ 40002.703] (**) Microsoft 2.4GHz Transceiver v8.0: always reports
 core events
 [ 40002.703] (**) Microsoft 2.4GHz Transceiver v8.0: always reports
 core events
 [ 40002.704] (**) Option Protocol standard
 [ 40002.704] (**) Option XkbRules base
 [ 40002.704] (**) Option XkbModel pc105
 [ 40002.704] (**) Option XkbLayout pl
 [ 40002.704] (**) Option XkbOptions terminate:ctrl_alt_bksp
 [ 40002.709] (**) Option config_info
 hal:/org/freedesktop/Hal/devices/usb_device_45e_745_noserial_if0
 [ 40002.709] (II) XINPUT: Adding extended input device Microsoft
 2.4GHz Transceiver v8.0 (type: KEYBOARD)
 [ 47161.229] (II) 3rd Button detected: disabling emulate3Button
 [ 49888.691] (II) config/hal: removing device Microsoft 2.4GHz
 Transceiver v8.0
 [ 49888.696] (II) UnloadModule: kbd
 [ 49888.696] (II) Unloading kbd
 
 Question is: how to prevent this behavior in X and how to reload
 module 'kbd' under working X session (I can connect through ssh to
 this machine).

I would suggest just disabling HAL support for x11-server/xorg-server
and just statically configuring the file. The only thing you may
possibly want to do after that is make sure moused is started if you
are have any non-USB mice on that system as well.

___
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: Playing .ASX files via/within Firefox ?

2011-12-07 Thread Chris Hill

On Wed, 7 Dec 2011, per...@pluto.rain.com wrote:


Ronald F. Guilmette r...@tristatelogic.com wrote:


I've been trying to look at California Dept. of Transportation
webcams using Firefox on FreeBSD and so far it simply ain't workin'.
...
http://www.dot.ca.gov/dist3/departments/traffic/cameras/


Works for me on 8.1-RELEASE with FF 3.5.10 and these packages:

[ ... ]


All I had to do was click on a camera (I picked Williams SB, for no
particular reason) and I got what looked like an image, including
an I-5 at Williams SB overlay.  Granted there wasn't a whole lot
to see, since it was after dark, but the image did show several
vehicles' headlights -- it was not just a black rectangle.


Right, but that's a still image, a screenshot. Above that is a link 
labeled go to live camera - when you click on that, do you see live 
motion video? What I see is mplayer-plugin starting, then buffering, then 
a blue rectangle.


The live camera link is what goes to the .asx, which is what the OP was 
asking about.


--
Chris Hill   ch...@monochrome.org
** [ Busy Expunging / ]
___
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: Switching default gateways

2011-12-07 Thread Damien Fleuriot

On 12/7/11 9:20 AM, Ross wrote:
 I have a host with two uplinks. One is the default gateway. I want the
 system to automatically switch to the other one if it detects problems
 with the first one. How do I do this?


Hello to you too,


First of all, please realize this isn't a google search field, you're
talking to actual humans and you might want to start off with a proper
greeting.


With regards to your question, this can be done in 2 different ways:


1/ script

Ping your primary gateway, if it stops responding your script changes
the gateway to your backup.

When the primary comes back up, swap again.

Easily done.




2/ routing protocols

Get your 2 upstream routers to announce themselves via a routing
protocol, only works if you have control of said gateways.
___
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 hardware support

2011-12-07 Thread Ammar Shaarbaf

Hello,

Are there any FreeBSD drivers for Acer Aspire 3610?

Thank you and best regards,

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


Requirement of Embedded OS and Embedded Database

2011-12-07 Thread Bhautik Kothadia
Dear Sir,


Prompt Softech, part of Prompt Group of companies, a customized electronics
product development, software development and service provider focused in
the area of enterprise resource information, business intelligence, software
solutions.

 

We have requirement of Embedded OS and Embedded Database.

 

Microcontroller - PIC32MX664 from Microchip

 

Supporting Peripheral Required:

SD Card

USB Pen Drive

UART - 5 ports

Parallel Printer

4 x 20 LCD

RTC

PS2 Keyboard

4 x 4 Matrix Keyboard.

FAT32 file system

 

Application:

Data acquisition system which collect different types of data from various
machines using RS232. All these data store on SD Card.

Data cab backup into USB pen drive. We have to generate various type of
report according to parameters like date, unique code for different
customers.

 

I want to know that Can be FreeBSD implemented on PIC32 microcontroller?

 

How much FLASH and RAM required?

 

Which database is suitable for FreeBSD?

 

 

For more information about us, please visit our website:
www.promptsoftech.com

 

Best Regards,

Bhautik Kothadia
Sr. Embedded Engineer

Prompt Softech
12 SF Maurya Complex,
Opp. R.K. Royal Hall,
Science City Road, 
Sola,
Ahmedabad - 380 061
India

Phone: +91 79 40081941 / 1942
Fax: +91 79 40081940
Email: b...@promptsoftech.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: umass to /dev/da* mapping

2011-12-07 Thread Mike Clarke
On Wednesday 07 December 2011, Zane C. B-H. wrote:

 Why are you using a custom Perl script for this instead of the built
 in tools for this?

 Below is how I have it setup on my system...

 In /etc/devfs.rules...

 [localrules=10]
 add path 'da*s*' mode 0660 group 5001

Because devfs only relates to boot time and I want to deal with usb 
sticks inserted while the system is running. The allocation of device 
numbers is dynamic and depends on what other umass devices are already 
connected. Normally my internal memory card reader is allocated da[0-3] 
at boot time and the memory stick will appear as da4 when subsequently 
inserted but if it's already plugged in when the system boots then it 
appears as da0 and the card reader is da[1-4]. If I insert an extra 
memory stick it will be allocated the next available device number. I 
don't want the user to have to hunt around to determine which device to 
mount so my script takes the umass device number supplied by devd and 
determines the relevant da* device then it sets the permission to 660 
for that device and creates a link, /dev/usbstick, pointing to it. All 
the user then has to do is mount /dev/usbstick on his mount point.

Following the earlier tip from Polytropon I now have a working script 
which does exactly what I need.

-- 
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: Question about hardware support

2011-12-07 Thread Matthew Seaman
On 07/12/2011 05:34, Ammar Shaarbaf wrote:
 Are there any FreeBSD drivers for Acer Aspire 3610?
 

This is the closest hardware match I could find:
http://laptop.bsdgroup.de/freebsd/index.html?action=show_laptop_detaillaptop=12882

Drivers in FreeBSD are generally described in terms of the specific
components (motherboard chipset, NIC, SATA controller, etc. etc.) rather
than in terms of a specific whole machine produced by a manufacturer.

Laptops are particularly tricky in this regard, and if no-one else has
reported on your particular model, generally the best procedure is to
try booting the device using a USB or CD-Rom image, and see what does
and doesn't work.

Cheers,

Matthew

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



signature.asc
Description: OpenPGP digital signature


Re: Question about hardware support

2011-12-07 Thread Matthias Apitz
El día Wednesday, December 07, 2011 a las 12:54:35PM +, Matthew Seaman 
escribió:

 Drivers in FreeBSD are generally described in terms of the specific
 components (motherboard chipset, NIC, SATA controller, etc. etc.) rather
 than in terms of a specific whole machine produced by a manufacturer.
 
 Laptops are particularly tricky in this regard, and if no-one else has
 reported on your particular model, generally the best procedure is to
 try booting the device using a USB or CD-Rom image, and see what does
 and doesn't work.

One good method is to let it boot a recent Knoppix DVD and see what chips it
'sees'; it will not touch the installed OS;

matthias
-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.5
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: umass to /dev/da* mapping

2011-12-07 Thread Zane C. B-H.
On Wed, 7 Dec 2011 12:51:47 +
Mike Clarke jmc-freeb...@milibyte.co.uk wrote:

 On Wednesday 07 December 2011, Zane C. B-H. wrote:
 
  Why are you using a custom Perl script for this instead of the
  built in tools for this?
 
  Below is how I have it setup on my system...
 
  In /etc/devfs.rules...
 
  [localrules=10]
  add path 'da*s*' mode 0660 group 5001
 
 Because devfs only relates to boot time and I want to deal with usb 
 sticks inserted while the system is running. The allocation of
 device numbers is dynamic and depends on what other umass devices
 are already connected. Normally my internal memory card reader is
 allocated da[0-3] at boot time and the memory stick will appear as
 da4 when subsequently inserted but if it's already plugged in when
 the system boots then it appears as da0 and the card reader is
 da[1-4]. If I insert an extra memory stick it will be allocated the
 next available device number. I don't want the user to have to hunt
 around to determine which device to mount so my script takes the
 umass device number supplied by devd and determines the relevant
 da* device then it sets the permission to 660 for that device and
 creates a link, /dev/usbstick, pointing to it. All the user then
 has to do is mount /dev/usbstick on his mount point.
 
 Following the earlier tip from Polytropon I now have a working
 script which does exactly what I need.

Still you will want to investigate what I've mentioned. It will
drastically simplify permission stuff as well as make automatic. The
devfs stuff is just not boottime only, but will be applied to any new
device added etc post boot.
___
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 hardware support

2011-12-07 Thread Warren Block

On Wed, 7 Dec 2011, Matthias Apitz wrote:


El día Wednesday, December 07, 2011 a las 12:54:35PM +, Matthew Seaman 
escribió:


Drivers in FreeBSD are generally described in terms of the specific
components (motherboard chipset, NIC, SATA controller, etc. etc.) rather
than in terms of a specific whole machine produced by a manufacturer.

Laptops are particularly tricky in this regard, and if no-one else has
reported on your particular model, generally the best procedure is to
try booting the device using a USB or CD-Rom image, and see what does
and doesn't work.


One good method is to let it boot a recent Knoppix DVD and see what chips it
'sees'; it will not touch the installed OS;


Along those lines, PC-BSD (pcbsd.org) has a live DVD or live USB mode.___
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: umass to /dev/da* mapping

2011-12-07 Thread Warren Block

On Wed, 7 Dec 2011, Zane C. B-H. wrote:


Still you will want to investigate what I've mentioned. It will
drastically simplify permission stuff as well as make automatic. The
devfs stuff is just not boottime only, but will be applied to any new
device added etc post boot.


Are you sure of that?  Seems like devfs permissions are only applied 
when devfs(8) apply/applyset commands are run, directly or through 
/etc/rc.d/devfs.

___
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: umass to /dev/da* mapping

2011-12-07 Thread Zane C. B-H.
On Wed, 7 Dec 2011 08:39:30 -0700 (MST)
Warren Block wbl...@wonkity.com wrote:

 On Wed, 7 Dec 2011, Zane C. B-H. wrote:
 
  Still you will want to investigate what I've mentioned. It will
  drastically simplify permission stuff as well as make automatic.
  The devfs stuff is just not boottime only, but will be applied to
  any new device added etc post boot.
 
 Are you sure of that?  Seems like devfs permissions are only
 applied when devfs(8) apply/applyset commands are run, directly or
 through /etc/rc.d/devfs.

Yeah, I am sure of that. It is what I have setup here.

/etc/devfs.conf - This one only affects boot time stuff.

/dec/devfs.rules - This one contains the rules will be applied during
and post boot. It will also require you to specify which to use in
/etc/rc.conf as this file can contain multiple rule sets.
___
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: umass to /dev/da* mapping

2011-12-07 Thread Mike Clarke
On Wednesday 07 December 2011, Zane C. B-H. wrote:

 On Wed, 7 Dec 2011 08:39:30 -0700 (MST)

 Warren Block wbl...@wonkity.com wrote:
  On Wed, 7 Dec 2011, Zane C. B-H. wrote:
   Still you will want to investigate what I've mentioned. It will
   drastically simplify permission stuff as well as make automatic.
   The devfs stuff is just not boottime only, but will be applied to
   any new device added etc post boot.
 
  Are you sure of that?  Seems like devfs permissions are only
  applied when devfs(8) apply/applyset commands are run, directly or
  through /etc/rc.d/devfs.

 Yeah, I am sure of that. It is what I have setup here.

 /etc/devfs.conf - This one only affects boot time stuff.

 /dec/devfs.rules - This one contains the rules will be applied during
 and post boot. It will also require you to specify which to use in
 /etc/rc.conf as this file can contain multiple rule sets.

But can I use that to dynamically set up my link to the new device when 
the memory stick is inserted?

-- 
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: umass to /dev/da* mapping

2011-12-07 Thread Rod Person
On Wed, 7 Dec 2011 16:07:09 +
Mike Clarke jmc-freeb...@milibyte.co.uk wrote:

 On Wednesday 07 December 2011, Zane C. B-H. wrote:
 
  On Wed, 7 Dec 2011 08:39:30 -0700 (MST)
 
  Warren Block wbl...@wonkity.com wrote:
   On Wed, 7 Dec 2011, Zane C. B-H. wrote:
Still you will want to investigate what I've mentioned. It will
drastically simplify permission stuff as well as make automatic.
The devfs stuff is just not boottime only, but will be applied
to any new device added etc post boot.
  
   Are you sure of that?  Seems like devfs permissions are only
   applied when devfs(8) apply/applyset commands are run, directly or
   through /etc/rc.d/devfs.
 
  Yeah, I am sure of that. It is what I have setup here.
 
  /etc/devfs.conf - This one only affects boot time stuff.
 
  /dec/devfs.rules - This one contains the rules will be applied
  during and post boot. It will also require you to specify which to
  use in /etc/rc.conf as this file can contain multiple rule sets.
 
 But can I use that to dynamically set up my link to the new device
 when the memory stick is inserted?
 

Use devd.conf to do that. This is what I do.

#Mount and usb device that is plugged in and creates a da device
notify 20{
match system  DEVFS;
match typeCREATE;
match cdevda[0-9]*;
action /usr/local/etc/rc.d/usb_device_action mount
'/dev/$cdev'; };

notify 20{
match system  DEVFS;
match typeDESTROY;
match cdevda[0-9]*;
action /usr/local/etc/rc.d/usb_device_action umount
'/dev/$cdev'; };

The action line is what you want it to do, in my case I have this
script I wrote that reads the device label, if it finds the label the
it will create a mount point with that label name, If it can't find a
label it creates a mount point using the device name.

-- 

Rod Person  http://www.rodperson.com  rodper...@rodperson.com

Silence is a fence around wisdom
___
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


BIND and LDAP support

2011-12-07 Thread Kernel Panic
Apologies if this is not the appropriate list but I can't seem to find
one pertaining to the installation and configuration of BIND. I posted
the following message on the FreeBSD forums a few weeks back but have
had no replies, so I thought I'd try here on the lists:

System: FreeBSD 8.2-RELEASE 64-bit

Hello, I'm going to attempt to install the latest BIND port
(dns/bind98) and have a couple of questions about the available
install options:

WITH_REPLACE_BASE=true

Does this delete the base BIND version and if so would I need to edit
src.conf to tell the compiler not to reinstall base BIND when I do a
buildworld cycle?

WITH_DLZ_LDAP=true

Does this actually enable LDAP backend support or is it something
else? The reason I ask is because there seems to be a separate port
for BIND LDAP support but it's for an older version of BIND
(dns/bind97-sdb)

Thanks for any assistance.
___
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: umass to /dev/da* mapping

2011-12-07 Thread Warren Block

On Wed, 7 Dec 2011, Mike Clarke wrote:


On Wednesday 07 December 2011, Zane C. B-H. wrote:


On Wed, 7 Dec 2011 08:39:30 -0700 (MST)

Warren Block wbl...@wonkity.com wrote:

On Wed, 7 Dec 2011, Zane C. B-H. wrote:

Still you will want to investigate what I've mentioned. It will
drastically simplify permission stuff as well as make automatic.
The devfs stuff is just not boottime only, but will be applied to
any new device added etc post boot.


Are you sure of that?  Seems like devfs permissions are only
applied when devfs(8) apply/applyset commands are run, directly or
through /etc/rc.d/devfs.


Yeah, I am sure of that. It is what I have setup here.

/etc/devfs.conf - This one only affects boot time stuff.

/dec/devfs.rules - This one contains the rules will be applied during
and post boot. It will also require you to specify which to use in
/etc/rc.conf as this file can contain multiple rule sets.


Tested, and I agree.  It'll set permissions on dynamically added 
devices.  Sorry about that.



But can I use that to dynamically set up my link to the new device when
the memory stick is inserted?


No, devfs.rules can't run arbitrary code when a device is added. 
devd.conf is the place for that.  Actually, create a new .conf file in 
/etc/devd/ for your own customizations.

___
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: BIND and LDAP support

2011-12-07 Thread Damien Fleuriot
On 12/7/11 8:15 PM, Kernel Panic wrote:
 Apologies if this is not the appropriate list but I can't seem to find
 one pertaining to the installation and configuration of BIND. I posted
 the following message on the FreeBSD forums a few weeks back but have
 had no replies, so I thought I'd try here on the lists:
 
 System: FreeBSD 8.2-RELEASE 64-bit
 
 Hello, I'm going to attempt to install the latest BIND port
 (dns/bind98) and have a couple of questions about the available
 install options:
 
 WITH_REPLACE_BASE=true
 
 Does this delete the base BIND version and if so would I need to edit
 src.conf to tell the compiler not to reinstall base BIND when I do a
 buildworld cycle?
 
 WITH_DLZ_LDAP=true
 
 Does this actually enable LDAP backend support or is it something
 else? The reason I ask is because there seems to be a separate port
 for BIND LDAP support but it's for an older version of BIND
 (dns/bind97-sdb)
 
 Thanks for any assistance.


Hi,


Regarding WITH_REPLACE_BASE, yes, this will make make install install
the files in place of the base system's ones, as opposed to in /usr/local/ .


If you do this, you will indeed want to add the following to your
/etc/make.conf :
NO_BIND= true


Regarding your LDAP question, I'm still at work and it's 9PM so I'm a
bit in a rush, but a quick google search turned up the following:
http://bind-dlz.sourceforge.net/ldap_driver.html


Regards,
___
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: Playing .ASX files via/within Firefox ?

2011-12-07 Thread perryh
Chris Hill ch...@monochrome.org!ch...@agora.rdrop.com wrote:

 ... that's a still image, a screenshot. Above that is a link
 labeled go to live camera - when you click on that, do you
 see live motion video?

I don't even see that link.
___
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: Playing .ASX files via/within Firefox ?

2011-12-07 Thread perryh
Ronald F. Guilmette r...@tristatelogic.com wrote:

 At least this gives me confidence that it can be done.  I am still
 somewhat at a loss to know exactly _how_ it can be done however.

For me, it just works.  I installed 8.1-RELEASE (not all that
long after it was released), installed FF and some other ports
(using packages), and haven't done anything that I remember to
get FF to work.

However, as Chris Hill pointed out, I am only seeing the still
image.  I don't even see the link for a video stream.
___
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


cvsup question

2011-12-07 Thread Коньков Евгений
Hi

cvsup -g -L 2 /usr/local/etc/cvsup/cvsup-ports.conf
I have next conf for cvsup
cat cvsup-ports.conf
*default host=cvsup6.jp.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs date=2008.10.15.00.00.00
*default delete use-rel-suffix
*default compress
ports-databases date=2008.10.15.00.00.00


But when I update I see 'edits' on 2011 year despite on I notice to
use 2008 year
 Edit ports/databases/zodb3/pkg-plist
  Add delta 1.13 2011.11.21.07.12.23 wen
  Add delta 1.12 2011.02.14.01.08.24 wen
  Add delta 1.11 2011.02.13.01.39.46 wen
  Add delta 1.10 2010.10.12.13.38.46 wen


How that can be?

-- 
С уважением,
 Коньков  mailto:kes-...@yandex.ru

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


Problems with keyboard on the loader menu

2011-12-07 Thread Airton Arantes
I'm having troubles with my keyboard when the bootstrapping reach the
loader menu. My Keyboard simply doesn't works, but before and after the
loader menu my keyboard works very well. I have seen BIOS settings like USB
keyboard and nothing is helping. I didn't no one kernel tuning, I'm using
GENERIC. The Server is a HP Proliant DL120 G6. Does anyone here can help me?

-- 
Airton Arantes Coelho Filho
___
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


restore(8) to UFS on USB key: terrible slow

2011-12-07 Thread Matthias Apitz


Hello,

I encounter the following problem with UFS file systems on USB keys,
i.e. the problem is not only with one key, but with all I have; the key 
in question here is:

Dec  7 22:17:47 tinyCurrent kernel: umass0: Generic Mass Storage, class 0/0, 
rev 2.00/1.02, addr 3 on usbus4
Dec  7 22:17:47 tinyCurrent kernel: umass0:  SCSI over Bulk-Only; quirks = 
0x4101
Dec  7 22:17:47 tinyCurrent root: Unknown USB device: vendor 0x058f product 
0x6387 bus uhub4
Dec  7 22:17:48 tinyCurrent kernel: umass0:0:0:-1: Attached to scbus0
Dec  7 22:17:48 tinyCurrent kernel: da0 at umass-sim0 bus 0 scbus0 target 0 lun 0
Dec  7 22:17:48 tinyCurrent kernel: da0: Generic Flash Disk 8.07 Removable 
Direct Access SCSI-2 device
Dec  7 22:17:48 tinyCurrent kernel: da0: 40.000MB/s transfers
Dec  7 22:17:48 tinyCurrent kernel: da0: 7650MB (15667200 512 byte sectors: 
255H 63S/T 975C)

and the system is:

$ uname -a
FreeBSD tinyCurrent 9.0-CURRENT FreeBSD 9.0-CURRENT #1 r21: Thu Oct 28 
10:56:32 CEST 2010

The key was formatted the usual way for receiving a complete FreeBSD
system for installation purpose:

# fdisk -I da0
# fdisk -B da0
# bsdlabel -w da0s1 auto
# bsdlabel -B da0s1
# bsdlabel -e da0s1
# newfs /dev/da0s1a
# mount /dev/da0s1a /mnt

When I now bulk write a big file to the file system, the write
performance is reasonable fast, even with blocks of 512 bytes,
it gives 2 MByte / sec:

# dd if=usb.dmp of=/mnt/byte
10926520+0 records in
10926520+0 records out
5594378240 bytes transferred in 2538.942585 secs (2203428 bytes/sec)

the file of ~5 GByte was written and I removed it again; to be sure
that the file system is synced, I do an unmount(8) and mount(8) it
again before:

# df -kh /mnt
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a7.2G5.2G1.4G79%/mnt
tinyCurrent# umount /mnt
tinyCurrent# mount /dev/da0s1a /mnt
tinyCurrent# df -kh /mnt
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a7.2G5.2G1.4G79%/mnt
tinyCurrent# rm /mnt/byte
tinyCurrent# df -kh /mnt
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a7.2G 24M6.6G 0%/mnt

when I now restore a DUMP into the filesystem, the restore(8) 
creates first the directory tree:

# cd /mnt
# restore rvf /home/guru/usb.dmp 

this goes very fast (as far as I see from the lines scrolling) for
the first few thousand dirs:

...
Make node ./src/src/contrib/sendmail/.svn
Make node ./src/src/contrib/sendmail/.svn/tmp
Make node ./src/src/contrib/sendmail/.svn/tmp/text-base
Make node ./src/src/contrib/sendmail/.svn/tmp/prop-base
Make node ./src/src/contrib/sendmail/.svn/tmp/props
Make node ./src/src/contrib/sendmail/.svn/prop-base
Make node ./src/src/contrib/sendmail/.svn/props
Make node ./src/src/contrib/sendmail/.svn/text-base

after a while it get stuck and only does create the dirs with
a frequence of one per second; also the used space is growing very
slow:

# df -kh /mnt
Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/da0s1a7.2G 42M6.6G 1%/mnt

this is after an hour or so: only 42 MBytes are written now;

Any idea, what is broken with this?

Thanks

matthias

-- 
Matthias Apitz
t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211
e g...@unixarea.de - w http://www.unixarea.de/
UNIX since V7 on PDP-11 | UNIX on mainframe since ESER 1055 (IBM /370)
UNIX on x86 since SVR4.2 UnixWare 2.1.2 | FreeBSD since 2.2.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