Re: Getting rid of X

2009-08-20 Thread Mark Stapper
Chris Whitehouse wrote:
 John Nielsen wrote:
 On Wednesday 19 August 2009 12:17:10 Scott Schappell wrote:
 In a parallel sort of thread to the current desktop thread, when I
 installed FreeBSD 7.2 since I had plenty of disk space and memory I
 installed X, however, I don't need it or really want it.

 How can I pare that out of the system short of doing a complete
 rebuild?

 Install and run pkg-cutleaves, and let it loop through as many
 iterations as it needs.
 ___
 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


 To be safe, after you have deleted leaf ports you can install
 ports-mgmt/portmanager and run 'portmanager -s' redirected to a file
 then you will have a list of any missing ports. 'portmanager -u' will
 reinstall them for you. Of course you can probably do the same with
 portmaster or  portupgrade but I've found portmanager does a pretty
 good job.
 ___
 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
You probably allready did this, but you might want to add:
WITHOUT_X11=yes to make.conf
This will disable optional X support in certain ports.
Greetz,
Stark



signature.asc
Description: OpenPGP digital signature


Re: netbooks for freebsd?

2009-08-20 Thread Matthias Apitz
El día Wednesday, August 19, 2009 a las 06:59:47PM +0200, Polytropon escribió:

 On Wed, 19 Aug 2009 09:29:12 -0700, Jeff Hamann 
 jeff.ham...@forestinformatics.com wrote:
  1) Need to able to wipe out any ms-windows stuff, get installed, boot  
  up and running within 60 minutes of my time. Download, svn checkouts,  
  etc. not included. I've tired of spending weekend marathons for fun
 
 There's a good procedure for what you're mentioning. It
 takes placec on Asus EEEpc.
 
   http://www.unixarea.de/installEeePC.txt

The above URL is for 7.0-RELEASE (or also RELENG_7). For 8-CURRENT use:

http://www.unixarea.de/installEeePC-8CURRENT.txt

HIH

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/
People who hate Microsoft Windows use Linux but people who love UNIX use 
FreeBSD.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Recovering files after a crash

2009-08-20 Thread Erik Norgaard

Roland Smith wrote:

On Wed, Aug 19, 2009 at 09:59:32AM +0200, Erik Norgaard wrote:
Thanks, I couldn't decipher these GEOM_LABEL messages, nice to know that 
I can stop worrying. But for future incidents, the second question remains:


1. How do I best protect my system from disk errors in case of a crash?


One word: _backups_!

I have a headless system with no spare head to attach and doing 
single-user blind-folded is further complicated by the fact that I'm not 
native to the US keyboard layout, so my top priority is that it boots.


If you can connect it to another system (that has a monitor) via a serial
null-modem cable and you enable the serial console (see the Handbook), you can
watch the boot process from the other system.

If you don't have anothe machine closeby, you should get a network-accessible
KVM switch with serial connectors. [maybe something like this:
http://www.knuerr.com/web/en/products/kvm/kvm-switch-dominion-ksx.html] 
With such a switch and the serial console you should be able to watch the boot

of the machine remotely.


Ok, maybe I didn't make myself clear: I wish to protect my filesystem 
against corruption in case of a crash such that it will boot.


- How can I configure my system to reduce the probability that a crash 
will cause file system inconsistencies that require single user mode 
intervention?


backups does not answer that question, they are great for recovering 
lost data but don't prevent the crash.


KVM and serial console don't answer the question either. Certainly, it 
makes it easier to work headless. But neither prevent disk corruption.


UPS reduces the likelyhood of a crash in case of a power failure, but 
that doesn't answer the question either.


Asume that a crash will happen, how do I prevent or reduce the risk of a 
crash causing disk corruption such that the system will boot up nicely 
again?


BR, Erik
--
Erik Nørgaard
Ph: +34.666334818/+34.915211157  http://www.locolomo.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: Recovering files after a crash

2009-08-20 Thread Sebastian Seidl

Erik Norgaard wrote:

Roland Smith wrote:

On Wed, Aug 19, 2009 at 09:59:32AM +0200, Erik Norgaard wrote:
Thanks, I couldn't decipher these GEOM_LABEL messages, nice to know 
that I can stop worrying. But for future incidents, the second 
question remains:


1. How do I best protect my system from disk errors in case of a crash?


One word: _backups_!

I have a headless system with no spare head to attach and doing 
single-user blind-folded is further complicated by the fact that I'm 
not native to the US keyboard layout, so my top priority is that it 
boots.


If you can connect it to another system (that has a monitor) via a 
serial
null-modem cable and you enable the serial console (see the 
Handbook), you can

watch the boot process from the other system.

If you don't have anothe machine closeby, you should get a 
network-accessible

KVM switch with serial connectors. [maybe something like this:
http://www.knuerr.com/web/en/products/kvm/kvm-switch-dominion-ksx.html] 
With such a switch and the serial console you should be able to watch 
the boot

of the machine remotely.


Ok, maybe I didn't make myself clear: I wish to protect my filesystem 
against corruption in case of a crash such that it will boot.


- How can I configure my system to reduce the probability that a crash 
will cause file system inconsistencies that require single user mode 
intervention?


backups does not answer that question, they are great for recovering 
lost data but don't prevent the crash.


KVM and serial console don't answer the question either. Certainly, it 
makes it easier to work headless. But neither prevent disk corruption.


UPS reduces the likelyhood of a crash in case of a power failure, but 
that doesn't answer the question either.


Asume that a crash will happen, how do I prevent or reduce the risk of 
a crash causing disk corruption such that the system will boot up 
nicely again?


BR, Erik
If u want to reduce the posibility of data corruption I sugest using a 
smart UPS with management software installed and configured so that 
before battery power goes out it will do a clean shutdown and also 
restart the system when AC power is restored (see apcupsd).

That is what I'm using.

Regards,
Sebastian Seidl
___
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 from one network interface to another without reboot

2009-08-20 Thread Michal

Hello,

How can I switch from one network interface to another without rebooting 
my system (7.2R)?


Problem description: I've got a laptop with two network interfaces 
(wired em0 and wireless ath0). Every now and then I have to set up a DSL 
wireless box which comes with default settings so that I have to start 
with connecting my laptop via em0.
em0 gets IP address from wireless box by DHCP. I log in to web interface 
and set everything up including WLAN and restart wireless box. At this 
point I would like to switch to ath0 and start using internet connection 
via wireless box.

I'm taking em0 interface down with ifconfig em0 down and unplug the cable.
I'm changing /etc/rc.conf entries to:
ifconfig_em0=NOAUTO
ifconfig_ath0=WPA DHCP
Then I'm doing /etc/rc.d/netif restart and ath0 gets IP address via 
DHCP and is connected to wireless box (/etc/wpa_supplicant.conf is set up).


But whenever I try to ping anything (including wireless box) I get 
interface down message because my system still tries to use em0.

What else should I do to tell it that I'm connected to network via ath0 now?

Any suggestions are welcome.
Michal
--
The quiter you become, the more you can hear. -Ram Dass

___
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: Packages available for different FreeBSD versions

2009-08-20 Thread Andrew Gould
On Mon, Aug 17, 2009 at 9:27 PM, RWrwmailli...@googlemail.com wrote:
 On Mon, 17 Aug 2009 17:41:12 -0500
 Andrew Gould andrewlylego...@gmail.com wrote:

 STABLE is what it sounds like.

 I don't think it is what it sounds like - STABLE branches are
 development branches with stable binary interfaces. It's the security
 branches that are intended for production use.


From:
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/version-guide/index.html

During the lifetime of each major release, an individual branch may
also be termed STABLE. This indicates that the FreeBSD Project
believes that the branch is of sufficiently proven quality to be used
by a wide range of users. Branches that need further testing before
being widely adopted are named CURRENT.
___
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: Flash10 with 8.0-BETA2 and Firefox 3.5.2

2009-08-20 Thread Warren Block

On Thu, 20 Aug 2009, Tijl Coosemans wrote:


On Thursday 20 August 2009 03:41:05 Warren Block wrote:

On 8.0-BETA2 with www/linux-f10-flashplugin10 and www/firefox35
installed.

As per the Handbook, a soft link in /usr/local/lib/browser_plugins to
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so.
nspluginwrapper -a -i runs normally.

linprocfs mounted, and nspluginwrapper -l shows
/usr/local/lib/browser_plugins/libflashplayer.so.

But about:plugins shows nothing but the default plugin.

Is something else necessary?


I think you ran nspluginwrapper as root. If you run it as a normal
user it puts the wrapped plugin in ~/.mozilla/plugins where Firefox
picks it up. If you run it as root it puts it in
/usr/local/lib/browser_plugins. Firefox 2.x and some other browsers
scan this directory, but newer versions don't for some reason. You have
to create a symlink in /usr/local/lib/firefox3/plugins/ to the
npwrapper plugin in /usr/local/lib/browser_plugins/


That works!

I had first run nspluginwrapper -a -i as normal user, then as root.

There is no ~/.mozilla directory for either root or normal user.  But 
this is the first machine I've set up where Firefox3.5 was a fresh 
install, not an update to a previous version.


Should the Handbook instructions be updated?

-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: switching from one network interface to another without reboot

2009-08-20 Thread Adam Vande More
On Thu, Aug 20, 2009 at 6:25 AM, Michal m...@infosec.pl wrote:

 Hello,

 How can I switch from one network interface to another without rebooting my
 system (7.2R)?

 Problem description: I've got a laptop with two network interfaces (wired
 em0 and wireless ath0). Every now and then I have to set up a DSL wireless
 box which comes with default settings so that I have to start with
 connecting my laptop via em0.
 em0 gets IP address from wireless box by DHCP. I log in to web interface
 and set everything up including WLAN and restart wireless box. At this point
 I would like to switch to ath0 and start using internet connection via
 wireless box.
 I'm taking em0 interface down with ifconfig em0 down and unplug the
 cable.
 I'm changing /etc/rc.conf entries to:
 ifconfig_em0=NOAUTO
 ifconfig_ath0=WPA DHCP
 Then I'm doing /etc/rc.d/netif restart and ath0 gets IP address via DHCP
 and is connected to wireless box (/etc/wpa_supplicant.conf is set up).

 But whenever I try to ping anything (including wireless box) I get
 interface down message because my system still tries to use em0.
 What else should I do to tell it that I'm connected to network via ath0
 now?

 Any suggestions are welcome.
 Michal
 --
 The quiter you become, the more you can hear. -Ram Dass


 /etc/rc.d/netif stop em0
/etc/rc.d/netif start ath0


-- 
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: Flash10 with 8.0-BETA2 and Firefox 3.5.2

2009-08-20 Thread Tijl Coosemans
On Thursday 20 August 2009 03:41:05 Warren Block wrote:
 On 8.0-BETA2 with www/linux-f10-flashplugin10 and www/firefox35
 installed.
 
 As per the Handbook, a soft link in /usr/local/lib/browser_plugins to
 /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so.
 nspluginwrapper -a -i runs normally.
 
 linprocfs mounted, and nspluginwrapper -l shows
 /usr/local/lib/browser_plugins/libflashplayer.so.
 
 But about:plugins shows nothing but the default plugin.
 
 Is something else necessary?

I think you ran nspluginwrapper as root. If you run it as a normal
user it puts the wrapped plugin in ~/.mozilla/plugins where Firefox
picks it up. If you run it as root it puts it in
/usr/local/lib/browser_plugins. Firefox 2.x and some other browsers
scan this directory, but newer versions don't for some reason. You have
to create a symlink in /usr/local/lib/firefox3/plugins/ to the
npwrapper plugin in /usr/local/lib/browser_plugins/
___
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


Lock order reversals on RELENG_8

2009-08-20 Thread Peter Cornelius
Hi,

Are these lock order reversals reported any reason for preoccupation and/or 
should I report elsewhere?

The kernel I just built does not boot at all, so I don´t know whether these are 
a closed issue already. I´m off for a couple of days and will retry then. 

Thanks  regards,

Peter.

---
Note: Kernels are GENERIC w/o i386/i486 options,
  Plus from no 4 onwards with VIMAGE and w/o SCTP option,
  All fs encrypted with geli except /.
---

Aug 16 13:51:56 netserv kernel: FreeBSD 8.0-BETA2 #3: Sun Aug 16 10:28:08 UTC 
2009
Aug 16 13:51:56 netserv kernel: 
r...@netserv.ka.cornelius:/usr/Obj-RELENG_8/usr/Src-RELENG_8/sys/NETSERV
Aug 16 13:51:56 netserv kernel: WARNING: WITNESS option enabled, expect reduced 
performance.
Aug 16 13:51:56 netserv kernel: Timecounter i8254 frequency 1193182 Hz 
quality 0
Aug 16 13:51:56 netserv kernel: CPU: Intel Pentium III (1004.52-MHz 686-class 
CPU)
Aug 16 13:51:56 netserv kernel: Origin = GenuineIntel  Id = 0x686  Stepping = 
6
Aug 16 13:51:56 netserv kernel: 
Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,
PAT,PSE36,MMX,FXSR,SSE
Aug 16 13:51:56 netserv kernel: real memory  = 1610612736 (1536 MB)
Aug 16 13:51:56 netserv kernel: avail memory = 1559375872 (1487 MB)
Aug 16 13:51:56 netserv kernel: ACPI APIC Table: ASUS   CUV4X-D 
Aug 16 13:51:56 netserv kernel: FreeBSD/SMP: Multiprocessor System Detected: 2 
CPUs
Aug 16 13:51:56 netserv kernel: FreeBSD/SMP: 2 package(s) x 1 core(s)
Aug 16 13:51:56 netserv kernel: cpu0 (BSP): APIC ID:  3
Aug 16 13:51:56 netserv kernel: cpu1 (AP): APIC ID:  0
(...)
Aug 16 13:58:56 netserv kernel: lock order reversal:
Aug 16 13:58:56 netserv kernel: 1st 0xd8d413f0 bufwait (bufwait) @ 
/usr/Src-RELENG_8/sys/kern/vfs_bio.c:2559
Aug 16 13:58:56 netserv kernel: 2nd 0xc5782000 dirhash (dirhash) @ 
/usr/Src-RELENG_8/sys/ufs/ufs/ufs_dirhash.c:285
Aug 16 13:58:56 netserv kernel: KDB: stack backtrace:
Aug 16 13:58:56 netserv kernel: 
db_trace_self_wrapper(c0c73804,e782c75c,c08c0d25,c08b1a0b,c0c7675b,...) at 
db_trace_self_wrapper+0x26
Aug 16 13:58:56 netserv kernel: 
kdb_backtrace(c08b1a0b,c0c7675b,c4d2be90,c4d2f228,e782c7b8,...) at 
kdb_backtrace+0x29
Aug 16 13:58:56 netserv kernel: 
_witness_debugger(c0c7675b,c5782000,c0c97efa,c4d2f228,c0c97b8a,...) at 
_witness_debugger+0x25
Aug 16 13:58:56 netserv kernel: 
witness_checkorder(c5782000,9,c0c97b8a,11d,0,...) at witness_checkorder+0x839
Aug 16 13:58:56 netserv kernel: _sx_xlock(c5782000,0,c0c97b8a,11d,c58d9ae0,...) 
at _sx_xlock+0x85
Aug 16 13:58:56 netserv kernel: 
ufsdirhash_acquire(d8d41390,da0ab800,200,da0ab818,e782c888,...) at 
ufsdirhash_acquire+0x35
Aug 16 13:58:56 netserv kernel: 
ufsdirhash_add(c58d9ae0,e782c8d0,818,e782c874,e782c878,...) at 
ufsdirhash_add+0x13
Aug 16 13:58:56 netserv kernel: 
ufs_direnter(c596953c,c596696c,e782c8d0,e782cbd0,0,...) at ufs_direnter+0x729
Aug 16 13:58:56 netserv kernel: 
ufs_makeinode(e782cbd0,0,e782cabc,e782ca18,c0bbc895,...) at
Aug 16 13:58:56 netserv kernel: ufs_makeinode+0x508
Aug 16 13:58:56 netserv kernel: ufs_create(e782cabc,e782cad4,0,0,e782cba4,...) 
at ufs_create+0x30
Aug 16 13:58:56 netserv kernel: 
VOP_CREATE_APV(c0d77740,e782cabc,e782cbd0,e782ca54,0,...) at VOP_CREATE_APV+0xa5
Aug 16 13:58:56 netserv kernel: 
vn_open_cred(e782cba4,e782cc5c,1a4,0,c51d2b00,...) at vn_open_cred+0x215
Aug 16 13:58:56 netserv kernel: 
vn_open(e782cba4,e782cc5c,1a4,c51fadc8,c0c98f76,...) at vn_open+0x3b
Aug 16 13:58:56 netserv kernel: 
kern_openat(c5232000,ff9c,28412180,0,a02,...) at kern_openat+0x11f
Aug 16 13:58:56 netserv kernel: kern_open(c5232000,28412180,0,a01,1a4,...) at 
kern_open+0x35
Aug 16 13:58:56 netserv kernel: open(c5232000,e782ccf8,c,c0c77024,c0d55f6c,...) 
at open+0x30
Aug 16 13:58:56 netserv kernel: syscall(e782cd38) at syscall+0x2a3
Aug 16 13:58:56 netserv kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20
Aug 16 13:58:56 netserv kernel: --- syscall (5, FreeBSD ELF32, open), eip = 
0x28335923, esp = 0xbfbfe7bc, ebp = 0xbfbfe7e8 ---
(...)
Aug 16 14:16:04 netserv kernel: lock order reversal:
Aug 16 14:16:04 netserv kernel: 1st 0xc6df37ac ufs (ufs) @ 
/usr/Src-RELENG_8/sys/kern/vfs_lookup.c:497
Aug 16 14:16:04 netserv kernel: 2nd 0xd8debf40 bufwait (bufwait) @ 
/usr/Src-RELENG_8/sys/ufs/ffs/ffs_softdep.c:6177
Aug 16 14:16:04 netserv kernel: 3rd 0xc6e3f164 ufs (ufs) @ 
/usr/Src-RELENG_8/sys/kern/vfs_subr.c:2083
Aug 16 14:16:04 netserv kernel: KDB: stack backtrace:
Aug 16 14:16:04 netserv kernel: 
db_trace_self_wrapper(c0c73804,e78b33cc,c08c0d25,c08b1a0b,c0c76774,...) at 
db_trace_self_wrapper+0x26
Aug 16 14:16:04 netserv kernel: 
kdb_backtrace(c08b1a0b,c0c76774,c4d2be90,c4d2f1c0,e78b3428,...) at 
kdb_backtrace+0x29
Aug 16 14:16:04 netserv kernel: 
_witness_debugger(c0c76774,c6e3f164,c0c690c7,c4d2f1c0,c0c7db33,...) at 
_witness_debugger+0x25
Aug 16 14:16:04 netserv kernel: 
witness_checkorder(c6e3f164,9,c0c7db33,823,0,...) at witness_checkorder+0x839
Aug 16 14:16:04 netserv kernel: 

Re: Flash10 with 8.0-BETA2 and Firefox 3.5.2

2009-08-20 Thread Marc Fonvieille
On Thu, Aug 20, 2009 at 06:12:23AM -0600, Warren Block wrote:
 On Thu, 20 Aug 2009, Tijl Coosemans wrote:
 
  On Thursday 20 August 2009 03:41:05 Warren Block wrote:
  On 8.0-BETA2 with www/linux-f10-flashplugin10 and www/firefox35
  installed.
 
  As per the Handbook, a soft link in /usr/local/lib/browser_plugins to
  /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so.
  nspluginwrapper -a -i runs normally.
 
  linprocfs mounted, and nspluginwrapper -l shows
  /usr/local/lib/browser_plugins/libflashplayer.so.
 
  But about:plugins shows nothing but the default plugin.
 
  Is something else necessary?
 
  I think you ran nspluginwrapper as root. If you run it as a normal
  user it puts the wrapped plugin in ~/.mozilla/plugins where Firefox
  picks it up. If you run it as root it puts it in
  /usr/local/lib/browser_plugins. Firefox 2.x and some other browsers
  scan this directory, but newer versions don't for some reason. You have
  to create a symlink in /usr/local/lib/firefox3/plugins/ to the
  npwrapper plugin in /usr/local/lib/browser_plugins/
 
 That works!
 
 I had first run nspluginwrapper -a -i as normal user, then as root.


The Handbook says:

--
Once the right Flash port, according to the FreeBSD version you run, is
installed, the plugin must be installed by each user with
nspluginwrapper:

% nspluginwrapper -v -a -i
--

So you should not run it as root.

 There is no ~/.mozilla directory for either root or normal user.  But 
 this is the first machine I've set up where Firefox3.5 was a fresh 
 install, not an update to a previous version.
 

Here what I did:

% rm -rf .mozilla
% nspluginwrapper -l

% nspluginwrapper -a -i
% nspluginwrapper -l
/home/marc/.mozilla/plugins/npwrapper.libflashplayer.so
  Original plugin: /usr/local/lib/browser_plugins/libflashplayer.so
  Wrapper version string: 1.2.2

So even if a $HOME/.mozilla does not exist, it'll be created by
nspluginwrapper.

 Should the Handbook instructions be updated?


I don't think it's needed here.

-- 
Marc
___
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: Flash10 with 8.0-BETA2 and Firefox 3.5.2

2009-08-20 Thread Marc Fonvieille
On Thu, Aug 20, 2009 at 02:30:41PM +0200, Marc Fonvieille wrote:
 On Thu, Aug 20, 2009 at 06:12:23AM -0600, Warren Block wrote:
  On Thu, 20 Aug 2009, Tijl Coosemans wrote:
  
   On Thursday 20 August 2009 03:41:05 Warren Block wrote:
   On 8.0-BETA2 with www/linux-f10-flashplugin10 and www/firefox35
   installed.
  
   As per the Handbook, a soft link in /usr/local/lib/browser_plugins to
   /usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so.
   nspluginwrapper -a -i runs normally.
  
   linprocfs mounted, and nspluginwrapper -l shows
   /usr/local/lib/browser_plugins/libflashplayer.so.
  
   But about:plugins shows nothing but the default plugin.
  
   Is something else necessary?
  
   I think you ran nspluginwrapper as root. If you run it as a normal
   user it puts the wrapped plugin in ~/.mozilla/plugins where Firefox
   picks it up. If you run it as root it puts it in
   /usr/local/lib/browser_plugins. Firefox 2.x and some other browsers
   scan this directory, but newer versions don't for some reason. You have
   to create a symlink in /usr/local/lib/firefox3/plugins/ to the
   npwrapper plugin in /usr/local/lib/browser_plugins/
  
  That works!
  
  I had first run nspluginwrapper -a -i as normal user, then as root.
 
 
 The Handbook says:
 
 --
 Once the right Flash port, according to the FreeBSD version you run, is
 installed, the plugin must be installed by each user with
 nspluginwrapper:
 
 % nspluginwrapper -v -a -i
 --
 
 So you should not run it as root.
 
  There is no ~/.mozilla directory for either root or normal user.  But 
  this is the first machine I've set up where Firefox3.5 was a fresh 
  install, not an update to a previous version.
  
 
 Here what I did:
 
 % rm -rf .mozilla
 % nspluginwrapper -l
 
 % nspluginwrapper -a -i
 % nspluginwrapper -l
 /home/marc/.mozilla/plugins/npwrapper.libflashplayer.so
   Original plugin: /usr/local/lib/browser_plugins/libflashplayer.so
   Wrapper version string: 1.2.2
 
 So even if a $HOME/.mozilla does not exist, it'll be created by
 nspluginwrapper.


I forgot to say that

/usr/local/lib/firefox3/plugins/

just contains libnullplugin.so here.

  Should the Handbook instructions be updated?
 
 
 I don't think it's needed here.
 
 -- 
 Marc

-- 
Marc
___
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 from one network interface to another without reboot

2009-08-20 Thread Michal

Adam Vande More wrote:

/etc/rc.d/netif stop em0
/etc/rc.d/netif start ath0



Works like a charm, thank you so much.

Michal
--
Attacks always get better; they never get worse. -NSA
___
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: Flash10 with 8.0-BETA2 and Firefox 3.5.2

2009-08-20 Thread Warren Block

On Thu, 20 Aug 2009, Marc Fonvieille wrote:


On Thu, Aug 20, 2009 at 06:12:23AM -0600, Warren Block wrote:

On Thu, 20 Aug 2009, Tijl Coosemans wrote:


On Thursday 20 August 2009 03:41:05 Warren Block wrote:

On 8.0-BETA2 with www/linux-f10-flashplugin10 and www/firefox35
installed.

As per the Handbook, a soft link in /usr/local/lib/browser_plugins to
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so.
nspluginwrapper -a -i runs normally.

linprocfs mounted, and nspluginwrapper -l shows
/usr/local/lib/browser_plugins/libflashplayer.so.

But about:plugins shows nothing but the default plugin.

Is something else necessary?


I think you ran nspluginwrapper as root. If you run it as a normal
user it puts the wrapped plugin in ~/.mozilla/plugins where Firefox
picks it up. If you run it as root it puts it in
/usr/local/lib/browser_plugins. Firefox 2.x and some other browsers
scan this directory, but newer versions don't for some reason. You have
to create a symlink in /usr/local/lib/firefox3/plugins/ to the
npwrapper plugin in /usr/local/lib/browser_plugins/


That works!

I had first run nspluginwrapper -a -i as normal user, then as root.



The Handbook says:

--
Once the right Flash port, according to the FreeBSD version you run, is
installed, the plugin must be installed by each user with
nspluginwrapper:

% nspluginwrapper -v -a -i
--

So you should not run it as root.


Let me clarify: I did not run it as root until after it didn't work as a 
normal user.  Or at least I thought I didn't.


Now, having removed the link in /usr/local/lib/firefox3/plugins and 
making sure that npwrapper.libflashplayer.so was not present in 
/usr/local/lib/browser_plugins, nspluginwrapper and Flash as a normal 
user works.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


desktop effects

2009-08-20 Thread Steven Friedrich
I'm running freebsd 7.2p3, kde4.3.0, X7.4_2, and using the radeon X driver.

I get an error dialog when I enable desktop effects.

Can anyone enable desktop effects?  I'm wondering if it requires support in 
the X driver and perhaps the ati drivers don't support it yet.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Recovering files after a crash

2009-08-20 Thread Ruben de Groot
 Erik Norgaard wrote:
 
 Ok, maybe I didn't make myself clear: I wish to protect my filesystem 
 against corruption in case of a crash such that it will boot.
 
 - How can I configure my system to reduce the probability that a crash 
 will cause file system inconsistencies that require single user mode 
 intervention?
 
 backups does not answer that question, they are great for recovering 
 lost data but don't prevent the crash.
 
 KVM and serial console don't answer the question either. Certainly, it 
 makes it easier to work headless. But neither prevent disk corruption.
 
 UPS reduces the likelyhood of a crash in case of a power failure, but 
 that doesn't answer the question either.
 
 Asume that a crash will happen, how do I prevent or reduce the risk of 
 a crash causing disk corruption such that the system will boot up 
 nicely again?

You could mount all system partitions ro (using memory fs for /tmp and /var)
Setting the noauto option for your data partitions in fstab will 
allmost guarantee the system to boot to multiuser after a crash. You can then 
mount these partitions from a script in for example rc.local. If these
mounts fail, the system will then not drop to single user mode.

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


Re: desktop effects

2009-08-20 Thread Adam Vande More
On Thu, Aug 20, 2009 at 7:36 AM, Steven Friedrich free...@insightbb.comwrote:

 I'm running freebsd 7.2p3, kde4.3.0, X7.4_2, and using the radeon X driver.

 I get an error dialog when I enable desktop effects.

 Can anyone enable desktop effects?  I'm wondering if it requires support in
 the X driver and perhaps the ati drivers don't support it yet.
 ___
 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


You need to enable the appropriate settings within xorg.conf.

-- 
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: firefox 2.0.0.20_9,1

2009-08-20 Thread Howard Goldstein
ajtiM wrote:
 firefox 2.0.0.20_9,1
 Paul Schmehl pschmehl_lists at tx.rr.com 
  Thu Aug 13 02:16:24 UTC 2009 
 Previous message: firefox 2.0.0.20_9,1 
 Next message: firefox 2.0.0.20_9,1 
 Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] 
 --On August 12, 2009 8:18:55 PM -0500 ajtiM lumiwa at gmail.com wrote:
 
 Hi!
 When I run


 ;
 portaudit -a
 Affected package: firefox-2.0.0.20_9,1
 Type of problem: mozilla -- multiple vulnerabilities.
 Reference:
 http://portaudit.FreeBSD.org/49e8f2ee-8147-11de-a994-0030843d3802.html

 but when I check above site I found:
 Affects:
 firefox 3.*,1
 firefox 3.*,1 3.0.13,1
 firefox 3.5.*,1 3.5.2,1
 linux-firefox 3.*,1
 linux-firefox 3.*,1 3.0.13,1
 linux-firefox 3.5.*,1 3.5.2,1
 linux-firefox-devel 3.5.2
 seamonkey 0
 linux-seamonkey 0
 linux-seamonkey-devel 0
 thunderbird 0
 linux-thunderbird 0

 Are problem with  firefox-2.0.0.20_9,1 or not, please.
 
 That port should probably be removed.  It's ancient.
 
 Use /usr/ports/www/firefox3 or /usr/ports/www/firefox3.5

It's like the cat dragged in firefox2 despite use of 3.5 for actual
browsing :(  Is there a good way to resolve these dependencies through
firefox3 or 3.5 short of ditching gnome?

cally:/usr/home/hg$ pkg_info -R firefox-2.0.0.20_9,1
Information for firefox-2.0.0.20_9,1:

Required by:
epiphany-2.26.3_3
epiphany-extensions-2.26.1_1
galeon-2.0.7_1
gdesklets-0.35.4_6
gnome2-2.26.3
gnome2-fifth-toe-2.26.3
gnome2-power-tools-2.26.3
py26-gnome-extras-2.25.3_3
seahorse-plugins-2.26.2_2
straw-0.27_4
yelp-2.26.0_1






signature.asc
Description: OpenPGP digital signature


Re: firefox 2.0.0.20_9,1

2009-08-20 Thread Lowell Gilbert
Howard Goldstein h...@queue.to writes:

 It's like the cat dragged in firefox2 despite use of 3.5 for actual
 browsing :(  Is there a good way to resolve these dependencies through
 firefox3 or 3.5 short of ditching gnome?

Yeah, it's really from the gecko handling.  According to
Mk/bsd.gecko.mk, I think you could add something like the following to
make.conf to do what you need:

USE_GECKO= firefox3-firefox

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Packages available for different FreeBSD versions

2009-08-20 Thread RW
On Thu, 20 Aug 2009 07:05:27 -0500
Andrew Gould andrewlylego...@gmail.com wrote:

 On Mon, Aug 17, 2009 at 9:27 PM, RWrwmailli...@googlemail.com wrote:
  On Mon, 17 Aug 2009 17:41:12 -0500
  Andrew Gould andrewlylego...@gmail.com wrote:
 
  STABLE is what it sounds like.
 
  I don't think it is what it sounds like - STABLE branches are
  development branches with stable binary interfaces. It's the
  security branches that are intended for production use.
 
 
 From:
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/version-guide/index.html
 
 During the lifetime of each major release, an individual branch may
 also be termed STABLE. This indicates that the FreeBSD Project
 believes that the branch is of sufficiently proven quality to be used
 by a wide range of users.

Right, sufficiently proven quality to be used by a wide range of users
for beta testing.

I'm not saying that the stable branches shouldn't be used for production
use, just that it's inadvisable to use them without a clear
understanding of the reason why.

___
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: Packages available for different FreeBSD versions

2009-08-20 Thread Jerry McAllister
On Thu, Aug 20, 2009 at 07:05:27AM -0500, Andrew Gould wrote:

 On Mon, Aug 17, 2009 at 9:27 PM, RWrwmailli...@googlemail.com wrote:
  On Mon, 17 Aug 2009 17:41:12 -0500
  Andrew Gould andrewlylego...@gmail.com wrote:
 
  STABLE is what it sounds like.
 
  I don't think it is what it sounds like - STABLE branches are
  development branches with stable binary interfaces. It's the security
  branches that are intended for production use.
 
 
 From:
 http://www.freebsd.org/doc/en_US.ISO8859-1/articles/version-guide/index.html
 
 During the lifetime of each major release, an individual branch may
 also be termed STABLE. This indicates that the FreeBSD Project
 believes that the branch is of sufficiently proven quality to be used
 by a wide range of users. Branches that need further testing before
 being widely adopted are named CURRENT.

Yes, the snapshot is of a STABLE version when it is past the totally
on the edge CURRENT condition.   It is pretty close to becoming
a RELEASE version.  Generally only some more testing and getting
ports ready for that version separates STABLE from RELEASE.
CURRENT is where new development is happening.

In some sense CURRENT is akin to an early (pre) Alpha version, STABLE
is akin to a late Beta (almost release) version and RELEASE is the 
supported release of the version.   But it is not quite that.   Most 
companies do not put out their development source or a snapshot of
of the system as they are working on it.   They hold that secret and
only release something after pretty much everything locked in before
they let anyone in the public see it.

jerry


 ___
 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


diablo-jdk16

2009-08-20 Thread Roy Stuivenberg
Hello,

I am facing a java problem.

When I try to install diablo-jdk16 it says ..

rs-unix# pwd
/usr/ports/java/diablo-jdk16
rs-unix# make install clean
===  Vulnerability check disabled, database not found
===  Found saved configuration for diablo-jdk-1.6.0.07.02_5

 Because of licensing restrictions, you must fetch the distribution
 manually.

 Please open http://java.sun.com/javase/downloads/index.jsp
 in a web browser and follow the Download link for
 JDK US DST Timezone Update Tool - 1_3_15 to obtain the
 time zone update file, tzupdater-1_3_15-2009g.zip.

 Please place the downloaded file(s) in /usr/ports/distfiles.

*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
rs-unix# 

I have tzupdater-1_3_18-2009k.zip in /usr/ports/distfiles.

So I don't understand this issue, or what might be going wrong.


rs-unix# uname -a
FreeBSD rs-unix.roycs.nl 7.2-STABLE FreeBSD 7.2-STABLE #1: Wed Aug  5
09:57:02 CEST 2009
ams...@rs-unix.roycs.nl:/usr/obj/usr/src/sys/GENERIC-ROYCS  i386
rs-unix# 


Regards,

Roy Stuivenberg.

___
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: Lock order reversals on RELENG_8

2009-08-20 Thread Fernando Apesteguía
On Thu, Aug 20, 2009 at 2:08 PM, Peter Corneliusp...@gmx.net wrote:
 Hi,

 Are these lock order reversals reported any reason for preoccupation and/or 
 should I report elsewhere?

 The kernel I just built does not boot at all, so I don´t know whether these 
 are a closed issue already. I´m off for a couple of days and will retry then.


Maybe the link reported here[1] could be useful.

Cheers.
[1]http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/202308.html

 Thanks  regards,

 Peter.

 ---
 Note: Kernels are GENERIC w/o i386/i486 options,
      Plus from no 4 onwards with VIMAGE and w/o SCTP option,
      All fs encrypted with geli except /.
 ---

 Aug 16 13:51:56 netserv kernel: FreeBSD 8.0-BETA2 #3: Sun Aug 16 10:28:08 UTC 
 2009
 Aug 16 13:51:56 netserv kernel: 
 r...@netserv.ka.cornelius:/usr/Obj-RELENG_8/usr/Src-RELENG_8/sys/NETSERV
 Aug 16 13:51:56 netserv kernel: WARNING: WITNESS option enabled, expect 
 reduced performance.
 Aug 16 13:51:56 netserv kernel: Timecounter i8254 frequency 1193182 Hz 
 quality 0
 Aug 16 13:51:56 netserv kernel: CPU: Intel Pentium III (1004.52-MHz 686-class 
 CPU)
 Aug 16 13:51:56 netserv kernel: Origin = GenuineIntel  Id = 0x686  Stepping 
 = 6
 Aug 16 13:51:56 netserv kernel: 
 Features=0x383fbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,
 PAT,PSE36,MMX,FXSR,SSE
 Aug 16 13:51:56 netserv kernel: real memory  = 1610612736 (1536 MB)
 Aug 16 13:51:56 netserv kernel: avail memory = 1559375872 (1487 MB)
 Aug 16 13:51:56 netserv kernel: ACPI APIC Table: ASUS   CUV4X-D 
 Aug 16 13:51:56 netserv kernel: FreeBSD/SMP: Multiprocessor System Detected: 
 2 CPUs
 Aug 16 13:51:56 netserv kernel: FreeBSD/SMP: 2 package(s) x 1 core(s)
 Aug 16 13:51:56 netserv kernel: cpu0 (BSP): APIC ID:  3
 Aug 16 13:51:56 netserv kernel: cpu1 (AP): APIC ID:  0
 (...)
 Aug 16 13:58:56 netserv kernel: lock order reversal:
 Aug 16 13:58:56 netserv kernel: 1st 0xd8d413f0 bufwait (bufwait) @ 
 /usr/Src-RELENG_8/sys/kern/vfs_bio.c:2559
 Aug 16 13:58:56 netserv kernel: 2nd 0xc5782000 dirhash (dirhash) @ 
 /usr/Src-RELENG_8/sys/ufs/ufs/ufs_dirhash.c:285
 Aug 16 13:58:56 netserv kernel: KDB: stack backtrace:
 Aug 16 13:58:56 netserv kernel: 
 db_trace_self_wrapper(c0c73804,e782c75c,c08c0d25,c08b1a0b,c0c7675b,...) at 
 db_trace_self_wrapper+0x26
 Aug 16 13:58:56 netserv kernel: 
 kdb_backtrace(c08b1a0b,c0c7675b,c4d2be90,c4d2f228,e782c7b8,...) at 
 kdb_backtrace+0x29
 Aug 16 13:58:56 netserv kernel: 
 _witness_debugger(c0c7675b,c5782000,c0c97efa,c4d2f228,c0c97b8a,...) at 
 _witness_debugger+0x25
 Aug 16 13:58:56 netserv kernel: 
 witness_checkorder(c5782000,9,c0c97b8a,11d,0,...) at witness_checkorder+0x839
 Aug 16 13:58:56 netserv kernel: 
 _sx_xlock(c5782000,0,c0c97b8a,11d,c58d9ae0,...) at _sx_xlock+0x85
 Aug 16 13:58:56 netserv kernel: 
 ufsdirhash_acquire(d8d41390,da0ab800,200,da0ab818,e782c888,...) at 
 ufsdirhash_acquire+0x35
 Aug 16 13:58:56 netserv kernel: 
 ufsdirhash_add(c58d9ae0,e782c8d0,818,e782c874,e782c878,...) at 
 ufsdirhash_add+0x13
 Aug 16 13:58:56 netserv kernel: 
 ufs_direnter(c596953c,c596696c,e782c8d0,e782cbd0,0,...) at ufs_direnter+0x729
 Aug 16 13:58:56 netserv kernel: 
 ufs_makeinode(e782cbd0,0,e782cabc,e782ca18,c0bbc895,...) at
 Aug 16 13:58:56 netserv kernel: ufs_makeinode+0x508
 Aug 16 13:58:56 netserv kernel: 
 ufs_create(e782cabc,e782cad4,0,0,e782cba4,...) at ufs_create+0x30
 Aug 16 13:58:56 netserv kernel: 
 VOP_CREATE_APV(c0d77740,e782cabc,e782cbd0,e782ca54,0,...) at 
 VOP_CREATE_APV+0xa5
 Aug 16 13:58:56 netserv kernel: 
 vn_open_cred(e782cba4,e782cc5c,1a4,0,c51d2b00,...) at vn_open_cred+0x215
 Aug 16 13:58:56 netserv kernel: 
 vn_open(e782cba4,e782cc5c,1a4,c51fadc8,c0c98f76,...) at vn_open+0x3b
 Aug 16 13:58:56 netserv kernel: 
 kern_openat(c5232000,ff9c,28412180,0,a02,...) at kern_openat+0x11f
 Aug 16 13:58:56 netserv kernel: kern_open(c5232000,28412180,0,a01,1a4,...) at 
 kern_open+0x35
 Aug 16 13:58:56 netserv kernel: 
 open(c5232000,e782ccf8,c,c0c77024,c0d55f6c,...) at open+0x30
 Aug 16 13:58:56 netserv kernel: syscall(e782cd38) at syscall+0x2a3
 Aug 16 13:58:56 netserv kernel: Xint0x80_syscall() at Xint0x80_syscall+0x20
 Aug 16 13:58:56 netserv kernel: --- syscall (5, FreeBSD ELF32, open), eip = 
 0x28335923, esp = 0xbfbfe7bc, ebp = 0xbfbfe7e8 ---
 (...)
 Aug 16 14:16:04 netserv kernel: lock order reversal:
 Aug 16 14:16:04 netserv kernel: 1st 0xc6df37ac ufs (ufs) @ 
 /usr/Src-RELENG_8/sys/kern/vfs_lookup.c:497
 Aug 16 14:16:04 netserv kernel: 2nd 0xd8debf40 bufwait (bufwait) @ 
 /usr/Src-RELENG_8/sys/ufs/ffs/ffs_softdep.c:6177
 Aug 16 14:16:04 netserv kernel: 3rd 0xc6e3f164 ufs (ufs) @ 
 /usr/Src-RELENG_8/sys/kern/vfs_subr.c:2083
 Aug 16 14:16:04 netserv kernel: KDB: stack backtrace:
 Aug 16 14:16:04 netserv kernel: 
 db_trace_self_wrapper(c0c73804,e78b33cc,c08c0d25,c08b1a0b,c0c76774,...) at 
 db_trace_self_wrapper+0x26
 Aug 16 14:16:04 netserv kernel: 
 kdb_backtrace(c08b1a0b,c0c76774,c4d2be90,c4d2f1c0,e78b3428,...) at 
 

Re: diablo-jdk16

2009-08-20 Thread Andreas Rudisch
On Thu, 20 Aug 2009 18:30:57 +0200
Roy Stuivenberg roys1...@gmail.com wrote:

  Please open http://java.sun.com/javase/downloads/index.jsp
  in a web browser and follow the Download link for
  JDK US DST Timezone Update Tool - 1_3_15 to obtain the
  time zone update file, tzupdater-1_3_15-2009g.zip.

 I have tzupdater-1_3_18-2009k.zip in /usr/ports/distfiles.
 So I don't understand this issue, or what might be going wrong.

1.3.18 =! 1.3.15

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgptRPpTq4jJN.pgp
Description: PGP signature


Re: desktop effects

2009-08-20 Thread Adam Vande More
On Thu, Aug 20, 2009 at 8:51 AM, Adam Vande More amvandem...@gmail.comwrote:

 On Thu, Aug 20, 2009 at 7:36 AM, Steven Friedrich 
 free...@insightbb.comwrote:

 I'm running freebsd 7.2p3, kde4.3.0, X7.4_2, and using the radeon X
 driver.

 I get an error dialog when I enable desktop effects.

 Can anyone enable desktop effects?  I'm wondering if it requires support
 in
 the X driver and perhaps the ati drivers don't support it yet.
 ___
 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


 You need to enable the appropriate settings within xorg.conf.

 --
 Adam Vande More

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

Section ServerFlags
   Option AIGLX True
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
   #DisplaySize  340   270 # mm
   Identifier   Monitor0
   Option  DPMS
EndSection

Section Monitor
   Identifier   Monitor1
   Option  DPMS
   Option  LeftOf Monitor0
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 NoAccel   # [bool]
   #Option SWcursor  # [bool]
   #Option Dac6Bit   # [bool]
   #Option Dac8Bit   # [bool]
   #Option BusType   # [str]
   #Option CPPIOMode # [bool]
   #Option CPusecTimeout # i
   #Option AGPMode   # i
   #Option AGPFastWrite  # [bool]
   #Option AGPSize   # i
   #Option GARTSize  # i
   #Option RingSize  # i
   #Option BufferSize# i
   #Option EnableDepthMoves  # [bool]
   #Option EnablePageFlip# [bool]
   #Option NoBackBuffer  # [bool]
   #Option DMAForXv  # [bool]
   #Option FBTexPercent  # i
   #Option DepthBits # i
   #Option PCIAPERSize   # i
   #Option AccelDFS  # [bool]
   #Option IgnoreEDID# [bool]
   #Option DisplayPriority   # [str]
   #Option PanelSize # [str]
   #Option ForceMinDotClock  # freq
   #Option ColorTiling   # [bool]
   #Option VideoKey  # i
   #Option RageTheatreCrystal# i
   #Option RageTheatreTunerPort  # i
   #Option RageTheatreCompositePort  # i
   #Option RageTheatreSVideoPort # i
   #Option TunerType # i
   #Option RageTheatreMicrocPath # str
   #Option RageTheatreMicrocType # str
   #Option ScalerWidth   # i
   Option RenderAccel 1# [bool]
   #Option SubPixelOrder # [str]
   #Option ShowCache # [bool]
   #Option DynamicClocks # [bool]
   #Option VGAAccess # [bool]
   #Option ReverseDDC# [bool]
   #Option LVDSProbePLL  # [bool]
   Option AccelMethod EXA  # str
   Option DRI 1# [bool]
   #Option ConnectorTable# str
   #Option DefaultConnectorTable # [bool]
   #Option DefaultTMDSPLL# [bool]
   #Option TVDACLoadDetect   # [bool]
   #Option ForceTVOut# [bool]
   #Option TVStandard# str
   #Option IgnoreLidStatus   # [bool]
   #Option DefaultTVDACAdj   # [bool]
   #Option Int10 # [bool]
   

Re: diablo-jdk16

2009-08-20 Thread Dunc
Roy Stuivenberg wrote:
 Hello,

 I am facing a java problem.

 When I try to install diablo-jdk16 it says ..

 rs-unix# pwd
 /usr/ports/java/diablo-jdk16
 rs-unix# make install clean
 ===  Vulnerability check disabled, database not found
 ===  Found saved configuration for diablo-jdk-1.6.0.07.02_5

  Because of licensing restrictions, you must fetch the distribution
  manually.

  Please open http://java.sun.com/javase/downloads/index.jsp
  in a web browser and follow the Download link for
  JDK US DST Timezone Update Tool - 1_3_15 to obtain the
  time zone update file, tzupdater-1_3_15-2009g.zip.

  Please place the downloaded file(s) in /usr/ports/distfiles.

 *** Error code 1

 Stop in /usr/ports/java/diablo-jdk16.
 *** Error code 1

 Stop in /usr/ports/java/diablo-jdk16.
 rs-unix# 

 I have tzupdater-1_3_18-2009k.zip in /usr/ports/distfiles.

 So I don't understand this issue, or what might be going wrong.

   


well

tzupdater-1_3_18-2009k.zip

isn't

tzupdater-1_3_15-2009g.zip


___
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: diablo-jdk16

2009-08-20 Thread Andreas Rudisch
On Thu, 20 Aug 2009 18:45:07 +0200
Roy Stuivenberg roys1...@gmail.com wrote:

 Tnx Andreas,
 
 and where to get this version?
 Can't find it .. and also this is not like FreeBSD .. makes me think of
 Linux dependencie problems?

Google: tzupdater-1.3.15
-
http://lists.freebsd.org/pipermail/freebsd-java/2009-June/008118.html
-
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/viewproductdetail-start?productref=tzupdater-1.3.15-oth-...@cds-cds_developer

Why is it not like Freebsd? The only problem here is that you cannot download
older versions from Suns website more easily. Any way, that should do it.

Andreas
--
GnuPG key  : 0x2A573565|http://www.gnupg.org/howtos/de/
Fingerprint: 925D 2089 0BF9 8DE5 9166  33BB F0FD CD37 2A57 3565


pgpGXSUwpYGYK.pgp
Description: PGP signature


Re: diablo-jdk16

2009-08-20 Thread Eric Masson
Roy Stuivenberg roys1...@gmail.com writes:

Hi,

 rs-unix# make install clean
 ===  Vulnerability check disabled, database not found
 ===  Found saved configuration for diablo-jdk-1.6.0.07.02_5

  Because of licensing restrictions, you must fetch the distribution
  manually.

  Please open http://java.sun.com/javase/downloads/index.jsp
  in a web browser and follow the Download link for
  JDK US DST Timezone Update Tool - 1_3_15 to obtain the
  time zone update file, tzupdater-1_3_15-2009g.zip.

  Please place the downloaded file(s) in /usr/ports/distfiles.

 *** Error code 1

 Stop in /usr/ports/java/diablo-jdk16.
 *** Error code 1

 Stop in /usr/ports/java/diablo-jdk16.
 rs-unix# 

 I have tzupdater-1_3_18-2009k.zip in /usr/ports/distfiles.

tzupdater-1_3_15-2009g.zip and tzupdater-1_3_18-2009k.zip are not the
same files.

Get the port required version, tzupdater-1_3_15-2009g.zip,  or update
your ports tree.

-- 
 DM FU2 BàS
 T'as rien trouvé de pire comme pseudo? SI un jour il te venait la
 bonne idée d'en changer, fais moi signe, j'ai déjà quelques idées
 -+- mimi in http://www.le-gnu.net : bien configurer son pseudo -+-
 Hi, to this day the dispatch order #026-5884620 has not reached me.


___
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: desktop effects

2009-08-20 Thread Warren Block

On Thu, 20 Aug 2009, Adam Vande More wrote:

On Thu, Aug 20, 2009 at 8:51 AM, Adam Vande More amvandem...@gmail.comwrote:

On Thu, Aug 20, 2009 at 7:36 AM, Steven Friedrich free...@insightbb.comwrote:


I'm running freebsd 7.2p3, kde4.3.0, X7.4_2, and using the radeon X
driver.

I get an error dialog when I enable desktop effects.

Can anyone enable desktop effects?  I'm wondering if it requires support
in
the X driver and perhaps the ati drivers don't support it yet.


You need to enable the appropriate settings within xorg.conf.



[...]


Section ServerFlags
  Option AIGLX True
EndSection


[...]


Section Extensions
  Option Composite Enable
EndSection


I don't have either of those in my radeon xorg.conf, but composite 
effects in Xfce like window transparency work.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: diablo-jdk16

2009-08-20 Thread Warren Block

On Thu, 20 Aug 2009, Roy Stuivenberg wrote:


Hello,

I am facing a java problem.

When I try to install diablo-jdk16 it says ..

rs-unix# pwd
/usr/ports/java/diablo-jdk16
rs-unix# make install clean
===  Vulnerability check disabled, database not found
===  Found saved configuration for diablo-jdk-1.6.0.07.02_5

Because of licensing restrictions, you must fetch the distribution
manually.

Please open http://java.sun.com/javase/downloads/index.jsp
in a web browser and follow the Download link for
JDK US DST Timezone Update Tool - 1_3_15 to obtain the
time zone update file, tzupdater-1_3_15-2009g.zip.

Please place the downloaded file(s) in /usr/ports/distfiles.

*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
*** Error code 1

Stop in /usr/ports/java/diablo-jdk16.
rs-unix#

I have tzupdater-1_3_18-2009k.zip in /usr/ports/distfiles.

So I don't understand this issue, or what might be going wrong.


Unless you care about the time zone updater, just 'make config' and turn 
it off.


-Warren Block * Rapid City, South Dakota USA
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: diablo-jdk16

2009-08-20 Thread Josef Grosch
On Thu, Aug 20, 2009 at 06:30:57PM +0200, Roy Stuivenberg wrote:
 Hello,
 
 I am facing a java problem.
 
 When I try to install diablo-jdk16 it says ..
 
 rs-unix# pwd
 /usr/ports/java/diablo-jdk16
 rs-unix# make install clean
 ===  Vulnerability check disabled, database not found
 ===  Found saved configuration for diablo-jdk-1.6.0.07.02_5
 
  Because of licensing restrictions, you must fetch the distribution
  manually.
 
  Please open http://java.sun.com/javase/downloads/index.jsp
  in a web browser and follow the Download link for
  JDK US DST Timezone Update Tool - 1_3_15 to obtain the
  time zone update file, tzupdater-1_3_15-2009g.zip.
 
  Please place the downloaded file(s) in /usr/ports/distfiles.
 
 *** Error code 1
 
 Stop in /usr/ports/java/diablo-jdk16.
 *** Error code 1
 
 Stop in /usr/ports/java/diablo-jdk16.
 rs-unix# 
 
 I have tzupdater-1_3_18-2009k.zip in /usr/ports/distfiles.
 
 So I don't understand this issue, or what might be going wrong.
 
 
 rs-unix# uname -a
 FreeBSD rs-unix.roycs.nl 7.2-STABLE FreeBSD 7.2-STABLE #1: Wed Aug  5
 09:57:02 CEST 2009
 ams...@rs-unix.roycs.nl:/usr/obj/usr/src/sys/GENERIC-ROYCS  i386
 rs-unix# 
 
 
 Regards,
 
 Roy Stuivenberg.


How about downloading the package from the FreeBSD Foundation.

  http://www.freebsdfoundation.org/downloads/java.shtml


Trust me, it is a lot faster to download and install a binary package than
go the long compile process.




Josef

-- 
Josef Grosch   | Another day closer to a | FreeBSD 7.2
jgro...@mooseriver.com |   Micro$oft free world  | Berkeley, Ca.


pgpXAhIN53zQv.pgp
Description: PGP signature


Re: diablo-jdk16

2009-08-20 Thread Eric Masson
Roy Stuivenberg roys1...@gmail.com writes:

Hi,

 My portstree is up to date, and when I follow the link on Sun website
 this is the version I get?

Seems the port lags behind Sun's site.

-- 
 (Pour mesurer l'intelligence dans fufe) Facile: un test de Turing. Tu
 prends une personne dans un groupe sensé, une personne dans fufe. Dès
 que tu arrives à repérer le trolleur tu détruis le groupe.
 -+- Ol in Guide du Neuneu Usenet : Maffacre à la fufonneuse -+-


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


No Device Node assigned for HD?

2009-08-20 Thread Rob
I've a 10 disk server that I am using as a file server.  I split the 
disks up unto 3 partitions, with a being part of a gmirror for /, b 
being part of a gmirror for swap, and d being part of the zfs pool. 
I've got 6 SATA headers on my MB, and 4 from a HighPoint RocketRAID 2310 
controller which I'm just using as an SATA controller (no RAID 
functionality).


I recently added an Hitachi 1TB drive to the RocketRAID controller, but 
I'm not seeing FreeBSD assign it a device node.  FreeBSD recognizes the 
drive insertion, but doesn't give it a device node.  All the drives are 
SATA hot-swap, so I connected the drive to a header off the MB and 
FreeBSD happily gave it a device node.  Additionally, I already have a 
few of these drives in the array, but they're all connected to headers 
on the MB.  This is the first attempt at adding one to the RocketRAID 
controller.  The controller currently has 3 other disks in it that are 
500GB, and FreeBSD has had no problems with them.  The RocketRAID 
controller's BIOS recognizes the disk as well, so it doesn't seem the 
card is incapable of handling disks that large.  I've even tried 
rebooting the system after the drive has been connected, but no luck.


Here's the respective info from the boot sequence as it pertains to the 
RocketRAID and the drives attached to it:


hptrr: start channel [0,0]
hptrr: start channel [0,1]
hptrr: start channel [0,2]
hptrr: start channel [0,3]
hptrr: [0 0] Start channel soft reset.
hptrr: [0 1] Start channel soft reset.
hptrr: [0 2] Start channel soft reset.
hptrr: [0 3] Start channel soft reset.
hptrr: channel [0,0] started successfully
hptrr: channel [0,1] started successfully
hptrr: channel [0,2] started successfully
hptrr: channel [0,3] started successfully
hptrr0: [GIANT-LOCKED]
hptrr0: [ITHREAD]
...
da0 at hptrr0 bus 0 target 0 lun 0
da0: HPT DISK 0_0 4.00 Fixed Direct Access SCSI-0 device
da1 at hptrr0 bus 0 target 1 lun 0
da1: HPT DISK 0_1 4.00 Fixed Direct Access SCSI-0 device
da2 at hptrr0 bus 0 target 2 lun 0
da2: HPT DISK 0_2 4.00 Fixed Direct Access SCSI-0 device
...

The only difference I've found is that in the RocketRAID BIOS, the 3 
500GB drives are recognized with a Legacy Status, whereas the 1TB is 
recognized as New Status.  Not sure what that means or how to change it. 
 The sizes are reported correctly in the RocketRAID BIOS.  I believe 
there is a BIOS update available for the card, but I wouldn't think it 
would be necessary since the card's BIOS seems to recognize the card 
just fine.


Any suggestions/help?

Rob
___
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: csh tcsh history missing after reboot FBSD_8

2009-08-20 Thread Reko Turja
What can I do to get the history to remain in memory across a 
reboot? Changing the capicity of set history to greater than 100 
does not affect it.


How about:
shutdown -r +1
logout

-Reko 


___
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: desktop effects

2009-08-20 Thread Adam Vande More
On Thu, Aug 20, 2009 at 12:51 PM, Warren Block wbl...@wonkity.com wrote:

 On Thu, 20 Aug 2009, Adam Vande More wrote:

 On Thu, Aug 20, 2009 at 8:51 AM, Adam Vande More amvandem...@gmail.com
 wrote:

 On Thu, Aug 20, 2009 at 7:36 AM, Steven Friedrich free...@insightbb.com
 wrote:

  I'm running freebsd 7.2p3, kde4.3.0, X7.4_2, and using the radeon X
 driver.

 I get an error dialog when I enable desktop effects.

 Can anyone enable desktop effects?  I'm wondering if it requires support
 in
 the X driver and perhaps the ati drivers don't support it yet.


 You need to enable the appropriate settings within xorg.conf.


 [...]

  Section ServerFlags
  Option AIGLX True
 EndSection


 [...]

  Section Extensions
  Option Composite Enable
 EndSection


 I don't have either of those in my radeon xorg.conf, but composite effects
 in Xfce like window transparency work.

This is also true for me under 7.2(untested elsewhere).



 -Warren Block * Rapid City, South Dakota USA


I wasn't able to use kde4 compositing manager until they were there.
compiz* may have different requirements as well.


-- 
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: diablo-jdk16

2009-08-20 Thread Eric Masson
Josef Grosch jgro...@mooseriver.com writes:

Hi,

 Trust me, it is a lot faster to download and install a binary package than
 go the long compile process.

Diablo-j(re|dk) ports install binary packages...

-- 
 Je parlais au nom de tous les frjviens, ne joue pas au con... VOUS
 n'avez pas à détruire NOTRE ng. C'est clair comme ça ou il faut que je
 te l'explique avec des mots plus faciles encore ?
 -+- in http://www.le-gnu.net - Mon niouzegroup à moi ke G -+-


___
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


digital camera and devd

2009-08-20 Thread Michal

Hello,

I've got a Canon digital camera set up and working with gphoto2 via 
devfs+devd but it's not elegant/clean enough:


attach 0 {
 device-name ugen[0-9]+;
 match vendor 0x0123;
 match product 0x3210;
 match sernum 1234567890;
 action devfs rule -s 10 add 100 path $device-name* user joe; \
 devfs rule -s 10 add 200 path usb[0-9] user joe; \
 devfs rule -s 10 applyset;
};

Problem with this solution is that it changes owner for all /dev/usb 
files i.e. usb, usb0, usb1, usb2 and usb3.


How can I check exactly which /dev/usb* entry corresponds to my camera?
And by the way /dev/usb3 means port 3, hub 3 or what are they?
Tried with:
usb_number=`sysctl dev.ugen.0.%location | cut -d '=' -f 2` but it turns 
out that it's not what I'm looking for because sometimes when it returns 
 2 then I still need write access to just /dev/usb3.


Any ideas please?
Michal
--
Power tends to corrupt, and absolute power corrupts absolutely. -John 
Dalberg-Acton


___
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


Suspend/Resume on Thinkpad x40

2009-08-20 Thread Joe Snikeris
Hi all,

First off, I apologize if this is not the right forum for this
question.  I was torn between posting this in mobile, ACPI, X11 and
here.  If I might get a better response in one of those forums, please
let me know and I'll post there instead.

I'm having some trouble getting the kinks worked out of the
suspend/resume functionality on my laptop, an IBM Thinkpad X40.  It is
mostly working now, but I am still experiencing some strange behavior.
 I can suspend and resume from a console just fine (except for the
fact that the console comes up blank and only displays new
characters); however, suspending and resuming in X is problematic.

The first suspend and resume in X works perfectly, but the next time I
hit suspend, the machine locks up while still displaying whatever I
was doing in X.  Note that if I switch to a virtual terminal before
hitting suspend, this problem does not occur.  Does anyone have any
suggestions on what I might do to get this resolved?  The details of
my machine follows; please let me know if any additional information
would be helpful.

 uname -a
FreeBSD sussman.snikeris.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0:
Wed Jun 24 00:57:44 UTC 2009
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

 cat /boot/loader.conf
# Disable boot menu
beastie_disable=YES
autoboot_delay=-1

# Needed for firefox to display certain HTML5 elements
sem_load=YES

# Needed so we can resume from suspend w/ a working display.
hw.acpi.reset_video=1
# Needed so mouse will work on resume
hint.psm.0.flags=0x3000

# Possibly needed for successful resume
hint.apic.0.disabled=1

# Needed for sound
snd_ich_load=YES

# Needed for wireless (iwi)
if_iwi_load=YES
wlan_load=YES
firmware_load=YES
iwi_bss_load=YES
iwi_ibss_load=YES
iwi_monitor_load=YES
legal.intel_iwi.license_ack=1

# Needed for 3d graphics acceleration
agp_load=YES

# Needed for cdrecord to work
atapicam_load=YES

# See 'man acpi_ibm'
acpi_ibm_load=YES

 cat /etc/rc.conf
# -- sysinstall generated deltas -- # Sat Jul  4 11:10:49 2009
# Created: Sat Jul  4 11:10:49 2009
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.

# Set by sysinstall
hostname=sussman.snikeris.com
#ifconfig_em0=DHCP
linux_enable=YES
moused_enable=YES

# Allow X to locate mouse and keyboard automatically using HAL
hald_enable=YES
dbus_enable=YES

keyrate=fast
keybell=off

 cat /etc/sysctl.conf
# $FreeBSD: src/etc/sysctl.conf,v 1.8.32.1 2009/04/15 03:14:26 kensmith Exp $
#
#  This file is read when going to multi-user and its contents piped thru
#  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
#

# Uncomment this to prevent users from seeing information about processes that
# are being run under another UID.
#security.bsd.see_other_uids=0

hw.acpi.standby_state=S0
hw.acpi.suspend_state=S3
hw.acpi.sleep_button_state=S3
vfs.usermount=1
hw.acpi.sleep_delay=3
___
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: digital camera and devd

2009-08-20 Thread b. f.
How can I check exactly which /dev/usb* entry corresponds to my camera?


If you are using the old USB stack, use usbdevs(8).  If you are using
the new USB stack from less than 5 months ago, then use usbconfig(8):

usbdevs -v

or

usbconfig dump_device_desc (or other options visible with usbconfig -h)


And by the way /dev/usb3 means port 3, hub 3 or what are they?

usbus unit number, usb device index

Regards,
   b.

b.
___
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: desktop effects

2009-08-20 Thread Warren Block

On Thu, 20 Aug 2009, Adam Vande More wrote:


[...]

  Section ServerFlags
       Option AIGLX True
  EndSection


[...]

  Section Extensions
       Option Composite Enable
  EndSection

I wasn't able to use kde4 compositing manager until they were there.  compiz* 
may have different requirements as well.


Looking at my Xorg.0.log, they're on by default...  Aha.  AIGLX is a 
build option for xorg-server.  Can't find where the composite extension 
came from, but I bet it's the same deal.


-Warren Block * Rapid City, South Dakota USA___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

Re: desktop effects

2009-08-20 Thread Adam Vande More
On Thu, Aug 20, 2009 at 3:31 PM, Warren Block wbl...@wonkity.com wrote:

 On Thu, 20 Aug 2009, Adam Vande More wrote:


 [...]

  Section ServerFlags
   Option AIGLX True
  EndSection


 [...]

  Section Extensions
   Option Composite Enable
  EndSection

 I wasn't able to use kde4 compositing manager until they were there.
 compiz* may have different requirements as well.


 Looking at my Xorg.0.log, they're on by default...  Aha.  AIGLX is a build
 option for xorg-server.  Can't find where the composite extension came from,
 but I bet it's the same deal.


 -Warren Block * Rapid City, South Dakota USA

Now I looked further:

http://wiki.xfce.org/faq

According that the composite extension is now enabled by default as well so
I have some carry-over from old config file.


-- 
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: digital camera and devd

2009-08-20 Thread RW
On Thu, 20 Aug 2009 19:54:37 +
Michal m...@infosec.pl wrote:

 Hello,
 
 I've got a Canon digital camera set up and working with gphoto2 via 
 devfs+devd but it's not elegant/clean enough:
 ...
 Problem with this solution is that it changes owner for all /dev/usb 
 files i.e. usb, usb0, usb1, usb2 and usb3.
 
 How can I check exactly which /dev/usb* entry corresponds to my
 camera? And by the way /dev/usb3 means port 3, hub 3 or what are they?

I'm not very familiar with  devfs+devd, but can you not use glabel to
give the camera a persistent name.
___
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: digital camera and devd

2009-08-20 Thread Roland Smith
On Thu, Aug 20, 2009 at 07:54:37PM +, Michal wrote:
 Hello,
 
 I've got a Canon digital camera set up and working with gphoto2 via 
 devfs+devd but it's not elegant/clean enough:
 
 attach 0 {
   device-name ugen[0-9]+;
   match vendor 0x0123;
   match product 0x3210;
   match sernum 1234567890;
   action devfs rule -s 10 add 100 path $device-name* user joe; \
   devfs rule -s 10 add 200 path usb[0-9] user joe; \
   devfs rule -s 10 applyset;
 };
 
 Problem with this solution is that it changes owner for all /dev/usb 
 files i.e. usb, usb0, usb1, usb2 and usb3.
 
 How can I check exactly which /dev/usb* entry corresponds to my camera?
 And by the way /dev/usb3 means port 3, hub 3 or what are they?
 Tried with:
 usb_number=`sysctl dev.ugen.0.%location | cut -d '=' -f 2` but it turns 
 out that it's not what I'm looking for because sometimes when it returns 
   2 then I still need write access to just /dev/usb3.
 
 Any ideas please?

I'm not exactly sure what you are trying to achieve here. But here is my
€0,02:

Create a group called 'usb'. Make every user that you want to be able to use
usb devices a member of this group. Next, add the following rules to your
active ruleset in /etc/devfs.rules:

add path 'da*' mode 0660 group usb
add path 'msdosfs/*' mode 0660 group usb
add path 'uscanner*' mode 0660 group usb
add path 'usb*' mode 0660 group usb
add path 'ugen*' mode 0660 group usb

If you are using 8-BETA, use 'usb/*' instead of 'usb*'.

This gives the members of the usb group write acces to the relevant devices
for using USB drives, cameras, scanners etc. You might want to add other usb
device nodes (e.g. uhid) if you use those.

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)


pgpip7GfMmRrB.pgp
Description: PGP signature


Re: switching from one network interface to another without reboot

2009-08-20 Thread Mel Flynn
On Thursday 20 August 2009 03:25:17 Michal wrote:

 Problem description: I've got a laptop with two network interfaces
 (wired em0 and wireless ath0). Every now and then I have to set up a DSL
 wireless box which comes with default settings so that I have to start
 with connecting my laptop via em0.
 em0 gets IP address from wireless box by DHCP. I log in to web interface
 and set everything up including WLAN and restart wireless box. At this
 point I would like to switch to ath0 and start using internet connection
 via wireless box.
 I'm taking em0 interface down with ifconfig em0 down and unplug the
 cable. I'm changing /etc/rc.conf entries to:
 ifconfig_em0=NOAUTO
 ifconfig_ath0=WPA DHCP
 Then I'm doing /etc/rc.d/netif restart and ath0 gets IP address via
 DHCP and is connected to wireless box (/etc/wpa_supplicant.conf is set up).

If these are on the same network (like most wireless routers), it can pay off 
to use lagg(4) and then simply unplug the cable. Plug it back in and it will 
use the cable again. You would need:
cloned_interfaces=lagg0
ifconfig_em0=UP
ifconfig_ath0=ether 00:xx:xx:xx WPA # set to MAC address of em0
ifconfig_lagg0=laggproto failover laggport em0 laggport ath0 DHCP
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mirror freebsd-update server

2009-08-20 Thread Jason

Hi,

I am wondering if anyone has attempted to mirror the freebsd-update server?

Thanks,
Jason
___
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: digital camera and devd

2009-08-20 Thread Michal

Roland Smith wrote:


I'm not exactly sure what you are trying to achieve here. But here is my
€0,02:

Create a group called 'usb'. Make every user that you want to be able to use
usb devices a member of this group. Next, add the following rules to your
active ruleset in /etc/devfs.rules:

add path 'da*' mode 0660 group usb
add path 'msdosfs/*' mode 0660 group usb
add path 'uscanner*' mode 0660 group usb
add path 'usb*' mode 0660 group usb
add path 'ugen*' mode 0660 group usb



And that is pretty much what I'm doing with two differences:
1. I'm using user name instead of designated group.
2. Following principle of least privilege I don't want to give him 
(which just happens to be myself) rights to anything other than my 
digital camera. Only this specific camera should trigger changes in 
ownership/rights of camera-related device nodes.


I know it looks a bit anal at first glance but it is not ;)
Michal
--
Let him who desires peace prepare for war. -Flavius Vegetius Renatus
___
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: digital camera and devd

2009-08-20 Thread Michal

RW wrote:


I'm not very familiar with  devfs+devd, but can you not use glabel to
give the camera a persistent name.


I should have mentioned that this camera works only in PTP mode so I 
cannot access it as a disk device.
At first I thought that it's PITA but now I think it's even better 
because I don't have to worry about mounting/unmounting anymore. Just 
plug and unplug the lead whenever I want.


Michal
--
Computers are like bikinis. They save people a lot of guesswork. -Sam 
Ewing

___
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: digital camera and devd

2009-08-20 Thread Michal

b. f. wrote:

How can I check exactly which /dev/usb* entry corresponds to my camera?



If you are using the old USB stack, use usbdevs(8).  If you are using
the new USB stack from less than 5 months ago, then use usbconfig(8):

usbdevs -v



Yes, I should have mentioned beforehand that it's 7.2 Release.
Your solution with usbdevs gives me what I was looking for (after my 
clumsy grep|tail|sed|cut manipulation), thank you very much for your help.


Michal
--
The reverse side also has a reverse side -Japanese Proverb
___
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: fusefs-sshfs

2009-08-20 Thread Roald de Vries

Dear Chris,

Thanks for your reply. I've tried the absolute path as well, but no  
success :-(. Any other suggestions?


Kind regards,

Roald


On Aug 18, 2009, at 10:17 AM, chris scott wrote:

2009/8/17 Roald de Vries r...@roalddevries.nl
Dear all,

I've installed fusefs-sshfs, and added fusefs_enable=YES to  
rc.conf. During startup, I see fusefs being started, but when I do:  
sshfs remote:~ /media/remote, I get fuse: failed to open fuse  
device: No such file or directory. Any idea why? Thanks in advance.


Kind regards,

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



try an explicit path as well rather than ~




___
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: Remounting a drive as read/write crashes the system and no dmesg.boot

2009-08-20 Thread Mel Flynn
On Tuesday 18 August 2009 12:11:10 Tim Judd wrote:
 On 8/18/09, Scott Schappell arc...@silvertree.org wrote:
  I have a drive (/dev/ad2s1d) mounted to /backup that I want to be read
  only until the backup scripts run and then it will be read/write.  If
  I set /etc/fstab to:
 
  /dev/ad2s1d /backup ufs ro
  0   0

 On my CF-based devices (firewalls.. nagios boxes, etc), I run:

 mount -uw /
 to update the mount (not mount again) the filesystem.  If you're
 trying to mount again, I could understand why the box panics.

I don't. It's perfectly valid to mount a device multiple times and on the same 
node even. Certainly unmounting then remounting should not panic the system.

If you keep getting this panic, please try and obtain a crash dump, though I 
suspect this to be driver or hardware related as I can't imagine such a bug 
has slipped into vfs/ufs.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: switching from one network interface to another without reboot

2009-08-20 Thread Michal

Mel Flynn wrote:
If these are on the same network (like most wireless routers), it can pay off 
to use lagg(4) and then simply unplug the cable. Plug it back in and it will 
use the cable again. You would need:


In my case usually it's some testing environment so I needed more of a 
quick kludge. But thats very interesting idea for my home network, I'll 
definitely have to check it out, thanks!


Michal
--
If the facts don't fit the theory, change the facts. -Albert Einstein
___
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


iwn driver in FreeBSD 7.2

2009-08-20 Thread Ovi

Hello

Any idea if is possible to install  (and work) the iwn driver in FreeBSD 
7.2 ?


ovi

___
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


installation sequence

2009-08-20 Thread PJ
Does anybody have an idea of what the oder of files and dependencies is
to install programs without all sorts of nonsensical errors?
I usually have no problem installing FreeBsd whatever with apache22,
cups, samba, php, mysql xorg etc. etc. I say usually because from time
to time there do crop up some conflicts and they can usually be resolved
by just looking at the error messages when the install is interrupted...
usually one reinstalls the guilty port and voila! all things are in an
ordered universe!
But how do you avoid those error messages... I installed a pretty
minimal 7.2 about a week ago and since then have been putzing about with
a more serious installation of 7.2 on a larger disk to include xorg and
a number of pretty cumbersome applications.
I usually start with samba as that permits me to wander about on my lan
and download and play around with other stuff while I am waiting for
those substantial installs like jdk and xorg et al.
So now, I have installed samba... works fine... thereafter I have been
installing jdk16 and some other proggies like openldap and php5 and
mysql ... actually, I was doing those because apache22 wouldn't
compile... it grinds out a slew of errors that all seem to be related to
ldap...util_ldap.c:2135 (or other numbers) and all have the notation
undeclared (first use in this function) and finally the ghost gives up
with Error code 1.

Exactly the same installation with the same configuration on the smaller
installation went without a hitch... (and on the same computer,
different disk) The versions are the latest available and on 7.2...
I have tried uninstalling php5, openldap, and removing the work
directory for apache22, but the result is always the same... this is absurd.
Can anybody make any sense of this... I don't like the idea of starting
all over again... done that, been there, and still looking for some
rationality to this world.
Thanks for any ideas...
___
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


about vbox and freebsd

2009-08-20 Thread John Francis Lee

08/20/2009 11:59 PM

Hello Duncan Hutty,

I write to you directly because I have posted several times to the list 
and have not seen an answer to my problem, and you seem knowledgeable 
about freebsd.


I have a dual-core amd64 machine running ubuntu 9.04 with vbox 3.04 and 
have tried to create a freebsd guest on it. I've had a freebsd webserver 
at iserver/viaverio for about 15 years but still have not set up a 
freebsd box of my own where I can really learn the ins and outs of the 
system, and I'd like to.


My problem is that I'm told right at the onset of the install that

  CPU doesn't support long mode

Someone suggested that I was trying to install a 64 bit os on 32 bit 
system, but I don't think that's the case :


j...@ws3:~$ hwinfo --cpu
01: None 00.0: 10103 CPU
  [Created at cpu.304]
  Unique ID: rdCR.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: X86-64
  Vendor: AuthenticAMD
  Model: 15.107.2 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
  Features: 
fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,ht,syscall,nx,mmxext,fxsr_opt,rdtscp,lm,3dnowext,3dnow,rep_good,pni,cx16,lahf_lm,cmp_legacy,svm,extapic,cr8_legacy,3dnowprefetch

  Clock: 1000 MHz
  BogoMips: 2009.02
  Cache: 512 kb
  Units/Processor: 2
  Config Status: cfg=new, avail=yes, need=no, active=unknown

02: None 01.0: 10103 CPU
  [Created at cpu.304]
  Unique ID: wkFv.j8NaKXDZtZ6
  Hardware Class: cpu
  Arch: X86-64
  Vendor: AuthenticAMD
  Model: 15.107.2 AMD Athlon(tm) 64 X2 Dual Core Processor 5000+
  Features: 
fpu,vme,de,pse,tsc,msr,pae,mce,cx8,apic,sep,mtrr,pge,mca,cmov,pat,pse36,clflush,mmx,fxsr,sse,sse2,ht,syscall,nx,mmxext,fxsr_opt,rdtscp,lm,3dnowext,3dnow,rep_good,pni,cx16,lahf_lm,cmp_legacy,svm,extapic,cr8_legacy,3dnowprefetch

  Clock: 1000 MHz
  BogoMips: 2009.02
  Cache: 512 kb
  Units/Processor: 2
  Config Status: cfg=new, avail=yes, need=no, active=unknown

I'm then dumped into an OK prompt and unable to do much more.

Have you seen or heard of this before?

Sorry to bother you if you have no clue yourself.

Thanks for any help you might be able to give.


--
John Francis Lee
1025/37 Thanon Jet Yod
Mueang Chiangrai 57000
Thailand


08/15/2009 10:38 PM

My problem seems to be that

 CPU doesn't support long mode

Is that it? Can't get there from here?

--
John Francis Lee
1025/37 Thanon Jet Yod
Mueang Chiangrai 57000
Thailand


08/15/2009 10:20 PM

Hi,

I got a new machine, a linux ubuntu-running AMD64 based one, and thought 
I'd try out FreeBSD here at home. But when I begin the VirtualBox 
installation I get dumped into a shell-looking terminal with an OK 
prompt. I can't read all the instructions and frankly cannot do anything 
with it. I tried hitting the 2 before the timeout to boot with ACPI 
disabled but that seems not to make any difference.


Have you heard of this problem before?

Any help you might give appreciated.

Thanks.

I'll go see if the VirtualBox people can shed any  light on the matter 
as well.


--
John Francis Lee
1025/37 Thanon Jet Yod
Mueang Chiangrai 57000


--
John Francis Lee
1025/37 Thanon Jet Yod
Mueang Chiangrai 57000
Thailand
___
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: shell power in rc.conf

2009-08-20 Thread Mel Flynn
On Tuesday 18 August 2009 07:00:08 Dan Nelson wrote:
 In the last episode (Aug 18), Artis Caune said:
  Is there any reason of not using shell variables in rc.conf?
  I want to tune rc.conf for easy editing and administration. Take for
  example jail_list or cloned_interfaces with 10+ entries:

 Remember that every startup script sources rc.conf, sometimes very early or
 late in the startup/shutdown sequence, so just make sure you don't echo
 anything to stdout/stderr or try to run commands that might be on
 filesystems that aren't mounted yet, and you should be fine.

In this particular example, you're fine. In general, you should also take care 
that /etc/defaults/rc.conf is read before /etc/rc.conf and may set values for 
variables you have not specified. Defaults can also change between releases, 
so one should inspect /etc/defaults/rc.conf during mergemaster stage with a 
microscope.

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


Re: boot sector f*ed

2009-08-20 Thread PJ
An update on the problems of the boot sector disks.
So far, I have not found any errors on the guilty disks from one
computer... the Seagate Tools for checking their ( other) disks show no
errors on the disks themselves. I haven't finished with them all, yet as
I am trying to set up a couple of FBSD 7.2 servers for various functions
and will have a better idea when thatis done. :-)
___
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: installation sequence

2009-08-20 Thread Neal Hogan
On Thu, Aug 20, 2009 at 6:12 PM, PJaf.gour...@videotron.ca wrote:
 Does anybody have an idea of what the oder of files and dependencies is
 to install programs without all sorts of nonsensical errors?
 I usually have no problem installing FreeBsd whatever with apache22,
 cups, samba, php, mysql xorg etc. etc. I say usually because from time
 to time there do crop up some conflicts and they can usually be resolved
 by just looking at the error messages when the install is interrupted...
 usually one reinstalls the guilty port and voila! all things are in an
 ordered universe!
 But how do you avoid those error messages... I installed a pretty
 minimal 7.2 about a week ago and since then have been putzing about with
 a more serious installation of 7.2 on a larger disk to include xorg and
 a number of pretty cumbersome applications.
 I usually start with samba as that permits me to wander about on my lan
 and download and play around with other stuff while I am waiting for
 those substantial installs like jdk and xorg et al.
 So now, I have installed samba... works fine... thereafter I have been
 installing jdk16 and some other proggies like openldap and php5 and
 mysql ... actually, I was doing those because apache22 wouldn't
 compile... it grinds out a slew of errors that all seem to be related to
 ldap...util_ldap.c:2135 (or other numbers) and all have the notation
 undeclared (first use in this function) and finally the ghost gives up
 with Error code 1.

 Exactly the same installation with the same configuration on the smaller
 installation went without a hitch... (and on the same computer,
 different disk) The versions are the latest available and on 7.2...
 I have tried uninstalling php5, openldap, and removing the work
 directory for apache22, but the result is always the same... this is absurd.
 Can anybody make any sense of this... I don't like the idea of starting
 all over again... done that, been there, and still looking for some
 rationality to this world.
 Thanks for any ideas...

Again, not to be rude (to you or fBSD) . . . but why stick with
something that is giving you soo much trouble?
There are a bunch of open source distros out there. I can appreciate
that you do not want to f'around with another distro for another week
. . . but . . .

From other posts, it sounded like you have recovered the essential
files. Rationality may dictate you moving on.

The only thing I can suggest that may help those who know better, is
to post the demsg's of the two machines (the one that works and the
pain in the ass), given that they are different machines. What
happened to the faulty hardware idea?

I dunno . . . good luck!

 ___
 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: Remounting a drive as read/write crashes the system and no dmesg.boot

2009-08-20 Thread Mel Flynn
On Thursday 20 August 2009 15:00:48 Scott Schappell wrote:
 On Aug 20, 2009, at 15:42:05, Mel Flynn wrote:
  I don't. It's perfectly valid to mount a device multiple times and
  on the same
  node even. Certainly unmounting then remounting should not panic the
  system.
 
  If you keep getting this panic, please try and obtain a crash dump,
  though I
  suspect this to be driver or hardware related as I can't imagine
  such a bug
  has slipped into vfs/ufs.
  --
  Mel

 Since using the mount -r syntax, it hasn't crashed once.  How does one
 obtain a crash dump? I'll be happy to force the system to hork and
 send a crash log.

http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: installation sequence

2009-08-20 Thread Lane Holcombe
I'm all over this!

Here's what you do:  Setup for yourself a local cvs repository like so:

portinstall -Pp net/cvsup-mirror

You have to make decisions about what to mirror, but in the end you will
have a semi-authoritative mirror of all the source and ports for the
whole dang FreeBSD development tree, that will maintain itself and be
ready when you need it.

Next, when ever you do a fresh install of FreeBSD whatever, the first
thing you do after the install is update your source and ports try by
creating a cvsupfile, (I always keep one in /usr/local/etc/cvsupfile)
like this:

begin cvsupfile
*default host=IP.OF.YOUR.LOCAL.CVS.MIRROR
*default base=/usr
*default prefix=/usr
*default release=cvs delete use-rel-suffix tag=RELENG_7
*default compress
src-all
src-contrib 
ports-all tag=.
/end cvsupfile

Note that the begin and /end tags are put in the email for clarity,
but should NOT appear in your cvsup file.  I think src-contrib is
overkill, but I've not bothered to find out because I'm pretty lazy.

Note, also that RELENG_7 is just what I'm using now.  You should adjust
to the FreeBSD whatever that you just installed.

So after you put the cvsupfile in place, run this on your new install:

csup -g -L2 /path/to/cvsupfile

Note, again, that csup does *not* get installed with *base before like
6.3 or something ... can't remember which.   Did I mention lazy?  If you
are going back that far you have to install csup from ports or install
cvsup from ports.  (Which may likely put you back at square one where
you have to work through the build failures - it ain't perfect, but it's
nearly there!)

Anyway, the point is you should always, always, always update your ports
tree after a new install so you don't have build failures to stump you.

And  you still might get those :)

So you should consider REBUILDING WORLD immediately after you do a new
install.  And THEN build/install whatever ports you need ...

Good Luck!

lane

On Thu, 2009-08-20 at 19:12 -0400, PJ wrote:
 Does anybody have an idea of what the oder of files and dependencies is
 to install programs without all sorts of nonsensical errors?
 I usually have no problem installing FreeBsd whatever with apache22,
 cups, samba, php, mysql xorg etc. etc. I say usually because from time
 to time there do crop up some conflicts and they can usually be resolved
 by just looking at the error messages when the install is interrupted...
 usually one reinstalls the guilty port and voila! all things are in an
 ordered universe!
 But how do you avoid those error messages... I installed a pretty
 minimal 7.2 about a week ago and since then have been putzing about with
 a more serious installation of 7.2 on a larger disk to include xorg and
 a number of pretty cumbersome applications.
 I usually start with samba as that permits me to wander about on my lan
 and download and play around with other stuff while I am waiting for
 those substantial installs like jdk and xorg et al.
 So now, I have installed samba... works fine... thereafter I have been
 installing jdk16 and some other proggies like openldap and php5 and
 mysql ... actually, I was doing those because apache22 wouldn't
 compile... it grinds out a slew of errors that all seem to be related to
 ldap...util_ldap.c:2135 (or other numbers) and all have the notation
 undeclared (first use in this function) and finally the ghost gives up
 with Error code 1.
 
 Exactly the same installation with the same configuration on the smaller
 installation went without a hitch... (and on the same computer,
 different disk) The versions are the latest available and on 7.2...
 I have tried uninstalling php5, openldap, and removing the work
 directory for apache22, but the result is always the same... this is absurd.
 Can anybody make any sense of this... I don't like the idea of starting
 all over again... done that, been there, and still looking for some
 rationality to this world.
 Thanks for any ideas...
 ___
 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


Ruleset anomaly

2009-08-20 Thread Steven Friedrich
I'm running freebsd 7.2p3 and I believe I started seeing the following 
messages after the p3 patch.

/etc/rc: WARNING: devfs_set_ruleset: you must specify a ruleset number
/etc/rc: WARNING: devfs_apply_ruleset: you must specify a ruleset

This is in /etc/rc.conf, but I don't know what put it there:
devfs_system_ruleset=localrules

The man page for devfs mentions name, not number.
___
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: [OT] Vim mailing list

2009-08-20 Thread Steve Bertrand
Frank Shute wrote:
 On Wed, Aug 19, 2009 at 01:59:05AM -0400, Glen Barber wrote:
 On Wed, Aug 19, 2009 at 12:43 AM, Steve Bertrandst...@ibctech.ca wrote:
 Apologies up front for the off-topic'dness.

 I'm thoroughly enjoying my new editor, and swiftly learning and
 experiencing the benefits. As a matter of fact, nearly everywhere I
 type, the common commands come naturally, and I get frustrated that all
 of my software doesn't work like vi does :)

 Getting to the point, I'd like to find a vi(m) community, but the list
 subscribe that appears authoritative for vim-users bounces. I despise
 and refuse to belong to web forums.

 Given that, where can I go to follow vim discussions, without having to
 bring it up OT here on my favourite list?

 Hi, Steve

 Google has a Vim group.  I'm not sure if you need a Google account or not.

 And, of course, there's this one: http://www.vim.org/maillist.php

 I'm a member of that list which is a straightforward mailing list
 AFAIK (Disclaimer: I do have a google account but I can't remember if
 that was necessary to sign up).

Thanks all,

I'll check out how to configure my mailer with Google Groups for this list.

 I've found it a very helpful list and I've learnt a lot being
 subscribed to it despite being a +10yr user of vim. Even Bram Molenaar
 posts there occasionally.

Nice to know that long-term users parade around in the list. It then, is
much like this one, and a few others that I am on.

Before I foray into configuring my email program to work with Google
Groups, I have one more (simple, I think) question regarding Vim. (I
couldn't come up with the proper Gooliage):

I'd like to create a keyboard map so instead of doing:

- _dd (I believe the underscore is referred to as 'blackhole')

I can do:

- CTRL-whatever

I have a lot of operations that consist of this:

- p
- j
- $
- i
- CR
- ^[
- 3j
- i
- TABCR
- ^[
- 3dd

(not necessarily in that order)...and want an easier way to to do both
'dd' and 'd$' without wrecking the clipboard which I have saved a yank to.

fwiw, the box I'm doing this work on is a jail (with both v4 and v6!) under:

:! uname -a

[No write since last change]

FreeBSD name.eagle.ca 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1
08:49:13 UTC 2009
r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

Cheers,

Steve


smime.p7s
Description: S/MIME Cryptographic Signature


Superkaramba themes multiply

2009-08-20 Thread Steven Friedrich
Every time I restart X windows, my superkaramba themes double.

I'm running freebsd 7.2p3, kde4.3.0
___
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 from one network interface to another without reboot

2009-08-20 Thread b. f.
Michal wrote:
Mel Flynn wrote:
 If these are on the same network (like most wireless routers), it can pay off
 to use lagg(4) and then simply unplug the cable. Plug it back in and it will
 use the cable again. You would need:

In my case usually it's some testing environment so I needed more of a
quick kludge. But thats very interesting idea for my home network, I'll
definitely have to check it out, thanks!

And of course, you can also automate this via devd.conf(5), by
instructing the system to run the rc.d scripts or other
commands/scripts if one of your NICs is attached/detached, or upon
other conditions.  There are related examples in the devd.conf(5)
manpage and the default /etc/devd.conf

b.
___
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: installation sequence

2009-08-20 Thread b. f.
Lane Holcombe wrote:

Here's what you do:  Setup for yourself a local cvs repository like so:

portinstall -Pp net/cvsup-mirror

You have to make decisions about what to mirror, but in the end you will
have a semi-authoritative mirror of all the source and ports for the
whole dang FreeBSD development tree, that will maintain itself and be
ready when you need it.

It's good advice to make sure that you are using a base system and
ports tree that are up-to-date, or at least contemporaneous and from a
stable snapshot.  But it seems to me to be overkill to ask someone who
is having trouble installing ports to mirror the FreeBSD repository.
Snapshots downloaded per the instructions in the FreeBSD Handbook
ought to be enough for most people.

b.
___
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: installation sequence

2009-08-20 Thread b. f.
Does anybody have an idea of what the oder of files and dependencies is
to install programs without all sorts of nonsensical errors?

This is supposed to be automated, but of course things can sometimes
go wrong, either through hardware problems, user-error, or an error in
Ports.

I usually have no problem installing FreeBsd whatever with apache22,
cups, samba, php, mysql xorg etc. etc. I say usually because from time
to time there do crop up some conflicts and they can usually be resolved
by just looking at the error messages when the install is interrupted...
usually one reinstalls the guilty port and voila! all things are in an
ordered universe!
But how do you avoid those error messages... I installed a pretty
minimal 7.2 about a week ago and since then have been putzing about with
a more serious installation of 7.2 on a larger disk to include xorg and
a number of pretty cumbersome applications.
I usually start with samba as that permits me to wander about on my lan
and download and play around with other stuff while I am waiting for
those substantial installs like jdk and xorg et al.
So now, I have installed samba... works fine... thereafter I have been
installing jdk16 and some other proggies like openldap and php5 and
mysql ... actually, I was doing those because apache22 wouldn't
compile... it grinds out a slew of errors that all seem to be related to
ldap...util_ldap.c:2135 (or other numbers) and all have the notation
undeclared (first use in this function) and finally the ghost gives up
with Error code 1.

It sounds like a missing header, but you need to tell us more before
we can attempt to figure out why.  Don't spend a lot of time and
energy paraphrasing what happened, but rather include the end of a
build transcript with your message, beginning a few lines above where
the first error appeared.  You can cut-and-paste, or use script1) to
capture the output, or whatever -- but we need to see the _exact_
output.  Also include a list of the ports that you have installed now,
and  the OPTIONS settings, if any, of the port and the ports that it
depends upon. Also check to see when you are installing a new port
that:

1) you are using a up-to-date ports tree and INDEX file (or at least a
snapshot that has no known errors), and an up-to-date portsdb and
pkgdb if you are using portupgrade;
2) all of your currently installed ports are up-to-date (or at least
consistent with your ports tree);
3) you are starting with clean work directories for the port that you
want to  build and install, and all ports that will also need to be
build and installed as missing dependencies;
4) your installed ports and base system have not been corrupted;
5) you have no known hardware problems, like bad memory or a
malfunctioning hard drive.

And you know, you don't have to build from source -- you could just
download and install prebuilt binary packages, either from FreeBSD
Ports or some other packaging system...


b.
___
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: Remounting a drive as read/write crashes the system and no dmesg.boot

2009-08-20 Thread Scott Schappell

On 8/20/2009 4:31 PM, Mel Flynn wrote:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html


OK, /backup was mounted read only, I did the following

umount /backup
mount -o rw /backup
[r...@arthur ~]# dd if=/dev/zero of=/backup/testfile bs=1024
dd: /backup/testfile: end of device
21122+0 records in
21121+0 records out
21627904 bytes transferred in 2.215991 secs (9759924 bytes/sec)
[r...@arthur ~]#


You can see by that snippet it barfed at 21627094 bytes (21 megabytes, 
ish). /backup has 100s of GiB free.


Filesystem SizeUsed   Avail Capacity  Mounted on
/dev/ad0s1a9.7G453M8.5G 5%/
devfs  1.0K1.0K  0B   100%/dev
/dev/ad0s1d 15G481M 13G 4%/var
/dev/ad0s1e 15G3.1G 10G23%/usr
/dev/ad0s1f 15G1.4G 12G10%/usr/local
/dev/ad0s1g216G3.5G195G 2%/home
/dev/ad2s1d226G 32G176G15%/backup

I cannot get the system to generate a dump, even though dumpon verified 
it's set to the swap drive but /var/crash stays empty. I have 
dumpdev=AUTO in rc.conf and dumpdir=/var/crash as well.


Could this have anything to do with how I added the drive? I followed 
the handbook instructions but maybe I messed it up.

___
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: Remounting a drive as read/write crashes the system and no dmesg.boot

2009-08-20 Thread Scott Schappell

On 8/20/2009 7:36 PM, Scott Schappell wrote:

On 8/20/2009 4:31 PM, Mel Flynn wrote:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/kerneldebug.html



OK, /backup was mounted read only, I did the following

umount /backup
mount -o rw /backup
[r...@arthur ~]# dd if=/dev/zero of=/backup/testfile bs=1024
dd: /backup/testfile: end of device
21122+0 records in
21121+0 records out
21627904 bytes transferred in 2.215991 secs (9759924 bytes/sec)
[r...@arthur ~]#



As of now, the dd command above has not crashed and it's past 3 GiB, 
using the mount -u -w syntax versus unmount, mount -o rw.


This is puzzling.
___
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


Accidentally moved /libexec/ld-elf.so.1

2009-08-20 Thread Stew Houston
Setting up a chroot jail I accidentally moved /libexec/ld-elf.so.1 instead
of copying it.  Bash would no longer take any commands, though I can't
remember the error I was getting (it was aborting.)  I rebooted, hoping I
could do something in Single User Mode; but to no avail.  Is there a way I
can undo this blunder?

Stew
___
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: Accidentally moved /libexec/ld-elf.so.1

2009-08-20 Thread Glen Barber
On Thu, Aug 20, 2009 at 10:44 PM, Stew Houstonstewhous...@gmail.com wrote:
 Setting up a chroot jail I accidentally moved /libexec/ld-elf.so.1 instead
 of copying it.  Bash would no longer take any commands, though I can't
 remember the error I was getting (it was aborting.)  I rebooted, hoping I
 could do something in Single User Mode; but to no avail.  Is there a way I
 can undo this blunder?


When entering single user mode, you should be prompted with an option
to select a shell.  You should be able to use /bin/csh.  Worst case,
you can use /rescue/csh.

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


Re: Suspend/Resume on Thinkpad x40

2009-08-20 Thread Ian Smith
On Thu, 20 Aug 2009 14:03:29 -0500 Joe Snikeris j...@snikeris.com wrote:

  First off, I apologize if this is not the right forum for this
  question.  I was torn between posting this in mobile, ACPI, X11 and
  here.  If I might get a better response in one of those forums, please
  let me know and I'll post there instead.

I suspect -mobile might be the best list for this one, perhaps -acpi 
but that's usually more about development than usage.  You might try 
searching the archives of either for mention of the X40.

  I'm having some trouble getting the kinks worked out of the
  suspend/resume functionality on my laptop, an IBM Thinkpad X40.  It is
  mostly working now, but I am still experiencing some strange behavior.
   I can suspend and resume from a console just fine (except for the
  fact that the console comes up blank and only displays new
  characters); however, suspending and resuming in X is problematic.
  
  The first suspend and resume in X works perfectly, but the next time I
  hit suspend, the machine locks up while still displaying whatever I
  was doing in X.  Note that if I switch to a virtual terminal before
  hitting suspend, this problem does not occur.  Does anyone have any
  suggestions on what I might do to get this resolved?  The details of
  my machine follows; please let me know if any additional information
  would be helpful.

My T23 requires hw.syscons.sc_no_suspend_vtswitch=1 to suspend/resume 
cleanly (7.0), so does my old Compaq Armada (but that's APM, not ACPI)

   uname -a
  FreeBSD sussman.snikeris.com 7.2-RELEASE-p2 FreeBSD 7.2-RELEASE-p2 #0:
  Wed Jun 24 00:57:44 UTC 2009
  r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386
  
   cat /boot/loader.conf
  # Disable boot menu
  beastie_disable=YES
  autoboot_delay=-1
  
  # Needed for firefox to display certain HTML5 elements
  sem_load=YES
  
  # Needed so we can resume from suspend w/ a working display.
  hw.acpi.reset_video=1
  # Needed so mouse will work on resume
  hint.psm.0.flags=0x3000
  
  # Possibly needed for successful resume
  hint.apic.0.disabled=1

That might be one to try either way, with other combinations.

  # Needed for sound
  snd_ich_load=YES
  
  # Needed for wireless (iwi)
  if_iwi_load=YES
  wlan_load=YES
  firmware_load=YES
  iwi_bss_load=YES
  iwi_ibss_load=YES
  iwi_monitor_load=YES
  legal.intel_iwi.license_ack=1
  
  # Needed for 3d graphics acceleration
  agp_load=YES
  
  # Needed for cdrecord to work
  atapicam_load=YES
  
  # See 'man acpi_ibm'
  acpi_ibm_load=YES

I've found that vesa_load=YES helps on my T23 especially if suspending 
from a VT rather than in X, referring to your 'console comes up blank.' 
Something to try anyway, and I don't think it ever hurts.

   cat /etc/rc.conf
  # -- sysinstall generated deltas -- # Sat Jul  4 11:10:49 2009
  # Created: Sat Jul  4 11:10:49 2009
  # Enable network daemons for user convenience.
  # Please make all changes to this file, not to /etc/defaults/rc.conf.
  # This file now contains just the overrides from /etc/defaults/rc.conf.
  
  # Set by sysinstall
  hostname=sussman.snikeris.com
  #ifconfig_em0=DHCP
  linux_enable=YES
  moused_enable=YES
  
  # Allow X to locate mouse and keyboard automatically using HAL
  hald_enable=YES
  dbus_enable=YES
  
  keyrate=fast
  keybell=off
  
   cat /etc/sysctl.conf
  # $FreeBSD: src/etc/sysctl.conf,v 1.8.32.1 2009/04/15 03:14:26 kensmith Exp $
  #
  #  This file is read when going to multi-user and its contents piped thru
  #  ``sysctl'' to adjust kernel values.  ``man 5 sysctl.conf'' for details.
  #
  
  # Uncomment this to prevent users from seeing information about processes 
  that
  # are being run under another UID.
  #security.bsd.see_other_uids=0
  
  hw.acpi.standby_state=S0
  hw.acpi.suspend_state=S3
  hw.acpi.sleep_button_state=S3
  vfs.usermount=1
  hw.acpi.sleep_delay=3

If hw.syscons.sc_no_suspend_vtswitch=1 is no help, I'd try -mobile ..

cheers, Ian
___
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: [OT] Vim mailing list

2009-08-20 Thread Frank Shute
On Thu, Aug 20, 2009 at 08:33:19PM -0400, Steve Bertrand wrote:


[snip]

 
  And, of course, there's this one: http://www.vim.org/maillist.php
 
  I'm a member of that list which is a straightforward mailing list
  AFAIK (Disclaimer: I do have a google account but I can't remember if
  that was necessary to sign up).
 
 Thanks all,
 
 I'll check out how to configure my mailer with Google Groups for this list.

There should be little in the way of configuration required for that
list, they just send out plain email and you can post in the same
format.

 
  I've found it a very helpful list and I've learnt a lot being
  subscribed to it despite being a +10yr user of vim. Even Bram Molenaar
  posts there occasionally.
 
 Nice to know that long-term users parade around in the list. It then, is
 much like this one, and a few others that I am on.
 
 Before I foray into configuring my email program to work with Google
 Groups, I have one more (simple, I think) question regarding Vim. (I
 couldn't come up with the proper Gooliage):
 
 I'd like to create a keyboard map so instead of doing:
 
 - _dd (I believe the underscore is referred to as 'blackhole')
 
 I can do:
 
 - CTRL-whatever
 
 I have a lot of operations that consist of this:
 
 - p
 - j
 - $
 - i
 - CR
 - ^[
 - 3j
 - i
 - TABCR
 - ^[
 - 3dd
 
 (not necessarily in that order)...and want an easier way to to do both
 'dd' and 'd$' without wrecking the clipboard which I have saved a yank to.

What you refer to as a clipboard is termed a register in vim and IIRC
you have the use of 26 (a-z). You can yank or delete to a register and
then dd wont overwrite it. Use plain dd and yy for quick and dirty.

See:

:help yank

You can then recall the text from that register with the put
command.

See:

:help p

As with all simple vim commands you can precede them with a number so
to yank 3 lines and save them in register a:

3ayy

and then to put them somewhere:

ap

Likewise, you can delete 3 lines  place them in a named register:

3add

I hope the above short demo gives you a brief outline on how to work
with registers but the vim handbook has got far more info. I guess
it's difficult for a new vim user who lacks the vim terminology to
look for stuff.

Also look into using macros if you find you are using the same
commands repetitively.

Have a look at marks if you're not using them already:

:help m

 
 fwiw, the box I'm doing this work on is a jail (with both v4 and v6!) under:
 
 :! uname -a
 
 [No write since last change]
 
 FreeBSD name.eagle.ca 7.2-RELEASE FreeBSD 7.2-RELEASE #0: Fri May  1
 08:49:13 UTC 2009
 r...@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
 

I'm currently in Darwin, Australia and ssh'ing back to the UK to
compose this email using vim on the remote end. Latency is a bit so so
but it's doable with vim :)

 Cheers,
 
 Steve

Regards,
 

-- 

 Frank 


 Contact info: http://www.shute.org.uk/misc/contact.html 

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


Re: about vbox and freebsd

2009-08-20 Thread Mak Kolybabi
On 2009-08-21 06:12, John Francis Lee wrote:
 My problem is that I'm told right at the onset of the install that

   CPU doesn't support long mode

Your CPU is 64-bit from what I can see. From a bit of Googling, others have
encountered this problem, and it seems to have to do with VM-X. I have no idea
what that is, but a thread in which someone has a very similar issue is here:

  http://forums.virtualbox.org/viewtopic.php?f=1t=19420

One notable quote is:

  ...[the CPU] does not have Intel VT (hardware virtualization), so you will
  not be able to run 64 bit guests in Virtualbox even though you run a 64 bit
  host.

HTH

--
Matthew Anthony Kolybabi (Mak)
m...@kolybabi.com

() ASCII Ribbon Campaign | Against HTML e-mail
/\  www.asciiribbon.org  | Against proprietary extensions

___
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


data captured by fprobe but not shown on nfsen

2009-08-20 Thread Ren, James (China)
Dear all,

 

I started to use FreeBSD last week and encountered a few problems. I'd
be grateful if any of you could give a hand.

 

I installed FreeBSD 7.2 on Dell GX520 with two network adaptors, one
on-board and the other PCI addon. They are all 10/100 baseT auto. The
workstation has 2.8GHz CPU, 512MB RAM and 80G IDE Hard disk.

 

The installation went successfully. After the FreeBSD was installed, I
firstly installed Apache22, then php5, and nfsen1.3 including Port
Tracker. I have configured apache and nfsen properly so that nfsen.php
page could be viewed properly on other workstations within the network.
Now that I could see the diagrams generated by nfsen, I then installed
fprobe on the same workstation in hope to capture data from one network
interface and projected it as netflow for nfsen. Fprobe was installed
successfully.

 

I configured the on-board network card named as bge0 as dhcp client to
receive ipv4 address from DHCP in my network. I then connected the other
PCI network card named as vr0 to my core Cisco 3560 switch. I configured
on switch to monitor session 1 to mirror g0/22 rx traffic to g0/2 which
was connected to vr0. When I checked on the switch, show inter gi0/2 and
gi0/2 counters. I could see the port was in monitoring status and
overnight about 10G data had been sent to vr0. Physically I could see
the LED on vr0 flickering madly showing the data were transmitting.

 

I typed fprobe -i vr0 127.0.0.1:9995 and also fprobe -i vr0
localhost:9995

 

Here came the problem, when I typed tcpdump -n -i lo0 dst port 9995 I
could see any udp sent to port 9995, no matter how long I waited.

I then typed fprobe 127.0.0.1:9995 and fprobe localhost:9995 (Sorry I
was not sure which one was correct.)

This time tcpdump showed UDP traffic to port 9995 and nfsen did capture
some data. However, after a night it only showed very few traffic
through, most of which were dns and broadcasting traffic! So fprobe
didn't get anything from vr0 at all.

 

I have searched the web and checked the syntax for fprobe and manual
didn't explain much in this.

 

Where was I getting wrong? Could anyone give me a hand?

 

 

Regards,

 

James Ren

 


The British Council is the United Kingdom's international organisation for 
educational opportunities and cultural relations. We are a registered charity; 
209131 (England and Wales) SC037733 (Scotland). We build engagement and trust 
for the UK through the exchange of knowledge and ideas between people worldwide.

This message is for the use of the intended recipient(s) only. If you have 
received this message in error, please notify the sender and delete it. The 
British Council accepts no liability for loss or damage caused by software 
viruses and you are advised to carry out a virus check on any attachments 
contained in this message.
___
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: Remounting a drive as read/write crashes the system and no dmesg.boot

2009-08-20 Thread Mel Flynn
On Thursday 20 August 2009 18:40:27 Scott Schappell wrote:
 On 8/20/2009 7:36 PM, Scott Schappell wrote:
  On 8/20/2009 4:31 PM, Mel Flynn wrote:
  http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/ker
 neldebug.html
 
  OK, /backup was mounted read only, I did the following
 
  umount /backup
  mount -o rw /backup
  [r...@arthur ~]# dd if=/dev/zero of=/backup/testfile bs=1024
  dd: /backup/testfile: end of device
  21122+0 records in
  21121+0 records out
  21627904 bytes transferred in 2.215991 secs (9759924 bytes/sec)
  [r...@arthur ~]#

 As of now, the dd command above has not crashed and it's past 3 GiB,
 using the mount -u -w syntax versus unmount, mount -o rw.

 This is puzzling.

I agree. These errors make no sense to me, which leads me to drive cable or 
physical memory problems, perhaps filesystem corruption. Since you have plenty 
of space on /home, is it possible for you to move whatever's on /backup to 
/home, then newfs /backup? Of course you could try fsck -y /backup in single 
user, but with these weird errors, I trust the filesystem on that disk as far 
as I can throw it.
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: Accidentally moved /libexec/ld-elf.so.1

2009-08-20 Thread Mel Flynn
On Thursday 20 August 2009 18:44:12 Stew Houston wrote:
 Setting up a chroot jail I accidentally moved /libexec/ld-elf.so.1 instead
 of copying it.  Bash would no longer take any commands, though I can't
 remember the error I was getting (it was aborting.)  I rebooted, hoping I
 could do something in Single User Mode; but to no avail.  Is there a way I
 can undo this blunder?

/rescue/mv /path/to/jail/libexec/ld-elf.so.1 /libexec/
-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Xorg - Console Flashes when Exiting X

2009-08-20 Thread Glen Barber
Hi, list

I'm trying to isolate a bug relating to exiting X and console drivers.
 Before I begin, I have to mention that this undesired behavior is not
specific to FreeBSD -- I've experienced this with OpenSolaris and
(K)(X)ubuntu on the machine in question, which is where I am beginning
to really hit a wall.

A short synopsis of the problem is: anything that tries to query /
manipulate Xorg causes the console to flash when exiting X, as if the
console refresh rate or resolution was drastically incorrect.

The laptop [1] I recently purchased has a 16 screen at 1366x768
resolution.  (dmesg output listing the graphics information is below.)
 I do not use gdm, xdm, or kdm, so I 'startx' to get x11-wm/fluxbox
running.  My $HOME/.xinitrc is minimal, using xset to disable the
xterm bell, and starting sysutils/conky.

The only common factor between the three OSes I've seen this behavior
is xscreensaver or xrandr.  After thinking it was specific to
xscreensaver, I disabled it, and wanted to check the refresh rate -
which is how I found xrandr causes it as well.

Any thoughts on how to isolate the cause of this would be appreciated,
because the flickering and flashing experienced is most probably bad
for the LCD.  Thanks in advance.

%dmesg | grep vga
vgapci0: VGA-compatible display port 0x5110-0x5117 mem
0xd000-0xd03f,0xc000-0xcfff irq 16 at device 2.0 on
pci0
agp0: Intel GM45 SVGA controller on vgapci0
vgapci1: VGA-compatible display mem 0xd350-0xd35f at device
2.1 on pci0
vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
drm0: Mobile Intel\M-B\M-. GM45 Express Chipset on vgapci0
vgapci0: child drm0 requested pci_enable_busmaster

[1] - http://laptops.toshiba.com/laptops/satellite/L500/L505-S6946

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