Re: Looking for a FTP sync'er suggestion

2008-03-11 Thread Kelvin Woods
On Tue, March 11, 2008 16:27, Michael Ross wrote:
> Michaël Grünewald schrieb:
>> Hi,
>>
>> I am looking for a program able to make a remote FTP site look like
>> a
>> copy of a local dir. I feel as if I were dunce-cap-awards(R)
>> nominated,
>> but I really did not find one!
>>
>> In ports/ftp many programs say they do the reverse, and a few say
>> they
>> ``mirror'' without more explanation. I gave a tried to mirror,
>> ftpmirror
>> and ftpsync (among others), all of them broke or failed to be
>> useful.
>>
>>
>> I need this to publish a web site on a space allocated to me by my
>> ISP,
>> I am writing a script that automates publication, and at the very
>> end, I
>>  noticed the key-piece was missing!
>
> I usually do it with lftp, in a script like:
>
> [EMAIL PROTECTED] ~]$ cat work/websites/foobar/lftp.upload
> #!/usr/local/bin/lftp -f
> debug 3;
>
> set dns:fatal-timeout 30;
>
> set ftp:ssl-allow true;
>
> open -u username,password host;
>
> put upload/updating.php -o /index.php || exit 1
>
> mirror --verbose=1 --parallel=1 --delete --reverse \
> --exclude ".htaccess" --exclude ".htpasswd" \
> --exclude "index.php" --exclude "updating.php" \
> upload / || exit 1
>
> put upload/index.php -o /index.php || exit 1
>
>
> Then I'll call ./lftp.upload and be done.
>
>
> Michael
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>

I'd support this suggestion as well. Using lftp (from the ports tree)
requires nothing more that an FTP server at the remote end (i.e. the
ISP). It can "mirror" in both directions, i.e. client -> server and
server -> client.

-- 
Kelvin


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


Re: XScreenSaver

2007-10-17 Thread Kelvin Woods
On Wed, October 17, 2007 08:48, Bruce Alcock wrote:
> Hi
>
> My XScreenSaver is configured to come on and then a bit later suspend
> the
> monitors...now this works, but only sometimes actually gets around to
> suspending the monitors. I emailed the author a while ago about it and
> he
> suggested I turned on logging...there doesn't seem to be an option in
> XScreenSaver for logging, so my question is what logging is he talking
> about
> and how do I use it? (he thought the mouse was moving ever so slightly
> every
> now and then, but this isn't the case since I unplugged my mouse last
> night
> and it still didn't suspend)
>
> Thanks
> Bruce Alcock

Bruce,

Read the manpage "-verbose" option. Logging is sent to stderr, you
might need to pipe it to a file.

This might be a problem with ACPI rather than the XScreenSaver
software itself.

-- 
Kelvin
> ___
> 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: periodic.conf quieter

2007-06-13 Thread Kelvin Woods
On Wed, Jun 13, 2007 at 10:51:06AM -0500, Richard Lynch wrote:
> Thanks to the fine folks here, I've gotten periodic.conf to only
> output messages I need to know, *except* for this one:
> 
> Security check:
> (output mailed separately)
> 
> I've looked through /et/defaults/periodic.conf, Google a fair amount,
> and am still coming up empty with a setting to suppress that one...
> 
> I'm probably just being stupid (again) but what am I missing?
> 
> -- 
> Some people have a "gift" link here.
> Know what I want?
> I want you to buy a CD from some indie artist.
> http://cdbaby.com/browse/from/lynch
> Yeah, I get a buck. So?
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

You could always re-direct the output to a file...

daily_status_security_output="/var/log/security.log"


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


Re: Execute command upon interface initialization?

2007-04-17 Thread kelvin woods
On Tue, Apr 17, 2007 at 12:35:41PM -0400, Lowell Gilbert wrote:
> Roland Smith <[EMAIL PROTECTED]> writes:
> 
> > On Tue, Apr 17, 2007 at 06:02:25PM +0300, Ido Admon wrote:
> >> Hello list,
> >> I couldn't find any way to execute an arbitrary command upon network
> >> interface initialization. My situations is that I have and ethernet card
> >> that takes DHCP from a cables provider (not a fixed IP address) and I
> >> need to update a DynDNS hostname everytime it does (everytime the IP
> >> changes).
> >> I couldn't find a way to execute shell commands using the rc system or
> >> dhclient, what did I miss?
> >
> > dhclient-script(8)? Maybe devd(8) will work as well.

Just in case you don't manage to find the appropriate text...

You'll need to create (in this instance) an /etc/dhclient-exit-hooks
script. An excerpt from mine is below, you'll need to create your own
"update_ddns" function to update your DynDNS entry.

if test "$reason" = "RENEW" || test "$reason" = "BOUND"; then
# The old lease has been renewed or the interface is being re-bound.

if test "$old_ip_address" != "$new_ip_address"; then
# IP address has changed -- update DDNS entry.
update_ddns
fi
fi

Hope it helps.

> 
> devd won't work as well, because the timing is a bit off (even if you
> only get new addresses at boot time, which isn't guaranteed.  
>  
> dhclient-script already has a capability ("hooks") for running scripts
> at the appropriate times.  If you check the mailing list archive, I
> know I have previously posted the script I used to use for exactly the
> same purpose.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

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


Re: Should sudo be used?

2007-04-05 Thread kelvin woods
On Thu, April 5, 2007 09:42, Victor Engmark wrote:
> Hi all,
>
> I thought it would be a good idea to use sudo on my FreeBSD laptop,
> but I'm
> having doubts after checking the handbook (it's not mentioned at all)
> and
> Google (most of the articles were obscure and / or old).
>
> Are you using sudo? If not, why?

I personally don't use sudo. From my perspective the only real
advantage to using it is that it is possible to provide a fine-grained
access to limited functions that would normally only be available to
the root account. Thus, if you require more than one "normal" account
to perform some aspect of system maintenance it is possible to do this
via the sudoers file. As I'm the sole maintainer of /my/ systems I
don't feel the need to utilize sudo. Instead I have a separate local
account on each system added to the wheel group and use that to su to
the root account to perform system maintainance. Therefore, I don't
use my normal everyday account when performing system maintainance.

-- 
kelvin


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


Re: USB drive is a CDROM drive and is not writable

2007-01-08 Thread Kelvin Woods
On Mon, January 8, 2007 03:48, Michael M. Press wrote:
> I have a 2 gigabyte USB memory stick from made by PNY. When I plug it
> in, I
> get the following:
>
> umass0: vendor 0x0930 USB Flash Memory, rev 2.00/2.00, addr 2
> da0 at umass-sim0 bus 0 target 0 lun 0
> da0: < USB Flash Memory 6.50> Removable Direct Access SCSI-0 device
> da0: 40.000MB/s transfers
> da0: 1901MB (3894975 512 byte sectors: 255H 63S/T 242C)
> cd1 at umass-sim0 bus 0 target 0 lun 1
> cd1: < USB Flash Memory 6.50> Removable CD-ROM SCSI-0 device
> cd1: 40.000MB/s transfers
> cd1: Attempt to query device size failed: NOT READY, Medium not
> present
>
> I want to be able to mount the device read-write, so I use the
> following command:
>
> mount -t cd9660 -o rw /dev/cd1 /media/flashdrv
>
> The command runs without spitting any errors at me, but it does a
> read-only
> mount. I can see files on the drive, but (of course) I can't change
> them. Does
> my problem have anything to do with the device being detected as a
> CD-ROM
> drive? If that is what's wrong I don't really know where to start
> looking to fix it.
> Any ideas?

This sounds like a "Smart" drive - can you confirm? It this is the
case it's designed to work this way. You won't be able to write to the
CD partition of this flash drive. Smart isn't supported under *nix so
the functionality it provides isn't available to FreeBSD users.

I have one of these devices myself and simply removed the Smart
partition to reclaim the space it takes up.

-- 
Kelvin

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


Re: Remove the cursor with Xorg

2006-12-22 Thread Kelvin Woods
On Thu, December 21, 2006 10:27, Olivier Regnier wrote:
> Hello,
>
> I'm running FreeBSD 6.1 with xorg version 6.9.0. I want to make the
> mouse cursor invisible. Can you help me please ?
>
> Thank you :)
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>

Olivier,

I believe the only way to achieve this is to hack and recompile the
source.

In the source file "cursor.c" there is a function "CheckForEmptyMask"
within this function if you set "bits->emptyMask = TRUE" the cursor
won't appear.

Caveat: I did this myself, but it's couple of years ago now. Maybe
someone on this line has a more up-to-date method.

-- 
Kelvin


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