Re: keyboard layout switching problem
On July 25, 2007, Yuri Pankov wrote: > On Wed, Jul 25, 2007 at 10:05:55PM -0700, Andriy Babiy wrote: > > Hi everybody! > > > > After today's upgrade of xkeyboard-config (all ports are up-to-date) I > > have a problem with switching between English and Russian layouts in > > KDE. Instead of country flag icon or letters, the "err" is shown. > > The keyboard layouts are configured in KDE Control Center. > > xorg.conf contains the default settings, obtained by X -configure. > > > > What can I do to fix the problem? > > If I can provide more details, please let me know. > > Thank you in advance. > > > > Andriy > > There are many reports about this problem on different lists, this one > should solve it > http://lists.freebsd.org/pipermail/freebsd-x11/2007-July/004942.html > > > HTH, > Yuri Fixed. Thank you for the instant reply! Andriy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
trouble with php4, apache, egroupware, memory allocation
I'm running apache-1.3.37_4, php4-4.4.7, and eGroupWare-1.2.106_1. Apache error file is returning the following error when trying to access the calendar. PHP Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 23040 bytes) I've searched but have not found a working fix. Any Ideas?? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: keyboard layout switching problem
On Wed, Jul 25, 2007 at 10:05:55PM -0700, Andriy Babiy wrote: > Hi everybody! > > After today's upgrade of xkeyboard-config (all ports are up-to-date) I have > a problem with switching between English and Russian layouts in KDE. > Instead of country flag icon or letters, the "err" is shown. > The keyboard layouts are configured in KDE Control Center. > xorg.conf contains the default settings, obtained by X -configure. > > What can I do to fix the problem? > If I can provide more details, please let me know. > Thank you in advance. > > Andriy There are many reports about this problem on different lists, this one should solve it http://lists.freebsd.org/pipermail/freebsd-x11/2007-July/004942.html HTH, Yuri pgpzKGXvd7CRU.pgp Description: PGP signature
keyboard layout switching problem
Hi everybody! After today's upgrade of xkeyboard-config (all ports are up-to-date) I have a problem with switching between English and Russian layouts in KDE. Instead of country flag icon or letters, the "err" is shown. The keyboard layouts are configured in KDE Control Center. xorg.conf contains the default settings, obtained by X -configure. What can I do to fix the problem? If I can provide more details, please let me know. Thank you in advance. Andriy ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: porteasy vs portupgrade
Miguel wrote: Hi, i used to use portupgrade as using this instructions http://www.onlamp.com/pub/a/bsd/2001/11/29/Big_Scary_Daemons.html for doing all the port managing, what about porteasy, it is as good as portupgrade? i think porteasy is not as popular as portupgrade. thanks Hi Miguel, I use portupgrade and portsnap, a combination which seems to work fine. The only thing that annoys me about portupgrade is that it's written in Ruby, and when it's time for an upgrade I always have to upgrade the Ruby compiler as well. Upgrading Ruby just takes forever on these old battered beige boxes. I have similar issues with Darcs and the Glasgow Haskell Compiler. Wish they could be ported to C++ or something. Oh well. One bit of advice I would do well to remember is: the first thing to do after /installing/ the ports tree is to /update/ the ports tree. I forgot one time and had to upgrade all my apps when I'd installed them. :/ Adam J Richardson ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Drive concatenation...Which tool to use?
On Wed, Jul 25, 2007 at 08:22:40PM -0700, Garrett Cooper wrote: > gvinum works just fine for RAID-0 operations, if that's what you want. > > -Garrett Probably not, considering the drives are all different sizes. I think gconcat will most likely do what we want. Thanks, Josh -- Josh Tolbert [EMAIL PROTECTED] || http://www.puresimplicity.net/~hemi/ Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing. -- Helen Keller ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ssh X11 forwarding not working on FreeBSD 6.2
On Wed, 2007-07-25 at 09:49 -0500, Terry Todd wrote: > I made a mistake in my last post. > > SSH X11 forwarding sets the DISPLAY variable to something like: > localhost:10.0 > > It should not be the address of the Windows box because that bypasses > X11 forwarding. > > Terry Todd > > > On Wed, Jul 25, 2007 at 09:01:35AM -0500, Terry Todd wrote: > > > > Michael, > > > > Thanks for the directions. Using your method does work. However > > your method bypasses X11 forwarding. > > > > > 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY > > > environment variable equal to the IP address and display of the XP > > > machine. The command I used was: > > > > > > export DISPLAY=192.168.xxx.xxx:0 > > > > What I want to get working is X11 forwarding where you don't set > > the DISPLAY variable explicitly. With X11 forwarding the DISPLAY > > variable is automatically set to something like, > > [IP address of Windows box]:0.0. > > > > Terry Todd > > > > > > On Wed, Jul 25, 2007 at 12:16:24AM -0700, Michael S. Eubanks wrote: > > > On Tue, 2007-07-24 at 13:29 -0500, Terry Todd wrote: > > > > On Tue, Jul 24, 2007 at 10:54:22AM -0700, Michael S. Eubanks wrote: > > > > ... > > > > > Question. How many X servers do you have running? Are you logged > > > > > into > > > > > a window manager when you are attempting to connect? > > > > > > > > > > > > > Only one instance of Xming is running on the Windows XP system. > > > > I am using PuTTY to connect to the FreeBSD system and the other > > > > systems. The other systems all work. FreeBSD X11 forwarding does > > > > not work. It is an off the shelf standard install of 6.2. > > > > > > > > Manually setting the DISPLAY variable on the FreeBSD system to > > > > [IP address of Widows XP system]:0.0 will allow it to work but > > > > that's not what I want to do here. I want it to automatically > > > > forward the X11 session through ssh like it does when connecting > > > > to the FC6 system. > > > > > > > > Terry Todd > > > > > > > > > > Okay. I was able to get it running. I received a slightly different > > > error when I tried running an application the first time. My error is > > > from Xming and displays as follows (using X forwarding): > > > > > > AUDIT: Tue Jul 24 23:47:34 2007: 608 C:\Program Files\Xming\xming.exe > > > client 4 rejected from IP 192.168.10.101 > > > > > > This error simply means to add the ``-ac'' option to the Xming desktop > > > shortcut. Let me walk you through what I did. Before I begin, I'm > > > using 6-STABLE (now on 6.2) with Xorg 7.2. > > > > > > > > > QUICK INSTRUCTIONS > > > 1. Make sure to install Xming using both the Xming installer program > > > and Xming fonts installer. > > > > > > 2. Modify the Desktop Xming shortcut to include the following > > > arguments: ``:0 -clipboard -multiwindow -ac''. The ac option accepts > > > client requests and quells the error that I had above. > > > > > > 3. Start Xming using the shortcut you just created > > > > > > 4. I'm going to guess that you may leave your sshd_config file the way > > > it is - I did. > > > > > > 5. Install the Xming Portable PuTTY package. Make the changes shown to > > > the PuTTY configuration as shown here before you connect to the FreeBSD > > > machine (NOTE the X11 forwarding to localhost:0 - I think this is how > > > you said your config was): > > > > > > http://www.straightrunning.com/XmingNotes/trouble.php > > > > > > 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY > > > environment variable equal to the IP address and display of the XP > > > machine. The command I used was: > > > > > > export DISPLAY=192.168.xxx.xxx:0 > > > > > > 7. Make sure your Windows Firewall is either turned off or allows > > > incoming requests for Xming. > > > > > > 8. Execute a command like xeyes. It should show on the windows > > > desktop. > > > > > <...snip...> Glad to hear you got it working - you are right though. Here's a quick link. http://www.ssh.com/support/documentation/online/ssh/adminguide/32/X11_Forwarding.html Considerring the client uses a special local display setting, would it work to set the environment variables in PuTTY itself, although, that would seem to be manual again. With respect to X, check out the xauth man page. I'm curious as to whether the xauth file needs to exist in the user's home directory. I think the instructions (pictures) showed a key being added to the PuTTY session config. Cheers, Michael S. Eubanks [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: Drive concatenation...Which tool to use?
Garrett Cooper wrote: Josh Tolbert wrote: On Wed, Jul 25, 2007 at 10:43:29PM -0400, John Nielsen wrote: On Wednesday 25 July 2007, Josh Tolbert wrote: I've got a friend that wants to use a FreeBSD box for a file server. He has a huge pile of drives of different sizes, but he wants them all as one big file system. What's the appropriate tool for this? gstripe doesn't seem like it'd be smart to use with differently-sized drives. Is gvinum up to snuff and stable enough to use? Is ccd still supported? What would be your tool of choice? gconcat, perhaps? Talk about missing the obvious one...That should work. Thanks. Josh dump(3)? -Garrett Nevermind that last comment... gvinum works just fine for RAID-0 operations, if that's what you want. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Drive concatenation...Which tool to use?
Josh Tolbert wrote: On Wed, Jul 25, 2007 at 10:43:29PM -0400, John Nielsen wrote: On Wednesday 25 July 2007, Josh Tolbert wrote: I've got a friend that wants to use a FreeBSD box for a file server. He has a huge pile of drives of different sizes, but he wants them all as one big file system. What's the appropriate tool for this? gstripe doesn't seem like it'd be smart to use with differently-sized drives. Is gvinum up to snuff and stable enough to use? Is ccd still supported? What would be your tool of choice? gconcat, perhaps? Talk about missing the obvious one...That should work. Thanks. Josh dump(3)? -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Drive concatenation...Which tool to use?
On Wed, Jul 25, 2007 at 10:43:29PM -0400, John Nielsen wrote: > On Wednesday 25 July 2007, Josh Tolbert wrote: > > I've got a friend that wants to use a FreeBSD box for a file server. He > > has a huge pile of drives of different sizes, but he wants them all as > > one big file system. What's the appropriate tool for this? gstripe > > doesn't seem like it'd be smart to use with differently-sized drives. Is > > gvinum up to snuff and stable enough to use? Is ccd still supported? What > > would be your tool of choice? > > gconcat, perhaps? Talk about missing the obvious one...That should work. Thanks. Josh -- Josh Tolbert [EMAIL PROTECTED] || http://www.puresimplicity.net/~hemi/ Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing. -- Helen Keller ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Drive concatenation...Which tool to use?
On Wednesday 25 July 2007, Josh Tolbert wrote: > I've got a friend that wants to use a FreeBSD box for a file server. He > has a huge pile of drives of different sizes, but he wants them all as > one big file system. What's the appropriate tool for this? gstripe > doesn't seem like it'd be smart to use with differently-sized drives. Is > gvinum up to snuff and stable enough to use? Is ccd still supported? What > would be your tool of choice? gconcat, perhaps? JN ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
LiveHTTPHeaders
Looking for LiveHTTPHeaders in port library? Is it spelled some what different? http://livehttpheaders.mozdev.org/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Drive concatenation...Which tool to use?
Hello, I've got a friend that wants to use a FreeBSD box for a file server. He has a huge pile of drives of different sizes, but he wants them all as one big file system. What's the appropriate tool for this? gstripe doesn't seem like it'd be smart to use with differently-sized drives. Is gvinum up to snuff and stable enough to use? Is ccd still supported? What would be your tool of choice? Thanks, Josh -- Josh Tolbert [EMAIL PROTECTED] || http://www.puresimplicity.net/~hemi/ Security is mostly a superstition. It does not exist in nature, nor do the children of men as a whole experience it. Avoiding danger is no safer in the long run than outright exposure. Life is either a daring adventure, or nothing. -- Helen Keller ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ACPI slowing CPU... or something else
On Wed, 25 Jul 2007, V.I.Victor wrote: On Wed, 25 Jul 2007 [EMAIL PROTECTED] wrote: On Wed, 25 Jul 2007, V.I.Victor wrote: On Wed, 25 Jul 2007, Garrett Cooper wrote: V.I.Victor wrote: I've two 5.4 desktop boxes. Pretty much the same installation; both from the same CD, same apps, no monitor/keyboard, 1-user logged-on via ssh (command-line only w/no gui) and otherwise lightly loaded. Box_A: CPU: AMD-K7(tm) Processor (598.84-MHz 686-class CPU) avail memory = 121630720 (115 MB) ACPI disabled by blacklist. Box_B: CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.19-MHz 686-class CPU) avail memory = 252186624 (240 MB) cpu0: on acpi0 acpi_throttle0: on cpu0 ... Yes. On my virtual machine with ACPI: dev.cpu.0.freq: 2653 dev.cpu.0.freq_levels: 2653/-1 2321/-1 1989/-1 1658/-1 1326/-1 994/-1 663/-1 331/-1 [EMAIL PROTECTED] ~]# dmesg | grep 26 FreeBSD 7.0-CURRENT #5: Tue Jul 17 08:22:26 UTC 2007 CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2666.79-MHz K8-class CPU) Timecounter "TSC" frequency 2666794890 Hz quality 800 What are the following sysctls set to? kern.clockrate hw.acpi.cpu.cx_lowest dev.cpu.0.cx_lowest dev.cpu.0.cx_usage Thanks for the reply! I don't seem to have the last 2 you've asked about. 'sysctl -a | egrep "clockrate|cpu"' reported the following: kern.clockrate: { hz = 100, tick = 1, profhz = 1024, stathz = 128 } kern.threads.virtual_cpu: 1 kern.ccpu: 1948 kern.smp.maxcpus: 1 kern.smp.cpus: 1 hw.ncpu: 1 hw.clockrate: 1794 hw.acpi.cpu.cx_supported: C1/0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% machdep.cpu_idle_hlt: 1 dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 1796 dev.cpu.0.freq_levels: 1796/-1 1571/-1 1347/-1 1122/-1 898/-1 673/-1 449/-1 224/-1 dev.acpi_throttle.0.%parent: cpu0 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%parent: cpu0 Do you have SMP enabled? No. Both boxes have pretty minimal, basic installations. You also might be able to tune the kernel clock rate to obtain better performance; I forget what the values were for sysctl, but if you search around the current@ archives a bit, there was a discussion involving VMware and clock tuning approximately 2-3 months ago which details this issue, and possible solutions. Perhaps tuning could help. I'll check the archives. However, it just seems to me that the 1.8 GHz box ought to perform the simple prog (orig post) at least as fast as the 6 MHz box. Depends on: 1. What you're trying to do. 2. What your programs are optimized for. 3. Additional factors (I/O, load, etc). 4. Hardware attached to each machine. Some examples... a. Comparing a SCSI disk vs a PATA disk. b. Clockspeed applied to the RAM on one machine isn't equal to the other. c. Motherboard manufacturers -- some manufacturers have done a shoddy job with memory handling, BIOS manufacturing, and other critical stats in the past. Try disabling ACPI on the P4 though and see what happens. I will say though, the Willamette (1st gen P4) chips weren't Intel's finest desktop chip; some people went far enough to complain that the Willamette series was nothing more than overclocked Coppermines, i.e. P3's. I haven't taken a look at the architectures and compared them, so those may be empty claims. You'll get performance with a Northwood or Prescott series P4 processor though, in particular the later revisions of both chips, once they introduced Hyperthreading. And remember, operating frequency of a CPU doesn't mean everything; it's just a ballpark figure for performance ;). Finally, quite a few advancements have been made going from 5.4 to 6.2. I'd say give 6.2 (and soon 7-BETA/-RELEASE) a try before ruling out a major problem with your PC(s), or FreeBSD (overall). -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: logging system load
On 7/25/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: Is there a tool similar to top which would measure system load and write it to a file that could later be analyzed? sysutils/bsdsar works pretty well for me. Only problem is on some systems it'll occasionally get confused and parse out the wrong values from the commands it runs (top and such) and end up logging crazy values such as "0% idle" when it's really "100% idle". Despite that problem I'd recommend it -- it's a useful tool IMHO. -- James. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
video mode problem booting 6.2 CD
Has anyone had any problem with the booting of 6.2 release CD? I have an older server that is running 5.5 and was going to do a binary upgrade to 6.2. When I try to boot the 6.2 release CD 1, right after the loader message, the video gets funny, I see it trying to do what looks like drawing on the screen, but just see some flashing. It looks like some kind of video mode switch the builtin VGA adapter is having trouble with. I was wondering if anyone else had seen this problem and possibly had a work around. -Derek [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pf and keep/modulate state on 6.2
At 04:40 PM 7/25/2007 -0700, Drew Tomlinson wrote: Excuse me for butting in. This has been discussed on the pf list. A search of the archives will find you the details but basically 4.1 and FBSD 6 won't work together as I understand it. Major changes are required. However work has been done in CURRENT and is undergoing testing now but will not be back ported to STABLE because of the major changes. HTH, Drew Thanks for the heads up. I am not on the 'pf' list - but for firewalling, we only use OpenBSD now...freebsd we still use for servers and stuff but I really prefer something thats current. :-) -JD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
porteasy vs portupgrade
Hi, i used to use portupgrade as using this instructions http://www.onlamp.com/pub/a/bsd/2001/11/29/Big_Scary_Daemons.html for doing all the port managing, what about porteasy, it is as good as portupgrade? i think porteasy is not as popular as portupgrade. thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pf and keep/modulate state on 6.2
At 01:58 AM 7/26/2007 +0200, Max Laier wrote: Well, in RELENG_6 we can't (pf update breaks ABI = no go in a RELENG branch). In HEAD we have 4.1 since a couple of weeks. thanks Max. I appreciate the response. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pf and keep/modulate state on 6.2
On 7/25/2007 12:50 PM JD Bronson wrote: At 08:55 PM 7/25/2007 +0200, Max Laier wrote: On Saturday 21 July 2007, Jordan Gordeev wrote: > I'm replying to an old and long-forgotten thread to report my recent > findings. > There's a bug in PF with modulate/synproxy state. Modulate/synproxy > state modulate sequence numbers, but don't modulate sequence numbers in > TCP SACK options. Some firewalls block TCP segments with sequence > numbers in the SACK option pointing outside the window, which causes > connection stalls. The bug was fixed in OpenBSD with revision 1.509 of > src/sys/net/pf.c about an year and a half ago. The bug is present in > FreeBSD-STABLE. A fix for the bug was imported in FreeBSD-CURRENT with > the big import of PF from OpenBSD 4.1. > I'm CC-ing Max to notify him of the bug present in -STABLE and to ask > him to deal with the issue by either porting the fix from OpenBSD, or > by documenting that modulate/synproxy state is broken. Good catch - sorry for the delay. Here is the diff (almost verbatim from OPENBSD_3_8). Please test and report back. I plan to commit this to RELENG_6 in a bit. -- /"\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 Max - 3.8? Cant we get a bit closer and more up-to-date as far as staying with pf and openbsd? I know pf changed - especially for OBSD 4.1 and it would be nice to be CLOSER than 3.8 ? Excuse me for butting in. This has been discussed on the pf list. A search of the archives will find you the details but basically 4.1 and FBSD 6 won't work together as I understand it. Major changes are required. However work has been done in CURRENT and is undergoing testing now but will not be back ported to STABLE because of the major changes. HTH, Drew -- Be a Great Magician! Visit The Alchemist's Warehouse http://www.alchemistswarehouse.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pf and keep/modulate state on 6.2
On Wednesday 25 July 2007, JD Bronson wrote: > At 08:55 PM 7/25/2007 +0200, Max Laier wrote: > >On Saturday 21 July 2007, Jordan Gordeev wrote: > > > I'm replying to an old and long-forgotten thread to report my > > > recent findings. > > > There's a bug in PF with modulate/synproxy state. Modulate/synproxy > > > state modulate sequence numbers, but don't modulate sequence > > > numbers in TCP SACK options. Some firewalls block TCP segments with > > > sequence numbers in the SACK option pointing outside the window, > > > which causes connection stalls. The bug was fixed in OpenBSD with > > > revision 1.509 of src/sys/net/pf.c about an year and a half ago. > > > The bug is present in FreeBSD-STABLE. A fix for the bug was > > > imported in FreeBSD-CURRENT with the big import of PF from OpenBSD > > > 4.1. > > > I'm CC-ing Max to notify him of the bug present in -STABLE and to > > > ask him to deal with the issue by either porting the fix from > > > OpenBSD, or by documenting that modulate/synproxy state is broken. > > > >Good catch - sorry for the delay. Here is the diff (almost verbatim > > from OPENBSD_3_8). Please test and report back. I plan to commit > > this to RELENG_6 in a bit. > > > >-- > >/"\ Best regards, | [EMAIL PROTECTED] > >\ / Max Laier | ICQ #67774661 > > Max - 3.8? Cant we get a bit closer and more up-to-date as far as > staying with pf and openbsd? > > I know pf changed - especially for OBSD 4.1 and it would be nice to > be CLOSER than 3.8 ? Well, in RELENG_6 we can't (pf update breaks ABI = no go in a RELENG branch). In HEAD we have 4.1 since a couple of weeks. -- /"\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News signature.asc Description: This is a digitally signed message part.
Re: ACPI slowing CPU... or something else
On Wed, 25 Jul 2007 [EMAIL PROTECTED] wrote: >On Wed, 25 Jul 2007, V.I.Victor wrote: > >> On Wed, 25 Jul 2007, Garrett Cooper wrote: >> >>> V.I.Victor wrote: I've two 5.4 desktop boxes. Pretty much the same installation; both from the same CD, same apps, no monitor/keyboard, 1-user logged-on via ssh (command-line only w/no gui) and otherwise lightly loaded. Box_A: CPU: AMD-K7(tm) Processor (598.84-MHz 686-class CPU) avail memory = 121630720 (115 MB) ACPI disabled by blacklist. Box_B: CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.19-MHz 686-class CPU) avail memory = 252186624 (240 MB) cpu0: on acpi0 acpi_throttle0: on cpu0 ... >> >>> Yes. On my virtual machine with ACPI: >>> >>> dev.cpu.0.freq: 2653 >>> dev.cpu.0.freq_levels: 2653/-1 2321/-1 1989/-1 1658/-1 1326/-1 994/-1 663/-1 >>> 331/-1 >>> >>> [EMAIL PROTECTED] ~]# dmesg | grep 26 >>> FreeBSD 7.0-CURRENT #5: Tue Jul 17 08:22:26 UTC 2007 >>> CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2666.79-MHz K8-class >>> CPU) >>> Timecounter "TSC" frequency 2666794890 Hz quality 800 >>> >>> What are the following sysctls set to? >>> >>> kern.clockrate >>> hw.acpi.cpu.cx_lowest >>> dev.cpu.0.cx_lowest >>> dev.cpu.0.cx_usage >> >> Thanks for the reply! I don't seem to have the last 2 you've asked about. >> >> 'sysctl -a | egrep "clockrate|cpu"' reported the following: >> >> kern.clockrate: { hz = 100, tick = 1, profhz = 1024, stathz = 128 } >> kern.threads.virtual_cpu: 1 >> kern.ccpu: 1948 >> kern.smp.maxcpus: 1 >> kern.smp.cpus: 1 >> hw.ncpu: 1 >> hw.clockrate: 1794 >> hw.acpi.cpu.cx_supported: C1/0 >> hw.acpi.cpu.cx_lowest: C1 >> hw.acpi.cpu.cx_usage: 100.00% >> machdep.cpu_idle_hlt: 1 >> dev.cpu.0.%desc: ACPI CPU >> dev.cpu.0.%driver: cpu >> dev.cpu.0.%location: handle=\_PR_.CPU0 >> dev.cpu.0.%pnpinfo: _HID=none _UID=0 >> dev.cpu.0.%parent: acpi0 >> dev.cpu.0.freq: 1796 >> dev.cpu.0.freq_levels: 1796/-1 1571/-1 1347/-1 1122/-1 898/-1 673/-1 449/-1 >> 224/-1 >> dev.acpi_throttle.0.%parent: cpu0 >> dev.cpufreq.0.%driver: cpufreq >> dev.cpufreq.0.%parent: cpu0 > > > > Do you have SMP enabled? No. Both boxes have pretty minimal, basic installations. > You also might be able to tune the kernel clock rate to obtain better > performance; I forget what the values were for sysctl, but if you search > around the current@ archives a bit, there was a discussion involving VMware > and clock tuning approximately 2-3 months ago which details this issue, and > possible solutions. Perhaps tuning could help. I'll check the archives. However, it just seems to me that the 1.8 GHz box ought to perform the simple prog (orig post) at least as fast as the 6 MHz box. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Policy Based Routing problem help me
On Thu, Jul 26, 2007 at 01:26:17AM +0500, Narek Gharibyan wrote: > I have a firewall/router with FreeBSD 6.2 installed on it. 2 ISP connection > and 2 LAN connections. I need to do a policy-based routing. All I need that > packets coming from one ISP interface return to that interface (incoming > connections' source based routing) and the other hand do a IP based routing > from the LAN (Some packets will goes out via ISP 1 some others via ISP 2 > depending on IPs requested). I tried to do that with ipfw fwd but it didn't > work any way (e.g. with ip.forwarding enabled or no). Even I've disabled my > static routes, default gw. Just it do nothing. Sample configs are > > ipfw add fwd ISP_gw from ${my lan} to any via ${eif} > ipfw add fwd ISP_gw from ${my lan} to any out via ${eif} > ipfw add fwd ISP_gw from any to any xmit ${eif} > > Ipfw add fwd ISP_gw from any to any via ${eif} out > > I don't use nat, proxy. Just need to route. Have you compiled your kernel with the following options? | options IPFIREWALL_FORWARD | options IPFIREWALL_FORWARD_EXTENDED I found that this kind of forwarding silently failed until I enabled the EXTENDED option in addition to the typical option. `man ipfw' briefly mentions these two kernel options in the fwd section. -- Chris Cowart Lead Systems Administrator Network & Infrastructure Services, RSSP-IT UC Berkeley signature.asc Description: Digital signature
Re[2]: stop portmanager from building mysql-client-4.1.22
On July 25, 2007 at 12:14PM Noah wrote: > Even with the following IGNORE settings > mysql-4.1.22 is still attempting to be built. > > > # grep IGNORE /usr/local/etc/portmanager/pm-020.conf > #IGNORE|editors/openoffice*| > #IGNORE|java/jdk14| > IGNORE|www/apache13| > IGNORE|www/apache13*| > IGNORE|www/mod_perl| > IGNORE|net/openldap23-client| > IGNORE|net/openldap23-client*| > IGNORE|databases/mysql4*-client| > IGNORE|databases/mysql4*-server*| > IGNORE|databases/mysql3*-client| > IGNORE|databases/postgresql*| Probably should be: IGNORE|databases/mysql41-server| See if that works. The '*' after "server" might be screwing thing up. Ypu might try this also: IGNORE|databases/mysql4*| That should prevent any version '4' of mysql being build. -- Gerard ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Policy Based Routing problem help me
Hi all, I have a firewall/router with FreeBSD 6.2 installed on it. 2 ISP connection and 2 LAN connections. I need to do a policy-based routing. All I need that packets coming from one ISP interface return to that interface (incoming connections' source based routing) and the other hand do a IP based routing from the LAN (Some packets will goes out via ISP 1 some others via ISP 2 depending on IPs requested). I tried to do that with ipfw fwd but it didn't work any way (e.g. with ip.forwarding enabled or no). Even I've disabled my static routes, default gw. Just it do nothing. Sample configs are ipfw add fwd ISP_gw from ${my lan} to any via ${eif} ipfw add fwd ISP_gw from ${my lan} to any out via ${eif} ipfw add fwd ISP_gw from any to any xmit ${eif} Ipfw add fwd ISP_gw from any to any via ${eif} out I don't use nat, proxy. Just need to route. Please help Regards, Narek ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ACPI slowing CPU... or something else
On Wed, 25 Jul 2007, V.I.Victor wrote: On Wed, 25 Jul 2007, Garrett Cooper wrote: V.I.Victor wrote: I've two 5.4 desktop boxes. Pretty much the same installation; both from the same CD, same apps, no monitor/keyboard, 1-user logged-on via ssh (command-line only w/no gui) and otherwise lightly loaded. Box_A: CPU: AMD-K7(tm) Processor (598.84-MHz 686-class CPU) avail memory = 121630720 (115 MB) ACPI disabled by blacklist. Box_B: CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.19-MHz 686-class CPU) avail memory = 252186624 (240 MB) cpu0: on acpi0 acpi_throttle0: on cpu0 ... Yes. On my virtual machine with ACPI: dev.cpu.0.freq: 2653 dev.cpu.0.freq_levels: 2653/-1 2321/-1 1989/-1 1658/-1 1326/-1 994/-1 663/-1 331/-1 [EMAIL PROTECTED] ~]# dmesg | grep 26 FreeBSD 7.0-CURRENT #5: Tue Jul 17 08:22:26 UTC 2007 CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2666.79-MHz K8-class CPU) Timecounter "TSC" frequency 2666794890 Hz quality 800 What are the following sysctls set to? kern.clockrate hw.acpi.cpu.cx_lowest dev.cpu.0.cx_lowest dev.cpu.0.cx_usage Thanks for the reply! I don't seem to have the last 2 you've asked about. 'sysctl -a | egrep "clockrate|cpu"' reported the following: kern.clockrate: { hz = 100, tick = 1, profhz = 1024, stathz = 128 } kern.threads.virtual_cpu: 1 kern.ccpu: 1948 kern.smp.maxcpus: 1 kern.smp.cpus: 1 hw.ncpu: 1 hw.clockrate: 1794 hw.acpi.cpu.cx_supported: C1/0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% machdep.cpu_idle_hlt: 1 dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 1796 dev.cpu.0.freq_levels: 1796/-1 1571/-1 1347/-1 1122/-1 898/-1 673/-1 449/-1 224/-1 dev.acpi_throttle.0.%parent: cpu0 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%parent: cpu0 Do you have SMP enabled? If so, please realize that you won't benefit from it at all because the chip you have (Willamette) doesn't support SMP (Hyperthreading or multi-core processing). In fact this may hinder your processing a bit, because I believe that adding SMP adds more complicated algorithms and additional job constraints to the kernel scheduler; I could be incorrect though. You also might be able to tune the kernel clock rate to obtain better performance; I forget what the values were for sysctl, but if you search around the current@ archives a bit, there was a discussion involving VMware and clock tuning approximately 2-3 months ago which details this issue, and possible solutions. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck to fix HD problem
On Wed, 25 Jul 2007 07:50:38 +0200 Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > > Hello, > > >> so I decided to use fsck to check my HD. I ran it > >> in the foreground mode with the -y flag. It gives me the below > >> information. My question is - should I worry (it is more a home > >> machine than a real server) and if yes, how can I fix the problem? > > . . . > > > > To do anything more than merely report problems > > you should drop into single-user mode, unmount > > everything except root (hopefully. If it gets angry, > > reboot into single-user mode.) and run fsck (as is > > or with the -y flag if you feel daring.) on the filesystems > > in question. > > Is the single-user mode necessary. As it is a family machine I know > when I am the only one using it. > The fsck output was the normal stuff you see if you pull-out the plug (if you're lucky). Did you check if the background fsck was still running? In practice you rarely need to do do a manual check - most reboots can be handled by a background check, and most cases where it can't are spotted during the initial foreground check and done in the foreground. Just watch the console for unexpected softupdate inconsistencies. If you run fsck with -y, you might as well set "fsck_y_enable=yes" in rc.conf and have it done automatically if the initial preen fails. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ACPI slowing CPU... or something else
On Wed, 25 Jul 2007, Garrett Cooper wrote: > V.I.Victor wrote: >> I've two 5.4 desktop boxes. Pretty much the same installation; both >> from the same CD, same apps, no monitor/keyboard, 1-user logged-on via >> ssh (command-line only w/no gui) and otherwise lightly loaded. >> >> Box_A: CPU: AMD-K7(tm) Processor (598.84-MHz 686-class CPU) >> avail memory = 121630720 (115 MB) >> ACPI disabled by blacklist. >> >> Box_B: CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.19-MHz 686-class CPU) >> avail memory = 252186624 (240 MB) >> cpu0: on acpi0 >> acpi_throttle0: on cpu0 >>... > Yes. On my virtual machine with ACPI: > > dev.cpu.0.freq: 2653 > dev.cpu.0.freq_levels: 2653/-1 2321/-1 1989/-1 1658/-1 1326/-1 994/-1 663/-1 > 331/-1 > > [EMAIL PROTECTED] ~]# dmesg | grep 26 > FreeBSD 7.0-CURRENT #5: Tue Jul 17 08:22:26 UTC 2007 > CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2666.79-MHz K8-class > CPU) > Timecounter "TSC" frequency 2666794890 Hz quality 800 > > What are the following sysctls set to? > > kern.clockrate > hw.acpi.cpu.cx_lowest > dev.cpu.0.cx_lowest > dev.cpu.0.cx_usage Thanks for the reply! I don't seem to have the last 2 you've asked about. 'sysctl -a | egrep "clockrate|cpu"' reported the following: kern.clockrate: { hz = 100, tick = 1, profhz = 1024, stathz = 128 } kern.threads.virtual_cpu: 1 kern.ccpu: 1948 kern.smp.maxcpus: 1 kern.smp.cpus: 1 hw.ncpu: 1 hw.clockrate: 1794 hw.acpi.cpu.cx_supported: C1/0 hw.acpi.cpu.cx_lowest: C1 hw.acpi.cpu.cx_usage: 100.00% machdep.cpu_idle_hlt: 1 dev.cpu.0.%desc: ACPI CPU dev.cpu.0.%driver: cpu dev.cpu.0.%location: handle=\_PR_.CPU0 dev.cpu.0.%pnpinfo: _HID=none _UID=0 dev.cpu.0.%parent: acpi0 dev.cpu.0.freq: 1796 dev.cpu.0.freq_levels: 1796/-1 1571/-1 1347/-1 1122/-1 898/-1 673/-1 449/-1 224/-1 dev.acpi_throttle.0.%parent: cpu0 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%parent: cpu0 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ACPI slowing CPU... or something else
V.I.Victor wrote: I've two 5.4 desktop boxes. Pretty much the same installation; both from the same CD, same apps, no monitor/keyboard, 1-user logged-on via ssh (command-line only w/no gui) and otherwise lightly loaded. Box_A: CPU: AMD-K7(tm) Processor (598.84-MHz 686-class CPU) avail memory = 121630720 (115 MB) ACPI disabled by blacklist. Box_B: CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.19-MHz 686-class CPU) avail memory = 252186624 (240 MB) cpu0: on acpi0 acpi_throttle0: on cpu0 When running the following segment of a small gawk program: cnt=0; s=systime(); while(s==systime()) ; # next second s=systime(); while(s==systime()) cnt++; # count for 1-sec Box_A(600M) always reports 'cnt' between 31 to 32. Box_B(1800M) has been as low as 167000 and never higher than 254000. So -- Box_B is 3-times faster than Box_A but runs the segment (at best) about 20% more slowly! Yesterday was when I saw the Box_B(1800M) 167000-ish numbers. Today after seeing an increase to the 25-ish numbers, I started to read-up on ACPI. sysctl -a | grep cpu.*freq reports: dev.cpu.0.freq: 1796 dev.cpu.0.freq_levels: 1796/-1 1571/-1 1347/-1 1122/-1 898/-1 \ 673/-1 449/-1 224/-1 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%parent: cpu0 If I understand the 'sysctl' output, Box_B is running (now) at 1796-MHz. And for Box_B cnt==252433; for Box_A cnt==318942. Any opinions on what's going on and/or what I'm not understanding? Thanks! Yes. On my virtual machine with ACPI: dev.cpu.0.freq: 2653 dev.cpu.0.freq_levels: 2653/-1 2321/-1 1989/-1 1658/-1 1326/-1 994/-1 663/-1 331/-1 [EMAIL PROTECTED] ~]# dmesg | grep 26 FreeBSD 7.0-CURRENT #5: Tue Jul 17 08:22:26 UTC 2007 CPU: Intel(R) Core(TM)2 CPU 6700 @ 2.66GHz (2666.79-MHz K8-class CPU) Timecounter "TSC" frequency 2666794890 Hz quality 800 What are the following sysctls set to? kern.clockrate hw.acpi.cpu.cx_lowest dev.cpu.0.cx_lowest dev.cpu.0.cx_usage -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: pf and keep/modulate state on 6.2
At 08:55 PM 7/25/2007 +0200, Max Laier wrote: On Saturday 21 July 2007, Jordan Gordeev wrote: > I'm replying to an old and long-forgotten thread to report my recent > findings. > There's a bug in PF with modulate/synproxy state. Modulate/synproxy > state modulate sequence numbers, but don't modulate sequence numbers in > TCP SACK options. Some firewalls block TCP segments with sequence > numbers in the SACK option pointing outside the window, which causes > connection stalls. The bug was fixed in OpenBSD with revision 1.509 of > src/sys/net/pf.c about an year and a half ago. The bug is present in > FreeBSD-STABLE. A fix for the bug was imported in FreeBSD-CURRENT with > the big import of PF from OpenBSD 4.1. > I'm CC-ing Max to notify him of the bug present in -STABLE and to ask > him to deal with the issue by either porting the fix from OpenBSD, or > by documenting that modulate/synproxy state is broken. Good catch - sorry for the delay. Here is the diff (almost verbatim from OPENBSD_3_8). Please test and report back. I plan to commit this to RELENG_6 in a bit. -- /"\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 Max - 3.8? Cant we get a bit closer and more up-to-date as far as staying with pf and openbsd? I know pf changed - especially for OBSD 4.1 and it would be nice to be CLOSER than 3.8 ? -JD ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
ACPI slowing CPU... or something else
I've two 5.4 desktop boxes. Pretty much the same installation; both from the same CD, same apps, no monitor/keyboard, 1-user logged-on via ssh (command-line only w/no gui) and otherwise lightly loaded. Box_A: CPU: AMD-K7(tm) Processor (598.84-MHz 686-class CPU) avail memory = 121630720 (115 MB) ACPI disabled by blacklist. Box_B: CPU: Intel(R) Pentium(R) 4 CPU 1.80GHz (1794.19-MHz 686-class CPU) avail memory = 252186624 (240 MB) cpu0: on acpi0 acpi_throttle0: on cpu0 When running the following segment of a small gawk program: cnt=0; s=systime(); while(s==systime()) ; # next second s=systime(); while(s==systime()) cnt++; # count for 1-sec Box_A(600M) always reports 'cnt' between 31 to 32. Box_B(1800M) has been as low as 167000 and never higher than 254000. So -- Box_B is 3-times faster than Box_A but runs the segment (at best) about 20% more slowly! Yesterday was when I saw the Box_B(1800M) 167000-ish numbers. Today after seeing an increase to the 25-ish numbers, I started to read-up on ACPI. sysctl -a | grep cpu.*freq reports: dev.cpu.0.freq: 1796 dev.cpu.0.freq_levels: 1796/-1 1571/-1 1347/-1 1122/-1 898/-1 \ 673/-1 449/-1 224/-1 dev.cpufreq.0.%driver: cpufreq dev.cpufreq.0.%parent: cpu0 If I understand the 'sysctl' output, Box_B is running (now) at 1796-MHz. And for Box_B cnt==252433; for Box_A cnt==318942. Any opinions on what's going on and/or what I'm not understanding? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Having bad performance issues
In response to "Pat Maddox" <[EMAIL PROTECTED]>: > I'm having some bad perf issues on a 6.2 server running PostgreSQL > 8.2.4. I really don't know too much about this stuff...but it doesn't > seem to be related to memory or CPU as they're barely being touched. > Which leaves IO. Here's some vmstat output. My only guess is that the > numbers under the faults section are pretty high. But I don't really > know what that means. I'd appreciate any help. > > Here's the formatted vmstat output: http://pastie.caboo.se/82165 You might get better results asking this on the PostgreSQL performance mailing lists, unless you can determine that it's definitely a FreeBSD problem. If you feel strongly that the problem is FreeBSD-related, I'd suggest you provide hardware details, such the type of disks and the controller. If you feel strongly that the problem is with PostgreSQL, I would post to the performance list at postgresql.org and include your disk types, RAM sizes and your postgresql.conf Taking a guess, based on your symptoms, I would expect you don't have PostgreSQL tuned effectively. If there's a lot of IO, but memory isn't being used, then the memory is being wasted. Start with shared_buffers, and see if bumping that up helps (start with 1/3 of available RAM). -- 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]"
Re: pf and keep/modulate state on 6.2
On Saturday 21 July 2007, Jordan Gordeev wrote: > J.D. Bronson wrote: > > At 02:52 AM 02/26/2007, you wrote: > >> Wow, this fixed my FTP-over-DSL-to-6.2 problem too. With modulate > >> state, I was getting ~30K/sec. With just keep state, I'm now getting > >> more like what my connection is capable of. This is between two 6.2 > >> hosts on opposite sides of the Atlantic. > >> > >> Ted, I use pf because I like the format of the configuration file, I > >> like the logging and pftop, and like how it's harder to lock > >> yourself out of a remote machine by accident :) > >> > >> /JMS > > > > I use pf since its newer (I think?) and I came from openbsd..pf just > > works and the config file is nice and sweet. > > > > I had thought that modulate state would put a load on my proc, but > > sheesh, its a p4-3.06 - thats more than robust for a router. > > > > I wonder if we should file a bug on this? > > > > I am glad my post helped here. I still use modulate state for any > > INCOMING connections though (www/smtp/etc). > > I'm replying to an old and long-forgotten thread to report my recent > findings. > There's a bug in PF with modulate/synproxy state. Modulate/synproxy > state modulate sequence numbers, but don't modulate sequence numbers in > TCP SACK options. Some firewalls block TCP segments with sequence > numbers in the SACK option pointing outside the window, which causes > connection stalls. The bug was fixed in OpenBSD with revision 1.509 of > src/sys/net/pf.c about an year and a half ago. The bug is present in > FreeBSD-STABLE. A fix for the bug was imported in FreeBSD-CURRENT with > the big import of PF from OpenBSD 4.1. > I'm CC-ing Max to notify him of the bug present in -STABLE and to ask > him to deal with the issue by either porting the fix from OpenBSD, or > by documenting that modulate/synproxy state is broken. Good catch - sorry for the delay. Here is the diff (almost verbatim from OPENBSD_3_8). Please test and report back. I plan to commit this to RELENG_6 in a bit. -- /"\ Best regards, | [EMAIL PROTECTED] \ / Max Laier | ICQ #67774661 X http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] / \ ASCII Ribbon Campaign | Against HTML Mail and News Index: pf.c === RCS file: /usr/store/mlaier/fcvs/src/sys/contrib/pf/net/pf.c,v retrieving revision 1.34.2.4 diff -u -r1.34.2.4 pf.c --- pf.c 19 Sep 2006 15:45:20 - 1.34.2.4 +++ pf.c 25 Jul 2007 18:51:35 - @@ -1,5 +1,5 @@ /* $FreeBSD: src/sys/contrib/pf/net/pf.c,v 1.34.2.4 2006/09/19 15:45:20 csjp Exp $ */ -/* $OpenBSD: pf.c,v 1.483 2005/03/15 17:38:43 dhartmei Exp $ */ +/* $OpenBSD: pf.c,v 1.502.2.1 2006/05/02 22:55:52 brad Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -170,6 +170,8 @@ void pf_change_ap(struct pf_addr *, u_int16_t *, u_int16_t *, u_int16_t *, struct pf_addr *, u_int16_t, u_int8_t, sa_family_t); +int pf_modulate_sack(struct mbuf *, int, struct pf_pdesc *, + struct tcphdr *, struct pf_state_peer *); #ifdef INET6 void pf_change_a6(struct pf_addr *, u_int16_t *, struct pf_addr *, u_int8_t); @@ -1483,6 +1485,63 @@ } #endif /* INET6 */ + +/* + * Need to modulate the sequence numbers in the TCP SACK option + */ +int +pf_modulate_sack(struct mbuf *m, int off, struct pf_pdesc *pd, +struct tcphdr *th, struct pf_state_peer *dst) +{ + int hlen = (th->th_off << 2) - sizeof(*th), thoptlen = hlen; + u_int8_t opts[MAX_TCPOPTLEN], *opt = opts; + int copyback = 0, i, olen; + struct sackblk sack; + +#define TCPOLEN_SACKLEN (TCPOLEN_SACK + 2) + if (hlen < TCPOLEN_SACKLEN || + !pf_pull_hdr(m, off + sizeof(*th), opts, hlen, NULL, NULL, pd->af)) + return 0; + + while (hlen >= TCPOLEN_SACKLEN) { + olen = opt[1]; + switch (*opt) { + case TCPOPT_EOL: /* FALLTHROUGH */ + case TCPOPT_NOP: + opt++; + hlen--; + break; + case TCPOPT_SACK: + if (olen > hlen) +olen = hlen; + if (olen >= TCPOLEN_SACKLEN) { +for (i = 2; i + TCPOLEN_SACK <= olen; +i += TCPOLEN_SACK) { + memcpy(&sack, &opt[i], sizeof(sack)); + pf_change_a(&sack.start, &th->th_sum, + htonl(ntohl(sack.start) - + dst->seqdiff), 0); + pf_change_a(&sack.end, &th->th_sum, + htonl(ntohl(sack.end) - + dst->seqdiff), 0); + memcpy(&opt[i], &sack, sizeof(sack)); +} +copyback = 1; + } + /* FALLTHROUGH */ + default: + if (olen < 2) +olen = 2; + hlen -= olen; + opt += olen; + } + } + + if (copyback) + m_copyback(m, off + sizeof(*th), thoptlen, opts); + return (copyback); +} + void pf_change_icmp(struct pf_addr *ia, u_int16_t *ip, struct pf_addr *oa, struct pf_addr *na, u_int16_t np, u_int16_t *pc, u_int16_t *h2c, @@ -4577,6 +4636,25 @@ ackskew = dst->seqlo - ack; + + /* + * Need to demodulate the sequence numbers in any TCP SACK options + * (Selective ACK). We could optionally validate the SACK v
Re: Having bad performance issues
Pat I'd start by looking at tuning Postgresqllook at the queries that are taking the longest and optimise those. there's stuff alover the web about tuning PGsql On 7/25/07, Pat Maddox <[EMAIL PROTECTED]> wrote: I'm having some bad perf issues on a 6.2 server running PostgreSQL 8.2.4. I really don't know too much about this stuff...but it doesn't seem to be related to memory or CPU as they're barely being touched. Which leaves IO. Here's some vmstat output. My only guess is that the numbers under the faults section are pretty high. But I don't really know what that means. I'd appreciate any help. Here's the formatted vmstat output: http://pastie.caboo.se/82165 Pat ___ 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]"
Having bad performance issues
I'm having some bad perf issues on a 6.2 server running PostgreSQL 8.2.4. I really don't know too much about this stuff...but it doesn't seem to be related to memory or CPU as they're barely being touched. Which leaves IO. Here's some vmstat output. My only guess is that the numbers under the faults section are pretty high. But I don't really know what that means. I'd appreciate any help. Here's the formatted vmstat output: http://pastie.caboo.se/82165 Pat ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: logging system load
На Wednesday 25 July 2007 19:38:41 Zbigniew Szalbot написа: > Dear all, > > Is there a tool similar to top which would measure system load and write it > to a file that could later be analyzed? The time when my system is most > loaded happens between 3 and 5 a.m. so a trace of the system load would be > a wonderful thing to have. I need it to tailor some of the jobs > accordingly. Any advice? > > Thanks in advance! You can make a cronjob doing "uptime >> /path/to/logfile" every minute -- PGP KeyID: 0x3118168B Keyserver: pgp.mit.edu Key fingerprint BB50 2983 0714 36DC D02E 158A E03D 56DA 3118 168B signature.asc Description: This is a digitally signed message part.
Re: logging system load
In response to Zbigniew Szalbot <[EMAIL PROTECTED]>: > > Dear all, > > Is there a tool similar to top which would measure system load and write it > to a file that could later be analyzed? The time when my system is most > loaded happens between 3 and 5 a.m. so a trace of the system load would be > a wonderful thing to have. I need it to tailor some of the jobs > accordingly. Any advice? > > Thanks in advance! If top's output suits your needs, you could write a script that runs top in a loop and redirects to a file during the time in question. If you want longer-term monitoring, something like MRTG or Cacti might fit you better. -- 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]"
logging system load
Dear all, Is there a tool similar to top which would measure system load and write it to a file that could later be analyzed? The time when my system is most loaded happens between 3 and 5 a.m. so a trace of the system load would be a wonderful thing to have. I need it to tailor some of the jobs accordingly. Any advice? Thanks in advance! -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Portupgrade and mysql5-server
In the last episode (Jul 25), Ian Lord said: > Hi, > > Just a quick question. > > When there is a new version of mysql5-server port, I use "portupgrade > -a" to update it. > > Everytime I need to do a "/usr/local/etc/rc.d/mysql-server start" to > start it manually after the upgrade. > > Shouldn't it be done automatically ? imho this is a bug in the plist. It shouldn't shutdown mysql in the first place. I remove the "@stopdaemon mysql-server" from pkg-plist. Then after I portupgrade mysql, I just run "/usr/local/etc/rc.d/mysql-server restart" to bring up the new version with only a fraction of a second of downtime. -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
recover corrupt 6.2 installation
It looks like the / partition is corrupt. For some incomprehensible reason (possibly & probably the sata hdd connectors which appear to me to be very "flimsy" as I have had this connection problem on several motherboards) the sata drive gets disconnected or partially so. This appeared a couple of times after bootup when the computer seemed to slow down and could not access files. Rebooting necessitated fsck and after sever reboots and hdd cable jigglings, things were almost normal; cron gave innumerable mail messages and pkg_info could not find or read +COMMENTS or such files. Yet things worked more or less. Now, on bootup, the hdd appears to be read correctly but the messages come up: fsck: Bad file descriptor Unknown error; help! init: /rescue/sh on /etc/rc terminated abnormally, going to single user mode Enter full pathname of shell or RETURN for /rrescue/sh: I suspect that there are only 2 possibilities: reinstall everything (ohmigodidon'twant to go throught this again) or update the kernel or the 6.2 installation (maybe the installed programs don't need to be reinstalled ) :) What could be done? I have no important files on the disk as I keep those on other disks and/or computers. I have googled without success. Thanks for any suggestions. Phil ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: stop portmanager from building mysql-client-4.1.22
Hi there Gerard, Even with the following IGNORE settings mysql-4.1.22 is still attempting to be built. # grep IGNORE /usr/local/etc/portmanager/pm-020.conf #IGNORE|editors/openoffice*| #IGNORE|java/jdk14| IGNORE|www/apache13| IGNORE|www/apache13*| IGNORE|www/mod_perl| IGNORE|net/openldap23-client| IGNORE|net/openldap23-client*| IGNORE|databases/mysql4*-client| IGNORE|databases/mysql4*-server*| IGNORE|databases/mysql3*-client| IGNORE|databases/postgresql*| Gerard wrote: On July 20, 2007 at 01:09PM Noah wrote: Hi there, I am attempting to stop portmanager from installing mysql-client-4.1.22 so I added the following lines to my portmanager config file. $ grep IGNORE /usr/local/etc/portmanager/pm-020.conf #IGNORE|editors/openoffice*| #IGNORE|java/jdk14| IGNORE|www/apache13| IGNORE|www/apache13*| IGNORE|www/mod_perl| IGNORE|net/openldap23-client| IGNORE|net/openldap23-client*| IGNORE|databases/mysql4*| IGNORE|databases/mysql3*| IGNORE|databases/postgresql*| but still mysql-client-4.1.22 is being installed. $ pkg_info | grep portmanager portmanager-0.4.1_9 FreeBSD installed ports status and safe update utility Try: IGNORE|databases/mysql4*-client| This should prevent any 4x version from being installed: IGNORE|databases/mysql4*-server*| ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: looking for a good mailing list manager
On Tue, Jul 24, 2007 at 10:04:47AM +0200, Steven wrote: > Hi I am looking for a good Open source mailing list manager. > Try Mailman. It's in the ports /usr/ports/mail/mailman jerry > > > It should be web based, preferable be able to handle multiple domains but > not essential, nice interface for user and administrator and at least fairly > good statistics/reports. > > > > I have looked at phplist.com but not completely happy with it. > > > > Any help would be appreciated. > > > > Thanks > > Steven > > > > ___ > 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: Portupgrade and mysql5-server
-Original Message- From: Yuri Pankov [mailto:[EMAIL PROTECTED] Sent: 25 juillet 2007 11:29 To: Ian Lord Cc: freebsd-questions@freebsd.org Subject: Re: Portupgrade and mysql5-server On Wed, Jul 25, 2007 at 11:25:54AM -0400, Ian Lord wrote: > Hi, > > > > Just a quick question. > > > > When there is a new version of mysql5-server port, I use "portupgrade -a > > to update it. > > > > Everytime I need to do a "/usr/local/etc/rc.d/mysql-server start" to start > it manually after the upgrade. > > > > Shouldn't it be done automatically ? > > > > Thanks > It shouldn't. If you want it to start automatically, check /usr/local/etc/pkgtools.conf, search for AFTERINSTALL. Yuri Thanks ! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Portupgrade and mysql5-server
On Wed, Jul 25, 2007 at 11:25:54AM -0400, Ian Lord wrote: > Hi, > > > > Just a quick question. > > > > When there is a new version of mysql5-server port, I use "portupgrade -a > > to update it. > > > > Everytime I need to do a "/usr/local/etc/rc.d/mysql-server start" to start > it manually after the upgrade. > > > > Shouldn't it be done automatically ? > > > > Thanks > It shouldn't. If you want it to start automatically, check /usr/local/etc/pkgtools.conf, search for AFTERINSTALL. Yuri pgpKr9qNqtbeB.pgp Description: PGP signature
Re: FastCGI PHP does not start on server reboot (via rc script).
On 7/24/07, Maxim Khitrov <[EMAIL PROTECTED]> wrote: Hello, I have this problem that I can't figure out. One of my web servers is using a combination of lighttpd and FastCGI php to run a few sites. On lighttpd website there is an rc script to help FreeBSD users start FastCGI php processes automatically. I've pasted that script below. I should say that if I run it manually as root, everything works beautifully. As you can see, the script creates a unix socket at /var/run/fastcgi/php.sock, and lighttpd is then able to execute php scripts. The problem is that every time the server is rebooted, the script does not start back up. I have to start it manually. I can't find any log entries that would indicate a problem, so I'm not even sure where to start looking. Below is the script that I'm trying to run, file permissions for relevant files, and contents of my rc.conf. Would greatly appreciate it if someone could at least tell me where to start looking for a solution to this problem. Thanks, Maxim Khitrov /etc/rc.conf: fcgiphp_enable="YES" /var/run/fastcgi: -rw-r--r-- 1 www www -5B Jul 24 17:06 php.pid srwxr-xr-x 1 www www -0B Jul 24 17:06 php.sock= /usr/local/etc/rc.d: -r-xr-xr-x 1 root wheel - 1.6K May 23 17:28 fastcgi-php* /usr/local/etc/rc.d/fastcgi-php: #!/bin/sh # FreeBSD rc.d script for fastcgi+php # in rc.conf # fcgiphp_enable (bool):Set it to "YES" to enable fastcgi+php # Default is "NO". # other options see below # . /etc/rc.subr name="fcgiphp" rcvar=`set_rcvar` load_rc_config $name : ${fcgiphp_enable="NO"} : ${fcgiphp_bin_path="/usr/local/bin/php-cgi"} : ${fcgiphp_user="www"} : ${fcgiphp_group="www"} : ${fcgiphp_children="2"} : ${fcgiphp_port="8002"} : ${fcgiphp_socket="/var/run/fastcgi/php.sock"} : ${fcgiphp_env="SHELL PATH USER"} : ${fcgiphp_max_requests="100"} : ${fcgiphp_addr="localhost"} pidfile=/var/run/fastcgi/php.pid procname="${fcgiphp_bin_path}" command_args="/usr/local/bin/spawn-fcgi 2> /dev/null -f ${fcgiphp_bin_path} -u ${fcgiphp_user} -g ${fcgiphp_group} -C ${fcgiphp_children} -P ${pidfile}" start_precmd=start_precmd stop_postcmd=stop_postcmd start_precmd() { PHP_FCGI_MAX_REQUESTS="${fcgiphp_max_requests}" FCGI_WEB_SERVER_ADDRS=$fcgiphp_addr export PHP_FCGI_MAX_REQUESTS export FCGI_WEB_SERVER_ADDRS allowed_env="${fcgiphp_env} PHP_FCGI_MAX_REQUESTS FCGI_WEB_SERVER_ADDRS" # copy the allowed environment variables E="" for i in $allowed_env; do eval "x=\$$i" E="$E $i=$x" done command="env - $E" if [ -n "${fcgiphp_socket}" ]; then command_args="${command_args} -s ${fcgiphp_socket}" elif [ -n "${fcgiphp_port}" ]; then command_args="${command_args} -p ${fcgiphp_port}" else echo "socket or port must be specified!" exit fi } stop_postcmd() { rm -f ${pidfile} # eval "ipcs | awk '{ if (\$5 == \"${fcgiphp_user}\") print \"ipcrm -s \"\$2}' | /bin/sh" } run_rc_command "$1" Sorry for replying to myself, but I forgot to mention that this server is actually running inside a jail. I have no idea if that has anything to do with it. I also have other services being started from /usr/local/etc/rc.d (lighttpd, mysql, and a few others), but this fastcgi script is the only one that fails to work. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Portupgrade and mysql5-server
Hi, Just a quick question. When there is a new version of mysql5-server port, I use "portupgrade -a > to update it. Everytime I need to do a "/usr/local/etc/rc.d/mysql-server start" to start it manually after the upgrade. Shouldn't it be done automatically ? Thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
fsck to fix HD problem
On Wed, 25 Jul 2007 07:27:27 +0200 Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: > I got a Charlie report: > +WARNING: / was not properly dismounted > +WARNING: /var was not properly dismounted > +/var: mount pending error: blocks 8200 files 43 > +/usr: mount pending error: blocks 4552 files 6 'mount pending error' is what you get as background fsck gets busy with cleaning up filesystems improperly dismounted, ie dirty. If you check /var/log/messages for after that boot you'll likely see 'DEFER' messages then background fsck listing any corrections and finishing, probably ok. > so I decided to use fsck to check my HD. I ran it > in the foreground mode with the -y flag. It gives me the below > information. My question is - should I worry (it is more a home machine > than a real server) and if yes, how can I fix the problem? If you'd shown the lines just before what you pasted, they probably would have looked like, apart from your slice numbering: ** /dev/ad0s2d (NO WRITE) ** Last Mounted on /var ** Phase 1 - Check Blocks and Sizes ** Phase 2 - Check Pathnames ** Phase 3 - Check Connectivity Notice (NO WRITE). As others pointed out, fsck won't write to a mounted filesystem; running 'fsck -y /var' is then the same as 'fsck -n /var' You can run 'fsck -n' anytime you like, even as a non-root user, and see what would show up if you (again) lost power right now without a clean shutdown. Here's the rest of mine, run just now .. pretty similar to yours below, noting that the file mtimes are as of my last boot .. ** Phase 4 - Check Reference Counts UNREF FILE I=18 OWNER=mysql MODE=100600 SIZE=0 MTIME=Jul 3 23:28 2007 CLEAR? no UNREF FILE I=24 OWNER=mysql MODE=100600 SIZE=0 MTIME=Jul 3 23:28 2007 CLEAR? no UNREF FILE I=39 OWNER=mysql MODE=100600 SIZE=0 MTIME=Jul 3 23:28 2007 CLEAR? no UNREF FILE I=25246 OWNER=root MODE=140666 SIZE=0 MTIME=Jul 3 23:28 2007 CLEAR? no ** Phase 5 - Check Cyl groups SUMMARY BLK COUNT(S) WRONG IN SUPERBLK SALVAGE? no 2347 files, 56617 used, 70481 free (609 frags, 8734 blocks, 0.5% fragmentation) > ** Phase 4 - Check Reference Counts > UNREF FILE I=133267 OWNER=root MODE=140666 > SIZE=0 MTIME=Jul 24 07:54 2007 > CLEAR? no > > UNREF FILE I=235892 OWNER=mysql MODE=100600 > SIZE=0 MTIME=Jul 24 16:43 2007 > CLEAR? no > > UNREF FILE I=235894 OWNER=mysql MODE=100600 > SIZE=0 MTIME=Jul 24 16:43 2007 > CLEAR? no > > UNREF FILE I=235929 OWNER=mysql MODE=100600 > SIZE=0 MTIME=Jul 24 16:43 2007 > CLEAR? no > > UNREF FILE I=235932 OWNER=mysql MODE=100600 > SIZE=0 MTIME=Jul 24 16:43 2007 > CLEAR? no > > UNREF FILE I=235933 OWNER=mysql MODE=100600 > SIZE=0 MTIME=Jul 24 16:43 2007 > CLEAR? no > > ** Phase 5 - Check Cyl groups > FREE BLK COUNT(S) WRONG IN SUPERBLK > SALVAGE? no > > SUMMARY INFORMATION BAD > SALVAGE? no > > BLK(S) MISSING IN BIT MAPS > SALVAGE? no > > 53119 files, 473457 used, 617845 free (10557 frags, 75911 blocks, 1.0% > fragmentation) If in doubt, drop to single user, umount /var and fsck it .. but you're probably in good shape; the sort of inconsistencies shown above are to be entirely expected whenever running fsck (-n) on a mounted fs. Cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
where is bsdpan-CPAN in /usr/ports
Hi there, i received the following error when port upgrading. CreateInstalledDbVerifyContentsFile 0.4.1_9 error: "@comment ORIGIN:" not found in /var/db/pkg/bsdpan-CPAN-1.9102/+CONTENTS bsdpan-CPAN-1.9102 installation is corrupt! recomend running "pkg_delete -f bsdpan-CPAN-1.9102" then manually reinstalling this port -- I am a little lost - where might I find the bsdpan-CPAN port - so I can rebuid it? Cheers, Noah ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ssh X11 forwarding not working on FreeBSD 6.2
I made a mistake in my last post. SSH X11 forwarding sets the DISPLAY variable to something like: localhost:10.0 It should not be the address of the Windows box because that bypasses X11 forwarding. Terry Todd On Wed, Jul 25, 2007 at 09:01:35AM -0500, Terry Todd wrote: > > Michael, > > Thanks for the directions. Using your method does work. However > your method bypasses X11 forwarding. > > > 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY > > environment variable equal to the IP address and display of the XP > > machine. The command I used was: > > > > export DISPLAY=192.168.xxx.xxx:0 > > What I want to get working is X11 forwarding where you don't set > the DISPLAY variable explicitly. With X11 forwarding the DISPLAY > variable is automatically set to something like, > [IP address of Windows box]:0.0. > > Terry Todd > > > On Wed, Jul 25, 2007 at 12:16:24AM -0700, Michael S. Eubanks wrote: > > On Tue, 2007-07-24 at 13:29 -0500, Terry Todd wrote: > > > On Tue, Jul 24, 2007 at 10:54:22AM -0700, Michael S. Eubanks wrote: > > > ... > > > > Question. How many X servers do you have running? Are you logged into > > > > a window manager when you are attempting to connect? > > > > > > > > > > Only one instance of Xming is running on the Windows XP system. > > > I am using PuTTY to connect to the FreeBSD system and the other > > > systems. The other systems all work. FreeBSD X11 forwarding does > > > not work. It is an off the shelf standard install of 6.2. > > > > > > Manually setting the DISPLAY variable on the FreeBSD system to > > > [IP address of Widows XP system]:0.0 will allow it to work but > > > that's not what I want to do here. I want it to automatically > > > forward the X11 session through ssh like it does when connecting > > > to the FC6 system. > > > > > > Terry Todd > > > > > > > Okay. I was able to get it running. I received a slightly different > > error when I tried running an application the first time. My error is > > from Xming and displays as follows (using X forwarding): > > > > AUDIT: Tue Jul 24 23:47:34 2007: 608 C:\Program Files\Xming\xming.exe > > client 4 rejected from IP 192.168.10.101 > > > > This error simply means to add the ``-ac'' option to the Xming desktop > > shortcut. Let me walk you through what I did. Before I begin, I'm > > using 6-STABLE (now on 6.2) with Xorg 7.2. > > > > > > QUICK INSTRUCTIONS > > 1. Make sure to install Xming using both the Xming installer program > > and Xming fonts installer. > > > > 2. Modify the Desktop Xming shortcut to include the following > > arguments: ``:0 -clipboard -multiwindow -ac''. The ac option accepts > > client requests and quells the error that I had above. > > > > 3. Start Xming using the shortcut you just created > > > > 4. I'm going to guess that you may leave your sshd_config file the way > > it is - I did. > > > > 5. Install the Xming Portable PuTTY package. Make the changes shown to > > the PuTTY configuration as shown here before you connect to the FreeBSD > > machine (NOTE the X11 forwarding to localhost:0 - I think this is how > > you said your config was): > > > > http://www.straightrunning.com/XmingNotes/trouble.php > > > > 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY > > environment variable equal to the IP address and display of the XP > > machine. The command I used was: > > > > export DISPLAY=192.168.xxx.xxx:0 > > > > 7. Make sure your Windows Firewall is either turned off or allows > > incoming requests for Xming. > > > > 8. Execute a command like xeyes. It should show on the windows > > desktop. > > > > > > > > > > On Tue, Jul 24, 2007 at 10:54:22AM -0700, Michael S. Eubanks wrote: > > > > On Tue, 2007-07-24 at 12:23 -0500, Terry Todd wrote: > > > > > On Tue, Jul 24, 2007 at 09:48:05AM -0700, Michael S. Eubanks wrote: > > > > > ... > > > > > > Start by changing the following line from > > > > > > > > > > > > X11DisplayOffset 10 > > > > > > > > > > > > to > > > > > > > > > > > > X11DisplayOffset 1 > > > > > ... > > > > > > > > > > OK, I tried that. No difference. > > > > > > > > > > Here's what heppened on the FreeBSD 6.2 system: > > > > > $ > > > > > $ echo $DISPLAY > > > > > localhost:1.0 > > > > > $ > > > > > $ xhost > > > > > Xlib: connection to "localhost:1.0" refused by server > > > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > > > xhost: unable to open display "localhost:1.0" > > > > > $ > > > > > $ xhost + > > > > > Xlib: connection to "localhost:1.0" refused by server > > > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > > > xhost: unable to open display "localhost:1.0" > > > > > $ xterm > > > > > Xlib: connection to "localhost:1.0" refused by server > > > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > > > xterm Xt error: Can't open display: localhost:1.0 > > > > > $ > > > > > > > > Question. How many X servers do you have running
Re: Keyboard layout problem with xkeyboard-config-1.0
Answering myself: Jan Henrik Sylvester wrote: After updating to xkeyboard-config-1.0 (from 0.9_3) yesterday and booting for the first time after the update today, the KDE Keyboard Tool tray icon displays "err" with tooltip "Error changing keyboard layout to 'us'" (or 'de(deadgraveacute)' depending on what I try). Indeed, the keyboard layout does not change. After reading the x11@ archive, I found this: http://www.freebsd.org/cgi/query-pr.cgi?pr=114876 For me, it was not /usr/local/lib/X11/xkb/compiled that was missing, but /usr/local/share/X11/xkb/compiled. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
kernel: interrupt storm detected on "irq11:"; throttling interrupt source
Hi, I bought recently wireless PCMCIA card with atheros chip. When it`s not connected to my access point (ap down, or I just brought the card up and didn`t tell it to which SSID to connect) I often see kernel: interrupt storm detected on "irq11:"; throttling interrupt source and my system freezes for some seconds. Is there some way I can avoid this? -- PGP KeyID: 0x3118168B Keyserver: pgp.mit.edu Key fingerprint BB50 2983 0714 36DC D02E 158A E03D 56DA 3118 168B signature.asc Description: This is a digitally signed message part.
Re: apply a patch in Freebsd
"Caio Figueiredo Abecia" <[EMAIL PROTECTED]> writes: > I have the Freebsd 6.2 version. > I got a problem installing from my DVD ROM drive, and I found a patch > in http://www.freebsd.org/cgi/query-pr.cgi?pr=kern/111084 . > I wonder if I could try this patch to solve my problem. > What may I do to get a FreeBSD with this patch working? > I need get the source package ? What more? > > Could someone please give me some help? Yes, you will need the full sources. You will need to build the "world" for this. Once you have the sources (by any of the normal methods; see the Handbook if you don't already know how to get them), the procedure will be roughly cd /usr/src ; patch < /path/to/patch-file before starting the buildworld (which is also described in the Handbook should you be unacquainted with the process). ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ssh X11 forwarding not working on FreeBSD 6.2
Michael, Thanks for the directions. Using your method does work. However your method bypasses X11 forwarding. > 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY > environment variable equal to the IP address and display of the XP > machine. The command I used was: > > export DISPLAY=192.168.xxx.xxx:0 What I want to get working is X11 forwarding where you don't set the DISPLAY variable explicitly. With X11 forwarding the DISPLAY variable is automatically set to something like, [IP address of Windows box]:0.0. Terry Todd On Wed, Jul 25, 2007 at 12:16:24AM -0700, Michael S. Eubanks wrote: > On Tue, 2007-07-24 at 13:29 -0500, Terry Todd wrote: > > On Tue, Jul 24, 2007 at 10:54:22AM -0700, Michael S. Eubanks wrote: > > ... > > > Question. How many X servers do you have running? Are you logged into > > > a window manager when you are attempting to connect? > > > > > > > Only one instance of Xming is running on the Windows XP system. > > I am using PuTTY to connect to the FreeBSD system and the other > > systems. The other systems all work. FreeBSD X11 forwarding does > > not work. It is an off the shelf standard install of 6.2. > > > > Manually setting the DISPLAY variable on the FreeBSD system to > > [IP address of Widows XP system]:0.0 will allow it to work but > > that's not what I want to do here. I want it to automatically > > forward the X11 session through ssh like it does when connecting > > to the FC6 system. > > > > Terry Todd > > > > Okay. I was able to get it running. I received a slightly different > error when I tried running an application the first time. My error is > from Xming and displays as follows (using X forwarding): > > AUDIT: Tue Jul 24 23:47:34 2007: 608 C:\Program Files\Xming\xming.exe > client 4 rejected from IP 192.168.10.101 > > This error simply means to add the ``-ac'' option to the Xming desktop > shortcut. Let me walk you through what I did. Before I begin, I'm > using 6-STABLE (now on 6.2) with Xorg 7.2. > > > QUICK INSTRUCTIONS > 1. Make sure to install Xming using both the Xming installer program > and Xming fonts installer. > > 2. Modify the Desktop Xming shortcut to include the following > arguments: ``:0 -clipboard -multiwindow -ac''. The ac option accepts > client requests and quells the error that I had above. > > 3. Start Xming using the shortcut you just created > > 4. I'm going to guess that you may leave your sshd_config file the way > it is - I did. > > 5. Install the Xming Portable PuTTY package. Make the changes shown to > the PuTTY configuration as shown here before you connect to the FreeBSD > machine (NOTE the X11 forwarding to localhost:0 - I think this is how > you said your config was): > > http://www.straightrunning.com/XmingNotes/trouble.php > > 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY > environment variable equal to the IP address and display of the XP > machine. The command I used was: > > export DISPLAY=192.168.xxx.xxx:0 > > 7. Make sure your Windows Firewall is either turned off or allows > incoming requests for Xming. > > 8. Execute a command like xeyes. It should show on the windows > desktop. > > > > > > On Tue, Jul 24, 2007 at 10:54:22AM -0700, Michael S. Eubanks wrote: > > > On Tue, 2007-07-24 at 12:23 -0500, Terry Todd wrote: > > > > On Tue, Jul 24, 2007 at 09:48:05AM -0700, Michael S. Eubanks wrote: > > > > ... > > > > > Start by changing the following line from > > > > > > > > > > X11DisplayOffset 10 > > > > > > > > > > to > > > > > > > > > > X11DisplayOffset 1 > > > > ... > > > > > > > > OK, I tried that. No difference. > > > > > > > > Here's what heppened on the FreeBSD 6.2 system: > > > > $ > > > > $ echo $DISPLAY > > > > localhost:1.0 > > > > $ > > > > $ xhost > > > > Xlib: connection to "localhost:1.0" refused by server > > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > > xhost: unable to open display "localhost:1.0" > > > > $ > > > > $ xhost + > > > > Xlib: connection to "localhost:1.0" refused by server > > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > > xhost: unable to open display "localhost:1.0" > > > > $ xterm > > > > Xlib: connection to "localhost:1.0" refused by server > > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > > xterm Xt error: Can't open display: localhost:1.0 > > > > $ > > > > > > Question. How many X servers do you have running? Are you logged into > > > a window manager when you are attempting to connect? > > > > > > > > > > > > > > > > > > > > > > Here's what happens on the FC6 system: > > > > $ echo $DISPLAY > > > > localhost:13.0 > > > > $ > > > > $ xhost > > > > access control disabled, clients can connect from any host > > > > INET:terry-pc.egizone.com > > > > LOCAL: > > > > $ > > > > > > > > Terry Todd > > > > > > > > > > > > On Tue, Jul 24, 2007 at 09:48:05AM -0700, Michael S. Eubanks wrote: > > > > > On Tue, 2007-07-24 at 1
Re: [squid-users] log rotation
Hello, On Wed, 25 Jul 2007 18:50:27 +0545, Tek Bahadur Limbu <[EMAIL PROTECTED]> wrote: > Zbigniew Szalbot wrote: >> Hello, >> >> I have looked at wiki but cannot find information about log rotation >> (access & store logs). >> >> How can I do this? Or is it simply a matter of defining log rotation in >> newsyslog.conf (I am on a FreeBSD system)? > > Hi Zbigniew, > > Go to: > > (1.) cd /usr/ports/sysutils/logrotate > > (2.) make install clean > > (3.) cd /usr/local/etc > > (4.) vi /usr/local/etc/logrotate.conf > > Put the following in logrotate.conf Thank you very much indeed! But I managed in a (I think simpler way by adding /usr/local/squid/logs/access.logsquid:squid 644 7 * @T00 J /usr/local/squid/logs/squid.pid 30 to newsyslog.conf But I appreciate such a thorough description! Warm regards, Zbigniew Szalbot > > # Start of logrotate.conf ### > > # rotate log files weekly > #weekly > daily > > # keep 4 weeks worth of backlogs > rotate 7 > > # send errors to root > #errors root > > # create new (empty) log files after rotating old ones > create > > # uncomment this if you want your log files compressed > compress > > # RPM packages drop log rotation information into this directory > include /usr/local/etc/logrotate.d > > /var/log/lastlog { > monthly > rotate 12 > } > > End of logrotate.conf ## > > (5.) mkdir -p /usr/local/etc/logrotate.d/ > > (6.) cd /usr/local/etc/logrotate.d/ > > (7.) vi /usr/local/etc/logrotate.d/squid > > Put the following: > > ###Start of squid# > > /var/log/squid/access.log { > daily > rotate 90 > copytruncate > compress > notifempty > missingok > } > /var/log/squid/cache.log { > daily > rotate 7 > copytruncate > compress > notifempty > missingok > } > > > (8.) /usr/local/sbin/logrotate -d /usr/local/etc/logrotate.conf > > (9.) /usr/local/sbin/logrotate -f /usr/local/etc/logrotate.conf > > If some errors are reported, it's normal, just create or touch the > relevant files or directories. > > (10.) vi /etc/crontab > > Put the following: > > 0 1 * * * root/usr/local/sbin/logrotate > /usr/local/etc/logrotate.conf > /dev/null 2>&1 > > > (11.) If all works well, you are good to go!!! > > > Of course, the other simple way of doing this is to run: > > squid -k rotate > > from /etc/crontab > > 0 1 * * * root squid -k rotate > > Thanking you... > > >> >> Thank you! >> > > > -- > > With best regards and good wishes, > > Yours sincerely, > > Tek Bahadur Limbu > > (TAG/TDG Group) > Jwl Systems Department > > Worldlink Communications Pvt. Ltd. > > Jawalakhel, Nepal > > http://www.wlink.com.np -- Zbigniew Szalbot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Keyboard layout problem with xkeyboard-config-1.0
After updating to xkeyboard-config-1.0 (from 0.9_3) yesterday and booting for the first time after the update today, the KDE Keyboard Tool tray icon displays "err" with tooltip "Error changing keyboard layout to 'us'" (or 'de(deadgraveacute)' depending on what I try). Indeed, the keyboard layout does not change. I now have a weird keyboard layout with 'y', 'z', and most symbols being in place of the German keyboard layout, but the umlauts give some Greek letters and 'sz' and all 'Alt Gr' combinations are dead. (I have 'keymap="german.iso"' in rc.conf.) I did a 'portupgrade xkeyboard-config'. Do I have to do some forced recursive recompile? I hesitate a bit, since it would involve synaptics, xf86-input-*, xf86-video-*, xorg, xorg-drivers, and xorg-server. Or is there anything else that might be wrong and easier to correct? (All my ports are up to date with current portsnap snapshot.) Thanks, Jan Henrik ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Root access loggin
> Exactly, I don't know what needs to be done, and they don't > neither. That's why they need to browse around trying to > figure out why their installer doesn't work. > > Sudo wouldn't be any help here cause I would need to pre > approve commands and I don't know which one will be needed. > > Basically, I don't there there is a better solution then > giving away the root password, but at least, I would like a > log of what has been done. > > Naturally, I understand any log could be overwritten/modified > since the person is root, but since I don't think Zend would > make fun in hacking my server, the point in having the log is > to undo anything I wouldn't approve .. > You may want to have a look at shells/tcsh-bofh - it installs a patched tcsh shell in /usr/local/bin which logs all commands to the USER syslog facility . Set both their user and root's shell to that tcsh (or copy over the system tcsh) and you'll have a log of all their commands, provided they don't run another shell, something you'll just have to instruct them on. Tell them you'll consider it trespassing if they use another shell. As far as protecting logs, securelevels will offer some degree of protection. If you set syslog to log user.* to a seperate file, and then set the sappnd and sunlnk flags, then the file can only be appended to. If you then raise your securelevel to 1, these flags can not be removed. If you're being that paranoid, you'll want to set flags on syslog.conf as well, so the facility can't be changed. I haven't actually tried any of the above, so your mileage will definitely vary. -fr. -- Feargal Reilly, Chief Techie, FBI. PGP Key: 0xBD252C01 (expires: 2006-11-30) Web: http://www.fbi.ie/ | Tel: +353.14988588 | Fax: +353.14988489 Communications House, 11 Sallymount Avenue, Ranelagh, Dublin 6. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Script Automated voice dialout to normal human voice phones?
Hi, i intend to implement a home security system based on zoneminder. Upon certain conditions i'd like to trigger various alarms depending on the various criteria met/sensors values, etc... like trigger an external siren or call my mobile phone. Now what i'd like to do is to write a script that is going to be called from inside zoneminder, that will call my mobile and will play a pre-recorded wav or mp3 message like: "your house is being at risk, call the police now". I searched a lot, and could not find anything close. Results from google are saturated with "answering machine" and vgetty, which in my case i dont think they fit. Anyone with experience with dialing out human phones? Is that possible? Pls, include my address to your replies, since i am not subscribed on -questions. Thanx for any clues. -- Achilleas Mantzios ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: fsck to fix HD problem
On 25/07/07, Zbigniew Szalbot <[EMAIL PROTECTED]> wrote: One little question - when I drop into single-user mode, do I need to mount /usr and /var? Is mount -a OK? Generally, no. Or mount read-only, if you must. When doing ugly repairs, fsck would prefer to not have the filesystem changing under it. -- -- ___ 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 show the options screen again
Hi, Thanks to both of you, of coarse, see the FAQ ;-) Cheers, Harry Jensen ___ 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 show the options screen again
Harry Jensen wrote: > Hi, > > I just tried to install the pilot-link with > "portmanager palm/pilot-link", > and with first run I got an options screen, one of the options was > libusb, which I selected "on". > > libusb failed, and now I tried a second run, the intention then was > to select libusb "off", but I did not get the options screen this time. > > I already tried "make clean", but without success. > > How can I force the options screen to show up again, with portmanager or > make? > > Thank you in advance.. > > Harry Jensen > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > > Try this: cd /usr/ports/palm/pilot-link make config If you wish to retry the portmanager install, you may wish to make it forget the configuration, so you will get the screen again from portmanager. In this case: make rmconfig then retry with portmanager ___ 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 show the options screen again
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Harry Jensen wrote: > How can I force the options screen to show up again, with portmanager or > make? This is a FAQ: cd /usr/ports/palm/pilot-link make config Cheers, Matthew - -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate Kent, CT11 9PW -BEGIN PGP SIGNATURE- Version: GnuPG v2.0.4 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGpv9Y8Mjk52CukIwRCBYgAJoDevnM4myWFnrePV+mYtIwWfshvgCcCqIz Zwajr3pnERk2M1wQk+BBmiM= =5Ni8 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
How to show the options screen again
Hi, I just tried to install the pilot-link with "portmanager palm/pilot-link", and with first run I got an options screen, one of the options was libusb, which I selected "on". libusb failed, and now I tried a second run, the intention then was to select libusb "off", but I did not get the options screen this time. I already tried "make clean", but without success. How can I force the options screen to show up again, with portmanager or make? Thank you in advance.. Harry Jensen ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Agere ET1310B (ST Lab gigabit LAN card)
Hello, I just bought this ethernet card for my ProLiant ML110G4 machine but FreeBSD doesn't recognize it. After some Googling I guess it is not supported at all. Am I right? pciconf -v -l says this: [EMAIL PROTECTED]:0:0: class=0x02 card=0xed0011c1 chip=0xed0011c1 rev=0x02 hdr=0x00 vendor = 'Lucent/Agere Systems (Was: AT&T MicroElectronics)' class= network subclass = ethernet From the ST Lab web page: Chipset:Agere ET1310B -- Bus Interface: PCI Express x1 -- Features: * Fully compatible with PCI Express 1.0a specifications * Compliant to IEEE802.3, IEEE802.3u & IEEE802.3ab * Supports for IEEE802.3x Full Duplex flow control * Supports IEEE 802.1Q Virtual LAN (VLAN) Tag * Auto-Negotiation supports for Auto-Detect 10/100/1000Mbps data rate and Full/Half-Duplex operation mode * Supports ACPI and PCI power management * PXE 2.0 support (Optional) * Supports Wake on Lan function * Data transfer rate at 1000 Mbps for IEEE 802.3ab * Throughput of one-lane PCI Express at 2.5 Gbps Any plans to support this card in the future? What is the procedure of writing a new driver for a new card/chipset? Thanks, Nejc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: ssh X11 forwarding not working on FreeBSD 6.2
On Tue, 2007-07-24 at 13:29 -0500, Terry Todd wrote: > On Tue, Jul 24, 2007 at 10:54:22AM -0700, Michael S. Eubanks wrote: > ... > > Question. How many X servers do you have running? Are you logged into > > a window manager when you are attempting to connect? > > > > Only one instance of Xming is running on the Windows XP system. > I am using PuTTY to connect to the FreeBSD system and the other > systems. The other systems all work. FreeBSD X11 forwarding does > not work. It is an off the shelf standard install of 6.2. > > Manually setting the DISPLAY variable on the FreeBSD system to > [IP address of Widows XP system]:0.0 will allow it to work but > that's not what I want to do here. I want it to automatically > forward the X11 session through ssh like it does when connecting > to the FC6 system. > > Terry Todd > Okay. I was able to get it running. I received a slightly different error when I tried running an application the first time. My error is from Xming and displays as follows (using X forwarding): AUDIT: Tue Jul 24 23:47:34 2007: 608 C:\Program Files\Xming\xming.exe client 4 rejected from IP 192.168.10.101 This error simply means to add the ``-ac'' option to the Xming desktop shortcut. Let me walk you through what I did. Before I begin, I'm using 6-STABLE (now on 6.2) with Xorg 7.2. QUICK INSTRUCTIONS 1. Make sure to install Xming using both the Xming installer program and Xming fonts installer. 2. Modify the Desktop Xming shortcut to include the following arguments: ``:0 -clipboard -multiwindow -ac''. The ac option accepts client requests and quells the error that I had above. 3. Start Xming using the shortcut you just created 4. I'm going to guess that you may leave your sshd_config file the way it is - I did. 5. Install the Xming Portable PuTTY package. Make the changes shown to the PuTTY configuration as shown here before you connect to the FreeBSD machine (NOTE the X11 forwarding to localhost:0 - I think this is how you said your config was): http://www.straightrunning.com/XmingNotes/trouble.php 6. Log into the FreeBSD machine using PuTTY. Set the DISPLAY environment variable equal to the IP address and display of the XP machine. The command I used was: export DISPLAY=192.168.xxx.xxx:0 7. Make sure your Windows Firewall is either turned off or allows incoming requests for Xming. 8. Execute a command like xeyes. It should show on the windows desktop. > > On Tue, Jul 24, 2007 at 10:54:22AM -0700, Michael S. Eubanks wrote: > > On Tue, 2007-07-24 at 12:23 -0500, Terry Todd wrote: > > > On Tue, Jul 24, 2007 at 09:48:05AM -0700, Michael S. Eubanks wrote: > > > ... > > > > Start by changing the following line from > > > > > > > > X11DisplayOffset 10 > > > > > > > > to > > > > > > > > X11DisplayOffset 1 > > > ... > > > > > > OK, I tried that. No difference. > > > > > > Here's what heppened on the FreeBSD 6.2 system: > > > $ > > > $ echo $DISPLAY > > > localhost:1.0 > > > $ > > > $ xhost > > > Xlib: connection to "localhost:1.0" refused by server > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > xhost: unable to open display "localhost:1.0" > > > $ > > > $ xhost + > > > Xlib: connection to "localhost:1.0" refused by server > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > xhost: unable to open display "localhost:1.0" > > > $ xterm > > > Xlib: connection to "localhost:1.0" refused by server > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > xterm Xt error: Can't open display: localhost:1.0 > > > $ > > > > Question. How many X servers do you have running? Are you logged into > > a window manager when you are attempting to connect? > > > > > > > > > > > > > > > > Here's what happens on the FC6 system: > > > $ echo $DISPLAY > > > localhost:13.0 > > > $ > > > $ xhost > > > access control disabled, clients can connect from any host > > > INET:terry-pc.egizone.com > > > LOCAL: > > > $ > > > > > > Terry Todd > > > > > > > > > On Tue, Jul 24, 2007 at 09:48:05AM -0700, Michael S. Eubanks wrote: > > > > On Tue, 2007-07-24 at 10:59 -0500, Terry Todd wrote: > > > > > I have installed Xming successfully on a Windows XP system. > > > > > It works OK to a FC6 system and an older UNIXware system. > > > > > > > > > > However when trying to connect to a FreeBSD 6.2 system with PuTTY > > > > > ssh it doesn't work. PuTTY has Enable X11 forwarding checked. > > > > > > > > > > Here's what I get: > > > > > > > > > > $ > > > > > $ xhost > > > > > Xlib: connection to "localhost:10.0" refused by server > > > > > Xlib: PuTTY X11 proxy: wrong authentication protocol attempted > > > > > xhost: unable to open display "localhost:10.0" > > > > > $ > > > > > > > > > > What can be wrong? > > > > > > > > > > I have ssh configured as follows: > > > > > # grep X11 /etc/ssh/* > > > > > /etc/ssh/ssh_config:ForwardX11 yes > > > > > /etc/ssh/ssh_config:ForwardX11Trusted yes > > > >