Re: Portupgrade thru SSH session

2009-01-20 Thread Ron Wilhoite

On 01/20/2009 09:10 AM Jos Chrispijn wrote:
Can someone tell me what I should attend for when I am disconnected in 
the middle of a portupgrade and the terminal session is aborted?
The portupgrade was halted by a [yes/no] prompt, on which I had to 
react. Unfortunately being not present and I having not set my Putty 
keepalive session timeperiod I was disconnected due to no activity on 
this system prompt $-|.
What I did after having logged on again was deleting that specific ruby 
process and some tty processes. Perhaps I should delete some other temp 
files as well?


Before I learned to run portupgrade in a screen session, I never had a 
problem just running portupgrade again. If I recall correctly the index 
needed to be rebuilt at times, but portupgrade gave a helpful message 
telling me that.


Ron Wilhoite
___
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: How can rsync with ssh be used on a non standard ssh port

2008-11-16 Thread Ron Wilhoite

On 11/16/2008 10:50 AM [EMAIL PROTECTED] wrote:
I need to use rsync for backup to another machine using a nonstandard 
port for ssh. 722.


For example, when I test using my translation of the man pages:

rsync [OPTION...] SRC... rsync://[EMAIL PROTECTED]:PORT]/DEST

I use:

rsync -avz /almacen/testDir rsync://backkup.net:722/backup/

the error generated is:

rsync: server sent SSH-2.0-OpenSSH_5.1p1 FreeBSD-20080901 rather than 
greeting
rsync error: error starting client-server protocol (code 5) at 
main.c(1504) [sender=3.0.4]




I believe you want the -e option. Example from the man page:

-e 'ssh -p 2234'

In your case, rsync -e 'ssh -p 722' -avz 

The [:PORT] you tried appears to be for connecting to an rsync daemon 
listening on a non-standard port.


Ron


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


Re: terminology question - upgrading one port with another

2008-08-11 Thread Ron Wilhoite

On 08/11/2008 10:31 PM Jim wrote:

I'm trying to update something (actually install KDE4), and In need to
make an 'update chain', but I can't remember the proper term. Namely I
have port found in 'foo/abc' (abc-12345) and want to replace it with
'var/xyz'. I know there are several ways to do this (one involving
entries in a file in etc?), but I cannot come up with the proper terms
to find what I'm looking for in a search?

Can anyone tell me a few terms that might help with this one? I've
tried compbinations of port, upgrade, search and different,
but that (unsurprisingly) isn't getting anywhere.



portupgrade --origin maybe?

From man portupgrade:

Replace ghostscript-gnu with ghostscript-afpl:

portupgrade -o print/ghostscript-afpl ghostscript-gnu

-o / --origin was originally the option to supply a missing origin of an 
outdated package before FreeBSD 4.2, but this example shows another 
useful usage.  Use portupgrade like this, and all the depen-
dencies on the old package (ghostscript-gnu) will be succeeded to the 
new one (ghostscript-afpl) cleanly, without leaving inconsistency.


Ron Wilhoite

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


Re: HP Proliant Series

2007-12-26 Thread Ron Wilhoite

On 12/26/2007 05:52 AM Bahman Movaqar wrote:

Hi all,

Does anybody have some experience with HP Proliant DL380 G5?  Is it
compatible with FreeBSD (in particular 6.2)?  Following is the hardware
configuration:
CPU: Intel Xeon 5160 (2 GHz, FSB 1333)
RAM: HP 4GM PC2-5300 DDR2
HDD: 2 x 72GB 3G SAS (15K)
Storage Ctrlr: HP Smart Array P400/256
NIC: Broadcom 5721 PCI-Express



Same model, with slightly different CPU and NIC (2x E5355 and BCM5708), 
installed 6.2 with no problems.


Ron Wilhoite

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


Re: IMAP server alternatives

2006-07-11 Thread Ron Wilhoite

On 7/11/2006 11:18 AM, Greg Groth wrote:

On 7/11/2006 9:29 AM, albi wrote:

Erik Norgaard wrote:



I would like to ask a couple more in depth questions pertaining to this 
conversation.  We recently switched from POP3  Outlook Express to IMAP 
using IMAP-UW  Thunderbird.  Personally I have had no issues with 
IMAP-UW, but the users in our office have had issues with the mbox 
format itself.  Specifically they cannot store messages  subfolders 
within a folder (referring to the Thunderbird definition of a folder). 
In mbox, since a given folder is not a directory, but a file, you cannot 
place a subfolder within that file.  Outlook Express' POP3 
implementation did not have this behavior.  Right or wrong, my users 
have requested that I attempt to restore this functionality in IMAP.  Am 
I correct in assuming that if I switch to a mdir format server, it will 
operate in the manner they are requesting?


I do this with Thunderbird and Dovecot using maildir for IMAP users.



My next question is in regards to scalability, not so much in the way of 
users, but in the amount of mail they store.  Currently we have about 20 
email accounts, and for the most part the users keep their email to a 
reasonable amount.  However I do have 5 users that insist they save 
everything, and do not clean out their InBoxes.  Currently they retain 
email going back 5 years, and have mail folders in excess of a couple of 
gigs apiece.  Since one of these people is the owner, I have little 
chance of changing this policy.  However they are asking that I attempt 
to increase the response time of the IMAP server, which can be somewhat 
slow for them - especially through SquirrelMail.  Would the mdir format 
help in this situation as well?


I saw a dramatic improvement in speed with both Thunderbird and 
Squirrelmail after switching from mbox to maildir.




Last question, how difficult is it to back up the mdir format? 
Currently I cron a tar job, nightly, to backup the mboxes to another 
server to allow for tape backups (the tape unit on the server in 
question doesn't want to play nice with FreeBSD), and have had no 
difficulty in accomplishing this.  Can I accomplish the same style of 
backups when moving to mdir?


I rsync both mbox and maildir message stores with no problem. Tar should 
copy your maildir folders with no problem. You might be slightly 
surprised when you realize each message is a separate file with maildir.




I'm in the middle of setting up a server to try out various IMAP servers 
to test which would provide the best response for our specific needs 
(low number of users - high volume of saved email), and would appreciate 
any opinions on the matter as it would probably save considerable time 
picking the right software to begin with.




Dovecot was simple to install (from ports), has sensible defaults, lets 
me seamlessly support POP and IMAP users (about 100), with inboxes 
(/var/mail/username) still in mbox format, but all other folders in 
maildir format for IMAP users.


Dovecot's developer, Timo Sirainen, is active and extremely helpful on 
the mailing list.


Ron Wilhoite

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


Re: Migrating from mbox to maildir (was Re: IMAP server alternatives)

2006-07-11 Thread Ron Wilhoite

On 7/11/2006 12:20 PM, Javier Henderson wrote:
I saw a dramatic improvement in speed with both Thunderbird and  
Squirrelmail after switching from mbox to maildir.


How did you handle the transition from mbox to maildir?

-jav


For my POP users, I didn't. I leave everyone's 'inbox' in /var/mail in 
mbox format. If a user connects via IMAP (Squirrelmail, etc.), folders 
in /home/%u are created and stored in maildir format, but their inbox 
stays in /var/mail in mbox format.


See Multiple Mailbox Locations: http://wiki.dovecot.org/Namespaces

Dovecot also comes with convert-tool. For the users who had mbox files 
in their home directory, I used it to convert those to maildir format. I 
don't think the port installs convert-tool; I got it by doing 'make' in 
the dovecot port directory and manually copied it from there.


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


Re: ipfilter rule will not load

2006-04-25 Thread Ron Wilhoite

On 4/25/2006 1:19 PM, Aaron Siegel wrote:

Hello
I cannot get ipfilter to load any rules. When I type in the iptest command I 
receive the following output:

[EMAIL PROTECTED]# ipftest
no rules loaded



man ipftest says:

At least one of -N, -P or -r must be specified.

Sounds like you want:

# ipftest -r /etc/ipf.rules

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


Upgrading PHP port to 4.4.1 breaks Drupal site

2005-11-11 Thread Ron Wilhoite
After a portupgrade of PHP to 4.4.1 my Drupal 4.6.3 site stopped 
working. I used portdowngrade to revert to 4.4.0 and the site worked again.


I tried upgrading this morning to 4.4.1_1 and drupal-4.6.3_1, but got 
the same result. Using portdowngrade to revert to PHP 4.4.0 worked again.


I posted to the drupal support list and PHP 4.4.1 does not seem to be 
causing problems for other Drupal users. The 'missing' files in the 
error logs below exist and have correct permissions. I also couldn't 
find anything relevant at php.net or with google searches.


I will appreciate any suggestions.

Ron Wilhoite


Message posted to Drupal list:

After upgrading PHP to 4.4.1, my site's homepage loads, but all other 
pages are blank and I can't login. I restarted apache and mysql, but got 
the same result. It's Drupal 4.6.3, Apache 2.0.55, Mysql 4.1.15, running 
on FreeBSD 5.4.


I've copied the errors from the apache log below. If there is other 
information I can provide let me know.


I downgraded my PHP ports to 4.4.0 and the site came back up.

Thanks for any help or pointers.

Apache error log:

[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Warning: 
main(sites/default/settings.php): failed to open stream: No such file or 
directory in /usr/local/www/data/includes/bootstrap.inc on line 642, 
referer: http://office.bals.org/
[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Warning: 
main(): Failed opening 'sites/default/settings.php' for inclusion 
(include_path='.:') in /usr/local/www/data/includes/bootstrap.inc on 
line 642, referer: http://office.bals.org/
[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Warning: 
main(includes/database.inc): failed to open stream: No such file or 
directory in /usr/local/www/data/includes/bootstrap.inc on line 643, 
referer: http://office.bals.org/
[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Warning: 
main(): Failed opening 'includes/database.inc' for inclusion 
(include_path='.:') in /usr/local/www/data/includes/bootstrap.inc on 
line 643, referer: http://office.bals.org/
[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Warning: 
main(includes/session.inc): failed to open stream: No such file or 
directory in /usr/local/www/data/includes/bootstrap.inc on lin

e 644, referer: http://office.bals.org/
[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Warning: 
main(): Failed opening 'includes/session.inc' for inclusion 
(include_path='.:') in /usr/local/www/data/includes/bootstrap.inc on

line 644, referer: http://office.bals.org/
[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Warning: 
main(includes/module.inc): failed to open stream: No such file or 
directory in /usr/local/www/data/includes/bootstrap.inc on line

 645, referer: http://office.bals.org/
[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Warning: 
main(): Failed opening 'includes/module.inc' for inclusion 
(include_path='.:') in /usr/local/www/data/includes/bootstrap.inc on l

ine 645, referer: http://office.bals.org/
[Wed Nov 02 00:15:42 2005] [error] [client 192.168.0.35] PHP Fatal 
error:  Call to undefined function:  db_fetch_object() in 
/usr/local/www/data/includes/bootstrap.inc on line 199, referer: 
http://office.bals.org/
[Wed Nov 02 00:15:46 2005] [error] [client 192.168.0.35] PHP Fatal 
error:  Cannot redeclare conf_init() (previously declared in 
/usr/local/www/data/includes/bootstrap.inc:45) in /usr/local/www/data/in

cludes/bootstrap.inc on line 44, referer: http://office.bals.org/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Upgrading PHP port to 4.4.1 breaks Drupal site

2005-11-11 Thread Ron Wilhoite

Michael C. Shultz wrote:

On Friday 11 November 2005 08:30, Ron Wilhoite wrote:

After a portupgrade of PHP to 4.4.1 my Drupal 4.6.3 site stopped
working. I used portdowngrade to revert to 4.4.0 and the site worked again.


After upgrading PHP to 4.4.1 you should rebuild ports that depend on it.

-Mike



Thanks Mike. Is portupgrade -r php4 the best way to do that? Or should 
I force the other ports to rebuild with portupgrade -rf php4?


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


Re: Question about Bind

2005-09-21 Thread Ron Wilhoite

Lisa Casey wrote:

Hi Folks,

I did not realise installing FreeBSD would automatically install Bind 9.3. I 
figured if I needed to run bind I'ld have to install it. I didn't want to 
make too many changes at once so I installed bind 8.4 from ports.


Now I  seem to have both bind 8.4 and bind 9.3 installed. Probably not a 
good situation.


Base and port versions can be on the same box, but I suspect you need to 
turn off the default chroot in rc.conf if you're going to run 8.4. Check 
the named variables in /etc/defaults/rc.conf.




What I suppose I ought to do is to uninstall the bind 8.4 and keep the bind 
9.3. How do I do that? I have never worked with ports before (although I 
think I'll like it once I get used to it).




pkg_deinstall bind

Also - and this is a biggie. named and   apache do not start on bootup and I 
NEED this to happen. I have asked for help on this on this list and on the 
bind usenet group and implemented the syggestions I got but if I reboot the 
box named and apache do not start. I have to start these manually.


apache_enable=YES


Try
apache2_enable=YES


named_enable=YES
named_program=/usr/local/sbin/named
named_flags=-u bind -g bind -c /usr/local/etc/named.conf



Again, grep /etc/defaults/rc.conf for the named items and adjust 
according to the version you plan to run. The above would probably work 
for 8.4 if you add:


named_chrootdir=#Chroot directory (or  not to auto-chroot it)

The Handbook also has a new section on BIND 9 and 5.3.

Hope that helps.

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