How to answer mails to me@?

2007-09-15 Thread Kyrre Nygård

Hello!

A silly question probably. How do I get FreeBSD, or Postfix, to give me 
all e-mails sent to me@? Can 
/etc/aliases do this, or something else?


Thanks guys,
Kyrre
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


The FreeBSD Diary: 2007-08-26 - 2007-09-15

2007-09-15 Thread Dan Langille
The FreeBSD Diary contains a large number of practical 
examples and how-to guides.  This message is posted weekly
to freebsd-questions@freebsd.org with the aim of letting people
know what's available on the website.  Before you post a question
here it might be a good idea to first search the mailing list 
archives  
and/or The FreeBSD Diary . 

These are the articles posted during this period:

10-Sep : Creating multiple jails
 When creating more than one jail, these shortcuts might help 
 http://freebsddiary.org/jail-multiple.php?2


-- 
Dan Langille
BSDCan - http://www.BSDCan.org/ - BSD Conference

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Gary Kline
On Sun, Sep 16, 2007 at 07:46:53AM +1000, Chris Keladis wrote:
> On 9/16/07, Gary Kline <[EMAIL PROTECTED]> wrote:
> 
> Hi Gary,
> 
> > On Sat, Sep 15, 2007 at 10:58:52AM -0700, Garrett Cooper wrote:
> > > Chad Perrin wrote:
> > > >On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
> > > >
> > > >>Sometimes when I ssh from a remote server and edit a file with
> > > >>vi, my [Backspace keys] are not interpretered correctly.
> > > >>Instead of erasing characters and backing up one byte and
> > > >>clearing that character my cursor moves forward.
> > > >>
> > > >>Example: typing "This" as "thos" and backspacing to the 'o'
> > > >>I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
> > > >>doing wrong and how to fix it?
> 
> When in a problematic SSH session try entering 'stty erase '


Hm.  I'm on tao2 now, ssh's into tao.  On a Konsole on tao2, 
the [backspace] key works fine--from the CL.  Your suggestion of
using the literal ^V^? makes no difference.  The only thing that
does, is selection the "freebsd console" from the  Konsole
Settings -> Keyboard drop-down, as I wrote to Chad a few minutes
ago.  So closer.  

> 
> Then hit the backspace key and see if it behaves as normal.
> 
> If that works, then you have a terminal emulation problem, and need to
> try some other terms to find one that works for your keyboard (must be
> set both client AND server-side).
> 
> If you think you really need to edit the keyboard mappings then the
> file is /etc/termcap but i strongly recommend trying a few different
> terminals (try vt100, linux, xterm, etc) before editing that file.


I'm not touching the termcap file unless it's an (abs) last
resort!
> 
> Remember, they need to be set in pairs, so change the term on both
> sides, disconnect, reconnect with the new term, and do your tests.
> 
> 

Thanks for your help, gentleen.   I'll let you know when/if I
figure this out!

gary


> 
> Hope it helps,
> 
> Chris.

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Gary Kline
On Fri, Sep 14, 2007 at 07:12:04PM -0600, Chad Perrin wrote:
> On Sat, Sep 15, 2007 at 01:28:22PM -0700, Gary Kline wrote:
> > 
> > Trying to use stty failed... .
> 
> What terminal emulator are you using?  It may be that, as was the case
> with me when I was using aterm, I needed to use stty *and* needed to
> change a configuration in the aterm makefile.  It's possible that stty
> alone won't do it, but stty in combination with something else *will*.
> 

Sounds entirely rational.  Because here and with CTWM I have
simple xterms; on my "new tao" runnning Gnome as a manager, I use
Konsole.  Entrely to get the BEL in vi/nvi.  

I find that if I use Settings -> Keyboard and then select 
"FreeBSD Console", I come fairly close.  Then [Backspace] 
backs up, but the characters are not erased as I space 
backways.  UsingTerminal, it defaults to this.

Anther indicator thata Garrett is right is that by doing an
"ssh -X tao", X gives me 

X Error of failed request:  BadAccess (attempt to access private resource 
denied)
  Major opcode of failed request:  100 (X_ChangeKeyboardMapping)
  Serial number of failed request:  7
  Current serial number in output stream:  12
q3 20:06  [5032] 


If this gives annybody a clue, I'd be much obliged for some
insights.  .

gary



> -- 
> CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
> Brian K. Reid: "In computer science, we stand on each other's feet."
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: /dev/random question

2007-09-15 Thread RW
On Sat, 15 Sep 2007 00:44:10 -0700
"Ted Mittelstaedt" <[EMAIL PROTECTED]> wrote:
> Since FreeBSD tries to be close to perfect ;-) it uses a better
> random driver that can produce random numbers as fast as you want
> them.  The symlink is there only as a crutch for older UNIX code
> that was written when there was a difference between /dev/random
> and /dev/urandom

Personally I think it would have been better to name the yarrow device
as /dev/urandom and create a new device, say  /dev/entropy , which would
function as a traditional /dev/random. One would then have the choice
of linking /dev/random to either /dev/entropy or /dev/urandom. And in
the second case /dev/entropy would still be availible in special cases. 

Essentially what has happened is that /dev/random has been abandoned in
favour of a better /dev/urandom, and that seems to be a bit high-handed
to me.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ATI 9200SE and TV-out

2007-09-15 Thread nollan
Hi List!

 I've been trying to configure my ATI 9200SE Card for tv-out, I don't seem to 
get it to work. The problem is that somehow the driver (tried vesa, ati and 
radeon drivers) can't recognise the second output. Is there anyway I can modify 
the source for these drivers to recognize the second output. I've googled my 
ass off and I'm tired! :) 

 Thanks in advance. I attach my Xorg.o.log and xorg.conf.

Regards,
J

---/var/log/Xorg.0.log---

(**) |-->Screen "Screen0" (0)
(**) |   |-->Monitor "Monitor0"
(**) |   |-->Device "Card0"
(**) |-->Screen "Screen1" (1)
(**) |   |-->Monitor "Monitor1"
(**) |   |-->Device "Card0b"
(**) |-->Input Device "Mouse0"
(**) |-->Input Device "Keyboard0"


(II) Primary Device is: PCI 02:00:0
(II) ATI:  Candidate "Device" section "Card0".
(II) ATI:  Candidate "Device" section "Card0b".
(WW) RADEON: No matching Device section for instance (BusID PCI:2:0:1) found
(--) Chipset ATI Radeon 9200SE 5964 (AGP) found


(II) RADEON(0): 
(II) RADEON(0): Primary:
 Monitor   -- CRT
 Connector -- VGA
 DAC Type  -- Primary
 TMDS Type -- NONE
 DDC Type  -- VGA_DDC
(II) RADEON(0): Secondary:
 Monitor   -- NONE
 Connector -- None
 DAC Type  -- Unknown
 TMDS Type -- NONE
 DDC Type  -- NONE

-xorg.conf--
Section "ServerLayout"
Identifier "X.org Configured"
Screen  0  "Screen0" 0 0
Screen  1  "Screen1" Rightof "Screen0"
InputDevice"Mouse0" "CorePointer"
InputDevice"Keyboard0" "CoreKeyboard"
EndSection

Section "Monitor"
Identifier   "Monitor0"
VendorName   "Monitor Vendor"
ModelName"Monitor Model"
HorizSync40 - 50
VertRefresh  60 - 70
EndSection

Section "Monitor"
Identifier   "Monitor1"
VendorName   "TV"
ModelName"TV"
HorizSync 30-50
VertRefresh  100
EndSection


Section "Device"
Identifier  "Card0"
Driver  "ati"
VendorName  "ATI Technologies Inc"
BoardName   "RV280 [Radeon 9200 SE]"
BusID   "PCI:2:0:0"
EndSection

Section "Device"
Identifier "Card0b"
Driver "ati"
VendorName "ATI Technologies Inc"
BoardName  "RV280"
BusID  "PCI:2:0:1"
Screen 1
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor"Monitor0"
DefaultDepth 24
SubSection "Display"
Viewport   0 0
Depth 24
Modes "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Section "Screen"
Identifier "Screen1"
Device "Card0b"
Monitor"Monitor1"
Option "ConnectedMonitor" "TV"
Option "TVStandard" "PAL-B"
Option "TVOverScan" "1.0"
DefaultColorDepth 24
SubSection "Display"
Depth 24
Modes "800x600" "640x480"
EndSubSection
EndSection
--___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Xorg 7.3 Works Fine Now - But .. A Few More Questions

2007-09-15 Thread Aryeh Friedman
Did you bumb the driver versions?  as far as this goes this seems to be
almost universal interms of everyone is stuck with vesa

On 9/15/07, Tim Daneliuk <[EMAIL PROTECTED]> wrote:
>
> The patches we've been waiting for apparently made the ports tree and
> we have joy on Xorg 7.3.   I do have a couple of questions about stuff
> that was happening prior to this (and still is).
>
> When I to a portupgrade, I always see some grumbling about xorg-macros
> no longer being in he ports tree.  Can I safely pkg_delete these?
>
> I also wonder if anyone has a workaround for this longstanding problem.
> The only thing I've been able to do successfully is run the VESA driver
> instead:
>
> X.Org X Server 1.4.0
> Release Date: 5 September 2007
> X Protocol Version 11, Revision 0
> Build Operating System: FreeBSD 6.2-STABLE i386
> Current Operating System: FreeBSD ozzie.tundraware.com 6.2-STABLE FreeBSD
> 6.2-STABLE #33: Thu Sep 13 08:04:21 CDT 2007
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/OZZIE i386
> Build Date: 14 September 2007  06:29:38PM
>
> Before reporting problems, check http://wiki.x.org
> to make sure that you have the latest version.
> Module Loader present
> Markers: (--) probed, (**) from config file, (==) default setting,
> (++) from command line, (!!) notice, (II) informational,
> (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
> (==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 15 16:13:47 2007
> (++) Using config file: "xorg.conf.new"
> (EE) GARTInit: Unable to open /dev/agpgart (No such file or directory)
> (II) Module "ddc" already built-in
> (II) Module "ramdac" already built-in
> (EE) I810(0): Failed to allocate framebuffer. Is your VideoRAM set too low
> ??
>
> Fatal server error:
> AddScreen/ScreenInit failed for driver 0
>
>
>
> TIA!
>
>
> --
>
> 
> Tim Daneliuk [EMAIL PROTECTED]
> PGP Key: http://www.tundraware.com/PGP/
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Chad Perrin
On Sat, Sep 15, 2007 at 01:28:22PM -0700, Gary Kline wrote:
> 
>   Trying to use stty failed... .

What terminal emulator are you using?  It may be that, as was the case
with me when I was using aterm, I needed to use stty *and* needed to
change a configuration in the aterm makefile.  It's possible that stty
alone won't do it, but stty in combination with something else *will*.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Brian K. Reid: "In computer science, we stand on each other's feet."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Chris Keladis
On 9/16/07, Gary Kline <[EMAIL PROTECTED]> wrote:

Hi Gary,

> On Sat, Sep 15, 2007 at 10:58:52AM -0700, Garrett Cooper wrote:
> > Chad Perrin wrote:
> > >On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
> > >
> > >>Sometimes when I ssh from a remote server and edit a file with
> > >>vi, my [Backspace keys] are not interpretered correctly.
> > >>Instead of erasing characters and backing up one byte and
> > >>clearing that character my cursor moves forward.
> > >>
> > >>Example: typing "This" as "thos" and backspacing to the 'o'
> > >>I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
> > >>doing wrong and how to fix it?

When in a problematic SSH session try entering 'stty erase '

Then hit the backspace key and see if it behaves as normal.

If that works, then you have a terminal emulation problem, and need to
try some other terms to find one that works for your keyboard (must be
set both client AND server-side).

If you think you really need to edit the keyboard mappings then the
file is /etc/termcap but i strongly recommend trying a few different
terminals (try vt100, linux, xterm, etc) before editing that file.

Remember, they need to be set in pairs, so change the term on both
sides, disconnect, reconnect with the new term, and do your tests.



Hope it helps,

Chris.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Kris Kennaway

Josh Carroll wrote:

That's good to know.  You should be using libthr for threaded
performance though :)  That benchmark is probably almost all userland
though, so performance may not suffer much from libpthread.


Oh I wasn't sure if libthr was the preferred thread library for 6.2
also (I'd heard that was the case for -CURRENT).

I should look into whether ffmpeg can be built with libthr instead and
compare performance. Somewhat off topic, so I'll leave it at that, but
thanks again for the great info. I'm really looking forward to
7.0-RELEASE, obviously :)


Yeah, it is preferred on 6.x too (libkse has truly atrocious 
performance).  It's trivial to change it over, just add an entry to 
/etc/libmap.conf:


libpthread.so.2 libthr.so.2

Kris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Problem Building xorg-dmx After The 7.3 Upgrade

2007-09-15 Thread Tim Daneliuk

Seen during a portsupgrade (does not appear to affect my configuration,
but noted here for benefit of the maintainers if they've not yet seen
this):

cc -DHAVE_DMX_CONFIG_H -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith 
-Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations 
-Wnested-externs -fno-strict-aliasing -D_BSD_SOURCE -DHAS_FCHOWN 
-DHAS_STICKY_DIR_BIT -D_THREAD_SAFE -DDBUS_API_SUBJECT_TO_CHANGE 
-I/usr/local/include -I/usr/local/include/freetype2 
-I/usr/local/include/pixman-1 -I/usr/local/include/hal 
-I/usr/local/include/dbus-1.0 -I/usr/local/include/dbus-1.0/include 
-I../../include -I../../include -I../../Xext -I../../composite 
-I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/shadow 
-I../../miext/damage -I../../render -I../../randr -I../../fb -D_THREAD_SAFE 
-I/usr/local/include -I/usr/local/include/freetype2 
-I/usr/local/include/pixman-1 -O2 -fno-strict-aliasing -pipe -rdynamic -o Xdmx 
dmx.o dmxcb.o dmxcmap.o dmxcursor.o dmxdpms.o dmxextension.o dmxfont.o dmxgc.o 
dmxgcops.o dmxinit.o dmxinput.o dmxlog.o dmxpict.o dmxpixmap.o dmxprop.o 
dmxscrinit.o dmxshadow.o dmxstat.o dmxsync.o dmxvisual.o dmxwindow.o 
miinitext.o fbcmap_mi.o  ../../dix/.libs/libdix.a ../../fb/.libs/libfb.a 
../../mi/.libs/libmi.a ../../Xext/.libs/libXext.a ../../config/libconfig.a 
../../render/.libs/librender.a ../../XTrap/.libs/libxtrap.a 
../../record/.libs/librecord.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a 
../../xkb/.libs/libxkbstubs.a ../../miext/damage/.libs/libdamage.a 
../../miext/shadow/.libs/libshadow.a ../../os/.libs/libos.a 
../../os/.libs/libcwrapper.a input/libdmxinput.a config/libdmxconfig.a 
-L/usr/local/lib /usr/local/lib/libXmuu.so /usr/local/lib/libXrender.so 
/usr/local/lib/libXfixes.so /usr/local/lib/libXfont.so 
/usr/local/lib/libfreetype.so /usr/local/lib/libfontenc.so -lz 
/usr/local/lib/libXi.so /usr/local/lib/libXext.so /usr/local/lib/libX11.so 
/usr/local/lib/libXau.so /usr/local/lib/libXdmcp.so 
/usr/local/lib/libpixman-1.so -lrpcsvc -lm -Wl,--rpath -Wl,/usr/local/lib 
-Wl,--rpath -Wl,/usr/local/lib

../../config/libconfig.a(dbus-core.o)(.text+0x35): In function `wakeup_handler':
: undefined reference to `dbus_connection_read_write_dispatch'
../../config/libconfig.a(dbus-core.o)(.text+0x3e): In function `wakeup_handler':
: undefined reference to `dbus_connection_get_dispatch_status'
../../config/libconfig.a(dbus-core.o)(.text+0x52): In function `wakeup_handler':
: undefined reference to `dbus_connection_read_write_dispatch'
../../config/libconfig.a(dbus-core.o)(.text+0x5b): In function `wakeup_handler':
: undefined reference to `dbus_connection_get_dispatch_status'
../../config/libconfig.a(dbus-core.o)(.text+0xf9): In function `teardown':
: undefined reference to `dbus_connection_unref'
../../config/libconfig.a(dbus-core.o)(.text+0x134): In function 
`message_filter':
: undefined reference to `dbus_message_is_signal'
../../config/libconfig.a(dbus-core.o)(.text+0x184): In function 
`reconnect_timer':
: undefined reference to `dbus_error_init'
../../config/libconfig.a(dbus-core.o)(.text+0x18e): In function 
`reconnect_timer':
: undefined reference to `dbus_bus_get'
../../config/libconfig.a(dbus-core.o)(.text+0x1a3): In function 
`reconnect_timer':
: undefined reference to `dbus_error_is_set'
../../config/libconfig.a(dbus-core.o)(.text+0x1b3): In function 
`reconnect_timer':
: undefined reference to `dbus_error_free'
../../config/libconfig.a(dbus-core.o)(.text+0x1d0): In function 
`reconnect_timer':
: undefined reference to `dbus_connection_set_exit_on_disconnect'
../../config/libconfig.a(dbus-core.o)(.text+0x1e2): In function 
`reconnect_timer':
: undefined reference to `dbus_connection_get_unix_fd'
../../config/libconfig.a(dbus-core.o)(.text+0x204): In function 
`reconnect_timer':
: undefined reference to `dbus_connection_add_filter'
../../config/libconfig.a(dbus-core.o)(.text+0x218): In function 
`reconnect_timer':
: undefined reference to `dbus_error_free'
../../config/libconfig.a(dbus-core.o)(.text+0x29c): In function 
`reconnect_timer':
: undefined reference to `dbus_connection_unref'
../../config/libconfig.a(dbus-core.o)(.text+0x2b2): In function 
`reconnect_timer':
: undefined reference to `dbus_error_free'
../../config/libconfig.a(hal.o)(.text+0x16): In function `remove_device':
: undefined reference to `DeleteInputDeviceRequest'
../../config/libconfig.a(hal.o)(.text+0x165): In function `get_prop_string':
: undefined reference to `libhal_device_get_property_string'
../../config/libconfig.a(hal.o)(.text+0x183): In function `get_prop_string':
: undefined reference to `libhal_free_string'
../../config/libconfig.a(hal.o)(.text+0x1e1): In function `device_added':
: undefined reference to `dbus_error_init'
../../config/libconfig.a(hal.o)(.text+0x1f5): In function `device_added':
: undefined reference to `libhal_device_get_property_strlist'
../../config/libconfig.a(hal.o)(.text+0x270): In function `device_added':
: undefined reference to `libhal_free_strin

Xorg errs after updating ports

2007-09-15 Thread E. J. Cerejo
I'm running FBSD 6.stable and I just updated my ports using portupgrade  and 
everything went fine.  Most of the xorg ports got updated but now I get this 
error everytime I try to startx:

Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 6.2-STABLE i386
Current Operating System: FreeBSD ecerejo.netgear.com 6.2-STABLE FreeBSD 6.2-STA
BLE #0: Wed Aug 22 14:14:51 EDT 2007 [EMAIL PROTECTED]:/usr/obj/usr/s
rc/sys/mykernel i386
Build Date: 15 September 2007  12:34:18AM

Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 15 17:34:44 2007
(==) Using config file: "/etc/X11/xorg.conf"
(EE) module ABI major version (1) doesn't match the server's version (2)
(EE) Failed to load module "nv" (module requirement mismatch, 0)
(EE) No drivers available.

Fatal server error:
no screens found
X connection to :0.0 broken (explicit kill or server shutdown).
xauth: (argv):1:  bad display name "ecerejo.netgear.com:0" in "remove" command


And my xorg.0.log file looks like this:

(II) LoadModule: "nv"
(II) Loading /usr/local/lib/xorg/modules/drivers//nv_drv.so
(II) Module nv: vendor="X.Org Foundation"
 compiled for 7.2.0, module version = 2.1.3
 Module class: X.Org Video Driver
 ABI class: X.Org Video Driver, version 1.1
(EE) module ABI major version (1) doesn't match the server's version (2)
(II) UnloadModule: "nv"
(II) Unloading /usr/local/lib/xorg/modules/drivers//nv_drv.so
(EE) Failed to load module "nv" (module requirement mismatch, 0)
(II) LoadModule: "mouse"
(II) Loading /usr/local/lib/xorg/modules/input//mouse_drv.so
(II) Module mouse: vendor="X.Org Foundation"
 compiled for 1.4.0, module version = 1.2.2
 Module class: X.Org XInput Driver
 ABI class: X.Org XInput driver, version 2.0
(II) LoadModule: "kbd"
(II) Loading /usr/local/lib/xorg/modules/input//kbd_drv.so
(II) Module kbd: vendor="X.Org Foundation"
 compiled for 1.4.0, module version = 1.2.2
 Module class: X.Org XInput Driver
 ABI class: X.Org XInput driver, version 2.0
(EE) No drivers available.

Fatal server error:
no screens found

Anybody has any idea on how to fix it?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Josh Carroll
> That's good to know.  You should be using libthr for threaded
> performance though :)  That benchmark is probably almost all userland
> though, so performance may not suffer much from libpthread.

Oh I wasn't sure if libthr was the preferred thread library for 6.2
also (I'd heard that was the case for -CURRENT).

I should look into whether ffmpeg can be built with libthr instead and
compare performance. Somewhat off topic, so I'll leave it at that, but
thanks again for the great info. I'm really looking forward to
7.0-RELEASE, obviously :)

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Mel
On Saturday 15 September 2007 23:24:54 Gary Kline wrote:
> On Sat, Sep 15, 2007 at 10:54:34PM +0200, Mel wrote:
> > On Saturday 15 September 2007 22:28:22 Gary Kline wrote:
> > > On Sat, Sep 15, 2007 at 10:58:52AM -0700, Garrett Cooper wrote:
> > > > Chad Perrin wrote:
> > > > >On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
> > > > >>  Sometimes when I ssh from a remote server and edit a file with
> > > > >>  vi, my [Backspace keys] are not interpretered correctly.
> > > > >>  Instead of erasing characters and backing up one byte and
> > > > >>  clearing that character my cursor moves forward.
> > > > >>
> > > > >>  Example: typing "This" as "thos" and backspacing to the 'o'
> > > > >>  I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
> > > > >>  doing wrong and how to fix it?
> > > > >>
> > > > >>  tia,
> > > > >>
> > > > >>  gary
> > > > >
> > > > >I tend to guess you're using a terminal emulator from within X when
> > > > >logging in remotely -- probably aterm or another rxvt-based terminal
> > > > >emulator.  I had similar problems.  I don't recall my exact fix, but
> > > > > it involved a two-tiered approach:
> > > > >
> > > > >  1. set a behavior using stty
> > >
> > >   Trying to use stty failed... .
> > >
> > > > >  2. change a setting in the aterm makefile before installing from
> > > > > ports
> > > > >
> > > > >My reference to the aterm makefile in part of the solution is
> > > > > because I suffered this problem when I used aterm as my terminal
> > > > > emulator of choice.  I have since then switched to rxvt-unicode
> > > > > (also known as urxvt) as my preferred terminal emulator, however,
> > > > > and no longer have this problem (as well as no longer having funny
> > > > > broken ASCII spew on my screen when reading email that contains
> > > > > unicode characters).
> > > > >
> > > > >Best o' luck.  Let us know if you think this pseudo-solution doesn't
> > > > >apply to you so we can help you brainstorm other diagnoses of your
> > > > >problem.
> > > >
> > > >It's because the TERM'inal emulation / keyboard layout's not
> > > > meshing. ^?--as I discovered after I asked the question ~8 months
> > > > ago--is a remnant DEC keyboard mapping, when if properly addressed by
> > > > setting TERM or fixing the keyboard layout to a standard ASCII
> > > > keyboard layout, the problem will go away.
> > > >
> > > > In shorter terms, if you...
> > > >1. ... switch over to TERM=xterm (assuming that the terminal prog
> > > > you're using is xterm compatible) under the settings for the app (if
> > > > they exist) ...
> > > >2. ... script in a fix so that it does this in your login shell
> > > > [you shouldn't use xterm systemwide for your TERM var, especially if
> > > > you login remotely via SSH and use CLI programs like pine (pine's
> > > > stupid and doesn't know how to emulate the xterm terminal properly
> > > > without hacking the source IIRC)] ...
> > >
> > >   Ok, I have TERM Set everywhere, plus in ~./zlogin, I have stty
> > >   set things  correctly, so it must be 3.
> > >
> > > >3. ... fix the keyboard layout ...
> > >
> > >   Problem here is HOW?  Many months ago my daughter spilled a
> > >   glass of water on my working IBM keyboard.  Surprise, the
> > >   water washed away the rinted leads... . (*mumble*) Since I
> > >   have a few others, (old, without the M$ cr*ap keys), I
> > >   chose the best, least sticky keyboard and used it.
> > >
> > >   I remapped my ~/.xmodmaprc file {{ "temporarily", ha, ha }}.
> > >   How else do I fix the layout?   IIRC, there was some place
> > >   to set the keyboard: 101, 104, 105, &c.  This old one is
> > >   probably a 101-key model.  It's a no-name deal.
> > >
> > >   Clues please?
> > >
> > >   gary
> > >
> > >
> > >   PS: {{ WARNING}}: I'Ve got a beg-athon posting upcooming
> > >
> > > > ... '^?' will be replaced with backspaces. 3. is the best solution,
> > > > but I had to do 1. before, because I didn't have root access on the
> > > > servers.
> >
> > Gosh, I had this on BSDi terminals for ages and had something in my
> > .*_profile to fix it. I think it was stty erase ^H where ^H was typed by
> > ctrl+v followed by 'H'. Should be able to execute that on terminal open
> > vim and test it.
>
>   In in ~/.zlogin (on all 5 machines) I've got
>
>   eval `tset -e^H -i^C -s -Q -m 'dialup:?xterm'`;
>
>   That  did the job until recently.   Somewhere in deep memory I
>   remember the ^V^H stuff.  Wasn't the '^' + 'H' ??

Maybe. I can't recall. Btw, you set erase to backspace there, but get a delete 
sequence, so maybe deleting -e^H on the target machine works. Then again, vim 
may be using erase2, rather then erase. Look at stty control characters 
section and fiddle around, then stick with what works. That's usually the 
best option for this non-printing character stuff :p

>   I think Garrett had the right solution, tho.

Yeah, if the terminal definition is

Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Kris Kennaway

Josh Carroll wrote:

Yes, 4BSD is still the default, although you definitely want to use ULE
for performance reasons (NB: only on 7, dont use ULE on 6).  I don't
know whether the release engineers plan to change that default, but I
will check.


Great, thanks for the info. Good to know, I'll be sure to use ULE when
7.0 is released. :)


JFYI, buildworld is a really bad benchmark for testing SMP performance
in general (on 4 cpus it is not too bad), because the makefiles are not
written to efficiently parallelize builds on many CPUs, so large parts
end up running with only a single make job at a time.


Understood, just a data point. :) Probably a better one: ffmpeg
encoding H.264 content with -threads 8 is nearly 4x as fast as a
single threaded ffmpeg process, so it's scaling well at least for
ffmpeg (linked against pthread).


That's good to know.  You should be using libthr for threaded 
performance though :)  That benchmark is probably almost all userland 
though, so performance may not suffer much from libpthread.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to add rule with pfctl...

2007-09-15 Thread Mel
On Saturday 15 September 2007 23:18:17 Agus wrote:

> I am trying to figure out how to add a firewall rule with pfctl...
> This is what i'm trying to do...
>
> I've got SEC that matches certain pattern and takes the IP from that and
> want to trigger a firewall rule to block that IP
> Then after a couple of hours SEC will trigger the command to un-block the
> IP...
> So what i need is the command to block an IP address from command line, not
> touching any pf.conf

If you don't need to add a rule but an IP, then tables are your friend.
Example for /etc/pf.conf:
# Placeholder for spammers table, non-routable network IP.
table  persist { 192.168.111.111 }
# Block this traffic
block return-rst in log on $ext_if proto tcp from  port smtp

Then on the command line:
/sbin/pfctl -t spammers -Tadd ip.from.new.spammer
And to delete:
/sbin/pfctl -t spammers -Tdel ip.from.old.spammer

-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Josh Carroll
> Yes, 4BSD is still the default, although you definitely want to use ULE
> for performance reasons (NB: only on 7, dont use ULE on 6).  I don't
> know whether the release engineers plan to change that default, but I
> will check.

Great, thanks for the info. Good to know, I'll be sure to use ULE when
7.0 is released. :)

> JFYI, buildworld is a really bad benchmark for testing SMP performance
> in general (on 4 cpus it is not too bad), because the makefiles are not
> written to efficiently parallelize builds on many CPUs, so large parts
> end up running with only a single make job at a time.

Understood, just a data point. :) Probably a better one: ffmpeg
encoding H.264 content with -threads 8 is nearly 4x as fast as a
single threaded ffmpeg process, so it's scaling well at least for
ffmpeg (linked against pthread).

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Kris Kennaway

Josh Carroll wrote:

In general, if you are running a multi-process or multi-threaded
workload, FreeBSD 7 will be able to make good use of 8 CPU cores.

Over the past 2 years we have done extensive benchmarking and
optimizations that have resulted in *huge* performance improvements on
many common workloads on 8-core systems.  FreeBSD 7 is now regularly
outperforming Linux on the workloads we have compared.  In the near
future we will be widening our scope to 16 core systems as well as
investigating more benchmarks as we find them.


Isn't the default scheduler still 4BSD on -CURRENT? Is ULE considered
stable on SMP systems now, and does it really outperform 4BSD? If so,
will it be set as the default scheduler once 7.0 is released?


Yes, 4BSD is still the default, although you definitely want to use ULE 
for performance reasons (NB: only on 7, dont use ULE on 6).  I don't 
know whether the release engineers plan to change that default, but I 
will check.



The P965 chipset boards will support the Q6600 and many of them will
support Penryn when it comes out (the 45nm based true quad core Intel
CPU). I have an Asus P5B and a Q6600 running at 3.4 GHz on 6.2-RELEASE
and it screams (8:20 to build world with make -j8, for example). So
even 6.2 will take good advantage of the 4 cores, and I imagine it'll
only get better when 7.0 is released. I'd just avoid the bleeding edge
motherboards/chipsets.


JFYI, buildworld is a really bad benchmark for testing SMP performance 
in general (on 4 cpus it is not too bad), because the makefiles are not 
written to efficiently parallelize builds on many CPUs, so large parts 
end up running with only a single make job at a time.


Kris
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Gary Kline
On Sat, Sep 15, 2007 at 10:54:34PM +0200, Mel wrote:
> On Saturday 15 September 2007 22:28:22 Gary Kline wrote:
> > On Sat, Sep 15, 2007 at 10:58:52AM -0700, Garrett Cooper wrote:
> > > Chad Perrin wrote:
> > > >On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
> > > >>Sometimes when I ssh from a remote server and edit a file with
> > > >>vi, my [Backspace keys] are not interpretered correctly.
> > > >>Instead of erasing characters and backing up one byte and
> > > >>clearing that character my cursor moves forward.
> > > >>
> > > >>Example: typing "This" as "thos" and backspacing to the 'o'
> > > >>I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
> > > >>doing wrong and how to fix it?
> > > >>
> > > >>tia,
> > > >>
> > > >>gary
> > > >
> > > >I tend to guess you're using a terminal emulator from within X when
> > > >logging in remotely -- probably aterm or another rxvt-based terminal
> > > >emulator.  I had similar problems.  I don't recall my exact fix, but it
> > > >involved a two-tiered approach:
> > > >
> > > >  1. set a behavior using stty
> >
> > Trying to use stty failed... .
> >
> > > >  2. change a setting in the aterm makefile before installing from ports
> > > >
> > > >My reference to the aterm makefile in part of the solution is because I
> > > >suffered this problem when I used aterm as my terminal emulator of
> > > >choice.  I have since then switched to rxvt-unicode (also known as
> > > > urxvt) as my preferred terminal emulator, however, and no longer have
> > > > this problem (as well as no longer having funny broken ASCII spew on my
> > > > screen when reading email that contains unicode characters).
> > > >
> > > >Best o' luck.  Let us know if you think this pseudo-solution doesn't
> > > >apply to you so we can help you brainstorm other diagnoses of your
> > > >problem.
> > >
> > >It's because the TERM'inal emulation / keyboard layout's not
> > > meshing. ^?--as I discovered after I asked the question ~8 months
> > > ago--is a remnant DEC keyboard mapping, when if properly addressed by
> > > setting TERM or fixing the keyboard layout to a standard ASCII keyboard
> > > layout, the problem will go away.
> > >
> > > In shorter terms, if you...
> > >1. ... switch over to TERM=xterm (assuming that the terminal prog
> > > you're using is xterm compatible) under the settings for the app (if
> > > they exist) ...
> > >2. ... script in a fix so that it does this in your login shell [you
> > > shouldn't use xterm systemwide for your TERM var, especially if you
> > > login remotely via SSH and use CLI programs like pine (pine's stupid and
> > > doesn't know how to emulate the xterm terminal properly without hacking
> > > the source IIRC)] ...
> >
> > Ok, I have TERM Set everywhere, plus in ~./zlogin, I have stty
> > set things  correctly, so it must be 3.
> >
> > >3. ... fix the keyboard layout ...
> >
> > Problem here is HOW?  Many months ago my daughter spilled a
> > glass of water on my working IBM keyboard.  Surprise, the
> > water washed away the rinted leads... . (*mumble*) Since I
> > have a few others, (old, without the M$ cr*ap keys), I
> > chose the best, least sticky keyboard and used it.
> >
> > I remapped my ~/.xmodmaprc file {{ "temporarily", ha, ha }}.
> > How else do I fix the layout?   IIRC, there was some place
> > to set the keyboard: 101, 104, 105, &c.  This old one is
> > probably a 101-key model.  It's a no-name deal.
> >
> > Clues please?
> >
> > gary
> >
> >
> > PS: {{ WARNING}}: I'Ve got a beg-athon posting upcooming
> >
> > > ... '^?' will be replaced with backspaces. 3. is the best solution, but
> > > I had to do 1. before, because I didn't have root access on the servers.
> 
> Gosh, I had this on BSDi terminals for ages and had something in my 
> .*_profile 
> to fix it. I think it was stty erase ^H where ^H was typed by ctrl+v followed 
> by 'H'. Should be able to execute that on terminal open vim and test it.


In in ~/.zlogin (on all 5 machines) I've got

eval `tset -e^H -i^C -s -Q -m 'dialup:?xterm'`;

That  did the job until recently.   Somewhere in deep memory I
remember the ^V^H stuff.  Wasn't the '^' + 'H' ??

I think Garrett had the right solution, tho.

gary




> 
> 
> -- 
> Mel
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Josh Carroll
> In general, if you are running a multi-process or multi-threaded
> workload, FreeBSD 7 will be able to make good use of 8 CPU cores.
>
> Over the past 2 years we have done extensive benchmarking and
> optimizations that have resulted in *huge* performance improvements on
> many common workloads on 8-core systems.  FreeBSD 7 is now regularly
> outperforming Linux on the workloads we have compared.  In the near
> future we will be widening our scope to 16 core systems as well as
> investigating more benchmarks as we find them.

Isn't the default scheduler still 4BSD on -CURRENT? Is ULE considered
stable on SMP systems now, and does it really outperform 4BSD? If so,
will it be set as the default scheduler once 7.0 is released?

To the original question, go with the Q6600, especially if you can get
a G0 stepping. It'll easily do 3.2 GHz (lowered 8x multiplier with 400
MHz FSB) if you get DDR2-800 capable RAM. Even the B3 stepping will do
3.2 I think, but will run hotter.

I would avoid P35 chipsets for now, as there is limited support for
the south bridge (ICH9). I think there are some patches (which may be
merged into -CURRENT, not sure). I'm not sure whether the Marvell
chipset(s) used on the P35 boards are supported or not, and USB may or
may not work.

The P965 chipset boards will support the Q6600 and many of them will
support Penryn when it comes out (the 45nm based true quad core Intel
CPU). I have an Asus P5B and a Q6600 running at 3.4 GHz on 6.2-RELEASE
and it screams (8:20 to build world with make -j8, for example). So
even 6.2 will take good advantage of the 4 cores, and I imagine it'll
only get better when 7.0 is released. I'd just avoid the bleeding edge
motherboards/chipsets.

Josh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Xorg 7.3 Works Fine Now - But .. A Few More Questions

2007-09-15 Thread Tim Daneliuk

The patches we've been waiting for apparently made the ports tree and
we have joy on Xorg 7.3.   I do have a couple of questions about stuff
that was happening prior to this (and still is).

When I to a portupgrade, I always see some grumbling about xorg-macros
no longer being in he ports tree.  Can I safely pkg_delete these?

I also wonder if anyone has a workaround for this longstanding problem.
The only thing I've been able to do successfully is run the VESA driver
instead:

X.Org X Server 1.4.0
Release Date: 5 September 2007
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 6.2-STABLE i386
Current Operating System: FreeBSD ozzie.tundraware.com 6.2-STABLE FreeBSD 
6.2-STABLE #33: Thu Sep 13 08:04:21 CDT 2007 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/OZZIE i386

Build Date: 14 September 2007  06:29:38PM

Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sat Sep 15 16:13:47 2007
(++) Using config file: "xorg.conf.new"
(EE) GARTInit: Unable to open /dev/agpgart (No such file or directory)
(II) Module "ddc" already built-in
(II) Module "ramdac" already built-in
(EE) I810(0): Failed to allocate framebuffer. Is your VideoRAM set too low ??

Fatal server error:
AddScreen/ScreenInit failed for driver 0



TIA!


--

Tim Daneliuk [EMAIL PROTECTED]
PGP Key: http://www.tundraware.com/PGP/

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


How to add rule with pfctl...

2007-09-15 Thread Agus
Hi list,

I am trying to figure out how to add a firewall rule with pfctl...
This is what i'm trying to do...

I've got SEC that matches certain pattern and takes the IP from that and
want to trigger a firewall rule to block that IP
Then after a couple of hours SEC will trigger the command to un-block the
IP...
So what i need is the command to block an IP address from command line, not
touching any pf.conf

I've done it with iptables but i can't get it with pf.Hope u understand
what i am trying to say...

Thanks and have a nice weekend...
Agustin
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: ntpd time server

2007-09-15 Thread David Kelly
On Sat, Sep 15, 2007 at 08:46:09PM -, [EMAIL PROTECTED] wrote:
> Is it possible to use ntpd as a client as well as a server?

Of course. Your server is a client of its own ntpd.

> I have my firewall setup to get updates from the Internet which it does
> without any problem.  However, I am not seeing any clients syncrhonizing
> with the firewall.
> 
> The firewall ntp.conf files contains the following.
> 
> server ntp-2.mcs.anl.gov prefer
> driftfile /data_prgs/local/etc/ntp.drift

Is my understanding these days the Politically Correct and Polite thing
to do is not list a specific machine (unless its yours) as ntp server
but to use servers which have volunteered to be placed in a revolving
DNS pool, like this:

server 0.pool.ntp.org
server 1.pool.ntp.org
server 2.pool.ntp.org
server pool.ntp.org

> The clients contain the following.
> server firewall
> driftfile /var/db/ntp.drift
> 
> firewall is a resolved via internal DNS, and it is resolved to the correct
> IP address.
> 
> Any suggestions would be greatly appreciated.

On your clients type "ntpd -c peers" and one machine should be listed,
your "server" named "firewall" something like this (on MacOS X):

% ntpdc -c peers
 remote   local  st poll reach  delay   offsetdisp
===
=andraia.local   192.168.123.177  2 40963 0.00085 -0.231870 3.95285


Do the same thing on the "server" to see what it thinks of the servers
it is connected to.

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Mel
On Saturday 15 September 2007 22:28:22 Gary Kline wrote:
> On Sat, Sep 15, 2007 at 10:58:52AM -0700, Garrett Cooper wrote:
> > Chad Perrin wrote:
> > >On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
> > >>  Sometimes when I ssh from a remote server and edit a file with
> > >>  vi, my [Backspace keys] are not interpretered correctly.
> > >>  Instead of erasing characters and backing up one byte and
> > >>  clearing that character my cursor moves forward.
> > >>
> > >>  Example: typing "This" as "thos" and backspacing to the 'o'
> > >>  I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
> > >>  doing wrong and how to fix it?
> > >>
> > >>  tia,
> > >>
> > >>  gary
> > >
> > >I tend to guess you're using a terminal emulator from within X when
> > >logging in remotely -- probably aterm or another rxvt-based terminal
> > >emulator.  I had similar problems.  I don't recall my exact fix, but it
> > >involved a two-tiered approach:
> > >
> > >  1. set a behavior using stty
>
>   Trying to use stty failed... .
>
> > >  2. change a setting in the aterm makefile before installing from ports
> > >
> > >My reference to the aterm makefile in part of the solution is because I
> > >suffered this problem when I used aterm as my terminal emulator of
> > >choice.  I have since then switched to rxvt-unicode (also known as
> > > urxvt) as my preferred terminal emulator, however, and no longer have
> > > this problem (as well as no longer having funny broken ASCII spew on my
> > > screen when reading email that contains unicode characters).
> > >
> > >Best o' luck.  Let us know if you think this pseudo-solution doesn't
> > >apply to you so we can help you brainstorm other diagnoses of your
> > >problem.
> >
> >It's because the TERM'inal emulation / keyboard layout's not
> > meshing. ^?--as I discovered after I asked the question ~8 months
> > ago--is a remnant DEC keyboard mapping, when if properly addressed by
> > setting TERM or fixing the keyboard layout to a standard ASCII keyboard
> > layout, the problem will go away.
> >
> > In shorter terms, if you...
> >1. ... switch over to TERM=xterm (assuming that the terminal prog
> > you're using is xterm compatible) under the settings for the app (if
> > they exist) ...
> >2. ... script in a fix so that it does this in your login shell [you
> > shouldn't use xterm systemwide for your TERM var, especially if you
> > login remotely via SSH and use CLI programs like pine (pine's stupid and
> > doesn't know how to emulate the xterm terminal properly without hacking
> > the source IIRC)] ...
>
>   Ok, I have TERM Set everywhere, plus in ~./zlogin, I have stty
>   set things  correctly, so it must be 3.
>
> >3. ... fix the keyboard layout ...
>
>   Problem here is HOW?  Many months ago my daughter spilled a
>   glass of water on my working IBM keyboard.  Surprise, the
>   water washed away the rinted leads... . (*mumble*) Since I
>   have a few others, (old, without the M$ cr*ap keys), I
>   chose the best, least sticky keyboard and used it.
>
>   I remapped my ~/.xmodmaprc file {{ "temporarily", ha, ha }}.
>   How else do I fix the layout?   IIRC, there was some place
>   to set the keyboard: 101, 104, 105, &c.  This old one is
>   probably a 101-key model.  It's a no-name deal.
>
>   Clues please?
>
>   gary
>
>
>   PS: {{ WARNING}}: I'Ve got a beg-athon posting upcooming
>
> > ... '^?' will be replaced with backspaces. 3. is the best solution, but
> > I had to do 1. before, because I didn't have root access on the servers.

Gosh, I had this on BSDi terminals for ages and had something in my .*_profile 
to fix it. I think it was stty erase ^H where ^H was typed by ctrl+v followed 
by 'H'. Should be able to execute that on terminal open vim and test it.


-- 
Mel
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


ntpd time server

2007-09-15 Thread jhall
Is it possible to use ntpd as a client as well as a server?

I have my firewall setup to get updates from the Internet which it does
without any problem.  However, I am not seeing any clients syncrhonizing
with the firewall.

The firewall ntp.conf files contains the following.

server ntp-2.mcs.anl.gov prefer
driftfile /data_prgs/local/etc/ntp.drift

The clients contain the following.
server firewall
driftfile /var/db/ntp.drift

firewall is a resolved via internal DNS, and it is resolved to the correct
IP address.

Any suggestions would be greatly appreciated.

Thanks,



Jay


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Gary Kline
On Sat, Sep 15, 2007 at 10:58:52AM -0700, Garrett Cooper wrote:
> Chad Perrin wrote:
> >On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
> >  
> >>Sometimes when I ssh from a remote server and edit a file with
> >>vi, my [Backspace keys] are not interpretered correctly.  
> >>Instead of erasing characters and backing up one byte and
> >>clearing that character my cursor moves forward.
> >>
> >>Example: typing "This" as "thos" and backspacing to the 'o'
> >>I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
> >>doing wrong and how to fix it?
> >>
> >>tia,
> >>
> >>gary
> >>
> >
> >I tend to guess you're using a terminal emulator from within X when
> >logging in remotely -- probably aterm or another rxvt-based terminal
> >emulator.  I had similar problems.  I don't recall my exact fix, but it
> >involved a two-tiered approach:
> >
> >  1. set a behavior using stty


Trying to use stty failed... .

> >  2. change a setting in the aterm makefile before installing from ports
> >
> >My reference to the aterm makefile in part of the solution is because I
> >suffered this problem when I used aterm as my terminal emulator of
> >choice.  I have since then switched to rxvt-unicode (also known as urxvt)
> >as my preferred terminal emulator, however, and no longer have this
> >problem (as well as no longer having funny broken ASCII spew on my screen
> >when reading email that contains unicode characters).
> >
> >Best o' luck.  Let us know if you think this pseudo-solution doesn't
> >apply to you so we can help you brainstorm other diagnoses of your
> >problem.
> 
>It's because the TERM'inal emulation / keyboard layout's not 
> meshing. ^?--as I discovered after I asked the question ~8 months 
> ago--is a remnant DEC keyboard mapping, when if properly addressed by 
> setting TERM or fixing the keyboard layout to a standard ASCII keyboard 
> layout, the problem will go away.
> 
> In shorter terms, if you...
>1. ... switch over to TERM=xterm (assuming that the terminal prog 
> you're using is xterm compatible) under the settings for the app (if 
> they exist) ...
>2. ... script in a fix so that it does this in your login shell [you 
> shouldn't use xterm systemwide for your TERM var, especially if you 
> login remotely via SSH and use CLI programs like pine (pine's stupid and 
> doesn't know how to emulate the xterm terminal properly without hacking 
> the source IIRC)] ...


Ok, I have TERM Set everywhere, plus in ~./zlogin, I have stty
set things  correctly, so it must be 3.

>3. ... fix the keyboard layout ...


Problem here is HOW?  Many months ago my daughter spilled a 
glass of water on my working IBM keyboard.  Surprise, the
water washed away the rinted leads... . (*mumble*) Since I 
have a few others, (old, without the M$ cr*ap keys), I 
chose the best, least sticky keyboard and used it.

I remapped my ~/.xmodmaprc file {{ "temporarily", ha, ha }}.
How else do I fix the layout?   IIRC, there was some place
to set the keyboard: 101, 104, 105, &c.  This old one is 
probably a 101-key model.  It's a no-name deal.  

Clues please?

gary


PS: {{ WARNING}}: I'Ve got a beg-athon posting upcooming


> 
> ... '^?' will be replaced with backspaces. 3. is the best solution, but 
> I had to do 1. before, because I didn't have root access on the servers.
> 
> Cheers,
> -Garrett
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Garrett Cooper

Kris Kennaway wrote:

Maxim Khitrov wrote:

On 9/14/07, Aryeh Friedman <[EMAIL PROTECTED]> wrote:

On 9/14/07, Maxim Khitrov <[EMAIL PROTECTED]> wrote:

Hello,

I'm about to purchase a new system for myself. It will dual-boot
Windows XP, which will be primarily used for gaming, and FreeBSD 7.0
for everything else. I wanted to ask if the new ULE scheduler will
benefit from having four cores on the CPU, meaning that if I have many
concurrent tasks, is it able to efficiently spread the load over all
available cores?

My choices for CPU are either the dual-core E6850 or quad-core Q6600.
The latter has lower FSB (1066 vs 1333) and frequency (2.4 vs 3.0),
but I'm trying to decide if the addition of two extra cores will bring
about noticeable improvements. There are also some issues for gaming,
but let's ignore those for a moment. Which CPU would benefit FreeBSD
7.0 the most, which one would you pick?

- Max
There seems to be some general issues with 7 and e6850/q6600 (I 
don't know

if these are due to the processor the chip set or what):

  * Doesn't reconize both SATA and PATA drives at the same time
  * X ( 7.3) has a hard time using brand specific drivers for PCI-E
cards (for example I am using vesa to drive a nVidia and I get the full
advertised resolution but I also have screen "blinks" see FreeBSD-x11
mailing list for details on all this)
  * Some ports are broken in 7 (in my case all native Java 
compilers and

the hp branded printing subsystem)


Could that have something to do with your motherboard? I plan on
getting Gigabyte GA-P35-DQ6, will likely order all the parts this
Monday or Tuesday. My choice is still between those two CPUs even if
FreeBSD has some issues with them right now. Hopefully it will be
fixed before 7-RELEASE is made.

I could still use some advice on which CPU would be better assuming
everything works as it should. I'm leaning more towards Q6600, since I
could overclock it a bit and essentially get 2 extra cores for free.
The main question is still whether ULE will take full advantage of the
available processing power and offset the negative impact of lower
FSB?

On Windows tests it's pretty clear that things like video editing and
3D rendering greatly benefit from four cores, but of course it's
difficult to locate similar tests run on other operating systems.


In general, if you are running a multi-process or multi-threaded 
workload, FreeBSD 7 will be able to make good use of 8 CPU cores.


Over the past 2 years we have done extensive benchmarking and 
optimizations that have resulted in *huge* performance improvements on 
many common workloads on 8-core systems.  FreeBSD 7 is now regularly 
outperforming Linux on the workloads we have compared.  In the near 
future we will be widening our scope to 16 core systems as well as 
investigating more benchmarks as we find them.


On the other hand, if you come up with a workload that does not 
perform well on 7, we want to hear about it so we can fix that bug :)


Kris


   Sidenote: I'd avoid purchasing non-Intel (i.e. nVidia chipset) 
motherboards if you're going to run FreeBSD. The ASUS P5B-Deluxe and 
P5K-E boards work well with FreeBSD, from experience.
   As for X11... haven't really gone there yet on my desktop / server 
with Core 2 CPUs, but I'll be doing that soon. In this arena, stay away 
from ATI cards as they are pretty much VGA capable only under FreeBSD. 
Also, avoid x64 for the time being because the proprietary nvidia driver 
isn't x64 capable (due to issues raised with nVidia about how the 
FreeBSD kernel allocates memory and devices).

   Good luck,
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mount_ntfs as normal user

2007-09-15 Thread Andriy Babiy
> > Maybe somebody else have this same behavior as I have with ntfs?
> >
> > I install FreeBSD 6.2 on my second machine and then I have 
> this same
> > problem with ntfs. This was a clean install, so I suppose that 
> problem with
> > ntfs is, or ... I dont known what is wrong.
> 
> I don't known it is important, but on these two machines on the 
> first slice I 
> have installed Windows XP, maybe it cause such behavior (?).

Stupid question: do you have ntfs partition auto-mounted in your /etc/fstab ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: linux-firefox dies after xorg update

2007-09-15 Thread Andrew Pantyukhin
On Sat, Sep 15, 2007 at 02:51:08PM +, beni wrote:
> Hi,
> 
> After updating xorg to 7.3 (and adding a new ServerFlags section to 
> my /etc/X11/xorg.conf to put "ignoreABI" to "on" to get kdm back), now my 
> linux-firefox does not start any more. It dies with the following error :
> 
> [EMAIL PROTECTED] /usr/home/beni]$ linux-firefox
> /home/beni/.gtkrc-2.0:12: Unable to find include file: "~/.gtkrc.mine"
> The program 'firefox-bin' received an X Window System error.
> This probably reflects a bug in the program.
> The error was 'BadMatch (invalid parameter attributes)'.
>   (Details: serial 102 error_code 8 request_code 145 minor_code 3)
>   (Note to programmers: normally, X errors are reported asynchronously;
>that is, you will receive the error a while after causing it.
>To debug your program, run it with the --sync command line
>option to change this behavior. You can then get a meaningful
>backtrace from your debugger if you break on the gdk_x_error() function.)
> 
> 
> Any ideas as where to look and what to change to get Firefox back ?
> 
> Thanks for any help.
> 
> I'm running 6.2-Stable with linux-firefox 2.0.0.6.

Everything works fine here. Are you sure you've updated all of
your ports?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Kris Kennaway

Maxim Khitrov wrote:

On 9/14/07, Aryeh Friedman <[EMAIL PROTECTED]> wrote:

On 9/14/07, Maxim Khitrov <[EMAIL PROTECTED]> wrote:

Hello,

I'm about to purchase a new system for myself. It will dual-boot
Windows XP, which will be primarily used for gaming, and FreeBSD 7.0
for everything else. I wanted to ask if the new ULE scheduler will
benefit from having four cores on the CPU, meaning that if I have many
concurrent tasks, is it able to efficiently spread the load over all
available cores?

My choices for CPU are either the dual-core E6850 or quad-core Q6600.
The latter has lower FSB (1066 vs 1333) and frequency (2.4 vs 3.0),
but I'm trying to decide if the addition of two extra cores will bring
about noticeable improvements. There are also some issues for gaming,
but let's ignore those for a moment. Which CPU would benefit FreeBSD
7.0 the most, which one would you pick?

- Max

There seems to be some general issues with 7 and e6850/q6600 (I don't know
if these are due to the processor the chip set or what):

  * Doesn't reconize both SATA and PATA drives at the same time
  * X ( 7.3) has a hard time using brand specific drivers for PCI-E
cards (for example I am using vesa to drive a nVidia and I get the full
advertised resolution but I also have screen "blinks" see FreeBSD-x11
mailing list for details on all this)
  * Some ports are broken in 7 (in my case all native Java compilers and
the hp branded printing subsystem)


Could that have something to do with your motherboard? I plan on
getting Gigabyte GA-P35-DQ6, will likely order all the parts this
Monday or Tuesday. My choice is still between those two CPUs even if
FreeBSD has some issues with them right now. Hopefully it will be
fixed before 7-RELEASE is made.

I could still use some advice on which CPU would be better assuming
everything works as it should. I'm leaning more towards Q6600, since I
could overclock it a bit and essentially get 2 extra cores for free.
The main question is still whether ULE will take full advantage of the
available processing power and offset the negative impact of lower
FSB?

On Windows tests it's pretty clear that things like video editing and
3D rendering greatly benefit from four cores, but of course it's
difficult to locate similar tests run on other operating systems.


In general, if you are running a multi-process or multi-threaded 
workload, FreeBSD 7 will be able to make good use of 8 CPU cores.


Over the past 2 years we have done extensive benchmarking and 
optimizations that have resulted in *huge* performance improvements on 
many common workloads on 8-core systems.  FreeBSD 7 is now regularly 
outperforming Linux on the workloads we have compared.  In the near 
future we will be widening our scope to 16 core systems as well as 
investigating more benchmarks as we find them.


On the other hand, if you come up with a workload that does not perform 
well on 7, we want to hear about it so we can fix that bug :)


Kris

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: dsniff installation failure

2007-09-15 Thread Alain G. Fabry
On Fri, Sep 14, 2007 at 08:32:53PM +0200, Mel wrote:
> On Friday 14 September 2007 15:37:29 Alain G. Fabry wrote:
> > Hi,
> >
> > I'm trying to install dsniff and get the following error message during
> > install. Running FreeBSD 6.2-RELEASE, just updated the ports collection
> > What can I do to get dsniff installed?
> >
> > Thanks,
> >
> > FreeBSD# make install clean
> > ===>  Building for dsniff-2.3_3
> > cc  -o dsniff asn1.o base64.o buf.o hex.o magic.o mount.o pcaputil.o rpc.o
> > tcp_raw.o trigger.o record.o dsniff.o decode.o decode_aim.o decode_citrix.o
> > decode_cvs.o decode_ftp.o decode_hex.o decode_http.o decode_icq.o
> > decode_imap.o decode_irc.o decode_ldap.o decode_mmxp.o decode_mountd.o
> > decode_napster.o decode_nntp.o decode_oracle.o decode_ospf.o
> > decode_pcanywhere.o decode_pop.o decode_portmap.o decode_postgresql.o
> > decode_pptp.o decode_rip.o decode_rlogin.o decode_smb.o decode_smtp.o
> > decode_sniffer.o decode_snmp.o decode_socks.o decode_tds.o decode_telnet.o
> > decode_vrrp.o decode_yp.o decode_x11.o -lrpcsvc  -L. -lmissing
> > -L/usr/local/lib -lnids -lpcap -L/usr/local/lib/libnet10 -lnet  -lssl
> > -lcrypto
> 
> Note: missing `pkgconfig --libs gthread-2.0` in LDFLAGS.
> @flz since he last touched the Makefile :p
> 
> This happens when libnids is installed in the same run as dependency, because 
> LIBNIDS_GLIB2 will be empty and the pre-configure target will not be 
> installed.
> 
> @Alain:
> run: `make clean all' and it'll compile.
> -- 
> Mel

Thanks, worked like a charm.





> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Garrett Cooper

Chad Perrin wrote:

On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
  

Sometimes when I ssh from a remote server and edit a file with
	vi, my [Backspace keys] are not interpretered correctly.  
	Instead of erasing characters and backing up one byte and

clearing that character my cursor moves forward.

Example: typing "This" as "thos" and backspacing to the 'o'
I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
doing wrong and how to fix it?

tia,

gary



I tend to guess you're using a terminal emulator from within X when
logging in remotely -- probably aterm or another rxvt-based terminal
emulator.  I had similar problems.  I don't recall my exact fix, but it
involved a two-tiered approach:

  1. set a behavior using stty
  2. change a setting in the aterm makefile before installing from ports

My reference to the aterm makefile in part of the solution is because I
suffered this problem when I used aterm as my terminal emulator of
choice.  I have since then switched to rxvt-unicode (also known as urxvt)
as my preferred terminal emulator, however, and no longer have this
problem (as well as no longer having funny broken ASCII spew on my screen
when reading email that contains unicode characters).

Best o' luck.  Let us know if you think this pseudo-solution doesn't
apply to you so we can help you brainstorm other diagnoses of your
problem.


   It's because the TERM'inal emulation / keyboard layout's not 
meshing. ^?--as I discovered after I asked the question ~8 months 
ago--is a remnant DEC keyboard mapping, when if properly addressed by 
setting TERM or fixing the keyboard layout to a standard ASCII keyboard 
layout, the problem will go away.


In shorter terms, if you...
   1. ... switch over to TERM=xterm (assuming that the terminal prog 
you're using is xterm compatible) under the settings for the app (if 
they exist) ...
   2. ... script in a fix so that it does this in your login shell [you 
shouldn't use xterm systemwide for your TERM var, especially if you 
login remotely via SSH and use CLI programs like pine (pine's stupid and 
doesn't know how to emulate the xterm terminal properly without hacking 
the source IIRC)] ...

   3. ... fix the keyboard layout ...

... '^?' will be replaced with backspaces. 3. is the best solution, but 
I had to do 1. before, because I didn't have root access on the servers.


Cheers,
-Garrett
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Building a new workstation - dual or quad-core CPU for FreeBSD 7?

2007-09-15 Thread Maxim Khitrov
On 9/14/07, Aryeh Friedman <[EMAIL PROTECTED]> wrote:
> On 9/14/07, Maxim Khitrov <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> > I'm about to purchase a new system for myself. It will dual-boot
> > Windows XP, which will be primarily used for gaming, and FreeBSD 7.0
> > for everything else. I wanted to ask if the new ULE scheduler will
> > benefit from having four cores on the CPU, meaning that if I have many
> > concurrent tasks, is it able to efficiently spread the load over all
> > available cores?
> >
> > My choices for CPU are either the dual-core E6850 or quad-core Q6600.
> > The latter has lower FSB (1066 vs 1333) and frequency (2.4 vs 3.0),
> > but I'm trying to decide if the addition of two extra cores will bring
> > about noticeable improvements. There are also some issues for gaming,
> > but let's ignore those for a moment. Which CPU would benefit FreeBSD
> > 7.0 the most, which one would you pick?
> >
> > - Max
>
> There seems to be some general issues with 7 and e6850/q6600 (I don't know
> if these are due to the processor the chip set or what):
>
>   * Doesn't reconize both SATA and PATA drives at the same time
>   * X ( 7.3) has a hard time using brand specific drivers for PCI-E
> cards (for example I am using vesa to drive a nVidia and I get the full
> advertised resolution but I also have screen "blinks" see FreeBSD-x11
> mailing list for details on all this)
>   * Some ports are broken in 7 (in my case all native Java compilers and
> the hp branded printing subsystem)

Could that have something to do with your motherboard? I plan on
getting Gigabyte GA-P35-DQ6, will likely order all the parts this
Monday or Tuesday. My choice is still between those two CPUs even if
FreeBSD has some issues with them right now. Hopefully it will be
fixed before 7-RELEASE is made.

I could still use some advice on which CPU would be better assuming
everything works as it should. I'm leaning more towards Q6600, since I
could overclock it a bit and essentially get 2 extra cores for free.
The main question is still whether ULE will take full advantage of the
available processing power and offset the negative impact of lower
FSB?

On Windows tests it's pretty clear that things like video editing and
3D rendering greatly benefit from four cores, but of course it's
difficult to locate similar tests run on other operating systems.

- Max
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: nVidia driver with Xorg 7.3?

2007-09-15 Thread beni
On Saturday 15 September 2007 14:56:17 Lowell Gilbert wrote:
> Lowell Gilbert <[EMAIL PROTECTED]> writes:
> > Florent Thoumie <[EMAIL PROTECTED]> writes:
> >> Lowell Gilbert wrote:
> >>> "Scott I. Remick" <[EMAIL PROTECTED]> writes:
>  Anyone tried the current nVidia-driver with the new X.org 7.3? I
>  heard that there was a general (non-FreeBSD-specific)
>  incompatibility, but just saw that 7.3 was now in the ports system.
> >>>
> >>> It's broken.  Apparently the X.org drop uses a new ABI.  [Thanks for
> >>> the note; I wouldn't have fully tested my upgrade otherwise.]
> >>>
> >>> I guess I'll be dropping back to the open-source "nv" driver for now.
> >>> Mssr. Thoumie: could you add a warning to the UPDATING entry?
> >>
> >> Thanks for reminding me, will do in a second.
> >>
> >> You have to make sure the Composite extension is disabled and start
> >> Xorg with startx -- -ignoreABI.
> >
> > Having finally taken a minute to think about it, I'm fairly
> > sure that putting that option into the command line in
> > /usr/local/lib/X11/xdm/Xservers will have the same effect,
> > for xdm.  However, I won't have a chance to produce a full
> > (tested) recipe until tomorrow (perhaps tonight).
>
> For some reason xdm is using /usr/local/share/examples/xdm/Xservers
> instead of /usr/local/lib/X11/xdm/Xservers.  From some other messages
> on the FreeBSD lists, this seems to be a known problem; but so far I
> can't see why it's happening to fix it.
>
> But with the -ignoreABI passed to the X executable in that file,
> everything works.  I tried the documented "IgnoreABI" option in the
> xorg.conf file, but that didn't seem to have any effect at all.

I am using kdm and with adding 

Section "ServerFlags"
Option  "IgnoreAbi" "on"
EndSection

to my /etc/X11/xorg.conf now xorg starts fine. Except that linux-firefox won't 
start up now... 
-- 
Beni.


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


Re: nVidia driver with Xorg 7.3?

2007-09-15 Thread Lowell Gilbert
Lowell Gilbert <[EMAIL PROTECTED]> writes:

> Florent Thoumie <[EMAIL PROTECTED]> writes:
>
>> Lowell Gilbert wrote:
>>> "Scott I. Remick" <[EMAIL PROTECTED]> writes:
>>>
 Anyone tried the current nVidia-driver with the new X.org 7.3? I
 heard that there was a general (non-FreeBSD-specific)
 incompatibility, but just saw that 7.3 was now in the ports system.
>>>
>>> It's broken.  Apparently the X.org drop uses a new ABI.  [Thanks for
>>> the note; I wouldn't have fully tested my upgrade otherwise.]
>>>
>>> I guess I'll be dropping back to the open-source "nv" driver for now.
>>> Mssr. Thoumie: could you add a warning to the UPDATING entry?
>>
>> Thanks for reminding me, will do in a second.
>>
>> You have to make sure the Composite extension is disabled and start
>> Xorg with startx -- -ignoreABI.
>
> Having finally taken a minute to think about it, I'm fairly
> sure that putting that option into the command line in
> /usr/local/lib/X11/xdm/Xservers will have the same effect,
> for xdm.  However, I won't have a chance to produce a full
> (tested) recipe until tomorrow (perhaps tonight).

For some reason xdm is using /usr/local/share/examples/xdm/Xservers
instead of /usr/local/lib/X11/xdm/Xservers.  From some other messages
on the FreeBSD lists, this seems to be a known problem; but so far I
can't see why it's happening to fix it.  

But with the -ignoreABI passed to the X executable in that file,
everything works.  I tried the documented "IgnoreABI" option in the
xorg.conf file, but that didn't seem to have any effect at all.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


linux-firefox dies after xorg update

2007-09-15 Thread beni
Hi,

After updating xorg to 7.3 (and adding a new ServerFlags section to 
my /etc/X11/xorg.conf to put "ignoreABI" to "on" to get kdm back), now my 
linux-firefox does not start any more. It dies with the following error :

[EMAIL PROTECTED] /usr/home/beni]$ linux-firefox
/home/beni/.gtkrc-2.0:12: Unable to find include file: "~/.gtkrc.mine"
The program 'firefox-bin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
  (Details: serial 102 error_code 8 request_code 145 minor_code 3)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)


Any ideas as where to look and what to change to get Firefox back ?

Thanks for any help.

I'm running 6.2-Stable with linux-firefox 2.0.0.6.

-- 
Beni.


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


xfce4/gnome + compiz - slow launch.

2007-09-15 Thread Dmitry
After installing compiz-fusion, xfce4 or gnome is launching very slow. Looks
like some timeout, xfdesktop is quite slow. Even when I don't start compiz,
this happens, but I don't start xfwm4 or metacity, so there are no conflicts
between WMs. When I logout and save current sessions with pidgin, and other
gtk programs, after login they start faster then xfdesktop. Any ideas about
it are appreciated.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Concurrency limit warning in Postfix leads to server lock

2007-09-15 Thread Bill Moran
Robert Fitzpatrick <[EMAIL PROTECTED]> wrote:
>
> I have dilemma with one of our 5.4 server mail gateways. About 2-3 times
> a month now the server SMTP and related services stop responding. I find
> myself not able to login, just sits there after entering user name. I
> have to reset the server and the only thing I can find with an 'egrep
> (fatal|error|warn)' in the messages and maillog are these concurrency
> limit warnings minutes before the issue started...
> 
> Sep 15 07:19:02 esmtp postfix/smtpd[2789]: warning: Connection
> concurrency limit exceeded: 51 from unknown[88.238.96.247] for service
> smtp
> 
> This seems to be an attacker of some sort, I block them and the issue
> goes away, of course. I posted my issue to the Postfix list, but was
> told this should not be taking down my server and to find out why I'm
> not able to login when this happens.

It shouldn't.

< I am looking for help on where to
> look to determine this, can someone give some guidance? Some other log I
> should examine? The only thing I can spot that looks possibly out of
> place is nfsd running at 6-8% CPU. I do a backup from one other server
> to this server via nfs. I checked and all that backup was finished
> couple of hours prior to this latest issue, but the nfsd process seems
> to be taking more CPU than normal. And when I reboot, the nfs connection
> I have in /etc/fstab takes several seconds to initialize.

Definitely sounds like some networking issues.  I can't give you a
direct "answer" because the question is too vague (although I think
you described it to the best of you ability).  Instead, I'll outline
how I would go about tracking it down and solving it.

* Start with the nfs thing.  It seems to indicate a network problem,
  which will skew everything else you investigate unless you fix it
  first.  Try some large FTP transfers between those two servers (FTP
  has very little overhead, and is thus a good gauge of network
  performance). If the FTP transfer isn't getting within 20% of the
  theoretical capability of the network, then you probably have a
  network problem.  Carefully investigate speed/duplex settings,
  whether or not your switching hardware is crappy or simply overloaded.
  In short, find the network problem and fix it.
* Next time it happens, make absolutely sure it's refusing login.  Under
  a DDoS or similar attack, it can take several seconds for ssh to
  complete the protocol negotiation.  If DNS is running slow, longer.
  Are you waiting until the ssh client actually times out before
  giving up?  Even then, it might connect on the second or third
  try.  Try setting ConnectTimeout to 300 in /etc/ssh/ssh_config and
  see if it connects.  I've seen network problems cause ssh to take
  45 seconds or longer to connect, and that's to be expected under
  certain network circumstances.
* Get MRTG or some other trend gathering system running on that machine
  so you have other stats to look at when the problem happens, this may
  point you to the source of the problem very quickly.  In general, it's
  a good idea to have on production systems so you can see what's
  happening.  With MRTG (and similar software) you can, and should!,
  graph a lot more than network usage.  Graph disk read/writes, cpu
  usage, swap file usage, memory usage.  A system that's heavily in
  to swap will respond dog-slow, and could be your problem.

Hope these help you narrow down the problem.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Concurrency limit warning in Postfix leads to server lock

2007-09-15 Thread Robert Fitzpatrick
I have dilemma with one of our 5.4 server mail gateways. About 2-3 times
a month now the server SMTP and related services stop responding. I find
myself not able to login, just sits there after entering user name. I
have to reset the server and the only thing I can find with an 'egrep
(fatal|error|warn)' in the messages and maillog are these concurrency
limit warnings minutes before the issue started...

Sep 15 07:19:02 esmtp postfix/smtpd[2789]: warning: Connection
concurrency limit exceeded: 51 from unknown[88.238.96.247] for service
smtp

This seems to be an attacker of some sort, I block them and the issue
goes away, of course. I posted my issue to the Postfix list, but was
told this should not be taking down my server and to find out why I'm
not able to login when this happens. I am looking for help on where to
look to determine this, can someone give some guidance? Some other log I
should examine? The only thing I can spot that looks possibly out of
place is nfsd running at 6-8% CPU. I do a backup from one other server
to this server via nfs. I checked and all that backup was finished
couple of hours prior to this latest issue, but the nfsd process seems
to be taking more CPU than normal. And when I reboot, the nfs connection
I have in /etc/fstab takes several seconds to initialize.

-- 
Robert

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What to use for conio?

2007-09-15 Thread Thomas Dickey
On Sat, Sep 15, 2007 at 03:11:54AM -0500, Lars Eighner wrote:
> What I really want to do:  capture keypresses (including function keys) from
> a (virtual) terminal without their echoing or without having to enter
> a new line (i.e. hit return).

man newterm
man filter

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


pgppzDyGLjjgl.pgp
Description: PGP signature


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Chad Perrin
On Fri, Sep 14, 2007 at 06:01:03PM -0700, Gary Kline wrote:
> 
>   Sometimes when I ssh from a remote server and edit a file with
>   vi, my [Backspace keys] are not interpretered correctly.  
>   Instead of erasing characters and backing up one byte and
>   clearing that character my cursor moves forward.
> 
>   Example: typing "This" as "thos" and backspacing to the 'o'
>   I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
>   doing wrong and how to fix it?
> 
>   tia,
> 
>   gary

I tend to guess you're using a terminal emulator from within X when
logging in remotely -- probably aterm or another rxvt-based terminal
emulator.  I had similar problems.  I don't recall my exact fix, but it
involved a two-tiered approach:

  1. set a behavior using stty
  2. change a setting in the aterm makefile before installing from ports

My reference to the aterm makefile in part of the solution is because I
suffered this problem when I used aterm as my terminal emulator of
choice.  I have since then switched to rxvt-unicode (also known as urxvt)
as my preferred terminal emulator, however, and no longer have this
problem (as well as no longer having funny broken ASCII spew on my screen
when reading email that contains unicode characters).

Best o' luck.  Let us know if you think this pseudo-solution doesn't
apply to you so we can help you brainstorm other diagnoses of your
problem.

-- 
CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ]
Thomas McCauley: "The measure of a man's real character is what he would do
if he knew he would never be found out."
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: http://www.freebsd.org site unreachable

2007-09-15 Thread Wojciech Puchar

I've confirmed (through a friend) in England it's not accessible either.

I'm surprised they wouldn't have redundancies to prevent this from
happening.  Round robin DNS with collocation at least.


There is a kind of redundancy. The FreeBSD website is mirrored in many
countries. I hardly have problems with www.nl.freebsd.org.

I wonder why so many people still use the main site, while there are a
lot of mirror sites.


anyway - when it's too difficult for people  to do that what about slight 
modification of http server on main site?


use geo_ip and redirect.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: http://www.freebsd.org site unreachable

2007-09-15 Thread Wojciech Puchar

There is a kind of redundancy. The FreeBSD website is mirrored in many
countries. I hardly have problems with www.nl.freebsd.org.

I wonder why so many people still use the main site, while there are a
lot of mirror sites.

i don't know :)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mount_ntfs as normal user

2007-09-15 Thread Zbigniew Komarnicki
> Maybe somebody else have this same behavior as I have with ntfs?
>
> I install FreeBSD 6.2 on my second machine and then I have this same
> problem with ntfs. This was a clean install, so I suppose that problem with
> ntfs is, or ... I dont known what is wrong.

I don't known it is important, but on these two machines on the first slice I 
have installed Windows XP, maybe it cause such behavior (?).
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: mount_ntfs as normal user

2007-09-15 Thread Zbigniew Komarnicki
On Friday 14 of September 2007 22:02:06 Mel wrote:
> The ls didn't list a setuid (you would see -r-sr-x-r-x), I would expect it
> to for this behavior to occur. I have no idea how this is possible and
> would see it as security risk if you're not the only user of the machine.

Yes, of course. 
Ok. 
Thank you again Mel.

Maybe somebody else have this same behavior as I have with ntfs?

I install FreeBSD 6.2 on my second machine and then I have this same problem 
with ntfs. This was a clean install, so I suppose that problem with ntfs is, 
or ... I dont known what is wrong.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: What to use for conio?

2007-09-15 Thread cpghost
On Sat, 15 Sep 2007 03:11:54 -0500 (CDT)
Lars Eighner <[EMAIL PROTECTED]> wrote:

> What I really want to do:  capture keypresses (including function
> keys) from a (virtual) terminal without their echoing or without
> having to enter a new line (i.e. hit return).
> 
> Why I do not want to use (n)curses: to use keypad in ncurses, I have
> to initscr() and ncurses will then blank the screen and seize the
> terminal. I do not want that to happen.  I want to write ANSI
> directly to the terminal and get non-echoing keypresses back.

Check out tcgetattr(3) and tcsetattr(3) from ,

Here's an entry from the Python FAQ that you can adapt or
retrofit to C:

How do I get a single keypress at a time?
-

For Unix variants: There are several solutions. It's straightforward
to do this using curses, but curses is a fairly large module to learn.
Here's a solution without curses:

import termios, fcntl, sys, os, select
   
fd = sys.stdin.fileno()
   
oldterm = termios.tcgetattr(fd)
newattr = oldterm[:]
newattr[3] = newattr[3] & ~termios.ICANON & ~termios.ECHO
termios.tcsetattr(fd, termios.TCSANOW, newattr)
   
oldflags = fcntl.fcntl(fd, fcntl.F_GETFL)
fcntl.fcntl(fd, fcntl.F_SETFL, oldflags | os.O_NONBLOCK)
   
try:
while 1:
r, w, e = select.select([fd], [], [])
if r:
c = sys.stdin.read(1)
print "Got character", repr(c)
if c == "q":
break # quit
finally:
termios.tcsetattr(fd, termios.TCSAFLUSH, oldterm)
fcntl.fcntl(fd, fcntl.F_SETFL, oldflags)
   
   You need the termios and the fcntl module for any of this to work,
and I've only tried it on Linux, though it should work elsewhere. In
this code, characters are read and printed one at a time, until the
user presses `q' to quit. 

   termios.tcsetattr() turns off stdin's echoing and disables canonical
mode. fcntl.fnctl() is used to obtain stdin's file descriptor flags and
modify them for non-blocking mode. The select module is then used to
wait for incoming characters.

 END OF FAQ ENTRY 

> Why I think I need something like conio:  I think I could get stdio
> to do what I want if I had something like kbdhit from conio, but
> conio doesn't exist pretty much anywhere outside of DOS.  I'm pretty
> sure the system conSio is not anything like what I want.
> 
> So how can I get non-echoing keypress without turning my terminal
> over to the tender mercies of ncurses?

s. above.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


What to use for conio?

2007-09-15 Thread Lars Eighner

What I really want to do:  capture keypresses (including function keys) from
a (virtual) terminal without their echoing or without having to enter
a new line (i.e. hit return).

Why I do not want to use (n)curses: to use keypad in ncurses, I have
to initscr() and ncurses will then blank the screen and seize the terminal.
I do not want that to happen.  I want to write ANSI directly to the terminal
and get non-echoing keypresses back.

Why I think I need something like conio:  I think I could get stdio to do
what I want if I had something like kbdhit from conio, but conio doesn't
exist pretty much anywhere outside of DOS.  I'm pretty sure the system
conSio is not anything like what I want.

So how can I get non-echoing keypress without turning my terminal over to
the tender mercies of ncurses?

--
Lars Eighner
http://www.larseighner.com/index.html
8800 N IH35 APT 1191 AUSTIN TX 78753-5266

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: /dev/random question

2007-09-15 Thread Ted Mittelstaedt

/dev/urandom is a hack.  In a perfect world, the /dev/random device
would be able to return a string of random numbers as fast as you
wanted, and there would not have been a need for /dev/urandom

Since FreeBSD tries to be close to perfect ;-) it uses a better
random driver that can produce random numbers as fast as you want
them.  The symlink is there only as a crutch for older UNIX code
that was written when there was a difference between /dev/random
and /dev/urandom

Ted

> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] Behalf Of Roland Smith
> Sent: Thursday, September 13, 2007 8:37 AM
> To: Per olof Ljungmark
> Cc: freebsd-questions@freebsd.org
> Subject: Re: /dev/random question
> 
> 
> On Thu, Sep 13, 2007 at 04:56:26PM +0200, Per olof Ljungmark wrote:
> > Hi,
> > 
> > Could someone on the list point me to a document that explains the 
> > functionality of /dev/random in FreeBSD in a little more depth 
> than the man 
> > page? In other OS's I've looked at random and urandom are 
> different, here 
> > it's a symlink (talking about RELENG-6 onwards).
>  
> FreeBSD uses the yarrow algorithm, as mentioned in random(4). See 
> http://en.wikipedia.org/wiki/Yarrow_algorithm
> http://www.schneier.com/yarrow.html
> 
> 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)
> 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Problems With xorg 7.3 After A Port Upgrade

2007-09-15 Thread Francois Ranchin
According to Aryeh Friedman :
> it sure doesn't do it on my geForce 8400 gs.

it does well with a 8500 GT. You have to change the file
/usr/local/lib/X11/xdm/Xservers
(in fact /usr/local/share/examples/xdm/Xservers due to an other problem)

to have :

:0 local /usr/local/bin/X -br -ignoreABI :0

and start your xdm/gdm/kdm as you want.

And I have Composite enable too. I just have a warning and no other
problems.

Regards,
-- 
François Ranchin -+- [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: remote [ssh] Backspace] key gives me "^?"

2007-09-15 Thread Gary Kline
On Sat, Sep 15, 2007 at 01:17:58AM +, Pollywog wrote:
> On Saturday 15 September 2007 01:01:03 Gary Kline wrote:
> > Sometimes when I ssh from a remote server and edit a file with
> > vi, my [Backspace keys] are not interpretered correctly.
> > Instead of erasing characters and backing up one byte and
> > clearing that character my cursor moves forward.
> >
> > Example: typing "This" as "thos" and backspacing to the 'o'
> > I'll see "thos^?^?"Can anybody 'splain what idiot thing i'm
> > doing wrong and how to fix it?
> >
> > tia,
> >
> > gary
> 
> Does this also happen when you use vim?
> I wonder if you are really using vi and not ee or some other editor.
> I had many problems with vi so I did 'touch .vimrc' in my home directory
> 
> cd ~
> touch .vimrc
> 
> I use vim rather than vi and if I remember correctly, when I first installed 
> FreeBSD, 'vi' was actually a symlink to 'ee'.  I might be wrong about that.
> 
> 
To you and Aryeh Friedmanboth, nope, no joy.  I was using the KDE
Konsole and finally selected the "freebsd terminal"; now the 
"<-" key works, more/less."  With Konsole I can have the BEL
('\007') sound; not with Terminal.  I am still very much in
learning mode since I recently changed from CTWM to Gnome

tx, guys,

gary




-- 
  Gary Kline  [EMAIL PROTECTED]   www.thought.org  Public Service Unix
  http://jottings.thought.org   http://transfinite.thought.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"