Re: FreeNX in FreeBSD Jail

2006-03-02 Thread Ryan Rempel
On 3/1/06, Ryan Rempel <[EMAIL PROTECTED]> wrote:
>
> On 2/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> > Has anyone had any experience running FreeNX in a FreeBSD Jail. It
> > starts to connect then goes to connection failed, I can use XDMCP from the
> > same box and everything works fine, any suggestions? Thanks in Advance.
>
> I've done it, so it is possible to get it to work. I can't remember now if
> there were any partiuclar issues in setting it up -- one suggestion would be
> to check the log files for something that might shed light.

I forgot -- there was an issue when I set this up. There is code in
the nxserver, in nxcomp/Loop.cpp, that checks whether the connection
is coming from an expected IP address (or something like that). What
seems to happen is that it gets confused by the way that 127.0.0.1 in
the jail gets translated to the jail's IP address, so it thinks they
don't match.

I made a patch for net/nxserver that kind of fixes the problem, but I
should emphasize that this isn't a proper patch -- it just bypasses
the check entirely, rather than trying to do it correctly in the jail.
So it probably defeats something which contributes to security. That
having been said, here's the patch:

--- nxcomp/Loop.cpp.orig   Sat Feb  5 14:10:48 2005
+++ nxcomp/Loop.cppThu Mar  2 08:15:12 2006
@@ -4567,7 +4567,8 @@
   char *connectedHost = inet_ntoa(newAddr.sin_addr);
   unsigned int connectedPort = ntohs(newAddr.sin_port);

-  if (*acceptHost == '\0' || (int) newAddr.sin_addr.s_addr == acceptIPAddr)
+//if (*acceptHost == '\0' || (int) newAddr.sin_addr.s_addr == acceptIPAddr)
+  if (1)
   {
 #if defined(INFO) || defined (TEST)
 *logofs << "Loop: Accepted connection from '" << connectedHost
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: FreeNX in FreeBSD Jail

2006-03-01 Thread Ryan Rempel
On 2/28/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> Has anyone had any experience running FreeNX in a FreeBSD Jail. It
> starts to connect then goes to connection failed, I can use XDMCP from the
> same
> box and everything works fine, any suggestions? Thanks in Advance.


I've done it, so it is possible to get it to work. I can't remember now if
there were any partiuclar issues in setting it up -- one suggestion would be
to check the log files for something that might shed light.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Getting phpMyAdmin to run

2005-06-30 Thread Ryan Rempel
On 6/30/05, Gerard Seibert <[EMAIL PROTECTED]> wrote:
> I am unable to get phpMyAdmin to run. I have these entries in the httpd.conf 
> file.
> 
> 
> 
> Alias /phpmyadmin/ "/usr/local/www/phpMyAdmin/"
> 
> #
> #   AllowOverride None
> #   Order allow,deny
> #   Allow from all
> #
> 
> I have the directory entries commented out now, but I have tried them 
> uncommented, and it made no difference.
> 
> This is from the apache error log.
> 
> [client 127.0.0.1] File does not exist: 
> /usr/local/www/data/beerstud/htdocs/phpMyAdmin
> 
> I receive a 404 error when I try to run command from a browser.
> 
> I thought that the use of alias would  make apache look in the correct 
> directory for the index.php file. What am I doing incorrectly here?

It looks as though you have the Alias directive nested inside the
 directive, which
can't really be what you want (the Alias would only apply within the
that directory, but of course it would never have any occasion to
apply there).

I think you probably need to move the phpMyAdmin-related directives
outside of the 
directive.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: system wide fetchmail

2005-06-30 Thread Ryan Rempel
On 6/30/05, stan <[EMAIL PROTECTED]> wrote:
> I'm building a mail server for a small office. Under Debian I have seen the
> choice of setting up a "system wide" copy of fetchmail. I'd rather do that
> than have to start a seperate copy for each user. Can I do this in FreeBSD?
> 
> If so, an anyone point me to some docs for seting thsi up?

What I do is run fetchmail from root's crontab, and use the -f
argument to point to a global configuration file -- something like
this:

*/5 * * * * fetchmail -s -f /usr/local/etc/fetchmailrc

Then, in the fetchmailrc, I can configure whatever I need to configure
in order to fetch whatever mail I want (including from multiple
servers, for multiple users, etc.).

I think you can also run fetchmail as a daemon if you like -- as far
as I know, the only trick is to use -f to make fetchmail use a
configuration file that you can set up as you like.

Now, if you want each user to be able to administer their own
fetchmailrc, then I don't know how to do that without having each user
run fetchmail individually.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Can't fetch distfile trying to build OpenOffice.org 2

2005-05-31 Thread Ryan Rempel
On 5/31/05, Bill Moran <[EMAIL PROTECTED]> wrote:
 
> I thought I'd try installing OpenOffice.org 2 in order to try it out and
> see what's in the pipeline for the next version.
> 
> It seems, however, that I can't find the distfile.  I just updated my ports
> tree a few hours ago, and the file that's attempting to fetch is:
> OOo_1.9m105_source.tar.bz2

The ftp server at ooopackages.good-day.net appears to be having
intermittent problems -- it was not working properly for a while, then
it was working for a few days, and at the moment it appears to be not
working again.

I was able to download the source from there yesterday or the day
before -- it does build nicely (though it takes an astonishly long
time -- I guess that's well known).

There are other locations to get the source code -- the name of the
file is different, but the contents appear to be the same. However (as
of a couple of days ago) I could only find m104 elsewhere, not m105.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Good CPUTYPE setting for make.conf for mixed environment?

2005-05-26 Thread Ryan Rempel
I've got several machines that I want to maintain identical
installations on. Some of them have athlon-xp CPUs and some have
pentium4's.

What would be a good CPUTYPE setting to use in make.conf? Would an
athlon-xp run well (or at all) if I used pentium4? Would a pentium4
run well (or at all) if I used athlon-xp? Or should I use a "lowest
common denominator" (and if so, what -- something like i686 perhaps?).

I guess the other question is whether I should worry about this at all
-- I've got no CPUTYPE setting in make.conf at the moment at all --
would a more "tuned" setting actually make that much difference?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"