Re: Preserve date when cp over smbfs

2005-12-28 Thread Martin P. Hansen
On Wed, 28 Dec 2005, Gilbert Cao wrote:
 When I copy a single file with the cp utility, with -p flag, to
 a smbfs mounted directory, the modification datetime is not preserved and it
 is set to the current datetime :

I've had this problem too, cp was also emitting a warning about utimes:

mph# mount -t smbfs -o-Eiso8859-1:cp850,-f660 //[EMAIL PROTECTED]/e$ /mnt
mph% cp -p INFO /mnt
cp: utimes: /mnt/INFO: Operation not permitted

This was because I wasn't ``owner'' of the files. Adding the -u flag fixed this.

mph# mount -t smbfs -o-Eiso8859-1:cp850,-f660,-umph //[EMAIL PROTECTED]/e$ /mnt

Now my modification time is preserved.

-- 
Martin P. Hansen   |  ()  ASCII Ribbon Campaign
   |  /\  Against HTML Email!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: FreeBSD Logo Contest -- whom to contact about?

2005-12-27 Thread Martin P. Hansen
On Tue, 27 Dec 2005, martinko wrote:
 also, could other submitted designs be seen somewhere? (at least top 5 
 of them)

I'd like to see them as well. I suppose, if bold enough, one could
mail the authors found at http://logo-contest.freebsd.org/result/ .

I've come to belive that this http://phk.freebsd.dk/misc/640.png
was one of the entries.

-- 
Martin P. Hansen   |  ()  ASCII Ribbon Campaign
   |  /\  Against HTML Email!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: question

2005-12-27 Thread Martin P. Hansen
On Wed, 28 Dec 2005, [EMAIL PROTECTED] wrote:
 I have some problem  with installing FreeBSD 6 amd64 !
...
 I put CD to cdrom and after some second I press 1 to install default
 settings. After some second I see that
...
 
 Vga0: Generic ISA VGA at port 0x3c0-0x3df iomem 0xa-0xb on isa0
 Timecounter TSC frequency 221134344311z quality 800
 Timecounter tuck every 1.000 msec

What you see it the kernel diagnostic messages. In my diagnosticmessages
``Timecounters'' appear near the end, just before the harddisk
controller initialization. If your system stops with the message
you wrote, it might be some compability issues between your hardware
and the kernel.

You might narrow the problem down by experimenting with various
compability options in the bios. One example could be to enable (or
disable) SATA compability mode, PATA I think.

-- 
Martin P. Hansen   |  ()  ASCII Ribbon Campaign
   |  /\  Against HTML Email!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: dlink wireless adapter

2005-12-26 Thread Martin P. Hansen
On Mon, 26 Dec 2005, Imran Imtiaz wrote:
 how can i make my dlink DWL-G122 wireless usb adapter work with freebsd?

I can't find it in the list of native supported devices (the wi(4)
and ath(4) drivers). You might try your luck with the ndis(4)
converter.

This process is described in detail in the handbook's wireless
section:

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

I haven't had much luck with this process myself, but it was some
time ago.

-- 
Martin P. Hansen   |  ()  ASCII Ribbon Campaign
   |  /\  Against HTML Email!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Changing hardware

2005-12-25 Thread Martin P. Hansen
On Sun, 25 Dec 2005, Sasa Stupar wrote:
 I have curently my server on Asus A7N266-VM with Duron 900 and 632 MB RAM, 
 nic 3c905B-TX. I want to migrate to an Compaq with Intel 810 chipset and P3 
 667. I am thinking to move HDD to compaq, plain and simple. Is it enough to 
 just change configuration for the NIC because in compaq is Intel pro/100vm 
 and the server should function properly or do I need to make new server 
 from the scratch.

Unless you have a very customized KERNELCONF I don't see any problems
with it, since it seems to be i386 architechture on both of the
computers.

I've never tried such migration myself, though.

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


Re: Uninstall Apache???

2005-12-25 Thread Martin P. Hansen
On Sun, 25 Dec 2005, Jose Borquez wrote:
 I would like to know how you can uninstall Apache is it was installed 
 from source?  I did a search on Google and read that you could just stop 
 the service and then delete the apache source tree.  Is this true?

It probably depends on your definition of uninstall. Usually the
service binaries are installed in /usr/local/bin or sometimes in
paths like /usr/local/apache. Same goes for configuration files see
also hier(7). So stopping the service and removing the source tree
wont remove these.

Some makefiles comes with an uninstall target, so you might try
``make uninstall''. Otherwise you can do a rebuild and reinstall
from the sources again and look for recently changed files with
something like ``find / -newerct 10 minutes ago''. This probably
have some shortcomings, but if you are careful it might do the job.

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


Re: Uninstall Apache???

2005-12-25 Thread Martin P. Hansen
On Sun, 25 Dec 2005, legalois wrote:
 Martin P. Hansen wrote:
 On Sun, 25 Dec 2005, Jose Borquez wrote:
 
 I would like to know how you can uninstall Apache is it was installed 
 from source?  I did a search on Google and read that you could just stop 
 the service and then delete the apache source tree.  Is this true?
 
 
 It probably depends on your definition of uninstall. Usually the
 service binaries are installed in /usr/local/bin or sometimes in
 paths like /usr/local/apache. Same goes for configuration files see
 also hier(7). So stopping the service and removing the source tree
 wont remove these.
 
 Some makefiles comes with an uninstall target, so you might try
 ``make uninstall''. Otherwise you can do a rebuild and reinstall
 from the sources again and look for recently changed files with
 something like ``find / -newerct 10 minutes ago''. This probably
 have some shortcomings, but if you are careful it might do the job.
 
 
 ...or you could read pkg_delete(1) and pkg_deinstall(1) and follow 
 instructions.
 (make uninstall is not a valid target for any Makefile in the ports 
 tree that I am aware of.)

As I understand the question, ``source'' doesn't refer to a port,
but rather the original apache source distribution.

But ofcause if you are dealing with ports it is *much* easier to
use the package features ;-)

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


Re: Best Scanner recs, please?

2005-12-24 Thread Martin P. Hansen
On Fri, 23 Dec 2005, Gary Kline wrote:
   Thanks; this model is on my list.   Do you have USB 2.0
   defined (uncommented) in your KERNEL config file (and thus
   built into your kernel)??  I'm trying to figure out howto
   create /dev/uscanner0.

I have the ehci device defined, but since I don't any USB 2 ports
it probably doesn't matter. I'm running with a GENERIC conf for
6.0-STABLE with usb built-in.

As I see it the uscanner device will probe the generic usbdevice
and recognize the scanner and create a devfs entry. This happens
for me when I plug it in.

Somewhere around the 5.3-RELEASE it was necessary to modify
/usr/src/sys/dev/usb/uscanner.c to include the LiDE 30 scanner.

Perhaps it is interesting to see whether the scanner appears in
`usbdevs -v` if you don't get a /dev/uscanner0. Mine shows as:

port 2 addr 3: full speed, power 500 mA, config 1, CanoScan(0x220e),
Canon(0x04a9), rev 1.00

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


Re: Two simple questions

2005-12-24 Thread Martin P. Hansen
On Sat, 24 Dec 2005, Teilhard Knight wrote:
 What is the command to see the hidden files and folders? And how to unhide 
 them?

Assuming you use ls(1) to display your files the command would be
``ls -a'' as explained in the the manual page.

Depending on your shell you can create an alias for the ls command
which includes the -a option every time.

For sh you can edit $HOME/.profile to include a line as
alias ls=ls -a

For csh you can edit $HOME/.cshrc to include a line as
alias ls ls -l

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


Re: Http Trace.

2005-12-23 Thread Martin P. Hansen
On Fri, 23 Dec 2005, Payne wrote:
 I am running 4.10 and I am wondering if this effect me.
 
 http://www.kb.cert.org/vuls/id/867593 Payne'

Quoted http://www.kb.cert.org/vuls/id/867593:
Attackers may abuse HTTP TRACE functionality to gain access to
information in HTTP headers such as cookies and authentication data.
In the presence of other cross-domain vulnerabilities in web browsers,
sensitive header information could be read from any domains that
support the HTTP TRACE method.

Most likely it wont, but it is hard to judge from your information.
I imagine you are running FreeBSD 4.10 but this is an httpserver
issue so you might want to note which httpserver you are using.

As I understand it: They wont compromise a server using this. It
is a client side issue. If you have customers using badly written
httpclients however, they might be impersonated using this cross-site
scripting combined with HTTP TRACE. So to protect these customers
you might want to disable HTTP TRACE.

You can test wether you server supports TRACE by:
mph% telnet www.apache.org 80
TRACE / HTTP/1.1
Host: www.apache.org
(blank)

Replace www.apache.org with your own server name. If first line in
the response is 400 it doesn't.

For FreeBSD advisories subscribe to the security-advisories mailing
list. And follow the advisories for you software (e.g. apache).

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


Re: Best Scanner recs, please?

2005-12-23 Thread Martin P. Hansen
On Fri, 23 Dec 2005, Gary Kline wrote:
   Before everyone cuts out for the weekend {or year-end},
   are there any models of scanner besides the Epson that
   work with FBSD?  (Or Linux?)

I use a Canon LiDE 30 recognized as
uscanner0: Canon CanoScan, rev 1.10/1.00, addr 3
in FreeBSD 6.0-STABLE (should also appear in 5.x) together with
sane-backends-1.0.15 and xsane-0.96.

Sometimes the sensorpanel get stucked, but it might be because it
is old. And it seems it can't cope with the resolutions below 64
dpi. Otherwise it works fine.

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