<?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>System Network Programming Solution - Linux - windows - centos- security- cpanel - plesk -directadmin helm&#187; Linux</title>
	<atom:link href="http://thegioinguonmo.com/os/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://thegioinguonmo.com</link>
	<description>SHARING EVERYTHING</description>
	<lastBuildDate>Sat, 19 May 2012 21:40:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>FreeBSD How to restart inetd service / daemon</title>
		<link>http://thegioinguonmo.com/os/linux/freebsd-how-to-restart-inetd-service-daemon.html</link>
		<comments>http://thegioinguonmo.com/os/linux/freebsd-how-to-restart-inetd-service-daemon.html#comments</comments>
		<pubDate>Fri, 18 May 2012 21:42:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[HUP]]></category>
		<category><![CDATA[killall]]></category>
		<category><![CDATA[root user]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[use]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1600</guid>
		<description><![CDATA[inetd is referred to as the Internet Super-Server because it manages connections for several services. When a connection is received by inetd, it determines which program the connection is destined for, spawns the particular process and delegates the socket to it. First login as a root user. FreeBSD version 5.0/6.0 or later Newer version of [...]]]></description>
			<content:encoded><![CDATA[<p>inetd is referred to as the Internet Super-Server because it manages connections for several services. When a connection is received by inetd, it determines which program the connection is destined for, spawns the particular process and delegates the socket to it. First login as a root user.</p>
<h3>FreeBSD version 5.0/6.0 or later</h3>
<p>Newer version of FreeBSD has special start, stop, restart script, you can use this script restart inetd:</p>
<pre>#/etc/rc.d/inetd restart</pre>
<p>Old method (works on all variant of UNIX/Linux/BSD oses)<br />
Once you made changes to inetd (internet super-server)configuration file (/etc/inetd.conf) you can use kill or killall command as follows to restart inetd:</p>
<pre># killall -HUP inetd</pre>
<p>OR</p>
<pre># kill -HUP inetd</pre>
<p>OR</p>
<pre># kill -HUP `cat /var/run/inetd.pid`</pre>
<p>This causes the inetd program to restart and examine its configuration files. This is especially useful if you have changed the configuration settings.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/freebsd-how-to-restart-inetd-service-daemon.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script to find how many mails sent from an account</title>
		<link>http://thegioinguonmo.com/os/linux/script-to-find-how-many-mails-sent-from-an-account.html</link>
		<comments>http://thegioinguonmo.com/os/linux/script-to-find-how-many-mails-sent-from-an-account.html#comments</comments>
		<pubDate>Thu, 17 May 2012 09:40:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell script]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[print]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=145</guid>
		<description><![CDATA[grep xxx@xxx.com /var/log/exim_mainlog &#124; grep “&#60;=” &#124; awk {’print $3′} &#124; wc -l]]></description>
			<content:encoded><![CDATA[<p>grep <a rel="nofollow" target="_blank" href="mailto:nursing@reseller9.serverc1.com" target="_blank">xxx@xxx.com</a> /var/log/exim_mainlog | grep “&lt;=” | awk {’print $3′} | wc -l</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/script-to-find-how-many-mails-sent-from-an-account.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to read core.xxx files in linux</title>
		<link>http://thegioinguonmo.com/os/linux/how-to-read-core-xxx-files-in-linux.html</link>
		<comments>http://thegioinguonmo.com/os/linux/how-to-read-core-xxx-files-in-linux.html#comments</comments>
		<pubDate>Wed, 16 May 2012 21:40:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[host]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux servers]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[process]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[state]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1022</guid>
		<description><![CDATA[How to view core.xx files in Linux? The core.xxx files are created on Linux servers and holds the current state of a process working memory when a process is crashed. To view the core.xx files in Linux, execute the command: root@host [~]# strings core.xxx It will list different state of a process on each line.]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><strong>How to view core.xx files in Linux? </strong></span></p>
<p>The <strong>core.xxx files</strong> are created on Linux servers and <strong>holds the current state of a process working memory when a process is crashed.</strong> To view the core.xx files in Linux, execute the command:</p>
<blockquote>
<pre class="brush:plain">root@host [~]# strings core.xxx</pre>
</blockquote>
<p>It will list different state of a process on each line.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/how-to-read-core-xxx-files-in-linux.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>error: PIX_FMT_RGBA32 undeclared</title>
		<link>http://thegioinguonmo.com/os/linux/error-pix_fmt_rgba32-undeclared.html</link>
		<comments>http://thegioinguonmo.com/os/linux/error-pix_fmt_rgba32-undeclared.html#comments</comments>
		<pubDate>Wed, 16 May 2012 09:43:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[frame c]]></category>
		<category><![CDATA[Message]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[RGB]]></category>
		<category><![CDATA[undefined symbol]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=992</guid>
		<description><![CDATA[The error message “Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so” is received when you add the ffmpeg.so extension to the PHP configuration file i.e. php.ini file and tries to run PHP. You can easily reproduce the error message by executing “php -v”: PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so’ – /usr/lib64/php/modules/ffmpeg.so: undefined symbol: [...]]]></description>
			<content:encoded><![CDATA[<p>The error message <strong>“Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so”</strong> is received when you add the ffmpeg.so extension to the PHP configuration file i.e. php.ini file and tries to run PHP. You can easily reproduce the error message by executing “php -v”:</p>
<blockquote>
<pre class="brush:plain">PHP Warning:  PHP Startup: Unable to load dynamic library ‘/usr/lib64/php/modules/ffmpeg.so’ – /usr/lib64/php/modules/ffmpeg.so:
undefined symbol: _php_create_ffmpeg_frame in Unknown on line 0</pre>
</blockquote>
<p>You may also notice the “PIX_FMT_RGBA32″ error message while compiling ffmpeg-php</p>
<blockquote><p><strong>ffmpeg-php-0.5.0/ffmpeg_frame.c:495: error: ‘PIX_FMT_RGBA32′ undeclared (first use in this function)</strong></p></blockquote>
<p><strong>The above error messages is the result of incorrect function declared in the ffmpeg_frame.c file</strong> under the ffmpeg-php-0.x.0 directory.</p>
<p><strong>Solution:</strong></p>
<p>Goto the the ffmpeg-php-0.x.0 directory and edit the ffmpeg_frame.c file</p>
<blockquote><p><strong>vi ffmpeg-php-0.x.0/ffmpeg_frame.c</strong></p></blockquote>
<p>Now replace every instance of ‘PIX_FMT_RGBA32′ with ‘PIX_FMT_RGB32′ in the file by executing</p>
<blockquote><p><strong>:%s/PIX_FMT_RGBA32/PIX_FMT_RGB32</strong></p></blockquote>
<p><strong>OR</strong></p>
<blockquote><p><strong>replace “PIX_FMT_RGBA32″ “PIX_FMT_RGB32″ — ffmpeg_frame.c</strong><strong><br />
</strong></p></blockquote>
<p>Save the file and compile ‘ffmpeg-php’ again using the following steps</p>
<blockquote>
<pre class="brush:plain">cd ffmpeg-php-0.x.0
make clean
./configure
make
make install</pre>
</blockquote>
<p>Once done, ffmpeg should work along with PHP now.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/error-pix_fmt_rgba32-undeclared.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ghosting The Machine</title>
		<link>http://thegioinguonmo.com/os/linux/ghosting-the-machine.html</link>
		<comments>http://thegioinguonmo.com/os/linux/ghosting-the-machine.html#comments</comments>
		<pubDate>Tue, 15 May 2012 21:40:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[PC]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1286</guid>
		<description><![CDATA[This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). Credit goes to ‘topdog’ for this. You might have a small office where you customise one desktop just how you like it and need to roll this out to N [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short but potentially extremely handy guide to ghosting one Linux box to another (or simply making a full backup of a desktop/server). Credit goes to ‘topdog’ for this.</p>
<p>You might have a small office where you customise one desktop just how you like it and need to roll this out to N other PC’s or simply want a backup of a server or desktop to another machine or even to an image file.</p>
<p>The main tool here is netcat which is extremely powerful and has a multitude of other great uses that won’t be covered here.</p>
<p>Target Machine:</p>
<p>** Boot to linux rescue mode with networking (CentOS works fine)</p>
<p>Initiate netcat to listen on port 30 – # nc -l -p<br />
| dd of=/dev/sda (assuming the hard drive is sda and not hda):</p>
<p><code># nc -l -p 30 | dd of=/dev/sda</code></p>
<p>Source Machine:</p>
<p>Dump the contents of the disk to the target PC – #dd if=/dev/sda | nc</p>
<p><code># dd if=/dev/sda | nc 192.168.0.20 30</code></p>
<p>Then to check that traffic is flowing, on the source go to another terminal (ALT/F2) and dump the tcp data on the NIC (assuming it’s eth0):</p>
<p><code>tcpdump -tnli eth0 port 30</code></p>
<p>If you just want a backup image you could change the above output on the taget to:</p>
<p><code># nc -l -p 30 | dd of=mybackup.img</code></p>
<p>That’s it. Naturally the target PC/disk cannot be smaller than the source:) I hope this saves someone a lot of time.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/ghosting-the-machine.html" title="centos nc and dd">centos nc and dd</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/ghosting-the-machine.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Renaming files with –– at the start</title>
		<link>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html</link>
		<comments>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html#comments</comments>
		<pubDate>Tue, 15 May 2012 09:39:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[user]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1383</guid>
		<description><![CDATA[I’m making a post about this because I ran into this today and I couldn’t remember how to rename a file starting with — (two or double hyphens) in Linux (e.g. –index.html). The customer has obviously used a Windows FTP client to rename index.html to –index.html so it is out of their way, and now [...]]]></description>
			<content:encoded><![CDATA[<p>I’m making a post about this because I ran into this today and I couldn’t remember how to rename a file starting with — (two or double hyphens) in Linux (e.g. –index.html). The customer has obviously used a Windows FTP client to rename index.html to –index.html so it is out of their way, and now me, the server administrator or company sysadmin, has come along with my migration script to relocate it and it has fallen over, crashed, and burned!</p>
<p>When you try and rename it the following is given:</p>
<blockquote>
<pre class="brush:plain">$ mv ––index.html index.html.renamed
mv: unrecognized option `––index.html’
Try `mv ––help’ for more information.</pre>
</blockquote>
<p>I also tried delimiting it the normal way, but it wouldn’t work either:</p>
<blockquote>
<pre class="brush:plain">    mv \–\–index.html index.html.renamed</pre>
</blockquote>
<p>The correct way to rename it is:</p>
<blockquote>
<pre class="brush:plain">    mv ./––index.html index.html.renamed</pre>
</blockquote>
<p>Because –– has special meaning, you can’t delimit it with a simple backslash (\), you have to put a path reference in there to delimit it. So my path working directory (pwd) was /home/user/data/ where the file was located, so I could use ./ to reference the current pwd. The other option is to put the full path in:</p>
<blockquote>
<pre class="brush:plain">    mv /home/user/data/––index.html index.html.renamed</pre>
</blockquote>
<p>Hopefully this helps out some other Linux server administrator out there who’s mind it has slipped.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/renaming-files-with-%e2%80%93%e2%80%93-at-the-start.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Ketchup to manage your kernel sources</title>
		<link>http://thegioinguonmo.com/os/linux/using-ketchup-to-manage-your-kernel-sources.html</link>
		<comments>http://thegioinguonmo.com/os/linux/using-ketchup-to-manage-your-kernel-sources.html#comments</comments>
		<pubDate>Sun, 13 May 2012 21:40:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Using Ketchup]]></category>
		<category><![CDATA[version]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1312</guid>
		<description><![CDATA[Today I discovered Ketchup, a little command-line tool to manage your Linux kernel sources. If you’re one of the weirdos, who is still compiling his kernel manually for whatever reason (like I do), I can only recommend it. Ketchup nicely eases up the entire process of checking for updates and applying them to your system. [...]]]></description>
			<content:encoded><![CDATA[<p>Today I discovered Ketchup, a little command-line tool to manage your Linux kernel sources. If you’re one of the weirdos, who is still compiling his kernel manually for whatever reason (like I do), I can only recommend it. Ketchup nicely eases up the entire process of checking for updates and applying them to your system.</p>
<p>Let’s not hesitate and look at few usage examples… Want to know what’s the latest version of a particular kernel-tree?</p>
<p><code></code></p>
<pre class="brush:plain">$ ketchup -s 2.6

    2.6.17.7

$ ketchup -s 2.6-mm

    2.6.18-rc1-mm2</pre>
<p>Let’s play with your kernel sources a bit. First of all, you surely want to check what version you currently got lying around…</p>
<pre class="brush:plain">$ cd /usr/src/linux</pre>
<pre class="brush:plain">$ ketchup -m</pre>
<blockquote><p>2.6.17.6</p></blockquote>
<p>Let’s assume there is a newer kernel version available and you want to download it, bunzip it, revert the old patch and apply the new one. Nothing easier than that:</p>
<pre class="brush:plain"># cd /usr/src/linux</pre>
<pre class="brush:plain"># ketchup 2.6-tip</pre>
<blockquote><p>2.6.17.6 -&gt; 2.6.17.7</p></blockquote>
<p>Applying patch-2.6.17.6.bz2 -R</p>
<p>Applying patch-2.6.17.7.bz2</p>
<p>That’s really it. It will download the patches, revert and apply them, so all you will have to do is watch and wait</p>
<p>Switching to an entirely different kernel versions is just as easy:</p>
<p>&nbsp;</p>
<pre class="brush:plain"># cd /usr/src/linux

# ketchup 2.6.16.2</pre>
<p>&nbsp;</p>
<p>Final note: If Ketchup should abort with a gpg error, then it couldn’t verify the patch’s or kernel’s signature. Either add the 2.6 public key to your keyring (this is the proper solution) or call Ketchup with an additional -G parameter (this will override signature checking). I’d suggest the former, which is really easy to do by downloading it from a public pgp server:</p>
<pre class="brush:plain"># gpg --keyserver wwwkeys.pgp.net --recv-keys 0x517D0F0E</pre>
<p>Have fun compiling,</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/using-ketchup-to-manage-your-kernel-sources.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>500 error when you try to access the website</title>
		<link>http://thegioinguonmo.com/os/linux/500-error-when-you-try-to-access-the-website.html</link>
		<comments>http://thegioinguonmo.com/os/linux/500-error-when-you-try-to-access-the-website.html#comments</comments>
		<pubDate>Sun, 13 May 2012 09:40:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[website]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1387</guid>
		<description><![CDATA[If the .htaccess has an error you should get a 500 error when you try to access the website. Is that the case? You can check if mod_rewrite is compiled in with Apache doing: httpd -l &#124; grep mod_rewrite.c If it’s not then you should re-compile Apache. You could also enable mod_rewrite logging: RewriteLog “/var/log/httpd/rewrite.log” [...]]]></description>
			<content:encoded><![CDATA[<p>If the .htaccess has an error you should get a 500 error when you try to access the website. Is that the case?</p>
<p>You can check if mod_rewrite is compiled in with Apache doing:</p>
<pre class="brush:plain">httpd -l | grep mod_rewrite.c</pre>
<p>If it’s not then you should re-compile Apache.</p>
<p>You could also enable mod_rewrite logging:</p>
<blockquote>
<pre class="brush:plain">RewriteLog “/var/log/httpd/rewrite.log”
RewriteLogLevel 9 # Maximum debug level, should be disabled on production environment</pre>
</blockquote>
<p>Note that this must be added on the VirtualHost or at the httpd.conf and *NOT* in the .htaccess.</p>
<p>After this you can check the file /var/log/httpd/rewrite.log to see what happens when you try to access an URL that should be rewritten.</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/500-error-when-you-try-to-access-the-website.html" title="accessing a website with network programming">accessing a website with network programming</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/500-error-when-you-try-to-access-the-website.html" title="download httpd-2 2 17 for linux">download httpd-2 2 17 for linux</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/500-error-when-you-try-to-access-the-website.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Intrusion Detection With BASE And Snort &#8211; Part1</title>
		<link>http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part1.html</link>
		<comments>http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part1.html#comments</comments>
		<pubDate>Sat, 12 May 2012 09:40:25 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[snort]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=42</guid>
		<description><![CDATA[This tutorial shows how to install and configure BASE (Basic Analysis and Security Engine) and the Snort intrusion detection system (IDS) on a Debian Sarge system. BASE provides a web front-end to query and analyze the alerts coming from a Snort IDS system. With BASE you can perform analysis of intrusions that Snort has detected [...]]]></description>
			<content:encoded><![CDATA[<p>This tutorial shows how to install and configure BASE (Basic Analysis and Security Engine) and the Snort intrusion detection system (IDS) on a Debian Sarge system. BASE provides a web front-end to query and analyze the alerts coming from a Snort IDS system. With BASE you can perform analysis of intrusions that Snort has detected on your network.</p>
<p>Scenario: A linux server running Debian Sarge 3.1 setup according to <a rel="nofollow" target="_blank" href="http://www.howtoforge.com/perfect_setup_debian_sarge">Falko&#8217;s &#8211; The Perfect Setup &#8211; Debian Sarge (3.1)</a>.<br />
Let&#8217;s assume we have one working website (www.example.com) and that the document root is: /var/www/www.example.com/web<br />
The IP of the server is 192.168.0.5 and it&#8217;s using eth0 as network interface name.</p>
<h3>Needed programs and files</h3>
<ul>
<li>Snort</li>
<li>Snort rules</li>
<li>PCRE (Perl Compatible Regular Expressions)</li>
<li>LIBPCAP</li>
<li>BASE (Basic Analysis and Security Engine)</li>
<li>ADOdb (ADOdb Database Abstraction Library for PHP (and Python).)</li>
</ul>
<h3>Downloading and untaring</h3>
<p>We need a temporary place for all the files that we are going to download, and untar.<br />
To keep things simple we will create a directory in the /root named snorttemp. (It&#8217;s obvious that this download directory can be any name and in anyplace)</p>
<p>cd /root<br />
mkdir snorttemp<br />
cd snorttemp</p>
<p>Now you need to get Snort.<br />
The latest version at the time of writing this is 2.6.0</p>
<p>wget http://www.snort.org/dl/current/snort-2.6.0.tar.gz</p>
<p>When the download is finished untar the file:</p>
<p>tar -xvzf snort-2.6.0.tar.gz</p>
<p>And letâ€™s remove the tar file:</p>
<p>rm snort-2.6.0.tar.gz</p>
<p>We also need the Snort rules!<br />
Go to: <a rel="nofollow" target="_blank" href="http://www.snort.org/pub-bin/downloads.cgi" target="_blank">http://www.snort.org/pub-bin/downloads.cgi</a> and scroll down till you see the &#8220;Sourcefire VRT Certified Rules &#8211; The Official Snort Ruleset (unregistered user release)&#8221; rules<br />
(If you are a member of the forum you can also download the &#8211; registered user release):</p>
<p>wget http://www.snort.org/pub-bin/downloads.cgi/Download/vrt_pr/snortrules-pr-2.4.tar.gz</p>
<p>Move the snortrules-pr-2.4.tar.gz into the snort-2.6.0 map:</p>
<p>mv snortrules-pr-2.4.tar.gz /root/snorttemp/snort-2.6.0</p>
<p>and cd into snort-2.6.0:</p>
<p>cd snort-2.6.0</p>
<p>Untar the snortrules-pr-2.4.tar.gz file:</p>
<p>tar -xvzf snortrules-pr-2.4.tar.gz</p>
<p>Remove the tar file:</p>
<p>rm snortrules-pr-2.4.tar.gz</p>
<p>We are done downloading the files needed to get Snort to work.</p>
<p>To make snort work with BASE, we need more!</p>
<h4>PCRE &#8211; Perl Compatible Regular Expressions.</h4>
<p>Go to: <a rel="nofollow" target="_blank" href="http://www.pcre.org/" target="_blank">http://www.pcre.org/</a> and select a download link for the pcre-6.3tar.gz file to download PCRE (at time of writing this it is pcre-6.3.tar.gz)<br />
cd back to the snorttemp map:</p>
<p>cd /root/snorttemp</p>
<p>and download the pcre-6.3.tar.gz file:</p>
<p>wget http://surfnet.dl.sourceforge.net/sourceforge/pcre/pcre-6.3.tar.gz</p>
<p>Untar the file:</p>
<p>tar -xvzf pcre-6.3.tar.gz</p>
<p>Remove the tar:</p>
<p>rm pcre-6.3.tar.gz</p>
<h4>Incoming search terms:</h4><ul><li><a href="http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part1.html" title="snort base apache windows">snort base apache windows</a> (1)</li><li><a href="http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part1.html" title="snort programming">snort programming</a> (1)</li></ul>]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/intrusion-detection-with-base-and-snort-part1.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FreeBSD &gt;Sending a Message to All Users on a System</title>
		<link>http://thegioinguonmo.com/os/linux/freebsd-sending-a-message-to-all-users-on-a-system.html</link>
		<comments>http://thegioinguonmo.com/os/linux/freebsd-sending-a-message-to-all-users-on-a-system.html#comments</comments>
		<pubDate>Fri, 11 May 2012 09:39:45 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Message]]></category>
		<category><![CDATA[Press]]></category>
		<category><![CDATA[system]]></category>
		<category><![CDATA[user]]></category>
		<category><![CDATA[wheel group]]></category>

		<guid isPermaLink="false">http://thegioinguonmo.com/?p=1717</guid>
		<description><![CDATA[You can use the wall command to send a message to every user on a system. General syntax of wall command is as follows: wall Message Message &#8230; &#8230;. .. When the message is complete, press Control-D. 1) To display message &#8220;Disk failure system will be down for 30 minute&#8221; to all users use wall [...]]]></description>
			<content:encoded><![CDATA[<p>You can use the wall command to send a message to every user on a system. General syntax of wall command is as follows:<br />
wall<br />
Message<br />
Message<br />
&#8230;<br />
&#8230;.<br />
..<br />
When the message is complete, press Control-D.</p>
<p>1) To display message &#8220;Disk failure system will be down for 30 minute&#8221; to all users use wall as follows:<br />
<code># wall<br />
Disk failure system will be down for 30 minute<br />
--UNIX Admin<br />
--MyCorp.com<br />
</code></p>
<p>When the message is complete, press Control-D (CTRL+D) to send message to all user.</p>
<p>2) To display message &#8220;Web server under DOS attack, come to IDC # 3&#8243; to all WHEEL group member use wall command with –g option as follows:<br />
<code># wall –g wheel<br />
Web server under DOS attack, come to IDC # 3 to investigate matter further.<br />
-- IT HEAD</code></p>
<p>When the message is complete, press Control-D (CTRL+D) to send message to all user.</p>
]]></content:encoded>
			<wfw:commentRss>http://thegioinguonmo.com/os/linux/freebsd-sending-a-message-to-all-users-on-a-system.html/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: thegioinguonmo.com @ 2012-05-20 17:56:35 -->
