Re: Boot hangs in single-user mode

2013-06-24 Thread Andrew Hamilton-Wright

I have tracked down the issue.  Not sure whether this is a PR issue or not...

On 2013-06-06, at 11:18 AM, Polytropon wrote:

 On Thu, 6 Jun 2013 10:24:52 -0300, Andrew Hamilton-Wright wrote:
 
 Strangely, it seems that I cannot boot single user, either
 using boot -s from the boot loader, or using the boot menu. 
 When I get to the point where the root filesystem is mounted,
 it hangs right after printing the message:
 Trying to mount root from ufs:/dev/ada0s1a
 
 Have you tried hitting the RETURN key several times? 

   [ ... ]

 It's important to identify if the system is _really_ hanging,
 or if the message just isn't visible...

This is indeed the crux of the issue.  While hammering on the RETURN key did 
not produce a prompt, it turns out that there was a prompt...

At some time in the relatively distant past, I had configured this machine to 
allow display to a serial console (long since disconnected) by adding these 
lines to /boot/loader.conf 

boot_multicons=YES
boot_serial=YES
comconsole_speed=19200
console=comconsole,vidconsole

My notes say These came from the serial console setup page, and do work for 
vt100, however I did not note exactly which man page they came from, 
unfortunately.  I do not see these lines on syscons(4), sio(4) or dcons(4).

Similar lines are mentioned in the handbook regarding setting up a serial 
console (there is no mention of single-user mode here):
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/serialconsole-setup.html



The issue, as it relates to single-user mode, is essentially this:  if the 
system is configured to boot with multi-console options, then when the single 
user prompt is printed, it is only printed on the second console (which is 
also the only valid source of keyboard input) -- in this case, the configured 
but unattached serial port.


I'm not sure what the best strategy is here.  Having only one console that is 
accepting input for the single-user shell certainly makes sense.  The question 
is, which of potentially several consoles should it be?

IMO, it would be better/clearer if (for i386/amd64 anyway) the console was the 
one associated with the motherboard-based keyboard and video card.  An argument 
here would be that the [CTRL]-[ALT]-[DEL] sequence is still valid when 
associated with this keyboard, so it does seem odd that other input on that 
device is ignored.

I can see arguments for other setups, also, mostly revolving around the why 
would you _have_ another console configured if you didn't need it, so the 
configured console must therefore be the important one -- though the FreeBSD 
user base is certainly willing enough to experiment that I am sure I am not the 
only person who set up multi-console for a fun project.

Perhaps the best strategy would be to add a message printed on all consoles (as 
the rest of the boot information is) just before the prompt is printed (singly) 
to let people know that this is happening?  I'm not sure if a way to 100% 
predict the desired console is possible.


Thoughts?  If figure I will put a PR in, so that at least this is tracked, even 
if we don't change anything.  I will reference this thread in the PR, but if 
anyone has input as to what to suggest, I would appreciate it.  At the very 
least, the handbook should get updated to indicate that this may happen.

Andrew.


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


Re: Boot hangs in single-user mode

2013-06-19 Thread Andrew Hamilton-Wright

Hi Everyone,

On Thu, 6 Jun 2013 10:24:52 -0300, Andrew Hamilton-Wright wrote:
 
 Strangely, it seems that I cannot boot single user, either
 using boot -s from the boot loader, or using the boot menu. 
 When I get to the point where the root filesystem is mounted,
 it hangs right after printing the message:
 Trying to mount root from ufs:/dev/ada0s1a


There was a bit of a delay getting back to this, as I needed to move the 
internals over to a replacement server in a planned upgrade.

I have left the boot disk in the machine demonstrating this problem with the 
intention of coming back to determine what is going on (mount points to 
now-missing data disks have been removed from /etc/fstab).

In the resulting stripped down system, I have the same behaviour as before -- I 
cannot get to single-user mode, but multi-user is fine.

If in multi-user mode, if I issue kill -TERM 1 to go to single-user mode, I 
would get a single console message:  pflog0:  promiscuous mode disabled, then 
nothing.  While I would expect pflog to shut down in this case, I have now 
disabled everything pf related (I cannot imagine that it would interfere with 
console operation), and now have the situation where kill -TERM 1 simply locks 
the console.

Plugging in a USB device while the console is locked does produce the expected 
dmesg updates, and the system does respond to [CTRL]-[ALT]-[DEL]


I will also add that I can boot to a single-user prompt when booting off of the 
9.1 media via DVD and mounting the root filesystem from the disk.  (This 
motherboard+kernel have never gotten along particularly well with the DVD 
reader/writer in the machine, so mounting the filesystem from the DVD usually 
fails with various atapi based timeouts).

Does anyone have any thoughts on how to further explore this?  As the situation 
was more than mildly annoying, and could certainly have been worse, if this is 
likely to occur for anyone else, I would like to file a PR.

Thanks,
Andrew.

___
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 hangs in single-user mode

2013-06-06 Thread Andrew Hamilton-Wright

Strangely, it seems that I cannot boot single user, either using boot -s from 
the boot loader, or using the boot menu.  When I get to the point where the 
root filesystem is mounted, it hangs right after printing the message:
Trying to mount root from ufs:/dev/ada0s1a

Interestingly, there seems to be a bit of a sequence issue, as I have also seen 
the mount message appear before the audio system comes up, so occasionally, the 
last item printed is:
pcm0:  USB audio on uaudio0

If I boot normally, however, I can consistently reach a login prompt.

I suspect that this may be a race condition of some kind, as yesterday I am 
sure I successfully booted to single-user while trying to solve a separate 
problem.


In case the separate problem (failed disk) is relevant, the general situation 
is this:
- four disk machine:  ada0 (/, /usr, /tmp, /var); ada1 (/research -- data 
only), ada2 (/home), ada3 (/data -- also data only)
- the disk ada2 has failed
- in preparing to replace ada2, I have commented out all references to it from 
/etc/fstab

I am rebooting the machine at the moment as I wish to ensure that I know which 
physical disk is ada2, so want to boot the machine without it plugged in.  I 
seem to have trouble booting at all with ada2 missing and ada3 still attached, 
but can boot to multiuser with no problems in either of these two configuration:

- all disks (including the faulty one) plugged in, with ada2 references removed 
from /etc/fstab
- ada2 and ada3 not physically plugged in, and all references to either removed 
from /etc/fstab

Neither combination allows me to boot single-user.


While I can clearly go ahead with my disk replacement, this is not only strange 
and annoying, but potentially problematic.

Has anyone else seen anything like this?  I notice that there are several 
messages (dating back to 2004) in the list indicating 'hang after Trying to 
mount root' or 'hang after sbin_init' (which is the message that will be seen 
when booting single-user in verbose mode).

Thoughts?  Ideas?

Thanks,
Andrew.

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


Re: Boot hangs in single-user mode

2013-06-06 Thread Andrew Hamilton-Wright

[ Condensation of earlier comments below ]

On 2013-06-06, at 11:18 AM, Polytropon wrote:

 On Thu, 6 Jun 2013 10:24:52 -0300, Andrew Hamilton-Wright wrote:
 
 When I get to the point where the root filesystem is mounted,
 it hangs right after printing the message:
 Trying to mount root from ufs:/dev/ada0s1a
 
 Have you tried hitting the RETURN key several times?
...
 It's important to identify if the system is _really_ hanging,
 or if the message just isn't visible...

I did try that -- I have seen that behaviour before too.  I tried hitting return
a half-dozen times, and have additionally tried waiting (up to 20 min) to
see if it would come back, to no avail.


 Interestingly, there seems to be a bit of a sequence issue,
 as I have also seen the mount message appear before the audio
 system comes up, so occasionally, the last item printed is:
 pcm0:  USB audio on uaudio0
 
 This seems to indicate that the system is still responding,
 i. e., the kernel is up and running. Whenever new hardware
 is detected, the kernel will issue a console message.

That is a good point -- I will try plugging in an external USB device
at this point, and see what happens then.  It certainly appears that
the system is generally running to me, as well.  I should also mention
that the system does respond nicely to [CTRL]-[ALT]-[DEL], which
triggers the expected reboot process.


 I am rebooting the machine at the moment as I wish to ensure
 that I know which physical disk is ada2, so want to boot the
 machine without it plugged in.
 
 A suggestion: I tend to keep a tendency to use labels instead
 of device names to identify disks. This is handy in case you're

This is an excellent idea.  I do follow some variant of this (however
work at a high enough level of paranoia that I want to be able to
perform the did the right drive disappear when I unplugged it
check just to ensure that I wasn't asleep when making up the labels.
;-)


Thanks for the suggestions -- I will keep looking at it, and will try
adding a USB device once this restore eventually completes.

Thanks,
Andrew.

___
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


License for console fonts

2011-05-09 Thread Sean Hamilton
Hello,

What is the license on the fonts in /usr/share/syscons/fonts,
especially swiss-8x8? Who/what is their origin? Would it be acceptable
to include these binaries with a GPL-licensed program?

Thanks in advance,

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


Re: Long I/O pauses on same mass storage

2010-05-12 Thread Andrew Hamilton-Wright


Sorry to follow myself up . . .

On Wed, 12 May 2010, A. Wright wrote:


I just noticed, however, the following two interesting lines that
/var/log/messages seems to have acquired:
May 12 15:44:00 qemg kernel: ad8: FAILURE - SMART status=51READY,DSC,ERROR 
error=4ABORTED
May 12 16:05:27 qemg kernel: swap_pager: indefinite wait buffer: 
bufobj: 0, blkno: 294, size: 8192



It turns out that dmesg output has a number of these, scattered over the
last day; there were a bunch at 02:30 this morning; which at least
indicates that the SMART logging has triggered this behaviour.

A.

___
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: Long I/O pauses on same mass storage

2010-05-12 Thread Andrew Hamilton-Wright

On Wed, 12 May 2010, Adam Vande More wrote:


On Wed, May 12, 2010 at 6:21 PM, A. Wright 
and...@qemg.orgmailto:and...@qemg.org wrote:



 As far as I can tell, it is a standard 512 byte sector.  The
 general lack of documentation with this drive (shipped in a
 plastic coffin -- the only docs supplied with it were the
 label itself), but on the WD site, they indicate:
   Formatted Capacity  1500301 MB
   Used Sectors Per Drive  2930277168

As I understand it, all the 64MB EARS model drive have the WD
Advanced Format eg 4k sectors.  I don't have one and I'm pulling
this (from the depths of memory || out of my ass), but I think
those drives also have something funky going on where they
report normal 512 sector when in fact they do have 4k ones.
Either way, it wouldn't hurt to align on 1MB boundaries.


I just got confirmation back from WD, and your nether regions
are correct -- this _is_ a 4096 byte sector drive.  I have
suggested to WD that they may wish to mention this salient
fact somewhere.

Thanks again,
Andrew.

___
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


8.0-RELEASE upgrade -- no files visible

2010-04-27 Thread Andrew Hamilton-Wright


I have a puzzler.

After postponing an upgrade from 7.2 to 8.0 for some time,
I now am attempting to make the transition.

In the 7.2 install, I have one dangerously dedicated disk used
only for backup (the accommodation of which is why I postponed
the install in the first place), as well as a boot disk that was
set up using slices.  In addition, I have an external USB mass
storage device that I have placed level 0 dumps of all
filesystems upon.

When I install 8.0 to a fresh disk (which is then set up using
sysinstall), I can boot off the fresh disk and see all of the
just-installed files perfectly.

Here is the puzzler:  if I boot 8.0, and mount any filesystem
that was created by 7.2 or earlier, I cannot see any files.
This includes both the non-DD internal disk (which is the boot
disk for 7.2), as well as the external USB mass storage
(formatted using UFS, but also not a DD setup).

To add to the puzzle, df reports a usage number that reflects
the block allocation, but ls does not report any filesystem
entries.


My primary objective is to make the dump files available under
8.0, so I tried booting 7.2 again, mounting my new (empty)
/home partition and placing the files there -- this seemed
to work as seen under 7.2, however when I rebooted using 8.0,
there are again no files visible in this partition.


Does anyone have any ideas on:
(a) what the underlying problem could be (noting that although
I have a DD disk, it is not involved in this process in any
way) -- especially given that it seems to affect the
filesystems on the external drive, or

(b) what a path might be to getting the dump files to the
new system so that I can use it?  (I should mention that
the dumps are rather huge (~100Gb), so a network based
solution is rather unpalatable).


Any input appreciated,
Andrew.


___
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: USB flash disc

2009-06-12 Thread Andrew Hamilton-Wright

Bernt Hansson wrote:

I've got an usb flash disc kingston datatraveler DT150 64GB.
That I put pcbsd on to try, and now I can't seem to get it of the stick.


 [ deletia ]


Errors when trying fdisk:

fdisk -BI /dev/da0
*** Working on device /dev/da0 ***
fdisk: invalid fdisk partition table found
fdisk: Geom not found: da0
fdisk: Failed to write sector zero

umass0: BBB reset failed, IOERROR
umass0: BBB bulk-in clear stall failed, IOERROR
umass0: BBB bulk-out clear stall failed, IOERROR


I'm assuming you have checked any readonly status that may be
set on this device (in software or hardware), however the above
exactly matches the reports I got from a USB desktop drive
right before the device completely packed it in.

If there are vendor diagnostics to debug data transfer to the device
I would verify that it is actually transferring data as your next
step.

A.

___
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: Xdvi with amd64

2009-05-06 Thread Andrew Hamilton-Wright

On Mon, 4 May 2009, Olivier Nicole wrote:


Exactly which fonts are you having trouble with?  I can tell you
whether I can reproduce the issue under 7.1.


Nothing exotic at all: cmr10.300.pk

The error message is:

   $ xdvi memo
   Note:  overstrike characters may be incorrect.

xdvi: Wrong number of bits stored:  char. 68, font cmr10

   $


For what it is worth, I don't seem to be able to produce this
with any DVI files I create.  If you have one in particular you
would like me to verify, you can email it to me.


What version of xdvi are you running?  I have a recent port:

$ xdvi -version
xdvik version 22.84.10 (@(#)Motif Version 2.2.3, runtime version 2.2)
Libraries: kpathsea version 3.5.2, T1lib version 5.1.2


A.

___
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: questions about Fatal Trap 12

2009-04-11 Thread Paul Hamilton
 

-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Ray
Sent: Saturday, 4 April 2009 01:45
To: freebsd general questions
Subject: questions about Fatal Trap 12

Hello,
I have received a kernel Trap 12 error several times now and am trying to
figure it out. 
the error occurred today, and the previous time was about two weeks ago. 
last time I had to run fsck manually if that proves anything.


uname -a gives the following:

FreeBSD wserver..com 7.0-RELEASE-p3 FreeBSD 7.0-RELEASE-p3 #0: Wed
Sep 
17 13:30:46 MDT 2008 r...@wserver.*.com:/usr/obj/usr/src/sys/MOD

amd64


Google returns results mostly for versions 4.x and 5.x, but it suggest 2
main 
things: 
test ram, and kernel panic troubleshooting. 
(http://www.freebsd.org/doc/en/books/faq/advanced.html#KERNEL-PANIC-
TROUBLESHOOTING)

Is there a way to test the ram without removing it from the machine and
leave 
the machine functioning. I've used memtest 86 before, but obviously the 
machine has to be offline for this test.

However, I'm a little unsure of the instructions in the handbook on 
troubleshooting. namely, it talks about using the nm command, put I can't 
figure out the data file to give it as an argument, and second I'm unsure
about 
using a debugging Kernel on a production server. I have heard that It will 
significantly slow down a machine.
Any help or suggestions would be greatly appreciated.
Ray
___

snip

Hi Ray,

I have had a few of the Trap 12 errors over the last 10 years of using
FreeBSD.  From memory, mine where due to faulty motherboard/CPU.  I just
moved the hard drive to another PC, and all was ok.  

The last time I received the error, was when I tried recompiling world.  I
put it down to CPU heat, as it was running a LOT harder than normal day to
day use.  This was on a server that had been in place for two years running
with out problem!

Cheers,

PaulH



___
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: going from cvs to svnq

2009-04-01 Thread Andrew Hamilton-Wright


[ snippage of question re: svn and cvs ]

On Tue, 31 Mar 2009, Chuck Robey wrote:


Andrew Wright wrote:


The primary advantage of using svn is that the _server_ uses a
different protocol to track objects.


I think that's unclear, you can't mean that just having the protocol be
different, that's not that much of a win.  Having svn track extra things, like
directories, that I'd think was a win.


I chose the word protocol poorly.  For protocol read way of
doing things, or perhaps algorithm.

What I was trying to make clear is that the choice of tool between
cvs and svn is made based on server related criteria.




What I don't know is, I use cvsup all the time, but when I switch to svn, what
does the cvsup job of tracking an archive (not tracking the sources, I mean
the archive)?  Does svn do it all itself?  If so, I can find out how, I just
want to know if that's how its done.  If not, what's the general tool used to
track the freebsd archive, so I can investigate it?


If you are asking what is the name of the subversion client, and how
can I use it?, then the answer is svn (which is also the executable
used for the server, a la cvs with the pserver option).  Usage
instructions are available via:
http://subversion.tigris.org


If you are asking what can I type to get a readonly copy of the
repo?, then according to the ROADMAP.txt at:
http://svn.freebsd.org/viewvc/base/ROADMAP.txt?view=markup
the answer appears to be:
svn co http://svn.freebsd.org/base/head


Strong Caveats:
 o One of the peculiarities of subversion is that if you
   leave off the head portion of the URL, you will get _all_ of
   the nodes in the repository -- that is, the history at every point.

 o As I mentioned earlier, this will produce a newly checked out working
   space that is incompatible with cvsup (or cvs in general).

 o ***Early Adopter Warning***: There has not been (as far as I know) a
   general call for people to move to this type of repository access except
   for committers -- therefore expect rough edges until a general announcement
   is made.

A.

___
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: going from cvs to svnq

2009-04-01 Thread Andrew Hamilton-Wright


Sorry to follow-up my own note, but . . .

On Wed, 1 Apr 2009, Andrew Wright wrote:

[ further snippage of previous note ]


Strong Caveats:



o ***Early Adopter Warning***: There has not been (as far as I know) a
  general call for people to move to this type of repository access except
  for committers -- therefore expect rough edges until a general 
announcement

  is made.


I would further urge you to read:
http://svn.freebsd.org/viewvc/base/projects/GUIDELINES.txt?view=markup
for an overview of the information used by the committers, and will
further add:

Even Stronger Caveat:

 o The head revision translates to something like current looking
   around in
   http://svn.freebsd.org/viewvc/base/
   will show you that there are directories other than head from
   which branching is done.  Some perusal of the svn manual and poking
   around in the repository may help you track current, but there
   isn't anything in place yet to let you track stable, for instance.

A.

___
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: Formatting a tape?

2009-03-19 Thread Andrew Hamilton-Wright

On Thu, 19 Mar 2009, Jaime wrote:


I have a DLT tape drive in a FreeBSD system.  With one of the tapes, I
can get tar -cvpf /dev/sa0 -C / . to work.  With all the other
tapes, I can't.

Is there some kind of formatting process that I need to do?  I tried
mt fsf 1 from this page:


I assume that this is a fresh tape?  Do other tapes from the same batch work?

What happens if you use dd to try and write to the tape?

The command
dd if=/dev/zero of=/dev/sa0 count=8
should print out:
8+0 records in
8+0 records out

If you are getting something else, I might suspect a physical media problem.
I have certainly gotten the odd dud tape before.

A.

___
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


dump(8) using snapshot + recommended cache

2009-02-01 Thread Andrew Hamilton-Wright


Hi All;

I regularly use dump(8) with snapshots to back up my server.

While this seems to have been working perfectly well so far,
upon (re)reading the man page for dump(8), I have noticed a
somewhat scary pair of lines in the paragraph describing
the option for -C cachesize (emphasis with stars mine):

[Use of this option] will greatly improve performance
at the cost of ***dump possibly not noticing changes in
the file system*** between passes.

***It is recommended that you always use this option when
dumping a snapshot.***

Does anyone know what, exactly, this means?

In particular, is the first statement actually trying to say:

Use of this option will greatly improve performance;
however it may be that changes made to the filesystem
made between _dump_ passes will be ignored.  ***The resulting
dumped filesystem image will be consistent and correct
based on a timestamp no later than that of the point
at which the dump was started***.

Is this a fair statement?  Is this guaranteed?  Or are we
trying to say that:

The resulting filesystem will contain images of individual
files based on a timestamp no later than that of the
point at which the dump was started, however any individual
files modified after the dump begins may be stored using
any of the version that appeared written to disk during
the period of the dump.



As far as the second line goes, I am not at all clear on what
this is trying to say.  Why is the cache recommended?  For
speed?  Stability?  Output correctness?  In particular, if a
snapshot dump is made without a cache option, is it potentially
corrupt?

In particular, if the second attempt above is more true than
the first, it seems to me that we should _not_ recommend the
use of a cache with snapshots, as it seems to erode the utility
of the snapshot itself.  It is for this reason that I am
suspecting that there is more here than meets the eye, which
is why I am keen to make sure that this is clear.


I am very happy to put in an update to the docs if we can make
sure that we know exactly what we are trying to say here.


Thanks,
Andrew.

___
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: dump(8) using snapshot + recommended cache

2009-02-01 Thread Andrew Hamilton-Wright



I regularly use dump(8) with snapshots to back up my server.

While this seems to have been working perfectly well so far,


Sorry to follow-up my own post; I just realized I hadn't mentioned
any version info.  The docs I am reading are the ones associated
with 7.1-RELEASE; I haven't checked whether this part of the dump
documentation got updated with 7.1 or not.

Thanks,
Andrew.

___
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: dump(8) using snapshot + recommended cache

2009-02-01 Thread Andrew Hamilton-Wright

On Sun, 1 Feb 2009, RW wrote:


***It is recommended that you always use this option when
dumping a snapshot.***



When you dump a snapshot there are, by definition, no changes between
passes. So it's saying that in that case there in no reason not to
cache.


Ah, that makes sense. That being the case, perhaps we can update
the text to:

If dumping from a snapshot, the filesystem is already frozen,
therefore using a cache with a snapshot will ensure that
consistency is maintained while also providing best performance.

If that sounds good, I'll make a doc patch.


Out of curiosity, under what circumstances is the improved performance
the most likely?  I dump from cron when the system usage is low, and
haven't noticed any significant difference in time with or without
cacheing -- but I haven't done any testing under heavy load, nor with
limited RAM, so there are many mbufs available in any case.

Thanks for the info,
Andrew.

___
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


Cannot compile kde4 or gnome2 due to gstreamer-plugin error

2008-10-12 Thread Thomas Hamilton
Hi Guys I'm running current(8.0) from last nights cvsup. I cannot
however compile kde4 or gnome2-lite due to an error in compiling
gstreamer-plugins. It looks like the error is originating from: cc: No
input files specified. I look forward to any help you guys might be
able to provide me with in resolving the errors so I can install a gui
:) Thanks in advance.

This is where it errors out:
gmake[3]: Entering directory
`/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests/icles'
/bin/sh /usr/ports/multimedia/gstreamer-plugins/work/gnome-libtool
--tag=CC   --mode=link cc  -O2 -pipe -O2 -fno-strict-aliasing
-I/usr/local/include  -L/usr/local/lib  -pthread -o test-colorkey
cc -O2 -pipe -O2 -fno-strict-aliasing -I/usr/local/include -pthread -o
test-colorkey  -L/usr/local/lib -pthread
cc: No input files specified
gmake[3]: *** [test-colorkey] Error 1
gmake[3]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests/icles'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21/tests'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/multimedia/gstreamer-plugins/work/gst-plugins-base-0.10.21'
gmake: *** [all] Error 2
*** Error code 2

Stop in /usr/ports/multimedia/gstreamer-plugins.
*** Error code 1

Stop in /usr/ports/multimedia/gstreamer-plugins-good.
*** Error code 1

Stop in /usr/ports/sysutils/gnome-settings-daemon.
*** Error code 1

Stop in /usr/ports/x11/gnome-applets.
*** Error code 1

Stop in /usr/ports/x11/gnome2-lite.
*** Error code 1

Stop in /usr/ports/x11/gnome2-lite.


Configuration details can be found below.

laptop# uname -a
FreeBSDlaptop.local 8.0-CURRENT FreeBSD 8.0-CURRENT #2: Sat Oct 11
03:21:27 MDT 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/LAPTOP
i386

laptop# cat /etc/make.conf
PERL_VER=5.8.8
PERL_VERSION=5.8.8


Installed Ports
laptop# pkg_info |awk '{print $1}'|sort
appres-1.0.1
bdftopcf-1.0.1
beforelight-1.0.2
bigreqsproto-1.0.2
bison-2.3_4,1
bitmap-1.0.3
bitstream-vera-1.10_4
compositeproto-0.4
consolekit-0.2.10_2
damageproto-1.1.0_2
dbus-1.2.1
dbus-glib-0.76
dmidecode-2.9
dmxproto-2.2.2
docbook-4.1_3
docbook-xml-4.2_1
docbook-xsl-1.74.0
dri-7.0.3_1,2
editres-1.0.3
encodings-1.0.2,1
evieext-1.0.2
expat-2.0.1
fixesproto-4.0
flex-2.5.35
font-adobe-100dpi-1.0.0_1
font-adobe-75dpi-1.0.0
font-adobe-utopia-100dpi-1.0.1
font-adobe-utopia-75dpi-1.0.1
font-adobe-utopia-type1-1.0.1
font-alias-1.0.1
font-arabic-misc-1.0.0
font-bh-100dpi-1.0.0
font-bh-75dpi-1.0.0
font-bh-lucidatypewriter-100dpi-1.0.0
font-bh-lucidatypewriter-75dpi-1.0.0
font-bh-ttf-1.0.0
font-bh-type1-1.0.0
font-bitstream-100dpi-1.0.0
font-bitstream-75dpi-1.0.0
font-bitstream-type1-1.0.0
font-cronyx-cyrillic-1.0.0
font-cursor-misc-1.0.0
font-daewoo-misc-1.0.0
font-dec-misc-1.0.0
font-ibm-type1-1.0.0
font-isas-misc-1.0.0
font-jis-misc-1.0.0
font-micro-misc-1.0.0
font-misc-cyrillic-1.0.0
font-misc-ethiopic-1.0.0
font-misc-meltho-1.0.0_1
font-misc-misc-1.0.0
font-mutt-misc-1.0.0
font-schumacher-misc-1.0.0
font-screen-cyrillic-1.0.1
font-sony-misc-1.0.0
font-sun-misc-1.0.0
font-util-1.0.1
font-winitzki-cyrillic-1.0.0
font-xfree86-type1-1.0.0
fontcacheproto-0.1.2
fontconfig-2.5.0,1
fontsproto-2.0.2
fonttosfnt-1.0.3
freetype2-2.3.7
fslsfonts-1.0.1
fstobdf-1.0.2
gamin-0.1.9_2
gettext-0.17_1
gio-fam-backend-2.16.5
glib-2.16.5
glproto-1.4.8
gmake-3.81_3
gnome_subr-1.0
gstreamer-0.10.21
hal-0.5.11_1
help2man-1.36.4_2
iceauth-1.0.2
ico-1.0.2
inputproto-1.4.2.1
intltool-0.37.1
iso8879-1986_2
kbproto-1.0.3
libFS-1.0.0_1
libGL-7.0.3
libICE-1.0.4_1,1
libSM-1.0.3_1,1
libX11-1.1.3_1,1
libXScrnSaver-1.1.2
libXTrap-1.0.0
libXau-1.0.3_2
libXaw-1.0.4_1,1
libXcomposite-0.4.0,1
libXcursor-1.1.9_1
libXdamage-1.1.1
libXdmcp-1.0.2_1
libXevie-1.0.2
libXext-1.0.3,1
libXfixes-4.0.3_1
libXfont-1.3.1_3,1
libXfontcache-1.0.4
libXft-2.1.13
libXi-1.1.3,1
libXinerama-1.0.2,1
libXmu-1.0.3,1
libXp-1.0.0,1
libXpm-3.5.7
libXprintAppUtil-1.0.1
libXprintUtil-1.0.1
libXrandr-1.2.2_1
libXrender-0.9.4_1
libXres-1.0.3_3
libXt-1.0.5_1
libXtst-1.0.3_1
libXv-1.0.3_1,1
libXvMC-1.0.4_1
libXxf86dga-1.0.2
libXxf86misc-1.0.1
libXxf86vm-1.0.1
libdmx-1.0.2_1
libdrm-2.3.1
libfontenc-1.0.4
libiconv-1.11_1
liboil-0.3.15
liboldX-1.0.1
libtool-1.5.26
libvolume_id-0.81.0
libxkbfile-1.0.4
libxkbui-1.0.2_1
libxml2-2.6.32
libxslt-1.1.24_1
listres-1.0.1
luit-1.0.2_2
m4-1.4.11,1
makedepend-1.0.1,1
mkcomposecache-1.2_1
mkfontdir-1.0.3_1
mkfontscale-1.0.3
oclock-1.0.1
p5-Compress-Raw-Zlib-2.015
p5-Compress-Zlib-2.015
p5-HTML-Parser-3.56_1
p5-HTML-Tagset-3.20
p5-HTML-Tree-3.23
p5-IO-Compress-Base-2.015
p5-IO-Compress-Zlib-2.015
p5-Net-DBus-0.33.6
p5-Text-Iconv-1.7
p5-Tie-IxHash-1.21
p5-Time-HiRes-1.9715,1
p5-URI-1.37
p5-XML-Filter-BufferText-1.01
p5-XML-Grove-0.46.a
p5-XML-Handler-YAWriter-0.23
p5-XML-NamespaceSupport-1.09_1
p5-XML-Parser-2.36
p5-XML-SAX-0.96
p5-XML-SAX-Expat-0.40
p5-XML-SAX-Writer-0.50
p5-XML-Simple-2.18

Running with a readonly root partition

2008-06-13 Thread A. Hamilton-Wright


As devfs is running by default, it seems to me that
it would be relatively easy to run with a readonly
root partition, assuming that the directories under
which writing is necessary (ie; /tmp, /var, /home)
are located in separate, writable partitions.

The main advantages are that none of the configuration
files or binaries in /etc and /usr (which may still
be on a separate readonly partition) are vulnerable
to attack (even from a local privilege escalation)
without remounting the partition as writable.

This used to be a very common setup in the *NIX
world, so I am surprised to find little to no mention
of it in the archives.

I set up my machine this way a couple of months back,
and have noticed some minor things (some few things
assume a writable /etc, notably including dump(8),
and the boot process update to /etc/motd).  Once these
have been rectified by relocating the files and setting
up symlinks, there have been no problems.

My questions are:
 - does anyone else do this?
 - if not, why not?

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


Re: FreeBSD-like linux distro?

2008-06-11 Thread Jon Hamilton

On Wed, June 11, 2008 04:54, Heikki Suonsivu wrote:
 I need to get something to run on x86 computers which do not contain
 math in hardware, and FreeBSD dropped non-math cpus long time ago. NetBSD
 did the same, so Linux seems to be the only possibility.

 So, the question:


 What is the linux distro which is closest to FreeBSD in terms of
 installation and use.  A linux with basic userland and ports(-like) system,
 and quick and easy install like FreeBSD ?

Heikki,

Gentoo (http://www.gentoo.org) is a pretty easy install and is the most
closely aligned Linux distribution I've seen to the build it from source
mentality.  It's gotten fancier over the years but still has at its core
the notion of building blocks and doesn't push binary package distribution
the way most seem to these days.  Whether it'll install on an FPU-less
system I don't know.  Might be worth a look.

Please do report back with what you ultimately find works; this is a
source of interest for me and I'm sure others.

-- 
Jon Hamilton
[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: dmesg empty after shutdown -r

2008-05-01 Thread A. Hamilton-Wright



On Thursday 01 May 2008 01:58:46 A Hamilton-Wright wrote:


After shutdown -r now and the subsequent reboot, I have

  (... no dmesg)


On Thu, 1 May 2008, Mel wrote:


dmesg -M doesn't show anything either?



Wish I'd thought to try that last night.  I eventually shut it
down again (shutdown -p) until I could come in this morning and
take a look at the console while booting -- and now everything
is fine.  I have now tried a few reboots (shutdown -r) and halts
(shutdown -h), and I have a dmesg every time it recovers.

I will certainly keep an eye on this and see if I can reproduce
this in any fashion.  If anyone else sees this phenomena (even
transiently), I would love to know about it.

Andrew.

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


dmesg empty after shutdown -r

2008-04-30 Thread A Hamilton-Wright


This is very strange.

After shutdown -r now and the subsequent reboot, I have
logged in to my machine
FreeBSD qemg.org 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 
10:35:36 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  amd64

Everything seems to be running normally, except dmesg produces
no output, and /var/run/dmesg.boot is zero bytes long.

Does anyone have any ideas why this would ever occur?  Or even how
it could occur?

Andrew.

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


Re: USB HD based backup schemes

2008-04-26 Thread A. Hamilton-Wright


You haven't mentioned how large a USB drive you have available
to use for this scheme, but it sounds to me like your situation
can be summed up as follows:

- you have two machines to back up, one is remote, but both have
  consistent network accessibility

- you have a (removable) drive upon which you want to place regular
  backups, based on some use of dump/restore, and presumably this
  drive is large enough for all backup data, to be managed under
  some rotation scheme (old -vs- current directories, for example)

- the main question is how to collect and organize the data onto
  this (removable) drive on a machine remote from the one being
  backed up

If the above pretty much fits the bill, I would suggest a simple
script to be run out of cron to copy the data.  Keep in mind that
you can easily transfer the data directly from dump to your
remote machine by piping it into an ssh command.  On your dobby
machine, a command of the form:

dump 1nuLf - /my/data | ssh -x kreacher /path/to/some/handler/script

will present the dump output to a script run on the backup machine
that can presumably ensure sane handling of the incoming data and
potentially mount your USB device.  Passing the mount point on dobby
as an argument to your remote script will help you organize things
if you have set up multiple filesystems on dobby that you need to
dump separately.

Note that I am assuming here that you have made a zero level dump and
that it will be perpetually available in some safe place.


I'm sure that I could roll my own with dump or such, but I'm sure that I 
would leave important things out and that this has already been done by 
people who are smarter and more experienced than I am.  So recommendations 
please.


As long as you are dumping whole filesystems, I don't really see how
you can leave anything out -- recovery is then simply a case of:
- boot off an install/live CD
- fdisk, label, newfs
- restore dump level 0, restore most recent dump level 1


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


Re: USB HD based backup schemes

2008-04-26 Thread A. Hamilton-Wright

On Sat, 26 Apr 2008, Jeffrey Goldberg wrote:


On Apr 26, 2008, at 3:38 PM, David N wrote:


We used to use RSnapshot http://www.rsnapshot.org/ to backup to an
external disk, its a great tool that also does incremental via hard
links which is a plus.


Just after I posted, I started thinking about rsync.  I hadn't known about 
rsync's hard link feature.


So once I saw that, the trail did lead me to rsnapshot.  The only thing I 
don't like about it is the security hole it demands of remote machines to be 
able to back up to them.


Take a look at rsync's -e feature. You can use it to pipe its output
through an ssh tunnel much as I just posted a moment ago:
rsync -e ssh -x ...  kreacher:path/to/usb/storage

Andrew.

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


CPU throttling on amd64

2008-04-25 Thread A. Hamilton-Wright


Does anyone on this list know the state of any userland
control tools for CPU throttling on the amd64 platform?

I see in the archives that there was little functionality
in this are as of 2004, and then substantial work in 2005
to make cpufreq available through sysctl.

At that time there is a thread indicating how nice it would
be if someone wrote a daemon to do the control for this a la
cpufreqd

http://lists.freebsd.org/mailman/htdig/freebsd-amd64/2005-February/003524.html

I cannot seem to find anything relating to throttling and
or AMD CoolQuiet after that point.  Is there such a daemon?

Thanks for any pointers,
Andrew.

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


Re: OpenBSD - FreeBSD migration

2008-04-23 Thread Andrew Hamilton-Wright


The results of my investigation so far are below:


Filesystem stuff:
 - it appears that FreeBSD and OpenBSD use the same partition
   table format.  Is this true?  If so, I can potentially avoid
   rebuilding an entire disk if I am right that ...
 - FreeBSD can mount and read OpenBSD's version of the 4.2 BSD
   filesystem implementation


Although I strongly suspect that the filesystem itself is probably
the same, it is not possible to read an OpenBSD mounted partition,
as far as I can tell.

After booting using FreeBSD, fdisk correctly reports the information
regarding the slice set up by OpenBSD (default 4, not 1, the FreeBSD
default), however bsdlabel under FreeBSD cannot interpret any of the
data found at the location reported in the table read by fdisk.  I
do find this somewhat surprising, as it is the same structures that
are being recorded.  Perhaps there is a magic number issue here
that causes bsdlabel to believe that it can't interpret the data
as the message returned is that there is no label present in the
indicated slice.

This makes the filesystem question moot, as without access to
the BSD partition results there is no clue as to where to begin
access of the filesystem.



 - even if the above isn't true, it appears that the format used
   by dump/restore is consistent.  I have tried dumping/restoring
   some small filesystems to test this, but if this is an unsupported
   way to go, I would like to know now.


This seems to work.  I was successfully able to dump filesystems
under OpenBSD and then restore them under FreeBSD, with general
success (albeit a complaint that the dump header is out of date).


Cheers,
Andrew.

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


Re: syslogd not reading messages from a remote machine

2008-01-12 Thread Jon Hamilton
Jeffrey Goldberg [EMAIL PROTECTED], said on Sat Jan 12, 2008 [03:50:45 PM]:
} On Jan 11, 2008, at 9:51 AM, Andy Greenwood wrote:
} 
} I have recently set up a Fortigate-60 to run as a firewall/vpn on my  
} home network. I have a FreeBSD 7.0-prerelease machine sitting behind  
} it in the DMZ which is running ssh/web/etc. I'm trying to get the FG  
} to log to the BSD box's syslog. I have set up the necessary stuff on  
} the FG, and can send test logs from there to the bsd box. Running  
} tcpdump on the bsd [...]
} 
} So I know that the packets are getting to the machine. I've set up  
} syslogd to accept packets from 10.10.10.1/32 in rc.conf, and  
} confirmed that the FG's IP should be accepted [...]
} 
} 
} I've restarted syslogd after every change I've made, but no dice.  
} Can anyone shed some light on why these messages aren't logging and  
} what I need to do to fix it?

I didn't see the original thread, but I recently went through this myself.
It turns out that syslogd assumes/requires by default that the originating
packets come *from* port 514 as well as arriving *on* port 514.  In my case,
the remote device was sending from a high numbered port.  

To disable that behavior, just put -a 10.10.10.1/32:* in your syslogd_flags
and you should be good to go (if your problem was the same as mine :)

-- 

   Jon Hamilton 
   [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: is there a /bin/sh method to tell the ending of a file

2008-01-07 Thread Jon Hamilton
} On Mon, Jan 07, 2008 at 09:10:58PM -0800, Gary Kline wrote:
} Paul Procacci [EMAIL PROTECTED], said on Mon Jan 07, 2008 [11:34:08 PM]:
}  Hi All,
}  
}  Is there an easy way of determing whether a string//filename ends in
}  *.gz? using /bin/sh?  I spend around 20 minutes cobbling together 
}  scripts to burn ISO files last night.  Then blindly wasted one CD-R file 
that 
}  was gzipped. tar barfs on you,but cdrecord dev=foo.gz writes
}  exactly that.   I'd like to add a line that yells at me, then gunzips and 
does 
}  an MD5; then writes.   (In C, no prob; C lets me fly, but not /bin/sh.
}  But anyway, if any guru can clue me in, thanks. I think my brain is in Maui
}  for a few days.
}  

} Is this what you mean?
} 
} -
} #!/bin/sh
} 
} STRING=mystring.gz
} 
} if [ .gz = `echo \$STRING\ | sed -n 's/.*\(\.gz\)$/\1/p'` ]; then
}  echo test;
} fi
} 
} ---

Works (I assume) but perhaps easier to read and more native might be:

case $STRING in
*\.gz)
  echo Found .gz suffix
  ;;
*)
  echo Not a .gz suffix
  ;;
esac

Sh is a pretty versatile creature; I'm sure there are a thousand more ways
all of which work, and some of which will cause religious arguments for 
decades :)

-- 

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


burning DVD's on a robotic burner. Running a central iso repository

2007-12-18 Thread Paul Hamilton
Hi,

Just at the idea phase at the moment.  I have played with various command
line tests, but would like to make sure I am not re-inventing the wheel
before I progress further.  Therefore:

1.  Just wondering if anyone knows of a robotic DVD burner/printer that can
be integrated with FreeBSD.  Ideally I would like it to be able to run
'growisofs' and have it burn the DVD on the networked robotic CD/DVD burner.
The burner would have a built in CD/DVD printer.  I am thinking the software
package would have a web page to allow people to upload a graphic, and/or
just a CD/DVD text title, that would be printed onto the CD/DVD.  Having one
central burner would save me having to issue out DVD burners to multiple
users.

2.  Conversely, I am looking into having a central DVD reader, that staff
would insert a DVD, type some meta-data into a webpage, and then click on
the convert button.  FreeBSD would then read the CD/DVD and create an iso
image of it.  The iso image would be placed into a repository, from where
they could be mounted as needed, and shared out via samba.  An email would
be sent out once the CD/DVD has been converted detailing how to access the
iso file.

This all becomes important when a site moves to using thin clients and
Terminal Servers.

Any thoughts and ideas are welcome.

Regards,

Paul Hamilton
Busselton, 6280
Australia


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


RE: (postfix) SPAM filter?

2007-12-13 Thread Paul Hamilton
Hi Sten,

I ran /usr/ports/security/amavisd-new  for a year or so.  I must admit, I
didn't update it so more and more spam made it's way through.  A mate tipped
me off on trying:

 /usr/ports/mail/mailscanner

Much easier to install than amavisd-new.  I found it easier to understand
the config file too.  If you really get keen, there is a book you can
purchase and it has great online help.  There is also a nice optional
webpage stats port/package:  

 /usr/ports/mail/mailscanner-mrtg

Now I only have 1 spam getting through every 3 days or so out of 350+ daily
spam emails.  I now have it running on 4 different sites.

Cheers,

Paul Hamilton


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Sten Daniel Soersdal
 Sent: Thursday, 13 December 2007 10:12 AM
 To: freebsd-questions
 Subject: (postfix) SPAM filter?
 
 
 We have a need for a relatively painless anti-spam solution 
 that would 
 reduce the amount of incoming spam (via postfix mail router). The 
 problem is that i have little knowledge on what this actually means. 
 Googling reveals a whole universe of interesting ways but 
 what should 
 i pursue?
 The things that are important to me is:
 
 * Once it is setup then it would require no additional maintenance.
 * Potential spam messages are marked with a special header 
 that can be 
 filtered on user discretion on their local mail client software.
 
 Neither performance, scalability, license nor cost is of much 
 importance 
 to me at this point.
 
 Any hints?
 
 
 -- 
 Sten Daniel Soersdal ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 
 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Home Automation?

2007-12-05 Thread Jon Hamilton
Jack Barnett [EMAIL PROTECTED], said on Wed Dec 05, 2007 [04:48:55 AM]:
} 
} Anyone know of any Home automation type of devices that work with FreeBSD?
} Basically all I need to do is to toggle a power outlet from within 
} FreeBSD (from off to on and vice-versa)

There's X-10 and its derivatives; it's a powerline communication protocol
which has pretty widely available plug-in modules (outlets/switches with
the receiver built-in are available too).  Most of the computer-side controllers
these days seem to be USB-based; my setup is so old it predates widespread
USB availability so I am not personally familiar with free software to drive
the newer generation of controllers.  There's also xtend which will drive a
plug-in card, but those are pretty antique these days and hard(ish) to find.

www.smarthome.com is one online source of X-10 compatable hardware online.
Hopefully someone else has/will share more current hardware experiences.

-- 

   Jon Hamilton 
   [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: disk drive serial number

2007-11-11 Thread Jon Hamilton
Josh Carroll [EMAIL PROTECTED], said on Sun Nov 11, 2007 [06:38:08 PM]:
}  is there a way to get the serial number from a drive from within the OS?  im
}  trying to audit the drives in my file server, but without pulling the thing
}  from the rack and cracking it open.  they are just standard sata drives, not
}  on any sort of raid controller (ie, i know 3ware cards are capable of 
pulling
}  the drive info).
} 
} Check dmesg (or /var/run/dmesg.boot). The serial number should show, e.g.:
} 
} ad8: 381553MB Seagate ST3400633AS 3.AAH at ata4-master SATA150

That's a model number, not a serial number.  

I'm not sure if there's a simpler way, but smartctl (from the smartmontools 
port/package) will display a disk's serial number.

[602] [EMAIL PROTECTED] tmp$ smartctl -a /dev/ad0 | grep -i serial
Serial Number:9QG386BV

There's probably a better way, but this should at least work.

-- 

   Jon Hamilton 
   [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: Help Failing Disk Problem

2007-11-05 Thread Jon Hamilton
James [EMAIL PROTECTED], said on Mon Nov 05, 2007 [03:16:46 PM]:
} On Mon, 2007-11-05 at 14:04 -0700, Warren Block wrote:
} 
}  On Mon, 5 Nov 2007, James wrote:
}  
}   On Mon, 2007-11-05 at 11:53 -0800, Sean Murphy wrote:
}  
}   I have a FreeBSD 6.2 Release box with a single ide that has user data
}   and the FreeBSD OS on a hard disk that is failing.  I need advice on the
}   best way to clone the entire disk (or at least the data) onto a larger
}   ide disk drive, then pull the failing disk and replace it with the
}   clone.  What is the best way in FreeBSD to do that?
}  
}   The best way is to do it regularly before the hard drive is failing.
}  
}   Given that you haven't done that, there're a few methods. I'm a big fan
}   of rsync,  which is the nectar of the gods, but a lot of folks seem to
}   prefer dd for this kind of thing.
}  
}  rsync is too high-level, and may not do exactly the right thing with 
}  links or sparse files or who knows what. 
} 
} rsync -cav takes cares of symlinks and all that just right. It's a
} beautiful thing.
} 
} Checksumming, too. Ah, bliss.

Reading the man page, I believe that will make copies instead of hard links
for files with more than one link.  By my reading, you'd have to specify -H 
in addition.  As others have pointed out, if you're using ACLs or other 
extended attributes, those may be lost as well.  

This is why I think _in principle_ using a tool which has as its sole purpose
in life the backup and restore, unmolested, of filesystems, is the best 
general approach to this problem.  Other tools may work too, but you have
to put a lot of thought and care into getting 473 of their 1692 command line
options right (made up numbers, obviously) and that's never good when you're
in the heat of the moment and your data is at stake.

} dump has the problem that a lot of tools have, though, including rsync.
} It creates a file list to start from. 
} 
} If the file names on the drive change during the dump, corruption can
} occur. At least on linux. I remember Torvalds ranting about it on a
} mailing list. I imagine FreeBSD suffers the same issue, though, as it's
} a pretty generic problem.

Use dump (or anything else, for that matter) on a snapshot.

Of course, all bets are off since the disk is already failing.  The common
case is that the OP may get most of the files off in tact; probably not all.
Backups are important if you care about your data.

-- 

   Jon Hamilton 
   [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: What's best way to copy a filesystem? [was: Re: slight emergency here...]

2007-10-28 Thread Jon Hamilton
Gary Kline [EMAIL PROTECTED], said on Sun Oct 28, 2007 [03:02:03 PM]:

}  At any rate, how do i as root, single user, cp -rp all of /var to
}  elsewhere (/storage) and rmdir /var, them mkdir /var and copy
}  everything back?? I've forgotten the cpio magic command. 
}  
}   The nutshelll of this posting could be: What's the best tool 
}   to copy a /FILESYSTEM to /storage/FILESYSTEM?

The best tool is the one you use successfully.  If you're really talking about
a whole filesystem, dump and restore may contain the least surprises in 
unusual situations:

$ newfs /dev/whatever
$ mount /dev/whatever /mnt
$ cd /dev/whatever
$ dump 0af - /old_filesystem | restore -rf -

Then delete /mnt/restoresymtable when it's all done.

Of course you can use tar, cpio, cpdup if you have it, or even cp.  At 
different points in time historically some of those have had problems with 
some situations like sparse files, extra hard links, symlinks, etc. 

-- 

   Jon Hamilton 
   [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: FreeBSD on IDE Flash disk drive

2007-03-11 Thread Paul Hamilton
Hi,

I have played around with using an EPIA 600-PD (Fanless Dual NICS), with
256MB RAM.  Works well, however, a buildworld takes around 4 hours  ;-)

I am booting from a 512MB CF card, and run /var and /tmp from a RAM drive.
Upon startup, the CF card /var and /tmp dir. are copied into the ram drives,
the rest is Read Only.  When it shuts down (not very often), the ram drive
contents are copied back to the CF card.  You could backup the ram drive to
CF more frequently if required.  I run off of 12V battery, so power failures
don't affect me all that much. You could monitor the Battery/UPS for power
failure conditions if needed etc.  Running FreeBSD 6.0.

Cheers,

Paul


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Nejc Škoberne
 Sent: Saturday, 10 March 2007 5:10 AM
 To: User Questions
 Subject: FreeBSD on IDE Flash disk drive
 
 
 Hello,
 
 I plan to install a FreeBSD 6.2 router/gateway/DHCP server on 
 a EPIA box with 1GB Transcend IDE Flash drive. Since 
 Transcend says that this device is capable of 10,000 
 insertion/removal cycles I assume that I must minimize the 
 number of writes to the drive. It is okay with me if I have 
 to configure syslog to log to another machine.
 
 Any suggestions/instructions how to achieve this? Any 
 experienced users regarding this matter?
 
 Thanks for ideas and help.
 Nejc
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 
 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


RE: How does my computer work with an empty arp table?

2006-12-07 Thread Paul Hamilton
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
 Sent: Monday, 4 December 2006 2:15 PM
 To: freebsd-questions@freebsd.org
 Subject: Re: How does my computer work with an empty arp table?
 
 
 On Sun, Dec 03, 2006 at 02:53:44PM -0800, Atom Powers wrote:
  On 12/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
  My computer is connected to ISP via ADSL and works properly.
  
  I typed
  
  arp -a
  
  and saw an empty table, although I pinged successfully an Internet 
  host one second ago.
  
  The ARP table is a cache of known ARP-IP addresses. If 
 there are no 
  addresses in the ARP table then the system will send out an ARP 
  broadcast to discover the ARP address that belongs to the 
 IP address. 
  Of course only the Ethernet hosts on your local network will be in 
  your ARP table.
  
  --
  --
  Perfection is just a word I use occasionally with mustard.
  --Atom Ray Powers--
 
 Thank you for response.
 
 But why there is no MAC address of my ADSL modem connected 
 via Ethernet? Does my host send broadcast frames to 
 communicate with modem everytime?
 
 Furthermore, when I ping the modem, a proper entry appears in table:
 
 --
 --
 $arp -a
 
 $ping -c 1 rt # It is my modem
 PING rt.my.domain (192.168.1.1): 56 data bytes
 64 bytes from 192.168.1.1: icmp_seq=0 ttl=254 time=1.298 ms
 
 --- rt.my.domain ping statistics ---
 1 packets transmitted, 1 packets received, 0% packet loss 
 round-trip min/avg/max/stddev = 1.298/1.298/1.298/0.000 ms
 
 $arp -a
 rt.my.domain (192.168.1.1) at 00:13:49:61:f9:b2 on rl0 [ethernet]
 --
 --
 
 But no entry appears when I communicate trough the modem.
 
 How can I watch what is going on?
 

You can see what's going on by su'ing to root, and typeing:  

  tcpdump -ni rl0

then try pinging, or sending your traffic.  You will then see the ADSL modem
reply (or the PPoE traffic etc).

Cheers,

Paul
 

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


how to change the root user's name on FreeBSD 6.1 running postfix

2006-08-19 Thread Paul Hamilton
Hi,
 
I am running postfix on FreeBSD 4.11 and 6.1 servers.
 
In FreeBSD 4.11, you can run 'chsh root'  and edit the name to what you
want.  However, on my FreeBSD 6.1 servers, I still receive email addressed
from 'root unix'.   I would like to be able to differentiate the root mail
according to server the mail came from  :-)
 
Any idea's?
 
 
 
Regards,
 
Paul Hamilton
Busselton, 6280
Australia
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: using fping to monitor internet connection status

2006-07-09 Thread Paul Hamilton
 -Original Message-
 From: Greg Barniskis [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, 6 July 2006 11:32 PM
 To: Paul Hamilton
 Cc: freebsd-questions@freebsd.org
 Subject: Re: using fping to monitor internet connection status
 
 
 Paul Hamilton wrote:
  Hi,
   
  I need to monitor a number of IP addresses, so that if they ALL go 
  down (say three IP's), then that is a pretty good 
 indication that my 
  server has lost internet connectivity.  [snip] Any idea's on a ping 
  tool or simple script?
 
 Your test would be a little simpler if you just test one IP address: 
 your ISP's upstream router. Its reachability is quite definitive re: 
 whether your ISP link is up or down.
 
 Even it it's assigned dynamically by DHCP, you should be able to 
 write a script that pulls that IP, pings it a few times, and checks 
 the result. No special tools necessarily required.
 
 -- 
 Greg Barniskis, Computer Systems Integrator
 South Central Library System (SCLS)
 Library Interchange Network (LINK)
 gregb at scls.lib.wi.us, (608) 266-6348
 
 

Hi All,

Thanks for your input.  I was hoping there was another cmd/util out there
similar to fping that I could elegantly use.  I like the above idea though,
so I ended up using this to isolate the upstream ISP gateway IP: 

 traceroute -nm 2 close-by Internet IP | tail -1 | awk '{ print $2 }'

Integrated that into the fping Perl script and we are away!

Thanks once again  :-)


Cheers,

Paul Hamilton
While the cats away - the mice do play!

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


using fping to monitor internet connection status

2006-07-06 Thread Paul Hamilton
Hi,
 
I need to monitor a number of IP addresses, so that if they ALL go down (say
three IP's), then that is a pretty good indication that my server has lost
internet connectivity.  The most probable cause is usually the ADSL router,
and therefore needs a reboot.  I was hoping to use the 'fping' program, but
looking through the man file, there doesn't seem to be an exit status on
loosing ALL the pings.
 
If one goes down, I don't care, maybe that server is down, so keep pinging
the other two etc.
 
I was hoping to write this in Perl (the first fping example looked ok, until
I realised that it would activate when any one IP address became
unreachable, which means that I am still connected to the Internet).
 
Any idea's on a ping tool or simple script?
 
 
 
Regards,
 
Paul Hamilton
Busselton, 6280
Australia
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Automating a FreeBSD 6.0 boot menu selection

2006-03-05 Thread Paul Hamilton
Hi all,
 
I have a HP DL-140 G2 server, that will only boot when I select FreeBSD Safe
mode, option 3 on the boot loader menu.
 
I have read through 'man loader' and 'man loader.conf'  I have also had a
read through the /boot/defaults/loader.conf file, but don't really see an
option for this.
 
Is there a way to auto select a menu option upon boot up?
 
I am running FreeBSD 6.1-PRERELEASE, and have tried 6.0 RELEASE as well.
 
Obviously it would be nice to have it start up normally, but there seems to
be a problem reading the SATA drive in normal boot mode.
 
 
Regards,
 
Paul Hamilton
Busselton, 6280
Australia
 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: How to know that make buildworld finished

2006-03-05 Thread Paul Hamilton
Hi Olivier,

You could create a simple 'buildworld' script that logs the date and time
before and after into a simple /var/log/buildworld.log file.

Cheers,

Paul

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Olivier Nicole
 Sent: Monday, 6 March 2006 11:25 AM
 To: freebsd-questions@freebsd.org
 Subject: How to know that make buildworld finished
 
 
 Hi,
 
 For testing purposes, I am trying to build a quite old (read 
 slow) machine. It happens that every time I start a 
 buildworld, I will have to leave before the end. And next 
 morning the shell I was using to run the buildworld will have 
 terminated for some reason.
 
 So I cannot see if the make did finished successfully or not.
 
 Is there a way to check that make buildworld did finished 
 successfully?
 
 TIA.
 
 Olivier
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 

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


RE: auth.log intruder prevention

2006-01-25 Thread Paul Hamilton
Hi Daniel,

On your web site, you show how easy it is to convert to IPTABLES.  I presume
then it would be quite easy to reconfigure to use IPFW as well?

Cheers,

Paul

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Gerzo
 Sent: Wednesday, 25 January 2006 7:58 AM
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: auth.log  intruder prevention
 
 
 On Tue, Jan 24, 2006 at 10:02:26PM +0100, Ilias Sachpazidis wrote:
  Hi Everyone,
 
 hello,

  
  In auth.log of my FreeBSD boxes I got many requests to port 
 22, as you 
  can see below. begin of snippet
  Jan 22 11:21:50 zeus sshd[92900]: Failed password for 
 illegal user cracking
  from 65.208.188.105 port 58344 ssh2
  Jan 22 11:21:53 zeus sshd[92902]: Failed password for 
 illegal user hacking
  from 65.208.188.105 port 58443 ssh2
  end of snippet
  
  I am wondering if any script is available to prevent hundreds of 
  attempts on port 22 from external IPs that constantly 
 checking user  
  passwords on my FreeBSD PCs.
  
  What I am looking for is a deamon application/script that 
 receives the 
  recorded data from auth.log and detects if any remote client (IP 
  address) is checking user and passwords (Detection pattern: 
 5 missing 
  attempts in 1 min). On a successful detection, the script 
 should add 
  an ipfw rule rejecting further IP packets from the specific remote 
  address.
  
  Is any script or something similar available so far?
 
 I've written a BruteForceBlocer, you can install it from 
 ports as well, check security/bruteforceblocker.
 
 Hope you will like it.
 
 -- 
 Sincerely,
Daniel Gerzo
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 

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


Adding 4 port HP NC150T NIC into FreeBSD 4.11

2006-01-23 Thread Paul Hamilton
Hi,

I have an internal HP DL-140 running FreeBSD 4.11p13.  The two internal
NIC's (bge1  bge2) and a HP NC150T  PCI NIC (bge0), are all running fine.
I have just pulled out the 1 port PCI NIC, and installed a HP 4 port NIC.

Interestingly, I found that only the first port on the NIC (BCM5705K -
bge0), is recognised by FreeBSD.  Surely, if it recognises one, it would
recognise them all?


Here is the dmesg NIC portion:

snip

pcib1: ServerWorks host to PCI bridge(unknown chipset) on motherboard
pci1: PCI bus on pcib1
bge0: Broadcom BCM5705K Gigabit Ethernet, ASIC rev. 0x3003 mem
0xfeaf-0xfeaf irq 3 at device 6.0 on pci1
bge0: Ethernet address: 00:11:85:12:ea:a9
miibus0: MII bus on bge0
brgphy0: BCM5705 10/100/1000baseTX PHY on miibus0
brgphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto
pcib2: Host to PCI bridge on motherboard
pci2: PCI bus on pcib2
bge1: Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002 mem
0xfebb-0xfebb,0xfebc-0xfebc irq 5 at device 0.0 on pci2
bge1: Ethernet address: 00:12:79:3d:73:de
miibus1: MII bus on bge1
brgphy1: BCM5704 10/100/1000baseTX PHY on miibus1
brgphy1:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto
bge2: Broadcom BCM5704C Dual Gigabit Ethernet, ASIC rev. 0x2002 mem
0xfebe-0xfebe,0xfebf-0xfebf irq 11 at device 0.1 on pci2
bge2: Ethernet address: 00:12:79:3d:73:df
miibus2: MII bus on bge2
brgphy2: BCM5704 10/100/1000baseTX PHY on miibus2
brgphy2:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX,
1000baseTX-FDX, auto
snip

Any idea why it doesn't recognise the other 3 ports of the PCI HP NC150T NIC

Cheers,

Paul Hamilton

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


RE: Serial Port Logging

2006-01-05 Thread Paul Hamilton
You might want to check out the minicom port:   ports/comms/minicom/

 
 
Regards,
 
Paul Hamilton
Busselton, 6280
Australia


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 [EMAIL PROTECTED]
 Sent: Thursday, 5 January 2006 10:17 AM
 To: freebsd-questions@freebsd.org
 Subject: Serial Port Logging
 
 
 Ladies and Gentlemen,
 
 The organization I work for has a need to log information 
 from the phone system.  The phone system has a serial port output.
 
 Since I already have a FreeBSD server in place at this 
 location, I was wondering if it is possible to send the 
 information from the phone system, to the FreeBSD server, 
 have the information saved via the serial port?
 
 I'm thinking something like cu -l /dev/cuua0  outputfile.txt
 
 Thanks,
 
 
 Jay
 
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 

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


Using ifconfig to change channels using FreeBSD 6.0 on a Netgear WG311v3 wireless NIC

2005-11-24 Thread Paul Hamilton
Hi,
 
I have compiled the FreeBSD driver from the Windows 2000 files by running:
ndisgen WG311v3.INF WG311v3.sys
 
After working through the simple wizard and selecting the defaults, I ended
up with a kernel module called:  WG311v3_sys.ko
 
Then I loaded it by running:
 
  kldload ndis
  kldload WG311v3_sys.ko
 
I could then run:  wicontrol -i ndis0   to see the following:
 
NIC serial number:  [  ]
Station name:   [ asc1 ]
SSID for IBSS creation: [ my_net ]
Current netname (SSID): [  ]
Desired netname (SSID): [ my_net ]
Current BSSID:  [ 00:00:00:00:00:00 ]
Channel list:   [ 3fff ]
IBSS channel:   [ 3 ]
Current channel:[ 1 ]
Comms quality/signal/noise: [ 0 0 0 ]
Promiscuous mode:   [ Off ]
Intersil-Prism2 based card: [ 1 ]
Port type (1=BSS, 3=ad-hoc):[ 1 ]
MAC address:[ 00:0f:b5:85:87:f0 ]
TX rate (selection):[ 0 ]
TX rate (actual speed): [ 1 ]
RTS/CTS handshake threshold:[ 2346 ]
Create IBSS:[ Off ]
Access point density:   [ 1 ]
Power Mgmt (1=on, 0=off):   [ 0 ]
Max sleep time: [ 100 ]
WEP encryption: [ Off ]
TX encryption key:  [ 0 ]
Encryption keys:[  ][  ][  ][  ]
 
Now, if I try changing the current channel by using this command:  ifconfig
ndis0 channel 11
 
All this does is change the IBSS channel to 11, not the current channel.  
 
What am I missing here?
 
Cheers,
 
Paul Hamilton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server?

2005-10-29 Thread Paul Hamilton
Hi Dinesh,

Ah, the ML-110 G2.  I have ordered one of those.  I thought I would have a
go at installing FreeBSD on it before I have to install Windows 2003 on it
for a client.

I am thinking about purchasing one next year, along with the new 3ware raid
5 card.  Try my hand at building a 1.5TB raid  :-)

Where did you get the patch from?

Cheers,

Paul

 -Original Message-
 From: Dinesh Nair [mailto:[EMAIL PROTECTED] 
 Sent: Friday, 28 October 2005 10:04 PM
 To: Paul Hamilton
 Cc: freebsd-questions@freebsd.org
 Subject: Re: Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server?
 
 
 
 
 On 10/26/05 21:28 Paul Hamilton said the following:
  Hi,
  
  I have FreeBSD 4.11 running nicely on a HP DL-140  (80GB 
 Parallel ATA 
  HD), but is anyone running FreeBSD on a HP DL-140 *G2* 
 (80GB SATA HD)?
 
 works with the HP ML110 G2 with the ICH7 SATA RAID 
 controller. i've had to 
 patch sys/dev/ata-pci.c to get it to recognize it but it's a 
 short and 
 simple patch.
 
 -- 
 Regards,   /\_/\   All dogs go to heaven.
 [EMAIL PROTECTED](0 0)http://www.alphaque.com/
 +==oOO--(_)--OOo==
 ==
 +==+
 | for a in past present future; do
 |
 |   for b in clients employers associates relatives 
 neighbours pets; do   |
 |   echo The opinions here in no way reflect the opinions of 
 my $a $b.  |
 | done; done  
 |
 +=
 ==
 +==+
 
 

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


RE: Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server?

2005-10-29 Thread Paul Hamilton
Hi Andrew,

Thanks for that.  Yes, I can't wait to have a crack at 6.0.  I downloaded
the first beta, but it refused to install.  I read recently on the list, a
thread talking about this.  I just haven't had time to test out the fix.
Going on holidays shortly, so I hope 6.0 will be released by the time I get
back :-)

Cheers,

Paul

 -Original Message-
 From: Andrew P. [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, 29 October 2005 7:08 PM
 To: Dinesh Nair
 Cc: Paul Hamilton; freebsd-questions@freebsd.org
 Subject: Re: Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server?
 
 
 On 10/28/05, Dinesh Nair [EMAIL PROTECTED] wrote:
 
 
  On 10/26/05 21:28 Paul Hamilton said the following:
   Hi,
  
   I have FreeBSD 4.11 running nicely on a HP DL-140  (80GB Parallel 
   ATA HD), but is anyone running FreeBSD on a HP DL-140 *G2* (80GB 
   SATA HD)?
 
  works with the HP ML110 G2 with the ICH7 SATA RAID controller. i've 
  had to patch sys/dev/ata-pci.c to get it to recognize it but it's a 
  short and simple patch.
 
  --
  Regards,   /\_/\   All dogs go to heaven.
  [EMAIL PROTECTED](0 0)http://www.alphaque.com/
  
 +==oOO--(_)--OOo==
  ++
  | for a in past present future; do  
   |
  |   for b in clients employers associates relatives 
 neighbours pets; do   |
  |   echo The opinions here in no way reflect the opinions 
 of my $a $b.  |
  | done; done
   |
  
 +=
  ++
  ___
  freebsd-questions@freebsd.org mailing list 
  http://lists.freebsd.org/mailman/listinfo/freebsd-questions
  To unsubscribe, send any mail to 
  [EMAIL PROTECTED]
 
 
 Yes, 6.0 handles ICH7 in a much better way.
 
 

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


Enumerating a Windows based PC from a FreeBSD based server

2005-10-29 Thread Paul Hamilton
Hi,

I am trying to document which managed switch port (HP 4000m), a users PC is
plugged into.  I had thought to use a login script to dump some info into a
MySQL DB, but I am now leaning on scanning the switch, and build up the data
backwards from there.  The info will all end up on a PHP searchable web
page.  I should then be able to track admin logins (does anyone know the
passwd?), have some users given their username and passwd to someone else to
use? Etc.

I have found the SNMP OID's of the IP and MAC addresses and the switch port
number the computer is plugged into.  From a DNS lookup, I can find the PC
name, but how do I find out the current logged in user name on the PC,
remotely from a FreeBSD server?

The GFI LanGuard network scanner is a very informative tool:
http://www.gfi.com/lannetscan/  so having something similar to this on a
FreeBSD server would be great. The utility must of course be scriptable.


Cheers,

Paul

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


RE: Enumerating a Windows based PC from a FreeBSD based server - Resolved

2005-10-29 Thread Paul Hamilton
Hi,

OK, after a lot more searching of the ports system - nothing found so far.
Something joggled a neuron to have a look at what samba utils could tell me.

By running: nmblookup -A IP Number or PC name  it quickly returns a nice
list of info. All I need to do then is grep for '03' and exclude the PC
name to have a list of users logged into that PC or Server.

I have only done hand testing. I will whip up a script, and test it out
during a work day to see how it goes ;-)

Cool.

Cheers,

Paul Hamilton

 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Paul Hamilton
 Sent: Sunday, 30 October 2005 9:28 AM
 To: freebsd-questions@freebsd.org
 Subject: Enumerating a Windows based PC from a FreeBSD based server
 
 
 Hi,
 
 I am trying to document which managed switch port (HP 4000m),
 a users PC is plugged into.  I had thought to use a login 
 script to dump some info into a MySQL DB, but I am now 
 leaning on scanning the switch, and build up the data 
 backwards from there.  The info will all end up on a PHP 
 searchable web page.  I should then be able to track admin 
 logins (does anyone know the passwd?), have some users given 
 their username and passwd to someone else to use? Etc.
 
 I have found the SNMP OID's of the IP and MAC addresses and
 the switch port number the computer is plugged into.  From a 
 DNS lookup, I can find the PC name, but how do I find out the 
 current logged in user name on the PC, remotely from a FreeBSD server?
 
 The GFI LanGuard network scanner is a very informative tool:
 http://www.gfi.com/lannetscan/  so having something similar 
 to this on a FreeBSD server would be great. The utility must 
 of course be scriptable.
 
 
 Cheers,
 
 Paul
 
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 



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


Can FreeBSD 4.11 and 5.4 run on a HP DL-140 G2 server?

2005-10-26 Thread Paul Hamilton
Hi,

I have FreeBSD 4.11 running nicely on a HP DL-140  (80GB Parallel ATA HD),
but is anyone running FreeBSD on a HP DL-140 *G2* (80GB SATA HD)?

It's the SATA controller I am worried about.  The Hardware notes on the 5.4
i386 page don't list the E7520 chipset.

Regards,

Paul Hamilton
Information Technology Officer
Shire of Busselton
Ph: 08 9781-0391



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


RE: Accessing the Digital IO pins on a VIA EPIA-PD motherboard - Second question

2005-09-10 Thread Paul Hamilton
Ok, so it doesn't look like anyone knows anything about how to access the
DIO pins on this MB.

Next question, How does one go about analysing the hardware to find out what
the io and interrupt addresses might be?

The only command I can find is the 'pciconf' cmd.  What if the DIO ports are
hanging off the ISA bus?

Here is what the EPIA-PD motherboard reports as:-

# pciconf -lv
[EMAIL PROTECTED]:0:0:  class=0x06 card=0xaa011106 chip=0x31231106 rev=0x00
hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT8623 Apollo CLE266 CastleRock CPU to PCI Bridge'
class= bridge
subclass = HOST-PCI
[EMAIL PROTECTED]:1:0: class=0x060400 card=0x0080 chip=0xb0911106 rev=0x00
hdr=0x01
vendor   = 'VIA Technologies Inc'
device   = 'VT8633 Apollo Pro 266 CPU to AGP Controller'
class= bridge
subclass = PCI-PCI
[EMAIL PROTECTED]:15:0:  class=0x02 card=0x01061106 chip=0x31061106 rev=0x8b
hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT6105M/LOM Rhine III PCI Fast Ethernet Controller'
class= network
subclass = ethernet
[EMAIL PROTECTED]:16:0:class=0x0c0300 card=0xaa011106 chip=0x30381106
rev=0x80 hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:16:1:class=0x0c0300 card=0xaa011106 chip=0x30381106
rev=0x80 hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:16:2:class=0x0c0300 card=0xaa011106 chip=0x30381106
rev=0x80 hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT82x UHCI USB 1.1 Controller (All VIA Chipsets)'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:16:3:class=0x0c0320 card=0x31041106 chip=0x31041106
rev=0x82 hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT6202 USB 2.0 Enhanced Host Controller'
class= serial bus
subclass = USB
[EMAIL PROTECTED]:17:0:class=0x060100 card=0xaa011106 chip=0x31771106
rev=0x00 hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT8235 PCI to ISA Bridge'
class= bridge
subclass = PCI-ISA
[EMAIL PROTECTED]:17:1:  class=0x01018a card=0xaa011106 chip=0x05711106
rev=0x06 hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT82 EIDE Controller (All VIA Chipsets)'
class= mass storage
subclass = ATA
[EMAIL PROTECTED]:17:5:class=0x040100 card=0xaa011106 chip=0x30591106
rev=0x50 hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT8233/33A/8235/8237 AC97 Enhanced Audio Controller'
class= multimedia
subclass = audio
[EMAIL PROTECTED]:18:0:  class=0x02 card=0x01021106 chip=0x30651106 rev=0x74
hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT6102 Rhine II PCI Fast Ethernet Controller'
class= network
subclass = ethernet
[EMAIL PROTECTED]:0:0: class=0x03 card=0x31221106 chip=0x31221106 rev=0x03
hdr=0x00
vendor   = 'VIA Technologies Inc'
device   = 'VT8623 Apollo CLE266 CastleRock AGP 8X Controller'
class= display
subclass = VGA

Any other ideas on how to aproach this?

Cheers,

Paul Hamilton


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Paul Hamilton
 Sent: Monday, 5 September 2005 4:17 PM
 To: freebsd-questions@freebsd.org
 Subject: Accessing the Digital IO pins on a VIA EPIA-PD motherboard
 
 
 Hi,
 
 Anyone know the interrupts and addresses of the 8 Digital IO 
 pins of the EPIA-PD motherboard?
 
 Cheers,
 
 Paul Hamilton
 
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 

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


RE: Accessing the Digital IO pins on a VIA EPIA-PD motherboard - Second question

2005-09-10 Thread Paul Hamilton
Hi Roland,

Thanks for the VIA Forum tip.  I will see what they have to say.

Cheers,

Paul Hamilton

 -Original Message-
 From: Roland Smith [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, 10 September 2005 9:52 PM
 To: Paul Hamilton
 Cc: freebsd-questions@freebsd.org
 Subject: Re: Accessing the Digital IO pins on a VIA EPIA-PD 
 motherboard - Second question
 
 
 On Sat, Sep 10, 2005 at 09:13:20PM +0800, Paul Hamilton wrote:
  Ok, so it doesn't look like anyone knows anything about how 
 to access 
  the DIO pins on this MB.
  
  Next question, How does one go about analysing the hardware to find 
  out what the io and interrupt addresses might be?
 
 Looking at page 5 of the manual for this mobo 
 (http://www.viaembedded.com/product/Download.jsp?motherboardId
=241), it looks like there is a VT1211 super I/O chip connected to the
VT8235 southbridge. 

The GPI/O is nowhere to be to been seen on this drawing, but the webpage for
the VT1211 (http://www.via.com.tw/en/products/peripherals/super-io/)
lists 56 General Purpose I/O Pins My guess would be that that's what
you're looking for. You'd have to talk to VIA how the 8 pins on the mobo are
connected to the VT1211.

VIA has released an IrDA driver for the VT1211, but it is Linux-only and
binary-only.

You could write VIA and ask them to release enough documentation to allow a
driver for the digital I/O pins to be written.

Good luck.

Roland
-- 
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt

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


RE: Re: C program to write to the com port - RESOLVED

2005-09-09 Thread Paul Hamilton
Hi vittorio,

Hey I am just a beginner myself, but this is a C program, not a C++ program.
My gcc is version 3.4.2 too.

Hmm, did you cut and paste ALL of the source code, including the #include
statements?  I also see that it's mentioning code on lines 62, 66 and 69.
My testssc.c only has around 57 lines of code.  What else have you included?


Cheers,

Paul

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of vittorio
 Sent: Friday, 9 September 2005 7:54 PM
 To: freebsd-questions@freebsd.org
 Subject: Fwd: Re: C program to write to the com port - RESOLVED
 
 
 
 As a C++ absolute beginner I'm trying to compile your 
 testssc.c file with
 
 g++ testssc.c -o testssc
 (under freebsd 5.4, gcc version 3.4.2)
 
 But...
 I only get:
 
 SerialPort.C: In function `int main(int, char*)':
 SerialPort.C:62: error: invalid conversion from `unsigned 
 char*' to `char*'
 SerialPort.C:62: error:   initializing argument 1 of `int 
 snprintf(char*, 
 size_t, const char*, ...)'
 SerialPort.C:66: error: `err' undeclared (first use this function)
 SerialPort.C:66: error: (Each undeclared identifier is 
 reported only once for 
 each function it appears in.)
 SerialPort.C:69:3: warning: no newline at end of file
 
 Could you please help to straighten things up?
 
 Vittorio
 
 --  Messaggio inoltrato  --
 
 Subject: Re: C program to write to the com port - RESOLVED
 Date: 02:23, venerdì 09 settembre 2005
 From: Paul Hamilton [EMAIL PROTECTED]
 To: freebsd-questions@freebsd.org
 
 .
 --
 --
 
 /*  Name: testssc.c
  *  compile with:  gcc testssc.c -o testssc
  *
  *  Your serial cable should be plugged into com port 1.
  *  You only need the pin 3 and pin 5 (DB9) plugged into the 
 controller.
  *  The servo should be plugged into the first servo channel/port.
  *  This test program when run will move the servo from midrange,
  *  to position 01.  This is for demonstrational use only.
  *  Tested with FreeBSD 5.4
  *  Paul Hamilton  8th Aug 2005
  */
 
 #include sys/time.h
 #include sys/ioctl.h
 #include errno.h
 #include fcntl.h
 #include termios.h /*Originally it was termio.h*/
 #include stdio.h
 #include unistd.h
 // Use serial port 0  (com port 1)
 static char *opt_comport=/dev/cuaa0;
 
 int main(int argc, char **argv)
 {
 int fd;
 struct termios options;
 unsigned char buf[4];
 
 // ok, lets try opening the com port
 printf(Opening Com port: %s\n\n, opt_comport);
 if((fd = open(opt_comport, O_RDWR | O_NOCTTY ))  0)
   {
  printf(Problems opening %s\n, opt_comport);
  return (-1);
   }
 // set the required com port parrameters
 options.c_cflag = ~CSIZE;  /* Mask the character size bits */
 options.c_cflag |= CS8; /* Select 8 data bits */
 options.c_cflag = ~PARENB; // set no parity
 options.c_cflag = ~CSTOPB; // set 1 stop bit
 options.c_oflag = ~OPOST;  // Raw output
 
 tcgetattr(fd, options);
 
 /*
  * Set the baud rates to 9600...
  */
 cfsetispeed(options, B9600);
 cfsetospeed(options, B9600);
 
 /*
  * Enable the receiver and set local mode...
  */
 options.c_cflag |= (CLOCAL | CREAD);
 
 /*
  * Set the new options for the port...
  */
 tcsetattr(fd, TCSANOW, options);
 
 // ok, lets transmit our 3 bytes through com port 1
 snprintf(buf,4,%c%c%c%c,0xff,0x00,0x01,0);
 printf(buf=%x,%x,%x,%x\n, buf[0],buf[1],buf[2],buf[3]);
 
   if (write(fd, buf, 3) != 3)
 err(1, write);
 
 close(fd);
 };
 --
 --
 
 
 Cheers,
 
 Paul Hamilton
 
 PS.  I have three books on programming in C winging their way 
 to Australia. I have a lot to learn  :-)
 
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 ---
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 

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


RE: Serial Port data dumping program

2005-09-09 Thread Paul Hamilton
Hi Ian,

 -Original Message-
 From: Ian Smith [mailto:[EMAIL PROTECTED] 
 Sent: Saturday, 10 September 2005 3:16 AM
 To: Paul Hamilton
 Cc: Glenn Dawson; freebsd-questions@freebsd.org
 Subject: RE: Serial Port data dumping program
 
 
 Hi Paul,
 
 catching up on a week's digests .. and seeig no further 
 messages on this topic so far, I don't know whether you've 
 sorted this out yet.  Anyway..
 
  Snip

I have been using the 'minicom' port to dump the 
 received data.  
 
 I guess you mean the _transmitted_ data, right?  I just 
 grabbed the manual at http://www.seetron.com/pdf/ssc2_mnl.pdf 
 and note that the board only _receives_ command data packets.
 

Yes that's correct

However, it doesn't seem to collect the data properly.  Data 
coming in 
should be in accordance with the SSC protocol, ie:

byte 1:0xFF// sync byte

byte 2:   0x01 - 0x25f//servo address

How do you fit 0x25f into a single byte? (I count 10 
 bits required)
   
   Yep, a typo, should have been:  0xff
 
 Well, it should be 0-7 (for 1 board, 8-15 for a second board, etc)

Yes I was confused about what the starting address was.  After looking at
the bytes being sent from the Windows program, I could see the correct
starting address was 0.

 
byte 3:   0x00 - 0x255   // servo position

Same question as above.
   
   Brain thinking in hex, fingers working in decimal ;-)
 
 Actually it's 0-254 (0x00 - 0xfe) .. 0xff would be another sync byte. 

True.

 
Here is a dump of the collected data (via minicom):

#hexdump  minicom.cap
000 45ff 49ff 4cff 50ff 53ff 57ff 5aff 57ff
010 53ff 50ff 4cff 49ff 45ff 45ff 01ff ff82
020 8101 01ff ff80 8202 02ff ff81 8002 03ff
030 ff83 8203 03ff ff81 8003 7fff 7fff 7eff
040 01ff ff7f 7f02 03ff ff7f ff7f 8001 02ff
050 ff80 8003 04ff ff80 ff80 8006 07ff 0080

Looking at the first row of data, it is only showing 
 two bytes, sync 
and servo position.  Rows 020 and 030, shows some servo 
addresses, but 
sometimes, together!  Both the mini-ssc.exe and minicom 
 program are 
using 9600 8n1, so why is it showing this?  Is there 
something I have 
missed in the setup of minicom?  Looks like this is a 
 serial buffer 
problem.
 
 Maybe flow control?  Is the serial port's UART programmed to 
 ignore CTS/RTS, and/or DTR/DSR?  You say you've only wired 
 signal ground, and TxD to RxD, but you 'normally' can't 
 transmit unless CTS is asserted (say, by RTS), may need 
 DTR/DSR too, and perhaps expect DCD to receive? I don't 
 really get what you're doing with minicom - are you receiving 
 the data on another port, or just echoing your transmitted data back?
 

This is what I thought as well.  I had a serial port breakout box wired
inline and configured pretty well as you mention.  Once I had found the
Windows mini-ssc program, I then 'just for a lark' pulled one jumper wire at
a time, until I found that it was working as a straight through cable!

snip

 paqi% hexdump
 fgjdg kj
 ^D
 000 6766 646a 2067 6a6b 000a
 009
 
 paqi% hd
 fgjdg kj
 ^D
   66 67 6a 64 67 20 6b 6a  0a   
 |fgjdg kj.|
 0009
 
Is there a better program I could use to display the 
 incoming serial 
data in hex?
 
 hd :)  Again, you mean a reflection of your outgoing data, don't you?
 
NOTE:  I only use two wires, signal ground and Tx Data 
 (connected to 
the Rx Data).  The servo does respond correctly, so I know 
the serial 
data must be in the correct 3 byte format.
 
 You could try 2 stop bits - they say one or more.
 
 In the second example program in (good grief!) QBASIC in the 
 above PDF manual, they begin by initialising the serial port thus: 
 
  OPEN com1:9600,N,8,1,CD0,CS0,DS0,OP0 FOR OUTPUT AS #1;
 
 I gather CD0 means ignore DCD, CS0 ignore CTS, DS0 ignore 
 DSR; don't know about OP0.  Seems you need no flow control, 
 or null-modem wiring?
 
 Cheers, Ian
 

Ah, hd!  Yes this is a nice program.  No byte re-ordering  I have noted it
down :-)

I don't know if you saw one of my other threads C program to write to the
com port  which is now resolved.  I started this thread to help with the
troubleshooting of the serial data coming from the C Program.  

It's interesting that minicom seems to skip recording the 0x00 servo address
byte!

Thanks for your help.


Cheers,

Paul

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


Re: C program to write to the com port - RESOLVED

2005-09-08 Thread Paul Hamilton
Hi,

Thanks to the patience and persistens of Giorgos, Garret and David, I now
have a *sample* program that will transmit 3 bytes of data (mini-ssc
protocol), via a serial port to a 8 channel servo controller board.  I will
continue to develop this as needed.  

DISCLAIMER:  This is being posted for archival purposes, and no doubt can
use a lot of improvement!



/*  Name: testssc.c  
 *  compile with:  gcc testssc.c -o testssc
 *  
 *  Your serial cable should be plugged into com port 1.  
 *  You only need the pin 3 and pin 5 (DB9) plugged into the controller.
 *  The servo should be plugged into the first servo channel/port.
 *  This test program when run will move the servo from midrange, 
 *  to position 01.  This is for demonstrational use only.
 *  Tested with FreeBSD 5.4
 *  Paul Hamilton  8th Aug 2005
 */

#include sys/time.h
#include sys/ioctl.h
#include errno.h
#include fcntl.h
#include termios.h /*Originally it was termio.h*/
#include stdio.h
#include unistd.h
// Use serial port 0  (com port 1) 
static char *opt_comport=/dev/cuaa0;

int main(int argc, char **argv)
{
int fd;
struct termios options;
unsigned char buf[4];

// ok, lets try opening the com port
printf(Opening Com port: %s\n\n, opt_comport);
if((fd = open(opt_comport, O_RDWR | O_NOCTTY ))  0) 
  {
 printf(Problems opening %s\n, opt_comport);
 return (-1);
  }
// set the required com port parrameters
options.c_cflag = ~CSIZE;  /* Mask the character size bits */
options.c_cflag |= CS8; /* Select 8 data bits */
options.c_cflag = ~PARENB; // set no parity
options.c_cflag = ~CSTOPB; // set 1 stop bit
options.c_oflag = ~OPOST;  // Raw output

tcgetattr(fd, options);

/*
 * Set the baud rates to 9600...
 */
cfsetispeed(options, B9600);
cfsetospeed(options, B9600);

/*
 * Enable the receiver and set local mode...
 */
options.c_cflag |= (CLOCAL | CREAD);

/*
 * Set the new options for the port...
 */
tcsetattr(fd, TCSANOW, options);

// ok, lets transmit our 3 bytes through com port 1
snprintf(buf,4,%c%c%c%c,0xff,0x00,0x01,0);
printf(buf=%x,%x,%x,%x\n, buf[0],buf[1],buf[2],buf[3]);

  if (write(fd, buf, 3) != 3)
err(1, write);

close(fd);
};



Cheers,

Paul Hamilton

PS.  I have three books on programming in C winging their way to Australia.
I have a lot to learn  :-)

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


RE: Serial Port data dumping program

2005-09-05 Thread Paul Hamilton


 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of Glenn Dawson
 Sent: Monday, 5 September 2005 5:19 PM
 To: Paul Hamilton; freebsd-questions@freebsd.org
 Subject: Re: Serial Port data dumping program
 
 
 At 01:08 AM 9/5/2005, Paul Hamilton wrote:
 Hi,
 
 I am trying to debug a Mini SSC FreeBSD program that I am trying to 
 write. It would be nice to be able to be able to see what is being 
 transmitted.  It would help in the debugging of my program.
 
 Here is a link to a Windows based Mini SSC program: 
 http://www.rentron.com/Mini-ssc.htm  Using this, I can control the 
 servo, so I know the hardware and cables work etc.
 
 I have been using the 'minicom' port to dump the received data.  
 However, it doesn't seem to collect the data properly.  Data 
 coming in 
 should be in accordance with the SSC protocol, ie:
 
 byte 1:0xFF// sync byte
 
 byte 2:   0x01 - 0x25f//servo address
 
 How do you fit 0x25f into a single byte? (I count 10 bits required)
 

Yep, a typo, should have been:  0xff

 
 byte 3:   0x00 - 0x255   // servo position
 
 Same question as above.

Brain thinking in hex, fingers working in decimal ;-)

 
 
 Here is a dump of the collected data (via minicom):
 
 #hexdump  minicom.cap
 000 45ff 49ff 4cff 50ff 53ff 57ff 5aff 57ff
 010 53ff 50ff 4cff 49ff 45ff 45ff 01ff ff82
 020 8101 01ff ff80 8202 02ff ff81 8002 03ff
 030 ff83 8203 03ff ff81 8003 7fff 7fff 7eff
 040 01ff ff7f 7f02 03ff ff7f ff7f 8001 02ff
 050 ff80 8003 04ff ff80 ff80 8006 07ff 0080
 
 Looking at the first row of data, it is only showing two bytes, sync 
 and servo position.  Rows 020 and 030, shows some servo 
 addresses, but 
 sometimes, together!  Both the mini-ssc.exe and minicom program are 
 using 9600 8n1, so why is it showing this?  Is there 
 something I have 
 missed in the setup of minicom?  Looks like this is a serial buffer 
 problem.
 
 You probably have byte ordering issues.  Does something like this 
 look more reasonable?
 
 000 ff45 ff49 ff4c ff50 ff53 ff57 ff5a ff57
 010 ff53 ff50 ff4c ff49 ff45 ff45 ff01 82ff
 020 0181 ff01 80ff 0282 ff02 81ff 0280 ff03
 030 83ff 0382 ff03 81ff 0380 ff7f ff7f ff7e
 040 ff01 7fff 027f ff03 7fff 7fff 0180 ff02
 050 80ff 0380 ff04 80ff 80ff 0680 ff07 8000
 
 -Glenn

Yes, somewhat better, but still missing bytes here and there, ie. First
line, all the servo address bytes etc.

Why would the bytes be swapped around?

Cheers,

Paul

 
 
 Is there a better program I could use to display the incoming serial 
 data in hex?
 
 NOTE:  I only use two wires, signal ground and Tx Data (connected to 
 the Rx Data).  The servo does respond correctly, so I know 
 the serial 
 data must be in the correct 3 byte format.
 
 Looking fwd to your thoughts.
 
 Cheers,
 
 Paul Hamilton
 
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 

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


Pulsar ADSL Drivers for FreeBSD 4.11 and 5.4

2005-09-04 Thread Paul Hamilton
Hi,
 
I have found this site:
 
http://sourceforge.net/projects/openadsl/
 
There is a driver for OpenBSD, but the file names are slightly different to
FreeBSD.  Reading through the mailing list archives, there were some people
working on a FreeBSD 5.4 driver patch.  
 
Does anyone know what the status is on this?  Has anyone got the OpenBSD
drivers going on FreeBSD 4.x or 5.4?
 
I would be interested in giving this a go.
 
Cheers,
 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Directory permissions issue taring directories onto a Compact Flashcard

2005-08-28 Thread Paul Hamilton
Well, I never really resolved this.  I later tried taring at a sh prompt.
Same deal.  I had tried manually chmoding the /mnt dir. To 777, but that
didn't help either.

In the end I gave up, and did a fresh install straight onto the CF drive
from the CD.  I did try a 6.0 beta3 install, but it kept crashing early in
the install process, so 5.4 it is (for the time being).

Cheers,

Paul

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf Of 
 Paul Hamilton
 Sent: Saturday, 27 August 2005 10:28 PM
 To: freebsd-questions@freebsd.org
 Subject: Directory permissions issue taring directories onto 
 a Compact Flashcard
 
 
 Hi,
 
 I have done a minimal FreeBSD 5.4 install onto single 
 partition ad0s1a  I then mounted my 512MB Compact Flash ide 
 drive on ad2s1.
 
 When I run this command su'ed as root: 
tar --one-file-system cf - -C / . | tar xpvf - -C /mnt
 
 I find that all the directories end up with permissions of:   
 drwx--
 
 Even running:   dump 0af - / | restore xf -   gives the same result.
 
 If I manually create a directory on the CF /mnt I get the 
 correct permissions!  Files copied over via tar and dump are 
 ok.  I have used tar to copy HD contents to larger HD,s 
 before with out a problem.
 
 Umask is set to 22, and this is being done in a tcsh shell. 
 
 Any clue on whats going on?
 
 Cheers,
 
 Paul Hamilton.
 
 ___
 freebsd-questions@freebsd.org mailing list 
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]
 
 

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


Directory permissions issue taring directories onto a Compact Flash card

2005-08-27 Thread Paul Hamilton
Hi,

I have done a minimal FreeBSD 5.4 install onto single partition ad0s1a  I
then mounted my 512MB Compact Flash ide drive on ad2s1.

When I run this command su'ed as root: 
   tar --one-file-system cf - -C / . | tar xpvf - -C /mnt

I find that all the directories end up with permissions of:   drwx--

Even running:   dump 0af - / | restore xf -   gives the same result.

If I manually create a directory on the CF /mnt I get the correct
permissions!  Files copied over via tar and dump are ok.  I have used tar to
copy HD contents to larger HD,s before with out a problem.

Umask is set to 22, and this is being done in a tcsh shell. 

Any clue on whats going on?

Cheers,

Paul Hamilton.

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


C program to write to the com port

2005-07-31 Thread Paul Hamilton
Hi,

I am trying to write a C program that will send 3 bytes to the cuaa0 com
port at 9600 baud, 8n1.  I am trying to control a Northlight 8 Channel Servo
motor controller:
http://home.att.net/~northlightsystems/DMX512toRCservo.htm

Most of the code came from this page:
http://www.easysw.com/~mike/serial/serial.html

Here is what I have so far:-
---

#include sys/time.h
#include sys/ioctl.h
#include errno.h
#include fcntl.h
#include termios.h /*Originally it was termio.h*/
#include stdio.h
#include unistd.h
static char *opt_comport=/dev/cuaa0;

int main(int argc, char **argv)
{
int n;
int dcf_dev;
int sdata =  0xFF0090;  // sync byte, address, servo value to be sent to
the Servo Controller
struct termios options;

// ok, lets try opening the com port
printf(Opening Com port: %s\n\n, opt_comport);
if((dcf_dev = open(opt_comport, O_RDWR | O_NOCTTY | O_NDELAY))  0) 
  {
 printf(Problems opening %s\n, opt_comport);
 return (-1);
  }
// set the required com port parrameters
options.c_cflag = ~CSIZE;  /* Mask the character size bits */
options.c_cflag |= CS8; /* Select 8 data bits */
options.c_cflag = ~PARENB; // set no parity
options.c_cflag = ~CSTOPB; // set 1 stop bit
options.c_oflag = ~OPOST;  // Raw output

tcgetattr(dcf_dev, options);

/*
 * Set the baud rates to 9600...
 */
cfsetispeed(options, B9600);
cfsetospeed(options, B9600);

/*
 * Enable the receiver and set local mode...
 */
options.c_cflag |= (CLOCAL | CREAD);

/*
 * Set the new options for the port...
 */
tcsetattr(dcf_dev, TCSANOW, options);

// ok, lets transmit our 3 bytes to com port 1
n = write(dcf_dev, sdata, 3);
if (n  0)
fputs(write() of 3 bytes failed!\n, stderr);
printf(Output status: %d bytes written out\n, n);
exit(1);
};

---

Now I am just a beginner at C code, so I feel pretty good getting this far
(hey, it compiles :-)  However, a miss is as good as a mile, and so it
doesn't work :-(   Having said that, I have a serial port LED breakout
device watching, and I can see a blip on the TX line when I run the compiled
program.  This is just meant to be test code, i.e.. Get it working before
cleaning it up etc :-)

I have tried connecting the computers serial port to another one, running:
'cu -s 9600 -l cuaa0' but I don't see anything.  Having said that, I don't
see anything if I run the same on the other PC (yes, the TX-RX lines are
swapped over), so maybe that is a problem with my serial cable between the
two computers.

The Servo Controller only needs two wires:  signal ground and TX  so not
much to go wrong there, and as I said above, I do see a blip on the TX LED
when I run the program.


Questions:

1. Am I really sending the data correctly at 9600baud, 8n1?

2. Am I really sending the hex bytes:  FF 00 90  out (or am I sending an
pointer address)?

3. What am I missing?


Thanks.

Cheers,

Paul Hamilton

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


RE: DHCP Server Offline.

2005-07-16 Thread Paul Hamilton
The du command is your friend.  Have a look at 'man du'

Maybe something like:  du -d2 /var

Cheers,

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Stephan Weaver
Sent: Friday, 15 July 2005 10:25 PM
To: [EMAIL PROTECTED]; freebsd-questions@freebsd.org
Subject: Re: DHCP Server Offline.


I Found out the Problem,
The /var partation is full.
How do i find out where is taking up all the space?


Thanks

From: Ean Kingston [EMAIL PROTECTED]
To: freebsd-questions@freebsd.org
CC: [EMAIL PROTECTED]
Subject: Re: DHCP Server Offline.
Date: Fri, 15 Jul 2005 10:18:09 -0400

On July 15, 2005 10:11 am, Stephan Weaver wrote:
  Hello folks,
 
  I have a Stand Alone FreeBSD Firewall / Nat / Dhcp Server. 
  Everything seems to work fine, up until this morning. Users seem to 
  complain they could not get on the network anymore.
 
  Further investigation revealed the dhcp server could not be 
  contacted. Further more, only some of the users were online. I am 
  guessing that these clients who were online had an ip address from
the
  dhcp server at a previous time and the lease didnt expire as yet. 
  And users who were not online, the lease expired and attempted to
contact
  the dhcp server and failed.
 
  I Would appreciate any help or suggestions.

Set the lease expire time to at least 5 days (7 to 10 is better) and 
the renewal time to between 4 and 12 hours.

Then setup a dhcp monitoring process that will alert you if it fails to 
get
an
address or renewal.

Make sure you have more addresses available than you ever expect to 
give
out.
I go with 50% more. I've known some admins that want at least double.

  Like what to do in the future incase this happens again.

Setup 2 dhcp servers on the network. If one fails, the other will 
hopefully continue to serve addresses. Monitor this one as well.

  I Would like to find out what had happened.

Start reading logs.

  The last thing that i had done to the server was setup, configure 
  and install 'ntop'; dont know if this would cause a problem.
 
  Thank you in advance.
  Stephan Weaver
 
  P.S. Please reply to my Directly at @ [EMAIL PROTECTED]

--
Ean Kingston

E-Mail: ean AT hedron DOT org
URL: http://www.hedron.org/
I am currently looking for work. If you need competent system/network
administration please feel free to contact me directly.

_
FREE pop-up blocking with the new MSN Toolbar - get it now! 
http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/

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


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


Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD' mini-ITX

2005-07-02 Thread Paul Hamilton
Hi,
 
Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD'  mini-ITX
 
I would be interested to see if you get the full chipset functionality, ie.
both NIC's, IDE HD, VGA (X-Windows or just CLI), Audio, USB?  How about the
Digital IO section?
 
They look very nice :-)
 
http://www.viaembedded.com/product/4/8/epia_pdh.jpg
 
Cheers,
 
Paul Hamilton
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD' mini-ITX

2005-07-02 Thread Paul Hamilton
Cool!  Thanks Andreas.

I am thinking of using one for the same thing.

Cheers,

Paul

-Original Message-
From: Andreas Rudisch [mailto:cyb.@gmx.net] 
Sent: Sunday, 3 July 2005 3:29 AM
To: Paul Hamilton
Cc: 'Freebsd-Questions'
Subject: Re: Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD' mini-ITX


On Sat, 2005-07-02 at 18:24 +0800, Paul Hamilton wrote:
 Hi,
  
 Anyone running FreeBSD 4.x or 5.x on a 'VIA EPIA PD'  mini-ITX
  
 I would be interested to see if you get the full chipset 
 functionality, ie. both NIC's, IDE HD, VGA (X-Windows or just CLI), 
 Audio, USB?  How about the Digital IO section?
  
 They look very nice :-)
  
 http://www.viaembedded.com/product/4/8/epia_pdh.jpg
  
 Cheers,
  
 Paul Hamilton

Hi Paul, 

I use a VIA EPIA PD-1 as a small dsl- router / ftp / print /
whatever-server for my LAN here at home running FreeBSD 5.4. The NICs, HDD,
USB, CLI work fine. Audio and X-Windows should work too. (I have only tested
this on an EPIA M-1, but there it worked without any problems. The
onboard graphic chip is fast enough for most 2D application, but it was to
slow for me to playback xvid/divx, but an additional PCI graphic card should
solve this problem.) When transfering data via ftp I get about 10MB/s
up/down. Make buildworld takes about two hours. All in all, it is a nice
system and fits my needs. I like it.

Andreas

-- 
GnuPG key  : 0xD25FCC81  |  http://cyb.websimplex.de/pubkey.asc
Fingerprint: D182 6F22 7EEC DD4C 0F6E  564C 691B 0372 D25F CC81




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


RE: Detailed logging of ssh sessions

2005-06-19 Thread Paul Hamilton
Hi Bill,

Just as a side note, to help with people guessing a password, how about
having a script that monitors the auth.log file and when you get more than X
number of entries of username/password tries coming from one IP, it then
writes a firewall entry that blocks the IP.  You could have a counter/timer,
that would release the IP after Y number of minutes (24 hours?).  Of course,
you could exclude your usual admin IP's from being monitored.

Cheers,

Paul Hamilton

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Bill Moran
Sent: Sunday, 19 June 2005 11:39 PM
To: [EMAIL PROTECTED]
Subject: Detailed logging of ssh sessions



I've been researching this, and so far haven't found a way to do what I want
to do.

I have servers here and there, that should only be accessible by a limited
number of administrators via ssh (i.e. mail and web servers, firewalls).

As an added security measure, I'd like to start logging everything that
happens during any ssh login (since all our work on these machines is via
ssh).  I understand, and frequently use script(1), but I want this to be
required.  I have two goals:
1) If someone manages to guess a password and break in, I want a log
   of what they're doing.
2) I want 100% guarantee that everything we do is recorded, to make
   future debugging of configuration mistakes easier.

I've been researching sshd, and it doesn't seem as if it has this
capability.  Web searches have not yet turned up anything ... I'm guessing
I'm not searching for the right phrases, since I can't believe I'm the only
one doing this.

Any advice or pointers are welcome.

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


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


Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10

2005-06-13 Thread Paul Hamilton
Hi,
 
I have upgraded from FreeBSD 4.7 to 4.11-RELEASE via booting from CD 1.
 
I have IPFW2 options already set in my kernel config file, and in
/etc/make.conf
 
Next, I recompile the kernel, and install it.  Then I went to the
/usr/src/sbin/ipfw dir:-
 
/usr/src/sbin/ipfw-121 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-121 #
make clean
rm -f ipfw ipfw2.o ipfw.8.gz ipfw.8.cat.gz
/usr/src/sbin/ipfw-122 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-122 #
make -DIPFW2
cc -O -pipe  -Wall -DIPFW2-c /usr/src/sbin/ipfw/ipfw2.c
/usr/src/sbin/ipfw/ipfw2.c: In function `list':
/usr/src/sbin/ipfw/ipfw2.c:1698: warning: `last' might be used uninitialized
in this function
cc -O -pipe  -Wall -DIPFW2 -static -o ipfw ipfw2.o 
gzip -cn /usr/src/sbin/ipfw/ipfw.8  ipfw.8.gz
/usr/src/sbin/ipfw-123 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-123 # 
l
total 226
  2 drwxr-xr-x   2 root  wheel512 Apr 10 17:32 ./
  2 drwxr-xr-x  82 root  wheel   1536 Apr 10 17:20 ../
  2 -rw-r--r--   1 root  wheel196 Jul 24  2002 Makefile
 64 -rw-r--r--   1 root  wheel  65358 Jun 16  2004 ipfw.8
 62 -rw-r--r--   1 root  wheel  62391 Apr 10 17:20 ipfw.c
 94 -rw-r--r--   1 root  wheel  95621 Nov  9  2004 ipfw2.c
 
I have also tried running 'make' by itself (with out the -DIPFW2 switch)
 
So just as a test, I tried doing the same thing from another FreeBSD
4.11-p10 server (IPFW2 was installed during the buildworld-installworld
process).  I got the same error when manually trying to compile IPFW2!  I
have never had a problem before.
 
What am I doing wrong here?  Any clues?
 
Cheers,
 
Paul
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10

2005-06-13 Thread Paul Hamilton
Hi,

Thanks.  Hmm, I am pretty sure you still need to re-compile IPFW etc.

After a bit of a panic, and a dig around, I found that things have changed,
and the compiled ipfw file is now located in:
/usr/obj/usr/src/sbin/ipfw/ipfw  this can then be copied to /sbin/ipfw same
for the libalias.so.4 file.

Whew!

I don't think it was it was like this in 4.10.  Must be a 4.11 thing.

Cheers,

Paul

-Original Message-
From: fbsd_user [mailto:[EMAIL PROTECTED] 
Sent: Monday, 13 June 2005 7:45 PM
To: Paul Hamilton
Subject: RE: Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10


I think ipfw2 has replaced ipfw in the base release by 4.11. You nolonger
have to do anything after compiling the kernel.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Paul Hamilton
Sent: Monday, June 13, 2005 7:31 AM
To: Freebsd-Questions
Subject: Error compiling ipfw2 on FreeBSD 4.11-RELEASE and 4.11-p10


Hi,

I have upgraded from FreeBSD 4.7 to 4.11-RELEASE via booting from CD 1.

I have IPFW2 options already set in my kernel config file, and in
/etc/make.conf

Next, I recompile the kernel, and install it.  Then I went to the
/usr/src/sbin/ipfw dir:-

/usr/src/sbin/ipfw-121 mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-121 #
make clean rm -f ipfw ipfw2.o ipfw.8.gz ipfw.8.cat.gz /usr/src/sbin/ipfw-122
mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-122 # make -DIPFW2
cc -O -pipe  -Wall -DIPFW2-c /usr/src/sbin/ipfw/ipfw2.c
/usr/src/sbin/ipfw/ipfw2.c: In function `list':
/usr/src/sbin/ipfw/ipfw2.c:1698: warning: `last' might be used uninitialized
in this function
cc -O -pipe  -Wall -DIPFW2 -static -o ipfw ipfw2.o
gzip -cn /usr/src/sbin/ipfw/ipfw.8  ipfw.8.gz /usr/src/sbin/ipfw-123
mailto:[EMAIL PROTECTED]:19pm]/usr/src/sbin/ipfw-123 # l total 226
  2 drwxr-xr-x   2 root  wheel512 Apr 10 17:32 ./
  2 drwxr-xr-x  82 root  wheel   1536 Apr 10 17:20 ../
  2 -rw-r--r--   1 root  wheel196 Jul 24  2002 Makefile
 64 -rw-r--r--   1 root  wheel  65358 Jun 16  2004 ipfw.8
 62 -rw-r--r--   1 root  wheel  62391 Apr 10 17:20 ipfw.c
 94 -rw-r--r--   1 root  wheel  95621 Nov  9  2004 ipfw2.c

I have also tried running 'make' by itself (with out the -DIPFW2
switch)

So just as a test, I tried doing the same thing from another FreeBSD
4.11-p10 server (IPFW2 was installed during the buildworld-installworld
process).  I got the same error when manually trying to compile IPFW2!  I
have never had a problem before.

What am I doing wrong here?  Any clues?

Cheers,

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



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


running FreeBSD 4.11 or 5.4 on a SBC

2005-05-16 Thread Paul Hamilton
Hi,
 
I have a need for a Single Board Computer (SBC), something like the TS-5600
 
http://www.embeddedarm.com/epc/ts5600-spec-p.php
 
My requirements are:
 
+100MHz CPU
Wireless 802.11b
3 or 4 Serial ports
boot from a CF card
8 ch. A/D
2 ch. D/A
less than 5 watts of power!
 
is this do-able in FreeBSD?
 
Since I am on this subject, I was going to use an old P-120 motherboard
running with a hard drive for development.  
Does any one know of a cheep A/D - D/A and DIO PCI card that can be used
with FreeBSD?
I am hoping to most of the development in C (little as possible, as I am
just learning C), and shell scripts.
 
Thanks.
 
Cheers,
 
Paul Hamilton.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: different passwords for local and remote login?

2004-12-08 Thread Paul Hamilton
Hi Geert,

Couldn't you just login remotely as someone different, and then (if needed),
su to the correct user?

That's what I do.

Cheers,

Paul Hamilton

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geert Hendrickx
Sent: Wednesday, 8 December 2004 4:17 PM
To: [EMAIL PROTECTED]
Subject: different passwords for local and remote login?


Hi,

is it possible to have a different password for local (console, xdm) and
remote (ssh) logins?

I have a separate password database for my imap-server (dovecot), and I was
wondering whether this is possible with OpenSSH, too.

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


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


Anyone running FreeBSD on a HP DL140 server?

2004-12-08 Thread Paul Hamilton
Hi,
 
I would like to run FreeBSD on a cheep HP server, and the DL140 looks great
from a price point of view.
 
Has anyone tried installing FreeBSD 4.10 or 5.3 on one of these?
 
Anyone know of a current dual port NIC that is supported under FreeBSD, and
will fit into the above server?
 
I would like to use it as a web and mail server and firewall.
 
Cheers,
 
Paul Hamilton
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


problems starting mpd

2004-12-06 Thread Paul Hamilton
Hi,
 
I had mpd running fine, then for some reason it now refuses to start
properly.  I now get this in my mpd.log:-
 
Dec  7 07:29:36 abc1 mpd: [pptp] ppp node is mpd68948-pptp 
Dec  7 07:29:36 abc1 mpd: [pptp] can't connect iface and inet: File exists 
Dec  7 07:29:36 abc1 mpd: [pptp] netgraph initialization failed 
Dec  7 07:29:36 abc1 mpd: mpd: no bundles defined 
Dec  7 07:29:36 abc1 last message repeated 17 times
 
The key statement I think is:  can't connect iface and inet: File exists 

What file is this refering too?  When I stop mpd, the mpd.pid is removed.
 
Google shows up a Portuguese thread, but running them threw Babelfish didn't
show up much.  
 
FreeBSD mailing lists didn't show much either
 
my mpd.conf file:-
--
default:
load pptp1
 
pptp1:
new -i ng0 pptp pptp
set iface disable on-demand
set iface enable proxy-arp
set iface idle 1800
set bundle enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set link mtu 1460
set ipcp yes vjcomp
set ipcp ranges 192.168.0.10/24 192.168.0.65/24
set ipcp dns 192.168.1.3
set ipcp nbns 192.168.1.4
log -phys -lcp -ccp -console -fsm -radius -ipcp -link -iface
 
set bundle enable compression
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e128
set ccp yes mpp-stateless.
--
 
Any ideas?
 
Cheers,
 
Paul Hamilton
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD 4.8 and FreeBSD 5.x lower version of 5.x difference

2004-10-21 Thread bridgett hamilton
I need to know the difference between FreeBSD 4.8 and
FreeBSD 5.x lower version of 5.x difference. I am
acquiring Verisign as my Ecommerce who only has an SDK
for 5.x. Need to know the difference between 4.8 and
5.0 so I know whether or not I am going to run into
problems. Also can you tell me if we upgrade to 5.0
will there be any lost of configuration or data?
Please advise. Thank you. 

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


RE: downloadable location of old FreeBSD packages

2004-07-23 Thread Paul Hamilton
Thanks for the link Kris.  I had a bit of a hunt around, looking for a 4.6
release, but none to be found :-(

I have just finished trying a ports upgrade (current), but ran out of HD
space! I guess, that's one nice reason to have a packages solution!

Cheers,

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Kris Kennaway
Sent: Thursday, 22 July 2004 12:31 AM
To: Paul Hamilton
Cc: Freebsd-Questions
Subject: Re: downloadable location of old FreeBSD packages


On Wed, Jul 21, 2004 at 11:53:51PM +0800, Paul Hamilton wrote:
 Hi,

 I am hunting around for mpd package for FreeBSD 4.6  I have tried version
 mpd-3.14 for FreeBSD 4.7, but get this error when trying to run it:

 /usr/libexec/ld-elf.so.1: Undefined symbol _shadow_DES_check_key
 referenced from COPY relocation in /usr/local/sbin/mpd

 I have also tried version mpd-3.15 as well, but get the same results.

 This is a remote server, running on a busy modem, so I don't really want
to
 try and upgrade to the latest ports tree.  Also the latest apparently
 requires OpenSSL, and hence OpenSSH, and buy, I don't want to stuff that
 upgrade up.  I can't afford the drive.

See http://mirrorlist.freebsd.org/FBSDsites.php

Note that old versions of openssl have multiple security
vulnerabilities, so it's not advisable to use them.

Kris

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


downloadable location of old FreeBSD packages

2004-07-21 Thread Paul Hamilton
Hi,

I am hunting around for mpd package for FreeBSD 4.6  I have tried version
mpd-3.14 for FreeBSD 4.7, but get this error when trying to run it:

/usr/libexec/ld-elf.so.1: Undefined symbol _shadow_DES_check_key
referenced from COPY relocation in /usr/local/sbin/mpd

I have also tried version mpd-3.15 as well, but get the same results.

This is a remote server, running on a busy modem, so I don't really want to
try and upgrade to the latest ports tree.  Also the latest apparently
requires OpenSSL, and hence OpenSSH, and buy, I don't want to stuff that
upgrade up.  I can't afford the drive.

So, does any one have mpd-3.13 (I presume it came with FreeBSD 4.6) or a URL
where I can download.

Oh, yes, I tried the FreeBSD 4.6 CD 1, but it's not on there.

Thanks,

Paul Hamilton

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


RE: script entry to finding the version after a cvsup

2004-06-02 Thread Paul Hamilton
Hi Kent,

Thanks for that tip off. After lots of digging around in google, I found
this site:

http://simon.nitro.dk/freebsd-tips.php

that mentions how to use script: newvers.sh

grep -E 'BRANCH|REVISION' /usr/src/sys/conf/newvers.sh

Cool.

Cheers,

paul

-Original Message-
From: Kent Stewart [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 2 June 2004 1:09 AM
To: [EMAIL PROTECTED]
Cc: Paul Hamilton
Subject: Re: script entry to finding the version after a cvsup


On Tuesday 01 June 2004 06:55 am, Paul Hamilton wrote:
 Hi,

 I have written a basic script to cvsup, buildworld and install the
 new kernel-world etc.  I have introduced some basic logging, so I can
 track the time taken.  Now I would like to track the version it was
 before the upgrade (ie. uname -r ), and what it is after the upgrade.
  Now, I can't use uname -r, because the server has to be restarted so
 it can pick up the new kernel etc.

 So my question is,  where can I find a entry in the downloaded
 kernel/world source files that says that it is FreeBSD 4.9 p9 etc.  I
 can't use stable-supfile, because it only records the 'branch' that
 is being upgraded, not the full version.

 Any clues?

Look at
/usr/src/sys/conf/newvers.sh

Kent

--
Kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html


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


script entry to finding the version after a cvsup

2004-06-01 Thread Paul Hamilton
Hi,

I have written a basic script to cvsup, buildworld and install the new
kernel-world etc.  I have introduced some basic logging, so I can track the
time taken.  Now I would like to track the version it was before the upgrade
(ie. uname -r ), and what it is after the upgrade.  Now, I can't use
uname -r, because the server has to be restarted so it can pick up the new
kernel etc.

So my question is,  where can I find a entry in the downloaded kernel/world
source files that says that it is FreeBSD 4.9 p9 etc.  I can't use
stable-supfile, because it only records the 'branch' that is being upgraded,
not the full version.

Any clues?

Cheers,

Paul Hamilton

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


problem of vipw

2004-06-01 Thread Hamilton
Hi,
I would like to add a new user into my system.
I simply execute the vipw command from the remote machine.
No matter how I execute vipw as root or sudo vipw, the system shows
the error message to me.
i.e. I execute
#vipw  -- as root
#sudo vipw 
vipw: pw_edit() No such file or directory

Thanks for help

Hamilton 

=
Shiu-Shin Hamilton Lin, Ph.D.
Candidate of Computer-Aided Engineering
Rm. 310, Civil Engineering Building
Department of Civil Engineering
National Taiwan University
Taipei, Taiwan 10617, R.O.C.
TEL: +886-2-2362-7372-22
FAX: +886-2-2363-1558
E-mail: [EMAIL PROTECTED]
= 

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


problem of making php5

2004-05-30 Thread Hamilton
Hi,
I make php5 under FreeBSD release 5.2. I update the ports-databases to reach the 
version 1.5 for firebird. All is ok, but when run make install clean in 
/usr/ports/lang/php5, the error messages show as follow:

===   firebird-1.5 depends on executable: gmake - found
===   firebird-1.5 depends on file: /usr/local/bin/autoconf - found
===   firebird-1.5 depends on file: /usr/local/libexec/libtool13/libtool - found
===   firebird-1.5 depends on executable: bison - found
===  Configuring for firebird-1.5
cp: aclocal.m4: No such file or directory
*** Error code 1

Stop in /usr/ports/databases/firebird.

Please give me some advice.

Thanks

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


pkg_add question

2004-05-19 Thread Hamilton
Hi,
I would like to install gnuls-4.0_1.tgz into my system. When I install by using 
the command 
#pkg_add gnuls-4.0_1.tgz, the system echos Bus error (core dumped).
What does the message mean? How do I install the gnuls package?

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


error compiling kdegraphics3 (openmotif-2.2.2/clients) port

2004-04-13 Thread Paul Hamilton
Hi,

I am trying to compile the latest KDE-3.2.1 I grabed via cvsup for FreeBSD
4.9

I have had a few problems portupgrading from KDE 3.1 to the current KDE.  I
magaged to get around the other problems, using 'pkgdb -F' etc.

This one has me though, as it seems to be a syntax error.  Here is the last
few lines, whilst doing a 'make install clean' in 'kdegraphics3':


gmake[3]: Entering directory
`/usr/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/clients/mwm/WmWsmLi
b'
cc -DHAVE_CONFIG_H -I. -I. -I../../../include -I/usr/X11R6/include -I./../..
/../lib  -DCSRG_BASED -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI  -O -pipe  -Wall
 -Wno-unused -Wno-comment -c send.c
In file included from /usr/X11R6/include/Xm/DragC.h:29,
 from /usr/X11R6/include/Xm/DragDrop.h:29,
 from /usr/X11R6/include/Xm/Transfer.h:29,
 from send.c:42:
/usr/X11R6/include/Xm/Xm.h:1655: syntax error before
`XmConvertCallbackStruct'
send.c: In function `WSMSendMessage':
send.c:92: warning: implicit declaration of function `GetTimestamp'
gmake[3]: *** [send.o] Error 1
gmake[3]: Leaving directory
`/usr/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/clients/mwm/WmWsmLi
b'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/usr/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/clients/mwm'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/usr/ports/x11-toolkits/open-motif/work/openmotif-2.2.2/clients'
gmake: *** [all-recursive] Error 1
*** Error code 2

Stop in /usr/ports/x11-toolkits/open-motif.
*** Error code 1

Stop in /usr/ports/graphics/xpdf.
*** Error code 1

Stop in /usr/ports/graphics/kdegraphics3.


Hmmm, so lets have a look at line 1655 in: '/usr/X11R6/include/Xm/Xm.h'



/ Direction.c */

Boolean XmDirectionMatch(XmDirection dir1, XmDirection dir2);
Boolean XmDirectionMatchPartial(XmDirection dir1, XmDirection dir2,
XmDirection dir_mask);
XmStringDirection XmDirectionToStringDirection(XmDirection dir);
XmDirection XmStringDirectionToDirection(XmStringDirection sdir);

/*** Xme.c /

void XmeConvertMerge(XtPointer data, Atom type,
 int format, unsigned long length,
 XmConvertCallbackStruct *call_data);- Line 1655.
Syntax error on this line?

#ifdef __cplusplus
}
#endif


Or is the real error in send.c,  any clues on how to fix this?

Cheers,

Paul Hamilton


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


RE: PPTP client LCP errors

2004-03-24 Thread Paul Hamilton
How about using mpd, as your VPN server?

Nice and easy to install and configure.  See the mpd port.

Cheers,

Paul

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Martin Tsachev
Sent: Monday, 22 March 2004 6:46 AM
To: [EMAIL PROTECTED]
Subject: PPTP client LCP errors


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi guys,

I'm having a problem connection to a PPTP server using FreeBSD 5.2 and pptp
linux 1.3.1. It works fine from a Debian box that's behind the FreeBSD
gateway that I want to connect to the VPN but since FreeBSD's ppp is
different than the one in Linux I cannot simply copy my config.

The server doesn't use mppe, on windows you have to disable LCP extensions
to
connect. The linux config is pretty straightforward but if you need that I
can copy it too.

Here's what I have on FreeBSD:

/etc/ppp/ppp.conf
vpn:
# down lcp
# disable vjcomp
# disable MSCHAPv2
# disable mppe
# enable deflate pred1
# close lcp
# lcp-echo-interval 30
# lcp-echo-request 0
# open lcp
# set openmode passive

# set openmode passive
# set stopped 3
# disable lqr

 set authname username
 set authkey password
 set timeout 0
 set ifaddr 0 0
 add 192.168.0.0/16 HISADDR
# set log Phase LCP Connect tun Warning Alert
 set log phase chat lcp ipcp ccp tun command
# alias enable yes
# noauth

I start it by doing ppp ip vpn.

and in /var/log/ppp.log when trying to connect I get:

The following part is repeated a few times and I think it's failing:

Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  ACFCOMP[2]
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  PROTOCOMP[2]
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  ACCMAP[6] 0x
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  MRU[4] 1500
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  MAGICNUM[6] 0xda445afa



Mar 22 00:34:52 mtb ppp[9415]: Phase: Using interface: tun0
Mar 22 00:34:52 mtb ppp[9415]: Phase: deflink: Created in closed state
Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: PPP Started (direct mode).
Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: bundle: Establish
Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: deflink: closed - opening
Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: deflink: Connected!
Mar 22 00:34:52 mtb ppp[9415]: tun0: Phase: deflink: opening - carrier
Mar 22 00:34:53 mtb ppp[9415]: tun0: Phase: deflink: carrier - lcp
Mar 22 00:34:53 mtb ppp[9415]: tun0: LCP: FSM: Using deflink as a
transport
Mar 22 00:34:53 mtb ppp[9415]: tun0: LCP: deflink: State change Initial --
Closed
Mar 22 00:34:53 mtb ppp[9415]: tun0: LCP: deflink: State change Closed --
Stopped
Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: deflink: LayerStart
Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state =
Stopped
Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP:  ACFCOMP[2]
Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP:  PROTOCOMP[2]
Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP:  ACCMAP[6] 0x
Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP:  MRU[4] 1500
Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP:  MAGICNUM[6] 0xda445afa
Mar 22 00:34:54 mtb ppp[9415]: tun0: LCP: deflink: State change Stopped --
Req-Sent
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  ACFCOMP[2]
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  PROTOCOMP[2]
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  ACCMAP[6] 0x
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  MRU[4] 1500
Mar 22 00:34:57 mtb ppp[9415]: tun0: LCP:  MAGICNUM[6] 0xda445afa
Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP:  ACFCOMP[2]
Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP:  PROTOCOMP[2]
Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP:  ACCMAP[6] 0x
Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP:  MRU[4] 1500
Mar 22 00:35:00 mtb ppp[9415]: tun0: LCP:  MAGICNUM[6] 0xda445afa
Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP:  ACFCOMP[2]
Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP:  PROTOCOMP[2]
Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP:  ACCMAP[6] 0x
Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP:  MRU[4] 1500
Mar 22 00:35:03 mtb ppp[9415]: tun0: LCP:  MAGICNUM[6] 0xda445afa
Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP: deflink: SendConfigReq(1) state =
Req-Sent
Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP:  ACFCOMP[2]
Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP:  PROTOCOMP[2]
Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP:  ACCMAP[6] 0x
Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP:  MRU[4] 1500
Mar 22 00:35:06 mtb ppp[9415]: tun0: LCP:  MAGICNUM[6] 0xda445afa
Mar 22 00:35:09 mtb ppp[9415]: tun0: LCP: deflink: LayerFinish
Mar 22 00:35:09 mtb ppp[9415]: tun0: LCP: deflink: State change Req-Sent --
Stopped
Mar 22 00:35:09 mtb ppp[9415]: tun0: LCP: deflink: State change Stopped --
Closed
Mar 22 00:35:09 mtb ppp[9415]: tun0: LCP: deflink: State change Closed --

Where is Bill Paul's NDIS miniport driver wrapper?

2004-03-02 Thread Alistair Hamilton
Hello, all

I have installed the FreeBSD 5.2.1, which I assumed to be the latest
available. However, it does not appear to have the NDIS miniport driver
in the kernel source and there is no /sys/modules/ndis .  I need this
for my Centrino 802.11b.

Google has helped me to find quite a few references to it but I cannot
find a relevant URL. Is this driver distributed separately?  If so,
where do I get it?

TIA,
Alistair
--
[EMAIL PROTECTED]:~$ uname -a
FreeBSD irma.ty-eurgain 5.2.1-RELEASE FreeBSD 5.2.1-RELEASE #3: Mon Mar 
1 09:38:49 GMT 2004
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/IRMAKERNEL  i386

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


RE: line-in recorder

2004-02-01 Thread Paul Hamilton
Hi Brian,

You can use ecasound from ports.  Here's a few notes I have made on using
and playing around with audio:


NOTES

http://eca.cx/  ; ECASOUND Web site

Add to kernel:  “device pcm”
cd /dev
./MAKEDEV snd0
cat /dev/sndstat;to see if it’s configured properly

pkg_add ecasound-1.8.5d15
pkg_add nmixer-2.0b17
pkg_add mpg123-x.x.x
pkg_add festival-x.x.x  : text to voice sythasizer

Sound Recording:-

Set nmixer
Set Mic to 3
Set rec to 3
Run:ecasound –I:/dev/dsp0 –o test.wav
Or: ecasound –t:time -f:”s16_1e”,”1”,”11000”,”i” –I:/dev/dsp0 –o
filename.mp3

You can use the ‘at’ command to automate a future recording:
at 12:05 Apr 27th
/root/bin/recsnd.sh 3600 sat_science_show
^d  ; to terminate the at job.

See ‘Pluto’ @ /root/bin/recsnd.sh for script to automate the recording of
the ‘line in’
/root/bin/recsnd.sh length of time to record output_file_name  
 ; no
extension!
/root/bin/recsnd.sh 1800 sun_1600_news


# cat /root/bin/recsnd.sh

#! /bin/sh
# This will record audio input from the Line Input channel of the sound
card, and save it into
#  a mp3 file in the /home/music/ dir.
#
#  Usage:  recsnd.sh no of sec to record filename
#
TERM=vt100
export TERM

CMDFILEPATH=/usr/local/bin
OUTFILEPATH=/home/music

# Test to see if there are two cmd line arguments


# First set the mixer to the correct values
echo 
date
echo 
echo
# echo Setting nmixer settings
# $CMDFILEPATH/nmixer -q vol=100 pcm=100 rec=50

# Now record the sound into a mp3 file
echo Now recording the program
$CMDFILEPATH/ecasound -t:$1 -f:s16_le,1,11000,i -i:/dev/dsp0 -o
$OUTFILEPATH/$2.mp3

#list the contents of the output dir.
ls -la $OUTFILEPATH
echo
echo 
date
echo 


---

To Play:-

The nmixer can be autoset via:  nmixer –q vol=100 pcm=100 rec=50
Run:mpg123 –b 1024 filename.mp3

Festival
You can have festival read text files and convert them to spoken voice (male
or female):
festival –tts /etc/rc.conf  ; to output the contents of rc.conf!

/NOTES

Cheers,

Paul Hamilton



-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Brian H
Sent: Friday, 30 January 2004 2:35 AM
To: [EMAIL PROTECTED]
Subject: line-in recorder


is there some software for freebsd that I could use to record what i have
coming in on the line-in on my sound card?

_
There are now three new levels of MSN Hotmail Extra Storage!  Learn more.
http://join.msn.com/?pgmarket=en-uspage=hotmail/es2ST=1

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



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


Looking for a good multiple protocol proxy!!

2004-01-30 Thread Neal Hamilton
I am looking for a proxy server  that has the following features.

1. multiple protocols http/s,  socks 4/5, ftp, irc, nntp, smtp, 
etc...   The ability to add plugins to support more protocols . You know 
what i mean,, may not be through protocols but somehow the ability to 
support more protocols if needed.

2. Authentication .  Preferably i would like the proxy to be able to 
use my Openldap for authentication,, or maybe a radius but i must 
have authentication as i dont want some to have access at all and others 
access to certain protocols only.

3. scalable, fast

4. Opensrc.. :)

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


Re: Looking for a good multiple protocol proxy!!

2004-01-30 Thread Neal Hamilton
Matthew Seaman wrote:

On Fri, Jan 30, 2004 at 02:40:11PM -0600, Neal Hamilton wrote:
 

I am looking for a proxy server  that has the following features.

1. multiple protocols http/s,  socks 4/5, ftp, irc, nntp, smtp, 
etc...   The ability to add plugins to support more protocols . You know 
what i mean,, may not be through protocols but somehow the ability to 
support more protocols if needed.

2. Authentication .  Preferably i would like the proxy to be able to 
use my Openldap for authentication,, or maybe a radius but i must 
have authentication as i dont want some to have access at all and others 
access to certain protocols only.

3. scalable, fast

4. Opensrc.. :)
   

Ports: security/fwtk

I think it does most of what you want... However it is a
toolkit: some assembly required, batteries not included.  See
http://www.fwtk.org/fwtk/
	Cheers,

	Matthew

 

Thanks matt for your help. Do you know  what kind of auth. it can use? I 
already have a openldap setup for all my qmail users to auth. to and 
would like to use the same ldap server and maybe database if possible.  
I am trying to centralize all our authentication to ldap.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


FreeBSD IP Device Driver

2004-01-30 Thread Erik Hamilton
I'm currently working on building a simple token ring networking scheme
over the parallel port (/dev/ppi0) for a graduate project. The project
itself is to be used later for educational purposes, illustrating how you
can build a network from the ground up through hardware developement,
framing, and layering.  The hardware is done, simple token managment is
working, and data can be passed around the ring. So basically I have the
physical and datalink layers mostly done. It's my understanding that if I
can get my program to speak IP to FreeBSD (through a kernel module or
something else) I could inherit its TCP/IP stack.

Ideally I would like to have my simple token ring as another network
device that could be used just like any other network interface. I've been
reading through FreeBSD's handbooks and poking through /usr/src/sys/dev/.

* Developers' Handbook:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/developers-handbook/index.html

* FreeBSD Architecture Handbook (esp. Section II: Device Drivers):
http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/index.html

Basically I think I'm just looking for some guidance. Am I on the right
track? or am I confused?  I haven't had the best luck with google, so any
other reading material would be greatly appreciated.

Erik



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


a good ip subnet calculator with gui..!

2004-01-23 Thread Neal Hamilton
Is there any subnet calculators  with a gui for unixfreebsd? After 
hours of searching i could only find ipsc with a reference of gipsc but 
the ports are broken and the package i installed freebsd-5.1 does not 
have gipsc.  I usually use solar winds or boson ip tools on windows,, so 
if there is anything similar.

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


Taking a snapshot of a UFS filesystem

2003-12-28 Thread Paul Hamilton
Hi All,

In the December 2003, Sys Admin magazine (www.sysadminmag.com), there was an
article (pg 17), about doing Oracle DB Backups using UFS Snapshots.  This
was implemented using a facility built into Solaris.

I have read about other snapshot products for MS Windows NTFS etc.

Is there a way to do snapshot backups using FreeBSD's UFS?

Hmm, after writing the above, I thought I should at least google for
'freebsd snapshot backup'.  Well, low and behold, there it is in 5.0+  Cool!

OK, I will remod my question, is there any talk of having the snapshot
feature being retro fitted to 4.x stable?  (or is there some other util/port
out there that does this?)

Cheers,

Paul

PS. FreeBSD never ceases to amaze me ;-)


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


Anyone used the RocketRaid 1640 SATA Raid 5 card?

2003-12-03 Thread Paul Hamilton
Hi All,

Still scouting around for a raid 5 card, and found this little beauty!

http://www.highpoint-tech.com/rr1640.htm

Looking through their web site, and it looks impressive, in that they
actually actively support FreeBSD!

Anyone tried out the 154x, 1640 or 1820 products with FreeBSD 4.x running
raid 5?  Have seen feedback from people running raid 1, but how about raid
5!


Cheers,

Paul Hamilton


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


RE: Automatically encrypting data files in a partition.

2003-11-23 Thread Paul Hamilton
Thanks for that Lowell!  Looks like it might work.  I will have a play with
it!

Cheers,

Paul Hamilton

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lowell Gilbert
Sent: Saturday, 22 November 2003 9:28 AM
To: Paul Hamilton
Cc: Freebsd-Questions
Subject: Re: Automatically encrypting data files in a partition.


Paul Hamilton [EMAIL PROTECTED] writes:

 I need a way to store different directory trees and files with different
 encryption keys, i.e..

 /data/mars  /data/mars/one /data/mars/two etc  all are encrypted with one
 key and

 /data/venus   /data/venus/one   /data/venus/two  etc, would have a
different
 key.

 Ideally, the directory structure, and file names wouldn't be encrypted.
 /data is an independent partition.

 Some of these files, could be MS Office data files, others might be MS
 program *.exe files etc.  It would be nice if this happened at the
 filesystem level, i.e., I would enter a key and the root dir name for each
 'data tree' into the config file, reload the config file into the
 'encryption filesystem program' and all would be sweet ;-)

The closest thing I know of is cfs (in the ports).  It encrypts some
of the directory structures as well, which is usually desirable
because they can contain secret information as well (think of a file
named CompanyX_Merge_Plans.doc).  I don't know if it's capable of
handling passphrases centrally as opposed to on a user-session basis,
but if so, you would need someone with the password present every time
you booted the machine.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




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


PCI Raid 5 cards for FreeBSD

2003-11-23 Thread Paul Hamilton
Hi,

I have seen both the Promise and 3ware raid cards mentioned over time in
this mailing list.

I would like to be able to run a 1-2TB raid 5 SATA on FreeBSD 4.9.  Is
anyone using a card from these suppliers?

Will FreeBSD install on a Raid 5 array (after it has been configured in the
Array BIOS)?

Does FreeBSD have any in built driver/mechanism to monitor the array's
health?

Is there another SATA Raid controller company out there I have missed, that
covers FreeBSD?

Cheers,

Paul Hamilton


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


Automatically encrypting data files in a partition.

2003-11-20 Thread Paul Hamilton
Hi,

I need a way to store different directory trees and files with different
encryption keys, i.e..

/data/mars  /data/mars/one /data/mars/two etc  all are encrypted with one
key and

/data/venus   /data/venus/one   /data/venus/two  etc, would have a different
key.

Ideally, the directory structure, and file names wouldn't be encrypted.
/data is an independent partition.

Some of these files, could be MS Office data files, others might be MS
program *.exe files etc.  It would be nice if this happened at the
filesystem level, i.e., I would enter a key and the root dir name for each
'data tree' into the config file, reload the config file into the
'encryption filesystem program' and all would be sweet ;-)

Ponderingly yours,

Paul Hamilton


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


RE: How to find our what version of ports your running?

2003-11-13 Thread Paul Hamilton
Hmmm...

Thanks for that Lowell.  Yes I knew about the pkg_version cmd.  I was just
hoping that I had  missed a command or file that explain it all.

I started digging around, and found that the /usr/ports/LEGAL file has the
following:

# $FreeBSD: ports/LEGAL,v 1.274 2003/02/19 04:24:53 marcus Exp $

as one of the headers, so I guess, that is a rough indication of when it was
compiled.  Perhaps it might even roughly tie in with the FTP site iso
Hmmm, just checked, and they only show 4.8 as the oldest: April 2003
So I guess, that ports version came with 4.7.

Anyway, thanks everyone.

Cheers,

Paul Hamilton


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Lowell Gilbert
Sent: Wednesday, 12 November 2003 11:26 PM
To: Paul Hamilton
Cc: horio shoichi; Freebsd-Questions
Subject: Re: How to find our what version of ports your running?


Paul Hamilton [EMAIL PROTECTED] writes:

 Is there a way to find out the ports version, from a CD upgrade?  i.e..
 initial install was 4.2 then a 4.6 upgrade, then a 4.7 and then a 4.8
 upgrade.  Hmm, was the ports tree upgraded along with main upgrades or
not?

Ports are not updated along with the base system.  You can do that
separately, but usually don't need to.  You can determine the versions
of the ports installed on your system with the pkg_version(1) command.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]




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


RE: How to find our what version of ports your running?

2003-11-12 Thread Paul Hamilton
Thanks, Horio and Kris for the CVS solution.

Is there a way to find out the ports version, from a CD upgrade?  i.e..
initial install was 4.2 then a 4.6 upgrade, then a 4.7 and then a 4.8
upgrade.  Hmm, was the ports tree upgraded along with main upgrades or not?

Cheers,

Paul Hamilton

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of horio shoichi
Sent: Wednesday, 12 November 2003 10:47 AM
To: Paul Hamilton
Cc: Freebsd-Questions
Subject: Re: How to find our what version of ports your running?


On Tue, 11 Nov 2003 21:14:23 +0800
Paul Hamilton [EMAIL PROTECTED] wrote:
 Hi,

 Is it possible to print out the base version of when you last installed
the
 ports base, or cvs'ed it?

 cheers,

 Paul Hamilton


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


If $PORTSDIR/CVS/Tag exists

cat $PORTSDIR/CVS/Tag

will give you the idea.

If it doesn't exist you have current.


horio shoichi

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




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


How to find our what version of ports your running?

2003-11-11 Thread Paul Hamilton
Hi,

Is it possible to print out the base version of when you last installed the
ports base, or cvs'ed it?

cheers,

Paul Hamilton


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


cdbakeoven 2.0 beta 2 build fails on freebsd 5-current

2003-11-11 Thread Neal Hamilton Jr.
Has anyone had success with cdbakeoven 2.0 beta 2 on freebsd 5 or 5
current? ./configure seems to go ok but gmake fails with the following:



AN_NAMESPACE  -DQT_NO_ASCII_CAST  -c -o CdboCDRom.lo `test -f
'CdboCDRom.cpp' || echo './'`CdboCDRom.cpp
CdboCDRom.cpp:34:56: linux/cdrom.h: No such file or directory
CdboCDRom.cpp: In member function `bool CdboCDRom::isValid()':
CdboCDRom.cpp:82: error: `CDROM_DRIVE_STATUS' undeclared (first use this 
   function)
CdboCDRom.cpp:82: error: (Each undeclared identifier is reported only
once for 
   each function it appears in.)
CdboCDRom.cpp:82: error: `CDSL_CURRENT' undeclared (first use this
function)
CdboCDRom.cpp: In member function `bool CdboCDRom::isDiskOK()':
CdboCDRom.cpp:91: error: `CDS_DISC_OK' undeclared (first use this
function)
CdboCDRom.cpp: In member function `int CdboCDRom::open()':
CdboCDRom.cpp:104: error: `CDROM_CLEAR_OPTIONS' undeclared (first use
this 
   function)
CdboCDRom.cpp:104: error: `CDO_AUTO_CLOSE' undeclared (first use this
function)
CdboCDRom.cpp: In member function `bool CdboCDRom::hasMediaChanged()':
CdboCDRom.cpp:118: error: `CDROM_MEDIA_CHANGED' undeclared (first use
this 
   function)
CdboCDRom.cpp: In member function `Cdbo::MediaStatus
CdboCDRom::testMedia()':
CdboCDRom.cpp:202: error: `CDS_TRAY_OPEN' undeclared (first use this
function)
CdboCDRom.cpp:203: error: `CDS_NO_DISC' undeclared (first use this
function)
CdboCDRom.cpp:206: error: `CDS_NO_INFO' undeclared (first use this
function)
CdboCDRom.cpp:207: error: `CDS_DRIVE_NOT_READY' undeclared (first use
this 
   function)
CdboCDRom.cpp:230: error: `CDROM_DISC_STATUS' undeclared (first use this 
   function)
CdboCDRom.cpp:232: error: `CDS_DATA_1' undeclared (first use this
function)
CdboCDRom.cpp:233: error: `CDS_DATA_2' undeclared (first use this
function)
CdboCDRom.cpp:237: error: `CDS_AUDIO' undeclared (first use this
function)
CdboCDRom.cpp:241: error: `CDS_MIXED' undeclared (first use this
function)
CdboCDRom.cpp: In member function `bool CdboCDRom::eject()':
CdboCDRom.cpp:384: error: `CDROMEJECT' undeclared (first use this
function)
gmake[3]: *** [CdboCDRom.lo] Error 1
gmake[3]: Leaving directory
`/usr/sandbox/cdbakeoven-2.0beta2/cdbakeoven/cdboshared'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/sandbox/cdbakeoven-2.0beta2/cdbakeoven'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/sandbox/cdbakeoven-2.0beta2'
gmake: *** [all] Error 2


thanks in advance.


ps. is there any other good cd burning s/f comparable to cdbakeoven ease
and features?
-- 
  Neal Hamilton Jr.
  [EMAIL PROTECTED]

-- 
http://www.fastmail.fm - The way an email service should be
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


tip on using mount_smbfs with the nsmb.conf config file

2003-06-26 Thread Paul Hamilton
Hi All,

After spending 1-2 fruitless hours trying to track down why I couldn't
automate my script to log into the local W2K server, I found that the
mount_smbfs man file is incorrect.  At least with FreeBSD 4.7 anyway.  Maybe
it just needs updating.

The default global location for the nsmb.conf file should be the /etc
directory, not the /usr/local/etc directory, as stated in the man file, and
a few web pages I googled.  ~.nsmbrc worked ok.

One for the archives.

Cheers,

Paul Hamilton


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


FW: Transparent Proxy going astray - Help!

2003-06-23 Thread Paul Hamilton
Hi all,

Has no-one seen this problem?  If so, wow, what have I done wrong here?

Do you need more info?

Cheers,

Paul Hamilton


-Original Message-
From: Paul Hamilton [mailto:[EMAIL PROTECTED]
Sent: Saturday, 21 June 2003 1:34 PM
To: Freebsd-Questions
Subject: Transparent Proxy going astray


Hi all,

I have watched/lurked on this list for sometime now, and see a Transparent
Proxy question every now or then.  None of them have answered my problem.  I
give it a bash every now and then to see if I will trip over the answer.  It
hasn't worked, so I will try this list again.

I run FreeBSD 4.8 on the gateway, Squid Cache: Version 2.4.STABLE4

Squid.conf has the required lines:

http_port 8080
httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

and the required ipfw2 firewall rules:

00050271  27520 allow tcp from 192.168.0.10 to any
00060  3144 fwd 127.0.0.1,8080 tcp from any to any dst-port
80

Interestingly enough when watching the ip traffic on the gateway, I see this
on my inside NIC:

08:27:18.735861 192.168.0.2.3276  203.10.1.17.53:  1093+ A?
www.google.com.au. (35)
08:27:18.922217 203.10.1.17.53  192.168.0.2.3276:  1093 2/4/4
CNAME[|domain]
08:27:18.923667 192.168.0.2.3277  216.239.39.99.80: S
813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF)
08:27:18.923722 216.239.39.99.80  192.168.0.2.3277: R 0:0(0) ack 813553087
win 0
08:27:19.397657 192.168.0.2.3277  216.239.39.99.80: S
813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF)
08:27:19.397697 216.239.39.99.80  192.168.0.2.3277: R 0:0(0) ack 1 win 0
08:27:19.906095 192.168.0.2.3277  216.239.39.99.80: S
813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF)
08:27:19.906153 216.239.39.99.80  192.168.0.2.3277: R 0:0(0) ack 1 win 0


and this on my outside NIC:

08:27:18.736970 202.72.147.43.3276  203.10.1.17.53:  1093+ A?
www.google.com.au. (35)
08:27:18.922026 203.10.1.17.53  202.72.147.43.3276:  1093 2/4/4 CNAME
www.google.com., (215)

The cache_access.log doesn't show any traffic, yet (something) is pretending
to be the google website, as there is a reply from 216.239.39.99.80.  I have
tried to run tcpdump -ni lo0 but there isn't any traffic.

Should I be able to see traffic on lo0?

Any thoughts on what I am missing?

Cheers,

Paul Hamilton


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


RE: adding a quirk for a USB memory device

2003-06-22 Thread Paul Hamilton
Thanks for the help Roland.  I was getting ready to edit and recompile
scsi_da.c via doing a kernel  re-compile, when I noticed in archives the
'sysctl  kern.cam.da.no_6_byte=1' hack.

I tried it out on the command line and found it worked!  I didn't have to
recompile after all!  I added the command to /etc/sysctl.conf, and all is
well in USB land ;-)  I can now plug-unplug the USB memory stick.

Just thought I would mention it for the archives.

Cheers,

Paul Hamilton

-Original Message-
From: Paul Hamilton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, 18 June 2003 10:48 PM
To: Freebsd-Questions
Subject: adding a quirk for a USB memory device


Hi all,

So many questions...

I can mount/access (mount -t msdos /dev/da0s1 /mnt) my 'Apacer 16MB
HandySteno 1.1' USB memory key stick as long as it's connected when I power
up my FreeBSD 4.8 server.  It does give an error msg on the console saying:
 (da0:umass-sim0:0:0): READ(6)/WRITE(6) not supported, increasing
minimum_cmd_size to 10.

I take it that it has done the increasing by it's self using the Apacer
quirk in /usr/src/sys/cam/scsi/scsi_da.c

I found a bit of info on this at:
http://www.root.org/~nate/freebsd/quirks.html but it neglects to say how to
recompile scsi_da after it has been edited.  It also doesn't go into much
detail on how to get the info needed to add a quirk.

'camcontrol devlist -v' reports:

# camcontrol devlist -v
scbus0 on umass-sim0 bus 0:
 USB DISK 2.08   at scbus0 target 0 lun 0 (da0)
scbus-1 on xpt0 bus 0:
 at scbus-1 target -1 lun -1 (xpt0)

If I unmount it (umount /mnt), disconnect it, and later remount it I get:

umass0: detached
umass0:   USB Disk, rev 1.10/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0:  USB DISK 2.08 Removable Direct Access SCSI-0 device
da0: 650KB/s transfers
da0: 15MB (32000 512 byte sectors: 64H 32S/T 15C)
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
da0: reading primary partition table: error reading fsbn 0
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status
== 0x0
etc

it's then lost, until I next reboot the PC.


Qu: is my Apacer device the same one that is mentioned in the scsi_da.c
quirk i.e.,
{T_DIRECT, SIP_MEDIA_REMOVABLE, Apacer, HandyDrive,
*},
/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE

Qu: Do I need another quirk added to the above Apacer quirk, or a whole new
quirk, as I have a Apacer Handy Steno, not a HandyDrive?

Qu: Since 'camcontrol devlist -v' reports that my USB device as a ' USB
DISK 2.08' do I need to set that name up as a quirk instead?

Qu: If I do need to edit/create a new quirk, what method do I use to compile
the file etc?

NOTE: *Any* info I appear to be lacking would be appreciated!  :-)

Cheers,

Paul Hamilton


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


Transparent Proxy going astray

2003-06-20 Thread Paul Hamilton
Hi all,

I have watched/lurked on this list for sometime now, and see a Transparent
Proxy question every now or then.  None of them have answered my problem.  I
give it a bash every now and then to see if I will trip over the answer.  It
hasn't worked, so I will try this list again.

I run FreeBSD 4.8 on the gateway, Squid Cache: Version 2.4.STABLE4

Squid.conf has the required lines:

http_port 8080
httpd_accel_port 80
httpd_accel_host virtual
httpd_accel_with_proxy on
httpd_accel_uses_host_header on

and the required ipfw2 firewall rules:

00050271  27520 allow tcp from 192.168.0.10 to any
00060  3144 fwd 127.0.0.1,8080 tcp from any to any dst-port
80

Interestingly enough when watching the ip traffic on the gateway, I see this
on my inside NIC:

08:27:18.735861 192.168.0.2.3276  203.10.1.17.53:  1093+ A?
www.google.com.au. (35)
08:27:18.922217 203.10.1.17.53  192.168.0.2.3276:  1093 2/4/4
CNAME[|domain]
08:27:18.923667 192.168.0.2.3277  216.239.39.99.80: S
813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF)
08:27:18.923722 216.239.39.99.80  192.168.0.2.3277: R 0:0(0) ack 813553087
win 0
08:27:19.397657 192.168.0.2.3277  216.239.39.99.80: S
813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF)
08:27:19.397697 216.239.39.99.80  192.168.0.2.3277: R 0:0(0) ack 1 win 0
08:27:19.906095 192.168.0.2.3277  216.239.39.99.80: S
813553086:813553086(0) win 16384 mss 1460,nop,nop,sackOK (DF)
08:27:19.906153 216.239.39.99.80  192.168.0.2.3277: R 0:0(0) ack 1 win 0


and this on my outside NIC:

08:27:18.736970 202.72.147.43.3276  203.10.1.17.53:  1093+ A?
www.google.com.au. (35)
08:27:18.922026 203.10.1.17.53  202.72.147.43.3276:  1093 2/4/4 CNAME
www.google.com., (215)

The cache_access.log doesn't show any traffic, yet (something) is pretending
to be the google website, as there is a reply from 216.239.39.99.80.  I have
tried to run tcpdump -ni lo0 but there isn't any traffic.

Should I be able to see traffic on lo0?

Any thoughts on what I am missing?

Cheers,

Paul Hamilton


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


adding a quirk for a USB memory device

2003-06-18 Thread Paul Hamilton
Hi all,

So many questions...

I can mount/access (mount -t msdos /dev/da0s1 /mnt) my 'Apacer 16MB
HandySteno 1.1' USB memory key stick as long as it's connected when I power
up my FreeBSD 4.8 server.  It does give an error msg on the console saying:
 (da0:umass-sim0:0:0): READ(6)/WRITE(6) not supported, increasing
minimum_cmd_size to 10.

I take it that it has done the increasing by it's self using the Apacer
quirk in /usr/src/sys/cam/scsi/scsi_da.c

I found a bit of info on this at:
http://www.root.org/~nate/freebsd/quirks.html but it neglects to say how to
recompile scsi_da after it has been edited.  It also doesn't go into much
detail on how to get the info needed to add a quirk.

'camcontrol devlist -v' reports:

# camcontrol devlist -v
scbus0 on umass-sim0 bus 0:
 USB DISK 2.08   at scbus0 target 0 lun 0 (da0)
scbus-1 on xpt0 bus 0:
 at scbus-1 target -1 lun -1 (xpt0)

If I unmount it (umount /mnt), disconnect it, and later remount it I get:

umass0: detached
umass0:   USB Disk, rev 1.10/1.00, addr 2
da0 at umass-sim0 bus 0 target 0 lun 0
da0:  USB DISK 2.08 Removable Direct Access SCSI-0 device
da0: 650KB/s transfers
da0: 15MB (32000 512 byte sectors: 64H 32S/T 15C)
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
da0: reading primary partition table: error reading fsbn 0
umass0: BBB reset failed, TIMEOUT
umass0: BBB bulk-in clear stall failed, TIMEOUT
umass0: BBB bulk-out clear stall failed, TIMEOUT
(da0:umass-sim0:0:0:0): Synchronize cache failed, status == 0x4, scsi status
== 0x0
etc

it's then lost, until I next reboot the PC.


Qu: is my Apacer device the same one that is mentioned in the scsi_da.c
quirk i.e.,
{T_DIRECT, SIP_MEDIA_REMOVABLE, Apacer, HandyDrive,
*},
/*quirks*/ DA_Q_NO_6_BYTE|DA_Q_NO_SYNC_CACHE

Qu: Do I need another quirk added to the above Apacer quirk, or a whole new
quirk, as I have a Apacer Handy Steno, not a HandyDrive?

Qu: Since 'camcontrol devlist -v' reports that my USB device as a ' USB
DISK 2.08' do I need to set that name up as a quirk instead?

Qu: If I do need to edit/create a new quirk, what method do I use to compile
the file etc?

NOTE: *Any* info I appear to be lacking would be appreciated!  :-)

Cheers,

Paul Hamilton


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


  1   2   >