<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>laneolson.ca &#187; linux</title>
	<atom:link href="http://www.laneolson.ca/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.laneolson.ca</link>
	<description></description>
	<lastBuildDate>Fri, 07 Jan 2011 23:06:53 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Mouse issues running an Ubuntu guest in VMware</title>
		<link>http://www.laneolson.ca/2009/10/08/mouse-issues-running-an-ubuntu-guest-in-vmware/</link>
		<comments>http://www.laneolson.ca/2009/10/08/mouse-issues-running-an-ubuntu-guest-in-vmware/#comments</comments>
		<pubDate>Thu, 08 Oct 2009 14:56:10 +0000</pubDate>
		<dc:creator>Lane</dc:creator>
				<category><![CDATA[Virtualization]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.laneolson.ca/?p=128</guid>
		<description><![CDATA[      <p>I guess this isn&#8217;t exaclty an Ubuntu specific problem because I&#8217;m having issues with my mouse in Windows guest using VMware server as well.  Anyways, I have found a fix to the problem I was having in Ubuntu.  I have a few different VM&#8217;s that I use for testing and ever since I set them up I&#8217;ve been having the following mouse issues (even with VMware Tools installed):</p>

<ul>
<li>I often get a &#8220;shadow&#8221; mouse where I can see the Windows cursor and the Ubuntu cursor at the same time.  This would make it difficult for me to know what I was clicking on.</li>
<li>I usually have my Ubuntu VM at fullscreen on one monitor and Windows running in the other.  In order to release the mouse from the VM I would have to hit Ctrl+Alt, which makes it tough to use the VM and Windows side-by-side.  Also hitting Ctrl+Alt would exit the VM from fullscreen mode.</li>
<li>The cursor would often flash in a seizure inducing way.</li>
</ul>
<p>All of these issues can be easily fixed by installing the vmmouse driver.  Which can be done with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> xserver-xorg-input-vmmouse</pre></div></div>

<p>After it is installed you can reboot or simply restart gdm with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>gdm restart</pre></div></div>

<p>You can now run the VM in fullscreen and seamlessly move the mouse in and out of the VM without having to press ctrl+alt all the time.  It also fixes the other issues mentioned above.</p>
]]></description>
			<content:encoded><![CDATA[<p>I guess this isn&#8217;t exaclty an Ubuntu specific problem because I&#8217;m having issues with my mouse in Windows guest using VMware server as well.  Anyways, I have found a fix to the problem I was having in Ubuntu.  I have a few different VM&#8217;s that I use for testing and ever since I set them up I&#8217;ve been having the following mouse issues (even with VMware Tools installed):</p>
<ul>
<li>I often get a &#8220;shadow&#8221; mouse where I can see the Windows cursor and the Ubuntu cursor at the same time.  This would make it difficult for me to know what I was clicking on.</li>
<li>I usually have my Ubuntu VM at fullscreen on one monitor and Windows running in the other.  In order to release the mouse from the VM I would have to hit Ctrl+Alt, which makes it tough to use the VM and Windows side-by-side.  Also hitting Ctrl+Alt would exit the VM from fullscreen mode.</li>
<li>The cursor would often flash in a seizure inducing way.</li>
</ul>
<p>All of these issues can be easily fixed by installing the vmmouse driver.  Which can be done with the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> xserver-xorg-input-vmmouse</pre></div></div>

<p>After it is installed you can reboot or simply restart gdm with:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>gdm restart</pre></div></div>

<p>You can now run the VM in fullscreen and seamlessly move the mouse in and out of the VM without having to press ctrl+alt all the time.  It also fixes the other issues mentioned above.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laneolson.ca/2009/10/08/mouse-issues-running-an-ubuntu-guest-in-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Install OpenVAS Vulnerability Scanner on Ubuntu 9.04</title>
		<link>http://www.laneolson.ca/2009/05/26/how-to-install-openvas-vulnerability-scanner-on-ubuntu-904/</link>
		<comments>http://www.laneolson.ca/2009/05/26/how-to-install-openvas-vulnerability-scanner-on-ubuntu-904/#comments</comments>
		<pubDate>Tue, 26 May 2009 18:28:19 +0000</pubDate>
		<dc:creator>Lane</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[OpenVAS]]></category>
		<category><![CDATA[vulnerability scanner]]></category>

		<guid isPermaLink="false">http://www.laneolson.ca/?p=84</guid>
		<description><![CDATA[OpenVAS is a great open source alternative to Nessus, which in the recent years has closed its source.  Nessus still remains free to home users but requires commercial users to purchase a Professional plugin feed to obtain the latest and greatest plugins.  If your IT department is running on a low budget, or you just prefer to stick to open source then OpenVAS is the way to go!  OpenVAS has readily available installation packages for several different flavours of linux (Gentoo, OpenSUSE, Slackware, etc.).  As of writing this, I am not aware of any installation packages created for Ubuntu.  However, I was able to compile OpenVAS from source quite easily on Ubuntu by performing the following steps.  For a more in depth look at installing and configuring OpenVAS check out the OpenVAS Compendium.
Prerequisites
First we need to install all of the dependent packages:

sudo apt-get install build-essential libgnutls-dev libpcap0.8-dev bison libgtk2.0-dev
libglib2.0-dev libgpgme11-dev libssl-dev htmldoc


Note: libgtk2.0-dev is only required for the OpenVAS client.  htmldoc is only required if you plan on exporting reports to PDF from the OpenVAS client.
Getting the Files
Once those packages have installed we need to download the files required for OpenVAS.  The links below may be outdated, make sure you obtain the latest version.

cd /tmp
wget http://wald.intevation.org/frs/download.php/572/openvas-libraries-2.0.2.tar.gz
wget http://wald.intevation.org/frs/download.php/561/openvas-libnasl-2.0.1.tar.gz
wget http://wald.intevation.org/frs/download.php/562/openvas-server-2.0.1.tar.gz
wget http://wald.intevation.org/frs/download.php/576/openvas-plugins-1.0.6.tar.gz
wget http://wald.intevation.org/frs/download.php/575/openvas-client-2.0.3.tar.gz

Now that we have downloaded the required files we must sompile and install the packages in the following order:

openvas-libraries
openvas-libnasl
openvas-server
openvas-plugins

Install OpenVAS Libraries

Start by untarring the openvas-libraries and compiling/installing it:

tar -xvf openvas-libraries-2.0.2.tar.gz
cd openvas-libraries-2.0.2/
sudo ./configure
sudo make
sudo make install

Install OpenVAS libnasl
Next untar the openvas-libnasl and compile/install it:

cd ..
tar -xvf openvas-libnasl-2.0.1.tar.gz
cd openvas-libnasl-2.0.1/
sudo ./configure
sudo make
sudo make install

Install OpenVAS Server
Next untar the openvas-server and compile/install it:

cd ..
tar -xvf openvas-server-2.0.1.tar.gz
cd openvas-server-2.0.1/
sudo ./configure
sudo make
sudo make install

The OpenVAS libraries, libnasl, and server packages should now be installed.  We now have to make sure that /usr/local/bin and /usr/local/sbin are in our PATH.  We can do that by typing in:

echo ${PATH}

In the output from the above command you should see /usr/local/bin and /usr/local/sbin somewhere.  If you don&#8217;t you will have to add those entries to the PATH environmental variable manually.
Install OpenVAS Plugins
Our next step is to compile/install the plugins:

cd ..
tar -xvf openvas-plugins-1.0.6.tar.gz
cd openvas-plugins-1.0.6/
sudo ./configure
sudo make
sudo make install

Note:  The plugins may take a while to make&#8230; be patient.
Now we have to setup the symbolic links:

sudo ldconfig

Generate a Certificate
We are now ready to generate a certificate for our OpenVAS Server, make sure to enter values relevant to your location.

sudo openvas-mkcert

Create a User
Now we need to add a user:

sudo openvas-adduser

Enter a username and choose your authentication method.  Hit ctrl-d when you are prompted for rules if you dont want any scanning restrictions.

sudo openvas-nvt-sync

And at last&#8230; the moment of truth!  Start up the OpenVAS server daemon:

sudo openvasd -D

Install the OpenVAS Client
Now that the server is setup you can setup the client to run the scans:

cd ..
tar -xvf openvas-client-2.0.3.tar.gz
cd openvas-client-2.0.3/
sudo ./configure
sudo make
sudo make install
sudo OpenVAS-Client

The client can be installed on any computer that has access to the server.  Once it is installed you just have to connect, setup a scan and you&#8217;re done!  Stay tuned for another blog post on configuring scans with the OpenVAS Client.
]]></description>
			<content:encoded><![CDATA[<p>OpenVAS is a great open source alternative to Nessus, which in the recent years has closed its source.  Nessus still remains free to home users but requires commercial users to purchase a Professional plugin feed to obtain the latest and greatest plugins.  If your IT department is running on a low budget, or you just prefer to stick to open source then OpenVAS is the way to go!  OpenVAS has readily available installation packages for several different flavours of linux (Gentoo, OpenSUSE, Slackware, etc.).  As of writing this, I am not aware of any installation packages created for Ubuntu.  However, I was able to compile OpenVAS from source quite easily on Ubuntu by performing the following steps.  For a more in depth look at installing and configuring OpenVAS check out the <a href="http://www.openvas.org/compendium/openvas-compendium.html">OpenVAS Compendium</a>.</p>
<h3>Prerequisites</h3>
<p>First we need to install all of the dependent packages:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> build-essential libgnutls-dev libpcap0.8-dev <span style="color: #c20cb9; font-weight: bold;">bison</span> libgtk2.0-dev
libglib2.0-dev libgpgme11-dev libssl-dev htmldoc</pre></div></div>

<p class="note">
Note: libgtk2.0-dev is only required for the OpenVAS client.  htmldoc is only required if you plan on exporting reports to PDF from the OpenVAS client.</p>
<h3>Getting the Files</h3>
<p>Once those packages have installed we need to download the files required for OpenVAS.  The links below may be outdated, make sure you obtain the latest version.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>tmp
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">572</span><span style="color: #000000; font-weight: bold;">/</span>openvas-libraries-2.0.2.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">561</span><span style="color: #000000; font-weight: bold;">/</span>openvas-libnasl-2.0.1.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">562</span><span style="color: #000000; font-weight: bold;">/</span>openvas-server-2.0.1.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">576</span><span style="color: #000000; font-weight: bold;">/</span>openvas-plugins-1.0.6.tar.gz
<span style="color: #c20cb9; font-weight: bold;">wget</span> http:<span style="color: #000000; font-weight: bold;">//</span>wald.intevation.org<span style="color: #000000; font-weight: bold;">/</span>frs<span style="color: #000000; font-weight: bold;">/</span>download.php<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">575</span><span style="color: #000000; font-weight: bold;">/</span>openvas-client-2.0.3.tar.gz</pre></div></div>

<p>Now that we have downloaded the required files we must sompile and install the packages in the following order:</p>
<ol>
<li>openvas-libraries</li>
<li>openvas-libnasl</li>
<li>openvas-server</li>
<li>openvas-plugins</li>
</ol>
<h3>Install OpenVAS Libraries</h3>
<p>
Start by untarring the openvas-libraries and compiling/installing it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-libraries-2.0.2.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-libraries-2.0.2<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<h3>Install OpenVAS libnasl</h3>
<p>Next untar the openvas-libnasl and compile/install it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-libnasl-2.0.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-libnasl-2.0.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<h3>Install OpenVAS Server</h3>
<p>Next untar the openvas-server and compile/install it:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-server-2.0.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-server-2.0.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p>The OpenVAS libraries, libnasl, and server packages should now be installed.  We now have to make sure that /usr/local/bin and /usr/local/sbin are in our PATH.  We can do that by typing in:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #800000;">${PATH}</span></pre></div></div>

<p>In the output from the above command you should see /usr/local/bin and /usr/local/sbin somewhere.  If you don&#8217;t you will have to add those entries to the <a href="https://help.ubuntu.com/community/EnvironmentVariables#Persistent%20environment%20variables">PATH environmental variable</a> manually.</p>
<h3>Install OpenVAS Plugins</h3>
<p>Our next step is to compile/install the plugins:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-plugins-1.0.6.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-plugins-1.0.6<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span></pre></div></div>

<p class="note">Note:  The plugins may take a while to make&#8230; be patient.</p>
<p>Now we have to setup the symbolic links:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> ldconfig</pre></div></div>

<h3>Generate a Certificate</h3>
<p>We are now ready to <a href="http://www.openvas.org/compendium/generating-a-server-certificate.html" target="blank">generate a certificate</a> for our OpenVAS Server, make sure to enter values relevant to your location.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-mkcert</pre></div></div>

<h3>Create a User</h3>
<p>Now we need to <a href="http://www.openvas.org/compendium/adding-new-users.html" target="blank">add a user</a>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-adduser</pre></div></div>

<p>Enter a username and choose your authentication method.  Hit ctrl-d when you are prompted for rules if you dont want any scanning restrictions.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvas-nvt-sync</pre></div></div>

<p>And at last&#8230; the moment of truth!  Start up the OpenVAS server daemon:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> openvasd <span style="color: #660033;">-D</span></pre></div></div>

<h3>Install the OpenVAS Client</h3>
<p>Now that the server is setup you can setup the client to run the scans:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">cd</span> ..
<span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-xvf</span> openvas-client-2.0.3.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> openvas-client-2.0.3<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>configure
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #c20cb9; font-weight: bold;">install</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> OpenVAS-Client</pre></div></div>

<p>The client can be installed on any computer that has access to the server.  Once it is installed you just have to connect, setup a scan and you&#8217;re done!  Stay tuned for another blog post on configuring scans with the OpenVAS Client.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.laneolson.ca/2009/05/26/how-to-install-openvas-vulnerability-scanner-on-ubuntu-904/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		</item>
	</channel>
</rss>

