<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.adamsweet.org/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://wiki.adamsweet.org/feed.php">
        <title>Adam Sweet's Wiki</title>
        <description></description>
        <link>http://wiki.adamsweet.org/</link>
        <image rdf:resource="http://wiki.adamsweet.org/lib/images/favicon.ico" />
       <dc:date>2012-02-14T18:13:16+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=add_a_user_to_the_sudoers_in_fedora&amp;rev=1306598168&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=adding_a_route&amp;rev=1170626629&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=adding_kernel_modules_to_a_red_hat_installer_s_kernel&amp;rev=1214471058&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=automatic_reboots_after_kernel_panics&amp;rev=1195776901&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=basic_dns&amp;rev=1170169761&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=chrooted_dns&amp;rev=1170167498&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=cisco&amp;rev=1170066074&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=command_line&amp;rev=1231433914&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=command_line_http_proxy&amp;rev=1274953928&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=computers&amp;rev=1195568035&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=configuring_mailman_for_ubuntu&amp;rev=1169657008&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=create_your_own_anti-virus_signatures_with_clamav&amp;rev=1246833897&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=debian_rc.local_equivalent&amp;rev=1176333265&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=dns&amp;rev=1170167178&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=dnsbls&amp;rev=1228426647&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=exim&amp;rev=1176820361&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=exim_commands&amp;rev=1176820412&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=get_sendmail_to_log_the_subject_line&amp;rev=1172852916&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=greylisting&amp;rev=1244582448&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=http_stuff&amp;rev=1181645236&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=ip_forwarding&amp;rev=1188383923&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=ipmi_on_linux&amp;rev=1329148821&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=kernel_stuff&amp;rev=1214470733&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=linux&amp;rev=1231433279&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=mail&amp;rev=1246833321&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=managing_linux_software_raid&amp;rev=1221217757&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=midnight_commander_tricks&amp;rev=1170842441&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=networking&amp;rev=1274953884&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=php_redirects&amp;rev=1181645704&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=quick_date_based_archiving&amp;rev=1196206227&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=quick_grep_tricks&amp;rev=1244113476&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=rdp_over_ssh&amp;rev=1220815080&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=redirecting_shell_output_to_dev_null&amp;rev=1169678943&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=scripting&amp;rev=1196206168&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=server&amp;rev=1246635448&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=simple_snmp&amp;rev=1201036522&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=sort_a_list_of_ip_addresses&amp;rev=1228507854&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=split_an_mbox_file_on_the_from_line&amp;rev=1189525390&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=start&amp;rev=1165576754&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=stuff_takers&amp;rev=1195037523&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=supermicro_ipmi_v2.0_on_ubuntu&amp;rev=1168621723&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=system_control&amp;rev=1237177315&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=system_level_accounting_and_monitoring&amp;rev=1231433622&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=tftp_on_ubuntu&amp;rev=1173041599&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=using_exim_behind_a_nated_connection&amp;rev=1171539663&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=using_magic_sysreq_keys_in_an_emergency&amp;rev=1195776814&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=using_screen_for_shared_console_access&amp;rev=1231434005&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=using_ssl_with_exim_4_on_debian&amp;rev=1246892333&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=vlans_on_2950_switch&amp;rev=1170066711&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=vnc_over_ssh&amp;rev=1213739327&amp;do=diff"/>
                <rdf:li rdf:resource="http://wiki.adamsweet.org/doku.php?id=when_apache_runs_out_of_semaphores&amp;rev=1237177888&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://wiki.adamsweet.org/lib/images/favicon.ico">
        <title>Adam Sweet's Wiki</title>
        <link>http://wiki.adamsweet.org/</link>
        <url>http://wiki.adamsweet.org/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=add_a_user_to_the_sudoers_in_fedora&amp;rev=1306598168&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2011-05-28T15:56:08+00:00</dc:date>
        <title>add_a_user_to_the_sudoers_in_fedora</title>
        <link>http://wiki.adamsweet.org/doku.php?id=add_a_user_to_the_sudoers_in_fedora&amp;rev=1306598168&amp;do=diff</link>
        <description>Allow a User to use sudo


You can allow a user to use sudo either by adding them to a group which is allowed to sudo, or by specifying the individual user.

Use visudo to edit /etc/sudoers, it uses the system default editor, which is normally vi or vim if it's installed:</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=adding_a_route&amp;rev=1170626629&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-02-04T22:03:49+00:00</dc:date>
        <title>adding_a_route</title>
        <link>http://wiki.adamsweet.org/doku.php?id=adding_a_route&amp;rev=1170626629&amp;do=diff</link>
        <description>Adding a Network Route in Linux


As root:

Adding a Route
route add -net 192.168.15.0 netmask 255.255.255.0 gw 192.168.1.1

First value is destination network address, then the destinsation's netmask and then your gateway for the destination network.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=adding_kernel_modules_to_a_red_hat_installer_s_kernel&amp;rev=1214471058&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-26T09:04:18+00:00</dc:date>
        <title>adding_kernel_modules_to_a_red_hat_installer_s_kernel</title>
        <link>http://wiki.adamsweet.org/doku.php?id=adding_kernel_modules_to_a_red_hat_installer_s_kernel&amp;rev=1214471058&amp;do=diff</link>
        <description>How to Add Kernel Modules to a Red Hat Installer's Kernel


The following was copied verbatim from &lt;http://linux.duke.edu/~mstenner/docs/add-driver&gt;. I admit this freely, the reason for doing this is that I've had to do this a lot recently and academic pages have a habit of going away eventually.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=automatic_reboots_after_kernel_panics&amp;rev=1195776901&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-23T00:15:01+00:00</dc:date>
        <title>automatic_reboots_after_kernel_panics</title>
        <link>http://wiki.adamsweet.org/doku.php?id=automatic_reboots_after_kernel_panics&amp;rev=1195776901&amp;do=diff</link>
        <description>Automatic Reboots after Kernel Panics


From &lt;http://www.cyberciti.biz/tips/reboot-linux-box-after-a-kernel-panic.html&gt;

To reboot automatically after a kernel panic, add kernel.panic = N to /etc/sysctl.conf.

This specifies the kernel behaviour on a panic. By default, the kernel will not reboot after a panic, but this option will cause a kernel reboot after N seconds. For example following boot parameter will force to reboot Linux after 10 seconds:</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=basic_dns&amp;rev=1170169761&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-01-30T15:09:21+00:00</dc:date>
        <title>basic_dns</title>
        <link>http://wiki.adamsweet.org/doku.php?id=basic_dns&amp;rev=1170169761&amp;do=diff</link>
        <description>Basic DNS Setup


Install bind9 and configured the server to run in a chroot as per here.

On your primary names server, edit /var/lib/named/etc/bind/named.conf.local

server &lt;123.134.145.5&gt; { provide-ixfr yes; };      #your first backup name server's IP
server &lt;123.134.145.6&gt; { provide-ixfr yes; };      #your nth backup names server's IP

zone &quot;145.134.123.in-addr.arpa&quot; in { type master; file &quot;pz/123.134.145&quot;; };     #Your IP range for reverse lookups
zone &quot;domain.tld&quot; in { type master; file &quot;p…</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=chrooted_dns&amp;rev=1170167498&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-01-30T14:31:38+00:00</dc:date>
        <title>chrooted_dns</title>
        <link>http://wiki.adamsweet.org/doku.php?id=chrooted_dns&amp;rev=1170167498&amp;do=diff</link>
        <description>How to set up chrooted DNS on Ubuntu Dapper


Taken from &lt;http://www.howtoforge.com/perfect_setup_ubuntu_6.06_p4&gt;

Run

apt-get install bind9

For security reasons we want to run BIND chrooted so we have to do the following steps:

/etc/init.d/bind9 stop

Edit the file /etc/default/bind9 so that the daemon will run as the unprivileged user bind, chrooted to /var/lib/named.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=cisco&amp;rev=1170066074&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-01-29T10:21:14+00:00</dc:date>
        <title>cisco</title>
        <link>http://wiki.adamsweet.org/doku.php?id=cisco&amp;rev=1170066074&amp;do=diff</link>
        <description>Cisco Stuff


VLANs on 2950 switch</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=command_line&amp;rev=1231433914&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-08T16:58:34+00:00</dc:date>
        <title>command_line</title>
        <link>http://wiki.adamsweet.org/doku.php?id=command_line&amp;rev=1231433914&amp;do=diff</link>
        <description>Stuff About the Command Line

	*  Midnight Commander Tricks
	*  Split an Mbox file on the From Line
	*  Add a user to the sudoers in Fedora
	*  Using screen for shared console access</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=command_line_http_proxy&amp;rev=1274953928&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-05-27T09:52:08+00:00</dc:date>
        <title>command_line_http_proxy</title>
        <link>http://wiki.adamsweet.org/doku.php?id=command_line_http_proxy&amp;rev=1274953928&amp;do=diff</link>
        <description>Command Line HTTP Proxy
http_proxy=http://username:password@host:port/
export http_proxy</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=computers&amp;rev=1195568035&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-20T14:13:55+00:00</dc:date>
        <title>computers</title>
        <link>http://wiki.adamsweet.org/doku.php?id=computers&amp;rev=1195568035&amp;do=diff</link>
        <description>Stuff About Computers

	*  Linux
	*  Server
	*  Desktop
	*  Mail
	*  DNS
	*  Cisco
	*  HTTP Stuff</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=configuring_mailman_for_ubuntu&amp;rev=1169657008&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-01-24T16:43:28+00:00</dc:date>
        <title>configuring_mailman_for_ubuntu</title>
        <link>http://wiki.adamsweet.org/doku.php?id=configuring_mailman_for_ubuntu&amp;rev=1169657008&amp;do=diff</link>
        <description>Configuring [[http://www.gnu.org/software/mailman/|Mailman]] for Ubuntu


Taken from &lt;http://freemars.org/howto/mailman.html&gt;

Draft - Started 17 December 2005
Released to the unsuspecting world - 21 December 2005
Latest minor revision - 24 August 2006 at 01:30 PM</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=create_your_own_anti-virus_signatures_with_clamav&amp;rev=1246833897&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-07-05T22:44:57+00:00</dc:date>
        <title>create_your_own_anti-virus_signatures_with_clamav</title>
        <link>http://wiki.adamsweet.org/doku.php?id=create_your_own_anti-virus_signatures_with_clamav&amp;rev=1246833897&amp;do=diff</link>
        <description>Create Your Own Anti-Virus Signatures with ClamAV


I use ClamAV on my own mail servers, I've also used it at work alongside several commercial AV engines and every now and again there will be a viral attachment that none of the AV engines catch, especially when a new threat is released. As a Linux user, most virus and malware threats mean little to me, however if you are responsible for Windows users then you need to be on top of the game.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=debian_rc.local_equivalent&amp;rev=1176333265&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-04-11T23:14:25+00:00</dc:date>
        <title>debian_rc.local_equivalent</title>
        <link>http://wiki.adamsweet.org/doku.php?id=debian_rc.local_equivalent&amp;rev=1176333265&amp;do=diff</link>
        <description>Debian rc.local Equivalent


Taken from &lt;http://www.megalinux.net/archives/468.html&gt;

In many distributions you can add commands to run certain programs at the end of the boot process after all system services have been started into the /etc/rc.d/rc.local file, however there is no such file in a Debian system. Here is the way to accomplish the same thing the debian way:</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=dns&amp;rev=1170167178&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-01-30T14:26:18+00:00</dc:date>
        <title>dns</title>
        <link>http://wiki.adamsweet.org/doku.php?id=dns&amp;rev=1170167178&amp;do=diff</link>
        <description>DNS


Stuff about DNS servers...


	*  How to set up chrooted DNS on Ubuntu Dapper
	*  Basic DNS</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=dnsbls&amp;rev=1228426647&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-12-04T21:37:27+00:00</dc:date>
        <title>dnsbls</title>
        <link>http://wiki.adamsweet.org/doku.php?id=dnsbls&amp;rev=1228426647&amp;do=diff</link>
        <description>DNSBLs


DNSBLs are DNS Black Lists. They are lists of IP addresses known for spamming or which are part of known spammy networks. As most spam these days is generated by malware infested Windows PCs, some blacklists are simply lists of consumer grade broadband IP addresses, such as your home ADSL or cable connection and are registered by the ISPs which own them. Consequently, running a mail server on a consumer grade connection is not ideal as you may well get blocked. My IP address at home is …</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=exim&amp;rev=1176820361&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-04-17T14:32:41+00:00</dc:date>
        <title>exim</title>
        <link>http://wiki.adamsweet.org/doku.php?id=exim&amp;rev=1176820361&amp;do=diff</link>
        <description>Exim

	*  Exim Commands</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=exim_commands&amp;rev=1176820412&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-04-17T14:33:32+00:00</dc:date>
        <title>exim_commands</title>
        <link>http://wiki.adamsweet.org/doku.php?id=exim_commands&amp;rev=1176820412&amp;do=diff</link>
        <description>Exim Commands
exim -bpc =&gt; no of emails currently mail queue have
exim -M email-id =&gt; Force delivery of one message
exim -qf =&gt; Force another queue run
exim -qff =&gt; Force another queue run and attempt to flush the frozen message
exim -Mvl messageID =&gt; View the log for the message
exim -Mvb messageID =&gt; View the body of the message
exim -Mvh messageID =&gt; View the header of the message
exim -Mrm messageID =&gt; Remove message without sending any error message
exim -Mg messageID =&gt; Giveup and fail mes…</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=get_sendmail_to_log_the_subject_line&amp;rev=1172852916&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-03-02T16:28:36+00:00</dc:date>
        <title>get_sendmail_to_log_the_subject_line</title>
        <link>http://wiki.adamsweet.org/doku.php?id=get_sendmail_to_log_the_subject_line&amp;rev=1172852916&amp;do=diff</link>
        <description>Get Sendmail to Log the Subject Line of an E-mail


Edit /etc/mail/sendmail.mc

After the MAILER () definitions, add:

LOCAL_CONFIG
Klog syslog
HSubject: $&gt;+CheckSubject
LOCAL_RULESETS
SCheckSubject
R$*     $: $(log Subject: $1 $) $1

That's a tab after the R$* on the last line, not spaces.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=greylisting&amp;rev=1244582448&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-06-09T21:20:48+00:00</dc:date>
        <title>greylisting</title>
        <link>http://wiki.adamsweet.org/doku.php?id=greylisting&amp;rev=1244582448&amp;do=diff</link>
        <description>Greylisting with Exim


For greylisting with Exim or Vexim, try the following::

Install greylistd via apt for Debian and derivatives or ATrpms for Fedora/Red Hat and add your exim user to the greylist group, make sure /var/lib/greylistd/whitelist-hosts is group readable, configure greylistd (set your delay time in the main greylistd config file and add your own hosts to /var/lib/greylistd/whitelist-hosts) and insert the following into vexim-acl-check-rcpt.conf on Vexim, or for plain Exim, in th…</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=http_stuff&amp;rev=1181645236&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-12T10:47:16+00:00</dc:date>
        <title>http_stuff</title>
        <link>http://wiki.adamsweet.org/doku.php?id=http_stuff&amp;rev=1181645236&amp;do=diff</link>
        <description>HTTP Stuff

	*  PHP Redirects</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=ip_forwarding&amp;rev=1188383923&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-08-29T10:38:43+00:00</dc:date>
        <title>ip_forwarding</title>
        <link>http://wiki.adamsweet.org/doku.php?id=ip_forwarding&amp;rev=1188383923&amp;do=diff</link>
        <description>IP Forwarding


To enable a machine to act as a gateway for a network:

echo &quot;1&quot; &gt; /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.1.0/24 -j MASQUERADE

Where 192.168.1.0/24 is the network which will use this machine as a gateway.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=ipmi_on_linux&amp;rev=1329148821&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2012-02-13T16:00:21+00:00</dc:date>
        <title>ipmi_on_linux</title>
        <link>http://wiki.adamsweet.org/doku.php?id=ipmi_on_linux&amp;rev=1329148821&amp;do=diff</link>
        <description>Running IPMI on Linux

What is IPMI?

IPMI is standard which allows remote server management, primarily developed by Intel. IPMI cards, known as Baseboard Management Cards (BMCs) are primitive computers in their own right and are operational all the time, so long as the server has a power source. The server itself does not need to be powered on, or the operating system operational for the BMC to work, it just needs a power source to be connected to the server.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=kernel_stuff&amp;rev=1214470733&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-26T08:58:53+00:00</dc:date>
        <title>kernel_stuff</title>
        <link>http://wiki.adamsweet.org/doku.php?id=kernel_stuff&amp;rev=1214470733&amp;do=diff</link>
        <description>Kernel Stuff


Adding kernel modules to a Red Hat installer's kernel</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=linux&amp;rev=1231433279&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-08T16:47:59+00:00</dc:date>
        <title>linux</title>
        <link>http://wiki.adamsweet.org/doku.php?id=linux&amp;rev=1231433279&amp;do=diff</link>
        <description>Stuff About Linux

	*  Scripting
	*  Networking
	*  Command Line
	*  System Control
	*  System Level Accounting and Monitoring
	*  Kernel Stuff
	*  Managing Linux Software RAID</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=mail&amp;rev=1246833321&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-07-05T22:35:21+00:00</dc:date>
        <title>mail</title>
        <link>http://wiki.adamsweet.org/doku.php?id=mail&amp;rev=1246833321&amp;do=diff</link>
        <description>Stuff About Mail Servers

	*  Exim
	*  Virus Filtering
	*  Greylisting
	*  DNSBLs (DNS Black Lists)
	*  Configuring Mailman for Ubuntu
	*  Using Exim Behind a NATed Connection
	*  Get Sendmail to log the subject line
	*  Create Your Own Anti-Virus Signatures With ClamAV</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=managing_linux_software_raid&amp;rev=1221217757&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-09-12T11:09:17+00:00</dc:date>
        <title>managing_linux_software_raid</title>
        <link>http://wiki.adamsweet.org/doku.php?id=managing_linux_software_raid&amp;rev=1221217757&amp;do=diff</link>
        <description>Managing Linux Software RAID


Below are some notes on using Linux Software RAID. It's not complete yet of course :)

Marking a damaged disk as failed:

mdadm --manage --set-faulty /dev/md1 /dev/sdd1

Removing the damaged disk from the array:

mdadm /dev/md1 -r /dev/sdd1

Shutdown your system, bring it up into single user mode and partition and format your new disk. Set the partition type as Linux Software RAID autodetect. Of course you need to partition your new disk the same as the previous on…</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=midnight_commander_tricks&amp;rev=1170842441&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-02-07T10:00:41+00:00</dc:date>
        <title>midnight_commander_tricks</title>
        <link>http://wiki.adamsweet.org/doku.php?id=midnight_commander_tricks&amp;rev=1170842441&amp;do=diff</link>
        <description>Midnight Commander Tricks


Using FTP in mc:

cd /#ftp:user@machine.edu</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=networking&amp;rev=1274953884&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2010-05-27T09:51:24+00:00</dc:date>
        <title>networking</title>
        <link>http://wiki.adamsweet.org/doku.php?id=networking&amp;rev=1274953884&amp;do=diff</link>
        <description>Stuff About Networking on Linux

	*  Adding a Route
	*  IP Forwarding
	*  VNC over SSH
	*  RDP over SSH
	*  Linux Wake on LAN client
	*  Command Line HTTP Proxy</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=php_redirects&amp;rev=1181645704&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-06-12T10:55:04+00:00</dc:date>
        <title>php_redirects</title>
        <link>http://wiki.adamsweet.org/doku.php?id=php_redirects&amp;rev=1181645704&amp;do=diff</link>
        <description>PHP Redirects


To create a redirect in PHP from one location to another create an index.php containing the following:

&lt;?
header(&quot;location: &lt;newlocation&gt;&quot;);
?&gt;

Such as:

&lt;?
header(&quot;location: http://www.myotherdomain.com/&quot;);
?&gt;

or

&lt;?
header(&quot;location: thedirbelow/&quot;);
?&gt;</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=quick_date_based_archiving&amp;rev=1196206227&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-27T23:30:27+00:00</dc:date>
        <title>quick_date_based_archiving</title>
        <link>http://wiki.adamsweet.org/doku.php?id=quick_date_based_archiving&amp;rev=1196206227&amp;do=diff</link>
        <description>Quick Date Based Archiving
su -c 'tar czf /tmp/etc-`date +%F`.tar.gz /etc'
mv /tmp/etc-*.tar.gz ~</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=quick_grep_tricks&amp;rev=1244113476&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-06-04T11:04:36+00:00</dc:date>
        <title>quick_grep_tricks</title>
        <link>http://wiki.adamsweet.org/doku.php?id=quick_grep_tricks&amp;rev=1244113476&amp;do=diff</link>
        <description>Quick Grep Tricks


Grep for x or y, eg:

ls -lR | grep &quot;x\|y&quot;

Removing blank lines from output:

grep -v &quot;^$&quot; filename</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=rdp_over_ssh&amp;rev=1220815080&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-09-07T19:18:00+00:00</dc:date>
        <title>rdp_over_ssh</title>
        <link>http://wiki.adamsweet.org/doku.php?id=rdp_over_ssh&amp;rev=1220815080&amp;do=diff</link>
        <description>RDP Over SSH


This shows how to use Windows Remote Desktop v5 over SSH over the Internet. It helps if you're running Linux, SSHing to another Linux machine and then forwarding an RDP connection to a Windows box.

Set up your initial tunnel from your own Linux box to another remote one on the Windows network:</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=redirecting_shell_output_to_dev_null&amp;rev=1169678943&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-01-24T22:49:03+00:00</dc:date>
        <title>redirecting_shell_output_to_dev_null</title>
        <link>http://wiki.adamsweet.org/doku.php?id=redirecting_shell_output_to_dev_null&amp;rev=1169678943&amp;do=diff</link>
        <description>Redirecting Shell Output to /dev/null
./example.pl &gt; /dev/null 2&gt;&amp;1

Sends stdout to /dev/null and then sends stderr to where ever stdout goes to.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=scripting&amp;rev=1196206168&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-27T23:29:28+00:00</dc:date>
        <title>scripting</title>
        <link>http://wiki.adamsweet.org/doku.php?id=scripting&amp;rev=1196206168&amp;do=diff</link>
        <description>Stuff About Scripting

	*  Redirecting shell output to /dev/null
	*  Quick Grep Tricks
	*  Debian rc.local Equivalent
	*  Quick date based archiving
	*  Sort a list of IP addresses</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=server&amp;rev=1246635448&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-07-03T15:37:28+00:00</dc:date>
        <title>server</title>
        <link>http://wiki.adamsweet.org/doku.php?id=server&amp;rev=1246635448&amp;do=diff</link>
        <description>Stuff About Servers

	*  IPMI on Linux
	*  TFTP on Ubuntu
	*  Apache SSL on Ubuntu
	*  Simple SNMP
	*  Using SSL with Exim 4 on Debian</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=simple_snmp&amp;rev=1201036522&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-01-22T21:15:22+00:00</dc:date>
        <title>simple_snmp</title>
        <link>http://wiki.adamsweet.org/doku.php?id=simple_snmp&amp;rev=1201036522&amp;do=diff</link>
        <description>Simple SNMP on Windows and Linux


This page describes a simple SNMP setup for Linux and Windows with graphs for output. It doesn't describe SNMP traps, but maybe will in a future update.

Basics


Simple Network Management Protocol is a protocol used to querying hosts for information about their status, such as CPU usage, bandwidth usage, memory usage and so on. SNMP uses UDP port 161. There are 3 SNMP versions: 1, 2c and 3. Put simply, 2c offers more information than 1, but both pass the commu…</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=sort_a_list_of_ip_addresses&amp;rev=1228507854&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-12-05T20:10:54+00:00</dc:date>
        <title>sort_a_list_of_ip_addresses</title>
        <link>http://wiki.adamsweet.org/doku.php?id=sort_a_list_of_ip_addresses&amp;rev=1228507854&amp;do=diff</link>
        <description>Sort a List of IP Addresses
sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4 &lt;filename&gt;

or 

&lt;command output&gt; | sort -n -t . -k 1,1 -k 2,2 -k 3,3 -k 4,4</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=split_an_mbox_file_on_the_from_line&amp;rev=1189525390&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-09-11T15:43:10+00:00</dc:date>
        <title>split_an_mbox_file_on_the_from_line</title>
        <link>http://wiki.adamsweet.org/doku.php?id=split_an_mbox_file_on_the_from_line&amp;rev=1189525390&amp;do=diff</link>
        <description>Split an Mbox file on the From Line


I've had to do this when you are using an mbox mail spool and you get an enormous mail (in my case usually some automated data import) which is too large to transfer in a reasonable period causing you to not be able to download any mail because there is a huge one in the way.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=start&amp;rev=1165576754&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2006-12-08T11:19:14+00:00</dc:date>
        <title>start</title>
        <link>http://wiki.adamsweet.org/doku.php?id=start&amp;rev=1165576754&amp;do=diff</link>
        <description>Adam Sweet's Wiki


Ok, here is my Wiki, a place to brain dump. Hopefully you will find it useful, though I make no promises that you will, or that the content will be correct.

It will primarily be a dumping ground for snippets of config and useful information that I expect to call upon again, or which other people might find useful.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=stuff_takers&amp;rev=1195037523&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-14T10:52:03+00:00</dc:date>
        <title>stuff_takers</title>
        <link>http://wiki.adamsweet.org/doku.php?id=stuff_takers&amp;rev=1195037523&amp;do=diff</link>
        <description>Stuff Takers

Still available

	*  1 x 3Com ISDN modem
	*  An old fax machine
	*  6 or 7 floppy drives
	*  3 CD-ROM drives
	*  1 CD-RW drive
	*  133MHz desktop PC
	*  1 pile of UPSes and batteries, none guaranteed working, all with known issues

Failed to Collect

	*  A pile of PS/2 keyboards
	*  2 wireless mice with PS/2 base stations
	*  2 x Avis H.323 VoIP gateways
	*  1 x unknown voice gateway
	*  1 x Adderlink XR Gold KVM switch
	*  1 x desktop sized photo copier</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=supermicro_ipmi_v2.0_on_ubuntu&amp;rev=1168621723&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-01-12T17:08:43+00:00</dc:date>
        <title>supermicro_ipmi_v2.0_on_ubuntu</title>
        <link>http://wiki.adamsweet.org/doku.php?id=supermicro_ipmi_v2.0_on_ubuntu&amp;rev=1168621723&amp;do=diff</link>
        <description>Running IPMI on Linux

What is IPMI?

IPMI is standard which allows remote server management, primarliy developed by Intel. IPMI cards, known as Baseboard Management Cards (BMCs) are primitive computers in their own right and are operational all the time, so long as the server has a power source. The server itself does not need to be powered on, or the operating system operational for the BMC to work.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=system_control&amp;rev=1237177315&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-16T04:21:55+00:00</dc:date>
        <title>system_control</title>
        <link>http://wiki.adamsweet.org/doku.php?id=system_control&amp;rev=1237177315&amp;do=diff</link>
        <description>Stuff About Controlling the System

	*  Automatic Reboots after Kernel Panics
	*  Using Magic SysReq Keys in an Emergency
	*  Assigning a process to a CPU or core (aka processor affinity)
	*  When Apache Runs Out of Semaphores</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=system_level_accounting_and_monitoring&amp;rev=1231433622&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-08T16:53:42+00:00</dc:date>
        <title>system_level_accounting_and_monitoring</title>
        <link>http://wiki.adamsweet.org/doku.php?id=system_level_accounting_and_monitoring&amp;rev=1231433622&amp;do=diff</link>
        <description>System Level Monitoring and Accounting

	*  iostat man page
	*  Process Accounting
	*  Auditing file changes</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=tftp_on_ubuntu&amp;rev=1173041599&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-03-04T20:53:19+00:00</dc:date>
        <title>tftp_on_ubuntu</title>
        <link>http://wiki.adamsweet.org/doku.php?id=tftp_on_ubuntu&amp;rev=1173041599&amp;do=diff</link>
        <description>Setting up TFTP on Ubuntu


Taken from &lt;http://www.davidsudjiman.info/?p=93&gt;.

1. Install tftpd and related packages.

$ sudo apt-get install xinetd tftpd tftp

2. Create /etc/xinetd.d/tftp and put this entry:

service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = -s /tftpboot
disable         = no
}

3. Make /tftpboot directory</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=using_exim_behind_a_nated_connection&amp;rev=1171539663&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-02-15T11:41:03+00:00</dc:date>
        <title>using_exim_behind_a_nated_connection</title>
        <link>http://wiki.adamsweet.org/doku.php?id=using_exim_behind_a_nated_connection&amp;rev=1171539663&amp;do=diff</link>
        <description>Using Exim behind a NATed Connection


When using Exim behind a NATed connection, such as a consumer grade ADSL or Cable line, where the Exim machine's IP address is a local address which isn't routable and the router or firewall uses port forwarding to send the SMTP and POP3/IMAP ports to the correct machine, you may well get mailing loops where Exim tries to forward a mail to the MX record specified in DNS, which is in fact itself, causing mail loops.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=using_magic_sysreq_keys_in_an_emergency&amp;rev=1195776814&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-11-23T00:13:34+00:00</dc:date>
        <title>using_magic_sysreq_keys_in_an_emergency</title>
        <link>http://wiki.adamsweet.org/doku.php?id=using_magic_sysreq_keys_in_an_emergency&amp;rev=1195776814&amp;do=diff</link>
        <description>Using Magic SysReq Keys in an Emergency


From &lt;http://www.cyberciti.biz/tips/reboot-or-halt-linux-system-in-emergency.html&gt;

The Linux kernel includes magic system request keys. It was originally developed for kernel hackers, however you can use them to reboot or shutdown the machine safely (remember safe reboot/shutdown == flush filesystem buffers and unmount file system and then reboot so that data loss can be avoided).</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=using_screen_for_shared_console_access&amp;rev=1231434005&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-01-08T17:00:05+00:00</dc:date>
        <title>using_screen_for_shared_console_access</title>
        <link>http://wiki.adamsweet.org/doku.php?id=using_screen_for_shared_console_access&amp;rev=1231434005&amp;do=diff</link>
        <description>Using screen for Shared Console Access


Based on &lt;http://www.linux.com/article.pl?sid=06/08/14/1945249&gt;

To share access with another person, the screen tool can be used.

Log in to the machine where you want to share a console

user1$ screen -S SessionName

SessionName can be any easy string.</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=using_ssl_with_exim_4_on_debian&amp;rev=1246892333&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-07-06T14:58:53+00:00</dc:date>
        <title>using_ssl_with_exim_4_on_debian</title>
        <link>http://wiki.adamsweet.org/doku.php?id=using_ssl_with_exim_4_on_debian&amp;rev=1246892333&amp;do=diff</link>
        <description>Using SSL with Exim 4 and Courier IMAP/POP3 on Debian


Here I will be setting up SSL keys with Exim 4 and Courier IMAP and POP3 under Debian to secure the sending and retrieval of emails and username and password details to my server.

I will be using SSL certificates from CA Cert as they are free. CA Cert are not a commercial 'paid-for' certificate provider and so their keys will not automatically be installed in your web browser or mail client. You will need to install their root keys on ever…</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=vlans_on_2950_switch&amp;rev=1170066711&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2007-01-29T10:31:51+00:00</dc:date>
        <title>vlans_on_2950_switch</title>
        <link>http://wiki.adamsweet.org/doku.php?id=vlans_on_2950_switch&amp;rev=1170066711&amp;do=diff</link>
        <description>VLANs on 2950 Switch
version 12.1
no service pad
service timestamps debug uptime
service timestamps log uptime
no service password-encryption

hostname myname

enable secret mypass

ip subnet-zero
ip domain-name mydomain.co.uk
ip name-server xyz.xyz.xyz.xyz
ip name-server xyz.xyz.xyz.xyz

spanning-tree extend system-id


interface FastEthernet0/1
 description WAN
 switchport mode trunk
 no ip address
 duplex full
 speed 100
 spanning-tree portfast

interface FastEthernet0/2
 description vlan2
 s…</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=vnc_over_ssh&amp;rev=1213739327&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2008-06-17T21:48:47+00:00</dc:date>
        <title>vnc_over_ssh</title>
        <link>http://wiki.adamsweet.org/doku.php?id=vnc_over_ssh&amp;rev=1213739327&amp;do=diff</link>
        <description>Using VNC Over SSH

Setting it up for the first time

	*  Install vncserver on the destination machine.
	*  Run vncserver once and note the session number given (:1 if nobody else is using VNC on the machine). It will ask you to create a vnc password so do so. Example (minus the password part):</description>
    </item>
    <item rdf:about="http://wiki.adamsweet.org/doku.php?id=when_apache_runs_out_of_semaphores&amp;rev=1237177888&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2009-03-16T04:31:28+00:00</dc:date>
        <title>when_apache_runs_out_of_semaphores</title>
        <link>http://wiki.adamsweet.org/doku.php?id=when_apache_runs_out_of_semaphores&amp;rev=1237177888&amp;do=diff</link>
        <description>What to Do When Apache Runs Out of Semaphores


Taken from &lt;http://bergie.iki.fi/blog/if-your-apache-ever-runs-out-of-semaphores---/&gt;

If you get this error message when trying to start Apache, then you're out of semaphores:

#apachectl start
Ouch! ap_mm_create(1048576, &quot;/var/run/httpd.mm.22903&quot;) failed
Error: MM: mm:core: failed to acquire semaphore (No space left on device): OS: Invalid argument
/usr/sbin/apachectl start: httpd could not be started

The easy fix is to just remove all semaphore…</description>
    </item>
</rdf:RDF>

