Re: Remove a Port and All Dependencies

2006-02-24 Thread Aaron Dalton

Jeff Cross wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I would like to know if it is possible to remove a port/package and all
of the dependencies it installed that are not needed by other applications.

Example: I installed Nautilus and some Gnome games but don't want them
installed any longer.  However, if I remove the package itself, doesn't
it leave all of the other dependencies out there?

Upgrading my system takes forever now that there are a ton of libs and
such installed by these applications.  So, if anyone can point me in the
right direction for doing this I would greatly appreciate it.



pkg_deinstall -R portname

pkg_deinstall is part of the sysutils/portupgrade package.

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


Re: Remove a Port and All Dependencies

2006-02-24 Thread Aaron Dalton

Jeff Cross wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I would like to know if it is possible to remove a port/package and all
of the dependencies it installed that are not needed by other applications.

Example: I installed Nautilus and some Gnome games but don't want them
installed any longer.  However, if I remove the package itself, doesn't
it leave all of the other dependencies out there?

Upgrading my system takes forever now that there are a ton of libs and
such installed by these applications.  So, if anyone can point me in the
right direction for doing this I would greatly appreciate it.



Oh, and sysutils/pkg_cutleaves is also an excellent utility to clean 
stuff up.


$ pkg_cutleaves -l

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


Re: Remove a Port and All Dependencies

2006-02-24 Thread Aaron Dalton

Peter wrote:

--- Aaron Dalton [EMAIL PROTECTED] wrote:



Jeff Cross wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I would like to know if it is possible to remove a port/package and


all


of the dependencies it installed that are not needed by other


applications.


Example: I installed Nautilus and some Gnome games but don't want them
installed any longer.  However, if I remove the package itself,


doesn't


it leave all of the other dependencies out there?

Upgrading my system takes forever now that there are a ton of libs and
such installed by these applications.  So, if anyone can point me in


the


right direction for doing this I would greatly appreciate it.



pkg_deinstall -R portname



Wouldn't this remove all ports that depend on the port in question (its
dependants)?  The OP wants to remove all ports that are *required* by the
port (its dependencies).  But furthermore, he wants to remove those that
AREN'T NEEDED BY ANY OTHER PORTS.



pkg_deinstall won't remove ports that are required by other ports. 
pkg_deinstalling a Perl (p5-) port, for example, won't forcefully 
deinstall lang/perl itself (unless you're removing the very last port 
that requires lang/perl).  'man pkg_deinstall' will tell you how to 
accomplish what you want.  There are a number of other port mgmt 
utilities as well.  (sysutils/portmaster comes to mind.)


Good luck!
--
Aaron Dalton
[EMAIL PROTECTED]
FreeBSD Ports Committer
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problems with X11 Forwarding

2006-01-15 Thread Aaron Dalton
I thought this might be the best place to post the question.  I am 
running FreeBSD5.4-RELEASE.  For the sake of argument, let's say I am 
trying to get the port editors/fte running on my Windows box via an SSH 
tunnel.  I am running WindowsXP, cygwin's X11 server, and PUTTY.  As far 
as I can tell from all my Googling, this should actually be quite simple:


- openssh is setup on FreeBSD with X11Forwarding=yes
- I start the cygwin X-server (XWin -ac -multiwindow)
- Putty is configured to forward X11 sessions
- I connect via Putty
- running '$ fte' from the FreeBSD command line should supposedly open 
everything up now on my Windows box, but it does not.


From what I understand, when I connect now via Putty the env variable 
DISPLAY should be set.  But it is not (which is the error fte gives me 
when I try to run it).  If I try to manually set the DISPLAY variable (I 
tried localhost:0, localhost:0.0, ip:0, ip:0.0) it still doesn't work. 
editors/fte is fully installed (with X11libs and all that) but I wonder 
if there is more I need installed on the FreeBSD end to make things work.


I really appreciate your time and any assistance you can render.

--
Aaron Dalton   |   Super Duper Games
[EMAIL PROTECTED]   |   http://superdupergames.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems with X11 Forwarding

2006-01-15 Thread Aaron Dalton

Nikolas Britton wrote:


If you have cygwin installed why use putty? Just fire up xterm and use
ssh -X. You could try this too: http://xlivecd.indiana.edu/



Thank you for your reply!  I tried that as well, but I get the same 
problems.  I set DISPLAY on my Cygwin to localhost:0.0 which does indeed 
allow me to start XTerm.  I do an ssh -X (and I tried -Y as well) but 
DISPLAY is still not set on the FreeBSD end.  I have now tried manually 
setting DISPLAY to (localhost:0.0, localhost:10.0, ip:0.0, ip:10.0) on 
the FreeBSD end and still nothing is working.  If I use ip:0.0 I get 
some router traffic, but nothing actually happens and then it just stops 
trying saying it could not open the display.  My XServer is indeed 
running (XWin -ac -multiwindow) as I can connect via a local CoLinux 
install just fine.


--
Aaron Dalton   |   Super Duper Games
[EMAIL PROTECTED]   |   http://superdupergames.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems with X11 Forwarding

2006-01-15 Thread Aaron Dalton

Ken Stevenson wrote:


I'm new to FreeBSD, so I may be off base, but I use vncserver on my
FreeBSD box when I need an X session. Then I just setup Putty to forward
port 5900 to 127.0.0.0:5901, make an ssh connection to my FreeBSD server, run
UltraVNC on my Windows box and connect to localhost.



Thanks for your reply!  I have been told VNC is a good way to go as 
well, but some have mentioned some performance issues.  What have you 
found?  It works liveably well?


--
Aaron Dalton   |   Super Duper Games
[EMAIL PROTECTED]   |   http://superdupergames.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems with X11 Forwarding (Fixed!)

2006-01-15 Thread Aaron Dalton

Ken Stevenson wrote:

On Sun, Jan 15, 2006 at 12:33:24PM -0700, Aaron Dalton wrote:


Ken Stevenson wrote:


I'm new to FreeBSD, so I may be off base, but I use vncserver on my
FreeBSD box when I need an X session. Then I just setup Putty to forward
port 5900 to 127.0.0.0:5901, make an ssh connection to my FreeBSD server, 
run

UltraVNC on my Windows box and connect to localhost.



Thanks for your reply!  I have been told VNC is a good way to go as 
well, but some have mentioned some performance issues.  What have you 
found?  It works liveably well?





It works great for me. I have a pretty fast internet connection (cable
modem).

One thing I like about it is the session doesn't end when you
disconnect. You can start a long running process like cvsup, disconnect,
and come back later to check on it.

Unlike when you vnc to a Windows box, you don't get the X session
that's on the local workstation, you get a new one. If you need to
connect to the primary X session, like for remote support, there's a
version of VNC in the ports for that too (xvnc?).


For the record, I finally got standard X11 forwarding working once I 
installed tightvnc.  I presume it was because I didn't have an X11 
client installed.  Now to get VNC working!  I can see which I prefer. 
Thank you again all for your time!


--
Aaron Dalton   |   Super Duper Games
[EMAIL PROTECTED]   |   http://superdupergames.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Problems with X11 Forwarding

2006-01-15 Thread Aaron Dalton

Matthew D. Fuller wrote:

[ shifting to -questions@ ]

On Sun, Jan 15, 2006 at 10:24:04AM -0700 I heard the voice of
Aaron Dalton, and lo! it spake thus:


editors/fte is fully installed (with X11libs and all that) but I
wonder if there is more I need installed on the FreeBSD end to make
things work.



You have to have the xorg-clients (or xfree-clients, if you're going
that way) installed to get the xauth(1) binary, so ssh can set the key
for the display it allocates.




*files this away in his head*  I just never saw anything that explicit 
in the docs anywhere.  I apologize for my ignorance and thank you for 
your help!


--
Aaron Dalton   |   Super Duper Games
[EMAIL PROTECTED]   |   http://superdupergames.org
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Problem with Exim

2005-02-12 Thread Aaron Dalton
Since upgrading to the latest exim (4.44?) I will occasionally notice I 
am not receiving mail.  I will check the server (ps -ax | grep 'exim') 
and find that there are dozens of exim processes running (exim -bd 
-q30m).  I will do 'exim.sh stop' but that only kills the initial 
process and not the others.  If I manually kill all the stray processes, 
as soon as I start receiving mail new ones will appear.  If I reboot, 
then everything works fine for about 24 hours then it starts to happen 
again.  Has anybody else had this happen or does anybody know what might 
be causing the problem?  I do run Exim with Clamav and I keep all my 
ports updated almost daily.

Your time and assistance is greatly appreciated.
Aaron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Error portupgrading openssl

2005-01-27 Thread Aaron Dalton
When I try to portupgrade or simply make security/openssl I get the 
following error code:

/bin/sh:Argument list too long
Is this happening across the board?  Or is it just my configuration? 
Never had this problem before.  I'm running FreeBSD 5.2.1-RELEASE.

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


Re: Error portupgrading openssl

2005-01-27 Thread Aaron Dalton
Brian Reichert wrote:
On Thu, Jan 27, 2005 at 10:01:53AM -0700, Aaron Dalton wrote:
When I try to portupgrade or simply make security/openssl I get the 
following error code:

/bin/sh:Argument list too long
I've seen this when I have OPENSSL_OVERWRITE_BASE set; are you doing that?
Nay.  No such environment variable set.  I have made no environment 
changes since my last upgrade of openssl.

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


Error installing dvipsk-tetex

2005-01-23 Thread Aaron Dalton
I am now trying to install print/teTeX.  With some fiddling I have
gotten it to almost install.  Now I'm having a problem when it gets to
the installation of print/dvipsk-tetex.  Below is the error?  Can
anybody point me in the right direction?  I'm running FreeBSD 5.2.1-RELEASE.
Thanks for your time!
Aaron
===   teTeX-2.0.2_7 depends on executable: dvips - not found
===Verifying install for dvips in /usr/ports/print/dvipsk-tetex
===  Building for dvipsk-tetex-5.92b_2
/usr/bin/sed -e s!%%PAPERSIZE%%!letter!g -e
s!%%MKTEXLSR%%!/usr/local/bin/mktexlsr!g -e
s!%%DVIPSDIR%%!/usr/local/{/usr/local/share/texmf,{/home/aaron/texmf,!!/usr/local/share/texmf-var,!!/usr/local/share/texmf-local,!!/usr/local/share/texmf}}/dvips/config!g 

-e
s!%%DVIPSVARDIR%%!/usr/local/{/usr/local/share/texmf,{/home/aaron/texmf,!!/usr/local/share/texmf-var,!!/usr/local/share/texmf-local,!!/usr/local/share/texmf}}-var/dvips/config!g 

-e s!%%TEXCONFIG%%!/usr/local/bin/texconfig!g -e
s!%%LOCALBASE%%!/usr/local!g  
/usr/ports/print/dvipsk-tetex/files/pkg-install.in 
/usr/ports/print/dvipsk-tetex/work/pkg-install.sh
sed: 1: s!%%DVIPSDIR%%!/usr/loc ...: bad flag in substitute command: '!'
*** Error code 1
Stop in /usr/ports/print/dvipsk-tetex.
*** Error code 1

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


Re: Error installing dvipsk-tetex

2005-01-23 Thread Aaron Dalton
Hiroki Sato wrote:
Hi,
Aaron Dalton [EMAIL PROTECTED] wrote
  in [EMAIL PROTECTED]:
a I am now trying to install print/teTeX.  With some fiddling I have
a gotten it to almost install.  Now I'm having a problem when it gets to
a the installation of print/dvipsk-tetex.  Below is the error?  Can
a anybody point me in the right direction?  I'm running FreeBSD 5.2.1-RELEASE.
 Probably you set the $TEXMF environment variable, right?
 Please try to unset $TEXMF first and do make the port.
 I will fix this problem soon.  Thanks for the report.
Cheers!  That did it =)
Aaron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Error installing print/latex

2005-01-21 Thread Aaron Dalton
When doing a make on print/latex I get the following error:
===   Compressing manual pages for tex-3.14159_2
===   Registering installation for tex-3.14159_2
===   Returning to build of latex2e-2003.12_1
===  Configuring for latex2e-2003.12_1
===  Building for latex2e-2003.12_1
! I can't read tex.pool; bad path?
*** Error code 1
Stop in /usr/ports/print/latex.
I am sure this is some sort of path thing because tex.pool indeed exists
 at /usr/local/share/texmf/web2c/tex.pool; however, I have been unable
to figure out what I need to change where to make it work.
I'm running 5.2.1-RELEASE.  Any help you could provide would be most
appreciated.  Thank you for your time!
Aaron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Error installing print/latex

2005-01-21 Thread Aaron Dalton
Erik Trulsson wrote:
On Fri, Jan 21, 2005 at 09:14:57AM -0700, Aaron Dalton wrote:
When doing a make on print/latex I get the following error:
===   Compressing manual pages for tex-3.14159_2
===   Registering installation for tex-3.14159_2
===   Returning to build of latex2e-2003.12_1
===  Configuring for latex2e-2003.12_1
===  Building for latex2e-2003.12_1
! I can't read tex.pool; bad path?
*** Error code 1
Stop in /usr/ports/print/latex.
I am sure this is some sort of path thing because tex.pool indeed exists
at /usr/local/share/texmf/web2c/tex.pool; however, I have been unable
to figure out what I need to change where to make it work.
I'm running 5.2.1-RELEASE.  Any help you could provide would be most
appreciated.  Thank you for your time!

Is there some particular reason why you must use print/latex ?
If there is not I would suggest that you use print/teTeX instead.
It is probably more up to date and is what most people use for
TeX-related stuff.

Well I've only ever used LaTeX.  Perhaps I don't need it, but I'm not 
sure.  I am unfamiliar with the specific differences between plain TeX 
and the LaTeX2e macros.  I use Miktex on my windows box and have always 
used LaTeX reference materials for composing my documents.  LaTeX used 
to be installed on this BSD box and I don't recall having any problems 
back then (it was installed as a part of print/lilypond).  Well, now 
that I look through lilypond's Makefile, it appears that latex is a part 
of print/teTeX?  *is a little confused*  I will try installing that instead.

What are the differences between print/latex and print/teTeX?  Why are 
there two ports?

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


Error installing dvipsk-tetex

2005-01-21 Thread Aaron Dalton
I am now trying to install print/teTeX.  With some fiddling I have 
gotten it to almost install.  Now I'm having a problem when it gets to 
the installation of print/dvipsk-tetex.  Below is the error?  Can 
anybody point me in the right direction?

Thanks for your time!
Aaron
===   teTeX-2.0.2_7 depends on executable: dvips - not found
===Verifying install for dvips in /usr/ports/print/dvipsk-tetex
===  Building for dvipsk-tetex-5.92b_2
/usr/bin/sed -e s!%%PAPERSIZE%%!letter!g -e 
s!%%MKTEXLSR%%!/usr/local/bin/mktexlsr!g -e 
s!%%DVIPSDIR%%!/usr/local/{/usr/local/share/texmf,{/home/aaron/texmf,!!/usr/local/share/texmf-var,!!/usr/local/share/texmf-local,!!/usr/local/share/texmf}}/dvips/config!g 
-e 
s!%%DVIPSVARDIR%%!/usr/local/{/usr/local/share/texmf,{/home/aaron/texmf,!!/usr/local/share/texmf-var,!!/usr/local/share/texmf-local,!!/usr/local/share/texmf}}-var/dvips/config!g 
-e s!%%TEXCONFIG%%!/usr/local/bin/texconfig!g -e 
s!%%LOCALBASE%%!/usr/local!g   
/usr/ports/print/dvipsk-tetex/files/pkg-install.in  
/usr/ports/print/dvipsk-tetex/work/pkg-install.sh
sed: 1: s!%%DVIPSDIR%%!/usr/loc ...: bad flag in substitute command: '!'
*** Error code 1

Stop in /usr/ports/print/dvipsk-tetex.
*** Error code 1

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


ProFTPd: 229 Entering Extended Passive Mode

2004-08-16 Thread Aaron Dalton
I am running the latest port version of ProFTPd on one of my servers but it 
seems to hang for as long as 60 seconds whenever I attempt to transfer data.  
The cmd line says 229 Entering Extended Passive Mode and then hangs.  
Eventually it does work, but it greatly impedes my coding efforts.  What is 
odd is that this does *not* occur when I access an identical ProFTPd 
installation on another machine.  Does anybody know what might cause this 
sort of excessive delay and how maybe to repair it?

Thank you, as always, for your time and assistance.
-- 
Aaron Dalton
http://aaron.daltons.ca
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ProFTPd: 229 Entering Extended Passive Mode

2004-08-16 Thread Aaron Dalton
As a follow-up, this happens even if I replace ProFTPd with the built-in ftpd 
via inetd.  How do I eliminate this delay?

Cheers!
-- 
Aaron Dalton
http://aaron.daltons.ca
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: ProFTPd: 229 Entering Extended Passive Mode

2004-08-16 Thread Aaron Dalton
On August 16, 2004 07:24 pm, Andras Kende wrote:
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Dalton
 Sent: Monday, August 16, 2004 4:05 PM
 To: [EMAIL PROTECTED]
 Subject: Re: ProFTPd: 229 Entering Extended Passive Mode

Is there a firewall running on that system or between server and client?

There is indeed and I finally found an article that speaks about it.  The 
solution was for me to manually enter the passive command before 
transferring.  This is odd seeing as it says it's entering some form of 
passive mode, but it's really not.  What's even more odd is that for me to 
make Konqueror work with this server, I had to go to KControl and turn PASV 
ftp mode OFF!  Go figure.  Anyway, it seems to work now.

Cheers!
-- 
Aaron Dalton
http://aaron.daltons.ca
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Is promiscuous mode bad?

2004-08-15 Thread Aaron Dalton
I was running security/rkhunter and it warns me about my network card being in 
promiscuous mode.  I have a few questions:
1) What exactly is promiscuous mode? (I've done some googling but haven't 
found anything really clear)
2) Why might it be considered a bad thing?
3) How do I disable it if it really is bad?
4) What are the effects of disabling it?

Thank you *so much* for your time!
-- 
Aaron Dalton
http://aaron.daltons.ca
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Is promiscuous mode bad?

2004-08-15 Thread Aaron Dalton
Thank you so much for your replies!  This makes much more sense now.

I am currently running Snort.  I will examine its documentation to see if 
promiscuous mode is really necessary.  In the meantime, am I correct in 
assuming the only threat is from local users?  If so, currently all users are 
trusted so I shant panic just yet.

Thank you again for your help!
-- 
Aaron Dalton
http://aaron.daltons.ca
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Hiding SSH version string

2004-07-23 Thread Aaron Dalton
I've read a number of times that people hide their ssh version string so that 
attackers don't know what version you are running.  I've read the 
documentation and can't seem to figure out how to do this.  Can somebody 
explain to me how this is done?  Thank you so much!

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


Re: Hiding SSH version string

2004-07-23 Thread Aaron Dalton
On July 23, 2004 07:10 pm, Lowell Gilbert wrote:
 I don't recommend anyone actually do this, because

  a) it serves no purpose (it certainly doesn't make you any more
 secure, or even discourage any attackers)

  b) The version string is a part of the protocol itself, required by
 the protocol specification

  c) you will be making life harder for auditors, system
 administrators, and so

 If you're really determined, though, the strings are defined in
 /usr/src/crypto/openssh/version.h

Thank you so much for the information!  I didn't realize it was part of the 
protocol.  It was something I had heard about but didn't understand.  Thank 
you again for your help!
-- 
Aaron Dalton
http://aaron.daltons.ca
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Audio CD burning shouldnt be this difficult!

2004-07-21 Thread Aaron Dalton
If you use KDE, K3B is a superb cd burning tool.  Sorry I can't give you any 
command-line help.

Cheers!
-- 
Aaron Dalton
http://aaron.daltons.ca
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


ipfw rule deletion

2004-07-18 Thread Aaron Dalton
I am using Doorman (http://doorman.sourceforge.net)as a port knocking
daemon and I need to write a short script that adds and deletes rules to
the ipfw firewall.  I can add them just fine, but I can't find the best
way to delete them.  Is the only way to specify the exact rule number?
Below is the add script itself.  Thanks for your help!

#!/bin/sh
#
#  file ipfw_add
#  Sample firewall-add script, called by doormand.
#  This example can be used by systems which use ipfw.
#
#  Called with five arguments:
#
# $1 : name of the interface (e.g. eth0)
# #2 : source IP; i.e. dotted-decimal address of the 'knock' client
# $3 : source port; when this script is called for the first time
#  for a connection (man 8 doormand), this argument will be set
#  to a single 0 (0x30) character.  This means that the source
#  port is not yet known, and a broad rule allowing any source
#  port is required.
# $4 : destination IP; that is, the IP address of the interface
#  in argument 1.
# $5 : The port number of the requested service (e.g. 22 for ssh, etc.)
#
#
if [ $3 = 0 ]
then
ipfw  addallow log tcp   from $2  to $4 $5   in  setup
keep-state
else
ipfw  addallow log tcp   from $2 $3   to $4 $5   in  setup
keep-state
fi

err=$?

if [ $err = 0 ]
then
echo 0
else
echo $err 3  The firewall_add script sez: Dang.
fi


-- 
Aaron Dalton
[EMAIL PROTECTED]
PGPKeyID# 0x65AB5571


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


Savage4, DRI, and NWN

2003-12-01 Thread Aaron Dalton
Before I pull out my hair seeking for answers that don't exist, I would
appreciate confirmation of the following points:

1) There is currently no DRI driver for the Savage4 graphics card, meaning
no matter how I configure XFree86, glxinfo will always tell me that
Direct Rendering is not enabled.

2) Without DRI enabled, I cannot get the Neverwinter Nights linux client
to run.

I am currently running FreeBSD 4.8-RELEASE with XFree86 4.3.0.  If any of
the above are untrue, I would appreciate some pointers as to where to
start.  Thank you for your time!

-- 
Aaron Dalton
[EMAIL PROTECTED]
http://aaron.finch.st

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


Savage4, DRI, and NWN

2003-11-24 Thread Aaron Dalton
Before I pull out my hair seeking for answers that don't exist, I would
appreciate confirmation of the following points:

1) There is currently no DRI driver for the Savage4 graphics card, meaning
no matter how I configure XFree86, glxinfo will always tell me that
Direct Rendering is not enabled.

2) Without DRI enabled, I cannot get the Neverwinter Nights linux client
to run.

I am currently running FreeBSD 4.8-RELEASE with XFree86 4.3.0.  If any of
the above are untrue, I would appreciate some pointers as to where to
start.  Thank you for your time!

-- 
Aaron Dalton
[EMAIL PROTECTED]
http://aaron.finch.st

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


Netinet6

2003-10-31 Thread Aaron Dalton
I have been trying to compile some C++ socket code.  I get the same 
errors with multiple software packages so I'm thinking it's something 
FreeBSD-related.  I am a BSD newb so I would appreciate any advice you 
could give me.  Below are the errors themselves.  Thank you so much for 
your time.

-BEGIN COMPILER OUTPUT

gcc -Wall -fPIC -I../include -funroll-all-loops -ffast-math 
-fomit-frame-pointer -O2 -D_GNU_SOURCE -D_REENTRANT -c loopback.c
In file included from nlinternal.h:31,
 from loopback.c:33:
/usr/include/malloc.h:2: warning: #warning this file includes 
malloc.h which is deprecated, use stdlib.h instead
In file included from loopback.c:51:
/usr/include/netinet/in.h:235: syntax error before `in_addr_t'
/usr/include/netinet/in.h:287: syntax error before `u_char'
In file included from /usr/include/netinet/in.h:469,
 from loopback.c:51:
/usr/include/netinet6/in6.h:122: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:144: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:149: syntax error before `u_int32_t'
/usr/include/netinet6/in6.h:612: syntax error before `*'
/usr/include/netinet6/in6.h:613: warning: type defaults to `int' in 
declaration of `inet6_option_append'
/usr/include/netinet6/in6.h:614: syntax error before `*'
/usr/include/netinet6/in6.h:614: warning: type defaults to `int' in 
declaration of `inet6_option_alloc'
/usr/include/netinet6/in6.h:614: warning: data definition has no type or 
storage class
/usr/include/netinet6/in6.h:615: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:616: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:631: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:636: syntax error before `u_int8_t'
/usr/include/netinet6/in6.h:638: syntax error before `u_int8_t'
loopback.c: In function `loopback_Read':
loopback.c:480: warning: implicit declaration of function `ntohs'
loopback.c: In function `loopback_WritePacket':
loopback.c:556: warning: implicit declaration of function `htons'
*** Error code 1

Stop in /home/aaron/Desktop/hawknl/src.

-END COMPILER OUTPUT
-- 
Aaron Dalton
[EMAIL PROTECTED]
http://aaron.finch.st

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


Re: Netinet6

2003-10-31 Thread Aaron Dalton
On October 31, 2003 03:11 pm, Kris Kennaway wrote:
 On Fri, Oct 31, 2003 at 12:15:03PM -0700, Aaron Dalton wrote:
  I have been trying to compile some C++ socket code.  I get the same
  errors with multiple software packages so I'm thinking it's
  something FreeBSD-related.  I am a BSD newb so I would appreciate
  any advice you could give me.  Below are the errors themselves. 
  Thank you so much for your time.

 You seem to be running -CURRENT, which is a poor choice for a BSD
 newb.  This particular problem was fixed earlier this week, but
 you'll probably encounter others at some point.  Try switching to
 4.9-RELEASE or 4.9-STABLE instead - see the handbook for more
 information about the difference between -RELEASE, -STABLE and
 -CURRENT.

 Kris

Actually I'm running FreeBSD 4.8-RELEASE.  I don't believe I've ever 
tried to cvsup my include files.  Perhaps I should do a full upgrade to 
4.9-RELEASE and see how it goes?  What's the best way to approach that 
without losing all my pkgdb and settings?

-- 
Aaron Dalton
[EMAIL PROTECTED]
http://aaron.finch.st

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


Re: Netinet6

2003-10-31 Thread Aaron Dalton
On October 31, 2003 03:48 pm, Kris Kennaway wrote:
 On Fri, Oct 31, 2003 at 03:42:43PM -0700, Aaron Dalton wrote:
  On October 31, 2003 03:11 pm, Kris Kennaway wrote:
   On Fri, Oct 31, 2003 at 12:15:03PM -0700, Aaron Dalton wrote:
I have been trying to compile some C++ socket code.  I get the
same errors with multiple software packages so I'm thinking
it's something FreeBSD-related.  I am a BSD newb so I would
appreciate any advice you could give me.  Below are the errors
themselves. Thank you so much for your time.
  
   You seem to be running -CURRENT, which is a poor choice for a
   BSD newb.  This particular problem was fixed earlier this week,
   but you'll probably encounter others at some point.  Try
   switching to 4.9-RELEASE or 4.9-STABLE instead - see the handbook
   for more information about the difference between -RELEASE,
   -STABLE and -CURRENT.
  
   Kris
 
  Actually I'm running FreeBSD 4.8-RELEASE.  I don't believe I've
  ever tried to cvsup my include files.  Perhaps I should do a full
  upgrade to 4.9-RELEASE and see how it goes?  What's the best way to
  approach that without losing all my pkgdb and settings?

 What ports were you trying to compile?

 Kris

These aren't ports, which is the problem :)  I'm trying to compile 
HawkNL (a c++ socket library) and a linux bandwidth monitor I use on my 
Linux box.  Neither of which are in the ports tree.

Aaron

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


Re: Netinet6

2003-10-31 Thread Aaron Dalton
On October 31, 2003 04:04 pm, Kris Kennaway wrote:
 On Fri, Oct 31, 2003 at 04:00:41PM -0700, Aaron Dalton wrote:
  These aren't ports, which is the problem :)  I'm trying to compile
  HawkNL (a c++ socket library) and a linux bandwidth monitor I use
  on my Linux box.  Neither of which are in the ports tree.

 Sounds like the code could be broken, e.g. it doesn't include the
 correct system headers.  If you have problems compiling ports that
 are known to work on FreeBSD, then we can talk :)

 Kris

It's an error I get with multiple software packages that compile just 
fine in Linux, which is why I thought it might be a more common BSD 
problem and one with perhaps a common answer.  If not, I'll have to 
try some other things.  Is /usr/include/netinet6/in6.h something 
generated when building the kernel itself?  Can I copy this from /usr/
src/sys after doing a cvsup of the src tree?  

-- 
Aaron Dalton
[EMAIL PROTECTED]
http://aaron.finch.st

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


Re: /usr/libexec/elf/ld: cannot find -lXfont

2003-09-01 Thread Aaron Dalton
On Sun, 31 Aug 2003 12:44:11 -0700, Kent Stewart wrote
 On Sunday 31 August 2003 07:16 am, Aaron Dalton wrote:
  Please excuse my ignorance.  I cvsup'd my ports tree and used
  portupgrade to upgrade everything but I can't get
  XFree86-FontServer-4.3.0 or Clients to install due to the following
  error after making:
  Where is this library Xfont supposed to be?  Thank you so much for
  your time.
 
 It was installed by -libraries and deleted when you updated -server. 
 It is no longer a part of -server and you have to reinstall -
 libraries again. You shouldn't have any problem like this in the future.
 
 Kent
 
 
  Cheers!
 
 -- 
 Kent Stewart
 Richland, WA
 
 http://users.owt.com/kstewart/index.html

Thanks so much for your help!  I'm sorry for not being completely up to date 
with the Ports list.  I'll do the reinstall tonight.  Sure appreciate your 
time!

Cheers!
--
Aaron Dalton
[EMAIL PROTECTED]
http://aaron.finch.st

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


/usr/libexec/elf/ld: cannot find -lXfont

2003-08-31 Thread Aaron Dalton
Please excuse my ignorance.  I cvsup'd my ports tree and used 
portupgrade to upgrade everything but I can't get 
XFree86-FontServer-4.3.0 or Clients to install due to the following 
error after making:

making all in programs/bdftopcf...
rm -f bdftopcf
cc -o bdftopcf -O -pipe -ansi -Dasm=__asm -Wall -Wpointer-arith -Wundef 
-L/usr/ports/x11/XFree86-4-clients/work/xc/exports/lib   bdftopcf.o 
-lXfont -lfntstubs  -L/usr/X11R6/lib  -lz -lm   
-Wl,-rpath,/usr/X11R6/lib
/usr/libexec/elf/ld: cannot find -lXfont
*** Error code 1

and for the FontServer:

ar clq libdifs.a main.o dispatch.o extensions.o globals.o events.o 
tables.ofontinfo.o charinfo.o swapreq.o swaprep.o resource.ofonts.o 
difsutils.o cache.o initfonts.o atom.o
ranlib libdifs.a
LD_LIBRARY_PATH=/usr/ports/x11-servers/XFree86-4-FontServer/work/xc/exports/lib 
cc -o xfs -O -pipe -ansi -Dasm=__asm -Wall -Wpointer-arith -Wundef 
-L/usr/ports/x11-servers/XFree86-4-FontServer/work/xc/exports/lib  
-L/usr/X11R6/lib  difs/libdifs.a difs/libdifs.a os/libos.a  
-L/usr/X11R6/lib
-L/usr/ports/x11-servers/XFree86-4-FontServer/work/xc/exports/lib  
-L/usr/X11R6/lib -lXfont -lfntstubs   -lm -lz  
-Wl,-rpath,/usr/X11R6/lib
/usr/libexec/elf/ld: cannot find -lXfont
*** Error code 1

Where is this library Xfont supposed to be?  Thank you so much for 
your time.

Cheers!
-- 
Aaron Dalton
[EMAIL PROTECTED]
http://aaron.finch.st

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