Combining netcat with fifos results in stuck queues/sbwait

2012-09-03 Thread Wayne Sierke
I was hoping to establish a simple processing server using nc(1). After
finding numerous examples of combining netcat with fifos (named pipes) I
am unable to establish a reliable setup. E.g. following the example of
the canonical netcat server:

server:

#mkfifo backpipe
#nc -l 4242 < backpipe | tr -u "[:lower:]" "[:upper:]" >
backpipe

client:

#mkfifo frontpipe
#nc localhost 4242 < frontpipe > testfile.out &
#cat testfile.in > frontpipe

For any non-trivially small testfile I inevitably end up with the
processes at both ends stuck in sbwait.

I have managed to avoid the stuck condition by setting the TCP buffer
sizes at both ends:

nc -I 2048 -O 1024

with a resulting throughput of ~40kB/s (and a supplementary problem of
truncation).

There are other oddities, such as not using the fifo on the client end:

#nc -I 2048 -O 1024 localhost 4242 < testfile.in > testfile.out
&

also results in "stuck" processes.

So far I've tried on 8.2/8.3 i386 and amd64. The full implementation is
planned to use fifos for input and output along with fd redirection but
attempts using that have fared no better.

Can anyone provide a secret-sauce recipe for netcat/fifo success?


Thanks,

Wayne


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


re: Patch failed to apply cleanly [chromium-20.0.1132.57] FreeBSD 9.0-RELEASE

2012-07-15 Thread Wayne Sierke
On Thu, 2012-07-12 at 22:33 +0300, Alexander Kapshuk wrote:
> When attempting to upgrade chromium-19.0.1084.56_1 to 
> chromium-20.0.1132.57 on FreeBSD9.0 (FreeBSD box2 9.0-RELEASE FreeBSD 
> 9.0-RELEASE #0: Tue Jan  3 07:15:25 UTC 2012 
> r...@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386), one of 
> the patches failed to apply:
> --
> ===>  Applying extra patch /usr/ports/www/chromium/files/extra-patch-gcc
> ===>  Applying FreeBSD patches for chromium-20.0.1132.57
> patch:  malformed patch at line 15:  #if PLATFORM(CHROMIUM)
> => Patch patch-third_party__WebKit__Source__WebCore__config.h failed to 
> apply cleanly.
> --
> There seems to be a patch available that has been reported as having 
> worked on a 9.0-RELEASE/amd64:
> http://www.mail-archive.com/freebsd-chromium@freebsd.org/msg00340.html
> -
> www/chromium/files/patch-third_party__WebKit__Source__WebCore__config.h.orig 
> 
>  2012-07-12 09:19:26.0 +
> +++ www/chromium/files/patch-third_party__WebKit__Source__WebCore__config.h
> 2012-07-12 10:49:20.0 +
> @@ -1,6 +1,6 @@
>  third_party/WebKit/Source/WebCore/config.h.orig2012-05-30
> 10:05:35.0 +0300
> -+++ third_party/WebKit/Source/WebCore/config.h 2012-06-05 
> 22:32:48.0
> +0300
> -@@ -127,6 +127,11 @@
> +--- third_party/WebKit/Source/WebCore/config.h.orig2012-07-10
> 07:52:48.0 +
>  third_party/WebKit/Source/WebCore/config.h 2012-07-12 
> 10:48:15.0
> +
> +@@ -127,6 +127,14 @@
>#define WTF_USE_NEW_THEME 1
>#endif // PLATFORM(MAC)
> -
> Is there a patch available to an x86 based system?

The same patch will work for x86.

In lieu of the patch simply edit
www/chromium/files/patch-third_party__WebKit__Source__WebCore__config.h
and change the line:

@@ -127,6 +127,11 @@

to:

@@ -127,6 +127,14 @@


Wayne


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


Re: LibreOffice Writer crashes when accessing the fonts pull down list

2011-10-04 Thread Wayne Sierke
On Tue, 2011-10-04 at 09:41 +0200, Leslie Jensen wrote:
> Hi List
> 
> I've got a problem with the above.
> 
> I've not made any changes other than updated the ports when so is needed.
> 
> If I do the setting/change of the font via the menu, I can get what I 
> want. But if I pull down the fonts list and start scrolling, Writer will 
> crash.

I just replaced openoffice with libreoffice and I see similar behaviour.
Simply opening the drop-down font list instigates the segfault or crash
- I've seen instances both where a segmentation fault is reported and
core dumped, and where the application exits silently. 

Changing the font via the menus or typing in the font name text box
doesn't instigate the crash.

It also crashes when the menu "Tools->Language->For all Text->More..."
is accessed, but not for either of the "For Selection->More..." or "For
Paragraph->More..." menus.

# make showconfig
===> The following configuration options are available for
libreoffice-3.4.3_1:
 WEBDAV=off "Support webdav protocol"
 KDE4=off "With Qt4/KDE4 vclplug support"
 GTK=on "With GTK vclplug support"
 GNOME=on "Better integration in gnome environnement"
 JAVA=off "Add Java support (XML Filters, macros)"
 PYUNO=off "Allow to script libreoffice in python"
 SYSTRAY=off "Enable systemtry quickstarter"
 MMEDIA=off "Enable multimedia backend for impress"
 SDK=off "Build with SDK"
 DEBUG=off "Build with debug symbols and verbose output"
===> Use 'make config' to modify these settings
# uname -rms
FreeBSD 8.2-RELEASE i386


> PS: I could only find a list for freebsd-openoffice when I wanted to 
> post this. So I choose the questions list instead.

The freebsd-openoffice@ list was closed recently, and freebsd-office@ is
now the common list for "office" applications.


Wayne


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


updating 8.1 release

2011-10-03 Thread wayne mitchell
hey
just tried to update a system using 'csup'
current system is: 8.1 RELEASE on a amd machine (amd64 GENERIC kernel)
tried downloading the CURRENT branch ( tag=. )
when running "make buildworld"
get an exit with error at /usr/lib/libmagic
system gives various warnings about unknown file types and incorrect
variable bounds
then exits with error 1 - 'cannot find any magic files'

tried this again with ( tag=RELENG_8 ) - exact same problem
tried this again with  ( tag=RELENG_8.2 ) - exact same problem

also tried "make buildworld" in multi-user -and- single-user

where should i expect to find any magic files on the system tree ?
thanks
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Regex Wizards

2011-09-26 Thread Wayne Sierke
On Mon, 2011-09-26 at 22:02 -0400, grarpamp wrote:
> Under the ERE implementation in RELENG_8, I'm having
> trouble figuring out how to group and backreference this.
> 
> Given a line, where:
>  If AAA is present, CCC will be too, and B may appear in between.
>  If AAA is not present, neither CCC or B will be present.
>   is always present.
>  Junk may be present.
>  Match good lines and ouput in chunks.
> 
> echo junkBCCCjunk | \
> 
> This works as expected:
> sed -E -n 's,^.*(AAAB?CCC)().*$,1 \1 2 \2,p'
> 1 AAABCCC 2 
> 
> But making the leading bits optional per spec does not work:
> sed -E -n 's,^.*(AAAB?CCC)?().*$,1 \1 2 \2,p'
> 1  2 
> 
> Nor does adding the usual grouping parens:
> sed -E -n 's,^.*((AAAB?CCC)?)().*$,1 \1 2 \2,p'
> 1 2
> 
> How do I group off the leading bits?
> Or is this a limitation of ERE's?
> Or a bug?
> Thanks.

I believe that the problem is the greediness of the leading '.*'. With
the first grouping optional, its contents are consumed into the '.*'.

This seems to work:

sed -E -n -e '/AAAB?CCC/!s,.*().*,1 \1,p' -e 's,.*(AAAB?CCC)().*,1 \1 2 
\2,p'

%echo junkAABCCCjunk | sed ...
1 

%echo junkBCCCjunk | sed ...
1 AAABCCC 2 

%echo junkCCCjunk | sed ...
1 AAACCC 2 

%echo junkBCCjunk | sed ...
1 


Wayne


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


Re: Arduino UNO - upload not working

2011-07-30 Thread Wayne Sierke
On Sun, 2011-07-31 at 00:20 +0100, Michael wrote:
> On 30/07/2011 07:56, Wayne Sierke wrote:
> >
> >   0) The automatic reset for programming generally didn't work for me.
> > However after judicious experimentation I was able to time a manual
> > reset of the board being programmed by waiting for the "Binary sketch
> > size:" message to appear in the Arduino IDE and timing a reset from that
> > (about 2-3 seconds in my case).
> >
> 
> It works, I mean the workaround, it works! Thank you so much. In my case 
> it's a bit less than one second. I still need to test it with more 
> sketches but for now it looks good and gives me hope :)

That's good news. :)

> Could you also tell me what versions of arduino (IDE), uarduno and 
> avrdude you are using? Is it vanilla ports or did you have to apply any 
> extra patches?

All vanilla.

arduino-0022_1
uarduno-1.0
avrdude-5.10

openjdk6-b22_6
rxtx-openjdk6-2.1.7r2_7


Wayne


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


Re: Arduino UNO - upload not working

2011-07-30 Thread Wayne Sierke
On Sat, 2011-07-30 at 00:01 +0100, Michael wrote:
> Hello,
> 
> Can anybody confirm that Arduino UNO is working fine with FreeBSD?
> 
> I'm having problems with uploading my sketches. Arduino IDE says:
> 
> Binary sketch size: 3620 bytes (of a 32256 byte maximum)
> avrdude: stk500_getsync(): not in sync: resp=0x00
> 
> And it doesn't upload anything. Uploading on Windows works fine. Also 
> once the sketch is uploaded on Windows then I can receive data on 
> FreeBSD via Serial Monitor. It's just Upload that doesn't work.
> 
> It's recognized by my system as:
> ugen0.2:  at usbus0
> umodem2:  1.10/0.01, addr 2 > on usbus0
> umodem2: data interface 1, has CM over data, has break
> 
> Also sysctl says:
> dev.umodem.2.%desc: Arduino (www.arduino.cc) Arduino Uno, class 2/0, rev 
> 1.10/0.01, addr 3
> 
> I'm running FreeBSD 8.2-RELEASE-p2 with Arduino 0022 (with a patch to 
> resolve the readlink problems). I'm using uarduno kernel module (tried 
> both versions 1.00 and 1.02a) and avrdude (tried both vanilla ports and 
> with a www.mrp3.com/uarduno.html patch).
> 
> Run out of ideas and switching back to Windows kills my productivity 
> (and fun!). If it works for you then at least please let me know that 
> it's doable.

Hi Michael,

I just started using some Arduino devices with FreeBSD in the last
couple of weeks.

I encountered two issues using them in FreeBSD (7.4-RELEASE i386):

 0) The automatic reset for programming generally didn't work for me.
However after judicious experimentation I was able to time a manual
reset of the board being programmed by waiting for the "Binary sketch
size:" message to appear in the Arduino IDE and timing a reset from that
(about 2-3 seconds in my case).

 1) Initially I found with the first two boards I worked with that I was
unable to program them from FreeBSD until I had successfully programmed
them from a system running Windows. It seems too bizarre to be true and
it seems more likely that I hadn't latched on to some key element of
successfully programming from the FreeBSD environment. Nevertheless in
both cases having programmed them from the Windows machine I
subsequently had immediate success from FreeBSD.

Two of the boards I'm using are clones made by Freetronics. I'm also
using some "Pro mini" boards made by SparkFun programmed via an FTDI
breakout cable. I am now programming all of the boards successfully from
FreeBSD.


HTH,

Wayne


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


boot/loader splash image

2011-07-17 Thread wayne mitchell
hey
got question/problem for /boot/loader

system: freeBSD 8.1-RELEASE GENERIC

trying to get a bitmap onscreen for bootup


have read man page for all boot associated stuff (loader.conf...)
and followed instructions
using following values in /boot/loader.conf :

bitmap_load="YES"# have tried commenting this out also
vesa_load="YES"
splash_bmp_load="YES"
bitmap_name="/boot/splash.bmp"

the splash.bmp size is about 900x700
does not work
am using /boot/loader.rc as preset (includes loader.4th and beastie.4th)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


loader.conf options

2011-07-17 Thread wayne mitchell
hey
am trying to configure my new system
(FreeBSD 8.1-RELEASE GENERIC amd64 - on an intel core 2 duo)
and find all possible settings to tweak
i can tell from documentation that there are many options possible with
/boot/loader.conf
as well as others
though i cannot find any definitive list
i am sure that this - in some cases - depends on how the rest of system is
configured
hardware bios, software bios, kernel ... and so on
i can never find the right value to set at the time that i want to set it
always seems to be in passing while looking up something else
am currently looking for values to tweak the kernel with,
though would rather rely on module loading and loader.config settings and
device.hints
have got:
/usr/src/sys/conf/NOTES
/usr/src/sys/amd64/conf/NOTES
man loader.conf
man device.hints
handbook
FAQ

am looking for:
memory/bus (tweaks for I/O speeds / caching ...)
attached hardware
multimedia/sound/video/midi
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


boot/loader splash image

2011-07-17 Thread wayne mitchell
hey

got question/problem for /boot/loader

system: freeBSD 8.1-RELEASE GENERIC

trying to get a bitmap on screen for bootup
-

have read man page for all boot associated stuff (loader.conf...)
and followed instructions
using following values in /boot/loader.conf :

bitmap_load="YES"# have tried commenting this out also
vesa_load="YES"
splash_bmp_load="YES"
bitmap_name="/boot/splash.bmp"

the splash.bmp size is about 400x300 (also 900x700 as alternative size)
this size fits with available vid-modes within the vesa module
does not work
am using /boot/loader.rc as pre-set (includes loader.4th and beastie.4th)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


amd64 lib path locations

2011-07-11 Thread wayne mitchell
hey,
got a problem with an amd64 system and lib-object locations - see below:


problem:installing of 'rosegarden'

installing is fine (from package - not port)
starting rosegarden from gui menu - nothing happens
executing rosegarden from CLI returns error:
[ /libexec/ld-elf.so.1: shared object "libQt3Support.so.4" not found,
required by "rosegarden" ]

using 'find' to find the required object shows that it is on the system at:
/usr/local/lib/qt4/libQt3Support.so.4


however:

i have compared this installation and setup to a desktop machine with same
setup and rosegarden works fine with that - details further on

system detail 1:
--
(laptop - rosegarden not working)
freeBSD 8.1-RELEASE amd64 - GENERIC kernel
on an intel core 2 duo cpu - laptop
using gnome2
separate slices for HDD:
(IDE 60Gb)
1:swap
2:/var
3:/
4:/usr
(environment MACHTYPE is set to 'unknown')

system detail 2:

(desktop - rosegarden works fine)
freeBSD 8.1-RELEASE i386 - GENERIC kernel
on an intel p4 cpu
using gnome2
separate slices for HDD:
(SATA 250Gb)
1:swap
2:/var
3:/
4:/usr
(environment MACHTYPE is set to 'i386')

so:
---
you can see that the two systems are as similar as can be
both are fresh installations (official DVD dist.), with exact matching
installed packages
when making a search for the missing object:
(libQt3Support.so.4)
it shows up in the same location on both machines:
/usr/local/lib/qt4/...

my guess:
-
1.could be anything
2.i have no way of telling 'where' the '/libexec/lib-elf.so.1' object is

looking for the missing 'Qt3' opbject
3.i prefer to use packages rather than ports, so i cannot check the
source
code of the port for rosegarden or lib-elf.so.1
4.i have limited knowledge of the bsd system and so do not know where to

start looking or how
5.i suppose it could be a simple case of one missing symlink
6.or an environment variable (see MACHTYPE above)
7.i did at first consider that i had the wrong architecture system
installed
on the core 2 laptop (freeBSD distribution HARDWARE.HTM shows that amd64

system supports intel core 2 - not core duo) i have no extensive
technical
knowledge and all i know is that the 'sticker' on the laptop says
'core 2 duo' - which confuses me ( is it core 2, or core duo..?)
have tried installing i386 system, which worked to a point,
console seems okay but gnome2 trips up - hangs with no obvious errors
reported to console - so this caused me to revert bcak to amd64 system
and
now gnome works fine other than this problem with lib-elf & rosegarden
8.both hard drives are sliced the same way (slice order and mount
points)
- only difference is bus I/O type and size (IDE vs. SATA)
9.it could be the architecture distribution (amd64)

late addition:
--
just tried the same thing with a desktop amd64 setup -
exact same characteristics as the laptop above
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


audio/multimedia

2011-07-10 Thread wayne mitchell
hey,
i am trying to set up a machine for multimedia & audio studio purposes
am having trouble with drivers/devices
have got all docs with freebsd package (8.1-release)
two points:
1. where are the particular docs/books for audio/studio AND/OR device
drive configuriing - could you provide ISBN's hhtp-ref's and such.
otherwise
2. i can provide specific detail of what i want to do, what i am
trying to do and what i do not understand plus technical detail - if
you want
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


cvsup and versions

2011-06-27 Thread wayne mitchell
hey,
i have just cvsup'ed for first time (newbie)
RELENG_8_1_RELEASE
rebuilt world...
there is a problem with a particular port:
audio/libsndfile
the version in this system ports tree is 1.0.21
the set of versions available within the cvs repository are:
 1.0.20, 1.0.23, 1.0.24 - but not 1.0.21
1.0.24 is latest
it seems that the latest version did not carry across with the cvsup
i have most documentation available
have tried portupgrade - no go
am stuck
how do i update this individual port
and is it possible to have two separate versions of same port in the tree
example: to rename libsndfile dirs to
libsndfile-1.0.21, libsndfile-1.0.24
for sake dependancies
am guessing, though i suspect that the two installed binaries may conflict...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


cvs vs. DVD

2011-06-26 Thread wayne mitchell
hey,
be warned, you are dealing with a  'newbie'
i have one machine that has internet access and another that does not
both machines were installed with FreeBSD_RELEASE_8_1 with a DVD
i am now using cvsup to upgrade the RELENG_8_1_RELEASE tree

my second machine does not have working ethernet

how do i transfer the updated ports tree to the other machine using
only storage media (DVD, USB)

my guess (hack) is to find all relavent files/data trees and simply
copy over, then run necessary updates (portsdb, make world...)

if that is correct then can you tell where those files are ?

if not then how should i do this ?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: awk question: replacing "%d%s" by "%d %s"

2011-01-13 Thread Wayne Sierke
On Fri, 2011-01-14 at 07:17 +0100, Polytropon wrote:
> On Thu, 13 Jan 2011 18:22:18 -0600 (CST), Robert Bonomi 
>  wrote:
> > True.  But 
> >  sub(nr,"[a-z]"," &");
> > 
> > does the trick.  (tested on Freebsd 7.2)
> > 
> > Explamation: "&" is a  'replacement side' magic incantation to the regex 
> > library that means 'that which was matched by the pattern regex'.
> 
> Doesn't work on my 7-STABLE system (20080811), awk stops:
> 
> awk: syntax error at source line 78 source file konvertieren.awk
>  context is
> sub(nr, "[a-z]", " >>>  &" <<< );
> awk: illegal statement at source line 79 source file konvertieren.awk
> 
> But I'll keep your suggestion in the program source and test
> it on 8 as soon as my "new" home system is ready to use. At
> least, the & variant looks much better.

I suspect it is a transcription error by Robert in his email.

>From man awk:

   sub(r, t, s)
      substitutes t for the first occurrence of the regular
expression
  r in the string s.  If s is not given, $0 is used.


So the correct syntax is:

sub("[a-z]", " &", nr)


Wayne


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


disyfiles

2010-12-30 Thread wayne mitchell
hey
i have a freeBSD 8.1 RELEASE system working off-line
and a windows b'band connection
my b'band connection has downloads limits
i would like to get a hold of all 'relevant' distilfes - the current size of
the complete distfiles tree is 140GB
i have cottoned onto the idea of having somebody copy the entire tree onto
HDD and posting it over
if there is a department that is able to do this or you have any other ideas
for a solution
do let me know

happy to pay a few bucks - though i am not pro - just for hobbies

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


Re: regex question....

2010-12-05 Thread Wayne Sierke
On Sun, 2010-12-05 at 10:19 -0800, Chip Camden wrote:
> Quoth RW on Sunday, 05 December 2010:
> > On Sat, 4 Dec 2010 20:32:57 -0800
> > Gary Kline  wrote:
> > 
> > > On Sat, Dec 04, 2010 at 06:49:45PM -0800, xSAPPYx wrote:
> > 
> > > > Also, the + operator means '1 or more' but needs escaped:
> > > > %s/[0-9]\+/foo/g
> > > 
> > > 
> > >   Okay.  I thought that the + must be perl-only regex... .
> > 
> > It's from "Extended" REs  rather than perl specifically, it  works
> > with sed -E but not plain sed. Not sure about vi.

> For me in works in vim but not in vi.

In vi it requires setting the "extended" option which is unset by
default - "set all" will display "noextended".

In POSIX "extended" REs '+' is a metacharacter so the expression for
"sed -E" and vi with "extended" enabled is simply "[0-9]+" (likewise for
"grep -E" etc).

It seems to be a "gnuism" that an escaped "+" works in "basic" REs, so
it works in grep, gnu sed (gsed) etc.

-- 

Wayne


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


(no subject)

2010-11-07 Thread wayne mitchell
  BODY { font-family:Arial, Helvetica, sans-serif;font-size:12px; }hey
 i am trying to set up a private network for using freebsd (private
as in off-line)
 i have a windows machine with on-line connection
 i would like to get a hold of the 8.1 CURRENT 'distfiles' (complete
- at least with latest versions only of each port/file)
 however,  when making calculations for downloading the complete
distfiles  directory via anonymous ftp it works out to be a 50 day
operation (a few  hours each day)
 of course there are many earlier version files that may not be
required - in some cases in multiples of tens - which adds up 
 is there a source that makes dvd images of the distfile directory
that i can get a hold of
 if so , please give details - happy to pay a few bucks
 ...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Sendmail as client via smarthost and ssl

2010-10-28 Thread Wayne Sierke
On Thu, 2010-10-28 at 14:49 +0200, Christopher Illies wrote:

> Not knowing much about sendmail, I tried google and more or less
> blindly followed suggestions.  Here is what I have done so far, but
> sending email still does not work:
> 
> 1. recompiled sendmail with sasl by adding the following lines to
> /etc/make.conf + installing security/cyrus-sasl2 + recompiling
> sendmail:
> 
> SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2
> SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2
> 
> 2. Adding the following line to my mc file (+ make all install
> restart):
> 
> define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5
> LOGIN PLAIN')dnl FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
> 
> dnl Set port define(`RELAY_MAILER_ARGS', `IPC $h 587')

I can't speak to the validity of the technique that you're attempting to
use, however the 'dnl' directive is an instruction to ignore the rest of
the line (c.f. '#' in shell scripts, etc., in fact I believe 'dnl' is a
mnemonic for something like "delete to newline" or "discard to
newline").

In which case these are probably intended to be:

define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 
LOGIN PLAIN')dnl
    FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
 
dnl Set port 
define(`RELAY_MAILER_ARGS', `IPC $h 587')dnl


Wayne


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


Re: okay, time to ask the wizards.

2010-10-28 Thread Wayne Sierke
On Thu, 2010-10-28 at 15:18 +1030, Wayne Sierke wrote:
> > On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline  wrote:
> > 
> > > I've got a very large file with paragraphs separated only by "\n".
> > > How do I put a blank line _after_ each newline?

> In this particular case however, sed does offer the "pièce de
> résistance":
> 
> sed G

Mea culpa. Someone contacted me off-list querying the validity of my sed
statement which highlighted that my solution description was overly
terse.

Of course what I was suggesting was:

sed G sourcefile

and practically used as something like:

sed G sourcefile > newfile

or:

sed -i .orig -e G sourcefile

e.g.:

%cat > sourcefile
Line one.
Line two.   
Line three.
%D
%sed G sourcefile
Line one.

    Line two.   

Line three.

%


Wayne


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


Re: okay, time to ask the wizards.

2010-10-27 Thread Wayne Sierke
On Wed, 2010-10-27 at 18:16 -0700, Liontaur wrote:
> On Wed, Oct 27, 2010 at 6:04 PM, Gary Kline  wrote:
> 
> > I've got a very large file with paragraphs separated only by "\n".
> > How do I put a blank line _after_ each newline?
> >
> >
> Perhaps using sed? i'm definitely no sed expert but the substitute command
> would work, just substitute one \n with two?
> 
> Mark

Not quite. When considering sed(1), recall that:

Normally, sed cyclically copies a line of input, not including
its terminating newline character, into a pattern space, ...
(then) copies the pattern space to the standard output,
appending a newline, and deletes the pattern space.

So there is no "\n" in the initial pattern space to be substituted.
Characters can however be inserted at the end of the line (before the
original \n) with: "s/$//" as Chad used in his perl
solution. Unfortunately FreeBSD sed's "substitute" doesn't recognise
"\n" as "newline"  in a substitution, although it's possible to insert a
literal "newline" character through various shell-dependent techniques.

In this particular case however, sed does offer the "pièce de
résistance":

sed G


The operation is left as a learning exercise for the reader.


Wayne


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


Re: sed problem

2010-09-29 Thread Wayne Sierke
On Wed, 2010-09-29 at 17:43 +0800, lhmwzy wrote:
> #%sed -e '/GROUP/{/Test/! d}' test
> sed: 1: "/GROUP/{/Test/! d}
> ": extra characters at the end of d command
> also have error.
> the system:
> #uname -a
> FreeBSD bxzxfreebsd.slof.com 7.2-RELEASE-p5 FreeBSD 7.2-RELEASE-p5 #1:
> Fri Dec  4 17:58:13 CST 2009
> l...@bxzxfreebsd.slof.com:/usr/obj/usr/src/sys/lhmwzy  amd64
> 
> 2010/9/29 lhmwzy :
> > I have a txt file named test:
> >
> > USER Added by ftpadmin
> > GENERAL 0,0 120 204800 0
> > LOGINS 1 0 -1 -1
> > TIMEFRAME 0 0
> > FLAGS 3
> > TAGLINE lanshu4385
> > DIR /
> > ADDED 1284812614 ftpadmin
> > EXPIRES 0
> > CREDITS 15000
> > RATIO 0
> > ALLUP 0 0 0
> > ALLDN 0 0 0
> > WKUP 0 0 0
> > WKDN 0 0 0
> > DAYUP 0 0 0
> > DAYDN 0 0 0
> > MONTHUP 0 0 0
> > MONTHDN 0 0 0
> > NUKE 0 0 0
> > TIME 0 1284812614 0 0
> > GROUP Teest 0
> > GROUP eest 0
> > GROUP dTeest 0
> > GROUP tTeest 0
> > GROUP Test 0
> > IP *...@*
> >
> > when I use the follow command:
> >
> > #sed -e '/GROUP/{/Test/}! d' test
> > then output error:
> >
> > sed: 1: "/GROUP/{/Test/}! d
> > ": command } expects up to 0 address(es), found 1
> >
> > But this command under linux is OK,how can I do?
> >

Try:

sed -e '/GROUP/{/Test/!d;}'

or:

sed -e '/GROUP/{' -e '/Test/!d' -e '}'


Wayne


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


Re: apropos returning same item twice

2010-09-18 Thread Wayne Sierke
On Fri, 2010-09-17 at 12:18 -0400, Steven Friedrich wrote:
> On Thursday 16 September 2010 4:12:44 am Wayne Sierke wrote:
> > On Wed, 2010-09-15 at 18:27 -0400, Steven Friedrich wrote:
> > > On Wednesday 15 September 2010 12:39:15 pm Wayne Sierke wrote:
> > > > On Tue, 2010-09-14 at 00:37 +, Alexander Best wrote:
> > > > > On Sat Sep 11 10, Steven Friedrich wrote:
> > > > > > Why does apropos list mysql(1) twice?
> > > > > > 
> > > > > > It doesn't return duplicates with apropos kde...
> > > > > 
> > > > > maybe you have a gzip'ed and plain version in /usr ?
> > > > > 
> > > > > see PR #4419.
> > > > > 
> > > > > cheers.
> > > > > alex
> > > > 
> > > > Are you certain that /etc/manpath.config doesn't just still
> > > > have /usr/X11R6/man configured (as well as /usr/local/man)? Admittedly
> > > > the kde issue is a mystery, assuming its manpages are installed
> > > > in /usr/local/man. This system has the following:
> > > > 
> > > > OPTIONAL_MANPATH/usr/local/man
> > > > # (disabled by xorg-libraries port) OPTIONAL_MANPATH/usr/X11R6/man
> > > > 
> > > > MANPATH_MAP /usr/local/bin  /usr/local/man
> > > > # (disabled by xorg-libraries port)
> > > > MANPATH_MAP /usr/X11R6/bin  /usr/X11R6/man
> > > > 
> > > > 
> > > > Is the whatis file being updated? Check the timestamp:
> > > > 
> > > > # ls -l /usr/local/man/whatis
> > > > -rw-r--r--  1 root  wheel  273178 Sep 11 04:22 /usr/local/man/whatis
> > > > 
> > > > 
> > > > Wayne
> > > > 
> > > > > > ad...@laptop2(/dev/pts/1)/usr/home/admin 106% apropos mysql
> > > 
> > > 
> > > 
> > > > ___
> > > > freebsd-questions@freebsd.org mailing list
> > > > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > > > To unsubscribe, send any mail to
> > > > "freebsd-questions-unsubscr...@freebsd.org"
> > > 
> > > I still have X11R6 in usr symlinked to /usr/local. This was done per
> > > entry 20070519 in /usr/ports/UPDATING.
> > > 
> > > Do we still need this symlink?
> > 
> > Yes, anything that references /usr/X11R6 gets directed to /usr/local.
> 
> Well I temporarily removed it and this anomaly disappeared. Perhaps we just 
> have to suffer until we know the symlink can be removed. I thought it was 
> going to eventually be removed...
> 
> > 
> > Did you check /etc/manpath.config and the timestamp
> > on /usr/local/man/whatis?
> > 
> grep -v '^#' manpath.config 
> MANDATORY_MANPATH   /usr/share/man
>  
> MANDATORY_MANPATH   /usr/share/openssl/man
> OPTIONAL_MANPATH/usr/local/man
> MANPATH_MAP /bin/usr/share/man
> MANPATH_MAP /usr/bin/usr/share/man
> MANPATH_MAP /usr/local/bin  /usr/local/man
> OPTIONAL_MANPATH/usr/local/lib/perl5/5.12.2/man
> OPTIONAL_MANPATH/usr/local/lib/perl5/5.12.2/perl/man
> 
> 
> > Another check is that the output of manpath(1) doesn't
> > include /usr/X11R6/man.
> > 
> 
> manpath
> /usr/share/man:/usr/local/man:/usr/local/kde4/man:/usr/share/openssl/man:/usr/local/lib/perl5/5.12.2/man:/usr/local/lib/perl5/5.12.2/perl/man

Ok. There's also:  

%man -a -w mysql

to see the origins of the multiple man pages, although it seems that you
may have already confirmed the /usr/X11R6 path connection.

>From what you've presented so far I'd say it's looking like a problem
with updating of the "whatis" db files. So to verify whether the weekly
periodic "makewhatis" is being run:-
 - check the timestamp on /usr/local/man/whatis - it shouldn't be more
than a week old
 - check that the "weekly run output" report lists "Rebuilding whatis
database:" and that it doesn't list any errors, e.g.:

Rebuilding whatis database:

-- End of weekly output --


Wayne


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


Re: apropos returning same item twice

2010-09-16 Thread Wayne Sierke
On Wed, 2010-09-15 at 18:27 -0400, Steven Friedrich wrote:
> On Wednesday 15 September 2010 12:39:15 pm Wayne Sierke wrote:
> > On Tue, 2010-09-14 at 00:37 +, Alexander Best wrote:
> > > On Sat Sep 11 10, Steven Friedrich wrote:
> > > > Why does apropos list mysql(1) twice?
> > > > 
> > > > It doesn't return duplicates with apropos kde...
> > > 
> > > maybe you have a gzip'ed and plain version in /usr ?
> > > 
> > > see PR #4419.
> > > 
> > > cheers.
> > > alex
> > 
> > Are you certain that /etc/manpath.config doesn't just still
> > have /usr/X11R6/man configured (as well as /usr/local/man)? Admittedly
> > the kde issue is a mystery, assuming its manpages are installed
> > in /usr/local/man. This system has the following:
> > 
> > OPTIONAL_MANPATH/usr/local/man
> > # (disabled by xorg-libraries port) OPTIONAL_MANPATH/usr/X11R6/man
> > 
> > MANPATH_MAP /usr/local/bin  /usr/local/man
> > # (disabled by xorg-libraries port)
> > MANPATH_MAP /usr/X11R6/bin  /usr/X11R6/man
> > 
> > 
> > Is the whatis file being updated? Check the timestamp:
> > 
> > # ls -l /usr/local/man/whatis
> > -rw-r--r--  1 root  wheel  273178 Sep 11 04:22 /usr/local/man/whatis
> > 
> > 
> > Wayne
> > 
> > > > ad...@laptop2(/dev/pts/1)/usr/home/admin 106% apropos mysql
>  
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to
> > "freebsd-questions-unsubscr...@freebsd.org"
> 
> I still have X11R6 in usr symlinked to /usr/local. This was done per entry 
> 20070519 in /usr/ports/UPDATING.
> 
> Do we still need this symlink?

Yes, anything that references /usr/X11R6 gets directed to /usr/local.

Did you check /etc/manpath.config and the timestamp
on /usr/local/man/whatis?

Another check is that the output of manpath(1) doesn't
include /usr/X11R6/man.


Wayne


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


Re: apropos returning same item twice

2010-09-15 Thread Wayne Sierke
On Tue, 2010-09-14 at 00:37 +, Alexander Best wrote:
> On Sat Sep 11 10, Steven Friedrich wrote:
> > Why does apropos list mysql(1) twice?
> > 
> > It doesn't return duplicates with apropos kde...
> 
> maybe you have a gzip'ed and plain version in /usr ?
> 
> see PR #4419.
> 
> cheers.
> alex

Are you certain that /etc/manpath.config doesn't just still
have /usr/X11R6/man configured (as well as /usr/local/man)? Admittedly
the kde issue is a mystery, assuming its manpages are installed
in /usr/local/man. This system has the following:

OPTIONAL_MANPATH/usr/local/man
# (disabled by xorg-libraries port) OPTIONAL_MANPATH/usr/X11R6/man

MANPATH_MAP /usr/local/bin  /usr/local/man
# (disabled by xorg-libraries port) MANPATH_MAP /usr/X11R6/bin  /usr/X11R6/man


Is the whatis file being updated? Check the timestamp:

# ls -l /usr/local/man/whatis
-rw-r--r--  1 root  wheel  273178 Sep 11 04:22 /usr/local/man/whatis


Wayne


> > ad...@laptop2(/dev/pts/1)/usr/home/admin 106% apropos mysql 
> >
> > mysql(1) - the MySQL command-line tool  
> >
> > mysql.server(1)  - MySQL server startup script
> > mysql_config(1)  - get compile options for compiling clients
> > mysql_install_db(1)  - initialize MySQL data directory
> > mysql_tzinfo_to_sql(1)   - load the time zone tables
> > mysql_upgrade(1) - check tables for MySQL upgrade
> > mysql_waitpid(1) - kill process and wait for its termination
> > mysqladmin(1)- client for administering a MySQL server
> > mysqlbinlog(1)   - utility for processing binary log files
> > mysqlbug(1)  - generate bug report
> > mysqlcheck(1)- a table maintenance program
> > mysqld_safe(1)   - MySQL server startup script safe_mysqld - MySQL 
> > server startup script
> > mysqldump(1) - a database backup program
> > mysqlimport(1)   - a data import program
> > mysqlshow(1) - display database, table, and column information
> > mysqltest(1) - program to run test cases mysqltest_embedded - 
> > program to run embedded test cases
> > slapd-ndb(5) - MySQL NDB backend to slapd
> > mysql(1) - the MySQL command-line tool
> > mysql.server(1)  - MySQL server startup script
> > mysql_config(1)  - get compile options for compiling clients
> > mysql_install_db(1)  - initialize MySQL data directory
> > mysql_tzinfo_to_sql(1)   - load the time zone tables
> > mysql_upgrade(1) - check tables for MySQL upgrade
> > mysql_waitpid(1) - kill process and wait for its termination
> > mysqladmin(1)- client for administering a MySQL server
> > mysqlbinlog(1)   - utility for processing binary log files
> > mysqlbug(1)  - generate bug report
> > mysqlcheck(1)- a table maintenance program
> > mysqld_safe(1)   - MySQL server startup script safe_mysqld - MySQL 
> > server startup script
> > mysqldump(1) - a database backup program
> > mysqlimport(1)   - a data import program
> > mysqlshow(1) - display database, table, and column information
> > mysqltest(1) - program to run test cases mysqltest_embedded - 
> > program to run embedded test cases
> > slapd-ndb(5) - MySQL NDB backend to slapd
> > 
> > -- 
> > System Name:   laptop2.StevenFriedrich.org
> > Hardware:  2.80GHz Intel Pentium 4 (HTT) with 2 GB memory
> > OS version:FreeBSD 8.1-RELEASE i386 (6.9 MB kernel)
> > manager(s):kde4-4.5.1 
> > X windows: xorg-7.5X.Org X Server 1.7.5
> 


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


Re: Any awk gurus on the list?

2010-08-22 Thread Wayne Sierke
On Fri, 2010-08-20 at 12:12 -0500, Paul Schmehl wrote:
> I'm trying to figure out how to use awk to parse values from a string of 
> unknown length and unknown fields using awk, from within a shell script, and 
> write those values to a file in a certain order.
> 
> Here's a typical string that I want to parse:
> 
> alert ip 
> [50.0.0.0/8,100.0.0.0/6,104.0.0.0/5,112.0.0.0/6,173.0.0.0/8,174.0.0.0/7,176.0.0.0/5,184.0.0.0/6]
>  
> any -> $HOME_NET any (msg:"ET POLICY Reserved IP Space Traffic - Bogon Nets 
> 2"; 
> classtype:bad-unknown; reference:url,www.cymru.com/Documents/bogon-list.html; 
> threshold: type limit, track by_src, count 1, seconds 360; sid:2002750; 
> rev:10;)
> 
> What I want to do is extract the value after "sid:", the value after 
> "reference:" and the value after "msg:" and insert them into a file that 
> would 
> look like this:
> 
> 2002750 || "ET POLICY Reserved IP Space Traffic - Bogon Nets 2" || 
> url,www.cymru.com/Documents/bogon-list.html

Probably not a complete solution for your problem domain but you might
glean an idea or two from this:

awk 'BEGIN {FS="\\(|; *"} /#/ {next} {for(i=1;i<=NF;i++) print
$i}' mtc.rules.test | awk 'BEGIN {FS=":" ; OFS=" || "} $1 ==
"sid" {sid=$2} $1 == "msg" {msg=$2} $1 == "reference" {ref=$2}
$1 == ")" {print sid,msg,ref}'

> Yes, I know I could do this easily in Perl.  I'm doing this to try and 
> improve 
> my understanding of awk.  I *think* I've figured out that the right approach 
> is 
> to use an associative array, and this command:

No need for an array unless you want to retain the records for later
processing. For simple record-by-record processing scalar vars suffice.

> #  awk '!/#/ { for (i=1; i<=NF; i++) { if ( $i ~ /sid/) {mtcmsg[sid]=$i; 
> print 
> mtcmsg[sid]}}}' < /usr/local/etc/snort/rules/mtc.rules.test

A couple of things to note:

$i ~ /sid/ : will match the string "sid" anywhere within the
field - either use ~ /^sid$/  or  == "sid" for exact matching
mtcmsg[sid] : references the scalar var named "sid" (which is
empty => mtcmsg[""])


Of course, if you choose to you can also just execute some
run-of-the-mill regex matches and string manipulations in awk:

awk '!/#/ {s1=match($0, "sid:[^;]*"); if (s1) sid=substr($0,
RSTART+4, RLENGTH-4); s2=match($0, "msg:[^;]*"); if (s2)
msg=substr($0, RSTART+4, RLENGTH-4); s3=match($0,
"reference:[^;]*"); if (s3) ref=substr($0, RSTART+10,
RLENGTH-10); if (s1*s2*s3) print sid" || "msg" || "ref}'
mtc.rules.test

but that lacks any real awk-ness.


Wayne


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


Re: Forged messages being posted to freebsd-questions

2010-08-21 Thread Wayne Sierke
On Thu, 2010-08-19 at 09:33 -0400, Rod Person wrote:
> Can some explain to me or know what criteria is used to determine 
> when a posting to the lists need moderation?
> I have read post in the past that say the list is not moderated or 
> comments such as above.
> 
> But, then I try to post something and I get a "you posting is 
> awaiting moderator approval". Then I get a email that
> my posting was rejected with comments that state "I don't see what 
> this has to do with FreeBSD". But, then we have
> these junk mail and forged mail issues, not to mention I see replies 
> that go way off topic of FreeBSD.
> 
> Just wondering.

I've received a response like that "awaiting moderator approval" when
I've inadvertently sent a message to a list from other than my
subscribed address. I don't recall ever seeing such a response from a
non-subscription list (like -questions).


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


Re: Printing from linux-firefox

2010-08-01 Thread Wayne Sierke
On Mon, 2010-07-26 at 15:00 +0930, Malcolm Kay wrote:
> Having trouble getting flshh to work with native firefox,
> I decided to try one or other of the linux versions.
> 
> With
> linux-firefox-devel-3.5.9
> I was able to get flash wworking OK.
> But the linux version does not find any any printer access.
> I am using (traditional) lpd for spooling to a Postscript
> network printer.
> 
> Is there something I need to do so that the linux emulation is 
> aware of the native level lpd spooler?
> 
> The native version of firefox finds my printer OK.
> 
> Any help appreciated.
> 
> Malcolm

Hi Malcolm,

I don't use linux-firefox but have previously encountered problems
printing via lpd from Acrobat Reader which use the linux compatibility
sub-system.

You might find the thread containing this message useful for a little
background info:

http://lists.freebsd.org/pipermail/freebsd-emulation/2007-April/003469.html

It looks as though the linux_base package now includes the "lp" script
suggested in that message:

%cat /usr/compat/linux/usr/bin/lp
#!/bin/sh -
exec /usr/bin/lpr "$@"
%pkg_which /usr/compat/linux/usr/bin/lp
linux_base-fc-4_15

For some time now I have been happily printing via lpd from Acrobat
Reader to a network-connected postscript printer by selecting the
"Custom" printer option in Acrobat Reader's "print" dialogue using its
default "/usr/bin/lp" command.

I can't run the native firefox that I normally use at the moment so
cannot check what options firefox offers in its print dialogue but I
hope this info gives you some kind of lead to help you resolve the
problem.


Wayne


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


Can freebsd be installed on a new mac pro 8 core machine ?

2010-04-06 Thread Wayne Burkart
Hello,

 

I have a new Mac Pro 8 core desktop machine. I want to install an os that
will let me install Cpanel and whm so I can use it as a server. Will FreeBsd
install on the new intell based pro macs ? Pleasea advise.

 

Thank you for your time, Wayne

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


Re: flashplugin

2009-10-29 Thread Wayne Sierke
On Thu, 2009-10-29 at 03:32 +, RW wrote:
> On Mon, 26 Oct 2009 20:04:24 +
> Freminlins  wrote:
> 
> 
> > I must admit I gave up ever getting Flash to work RELIABLY on FreeBSD
> > a long time ago. It's just too hard, too much work, and not worth the
> > misery of installing heaps of crud just to get a flipping browser
> > plugin working unreliably.
> 
> Some time ago I installed the windows version of Firefox and Flash
> under wine  and I've found it pretty reliable. I don't use it all the
> time just on the small number of sites where flash is essential.

I have also done that in the past and more recently I've been using
Google's Chrome browser in wine. It's not perfect but I've found it to
be generally adequate.


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


Thank You for surfing the MyListManager website.

2009-10-22 Thread Wayne Diamond
DiaMatrix

 Dial-Up 
"http://www.diamatrix.co.za/internet-connectivity/dial-up-packages.html";, IS 
ADSL "http://www.diamatrix.co.za/internet-connectivity/is-adsl-packages.html";, 
SAIX ADSL 
"http://www.diamatrix.co.za/internet-connectivity/saix-adsl-packages.html";

 Domain Registration "http://www.diamatrix.co.za"; | Website Hosting 
"http://www.diamatrix.co.za/hosting/hosting-packages.html"; | Web Development 
"http://www.diamatrix.co.za/website-design-services/services-offered.html";

 Email newsletter marketing "http://www.mylistmanager.co.za"; | List management  
"http://www.mylistmanager.co.za";| Bulk SMS Marketing 
"http://www.mylistmanager.co.za";

   "http://www.mylistmanager.co.za/cgi-bin/uls/uls_admin.cgi?register";

 Thank You for surfing the MyListManager website.

 Now that you have had a look at the MyListManager site, I'd like to offer you 
the facility to try out our fantastic features at absolutely no cost to you for 
an unlimited time!

Explore the possibilities of marketing your products or services to hundreds of 
thousands of potential clients with a few clicks! 
See how easily your customer lists can be managed! 
Send out newsletters, competitions and surveys! 
Monitor the results of your endeavors with our automatic statistical analysis! 
Log onto MyList Manager 
"http://www.mylistmanager.co.za/cgi-bin/uls/uls.cgi?ako=OXXDYOXDaksjXXsXs"; to 
see our current list of features; or click below to try it out in an *unlimited 
time, no-strings-attached trial. (* Terms and Conditions Apply)

DiaMatrix has great things planned for 2009, keep an eye out on the DiaMatrix 
sites "http://www.diamatrix.co.za"; for many exciting new developments. MyList 
Manager "http://www.mylistmanager.co.za"; is already sporting a Great New SMS 
System, and DiaMatrix will proudly be introducing many new services over the 
next few months.

Other Services that DiaMatrix Offers

Website Design 
"http://www.diamatrix.co.za/website-design-services/services-offered.html";
Website Hosting 
"http://www.diamatrix.co.za/linux-website-hosting/hosting-packages.html";
ADSL (Broadband) 
"http://www.diamatrix.co.za/internet-connectivity/is-adsl-packages.html";
MyListManager (Bulk Email & SMS'ing) "http://www.mylistmanager.co.za";

Let me know if I can help with anything from creating a website for you to 
automating your email marketing. 

 MYLIST MANAGER

 Email marketing taken

 to a new level 

 Bulk Emailing

 Bulk Sms’ing

 Autoresponders

 Subscriber Management

 Community’s

 Blogs

 Article Central

 Subscribe Central

 www.mylistmanager.co.za  "http://www.mylistmanager.co.za";

 WEBSITE HOSTING

 Bronze Package, our most popular SME Package.

 Hard Disk Quota 1 000 MB

 Monthly Traffic 2 000 MB

 25 email accounts

 Includes 

Autoresponders

Webstats

Database facility

 Webmail

 Email Spam Filter

 Anti-Virus Scanning
 For only R125.00 Ex Vat pm 

 Click here to find out more

 WEBSITE DESIGN SERVICES

 Leaders in the design of Content Management Systems (CMS)

 Click here to view our Portfolio 
"http://www.diamatrix.co.za/website-design-services/our-portfolio.html";

 Click here to request a Quotation 
"http://www.diamatrix.co.za/website-design-services/quotation-request.html";

  "http://www.mylistmanager.co.za/cgi-bin/uls/uls_admin.cgi?register";

 Regards,

Regards,

Wayne Diamond.

 © 2009 DiaMatrix.   All Rights Reserved.

  1 Zuid Street | Johannesburg | South Africa | 2192

  Tel: 0861 100 698 | Fax: 0866 862 444 

 sa...@diamatrix.co.za "mailto:%20sa...@diamatrix.co.za";

  www.diamatrix.co.za "http://www.diamatrix.co.za";

 www.mylistmanager.co.za "http://www.mylistmanager.co.za";
Powered by MyListManager
http://www.mylistmanager.co.za/cgi-bin/uls/uls.cgi?matheKialo=Yes&adminid=1&&listid=273&eid=28914&arid=1
--

Unsubscribe
http://www.mylistmanager.co.za/cgi-bin/uls/uls.cgi?ulsRemove=273-28914=

Update Profile
http://www.mylistmanager.co.za/cgi-bin/uls/uls_mem.cgi?login=Yes&action=process&subscriberid=273-28914&email=freebsd-questi...@freebsd.org

Forward Message
http://www.mylistmanager.co.za/cgi-bin/uls/uls.cgi?fwdMessage=1=0=273-28914=1=0=0
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: Firefox 3.5...

2009-08-26 Thread Wayne Sierke
On Wed, 2009-08-26 at 11:32 +0100, Peter Harrison wrote:
> I've Firefox 3.0.11,1 on my 7.2-release system at the moment. Anyone
> offer some advice on moving up to 3.5?
> 
> Is it as simple as pkg_delete'ing 3.0 and then installing 3.5?
> 
> Thanks for any thoughts.

Should be, or if you use portupgrade:

http://lists.freebsd.org/pipermail/freebsd-questions/2009-July/202568.html


Wayne


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


Don't let mergemaster beat you down [was Re: Failed update]

2009-08-10 Thread Wayne Sierke
On Sun, 2009-08-09 at 08:34 -0700, Richard Mahlerwein wrote:
> I'm redoing the whole process in single user mode.  My guess is I
> goofed something during mergemaster and devd.conf is messed up.
> (Mergemaster is, undeniably, my least favorite utility).  

I lost practically all of my 'mergemaster pain' when I adopted the habit
of using it with -iUP options:

-i  Automatically install any files that do not exist in the des-
tination directory.
-P  Preserve files that you replace in
/var/tmp/mergemaster/preserved-files-, or another
directory you specify in your mergemaster rc file.
-U  Attempt to auto upgrade files that have not been user modi-
fied.

"Try it - you'll like it!"


Wayne


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


Re: mysql hiding from top

2009-05-03 Thread Wayne Sierke
On Mon, 2009-04-27 at 18:49 +0200, Zbigniew Szalbot wrote:
> hello,
> 
> Today I have finally upgraded my system to 7.1-RELEASE and just noticing
> that mysql process is not being shown via the top command.
> 
>   PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU COMMAND
>  1612 root1  200  9212K  6716K pause  2   0:26  0.00% perl5.8.9
>   966 www 1   80  8236K  5452K nanslp 2   0:22  0.00% perl5.8.9
>  1594 root1  200  8740K  6220K pause  0   0:12  0.00% perl5.8.9
> 
> However, if you grep processes, you can see it should be displayed in the
> top entries.
> $ ps ax |grep mysql
> 32880  p0- I  0:00.00 /bin/sh /usr/local/bin/mysqld_safe...
> 32906  p0- S  1:33.72 /usr/local/libexec/mysqld...
> 
> I can live with that but maybe there's some explanation for this?
> 
> Thanks!
> 
>From the manpage for top(1):
FreeBSD NOTES
DISPLAY OF THREADS
   The  '-H'  option will toggle the display of kernel visible 
thread con-
   texts.  At runtime the 'H' key will toggle this mode.  The  
default  is
   OFF.

Should reveal the "missing" thread(s). This was raised by someone else
last November also examining mysqld. Look for a thread titled "top
incorrectly reporting process time".


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


Re: ls -lh show file not displaying correct size

2009-02-02 Thread Wayne
Thanks for the answer so now for the next question. How do I sync this
file to other FreeBSD servers. I tried using rsync with the --spares
but the size on the other server was on it's way to being the 256G size
and fill up the other server. How would I go about making an exact
duplicate. 

Wayne

--- On Sat, 1/31/09, Dan Nelson  wrote:
From: Dan Nelson 
Subject: Re: ls -lh show file not displaying correct size
To: "Wayne" 
Cc: freebsd-questions@freebsd.org
Date: Saturday, January 31, 2009, 3:33 PM

In the last episode (Jan 31), Wayne said:
> Hello,
> 
> I have a db file of FreeBSD 7.1 amd64 that is displaying the wrong size.
This is a db file used by my mail filter software to to Bayes Filtering.
> If I do an ls -l or ls -lh I get
> filter1# ls -l
> total 489024
> -rw---  1 defang  defang  274992627712 Jan 31 08:33 @@RPTN.db
> filter1# ls -lh
> total 489024
> -rw---  1 defang  defang   256G Jan 31 08:33 @@RPTN.db
> If I do a du I gecus18-179# du
> 489026  .
> cus18-179# du -h
> 478M    .
> My drive is only 250 Gig and I have it mounted as /var/spool here is my df
for the whole file system.
> /dev/ad14s1d    226G    810M    207G 0%    /var/spool
> 
> So I know that the 256G is wrong. Can any one tell me what is up with file
size ?

The 256G is correct.  It's a sparse file (i.e. there are holes in it). 
"ls -sk" will print the actual disk space occupied by a file.

-- 
Dan Nelson
dnel...@allantgroup.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to
"freebsd-questions-unsubscr...@freebsd.org"




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


ls -lh show file not displaying correct size

2009-01-31 Thread Wayne
Hello,

I have a db file of FreeBSD 7.1 amd64 that is displaying the wrong size. This 
is a db file used by my mail filter software to to Bayes Filtering.
If I do an ls -l or ls -lh I get
filter1# ls -l
total 489024
-rw---  1 defang  defang  274992627712 Jan 31 08:33 @@RPTN.db
filter1# ls -lh
total 489024
-rw---  1 defang  defang   256G Jan 31 08:33 @@RPTN.db
If I do a du I gecus18-179# du
489026  .
cus18-179# du -h
478M    .
My drive is only 250 Gig and I have it mounted as /var/spool here is my df for 
the whole file system.
/dev/ad14s1d    226G    810M    207G 0%    /var/spool

So I know that the 256G is wrong. Can any one tell me what is up with file size 
?

Thanks Wayne









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


Re: Installation Hangs

2008-10-12 Thread Wayne Sierke
On Sun, 2008-10-12 at 10:54 -0700, ton80 wrote:
> Hello,
> I am trying to install FreeBSD.
> During the install (actually at the beginning of the process) the system
> hangs indefinitely.
> When it gets to the select country screen...it is frozen.
> During the boot process, as it is reading all the hardware, it finds the USB
> controller OK then later it states there was an IO error and that the USB
> controller is halted. I have a USB Keyboard and mouse...so I would say the
> problem is here.
> Is there any workaround I can use to get things going?
> 
> Thanks,
> ton80

I currently have to attach my USB k/b and mouse via a USB hub, rather
than directly to the USB ports on this PC. I'm using a cheap no-name hub
here at the moment and it has done the job so far.

See if attaching via a hub improves things if you can.


Wayne


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


Re: help with AWk

2008-09-27 Thread Wayne Sierke
On Sat, 2008-09-27 at 22:06 -0500, Len Conrad wrote:
> The logic desired if
> 
> If IP has no PTR, print "PTR_NUL", else print the PTR.
> 
> 
> dig +short -x 1.2.3.4 | awk '{if ( $0 == "" ) {print "PTR_NUL" } else {print 
> $0 } }'
> 
> ... works if PTR exist, but if no PTR, PTR_NUL doesn't print.
> 
> thanks
> Len

> dig +short -x 10.0.0.1 | awk '{print $0} END {if(NR==0) print "PTR_NUL"}'
PTR_NUL
> dig +short -x 69.147.83.33 | awk '{print $0} END {if(NR==0) print "PTR_NUL"}'
www.freebsd.org.


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


Re: Fix corrupted terminal output

2008-09-23 Thread Wayne Sierke
On Tue, 2008-09-23 at 17:09 -0700, Chris St Denis wrote:
> Occasionally, I accidentially cat a binary file or a directory casing 
> the terminal output to be corrupted with text looking like (don't know 
> if this will make it through the mail cleanly)
> 
> E ??? ?? ?.
> 2#
> 
> 
> To fix this normally I just close the window and open a new ssh 
> connection, but I am wondering if there is a more clean way to do this. 
> I've tried reset(1), but it doesn't seem to help any.

The terminal has probably switched to an alternate charset mode. I
recently encountered this situation while using tmux and found that
issuing 'reset' was ineffectual. To recover from this try issuing a \017
character to the terminal, or the escape sequence: ^[[m. How you can do
that most easily depends on which shell you're using at the time, so you
can try:

/bin/echo ^v^o  (^v is ctrl-v  ^o is ctrl-o)
/bin/sh -c "echo -e \\017"
/bin/echo ^v^[[m
/bin/sh -c "echo -e \\033[m"

Thanks go to Nicholas Marriott for pointing out this solution.


Wayne


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


RE: Firefox won't start

2008-09-18 Thread Wayne Sierke
On Thu, 2008-09-18 at 16:25 -0400, Joe Tseng wrote:
> You got it!!!  I type in "firefox3" in the terminal and the prompt comes 
> right back.
> 
Does it run sufficiently to return a version?

%firefox3 -version
Mozilla Firefox 3.0.1, Copyright (c) 1998 - 2008 mozilla.org

Try starting firefox in safe mode: 

%firefox3 -safe-mode

Use the -help option to see other command-line options:

%firefox3 -help

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


RE: how do I disable the generation of XOFFs when using tip over aserial port to another device

2008-09-13 Thread Wayne Sierke
On Mon, 2008-09-08 at 10:50 -0700, Jeff Haran wrote:
> Wayne,
> 
> Thanks for the response. After I sent the original email, I found the
> tandem variable in the tip source code and toggling it off did indeed
> disable the generation of XOFFs. It would have been easier if tandem had
> been documented in the 6.3 man pages.
> 
> It would also be convenient if there was some way to set these tip
> varibles non-interactively (e.g. via a command line option, .rc file or
> some such thing). I am using tip in an expect script to automate a test
> case and coding the expect script to generate the ~s escape sequence to
> turn tandem off was something less than straight forward.
> 
> Jeff Haran

Further to my earlier reply... tip(1) does in fact support configuration
through ~/.tiprc and adding:

!tandem

to it should work to disable XON/XOFF generation, too. Perusing the
source reveals that cu(1) also uses that configuration file since tip
and cu both call the same routine - vinit() - to initialise their
variables and that's where ~/.tiprc is read. Not mentioned in the cu(1)
man page, however, so that's another PR coming.


Wayne


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


Re: cd and rm a directory with '^M'

2008-09-11 Thread Wayne Sierke
On Thu, 2008-09-04 at 01:28 -0400, DAve wrote:
> Edwin Groothuis wrote:
> >> I had rsync create a directory with a '^M' in it.
> > 
> > Use command-line completion:
> > 
> > [~/xx] [EMAIL PROTECTED]>touch foo^Mbar # that's ^V^M
> > [~/xx] [EMAIL PROTECTED]>ls -l
> > total 0
> > -rw-r--r--  1 edwin  edwin  0 Sep  4 13:46 foo?bar
> > [~/xx] [EMAIL PROTECTED]>rm foo# autocompletes to 
> > foo^Mbar
> > 
> > 
> If you find yourself on a machine without a full featured shell you can 
> delete by the inode number. Chuck Swiger saved my bacon with that trick 
> several years ago.
> 
> [sysadmin /usr/home/sysadmin]$ touch abc^M
> [sysadmin /usr/home/sysadmin]$ ls -i
> 2449500 abc?   2449511 env.sh
> [sysadmin /usr/home/sysadmin]$ find . -type f -inum 2449500 | xargs rm
> [sysadmin /usr/home/sysadmin]$ ls -i
> 2449511 env.sh
> 
However, note that using find's -x option could avoid subsequent
consternation, embarrassment, or worse. -x avoids having find search
over multiple filesystems which in this case avoids having find stumble
upon files with the same inode num on different filesystems. Relevant to
any type of find criteria, but -inum introduces a nice degree of
(user-level) randomness to the mix.

Of course, the old adage always applies - "If in doubt - print it
out!" (Not very catchy, is it?)


Wayne


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


RE: how do I disable the generation of XOFFs when using tip over aserial port to another device

2008-09-08 Thread Wayne Sierke
On Mon, 2008-09-08 at 10:50 -0700, Jeff Haran wrote:
> > -Original Message-
> > From: Wayne Sierke [mailto:[EMAIL PROTECTED] 
> > Sent: Saturday, September 06, 2008 1:12 AM
> > To: Jeff Haran
> > Cc: freebsd-questions@freebsd.org
> > Subject: Re: how do I disable the generation of XOFFs when 
> > using tip over aserial port to another device
> > 
> > On Fri, 2008-09-05 at 12:20 -0700, Jeff Haran wrote:
> > > Dear Sirs,
> > > 
> > > I have connected one of the RS232 ports of my PC with 
> > FreeBSD (v6.3) on
> > > it to a device that does not understand XON/XOFF flow 
> > control. I run the
> > > tip program to connect to that device.
> > > 
> > > How do I configure tip and/or the serial port so that the FreeBSD PC
> > > will NOT send XOFFs or XONs to the device?
> > > 
> > > When I run:
> > > 
> > > stty -a -f /dev/cuad0
> > > 
> > > where /dev/cuad0 is the device associated with the port, it outputs
> > > (among other things):
> > > 
> > > iflags: ... ixon -ixoff ...
> > > 
> > > >From my reading of the stty man page, I would think that 
> > means the port
> > > is already configured to not send XOFFs.
> > > 
> > > Is there something I need to do to /etc/remote to tell tip 
> > to not enable
> > > XON/XOFF?
> > > 
> > > Please respond to this email address as I do not subscribe to the
> > > mailing list.
> > > 
> > > Thanks,
> > > 
> > > Jeff Haran
> > 
> > Hi Jeff,
> > 
> > I think there might be a problem with the man page for tip(1) 
> > on 6.x, as
> > an entry for 'tandem' was added to the tip sources about 2 years ago.
> > It's in the 7.x man page as you can see at:
> > 
> > http://www.freebsd.org/cgi/man.cgi?query=tip&manpath=FreeBSD+7
> .0-RELEASE&format=html
> > 
> > in 'Variables'. 'tandem' shows up in a variable listing (~v) 
> > in tip on a
> > 6.x system I have here but I don't have an appropriate set up 
> > at hand to
> > verify that it operates correctly.
> > 
> > Let us know how you go with it. If it works for you then a PR would be
> > in order.
> > 
> > 
> > Wayne
> > 
> > [1] Extract from the tip(1) man page on 7.x:
> >  tandem  (bool) Use XON/XOFF flow control to throttle 
> > data from the remote
> >  host; abbreviated ta.  The default value is true 
> > unless the nt
> >  capability has been specified in /etc/remote, in 
> > which case the
> >  default value is false.
> > 
> 
> Wayne,
> 
> Thanks for the response. After I sent the original email, I found the
> tandem variable in the tip source code and toggling it off did indeed
> disable the generation of XOFFs. It would have been easier if tandem had
> been documented in the 6.3 man pages.
> 
> It would also be convenient if there was some way to set these tip
> varibles non-interactively (e.g. via a command line option, .rc file or
> some such thing). I am using tip in an expect script to automate a test
> case and coding the expect script to generate the ~s escape sequence to
> turn tandem off was something less than straight forward.
> 
> Jeff Haran

I encountered exactly the same situation just recently when I set up cu
to monitor a serial console from another box. I'd like to be able to
unset beautify and set the script and record variables on startup but
couldn't see how it might be done other than patching the source.

In your case, however, it seems you're in luck. Take another look at
that last sentence in the description of 'tandem'. You should be able to
add the 'nt' (presumably, "no tandem") capability to /etc/remote.


Wayne


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


Re: how do I disable the generation of XOFFs when using tip over a serial port to another device

2008-09-06 Thread Wayne Sierke
On Fri, 2008-09-05 at 12:20 -0700, Jeff Haran wrote:
> Dear Sirs,
> 
> I have connected one of the RS232 ports of my PC with FreeBSD (v6.3) on
> it to a device that does not understand XON/XOFF flow control. I run the
> tip program to connect to that device.
> 
> How do I configure tip and/or the serial port so that the FreeBSD PC
> will NOT send XOFFs or XONs to the device?
> 
> When I run:
> 
> stty -a -f /dev/cuad0
> 
> where /dev/cuad0 is the device associated with the port, it outputs
> (among other things):
> 
> iflags: ... ixon -ixoff ...
> 
> >From my reading of the stty man page, I would think that means the port
> is already configured to not send XOFFs.
> 
> Is there something I need to do to /etc/remote to tell tip to not enable
> XON/XOFF?
> 
> Please respond to this email address as I do not subscribe to the
> mailing list.
> 
> Thanks,
> 
> Jeff Haran

Hi Jeff,

I think there might be a problem with the man page for tip(1) on 6.x, as
an entry for 'tandem' was added to the tip sources about 2 years ago.
It's in the 7.x man page as you can see at:

http://www.freebsd.org/cgi/man.cgi?query=tip&manpath=FreeBSD+7.0-RELEASE&format=html

in 'Variables'. 'tandem' shows up in a variable listing (~v) in tip on a
6.x system I have here but I don't have an appropriate set up at hand to
verify that it operates correctly.

Let us know how you go with it. If it works for you then a PR would be
in order.


Wayne

[1] Extract from the tip(1) man page on 7.x:
 tandem  (bool) Use XON/XOFF flow control to throttle data from the remote
 host; abbreviated ta.  The default value is true unless the nt
 capability has been specified in /etc/remote, in which case the
 default value is false.


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


Re: Spam sent to me from my own mail server ?

2008-08-27 Thread Wayne Sierke
On Wed, 2008-08-27 at 11:40 -0400, Steve Bertrand wrote:
> Peter Ulrich Kruppa wrote:
> > Hello,
> > 
> > for some time now I keep receiving spam mails from my own (small) mail 
> > server, some of them with faked usernames some of them even with my own 
> > ([EMAIL PROTECTED]).
> 
> How have you identified that they are actually being delivered by your 
> server itself?
> 
> It is my experience that this is likely not the case, and it is only 
> your addresses that are being forged.
> 
Additionally, I see sendmail add the local domain to the From field of
incoming messages where the domain is missing. I've seen this on
numerous spam messages and even the occasional legitimate email. It's
been on my to-do list to look into this and modify it. Had me scratching
my head for a while the first time I saw it.


Wayne


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


Re: Regular Expression Trouble

2008-08-27 Thread Wayne Sierke
On Wed, 2008-08-27 at 08:25 -0500, Martin McCormick wrote:
> My thanks to several people who have provided great suggestions
> and an apology for not being clear on the log data I am mining
> for MAC addresses. It is syslog and a typical line looks like:
> 
> Aug 26 20:45:36 dh1 dhcpd: DHCPACK on 10.198.67.116 to 00:12:f0:88:97:d6
> (peaster-laptop) via 10.198.71.246 
> 
> That was one line broken to aid in emailing, but that's what
> types of lines are involved. The MAC appears at different field
> locations depending on the type of event being logged so awk is
> perfect for certain types of lines, but it misses others and no
> one awk expression gets them all.

The way to deal with that is to specify a pattern to match something
that distinguishes each form of log line that you want to extract from.
With the following (contrived) log data:

Aug 26 20:45:36 dh1 dhcpd: DHCPDISCOVER from 00:12:f0:88:97:d6 
(peaster-laptop) via eth0
Aug 26 20:45:36 dh1 dhcpd: DHCPACK on 10.198.67.116 to 00:12:f0:88:97:d6 
(peaster-laptop) via 10.198.71.246 

use awk with a script such as:

awk '/DHCPDISCOVER/ {print $8} /DHCPACK/ {print $10}' logfile


Wayne


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


Re: serial console - no go

2008-08-27 Thread Wayne Sierke
On Wed, 2008-08-27 at 10:43 +0200, Wojciech Puchar wrote:
> >>
> >> what i do wrong?
> >>
> > Have you checked flag setting on sio?
> >
> ># dmesg | grep "sio.*flags"
> >sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 
> > on acpi0
> 
> yes. i then tried to change flags to 0x20 (force console) - still doesn't 
> work
> 
> sio0: configured irq 4 not in bitmap of probed irqs 0
> sio0: port may not be enabled
> sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x20 on acpi0
> sio0: type 16450
> sio0: [FILTER]
> sio1: configured irq 3 not in bitmap of probed irqs 0
> 
Careful, note the last sentence in the 0x20 flag description:

0x20

Forces this unit to be the console (unless there is
another higher priority console), regardless of the -h
option discussed below. The flag 0x20 must be used
together with the 0x10 flag.

i.e. to use 0x20 you have to set it to 0x30

> 
> 
> it is qemu "machine" for now, but just to test, i would like to use it on 
> real hardware.
> 
Never tried, could be a qemu-specific issue?


Wayne


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


Re: serial console - no go

2008-08-27 Thread Wayne Sierke
On Tue, 2008-08-26 at 22:00 +0200, Wojciech Puchar wrote:
> i put -h in /boot.config
> 
> FreeBSD loaders starts with serial console fine, load kernel, boots and...
> kernel uses VGA as console.
> 
> what i do wrong?
> 
Have you checked flag setting on sio?

# dmesg | grep "sio.*flags"
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on 
acpi0

See handbook 24.6.3.4 for requirements:

http://www.freebsd.org/doc/en/books/handbook/serialconsole-setup.html#SERIALCONSOLE-HOWTO


Wayne


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


Re: Possible hardware damaging bug with halt/reboot!

2008-08-27 Thread Wayne Sierke
On Tue, 2008-08-26 at 15:36 -0700, Christopher Joyner wrote:
> I think this thing could break my fan if I left it running.
> The fan gets fast, really fast.  Sounds like it's running faster than it can 
> handle.
> 
That would only be the case if there is some bigger fault at play, such
as having a 5V fan wired to 12V. I'm not aware of any PC-grade fan that
would be capable of running beyond its design limits in normal use.

More likely is that the fan is thermally controlled, but on halt the
control is being set to full speed which might be annoying but is not a
problem for the fan per se.

I suspect that you're just not accustomed to hearing the fan run at full
speed. Some can be very noisy, not to mention irritating - like the one
in my laptop.


Wayne


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


Re: Regular Expression Trouble

2008-08-27 Thread Wayne Sierke
On Tue, 2008-08-26 at 22:12 -0500, Martin McCormick wrote:
> I am trying to isolate only the MAC addresses that appear in
> dhcpd logs.
> For anyone who is interested, the sed construct that should do
> this looks like:
> 
>  sed 's/.*\([[ your regular expression ]]\).*/\1/' 
> 
> The \1 tells sed to only print what matched and skip all the rest.
> 
>   I am doing something wrong with the regular expression
> that is supposed to recognise a MAC address. MAC addresses look
> like 5 pairs of hex digits followed by :'s and then a 6TH pair
> to end the string.
> 
>   I have tried:
> 
> [[:xdigit:][:xdigit:][:punct:]
> 
> Sorry. It won't all fit on a line, but there should be a string
> of 5 pairs and the : and then the 6TH pair followed by the
> closing ] so the expression ends with ]]
> 
> One should also be able to put:
> 
> [[:xdigit:][:xdigit:][:punct:]]\{5,5\}[[:xdigit:][:xdigit]]
> 
> Any ideas as to what else I can try?
> 
There have already been good suggestions for you to choose from. I'll
just add my bucketful to the TIMTOWTDI pool:

Since you weren't specific about the format of the log data that you're
attempting to parse (keep that in mind for future questions):

# ifconfig | grep ether
ether 02:00:20:75:43:34
ether 00:40:05:10:b9:79
# ifconfig | sed -nE 's/.*ether (([[:xdigit:]]{2}:){5}[[:xdigit:]]{2}).*/\1/p'
02:00:20:75:43:34
00:40:05:10:b9:79
# ifconfig | sed -nE 's/.*ether ([[:xdigit:]:]+).*/\1/p'
02:00:20:75:43:34
00:40:05:10:b9:79
# ifconfig | sed -nE 's/.*ether ([0-9a-f:]+).*/\1/p'
02:00:20:75:43:34
00:40:05:10:b9:79
# ifconfig | sed -nE '/ether/s/.*([0-9a-f:]{17}).*/\1/p'
02:00:20:75:43:34
00:40:05:10:b9:79

And then there's:

# ifconfig | grep ether | cut -d" " -f 2
02:00:20:75:43:34
00:40:05:10:b9:79

But my preference would be:

# ifconfig | awk '/ether/ {print $2}'
02:00:20:75:43:34
00:40:05:10:b9:79


Wayne



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


Re: sed/awk, instead of Perl

2008-08-24 Thread Wayne Sierke
On Sat, 2008-08-23 at 15:16 -0700, Walt Pawley wrote:
> At 10:01 AM +0100 8/23/08, Matthew Seaman wrote:
> >Walt Pawley wrote:
> >>
> >> At the risk of beating this to death, I just happened to
> >> stumble on a real world example of why one might want to use
> >> Perl for sed-ly stuff.
> >>  ... snip ...
> >> wump$ ls -l Desktop/klog
> >> -rw-r--r--  1 wump  1001  52753322 22 Aug 16:37 Desktop/klog
> >> wump$ time sed "s/ .*//" Desktop/klog > kadr1
> >>
> >> real0m10.800s
> >> user0m10.580s
> >> sys 0m0.250s
> >> wump$ time perl -pe 's/ .*//' Desktop/klog > kadr2
> >>
> >> real0m0.975s
> >> user0m0.700s
> >> sys 0m0.270s
> >> wump$ cmp kadr1 kadr2
> >> wump$
> >>
> >> Why disparity in execution speed? ...
> >
> >Careful now.  Have you accounted for the effect of the klog file
> >being cached in VM rather than having to be read afresh from disk?
> >It makes a very big difference in how fast it is processed.
> 
> No, I hadn't done any such accounting. So, wrote a little script
> you can surmise from the following output:
> 
> wump$ sh -v spdtst
> time perl -pe 's/ .*//' Desktop/klog > /dev/null
> 
> real0m0.961s
> user0m0.740s
> sys 0m0.230s
> time sed "s/ .*//" Desktop/klog > /dev/null
> 
> real0m10.506s
> user0m10.270s
> sys 0m0.250s
> time awk '{print $1}' Desktop/klog > /dev/null
> 
> real0m2.333s
> user0m2.140s
> sys 0m0.180s
> time sed "s/ .*//" Desktop/klog > /dev/null
> 
> real0m10.489s
> user0m10.250s
> sys 0m0.230s
> time perl -pe 's/ .*//' Desktop/klog > /dev/null
> 
> real0m0.799s
> user0m0.580s
> sys 0m0.220s
> 
I see similar results on all of four systems I tried here - an order of
magnitude difference between perl (fastest) and sed, and awk slightly
slower than perl. All running perl 5.8.8. I did a handful of manual runs
and took the most consistent-looking results. Source file was a 62MB
apache log with 232k records.

Interestingly an Ubuntu system exhibited a similar difference between
perl and sed, but its awk was slightly faster than perl.

> >In order to get meaningful data for this sort of test you should
> >do a dummy run or two of each command in fairly quick succession,
> >and then repeat your test runs a number of times and look at the
> >average and standard deviation of the execution times. ...
> 
> Yeah, Hoyle would like that. But for me, I think the results
> are clear enough without all the messing with statistical
> computations. 10 to 1 or better is good enough for me to think
> there's some major difference. That said, it would appear that
> caching can make a difference - which is why I put the Perl
> invocation first ... so it would be running without the benefit
> of caching. But I don't believe I was entirely successful in
> that effort. The very first time I ran this, which was also the
> very first time in a whole day that the klog file had been
> accessed, the first Perl invocation took about 2 seconds of
> real time and still only 0.7 seconds of user time. I don't
> believe caching explains the execution speed disparity.
> 
> It was mentioned that this function is made for awk, so I tried
> that as well. It is also evidently not as quick as Perl at
> doing the job. The time shown above is quite consistent with a
> number of other runs I've tried with awk.
> 
Keep in mind that awk, while producing a comparable result, likely uses
quite a different parsing strategy. While the comparison is interesting
for this particular test-case, different circumstances could produce
very different results.

> I suspect a real Perl internals maven could explain this. I
> have some ideas but they're conjecture. Perhaps some effort to
> improve execution efficiency in sed and awk would not be wasted?

My conjecture is this: the implementation of pcre that perl uses most
likely has good optimisation for the "ends with .*" part of the pattern
(vs sed). While the result is certainly interesting and perhaps
surprising[1], it is for a single, simple pattern which is far too
little to draw much in the way of conclusions from - except perhaps that
extracting the first field from a data source with many records can
possibly be effected more rapidly with perl or awk than sed.

Nevertheless, I've always dismissed perl as being "heavy and slow"
through anecdotal "evidence" and the results you found are a pertinent
reminder that assumptions like that are never worthy.


Wayne

[1] particularly in light of studies such as this one:
http://swtch.com/~rsc/regexp/regexp1.html


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


Re: sed/awk, instead of Perl

2008-08-21 Thread Wayne Sierke
On Thu, 2008-08-21 at 15:12 +0200, Wojciech Puchar wrote:
> >
> > cat tcpdump.txt | awk '{if ($3 != "192.168.100.204.25") print $3}' | \
> > awk '{FS = "."} {print $1,".",$2,".",$3,"."$4}' | sed s/" "//g
> 
> 
> why you all abuse "cat" command. simply awk  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: How to use dig with an ip list

2008-08-18 Thread Wayne Sierke
On Mon, 2008-08-18 at 22:52 -0500, Paul Schmehl wrote:
> --On August 18, 2008 10:13:54 PM -0500 Jeffrey Goldberg 
> <[EMAIL PROTECTED]> wrote:
> 
> > On Aug 18, 2008, at 9:03 PM, Paul Schmehl wrote:
> >
> >> I know I'm missing the obvious.  I want to use an IP list to
> >> generate an ip+hostname list.  IOW, I want to go from this:
> >>
> >> x.x.x.x
> >> y.y.y.y
> >>
> >> to this;
> >>
> >> x.x.x.x foo.domain.tld
> >> y.y..y.y bar.domain.tld
> >>
> >> What's the best/easiest way to do this?
> >
> > Easiest:
> >
> > $ for i in `cat ip-list`; do
> >  > echo -n "$i "
> >  > dig +short -x $i
> >  > done
> >
> 
> Don't know why I didn't think of that.
> 
> I ended up using this:
> for ip in `cat public_linux_ips`; do echo ${ip} `dig +short -x ${ip}`; 
> done > public_linux_ips_resolved
> 
> Which gave me the output I wanted.  Thanks for the pointer.
> 
Easiestest?

# host www.freebsd.org
www.freebsd.org has address 69.147.83.33
www.freebsd.org has IPv6 address 2001:4f8:fff6::21
www.freebsd.org mail is handled by 0 .
# host ftp.freebsd.org
ftp.freebsd.org has address 62.243.72.50
ftp.freebsd.org has address 204.152.184.73
ftp.freebsd.org has IPv6 address 2001:6c8:6:4::7
ftp.freebsd.org has IPv6 address 2001:4f8:0:2::e
# cat > freebsd.ips
69.147.83.33
62.243.72.50
204.152.184.73
# host 69.147.83.33
33.83.147.69.in-addr.arpa domain name pointer www.freebsd.org.
# awk '{ip=$1; "host "ip | getline; print ip,$NF }' freebsd.ips
69.147.83.33 www.freebsd.org.
62.243.72.50 ftp.beastie.tdk.net.
204.152.184.73 freebsd.isc.org.

s/host/dig/ to taste

The middle command - "host "ip | getline; - executes the 'cmd' part on
the left side of the pipe, getline parses the output, hence $NF now
gives the last field in the output from "host".


Wayne
(You don't know the power of the awk side!)


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


Re: Maildrop + sendmail

2008-08-17 Thread Wayne Sierke
On Fri, 2008-08-15 at 17:22 -0300, [EMAIL PROTECTED] wrote:
> Hi all,
> 
>   Maybe it's not a FBSD problem, but I think someone here have the 
> answer.
>   I'm trying to use maildrop as MDA with sendmail, but I'm facing 
> some troubles.
>   That is, since some of my local users don't have defined a home 
> dir, when maildrop is set to delivery mode (-d $u) in sendmail.cf, as 
> shown in sendmail docs:
> 
> FEATURE(`local_procmail', `/usr/local/bin/maildrop', `maildrop -d $u')
> 
>   the following message starts to show:
> 
> Aug 15 11:43:25 host1 maildrop[75586]: Unable to change to home directory.
> 
>   If, on the other hand, I set it in sendmail as in manual mode:
> 
> FEATURE(`local_procmail', `/usr/local/bin/maildrop', `maildrop 
> /usr/local/etc/maildroprc')
> 
>   The maildrop processes start to grow, and the following message 
> starts to show:
> 
> Aug 15 12:02:32 host1 sm-mta[83296]: m7FEvVMM083288: timeout waiting for 
> input from host1.mydomain.com during client greeting
> 
> Aug 15 12:02:32 host1 sm-mta[83296]: m7FEvVMM083288: smtpquit: mailer local 
> exited with exit value 75
> 
>   It seems that no message body is sent to maildrop.
>   Does any of you have successfully configured maildrop+sendmail in 
> an scenario like that?

I don't use the 'local_procmail' feature of sendmail so can't comment on
those specific issues. I have a mail server using sendmail/maildrop and
use /etc/mail/virtusertable and /etc/mail/aliases, e.g.:

[EMAIL PROTECTED] user-alias
[EMAIL PROTECTED] user-alias

user-alias:"| /usr/local/bin/maildrop -d [EMAIL PROTECTED]"

I don't know off-hand whether or how using the 'local_procmail' feature
impacts on the use of aliases and virtusertable, but there might be a
solution in there for you.

If you can't find a solution you might also try asking on the maildrop
users list.


Wayne


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


Re: general question - php5 extensions

2008-07-16 Thread Wayne Sierke
On Fri, 2008-07-11 at 22:47 -0400, Brad Mettee wrote: 
> Ok, maybe I wasn't as clear as I should have been.
> 
> It wasn't that I didn't find php5-extensions, or even that it's difficult 
> to use, but actually tracking down the php5-extensions directory in the 
> first place was somewhat of a problem because there is no mention anywhere 
> of it in the lang/php5 doc files. I finally stumbled on a reference to it 
> in a 2 year old doc I found on google while looking for how to make .so 
> extension extensions be found by php. 

Sometimes in these situations a little bit of lateral thinking can be
helpful. A couple of quick searches may have found you what you wanted:

%locate php | grep extension
/usr/ports/lang/php4-extensions
/usr/ports/lang/php4-extensions/Makefile
/usr/ports/lang/php4-extensions/pkg-descr
/usr/ports/lang/php5-extensions
/usr/ports/lang/php5-extensions/Makefile
/usr/ports/lang/php5-extensions/pkg-descr
%cd /usr/ports  &&  make quicksearch name=extension | grep -i
php
Port: php4-extensions-1.0
Path: /usr/ports/lang/php4-extensions
Info: A "meta-port" to install PHP extensions
Port: php5-extensions-1.1
Path: /usr/ports/lang/php5-extensions
Info: A "meta-port" to install PHP extensions

Alternatively pipe to less(1) rather than grep(1) and use its search (/)
which can help to locate context-related information which might
otherwise be hidden by the more rigid grep filtering.

> There's also a couple of extensions 
> not in the php5-extensions list, but I found them as well (samba share, 
> "dir php5-* /ad /s" starting in the /usr/ports directory helped a lot).

find(1) will help you kick that nasty MS-DOS habit:

find /usr/ports -type d -name "php5-*"

and even:

ls -d /usr/ports/*/php5-*

could help reduce gratuitous use of SMB.

If you feel strongly enough that the existing documentation is
inadequate, you always have the option of submitting a PR to suggest
that it be changed, and also of submitting patches that implement your
suggestion.


Wayne


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


Re: why is this script failing?

2008-07-16 Thread Wayne Sierke
On Wed, 2008-07-16 at 15:01 +0100, RW wrote:
> On Wed, 16 Jul 2008 15:52:59 +0930
> Wayne Sierke <[EMAIL PROTECTED]> wrote:
> 
> > On Wed, 2008-07-16 at 11:42 +1000, Norberto Meijome wrote:
> > > you can always do 
> > > 
> > > find /tmp/kde-*/ -iname "*wav" -print0 | xargs -0 rm -vf
> > > 
> > > the advantage over doing using rm * or for * in ... is that if you
> > > have LOTS of files, the expanded list of files may be too much.
> > > find | xargs will deal with each file in turn. ( -print0 and -0 is
> > > to use NULL char as a list delimiter instead of space... ).
> > > 
> > Note that - as highlighted in previous discussions on the fbsd lists
> > re the use of xargs with find - find is eminently capable of handling
> > large argument lists and filenames_with_spaces with its own -exec
> > primary:
> > 
> > find /tmp/kde-*/ -iname "*wav" -exec rm -vf {} \;
> > 
> > to exec rm for each file individually, or:
> > 
> > find /tmp/kde-*/ -iname "*wav" -exec rm -vf {} \+
> > 
> > to exec rm for multiple files at once.
> > 
> > Piping to xargs in this case is unnecessary.
> 
> 
> You don't even need exec, since find has a -delete option.

Except that the -delete primary of find is not the equivalent of rm -vf,
or even of just rm -f.


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


Re: why is this script failing?

2008-07-15 Thread Wayne Sierke
On Wed, 2008-07-16 at 11:42 +1000, Norberto Meijome wrote:
> you can always do 
> 
> find /tmp/kde-*/ -iname "*wav" -print0 | xargs -0 rm -vf
> 
> the advantage over doing using rm * or for * in ... is that if you
> have LOTS of files, the expanded list of files may be too much. find |
> xargs will deal with each file in turn. ( -print0 and -0 is to use
> NULL char as a list delimiter instead of space... ).
> 
Note that - as highlighted in previous discussions on the fbsd lists re
the use of xargs with find - find is eminently capable of handling large
argument lists and filenames_with_spaces with its own -exec primary:

find /tmp/kde-*/ -iname "*wav" -exec rm -vf {} \;

to exec rm for each file individually, or:

find /tmp/kde-*/ -iname "*wav" -exec rm -vf {} \+

to exec rm for multiple files at once.

Piping to xargs in this case is unnecessary.


Wayne


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


RE: Whine when EHCI controller enabled in BIOS

2008-06-09 Thread Wayne Sierke
On Mon, 2008-06-09 at 11:27 -0400, Bob McConnell wrote:
> On Behalf Of cpghost
> > On Sun, 8 Jun 2008 21:40:17 -0600
> > James <[EMAIL PROTECTED]> wrote:
> > I'm no specialist and it may be an urban legend, but from
> > what I gathered, some coils could exhibit the behavior of
> > generating those high-pitched whines when exposed to certain
> > frequencies.
> > 
> > -cpghost.
> 
> No legends here. The horizontal sweep frequency for televisions in the
> US is 17,500 Hz. Many people could hear that whistle from cheap flyback
> transformers. Other devices would buzz, hum or rattle when they
> resonated with EM fields. Occasionally they can be heard by humans, more
> frequently they can be heard by their pets. As I have gotten older, I
> don't notice it as much.
> 
Indeed. About 20 years ago our company produced a data logger for a
local gas utility. At one point our bright, young design engineer
replaced a linear voltage regulator with a switch-mode design - quite
novel at the time. Only thing was, the hand-wound inductor coils
inevitably emitted a hissing noise, not entirely unlike the sound of
escaping gas!


Wayne


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


Re: formatting disk for FreeBSD : Detecting IDE Primary Master ... [Press F4 to skip]

2008-01-26 Thread Wayne Sierke
David,

On Sat, 2008-01-26 at 00:48 +, David Larkin wrote:
> It is a fairly old machine I  am trying to use.
> One that has been switched  off and  gathering dust for some time. 
> 
> ROM PCI/ISA BIOS  2A5LHL1A
> 
> Award Modular  BIOS v4.51PG, AnEnergy Star Ally
> Copyright(c)  1984-99  Award Software, Inc.

That bios description looks terribly familiar.

> I've never updated a BIOS before and it sounds a  bit scarey.

Well, the first step is to see if there's even one available. You might
well find the machine already has the latest available (manufacturer's)
bios.

> I guess I'll  just overwrite an old 10Gig disk with FreeBSD 4.3 on instead.
> 
> I don't really  need the extra space but thought it would be sensible to 
> install on a new disk.
> 
> Probably  stick the new disk on ebay  ;-)

Well, depends what you want to do with the machine. Chances are you'll
find that you're going to want that extra space soon enough. Plus
there's no telling how much life is left in that old 10 Gigger - not
that there's any guarantee your new one won't fail, either. Such is
life. Having two physical drives can be useful in a number of
circumstances, too.

I posted some years back about difficulties I was having getting a bios
to recognise a large hdd's geometry. Yes, here:

http://lists.freebsd.org/pipermail/freebsd-questions/2003-April/002301.html

Note the part about setting the heads to 15 in the bios. That is,
disable the auto-detect-on-boot and set the geometry manually.

Good luck.


Wayne

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


Re: Maildrop filtering issues

2008-01-25 Thread Wayne Sierke
Derrick,

On Fri, 2008-01-25 at 00:22 -0500, Dantavious wrote:
>   Hi all,
> I have a working Postfix Mailserver with maildrop installed. This mailserver 
> is setup for virtual accounts. I would like to filter incoming mail using 
> maildrop at the server. I followed all the docs that I could find out on the 
> net concerning this setup. What I have done so far is.
> 
> Created a  .mailfilter in the /home/vmail file that points to the 
> .mailfilters 
> file.
> 
>  less .mailfilter
> xfilter "/usr/local/bin/spamc"
> # Check for user defined filter file
> exception {
> logfile $HOME/.maildrop.log
> include "$HOME/mailfilters/$LOGNAME"
> 
> }
> 
> 
> In my "$HOME/mailfilters//$LOGNAME"/ , I have a [EMAIL PROTECTED] mailfilter 
> file that looks like this.
> 
> if (/^From:[EMAIL PROTECTED]/)
> {
> 
> exception {
>   to "$DEFAULT/.Comcast/"
>   }
> 
> }
> 
> 
> All messages sent here does not go into the .Comcast folder but in my inbox. 
> I 
> also do not get any entires in the maildrop.log that i setup. Does anyone 
> have this setup and working. Any help would be greatly appreciated.
> 

"include" specifies a filename, according to the maildropfilter(7) page
I've got here. It's not clear how these match each other:

include "$HOME/mailfilters/$LOGNAME"

In my "$HOME/mailfilters//$LOGNAME"/ , I have a [EMAIL PROTECTED] 
mailfilter 
> file that looks like this.

I had always found logging to be somewhat temperamental when I was
setting up maildrop some years ago. I haven't messed with my .mailfilter
settings much lately apart from adding filters for new mailing lists,
but I just un-commented my old logfile line and it started working
immediately:

logfile "${HOME}/maillog.log"

Check directory/file permissions/ownership?

If you can't resolve it you'd do better taking this to the maildrop
mailing list I'd wager.


Wayne

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


Re: Eclipse and FreeBSD7

2008-01-19 Thread Wayne Sierke
On Sun, 2008-01-20 at 00:02 +1300, Jonathan Chen wrote:
> On Sat, Jan 19, 2008 at 05:36:17PM +1030, Wayne Sierke wrote:
> > On Sat, 2008-01-19 at 11:58 +1300, Jonathan Chen wrote:
> > > Eclipse will only work with the native-jdk. Use your installed
> > > diablo-jdk to build the native-jdk, and then remove the diablo-jdk.
> > 
> > Does that only apply for 7.0 and/or eclipse-3.2? I previously had
> > eclipse-3.3 (eclipse-devel) running with diablo-jdk-1.5.0.07.01 on
> > RELENG_6.
> 
> According to the commit message on the eclipse port, this would apply
> to FreeBSD 7.x and higher.
> 

Missed it by *that* much. My ports tree was one day older than the
commit.

Thanks for the pointer.


Wayne

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


Re: Eclipse and FreeBSD7

2008-01-18 Thread Wayne Sierke
On Sat, 2008-01-19 at 11:58 +1300, Jonathan Chen wrote:
> On Fri, Jan 18, 2008 at 09:40:39PM +0100, Nicolas Letellier wrote:
> 
> [...]
> > I saw this page (http://www.freebsd.org/cgi/query-pr.cgi?pr=118115) 
> > which says that the last version has corrected the problem (3.2.2_1). 
> > But the problem is the same. The new version doesn't install jdk*.
> > I just installed diablo.
> 
> Eclipse will only work with the native-jdk. Use your installed
> diablo-jdk to build the native-jdk, and then remove the diablo-jdk.

Does that only apply for 7.0 and/or eclipse-3.2? I previously had
eclipse-3.3 (eclipse-devel) running with diablo-jdk-1.5.0.07.01 on
RELENG_6.

eclipse is one of the few remaining ports I've yet to update since
moving this box to RELENG_7. It actually did get put through a
portupgrade cycle but I neglected to have WITHOUT_MOZILLA set which
seems to be necessary for eclipse to run on FreeBSD.


Wayne

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


NVIDIA glitch? w. AMD64

2007-11-19 Thread Wayne M Barnes
Dear FreeBSD,

I have tried to install 6.2 and 7.1beta onto a new computer.  The 
installs seem to start up fine, whether via FTP or from an install disc1
CD, but during the loading of the binaries, the installs reliably
encounter a "Signal 10 caught! That's bad!" or the Checksum fails on
the chunks being copied from the CD.

Is there a known incompatibility with these motherboard components,
which include 
CHIPSET 
NVIDIA GeForce 6100 & nForce 410
North Bridge: NVIDIA GeForce 6100
South Bridge: NVIDIA nForce 410   ?

http://www.ecs.com.tw/ECSWebSite/Products/ProductsDetail.aspx?detailid=653&DetailName=Specification&MenuID=46&LanID=0

UPDATING seemed to be discussing issues of NVIDIA in 2004,
but that should be over now, right?

I tried it with and without ACPI.

-- 

Wayne M. Barnes, Ph.D.[EMAIL PROTECTED]
Biochemistry Dept. 8231 fax:  314.754.9556
Washington Univ. Medical School ph:   314.362.3351  
660 South Euclid Ave., St. Louis, MO 63110
   http://barnes1.wustl.edu   Just plain Taq is old tech anymore.

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


natd and jails for multipel IP addresses

2007-03-12 Thread Michael R. Wayne
I'm trying to add a second IP address to an existing jail
using natd and I must be missing something.  

Setup:
   HOST_IP  The host, attached to fxp0
   JAIL_IP  The existing, working jail
   2ND_IP   The IP address I'm trying to natd to the jail

I've got ipfw rules to catch traffic to/from the new IP and nothing
blocking them:
   00300 divert 8668 ip from any to 2ND_IP via fxp0
   00310 divert 8668 ip from 2ND_IP to any via fxp0

natd is running with:
   /sbin/natd -log -verbose -redirect_address JAIL_IP 2ND_IP -alias_address 
JAIL_IP

But, natd seems to be translating the source, not the dest IP:
   % ping 2ND_IP
yields:
   Out {default}[ICMP] [ICMP] HOST_IP -> 2ND_IP 8(0) aliased to
  [ICMP] JAIL_IP -> 2ND_IP 8(0)

Whereas, I would expect this to do:
   HOST_IP -> 2ND_IP
translated to
   HOST_IP -> JAIL_IP
and the reverse.

WTH am I missing here?

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


Missing pkg-descr - Correction

2006-12-13 Thread Wayne M. Barnes
Correction:  This problem happened during "make all install"
for the port java/jdk15 (Not "portinstall")

- Forwarded message from "Wayne M. Barnes" <[EMAIL PROTECTED]> -

Date: Wed, 13 Dec 2006 12:19:18 -0600
From: "Wayne M. Barnes" <[EMAIL PROTECTED]>
To: freebsd-questions@freebsd.org
Subject: Missing pkg-descr
User-Agent: Mutt/1.4.2.1i

Dear FreeBSD,

The following "Missing pkg-descr" is happening to me a lot, with many 
packages.  This time it was during "portinstall jdk15".

===>  Installing for m4-1.4.8_1
===>   Generating temporary packing list
** Missing pkg-descr for m4-1.4.8_1.
*** Error code 1

Stop in /usr/ports/devel/m4.
*** Error code 1

This time it is on a brand-new install of FreeBSD 6.2.

How can I be responsible for the "pkg-descr".  

This is the second time I have asked this question.  I got
no help before.  My email was down briefly.  Did I miss the answer?

Thank you,

-- 

Wayne M. Barnes, Ph.D., President   lab at:
DNA Polymerase Technology, Inc. The Inventery
11 Princeton Avenue 1508 S. Grand Blvd
University City, MO 63130   St. Louis, MO 63104

fax (314)754-9556  Phone: 314.680.0575 email: [EMAIL PROTECTED]

- End forwarded message -

-- 

Wayne M. Barnes, Ph.D., President   lab at:
DNA Polymerase Technology, Inc. The Inventery
11 Princeton Avenue 1508 S. Grand Blvd
University City, MO 63130   St. Louis, MO 63104

fax (314)754-9556  Phone: 314.680.0575 email: [EMAIL PROTECTED]
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Missing pkg-descr

2006-12-13 Thread Wayne M. Barnes
Dear FreeBSD,

The following "Missing pkg-descr" is happening to me a lot, with many 
packages.  This time it was during "portinstall jdk15".

===>  Installing for m4-1.4.8_1
===>   Generating temporary packing list
** Missing pkg-descr for m4-1.4.8_1.
*** Error code 1

Stop in /usr/ports/devel/m4.
*** Error code 1

This time it is on a brand-new install of FreeBSD 6.2.

How can I be responsible for the "pkg-descr".  

This is the second time I have asked this question.  I got
no help before.  My email was down briefly.  Did I miss the answer?

Thank you,

-- 

Wayne M. Barnes, Ph.D., President   lab at:
DNA Polymerase Technology, Inc. The Inventery
11 Princeton Avenue 1508 S. Grand Blvd
University City, MO 63130   St. Louis, MO 63104

fax (314)754-9556  Phone: 314.680.0575 email: [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: BSDStats Report for December 1st, 2006

2006-12-07 Thread Wayne Sierke
On Sun, 2006-12-03 at 04:09 -0400, Marc G. Fournier wrote:
> Numbers are up from November, which is what we hope for ... not drastically, 
> but 7.5% isn't shabby either:
> 
> Last MonthThis Month  % Change
> Total Systems 2085  2254 7.50%
> 
> alpha3 3 0.00%
> amd64  173   163-6.13%
>  i386 1893  2072 8.64%
>  ia641 0 0.00%
>   sparc64   1516 6.25%
> 
>   4.x  224   220-1.82%
>   5.x  303   37218.55%
>   6.x 1533  1623 5.55%
>   7.x   253935.90%
> 
The % Change is calculated incorrectly. It uses the "This Month" figure
as the baseline instead of the "Last Month", unless you specifically
intend to do it that way.

e.g.
7.x 25 -> 39  Change = +14

+14/25 = +56%
+14/39 = +36%


Wayne

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


Re: how do I see security logs without turning on sendmail?

2006-12-06 Thread Wayne

Wasp King wrote:

there must be a way to enable only local mail
delivery...but I am not sure how..


Someone already posted the rc.conf switches to disable sendmail.  Use 
those, esp sendmail_enable="NONE" to get rid of it.  Then install an 
alternate.  I use SSMTP from the ports.


  -Wayne

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


Re: BSDStats Report for December 1st, 2006

2006-12-04 Thread Wayne

hal wrote:
Since the point of this is to be run monthly, out of periodic 
monthly, the 1st
of the month is when all hosts should be 'renewing' their information 


Cool project.  Just added my main machine to it.

Is there any way for me to see what it's really sending?  Looks like it 
sends a bunch of http posts, rather than one output file that could be 
examined?  My script skills are novice at best.


  -Wayne

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


pkgdb -F

2006-11-11 Thread Wayne M Barnes
Updating the ports index ... Generating INDEX.tmp - please wait..realpath: 
/tmp/a/ports/www/apache2: No such file or directory
realpath: /tmp/a/ports/www/apache2: No such file or directory
realpath: /tmp/a/ports/www/apache2: No such file or directory
realpath: /tmp/a/ports/www/apache2: No such file or directory
realpath: /tmp/a/ports/www/apache2: No such file or directory
. many lines the same 

Dear FreeBSD,

Are the above messages indicating anything I should worry 
about?  They come up often when I am running portinstall or 
pkgdb -F.

What can I do to eliminate them?

Thank you,

-- 
Wayne M Barnes
[EMAIL PROTECTED]fax: (314) 754-9556
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


libpangocairo

2006-11-10 Thread Wayne M Barnes
Dear FreeBSD,

For the packages mozilla and inkscape, I cannot locate or install
libpangocairo.so

Where can I find it?
> inkscape
/libexec/ld-elf.so.1: Shared object "libpangocairo-1.0.so.0" not found, 
required by "inkscape"

This system is FreeBSD 5.5, fresh cvsup of all sources and ports.

-- 
Wayne M Barnes
[EMAIL PROTECTED]fax: (314) 754-9556
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


SCSI Controller Question

2006-10-30 Thread Wayne

Hey Guys,

Not entirely FreeBSD specific, but I was hoping someone could help with 
a question about SCSI controllers.


One FreeBSD system here is running drives on an old Adaptec 2940 
controller.  I would like to upgrade the controller, as the drives are 
actually Ultra 160 capable.  Can you normally just swap SCSI drives onto 
a different controller, and still access all the data?  (like with IDE) 
 Or will I need to dump & restore, also?


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


Recommended Hardware

2006-10-19 Thread Wayne

Is there a list of "recommended" hardware for FreeBSD (i386 in my case)?

I know there is a "Hardware Notes" section in the release notes, that's 
not what I'm asking!


If I was going to build or spec' a system, what subset of the supported 
hardware is best?  I've heard cons, like manufacturer's apathy or 
negativity towards FreeBSD.  I guess Pros would include stable, actively 
developed drivers, consistency and long term availability of products 
(unlike manufacturers who release 3 totally different boards in a year 
with the same model number!), etc...


Thanks for your input,

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


Re: idle auto logoff

2006-10-11 Thread Wayne

Noah wrote:
cannot figure out what is auto logging me off when I am idled on the 
machine.


How are you talking to the machine?  Is it on the same LAN segment as 
the host you're connecting from?  (guessing you're using telnet or ssh)


If you're going through some kind of router, esp a NAT one, your 
connections me be dropped when idle, unless you're sending some kind of 
keep-alive packets.


  -WC

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


PortSnap problems & relocating ports

2006-10-03 Thread Wayne
I've been using portsnap on 6.x systems for some time now with no 
problems.  I decided to move /usr/ports and /usr/src to their own 
filesystem, /build, to make it easier to backup the important system 
stuff.  I also relocated /var/db/portsnap to /build/db/portsnap.


I thought I could edit /etc/portsnap.conf to reflect the new location, 
and do things as before.  I edited WORKDIR and PORTSDIR, and set 
PORTSDIR (env var) but now I get:


# portsnap fetch
portsnap: Directory does not exist or is not writable: /var/db/portsnap

Looks like it's ignoring portsnap.conf.  So I explicitly name it:

# portsnap -f /etc/portsnap.conf fetch
portsnap: Directory does not exist or is not writable: /var/db/portsnap

Same thing.  What's up?  So instead I specify both on the command line:

# portsnap -d /build/db/portsnap -p /build/ports fetch

Ahh now it works.  Bug?  Or am I doing something wrong.

Which brings up the next question:  What's the best way to relocate the 
source and ports?  I could grab the dull hatchet and sym-link all the 
defaults to the new locations.  But what's the correct method?


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


How to Re-Label / Re-create filesystems?

2006-10-02 Thread Wayne
Could someone point me to instructions or offer suggestions on how to 
re-configure file systems on a 6.x system?


When I installed from CD, I used the sysinstall menu, which I guess 
actually calls bsdlabel and newfs (??)


I want to delete two filesystems, and recreate one large one in the same 
space.  I tried dropping to single user and running sysinstall, but it 
protests it can't write to the device... even when I only had things 
mounted read-only.  Can I safely use the boot CD to do this?  I don't 
want to experiment too much and clobber the whole drive!


 -Thanks,  Wayne

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


Reducing reserved space on large filesystems

2006-09-19 Thread Wayne Sierke
I was very interested to read the following written by Matthew Seaman in
2004.
http://lists.freebsd.org/pipermail/freebsd-questions/2004-January/033754.html

The parameters given to newfs(8) don't depend on the size of the
filesystem, so much as the size of the files you intend to store
within it, and the sort of directory structure you want to use
(ie. how many files per directory) Many of the tunables in newfs(8) to
do with the details of disk geometry don't make sense with modern
drives and should be ignored.

You should try running 'newfs -N' with various values for the '-g'
average file size and '-h' average numbers of files per directory
parameters to see what sort of numbers it spits out.  You don't have
to be too accurate with those file size and files per directory
estimates -- order of magnitude is generally good enough.  Unless
you're going to be storing exceptionally large files (say, typical
size 20Mb) or you want to have directories with 5,000 or more files in
them, then just using the newfs(8) default values will work very well.

One thing you can do for any file system over about 256Mb is drop the
free space reserve ('-m' option in newfs(8), or it can be modified in
an existing filesystem using tunefs(8)).  1% is more than adequate if
you're creating a multi-gigabyte filesystem.

I'm especially interested in the comment about the 'free space reserve'
which flies in the face of everything I can recall ever reading that has
always mirrored the warnings in tuning(7) and tunefs(8) about the perils
of reducing the reserved space below the default. However I didn't see
any reply to Matthew's email to repudiate his statements.

What are people's experiences in the field? Are the cautions now much
less relevant with modern hard-drive capacities and performance?


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


Re: Can not add partitions to existing 3ware RAID?

2006-07-27 Thread Michael R. Wayne
On Thu, Jul 27, 2006 at 10:45:07PM -0600, Chad Leigh -- Shire.Net LLC wrote:
> 
> Do you have a securelevel set in rc.conf
> 
> kern_securelevel_enable="YES"
> kern_securelevel="1"
> 
> where the number is > 0  

Good point, I neglected to mention that.  No, I'm not running secure:

  > sudo sysctl kern.securelevel
  kern.securelevel: -1

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


Can not add partitions to existing 3ware RAID?

2006-07-27 Thread Michael R. Wayne

Tonite I was going to allocate some more disk space to a 6.1 RELEASE
system.  I did it the same way I've done it for years:  I went into
sysinstall, selected
   Custom->Partition
and added a new partition (twed0s3) using some of the remaining
space.  I then moved up to twed0s1 and did an "S" because
sysinstall never remembers that the first slice was bootable and
not doing this leaves one with an unbootable system.

I then do a "W" to write out this information, say "Yes" to the
warning since I am modifying an existing system and select the
Standard Boot Manager.  Instead of the normal response, I get
   ERROR: Unable to write data to disk twed0!
and
   Disk partition write returned an error status!
which is most disconcerting.

No messages in the logs or on the (serial) console.  Checking
sysinstall again, the disk remains unchanged.

Has something recently changed in this process?

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


Re: Sendmail = mind boggling

2006-06-09 Thread Wayne

Freminlins wrote:

I want to keep running Exim on port 25. I want Sendmail to run on a
different port. So I am trying to use the  "O DaemonPortOptions=Port=2525"
option. However, I have 6 cf files in /etc/mail - freebsd.cf,


For quite some time now, it has been strongly suggested that you DO NOT 
try to manually edit the .cf file.  You edit the something.mc file, and 
use the m4 macro processor to generate a .cf file.  FreeBSD comes with a 
Makefile in /etc/mail to simplify (or compplicate?) things.  Read the 
top of it for info.  Basically, it looks for "hostname.mc" in /etc/mail, 
and failing that uses freebsd.mc.  It spits out .cf files with the same 
prefix as the .mc file it used.  "make install" will write that file to 
/etc/mail/sendmail.cf which is the one the daemon really reads.


   -Wayne

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


man pages in plain text - how to?

2006-06-09 Thread Wayne

Hi,

Was wondering how to get "man" to output pages in plain text?  I want 
the basic formating (indentation & whatnot) but NOT the bold and other 
special effects.  Just ascii text I can grep through.  I tried setting 
the terminal type to "dumb" and the stupid thing still tries to do 
back-space overstrike bolding (jeesh - even LA-120s had fancier print 
capabilities than that, IIRC.)


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


Actually getting past the #

2006-04-01 Thread Wayne
I can't get past the # in FreeBSD What's the deal with this version? I need
some help with this version. Help
 
Wayne___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Re: Linux migration

2006-03-23 Thread Wayne



On 23/03/2006 14:54, "Jerry McAllister" <[EMAIL PROTECTED]> wrote:
> If you really want to run in RedHat land, then just run RedHat.
> FreeBSD has its own tools - some of them with the same or similar name
> and some different that will do what you need just fine.  But they won't
> turn FreeBSD in to RedHat.   Probably it will be better.
> 
> jerry
> 

That's a fair point jerry, I was just wondering if something like that
existed. I prefer a lot of parts of FreeBSD to RHEL especially dealing with
the kernel. It was just a thought..
Thanks all the same for you input though..

Regards,
 Wayne


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


Re: Linux migration

2006-03-23 Thread Wayne
Hi Daniel,

Thanks for your email. I have already done this, but I was looking more
>From the perspective of other companies who have done similar, case studies
type things. Would help me out a great deal with my presentation.

Also another thing that I was thinking about since my original mail, things
like chkconfig and commands like say 'service network restart'. Does such a
thing like a "redhat layer" type project exist so that emgineers who must
convert to freebsd have as much of the day to day commands available to them
while retraining?

Higher ups like knowing things will be as smooth as possible and most of the
inhouse experience is with RHEL so I don't want to end up lumping a lot of
extra work on the people with freebsd experience...

Thanks,
 Wayne


On 23/03/2006 14:35, "Daniel A." <[EMAIL PROTECTED]> wrote:

> On 3/23/06, Wayne <[EMAIL PROTECTED]> wrote:
>> Hey Guys,
>> 
>> Can anybody point me to some good resources on mingrating from Linux to
>> FreeBSD?
>> Since the threads issue which would have had detrimental effects on MySQL on
>> FreeBSD has been sorted out with FreeBSD 5 we are looking at the possibility
>> of migrating from RHEL to FreeBSD for our web services.
>> Does anybody have any links to some good resources on migration from Linux
>> to FreeBSD, I know google is my friend but I was hoping that some folks on
>> here might have an idea of 'best of' that I can use for presenting the
>> case...
>> 
>> Thanks,
>>  Wayne
>> 
>> 
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "[EMAIL PROTECTED]"
>> 
> It really depends.
> If your setup is exotic and complex, I dont think you will ever be
> able to find a guide. On the other hand, if your setup is simple (eg,
> PHP+Apache+MySQL, not clustered) then the migration is so simple, you
> wont even need a guide.
> 
> Your best bet is to set up a box with FreeBSD, configure it to your
> liking, install the software you need, and just simply copy over the
> configuration files, database files and user files over to the FreeBSD
> box.
> 
> --
> ** Email Scanned by Elive's Virus Scanning Service -
> http://www.elive.net **
> 
> 
> 
> 


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


Linux migration

2006-03-23 Thread Wayne
Hey Guys,

Can anybody point me to some good resources on mingrating from Linux to
FreeBSD?
Since the threads issue which would have had detrimental effects on MySQL on
FreeBSD has been sorted out with FreeBSD 5 we are looking at the possibility
of migrating from RHEL to FreeBSD for our web services.
Does anybody have any links to some good resources on migration from Linux
to FreeBSD, I know google is my friend but I was hoping that some folks on
here might have an idea of 'best of' that I can use for presenting the
case...

Thanks,
 Wayne


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


6.1 breaks the quota command in jails?

2006-03-16 Thread Michael R. Wayne
I'm used to using the hack where one has a named quota file in the
host system's /etc/fstab and a (properly trimmed) link to the same
file in the jail's /etc/fstab with noauto.  But, on 6.1, the quota
command is unable to work properly in the jailed environment for
non-root users:

[EMAIL PROTECTED] 1009> quota
Disk quotas for user wayne (uid 5147): 
 Filesystem   usage   quota   limit   grace   files   quota   limit   grace
/usr/jails/jail3
  34348   4   45000 777   0   0


[EMAIL PROTECTED] 419> quota
quota: /usr/quotas/shell.root: Permission denied
Disk quotas for user wayne (uid 5147): none

[EMAIL PROTECTED] 420> sudo quota wayne
Disk quotas for user wayne (uid 5147): 
 Filesystem   usage   quota   limit   grace   files   quota   limit   grace
  /   34348   4   45000 777   0   0


I know this worked on 4.x, is there any workaround available?

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


Re: Setting fbsd up as a router?

2006-03-08 Thread Wayne Cox

At 04:28 PM 3/6/2006, Huy Ton That wrote:
Would anyone happen to know where I may find tutorials on setting up 
my FBSD 6.0 Release box as a router with the intention to add 
firewall services?


It is not 'BSD based [wish it was]  but rather than reinvent the 
wheel, I would strongly recommend you try out  IP-Cop 
http://ipcop.org/A mere 20MB download gets you a CD ISO image 
that installs the whole Linux based firewall on a PC.  Up to 4 
interfaces, web configuration, traffic statistics, snort, transparent 
squid proxy, DHCP, VPN,  just about anything you would probably want.


   -Wayne

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


where is my desktop

2006-02-21 Thread Wayne
I'd like to know where my desktop is. All I get is the man pages. Now I got a 
screensaver But where is the rest of it. No terminal no telnet nothing. I can't 
even get the X box on the screen like I do with some of the other programs I 
have tried. How can I load up mfboot and the other file to floppies if my hard 
is dedicated to the FreeBSD an entire disk.

Please Help!

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


How to remove Boot Menu

2006-02-20 Thread Wayne

Hi All,

I have a new server loaded with 6.0-Release.  During the 
installation, I told it to use the "boot manager" -- boot0 if I have 
my terminology straight.


So on every start, I get the:
F1 FreeBSD
Default: F1
menu.

How can I get rid of this, and just boot straight into BSD?   Some 
online docs suggested:fdisk -b /boot/mbr /dev/ad4would work, 
but I've still got the menu.


Usually I'll poke around more before asking, but I really don't want 
to trash something, loose the partition table and have to start from 
scratch.  Suggestions?


  -Thanks,   Wayne

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


how do I

2006-02-19 Thread Wayne
How Do I get the terminal on the screen. I am having problems with the GUI part 
of Either the KDE or the Gnome it was installed.
Wayne
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Any experience with HP DL360 G4P SATA?

2006-01-12 Thread Michael R. Wayne

After reading the description of this box by Marc G. Fournier, I
did some digging and the features look very interesting (particluarly
the fact that one NEVER needs a monitor or keyboard to configure
it and access is via ssh).  Marc opted for the SAS version of the
box and seems to have it working properly.

I'm wondering if anyone has any experience with the SATA version
of this box, in particular does the RAID work?  We tend to use a
lot of servers where disk speed is not relevant and a couple of
small mirrored disks wold work.

Digging through Google with 
   DL360 G4P SATA freebsd
did not show anything useful, hence the post here.

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


Re: 5.4 on a Dell D800

2005-10-13 Thread Wayne Witzke

Bob Middaugh wrote:

On Behalf Of Wayne Witzke


Ugo Bellavance wrote:


Hi,

   I tried installing 5.4 on my Dell D800 laptop.  After the


first 

boot, my keyboard stopped working.  I don't know what to do 


from now 


or if it is even worth the effort.  Should I try 6.0RC?


I have 5.4 installed on a 2 year old Dell D800 laptop and so 
far everything works perfectly except for my CDROM (which I'm 
beginning to think is failing anyway).




Hi Wayne, can you post your kernel config file, or tell us what
devices you're using for sound and the wireless nic?  My wireless nic
is an Intel 2200BG, I don't know if they're the same for all D800's,
mine is only about a year old.  Thanks,
Bob


Well, my wireless nic is a DELL TrueMobile 1300 (it's a rebranded 
Broadcom card, I think), and the audio is a SigmaTel STAC9750/51 AC97 
Codec.  At least, that's what dmesg is telling me about my sound card, 
and since I'm listening to music right now I can only assume it's right.


In order to get the audio working, I had to add the following line to 
/boot/loader.conf:


snd_ich_load="YES"

My wireless nic is an 802.11b/g card, and in order to get it to work, I 
had to go the Project Evil route.


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html

That gets the device up and running, but you also have to figure out 
what your ssid is and set that using ifconfig for ndis0.


But, heh, but doing a quick search to find out where to specify ssid in 
configuration options to make it pick that up automatically on boot, I 
ran across this:


http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html

I get the impression that you might want to try this first.  It looks 
like it might be a bit more specific to your hardware.


Hope this helps!

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


Re: CDROM Unknown Transfer Error crashes system

2005-10-13 Thread Wayne Witzke

Lowell Gilbert wrote:

Wayne Witzke <[EMAIL PROTECTED]> writes:



I'm a little confused...  I thought I had RELENG_5_4.  "uname -a" says:

FreeBSD wlaptop 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Thu Oct  6
21:18:29 EDT 2005
 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WLAPTOP  i386

Isn't this RELENG_5_4?



It was, but some patches have been applied since the release was
made.  I was suggesting RELENG_5, not RELENG_5_4; in other words, the
branch that will eventually become the 5.5 release.


I'll see if I can't figure out how to do this, then.  I had no idea that 
I wasn't running the most current.






Lowell Gilbert wrote:




Is there anything that I can do to capture more information the next
time my computer reboots spontaneously?


Try to get a crash dump.  There's more information on it in the
Handbook.  And some related information on panic analysis (if you can
get it to that point) in the FAQ.



I'll try that, it doens't sound too difficult.  Just so I know, if I
was going to see a kernel panic message, I'd be seeing one before the
computer reboots, right?



I thought that was what you were describing in earlier messages.


I'm *NOT* getting anything of this form (from the FAQ):

Fatal trap 12: page fault while in kernel mode
fault virtual address   = 0x40
fault code  = supervisor read, page not present
instruction pointer = 0x8:0xf014a7e5
stack pointer   = 0x10:0xf4ed6f24
frame pointer   = 0x10:0xf4ed6f28
code segment= base 0x0, limit 0xf, type 0x1b
= DPL 0, pres 1, def32 1, gran 1
processor eflags= interrupt enabled, resume, IOPL = 0
current process = 80 (mount)
interrupt mask  =
trap number = 12
panic: page fault

All I get is the single line error message in the system log:

acd0: unknown transfer phase

and then the computer drops to a POST and reboots.  I see nothing on my 
screen between the error and the POST.


One of the diagnostic steps that the FAQ mentions is to trace the 
instruction pointer.  My assumption was that if the system was going to 
give me a message like that, I'd see it before the POST, but I wanted to 
make sure that I didn't need to be looking for that message in a log 
somewhere, or changing a configuration option somewhere to make the 
system generate an error message of that form, because I definitely 
don't see that before the POST.


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


Re: 5.4 on a Dell D800

2005-10-12 Thread Wayne Witzke

Ugo Bellavance wrote:

Hi,

I tried installing 5.4 on my Dell D800 laptop.  After the first 
boot, my keyboard stopped working.  I don't know what to do from now or 
if it is even worth the effort.  Should I try 6.0RC?


Regards,


I have 5.4 installed on a 2 year old Dell D800 laptop and so far 
everything works perfectly except for my CDROM (which I'm beginning to 
think is failing anyway).


You might want to check the boot messages and see what keyboard drivers 
it's loading, or connecting an external keyboard and seeing if that works.


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


Re: CDROM Unknown Transfer Error crashes system

2005-10-12 Thread Wayne Witzke

Lowell Gilbert wrote:

Don't top-post, please.

Wayne Witzke <[EMAIL PROTECTED]> writes:



Lowell Gilbert wrote:


Wayne Witzke <[EMAIL PROTECTED]> writes:



I've googled the error, but the information was mostly related to cd
burning or errors in different releases from months or years
ago. Nothing recent that I could find.

Does anybody have any idea what's going on and how I can fix whatever it is?


You could talk to the main ATA developer ([EMAIL PROTECTED]), but he
will almost certainly want to know what happens with more recent
code.  Can you try updating your system?





Thank you for your reply!

Are you talking about upgrading to the 6.0-BETA?  Is it a fairly
transparent process, or is it going to require a lot of reconfiguring
and reinstalling?  I'm not sure I have time to update if that's the
case.  I'm working under a deadline at the moment.



RELENG_5 would be an improvement.  It's not necessary, but developers
find it much easier to debug recent code than older versions.  


I'm a little confused...  I thought I had RELENG_5_4.  "uname -a" says:

FreeBSD wlaptop 5.4-RELEASE FreeBSD 5.4-RELEASE #1: Thu Oct  6 21:18:29 
EDT 2005

 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/WLAPTOP  i386

Isn't this RELENG_5_4?





Is there anything that I can do to capture more information the next
time my computer reboots spontaneously?



Try to get a crash dump.  There's more information on it in the
Handbook.  And some related information on panic analysis (if you can
get it to that point) in the FAQ.




I'll try that, it doens't sound too difficult.  Just so I know, if I was 
going to see a kernel panic message, I'd be seeing one before the 
computer reboots, right?


Thank you again!

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


Re: CDROM Unknown Transfer Error crashes system

2005-10-11 Thread Wayne Witzke

Thank you for your reply!

Are you talking about upgrading to the 6.0-BETA?  Is it a fairly 
transparent process, or is it going to require a lot of reconfiguring 
and reinstalling?  I'm not sure I have time to update if that's the 
case.  I'm working under a deadline at the moment.


Is there anything that I can do to capture more information the next 
time my computer reboots spontaneously?


Wayne

Lowell Gilbert wrote:

Wayne Witzke <[EMAIL PROTECTED]> writes:



I've googled the error, but the information was mostly related to cd
burning or errors in different releases from months or years
ago. Nothing recent that I could find.

Does anybody have any idea what's going on and how I can fix whatever it is?



You could talk to the main ATA developer ([EMAIL PROTECTED]), but he
will almost certainly want to know what happens with more recent
code.  Can you try updating your system?




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


Re: CDROM Unknown transfer [phase reboots] system

2005-10-09 Thread Wayne Witzke

Dmitry Mityugov wrote:

On 10/9/05, Wayne Witzke <[EMAIL PROTECTED]> wrote:


Hello everybody,

I've just installed FreeBSD on my laptop (decided I wanted a more
developer-friendly computer).  Aside from what appear to be the standard
newbie problems, every thing's gone remarkably well, except for this:

I have a CD-RW/DVD-ROM drive on my laptop.  As a CDROM it had been
working perfectly well since the initial install about a week and a half
ago.  It read CDs and DVDs without incident, and did so for hours and
hours (which it was forced to do because I've been listening to music
pretty much non-stop since I installed the system).  The burner did not
work, but after the grueling process of opening up the FreeBSD handbook
and actually reading how to make it possible to burn CDs, that started
working as well.  That is, I recompiled the kernel with the atapicam
module, changed permissions and set up links in the devfs.conf file in
/etc, and set the suid on cdrecord and cdrdao.  Worked like a charm.
Burned my first CD, and it was beautiful.  Then I think I went home.

Yesterday, while not burning any CDs at all, just listening to music
using kscd while I wrote perl script, my computer suddenly reboots.


...

This's the last day I am reading these archives. I believe you'll have
to find a better OS that suits your needs.

--
Dmitry Mityugov, St. Petersburg, Russia
I ignore all messages with confidentiality statements

"We live less by imagination than despite it" - Rockwell Kent, "N by E"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"




Mr. Mityugov,

I am certainly sorry if I've offended you in some way.  It seemed to me 
that I asked a perfectly valid question.  I want to know what caused the 
"unknown transfer phase" on my CDROM and how to prevent it from 
happening again.  I certainly didn't expect that would cause such anger 
that it would warrant a nasty response.


As for whether FreeBSD suits my needs, it most certainly does.  I've 
been an administrator of Unix-like systems for about 7 years, starting 
with Linux systems back in '97 and working my way up to IRIX a few years 
ago.  I've had FreeBSD installed and working on home systems in the 
past, but it's been a while.  Now, my work laptop had crashed (hard disk 
death), and I was tired having to struggle to get Windows to do what I 
wanted it to do and to keep it up and running more then a month at a 
time.  Took 6 months to make Windows work the way I wanted it to, when 
it only took about a week to get FreeBSD working.  In my experience, 
Unix-like systems have *always* been easier to develop on, have always 
been more stable, and are always faster.  The fact that FreeBSD combines 
these properties with the ease of the ports collection plus what I 
thought was a community of involved people willing to help made it the 
obvious choice.


If by "suits your needs" you meant "your need to listen to music", I 
believe that's beside the point.  The fact that acd0 had an unknown 
transfer phase is troubling regardless of the task it was performing at 
the time, especially considering that it was a kernel message.  I will 
almost certainly need to be able to read from my CDROM drive at some 
point in the future for data transfer purposes, and a reboot during such 
a read would at best cause the data transfer to fail, and at worst it 
could corrupt data on the hard drive in an unrecoverable way.


I also apologize that my subject line wasn't 100% accurate.  It should 
have read "CDROM Unknown transfer *phase reboots* system".  The word 
"error" in the subject line was incorrect, and the assertion that it 
caused a crash was just an assumption on my part. I was unable to find a 
memory dump or any information that should have led me to believe it was 
definitely a crash (and I still can't).  Also, it's an assumption on my 
part that the unknown transfer phase rebooted the system, but that was 
the last entry in the log file and I though (and still think) that it's 
the best indicator for what might have gone wrong.  And the word 
"reboot" may be incorrect as well.  The system didn't go through the 
shutdown process at all, it simply dropped to a POST.


If your objection was to the length of the description in my original 
message, I though it would be prudent to provide as much detail as I 
could about the steps I had gone through with my CDRW/DVDROM drive so 
that those who might be interested in helping would have as much detail 
as I could provide.  I apologize if what I was hoping to be a playful 
tone offended you, but since I tend to enjoy working on operating 
systems like FreeBSD I tend to write in a manner th

CDROM Unknown Transfer Error crashes system

2005-10-08 Thread Wayne Witzke
CI version 1.10 (ROM=0)
fwohci0: No. of Isochronous channels is 4.
fwohci0: EUI64 48:4f:c0:00:06:91:b8:61
fwohci0: Phy 1394a available S400, 2 ports.
fwohci0: Link S400, max_rec 2048 bytes.
firewire0:  on fwohci0
fwe0:  on firewire0
if_fwe0: Fake Ethernet address: 4a:4f:c0:91:b8:61
fwe0: Ethernet address: 4a:4f:c0:91:b8:61
fwe0: if_start running deferred for Giant
sbp0:  on firewire0
fwohci0: Initiate bus reset
fwohci0: node_id=0xc800ffc1, gen=1, CYCLEMASTER mode
firewire0: 2 nodes, maxhop <= 1, cable IRM = 1 (me)
firewire0: bus manager 1 (me)
pci2:  at device 1.3 (no driver attached)
ndis0:  mem 
0xfafec000-0xfafedfff irq 5 at device 3.0 on pci2

ndis0: NDIS API version: 5.1
ndis0: Ethernet address: 00:90:4b:2f:b3:ae
ndis0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ndis0: 11g rates: 6Mbps 9Mbps 12Mbps 18Mbps 36Mbps 48Mbps 54Mbps
isab0:  at device 31.0 on pci0
isa0:  on isab0
atapci0:  port 
0xbfa0-0xbfaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0

ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
pcm0:  port 0xbc40-0xbc7f,0xb800-0xb8ff mem 
0xf4fff400-0xf4fff4ff,0xf4fff800-0xf4fff9ff irq 5 at device 31.5 on pci0

pcm0: 
acpi_tz0:  on acpi0
atkbdc0:  port 0x64,0x60 irq 1 on acpi0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
psm0:  irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on 
acpi0

sio0: type 16550A
ppc0:  port 0x778-0x77b,0x378-0x37f irq 7 drq 
1 on acpi0

ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/7 bytes threshold
ppbus0:  on ppc0
plip0:  on ppbus0
lpt0:  on ppbus0
lpt0: Interrupt-driven port
ppi0:  on ppbus0
orm0:  at iomem 
0xcf800-0xc,0xcf000-0xcf7ff,0xc-0xcefff on isa0

pmtimer0 on isa0
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
Timecounter "TSC" frequency 1398819615 Hz quality 800
Timecounters tick every 10.000 msec
ad0: 57231MB  [116280/16/63] at 
ata0-master UDMA100

firewire0: New S400 device ID:0090a95a6bf5
acd0: CDRW  at ata1-master PIO4
sbp0:0:1 login failed
da0 at sbp0 bus 0 target 0 lun 0
da0:  Fixed Simplified Direct Access SCSI-4 device
da0: 50.000MB/s transfers
da0: 152627MB (312581808 512 byte sectors: 255H 63S/T 19457C)
cd0 at ata1 bus 0 target 0 lun 0
cd0:  Removable CD-ROM SCSI-0 device
cd0: 16.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
Mounting root from ufs:/dev/ad0s1a

Checking sysctl tells me: hw.ata.atapi_dma: 0

I've googled the error, but the information was mostly related to cd 
burning or errors in different releases from months or years ago. 
Nothing recent that I could find.


Does anybody have any idea what's going on and how I can fix whatever it is?

Thank you!

Wayne

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


Re: mouse wheel problem

2005-09-03 Thread Wayne Sierke
On Thu, 2005-09-01 at 09:38 -0700, Dave McCammon wrote:
> 
> --- Alejandro Pulver <[EMAIL PROTECTED]> wrote:
> > Hello,
> > 
> > It works for me without the "ZAxisMapping" option
> > (and the same
> > options in rc.conf):
> > 
> > Identifier  "Mouse1"
> > Driver  "mouse"
> > Option  "Protocol"  "Auto"
> > Option  "Device""/dev/sysmouse"
> > Option  "Buttons"   "5"
> > 
> > Best Regards,
> > Ale
> 
> I had a heck of a time getting my wheel to work in
> RELENG_6. Eventually, starting moused with setting in
> rc.conf(below) and turning off Emulate3Buttons (had to
> put line in with the "false". commenting out didn't
> work) and adding the "Buttons" line worked. The
> instructions out of the handbook didn't work this
> time.
> 
I found the same with my Logitech MX500 - I had to add "Emulate3Buttons"
"false" whereas as best as I can remember it seemed that everything I
was reading at the time was telling me I only needed to set it to true
if I wanted to enable that option. Curious.

At the time this configuration was done I was probably running 5.3 and X
might still have been XFree86. The same config is working now with 5.4
and Xorg.

> xorg.conf sections--
> Section "InputDevice"
> 
> # Identifier and driver
> 
> Identifier  "Mouse1"
>  Driver "mouse"
>  Option "Protocol""auto"
>  Option "Device"  "/dev/sysmouse"
> 
> Option "Emulate3Buttons" "false"
>Option "Buttons" "5"
> 
> EndSection
> 
Section "InputDevice"
Identifier  "Mouse0"
Driver  "mouse"
Option  "Protocol" "auto"
Option  "Device" "/dev/sysmouse"
Option  "ZAxisMapping" "8 9"
# Had to put this in because default is true!?!?
Option  "Emulate3Buttons" "False"
Option  "Buttons" "9"
EndSection

> rc.conf---
> moused_enable="YES"
> moused_type="auto"
> moused_flags="-z 4"
> 
moused_enable="YES"
moused_flags="-a 2.0 -z 8"
moused_type="auto"

The ["ZAxisMapping" "8" "9"], ["Buttons" "9"] and [moused_flags="-z 8"]
entries allow me to use both the scroll-wheel *and* the two buttons
adjacent to the scroll-wheel to scroll - I quite like being able to just
hold down either of those two buttons to scroll through long documents,
as it's much less finger-strain than lots of wheeling, and often more
convenient than mousing the cursor into the scroll bars which tend to be
quite narrow on my high-res display.

> excerpt from dmesg--
> psm0:  irq 12 on atkbdc0
> psm0: [GIANT-LOCKED]
> psm0: model IntelliMouse, device ID 3
> 
> (It is a Logitech optic mouse.Two button with Wheel)
> 
ums0: Logitech USB-PS/2 Optical Mouse, rev 2.00/18.00, addr 2, iclass 3/1
ums0: 7 buttons and Z dir.

I don't understand why it describes it as 7 buttons. There are the
'left' and 'right' buttons, two thumb buttons, two adjacent to the
mouse-wheel, plus another button on top behind the wheel, so that's 7
buttons. But then there's the wheel button itself which is the "third"
or "middle" button, so surely there are 8 buttons on this mouse, plus
the "Z dir" of the wheel. Curious.


Wayne


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


Re: Hardware vendors in Australia...

2005-07-31 Thread Wayne Sierke
On Sun, 2005-07-31 at 22:10 +1000, Norberto Meijome wrote:
> Hi all,
> Can anyone recommend a vendor / reseller of server hardware in Australia 
> (preferrably NSW)? In particular, (dual ) Opteron based systems. Of 
> course, it'd be great if anyone actually had suggestions on the 
> specifics of the system that are known to work with 5.4 SMP.
> 
> thanks in advance,
> Beto

Beto,

I can recommend Adrenalin Computers and Software but only because I know
them personally, not because I've had them build any servers (yet). 
Unfortunately they're located in Adelaide but if you're stuck for a
place to start I'd suggest it will still be worth your while to give
them a call to start getting a feel for what kind of hardware is readily
available, etc. And if you ask them I'm sure they'll tell you if they
know of anyone in NSW if you'd prefer to deal with someone more local to
you.

You can get their contact details from:

http://www.adrenalin.net.au


Wayne


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


  1   2   3   4   >