Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
emerging command-line only Nessus
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
cosjef
n00b
n00b


Joined: 19 May 2003
Posts: 11

PostPosted: Mon Jun 02, 2003 7:21 pm    Post subject: emerging command-line only Nessus Reply with quote

I don't run X, and don't want the GTK Nessus GUI interface. When I do an emerge -p nessus, it wants to install X, as below:

# emerge -p nessus
These are the packages that I would merge, in order:
Calculating dependencies ...done!

[ebuild N ] x11-base/xfree-4.3.0-r2
[ebuild N ] dev-util/intltool-0.25
[ebuild N ] x11-libs/gtk+-1.2.10-r10
[ebuild N ] net-analyzer/nessus-core-2.0.6a
[ebuild N ] net-analyzer/nessus-plugins-2.0.6a
[ebuild N ] net-analyzer/nessus-2.0.6a

Is there a USE flag or some other parameter that I need to pass to emerge to ensure I get the console-only version? Only a regular build, this is enabled by adding the --disable-gtk option to configure while building nessus-core :

cd nessus-core ; ./configure --disable-gtk ; make && make install

I see this potential option in the src_compile clause in the /usr/portage/net-analyzer/nessus-core/nessus-core-2.0.6a.ebuild file. Can anyone shed some light here?
Thanks.

Jeff
Back to top
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Mon Jun 02, 2003 7:34 pm    Post subject: Reply with quote

It looks like the nessus-core has gtk and gtk2 USE flag options to go with it.
Code:
# emerge nessus-core -pv

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R  ] net-analyzer/nessus-core-2.0.6a  +tcpd +X +gtk -gtk2


So I would suggest USE="-X -gtk" with the command line or in your make.conf. If that doesn't work you can still compile it manually and have portage merge it. I believe they cover this in the Portage manual that can be found in the Docs section on the Gentoo main website.
_________________
Meh.
Back to top
View user's profile Send private message
cosjef
n00b
n00b


Joined: 19 May 2003
Posts: 11

PostPosted: Mon Jun 02, 2003 7:53 pm    Post subject: Reply with quote

Just to confirm I've got this right:

1) Set the proper environment variables to disable building support for X, tcpd, GTK.
USE="-X -gtk -tcpd"

2) Verify with echo:
# echo $USE
-X -gtk -tcpd

3) I do an emerge -p nessus, which returns the following:
# emerge -p nessus
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild N ] x11-base/xfree-4.3.0-r2
[ebuild N ] dev-util/intltool-0.25
[ebuild N ] x11-libs/gtk+-1.2.10-r10
[ebuild N ] net-analyzer/nessus-core-2.0.6a
[ebuild N ] net-analyzer/nessus-plugins-2.0.6a
[ebuild N ] net-analyzer/nessus-2.0.6a

4) Issue the emerge nessus command, which will NOT install any of the GTK or X11 packages, because I set the proper environment variables, right?

I just want to be certain that setting the ENV to -X -gtk will disable building in that functionality. When I look at the results of the "pretend", it looks as if they still will.
Back to top
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Tue Jun 03, 2003 12:46 pm    Post subject: Reply with quote

Hmm, either emerge doesn't look at environment variables or it simply doesn't work. So see if
Code:
USE="-X -gtk -tcpd" emerge nessus -p

all on the same line will still try and install the extra stuff you don't want.
_________________
Meh.
Back to top
View user's profile Send private message
cosjef
n00b
n00b


Joined: 19 May 2003
Posts: 11

PostPosted: Tue Jun 03, 2003 1:11 pm    Post subject: Reply with quote

Thanks, that did it. I didn't know that emerge would not see the shell variables after you set them. That said, the build seems to still be broken--it tried to install Nessus components out of order, and was missing others. An emerge -pretend based on USE="-X -gtk -tcpd" emerge nessus -p detailed the following:

[ebuild N ] net-analyzer/nessus-core-2.0.6a
[ebuild N ] net-analyzer/nessus-plugins-2.0.6a
[ebuild N ] net-analyzer/nessus-2.0.6a

Unfortunately, the following emerges were needed first:

emerge nessus-libraries
emerge libnasl

Seems like the ebuild is wrong. Whom do I contact fo fix this? Any idea? (sorry, I'm only a recent Gentoo convert).
Back to top
View user's profile Send private message
paranode
l33t
l33t


Joined: 06 Mar 2003
Posts: 679
Location: Texas

PostPosted: Tue Jun 03, 2003 4:02 pm    Post subject: Reply with quote

Hmm that's odd, I've got it working fine. Maybe it's because I upgraded from a previous version. Check out bugs.gentoo.org and if you don't find anything you can report a bug in the ebuild there.

Also, if you have no plans to run X or gtk and the like you should permanently add those flags to /etc/make.conf so that they always apply to ebuilds.
_________________
Meh.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum