<?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>coastal companion bird sanctuary</title>
	<atom:link href="http://www.coastalcompanionbirdsanctuary.org/feed" rel="self" type="application/rss+xml" />
	<link>http://www.coastalcompanionbirdsanctuary.org</link>
	<description></description>
	<lastBuildDate>Mon, 20 Feb 2012 05:07:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>How To Set Up A DHCP Server For Your LAN</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/503.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/503.html#comments</comments>
		<pubDate>Mon, 20 Feb 2012 05:07:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/503.html</guid>
		<description><![CDATA[How To Set Up A DHCP Server For Your LAN Version 1.0 Author: Falko Timme &#60;ft [at] falkotimme [dot] com&#62; Last edited 09/20/2006 This tutorial describes how to set up a DHCP server (ISC-DHCP) for &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/503.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[<h2>How To Set Up A DHCP Server For Your LAN <br />
</h2>
<p>Version 1.0 <br />
  Author: Falko Timme &lt;ft [at] falkotimme [dot] com&gt; <br />
  Last edited 09/20/2006
</p>
<p>This tutorial describes how to set up a DHCP server (ISC-DHCP) for your local network. DHCP is short for &#8220;Dynamic Host Configuration Protocol&#8221;, it&#8217;s a protocol that handles </p>
<p> the assignment of IP addresses, subnet masks, default routers, and other IP parameters to client PCs that don&#8217;t have a static IP address. Such computers try to find a DHCP server in their local network which in turn assigns them an IP address, gateway, etc. so that they can connect to the internet or other computers from the local network.</p>
<p>In this short guide I will show how to set up a simple DHCP server (ISC-DHCP) on a Debian Sarge (3.1) system whose sole purpose is to assign IP adresses, a gateway, DNS servers, etc. to client computers from the local network that don&#8217;t have a static IP address. You can use such a DHCP server in your home network, your office, etc., for example if your router doesn&#8217;t come with a built-in DHCP server. If you set up such a DHCP server, please make sure you don&#8217;t already have another one in your LAN as this might result in conflicts. </p>
<p>Of course, one can imagine much more complicated DHCP setups, but these are outside the scope of this document. </p>
<p>I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!</p>
<p>&nbsp;</p>
<h3>1 Preliminary Note</h3>
<p>This is the current situation:</p>
<ul>
<li>I&#8217;m using the network <span class="system">192.168.0.0</span>, subnetmask <span class="system">255.255.255.0</span>, broadcast address <span class="system">192.168.0.255</span>. </li>
<li>My gateway to the internet is <span class="system">192.168.0.1</span>; on the gateway there&#8217;s no DHCP server..</li>
<li>My ISP told me the DNS servers I can use are <span class="system">145.253.2.75</span> and <span class="system">193.174.32.18</span>.</li>
<li>I have a pool of 30 IP addresses (<span class="system">192.168.0.200</span> &#8211; <span class="system">192.168.0.229</span>) that can be dynamically assigned to client PCs and <b>that are not already in use</b>.</li>
<li>I have an unused Debian Sarge server with the hostname <span class="system">server1.example.com</span> on the IP address <span class="system">192.168.0.100</span> which will act as my DHCP server. </li>
</ul>
<p>&nbsp;</p>
<h3>2 Installing The DHCP Server</h3>
<p>Now let&#8217;s install our DHCP server on our Debian Sarge system:</p>
<p class="command">apt-get install dhcp3-server</p>
<p>You will be asked a few questions:</p>
<p><span class="system">On what network interfaces should the DHCP server listen?</span> <span class="highlight">&lt;&#8211; eth0</span></p>
<p><span class="system">Please configure the DHCP server as soon as the installation finishes.</span> <span class="highlight">&lt;&#8211; Ok</span></p>
<p><span class="system">The version 3 DHCP server is now non-authoritative by default</span> <span class="highlight">&lt;&#8211; Ok</span>   </p>
<p>At the end of the installation you will see errors like these:</p>
<p class="system">Generating /etc/default/dhcp3-server&#8230;<br />
  Starting DHCP server: dhcpd3 failed to start &#8211; check syslog for diagnostics.<br />
invoke-rc.d: initscript dhcp3-server, action &#8220;start&#8221; failed. </p>
<p>That&#8217;s ok because we did not have the chance yet to configure our DHCP server.</p>
<p>&nbsp;</p>
<h3>3 Configuring The DHCP Server</h3>
<p>Now we must configure our DHCP server. We must tell it from which IP range it should assign IP addresses to requesting clients, which gateway it should assign, which DNS servers, etc.</p>
<p>The configuration file for our DHCP server is <span class="system">/etc/dhcp3/dhcpd.conf</span>. Currently it contains a sample configuration which we copy to <span class="system">/etc/dhcp3/dhcpd.conf_orig</span> for future reference:</p>
<p class="command">cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_orig<br />
cat /dev/null &gt; /etc/dhcp3/dhcpd.conf</p>
<p>With the last command we have emptied <span class="system">/etc/dhcp3/dhcpd.conf</span> so that we can place our own configuration in it which we do now:</p>
<p class="command">vi /etc/dhcp3/dhcpd.conf</p>
<p>The file should look like this:</p>
<pre>ddns-update-style none;

option domain-name-servers 145.253.2.75, 193.174.32.18;

default-lease-time 86400;
max-lease-time 604800;

authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {
        range 192.168.0.200 192.168.0.229;
        option subnet-mask 255.255.255.0;
        option broadcast-address 192.168.0.255;
        option routers 192.168.0.1;
}</pre>
<p>I explain the configuration options here:</p>
<ul>
<li><span class="system">ddns-update-style</span>: You can tell the DHCP server to update a DNS server if the IP address of a server in your LAN has changed (because it has been assigned a different IP by DHCP). As we do not run servers in our LAN or always give them static IP addresses (which is a good idea for servers&#8230;) we don&#8217;t want to update DNS records so we set this to <span class="system">none</span>.</li>
<li><span class="system">option domain-name-servers</span>: This tells the DHCP server which DNS servers it should assign to a client. You can specify more than one DNS server here, seperated by commas.</li>
<li><span class="system">default-lease-time</span>, <span class="system">max-lease-time</span>: A client can tell the DHCP server for how long it would like to get an IP address. If it doesn&#8217;t do this, the server assigns an IP address for <span class="system">default-lease-time</span> seconds; if it does, the server grants the requested time, but only up to <span class="system">max-lease-time</span> seconds. </li>
<li><span class="system">authoritative</span>: If this is not set this means that if a client requests an address that the server knows nothing about and the address is incorrect for that network segment, the server will _not_ send a DHCPNAK (which tells the client it should stop using the address.) We don&#8217;t want this so we set <span class="system">authoritative</span>. </li>
<li><span class="system">subnet</span>: The subnet to use.</li>
<li><span class="system">netmask</span>: The netmask to use.</li>
<li><span class="system">range</span>: Tells the DHCP server from which range it can assign IP addresses to clients. In our example it&#8217;s from <span class="system">192.168.0.200</span> to <span class="system">192.168.0.229</span> (30 IP addresses). </li>
<li><span class="system">option broadcast-address</span>: The broadcast address to use.</li>
<li><span class="system">option routers</span>: Tells the DHCP server the gateway address it should assign to requesting clients. In our case the gateway is <span class="system">192.168.0.1</span>. </li>
</ul>
<p>If you are not sure about your personal network settings (network, netmask, broadcast address, etc.), visit www.subnetmask.info where you can calculate your settings. </p>
<p>You see, this is a very simple and basic configuration, but it&#8217;s enough to make our DHCP server functionable. Now let&#8217;s start it:</p>
<p class="command">/etc/init.d/dhcp3-server restart</p>
<p>Afterwards you can check the output of</p>
<p class="command">ps aux</p>
<p>to see if DHCP is running. You should also see it in the output of </p>
<p class="command">netstat -uap</p>
<p>which should resemble this one:</p>
<pre>Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 *:bootps                *:*                                2185/dhcpd3
udp        0      0 *:868                   *:*                                1964/rpc.statd
udp        0      0 *:871                   *:*                                1964/rpc.statd
udp        0      0 *:sunrpc                *:*                                1553/portmap</pre>
<p>You can see that DHCP is running on the <span class="system">bootps</span> UDP port which translates to port 67 UDP (run</p>
<p class="command">grep bootps /etc/services</p>
<p>and you will see that <span class="system">bootps</span> means port 67). </p>
<p>Finally you can check <span class="system">/var/log/syslog</span> if any errors occurred during the DHCP server start. To see the last 100 lines of <span class="system">/var/log/syslog</span>, for example, run</p>
<p class="command">tail -n 100 /var/log/syslog</p>
<p>&nbsp; </p>
<h3>4 How Can I See That My DHCP Server Is Working OK?</h3>
<p>To see if your DHCP server is working as expected, boot another PC (Windows, Linux, MAC, &#8230;) in your LAN that doesn&#8217;t have a static IP address. Wait a few seconds, and in /var/log/syslog on the DHCP server you should see that the DHCP server assigns an IP address to your PC. For example, in this excerpt of <span class="system">/var/log/syslog</span>, a client PC named <span class="system">matze</span> has been assigned the IP address <span class="system">192.168.0.229</span>:</p>
<p class="system">Sep 19 16:01:26 server1 dhcpd: DHCPDISCOVER from 00:0c:76:8b:c4:16 via eth0<br />
  Sep 19 16:01:26 server1 dhcpd: DHCPOFFER on 192.168.0.229 to 00:0c:76:8b:c4:16 (matze) via eth0<br />
  Sep 19 16:01:27 server1 dhcpd: DHCPDISCOVER from 00:0c:76:8b:c4:16 (matze) via eth0<br />
  Sep 19 16:01:27 server1 dhcpd: DHCPOFFER on 192.168.0.229 to 00:0c:76:8b:c4:16 (matze) via eth0<br />
  Sep 19 16:01:31 server1 dhcpd: DHCPDISCOVER from 00:0c:76:8b:c4:16 (matze) via eth0<br />
  Sep 19 16:01:31 server1 dhcpd: DHCPOFFER on 192.168.0.229 to 00:0c:76:8b:c4:16 (matze) via eth0<br />
  Sep 19 16:01:31 server1 dhcpd: Wrote 1 leases to leases file.<br />
  Sep 19 16:01:31 server1 dhcpd: DHCPREQUEST for 192.168.0.229 (192.168.0.100) from 00:0c:76:8b:c4:16 (matze) via eth0<br />
Sep 19 16:01:31 server1 dhcpd: DHCPACK on 192.168.0.229 to 00:0c:76:8b:c4:16 (matze) via eth0</p>
<p>The DHCP server writes all current IP address &#8220;leases&#8221; to the file <span class="system">/var/lib/dhcp3/dhcpd.leases</span> so you should also find the lease there:</p>
<p class="command">vi /var/lib/dhcp3/dhcpd.leases</p>
<pre># All times in this file are in UTC (GMT), not your local timezone.   This is
# not a bug, so please don't ask about it.   There is no portable way to
# store leases in the local timezone, so please don't request this as a
# feature.   If this is inconvenient or confusing to you, we sincerely
# apologize.   Seriously, though - don't ask.
# The format of this file is documented in the dhcpd.leases(5) manual page.
# This lease file was written by isc-dhcp-V3.0.1

lease 192.168.0.229 {
  starts 2 2006/09/19 14:01:31;
  ends 3 2006/09/20 14:01:31;
  binding state active;
  next binding state free;
  hardware ethernet 00:0c:76:8b:c4:16;
  uid "010014v\213\30426";
  client-hostname "matze";
}</pre>
<p>Have Fun!</p>
<p>&nbsp;</p>
<h3>5 Links</h3>
<ul>
<li> ISC-DHCP: http://www.isc.org/index.pl?/sw/dhcp/</li>
<li> dhcpd.conf configuration options: http://www.bind9.net/dhcpd.conf.5</li>
<li>Network Calculators: http://www.subnetmask.info</li>
</ul>
<p>Copyright © 2006 Falko Timme<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>The Perfect Linux Firewall Part I &#8212; IPCop</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/503.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[Debian-Sarge] Tunneling NFS over SSH</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/502.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/502.html#comments</comments>
		<pubDate>Mon, 20 Feb 2012 05:07:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/502.html</guid>
		<description><![CDATA[[Debian-Sarge] Tunneling NFS over SSH Last Update: 27-09-2006 @ ~21:40 Reason: Added fixed ports for nfs server to make life easy Welcome The goal of this howto is building a NFS server that works on &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/502.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[<h2>[Debian-Sarge] Tunneling NFS over SSH</h2>
<p>Last Update: 27-09-2006 @ ~21:40<br />
Reason: Added fixed ports for nfs server to make life easy <img src='http://www.coastalcompanionbirdsanctuary.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<h3>Welcome</h3>
<p>The goal of this howto is building a NFS server that works on a SSH tunnel. This way all traffic between your hosts and the file server is encrypted and thus more secure <img src='http://www.coastalcompanionbirdsanctuary.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
Normally you should enter a password every time you try to establish a SSH connection but since we could be mounting at bootup we will use ssh-keygen to create a keypair so we can login without entering a password. We will, however, limit that login session to executing just 1 command <img src='http://www.coastalcompanionbirdsanctuary.org/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <br />
We will use a new clean Debian Sarge install to begin with.</p>
<p>In this howto I will use the fictional domain &#8220;linux.lan&#8221;.</p>
<hr />
<h3>Installing Software</h3>
<p>
We will start with the NFS server.</p>
<p class="command">apt-get -y install nfs-kernel-server</p>
<p>
First configure it to run on fixed ports, this will make building a firewall much easier but equally important it aids in simpler client mounts.</p>
<p class="command">
echo &#8220;STATDOPTS=&#8211;port 2231&#8243; &gt; /etc/default/nfs-common<br />
echo &#8220;options lockd nlm_udpport=2232 nlm_tcpport=2232&#8243; &gt;&gt; /etc/modules.conf<br />
echo &#8220;RPCNFSDCOUNT=8 RPCMOUNTDOPTS=&#8217;-p 2233&#8242;&#8221; &gt; /etc/default/nfs-kernel-server
</p>
<p>Thats it, now we can use port 2233 later on when we mount the shares <img src='http://www.coastalcompanionbirdsanctuary.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  check if it worked with rpcinfo -p.<br />
If nlockmgr still uses random ports it is a compiled in setting. Configure this in grub/lilo as kernel parameters:<br />
&#8220;lockd.udpport=2232 lockd.tcpport=2232&#8243;.</p>
<p>Create a new user called sleeper to use for setting up the ssh tunnel from other hosts. We will generate a key for this account so you can login with a keyfile instead of typing your password everytime. The account will also be restricted to execute &#8216;sleep&#8217; trough this way. Other commands will simply fail.</p>
<p class="command">adduser sleeper<br />
su sleeper</p>
<p>
Now switch over to a client that will use our fileserver. <br />
First we need a key:</p>
<p class="command">ssh-keygen -t rsa -b 2048</p>
<p>(use defaults and NO passphrase!)</p>
<p>Now copy the .pub file to the homedir of sleeper on the server:</p>
<p class="command">scp -P 12345 ~/.ssh/id_rsa.pub sleeper@10.0.0.241:~/</p>
<p>
Now back to the server:<br />
As the &#8216;sleeper&#8217; user we need to configure/install the key:</p>
<p class="command">
mkdir ~/.ssh<br />
cd ~/.ssh<br />
mv ../id_rsa.pub ./id_rsa.pub<br />
cat id_rsa.pub &gt;&gt; authorized_keys<br />
chmod 600 authorized_keys
</p>
<p>Add this to the beginning of authorized_keys (before ssh-rsa [...]): </p>
<pre>client="client.linux.lan",command="/bin/sleep 600d"
</pre>
<p>substitute &#8220;client&#8221; with the correct hostname of your client, or use ip numbers.<br />
(but make sure every entry stays on 1 line!)</p>
<p>Every client that needs access to the fileserver needs to store his security data (from the id_rsa.pub file) in the authorized_keys file, so you should repeat this for every host.</p>
<h3>Mounting NFS over SSH on your clients</h3>
<p>Issue these commands to start the tunnels for nfs and mountd:<br />
(syntax: ssh -f -c encyption -L localport:nfsserver:nfsport -l username nfsserver remotecommand)<br />
Also note that the portnumber for mountd is different with every restart of the NFS server&#8230; Keep that in mind.</p>
<p class="command">
ssh -f -i /root/.ssh/id_rsa -c blowfish -L 61001:10.0.0.241:2049 -l sleeper 10.0.0.241 sleep 600d<br />
ssh -f -i /root/.ssh/id_rsa -c blowfish -L 62001:10.0.0.241:2233 -l sleeper 10.0.0.241 sleep 600d
</p>
<p>This creates a connection that will stay alive for almost 2 years&#8230; <img src='http://www.coastalcompanionbirdsanctuary.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> <br />
Now edit your fstab and mount:</p>
<p class="command">echo &#8220;localhost:/export/data /mnt  nfs tcp,rsize=8192,wsize=8192,intr,rw,bg,nosuid,port=61001,mountport=62001,noauto&#8221; &gt;&gt; /etc/fstab<br />
mount /mnt
</p>
<p>
Ofcourse we need some mountable folders (shares) defined on the NFS server:</p>
<p class="command">
mkdir /export<br />
mkdir /export/data<br />
mkdir /export/www-virtual<br />
mkdir /export/www-conf<br />
mkdir /export/mail-virtual<br />
mkdir /export/mail-conf
</p>
<p>Add them to /etc/exports:</p>
<pre>/home/export/data 10.0.0.241(rw,root_squash,sync)
</pre>
<p>Notice the ip address is the nfs server itself? Its because youll mount them from localhost when you have established the ssh tunnel.</p>
<p>Some security settings since we dont want anyone from outside our network to access the server:</p>
<p class="command">
echo &#8220;portmap: ALL&#8221; &gt; /etc/hosts.deny<br />
echo &#8220;portmap: 10.0.0.0/255.255.255.0&#8243; &gt; /etc/hosts.allow
</p>
<p>Restart NFS:</p>
<p class="command">
/etc/init.d/nfs-kernel-server restart
</p>
<p>Thats it ! You can now mount the filesystem on your clients without the need to supply a password. And ofcourse all traffic will be encrypted <img src='http://www.coastalcompanionbirdsanctuary.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<br />Copyright © 2006 harm<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>Setting Up A Highly Available NFS Server</li>
<li>Automated Backups With rdiff-backup</li>
<li>Mirror Your Web Site With rsync</li>
<li>Create Incremental Snapshot-style Backups With rSync And SSH</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/502.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Backup And Recovery With mysql-zrm On Debian Sarge</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/501.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/501.html#comments</comments>
		<pubDate>Mon, 20 Feb 2012 05:05:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/501.html</guid>
		<description><![CDATA[MySQL Backup And Recovery With mysql-zrm On Debian Sarge Version 1.0 Author: Falko Timme &#60;ft [at] falkotimme [dot] com&#62; Last edited 09/27/2006 This guide describes how to back up and recover your MySQL databases with &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/501.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[<h2>MySQL Backup And Recovery With mysql-zrm On Debian Sarge </h2>
<p>Version 1.0 <br />
  Author: Falko Timme &lt;ft [at] falkotimme [dot] com&gt; <br />
Last edited 09/27/2006</p>
<p>This guide describes how to back up and recover your MySQL databases with mysql-zrm on a Debian Sarge system. mysql-zrm is short for Zmanda Recovery Manager for MySQL, it is a new tool that lets you create full logical or raw backups of your databases (regardless of your storage engine and MySQL configuration), generate reports about the backups, verify the integrity of the backups, and recover your databases. It can also send email notifcations about the backup status, and you can implement multiple backup policies (based on your applications and based on time (e.g. daily, weekly, etc.)). </p>
<p>I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!</p>
<p>&nbsp;</p>
<h3>1 Preliminary Note</h3>
<p>mysql-zrm works on MySQL 4.1 and above, so I assume you already have a MySQL server installed on your Debian Sarge system, e.g. like this:</p>
<p class="command">apt-get install mysql-client-4.1 mysql-common-4.1 mysql-server-4.1 </p>
<p>This also installs the package <span class="system">libdbd-mysql-perl</span> which is needed by mysql-zrm as mysql-zrm is written in Perl. </p>
<p>&nbsp; </p>
<h3>2 Installation</h3>
<p>Zmanda has released an rpm package of mysql-zrm for rpm-based distributions like Fedora, RedHat, SuSE, CentOS, etc., but no package for Debian Sarge. So we must download the mysql-zrm source package from http://www.zmanda.com/downloads.html. Select the stable release (at the time of this writing it was 1.0.3) and download it to your <span class="system">/tmp</span> directory:</p>
<p class="command">cd /tmp<br />
wget http://www.zmanda.com/downloads/community/ZRM-MySQL/1.0.3/Source/MySQL-zrm-1.0.3.tar.gz </p>
<p>Next we unpack the sources and go to the source directory:</p>
<p class="command">tar xvfz MySQL-zrm-1.0.3.tar.gz<br />
cd MySQL-zrm-1.0.3</p>
<p>Unfortunately the installation instructions in the INSTALL file only say that you can install the mysql-zrm rpm package if you are on an rpm-based distribution, but nothing more. Also, there&#8217;s no installation script and no installation instructions for the source package on the Zmanda web site, so I had to find out myself how to get mysql-zrm installed on my Debian Sarge system. This is how I did it:</p>
<p class="command">chown root:root *<br />
  mv mysql-zrm /usr/bin<br />
  mv mysql-zrm-reporter /usr/bin<br />
  mv mysql-zrm-scheduler /usr/bin<br />
  gzip mysql-zrm.1<br />
  mv mysql-zrm.1.gz /usr/share/man/man1<br />
  gzip mysql-zrm.conf.5<br />
  mv mysql-zrm.conf.5.gz /usr/share/man/man5<br />
  gzip mysql-zrm-reporter.1<br />
  mv mysql-zrm-reporter.1.gz /usr/share/man/man1<br />
  gzip mysql-zrm-reporter.conf.5<br />
  mv mysql-zrm-reporter.conf.5.gz /usr/share/man/man5<br />
  gzip mysql-zrm-scheduler.1<br />
  mv mysql-zrm-scheduler.1.gz /usr/share/man/man1<br />
  mkdir /etc/mysql-zrm<br />
  mv *.conf /etc/mysql-zrm<br />
  mkdir -p /usr/lib/mysql-zrm/Data/Report/Plugin<br />
  mv Report.pm /usr/lib/mysql-zrm/Data<br />
  mv Base.pm /usr/lib/mysql-zrm/Data/Report<br />
  mv *.pm /usr/lib/mysql-zrm/Data/Report/Plugin<br />
  mkdir /var/log/mysql-zrm<br />
  gzip AUTHORS<br />
  gzip COPYING<br />
  gzip INSTALL<br />
  gzip README<br />
  mkdir /usr/share/doc/MySQL-zrm<br />
  mv * /usr/share/doc/MySQL-zrm<br />
  mkdir /var/lib/mysql-zrm<br />
touch /etc/mysql-zrm/mysql-zrm-release </p>
<p>That&#8217;s it. The executable files have been moved to <span class="system">/usr/bin</span>, the configuration files are in <span class="system">/etc/mysql-zrm</span>, and we even have man pages for our executables (<span class="system">mysql-zrm</span>, <span class="system">mysql-zrm-reporter</span>, and <span class="system">mysql-zrm-scheduler</span>), so if you are not sure about the usage of the executables, you can run</p>
<p class="command">man mysql-zrm</p>
<p class="command">man mysql-zrm-reporter</p>
<p class="command">man mysql-zrm-scheduler</p>
<ul>
<li class="leaf">MySQL Backup And Recovery With mysql-zrm On Debian Sarge &#8211; Page 2</li>
<li class="leaf">MySQL Backup And Recovery With mysql-zrm On Debian Sarge &#8211; Page 3</li>
<li class="leaf">MySQL Backup And Recovery With mysql-zrm On Debian Sarge &#8211; Page 4</li>
<li class="leaf">MySQL Backup And Recovery With mysql-zrm On Debian Sarge &#8211; Page 5</li>
</ul>
<p> next MySQL Backup And Recovery With mysql-zrm On Debian Sarge &#8211; Page 2<br />Copyright © 2006 Falko Timme<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>How To Set Up Database Replication In MySQL</li>
<li>MySQL Master Master Replication</li>
<li>Automated Backups With rdiff-backup</li>
<li>Mirror Your Web Site With rsync</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/501.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Securing Your Server With A Host-based Intrusion Detection System</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/504.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/504.html#comments</comments>
		<pubDate>Mon, 20 Feb 2012 05:04:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/504.html</guid>
		<description><![CDATA[Securing Your Server With A Host-based Intrusion Detection System Version 1.0 Author: Falko Timme &#60;ft [at] falkotimme [dot] com&#62; Last edited 09/18/2006 This article shows how to install and run OSSEC HIDS, an Open Source &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/504.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[<h2>Securing Your Server With A Host-based Intrusion Detection System<br />
</h2>
<p>Version 1.0 <br />
  Author: Falko Timme &lt;ft [at] falkotimme [dot] com&gt; <br />
  Last edited 09/18/2006
</p>
<p>This article shows how to install and run OSSEC HIDS, an Open Source Host-based Intrusion Detection System. It performs log analysis, integrity checking, rootkit detection, time-based alerting and active response. It helps you detect attacks, software misuse, policy violations and other forms of inappropriate activities.</p>
<p>With OSSEC HIDS you can monitor multiple systems, with one system being the OSSEC HIDS server and the others the OSSEC HIDS agents that report back to the server. However, in this tutorial I want to monitor just one system, so I perform a &#8220;local&#8221; installation so that OSSEC HIDS will do its work locally on that system. </p>
<p>In the following I use a Debian Sarge (3.1) system to install OSSEC HIDS on. </p>
<p>I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!</p>
<p>&nbsp;</p>
<h3>1 Installing OSSEC HIDS</h3>
<p>Installing OSSEC HIDS is very easy, it&#8217;s just a matter of downloading the sources, running the installation script and answering the questions of the installation script. First, we download and unpack the OSSEC HIDS sources:</p>
<p class="command">cd /tmp<br />
  wget http://www.ossec.net/files/ossec-hids-0.9-1a.tar.gz<br />
tar xvfz ossec-hids-0.9-1a.tar.gz</p>
<p>Then we run the installation script:</p>
<p class="command">cd ossec-hids-0.9-1a<br />
./install.sh</p>
<p>The installation script will ask you a few questions:</p>
<p class="system"> ** Para instalaÃ§Ã£o em portuguÃªs, escolha [br].<br />
** Fur eine deutsche Installation wohlen Sie [de].<br />
** For installation in English, choose [en].<br />
** Para instalar en EspaÃ±ol , eliga [es].<br />
** Pour une installation en franÃ§ais, choisissez [fr]<br />
** Per l&#8217;installazione in Italiano, scegli [it].<br />
** æ¥æ¬èªã§ã¤ã³ã¹ãã¼ã«ãã¾ãï¼é¸æãã¦ä¸ãã<br />
ï¼[jp].<br />
** Aby instalowaÄ w jÄzyku Polskim, wybierz [pl].<br />
** ÐÐ»Ñ Ð¸Ð½ÑÑÑÑÐºÑÐ¸Ð¹ Ð¿Ð¾ ÑÑÑÐ°Ð½Ð¾Ð²ÐºÐµ Ð½Ð° ÑÑÑÑÐºÐ¾Ð¼ ,Ð²Ð²ÐµÐ´Ð¸ÑÐµ [ru].<br />
** TÃ¼rkÃ§e kurulum iÃ§in seÃ§in [tr].<br />
(en/br/de/es/fr/it/jp/pl/ru/tr) [en]: <span class="highlight">&lt;&#8211; en (or one of the other options, if you don&#8217;t want to use English)</span>   </p>
<p> <span class="system">OSSEC HIDS v0.9-1 Installation Script &#8211; http://www.ossec.net</span></p>
<p class="system"> You are about to start the installation process of the OSSEC HIDS.<br />
  You must have a C compiler pre-installed in your system.<br />
  If you have any questions or comments, please send an e-mail<br />
  to dcid@ossec.net (or daniel.cid@gmail.com).</p>
<p class="system"> &#8211; System: Linux server1.example.com 2.6.8-2-386<br />
  &#8211; User: root<br />
  &#8211; Host: server1.example.com
</p>
<p><span class="system"> &#8212; Press ENTER to continue or Ctrl-C to abort. &#8211;</span> <span class="highlight">&lt;&#8211; [ENTER]</span></p>
<p><span class="system">1- What kind of installation do you want (server, agent, local or help)?</span> <span class="highlight">&lt;&#8211; local</span></p>
<p> <span class="system">- Choose where to install the OSSEC HIDS [/var/ossec]:</span> <span class="highlight">&lt;&#8211; /var/ossec</span></p>
<p> <span class="system">3.1- Do you want e-mail notification? (y/n) [y]:</span> <span class="highlight">&lt;&#8211; y</span></p>
<p> <span class="system">- What&#8217;s your e-mail address?</span> <span class="highlight">&lt;&#8211; example@example.com (please enter your own email address here)</span> </p>
<p> <span class="system">- We found your SMTP server as: mail.example.com.<br />
- Do you want to use it? (y/n) [y]:</span> <span class="highlight">&lt;&#8211; y (normally you can accept the installer&#8217;s proposal, unless you want to use another SMTP server)</span> </p>
<p> <span class="system">3.2- Do you want to run the integrity check daemon? (y/n) [y]:</span> <span class="highlight">&lt;&#8211; y</span></p>
<p> <span class="system">3.3- Do you want to run the rootkit detection engine? (y/n) [y]:</span> <span class="highlight">&lt;&#8211; y</span></p>
<p> <span class="system">- Do you want to enable active response? (y/n) [y]:</span> <span class="highlight">&lt;&#8211; y</span></p>
<p> <span class="system">- Do you want to enable the firewall-drop response? (y/n) [y]:</span> <span class="highlight">&lt;&#8211; y</span></p>
<p> <span class="system">- Do you want to add more IPs to the white list? (y/n)? [n]:</span> <span class="highlight">&lt;&#8211; n (unless you want to whitelist more IP addresses) </span></p>
<p> <span class="system">3.6- Setting the configuration to analyze the following logs:<br />
&#8211; /var/log/messages<br />
&#8211; /var/log/auth.log<br />
&#8211; /var/log/syslog<br />
&#8211; /var/log/mail.info</span></p>
<p class="system"> &#8211; If you want to monitor any other file, just change<br />
  the ossec.conf and add a new localfile entry.<br />
  Any questions about the configuration can be answered<br />
  by visiting us online at http://www.ossec.net .
</p>
<p><span class="system"> &#8212; Press ENTER to continue &#8212;</span> <span class="highlight">&lt;&#8211; [ENTER]</span></p>
<p> <span class="system">- System is Linux (SysV).<br />
- Init script modified to start OSSEC HIDS during boot.<br />
Adding system startup for /etc/init.d/ossec &#8230;<br />
/etc/rc0.d/K20ossec -&gt; ../init.d/ossec<br />
/etc/rc1.d/K20ossec -&gt; ../init.d/ossec<br />
/etc/rc6.d/K20ossec -&gt; ../init.d/ossec<br />
/etc/rc2.d/S20ossec -&gt; ../init.d/ossec<br />
/etc/rc3.d/S20ossec -&gt; ../init.d/ossec<br />
/etc/rc4.d/S20ossec -&gt; ../init.d/ossec<br />
/etc/rc5.d/S20ossec -&gt; ../init.d/ossec</span></p>
<p class="system"> &#8211; Configuration finished properly.</p>
<p class="system"> &#8211; To start OSSEC HIDS:<br />
  /var/ossec/bin/ossec-control start</p>
<p class="system"> &#8211; To stop OSSEC HIDS:<br />
  /var/ossec/bin/ossec-control stop</p>
<p class="system"> &#8211; The configuration can be viewed or modified at /var/ossec/etc/ossec.conf
</p>
<p class="system"> Thanks for using the OSSEC HIDS.<br />
  If you have any question, suggestion or if you find any bug,<br />
  contact us at contact@ossec.net or using our public maillist at<br />
  ossec-list@ossec.net<br />
  (http://mailman.underlinux.com.br/mailman/listinfo/ossec-list).</p>
<p class="system"> More information can be found at http://www.ossec.net</p>
<p><span class="system"> &#8212; Press ENTER to finish (maybe more information below). &#8212;</span> <span class="highlight">&lt;&#8211; [ENTER]</span></p>
<p>That&#8217;s it, OSSEC HIDS is now installed and ready to be started.</p>
<p>&nbsp;</p>
<h3>2 Starting And Running OSSEC HIDS</h3>
<p>In order to start OSSEC HIDS, we run this command:</p>
<p class="command">/etc/init.d/ossec start   </p>
<p>The output should look like this:</p>
<p class="system">server1:/etc/init.d# /etc/init.d/ossec start<br />
  Starting OSSEC HIDS v0.9-1 (by Daniel B. Cid)&#8230;<br />
  Started ossec-maild&#8230;<br />
  Started ossec-execd&#8230;<br />
  Started ossec-analysisd&#8230;<br />
  Started ossec-logcollector&#8230;<br />
  Started ossec-syscheckd&#8230;<br />
  Completed.<br />
server1:/etc/init.d# </p>
<p>As you might have seen during OSSEC HIDS installation, the installer also created the necessary system startup links for OSSEC HIDS, so that OSSEC HIDS will be started automatically whenever you boot/reboot your system.</p>
<p>After OSSEC HIDS has been started, it will run silently in the background, performing log analysis, integrity checking, rootkit detection, etc. You can check that it&#8217;s running by executing</p>
<p class="command">ps aux</p>
<p>In the output you should find something like this:</p>
<p><span class="system">ossecm&nbsp;&nbsp;&nbsp;&nbsp;2038&nbsp;&nbsp;0.0&nbsp;&nbsp;0.4&nbsp;&nbsp;1860&nbsp;&nbsp;792&nbsp;?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S&nbsp;&nbsp;&nbsp;&nbsp;12:40&nbsp;&nbsp;&nbsp;0:00&nbsp;/var/ossec/bin/ossec-maild<br />
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2042&nbsp;&nbsp;0.0&nbsp;&nbsp;0.3&nbsp;&nbsp;1736&nbsp;&nbsp;648&nbsp;?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S&nbsp;&nbsp;&nbsp;&nbsp;12:40&nbsp;&nbsp;&nbsp;0:00&nbsp;/var/ossec/bin/ossec-execd<br />
ossec&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2046&nbsp;&nbsp;0.2&nbsp;&nbsp;0.5&nbsp;&nbsp;2192&nbsp;1136&nbsp;?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S&nbsp;&nbsp;&nbsp;&nbsp;12:40&nbsp;&nbsp;&nbsp;0:00&nbsp;/var/ossec/bin/ossec-analysisd<br />
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2050&nbsp;&nbsp;0.0&nbsp;&nbsp;0.2&nbsp;&nbsp;1592&nbsp;&nbsp;556&nbsp;?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S&nbsp;&nbsp;&nbsp;&nbsp;12:40&nbsp;&nbsp;&nbsp;0:00&nbsp;/var/ossec/bin/ossec-logcollector<br />
root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;2054&nbsp;12.2&nbsp;&nbsp;0.3&nbsp;&nbsp;1756&nbsp;&nbsp;616&nbsp;?&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;S&nbsp;&nbsp;&nbsp;&nbsp;12:40&nbsp;&nbsp;&nbsp;0:05&nbsp;/var/ossec/bin/ossec-syscheckd<br />
</span></p>
<p>The OSSEC HIDS log file is <span class="system">/var/ossec/logs/ossec.log</span>, so you can check it to see what&#8217;s going on, e.g. with the <span class="system">tail</span> command. </p>
<p class="command">tail -f /var/ossec/logs/ossec.log</p>
<p>shows what&#8217;s happening in real-time. Press <span class="system">CTRL-C</span> to leave it.</p>
<p class="command">tail -n 100 /var/ossec/logs/ossec.log</p>
<p>shows you the last 100 lines of the OSSEC HIDS log.</p>
<p>Whenever OSSEC HIDS detects something suspicious, it sends an email with a report about the activity to the email address you specified during installation:</p>
<p><img src="http://static.howtoforge.com/images/hids_debian_sarge/1.png" height="375" width="550" /> </p>
<p><img src="http://static.howtoforge.com/images/hids_debian_sarge/2.png" height="391" width="550" /> </p>
<p><img src="http://static.howtoforge.com/images/hids_debian_sarge/3.png" height="549" width="550" /> </p>
<p><img src="http://static.howtoforge.com/images/hids_debian_sarge/4.png" height="459" width="550" /></p>
<p>If you want to change OSSEC HIDS&#8217; settings (e.g. change the email address, add custom rulesets, etc.), you can do this by editing the configuration file <span class="system">/var/ossec/etc/ossec.conf</span> (which is in XML format). You can do this by using a command-line editor such as <span class="system">vi</span>:</p>
<p class="command">vi /var/ossec/etc/ossec.conf</p>
<p>The file looks like this:</p>
<pre>&lt;ossec_config&gt;
  &lt;global&gt;
    &lt;email_notification&gt;yes&lt;/email_notification&gt;
    &lt;email_to&gt;example@example.com&lt;/email_to&gt;
    &lt;smtp_server&gt;mail.example.com.&lt;/smtp_server&gt;
    &lt;email_from&gt;ossecm@example.com&lt;/email_from&gt;
  &lt;/global&gt;
[...]
</pre>
<p>If you change the file, make sure to restart OSSEC HIDS afterwards:</p>
<p class="command">/etc/init.d/ossec restart </p>
<p>In order to learn how to add custom rulesets, etc. to the OSSEC HIDS configuration, please refer to the OSSEC HIDS manual: http://www.ossec.net/en/manual.html</p>
<p>&nbsp;   </p>
<h3>3 Links</h3>
<ul>
<li> OSSEC HIDS: http://www.ossec.net</li>
</ul>
<p>Copyright © 2006 Falko Timme<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>Intrusion Detection With BASE And Snort</li>
<li>How to scan your Linux-Distro for Root Kits</li>
<li>Chkrootkit-Portsentry-Howto</li>
<li>Preventing SSH Dictionary Attacks With DenyHosts</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/504.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Subversion and websvn on Debian</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/505.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/505.html#comments</comments>
		<pubDate>Mon, 20 Feb 2012 04:58:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/505.html</guid>
		<description><![CDATA[Setting up Subversion and websvn on Debian&#160; Purpose of this howto This howto will illustrate a way to install and configure Subversion and websvn on a Debian server with the following features: multiple repository Subversion &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/505.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[<h2>Setting up Subversion and websvn on Debian&nbsp;</h2>
<p><b>Purpose of this howto</b></p>
<p> This howto will illustrate a way to install and configure<br />
Subversion and websvn on a Debian server with the following features: </p>
<ul>
<li>multiple repository Subversion</li>
<li>access to the repositories via WebDAV (http, https) and ssh</li>
<li>Linux system account access control and/or Apache level access control</li>
<li>a secured websvn (php web application for easy code browsing)</li>
<li>configured syntax coloring in websvn with gnu enscript</li>
</ul>
<p>		I will not specifically configure <span class="system">inetd</span> with <span class="system">svnserve</span> in this howto. Rest assured that Subversion will be totally functional without it.<br />
		You can copy/paste most of the howto to get it working.</p>
<h2>Packages that are assumed to already be installed</h2>
<p>
		This howto assumes PHP and apache2 are installed and configured. Configuring apache2 with SSL is optional.
	</p>
<h2>Setting up Subversion</h2>
<h3>Subversion packages</h3>
<p>
		As root you can enter the following commands to install the packages required for our Subversion setup:
	</p>
<p class="command">
		# apt-get update<br />
		# apt-get install subversion<br />
		# apt-get install libapache2-svn
	</p>
<p>
		The package libapache2-svn will install the subversion WebDAV apache module.
	</p>
<h3>Creating and populating repositories</h3>
<p>
		To work with in this howto we&#8217;ll create two repos:
	</p>
<p class="command">
		# mkdir /var/svn-repos/<br /># svnadmin create &#8211;fs-type fsfs /var/svn-repos/project_zen <br /># svnadmin create &#8211;fs-type fsfs /var/svn-repos/project_wombat&nbsp;
	</p>
<p>
		The repository directories need the proper permissions for apache and the other users. I&#8217;ll make a group and add users to it <span class="highlight">(don&#8217;t just copy/paste here)</span>. The apache user won&#8217;t be put in the group because I find it less secure.
	</p>
<p class="command">
		# groupadd subversion<br />
		# addgroup john subversion<br />
		# addgroup bert subversion<br />
		# addgroup you subversion<br />
		&#8230;<br />
		# chown -R www-data:subversion /var/svn-repos/*<br />
		# chmod -R 770 /var/svn-repos/*
	</p>
<p>
		Let&#8217;s set up easy ssh connectivity, on a user machine enter the following commands:
	</p>
<p class="command">
		$ mkdir ~/.ssh/<br />
		$ cd ~/.ssh/<br />
		$ ssh-keygen -t dsa<br />
		$ cat ~/.ssh/id_dsa.pub | ssh you@example.com &#8220;cat &#8211; &gt;&gt; ~/.ssh/authorized_keys&#8221;
	</p>
<p>
		The server <i>example.com</i> is the server we installed<br />
Subversion on. For easy ssh use you can chose not to use a passphrase<br />
with your key or use an agent to keep authenticated. Otherwise each<br />
transaction between the user machine and Subversion will require the<br />
user to enter a password (very inconvenient). Using an agent can be<br />
done like this: </p>
<p class="command">
		$ ssh-agent<br />
		$ ssh-add<br />
		$ ssh you@example.com
	</p>
<p>
		All should be set now to use the a repository. You may test it like this, it shows an import and a checkout:
	</p>
<p class="command">
		$ mkdir ~/TEMP/<br />
		$ echo &#8220;testing svn&#8221; &gt; ~/TEMP/testing.txt<br />
		$ svn import -m &#8220;importing test over ssh+svn&#8221; ~/TEMP/ svn+ssh://example.com/var/svn-repos/project_zen/trunk<br />
		$ svn co svn+ssh://example.com/var/svn-repos/project_zen/trunk testcheckout
	</p>
<p>
		As a result the testing.txt file should be in a directory called <i>testcheckout</i>. On the serverside you can check the repositories with <i>svnlook</i>.
	</p>
<p class="command">
		# svnlook tree /var/svn-repos/project_zen/
	</p>
<h3>Configuring Subversion WebDAV</h3>
<p>
		Normally the apache mod will be enabled by default, to ensure this is true enter the following commands:
	</p>
<p class="command">
		# a2enmod dav<br />
		# a2enmod dav_svn
	</p>
<p>
		Configuration is done in the file <span class="system">/etc/apache2/mods-available/dav_svn.conf</span>, but first we&#8217;ll make an access file.
	</p>
<p class="command">
		# htpasswd2 -c /etc/apache2/dav_svn.passwd you<br />
		# htpasswd2 /etc/apache2/dav_svn.passwd john<br /># htpasswd2 /etc/apache2/dav_svn.passwd sten<br />
		&#8230;
	</p>
<p>
		This is the content my <span class="system">/etc/apache2/mods-available/dav_svn.conf</span> file:
	</p>
<pre>		&lt;Location /svn_zen&gt;		  DAV svn		  SVNPath /var/svn-repos/project_zen		  AuthType Basic		  AuthName "Subversion Repository"		  AuthUserFile /etc/apache2/dav_svn.passwd		  Require valid-user		  SSLRequireSSL		&lt;/Location&gt;

		&lt;Location /svn_wombat&gt;		  DAV svn		  SVNPath /var/svn-repos/project_wombat		  AuthType Basic		  AuthName "Subversion Repository"		  AuthUserFile /etc/apache2/dav_svn.passwd		  Require valid-user		  SSLRequireSSL		&lt;/Location&gt;	</pre>
<p>
		You can uncomment the <i>SSLRequireSSL</i> file if you don&#8217;t want to use SSL, but then you need to use <i>http</i> and not <i>https</i><br />
in the commands that follow. Apache should be restarted and we can test<br />
from a user machine. We&#8217;ll import the same testfile in the wombat<br />
project. </p>
<p class="command">
		# /etc/init.s/apache2 restart<br />
		$ svn import -m &#8220;testing over https&#8221; https://example.com/svn_wombat ~/TEMP/
	</p>
<p>
		Using a webbrowser you can visit your URL <i>https://example.com/svn_wombat</i><br />
and see what was just committed. This is a basic on-line view on the<br />
repository, but using a web font-end like websvn will offer a better<br />
repository browsing experience. </p>
<h2>Setting up websvn</h2>
<h3>Required packages</h3>
<p> To get rolling with websvn we&#8217;ll need to install the following<br />
packages, both will show you configuration screens (explained in the<br />
next paragraph): </p>
<p class="command">
		# apt-get install enscript<br />
		# apt-get install websvn
	</p>
<p>
		Enscript isn&#8217;t mandatory but we&#8217;ll need it for syntax coloring in websvn.
	</p>
<h3>Configuration</h3>
<p>
		<b>Enscript</b> will ask for paper size, this might seem awkward<br />
but that&#8217;s because enscript is also used for converting ASCII files to<br />
PostScript. We need it for it&#8217;s syntax coloring features. </p>
<p>
		<b>Websvn</b> will first ask for which kind of server to configure, go ahead and just press enter.<br />
		
</p>
<p>  <img src="http://static.howtoforge.com/images/screenshots/thumbs/thumb_ff47b8ed0a3226eb62bf757138ffda1b-1511.jpg" alt="websvn server configuration" height="81" width="129" /><img src="http://static.howtoforge.com/images/screenshots/thumbs/thumb_f077d5f5fa0f8980ca4977de1eb398c5-1512.jpg" alt="websvn parent directory" height="81" width="129" /><img src="http://static.howtoforge.com/images/screenshots/thumbs/thumb_7ce4627021317d14ce71a860fc115f01-1513.jpg" alt="websvn repository directories" height="81" width="129" />  &nbsp;</p>
<p>The next screens ask for a parent repository folder (<i>/var/svn-repos/</i><br />
in this case) and specific repository folders, this will determine<br />
which repositories will show up in websvn. We will only enter a parent<br />
repository, all repositories created in this folder will show up in<br />
websvn for users to browse. If you want to show only specific<br />
repositories enter their full paths in the second screen and leave the<br />
parent path blank. <br />
    &nbsp;<br />
		As a result the file <span class="system">/etc/websvn/svn_deb_conf.inc</span> will be written. You can rerun debian package configuration screens with <span class="system">dpkg-reconfigure</span>. Further websvn configuration is done in the file <span class="system">/etc/websvn/config.inc</span>. This is the content of my file with some extension mappings for the syntax coloring.</p>
<pre>		&lt;?php		// --- LOOK AND FEEL ---		//		// Uncomment ONLY the display file that you want.  		$config-&gt;setTemplatePath("$locwebsvnreal/templates/Standard/");		// $config-&gt;setTemplatePath("$locwebsvnreal/templates/BlueGrey/");		// $config-&gt;setTemplatePath("$locwebsvnreal/templates/Zinn/");		// $contentType[".c"] = "plain/text"; // Create a new association		// $contentType[".doc"] = "plain/text"; // Modify an existing one		unset($contentType[".sh"]); // Remove a default association -&gt; .sh is regarded as a binary file by default, needs to be unset		// --- COLOURISATION ---		// Uncomment this line if you want to use Enscript to colourise your file listings		//		// You'll need Enscript version 1.6 or higher AND Sed installed to use this feature. 		// Set the path above.		//		$config-&gt;useEnscript();		// Enscript need to be told what the contents of a file are so that it can be colourised		// correctly.  WebSVN includes a predefined list of mappings from file extension to Enscript		// file type (viewable in setup.inc).		//		// Here you should add and other extensions not already listed or redefine the default ones. eg:		//		// php is default correctly colourized		$extEnscript[".java"] = "java";		$extEnscript[".pl"] = "perl";		$extEnscript[".py"] = "python";		$extEnscript[".sql"] = "sql";		$extEnscript[".java"] = "java";		$extEnscript[".html"] = "html";		$extEnscript[".xml"] = "html";		$extEnscript[".thtml"] = "html";		$extEnscript[".tpl"] = "html";		$extEnscript[".sh"] = "bash";		// --- MISCELLANOUS ---		// Uncomment this if you don't have the right to use it.  Be warned that you may need it however!		set_time_limit(0);		// Comment this line to turn off caching of repo information.  This will slow down your browsing.		$config-&gt;setCachingOn();		// Number of spaces to expand tabs to in diff/listing view across all repositories		$config-&gt;expandTabsBy(8);		// To change the global option for individual repositories, uncomment and replicate		// the required line below (replacing 'myrep' for the name of the repository to be changed).		// $config-&gt;findRepository("myrep")-&gt;expandTabsBy(3); // Expand Tabs by 3 for repository 'myrep'		?&gt;		&lt;?php		if ( file_exists("/etc/websvn/svn_deb_conf.inc") ) {		  include("/etc/websvn/svn_deb_conf.inc");		}		?&gt;	</pre>
<p>
		Next up is configuring the apache virtualhost for websvn.<br />
		Example using SSL:
	</p>
<pre>		&lt;VirtualHost *:443&gt;			ServerAdmin webmaster@example.com		    ServerName svn.example.com		    DocumentRoot /var/www/websvn/			&lt;Location /&gt;				Options FollowSymLinks 				order allow,deny				allow from all				AuthType Basic				AuthName "Subversion Repository"				Require valid-user				AuthUserFile /etc/apache2/dav_svn.passwd 				&lt;IfModule mod_php4.c&gt;					php_flag magic_quotes_gpc Off					php_flag track_vars On		        &lt;/IfModule&gt;			&lt;/Location&gt;			SSLEngine on			SSLCertificateFile /etc/apache2/ssl/apache.pem		&lt;/VirtualHost&gt;	</pre>
<p>
		Example without SSL:
	</p>
<pre>		&lt;VirtualHost *:80&gt;			ServerAdmin webmaster@example.com	        ServerName svn.example.com	        DocumentRoot /var/www/websvn/

			&lt;Location /&gt;				Options FollowSymLinks 				AllowOverride None				order allow,deny				allow from all				AuthType Basic				AuthName "Subversion Repository"				Require valid-user				AuthUserFile /etc/apache2/dav_svn.passwd 				&lt;IfModule mod_php4.c&gt;					php_flag magic_quotes_gpc Off					php_flag track_vars On			    &lt;/IfModule&gt;			&lt;/Location&gt;		&lt;/VirtualHost&gt;	</pre>
<p>
		Restart apache and have a look at the result at your <i>https://svn.example.com/</i>.
	</p>
<h2>Useful Subversion references</h2>
<h3>Getting more information</h3>
</p>
<ul>
<li>official subversion site</li>
<li>Version Control with Subversion, free on-line book</li>
<li>websvn</li>
</ul>
<h3>Subversion clients</h3>
</p>
<ul>
<li>Subclipse</li>
<li>RapidSVN</li>
<li>kdesvn</li>
<li>Zigversion (Mac OS X)</li>
<li>Quicksilver plugin (Mac OS X)</li>
<li>svnX (Mac OS X)</li>
<li>TortoiseSVN (Windows)</li>
</ul>
<p> I hope you find this howto useful. This isn&#8217;t a perfect setup, but<br />
hopefully it will help you in using Subversion. Please feel free to add<br />
comments or corrections. </p>
<p><img src="http://creativecommons.org/images/public/somerights20.gif" alt="[Creative Commons Attribution-NonCommercial-ShareAlike 2.0 License]" />This page is licensed under a Creative Commons License.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/505.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up A Highly Available NFS Server</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/494.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/494.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 13:14:46 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/494.html</guid>
		<description><![CDATA[This is a &#8220;copy &#38; paste&#8221; HowTo! The easiest way to follow this tutorial is to use a command line client/SSH client (like PuTTY for Windows) and simply copy and paste the commands (except where &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/494.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[</p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>This is a <i>&#8220;copy &amp; paste&#8221;</i> HowTo!</b> The easiest way to follow this tutorial is to use a command line client/SSH client (like PuTTY for Windows) and simply copy and paste the commands (except where you have to provide own information like IP addresses, hostnames, passwords,&#8230;). This helps to avoid typos.</font>
</p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Setting Up A Highly Available NFS Server </b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Version 1.0</font><br />
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Author: Falko Timme<br />
  &lt;ft [at] falkotimme [dot] com&gt;</font><br />
  <font face="Verdana, Arial, Helvetica, sans-serif" size="2">Last edited: 03/07/2006</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">In this tutorial I will describe how to set up a highly available NFS server that can be used as storage solution for other high-availability services like, for example, a cluster of web servers that are being loadbalanced. If you have a web server cluster with two or more nodes that serve the same web site(s), than these nodes must access the same pool of data so that every node serves the same data, no matter if the loadbalancer directs the user to node 1 or node n. This can be achieved with an NFS share on an NFS server that all web server nodes (the NFS clients) can access.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">As we do not want the NFS server to become another &#8220;Single Point of Failure&#8221;, we have to make it highly available. In fact, in this tutorial I will create two NFS servers that mirror their data to each other in realtime using <font face="Courier New, Courier, mono"><i>DRBD</i></font> and that monitor each other using <font face="Courier New, Courier, mono"><i>heartbeat</i></font>, and if one NFS server fails, the other takes over silently. To the outside (e.g. the web server nodes) these two NFS servers will appear as a single NFS server.</font> </p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">In this setup I will use Debian Sarge (3.1) for the two NFS servers as well as for the NFS client (which represents a node of the web server cluster). </font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">I want to say first<br />
  that this is not the only way of setting up such a system. There are many ways<br />
  of achieving this goal but this is the way I take. I do not issue any guarantee<br />
  that this will work for you!</font></p>
</p>
<h4><font face="Verdana, Arial, Helvetica, sans-serif" size="3">1 My Setup </font></h4>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">In this document I use the following systems:</font></p>
<ul>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">NFS server 1: <font face="Courier New, Courier, mono"><i>server1.example.com</i></font>, IP address: <font face="Courier New, Courier, mono"><i>192.168.0.172</i></font>; I will refer to this one as <font face="Courier New, Courier, mono"><i>server1</i></font>. </font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">NFS server 2: <font face="Courier New, Courier, mono"><i>server2.example.com</i></font>, IP address: <font face="Courier New, Courier, mono"><i>192.168.0.173</i></font>; I will refer to this one as <font face="Courier New, Courier, mono"><i>server2</i></font>. </font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Virtual IP address: I use <font face="Courier New, Courier, mono"><i>192.168.0.174</i></font> as the virtual IP address that represents the NFS cluster to the outside.</font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">NFS client (e.g. a node from the web server cluster): <font face="Courier New, Courier, mono"><i>client.example.com</i></font>, IP address: <font face="Courier New, Courier, mono"><i>192.168.0.100</i></font>; I will refer to the NFS client as <font face="Courier New, Courier, mono"><i>client</i></font>. </font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="2">The <font face="Courier New, Courier, mono"><i>/data</i></font> directory will be mirrored by DRBD between <font face="Courier New, Courier, mono"><i>server1</i></font> and <font face="Courier New, Courier, mono"><i>server2</i></font>. It will contain the NFS share <font face="Courier New, Courier, mono"><i>/data/export</i></font>. </font></li>
</ul>
<h4><font face="Verdana, Arial, Helvetica, sans-serif" size="3">2 Basic Installation Of server1 and server2 </font></h4>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">First we set up two basic Debian systems for <font face="Courier New, Courier, mono"><i>server1</i></font> and <font face="Courier New, Courier, mono"><i>server2</i></font>. You can do it as outlined on the first two pages of this tutorial: http://www.howtoforge.com/perfect_setup_debian_sarge. As hostname, you enter <font face="Courier New, Courier, mono"><i>server1</i></font> and <font face="Courier New, Courier, mono"><i>server2</i></font> respectively, and as domain you enter <font face="Courier New, Courier, mono"><i>example.com</i></font>.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Regarding the partitioning, I use the following partition scheme:</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">/dev/sda1 &#8212; 100 MB /boot (primary, ext3, Bootable flag: on)<br />
  /dev/sda5 &#8212; 5000 MB / (logical, ext3)<br />
  /dev/sda6 &#8212; 1000 MB swap (logical)<br />
  /dev/sda7 &#8212; 150 MB <font color="#ff0000"><b>unmounted</b></font> (logical, ext3) </font></i><font face="Verdana, Arial, Helvetica, sans-serif" size="2">(will contain DRBD&#8217;s meta data)</font><font size="2"><i> <br />
/dev/sda8 &#8212; 26 GB <font color="#ff0000"><b>unmounted</b></font> (logical, ext3) </i></font><font face="Verdana, Arial, Helvetica, sans-serif" size="2">(will contain the </font><font size="2"><i>/data </i><font face="Verdana, Arial, Helvetica, sans-serif">directory)</font> </font></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">You can vary the sizes of the partitions depending on your hard disk size, and the names of your partition might also vary, depending on your hardware (e.g. you might have <font face="Courier New, Courier, mono"><i>/dev/hda1</i></font> instead of <font face="Courier New, Courier, mono"><i>/dev/sda1</i></font> and so on). However, it is important that <font face="Courier New, Courier, mono"><i>/dev/sda7</i></font> <b>has a little more than 128 MB</b> because we will use this partition for DRBD&#8217;s meta data which uses 128 MB. Also, make sure <font face="Courier New, Courier, mono"><i>/dev/sda7</i></font> as well as  <font face="Courier New, Courier, mono"><i>/dev/sda8</i></font> <b>are identical in size</b> on <font face="Courier New, Courier, mono"><i>server1</i></font> and <font face="Courier New, Courier, mono"><i>server2</i></font>, and <b>please do not mount them</b> (when the installer asks you:</font></p>
<p><font face="Courier New, Courier, mono" size="2"><i>No mount point is assigned for the ext3 file system in partition #7 of SCSI1 (0,0,0) (sda).<br />
  Do you want to return to the partitioning menu?</i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">please answer <font face="Courier New, Courier, mono"><i>No</i></font>)! <font face="Courier New, Courier, mono"><i>/dev/sda8</i></font> is going to be our data partition (i.e., our NFS share). </font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">After the basic installation make sure that you give <font face="Courier New, Courier, mono"><i>server1</i></font> and <font face="Courier New, Courier, mono"><i>server2</i></font> static IP addresses (<font face="Courier New, Courier, mono"><i>server1</i></font>: <font face="Courier New, Courier, mono"><i>192.168.0.172</i></font>, <font face="Courier New, Courier, mono"><i>server2</i></font>: <font face="Courier New, Courier, mono"><i>192.168.0.173</i></font>), as described at the beginning of http://www.howtoforge.com/perfect_setup_debian_sarge_p3).</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Afterwards, you should check <font face="Courier New, Courier, mono"><i>/etc/fstab</i></font> on both systems. Mine looks like this on both systems: </font></p>
<pre># /etc/fstab: static file system information.##
proc            /proc           proc    defaults        0       0
/dev/sda5       /               ext3    defaults,errors=remount-ro 0       1
/dev/sda1       /boot           ext3    defaults        0       2
/dev/sda6       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
</pre>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">If you find that yours looks like this, for example:</font></p>
<pre># /etc/fstab: static file system information.##
proc            /proc           proc    defaults        0       0
/dev/hda5       /               ext3    defaults,errors=remount-ro 0       1
/dev/hda1       /boot           ext3    defaults        0       2
/dev/hda6       none            swap    sw              0       0
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
</pre>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">then please make sure you use <font face="Courier New, Courier, mono"><i>/dev/<font color="#ff0000">h</font>da</i></font> instead of <font face="Courier New, Courier, mono"><i>/dev/<font color="#ff0000">s</font>da</i></font> in the following configuration files. Also make sure that <font face="Courier New, Courier, mono"><i>/dev/sda7</i></font> (or <font face="Courier New, Courier, mono"><i>/dev/hda7</i></font>) and <font face="Courier New, Courier, mono"><i>/dev/sda8</i></font> (or <font face="Courier New, Courier, mono"><i>/dev/hda8</i></font>&#8230;) are not listed in <font face="Courier New, Courier, mono"><i>/etc/fstab</i></font>! </font></p>
</p>
<h4><font face="Verdana, Arial, Helvetica, sans-serif">3 Synchronize System Time</font></h4>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">It&#8217;s important that both server1 and server2 have the same system time. Therefore we install an NTP client on both:</font></p>
<p><font color="#ff0000" face="Georgia, Times New Roman, Times, serif" size="2"><u>server1/server2:</u></font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">apt-get install ntp ntpdate</font></i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Afterwards you can check that both have the same time by running</font></p>
<p><font color="#ff0000" face="Georgia, Times New Roman, Times, serif" size="2"><u>server1/server2:</u></font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">date </font></i> </font></p>
<ul>
<li class="leaf">Setting Up A Highly Available NFS Server &#8211; Page 2</li>
<li class="leaf">Setting Up A Highly Available NFS Server &#8211; Page 3</li>
<li class="leaf">Setting Up A Highly Available NFS Server &#8211; Page 4</li>
<li class="leaf">Setting Up A Highly Available NFS Server &#8211; Page 5</li>
</ul>
<p> next Setting Up A Highly Available NFS Server &#8211; Page 2<br />Copyright © 2006 Falko Timme<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>Mirror Your Web Site With rsync</li>
<li>How To Set Up A Loadbalanced High-Availability Apache Cluster</li>
<li>How To Set Up A Load-Balanced MySQL Cluster</li>
<li>Keeping Your Sanity with Unison</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/494.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing Beryl On A CentOS 5.0 Desktop</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/488.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/488.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 13:13:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[CentOS]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/488.html</guid>
		<description><![CDATA[Installing Beryl On A CentOS 5.0 Desktop Version 1.0 Author: Falko Timme &#60;ft [at] falkotimme [dot] com&#62; Last edited 07/16/2007 This tutorial shows how you can install and use Beryl on a CentOS 5.0 desktop &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/488.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[<h2>Installing Beryl  On A CentOS 5.0 Desktop </h2>
<p>Version 1.0 <br />
  Author: Falko Timme &lt;ft [at] falkotimme [dot] com&gt; <br />
Last edited 07/16/2007</p>
<p>This tutorial shows how you can install and use Beryl  on a CentOS 5.0 desktop (the system must have a 3D-capable graphics card). With Beryl, you can make your desktop use beautiful 3D effects like wobbly windows or a desktop cube. </p>
<p>This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!</p>
<p>&nbsp;</p>
<h3>1 Preliminary Note</h3>
<p>I have tried this on my 3-year old HP Pavilion zt3000 notebook which has an <span class="highlight">ATI Mobility Radeon 9200</span> graphic card, and it works really good there. I have used the CentOS Gnome desktop. If you use KDE, a few things might be different from this tutorial. </p>
<p>&nbsp;</p>
<h3>2 Installing Beryl</h3>
<p>There&#8217;s no Beryl package in the official CentOS 5.0 repositories, but the centos.karan.org repository has a Beryl package for CentOS 5.0 (in the <span class="system">kbs-CentOS-Testing</span> repository). Therefore we add this repository to our official CentOS repositories. Open a terminal (<span class="system">Applications &gt; Accessories &gt; Terminal</span>) and become root by typing:</p>
<p class="command">su</p>
<p>Then we run these two commands to add the new repositories to our existing repositories: </p>
<p class="command">cd /etc/yum.repos.d/<br />
  wget http://centos.karan.org/kbsingh-CentOS-Extras.repo</p>
<p>Now we must enable the <span class="system">kbs-CentOS-Testing</span> repository. To do this, we open the file <span class="system">kbsingh-CentOS-Extras.repo</span> and change <span class="system">enabled=0</span> to <span class="system">enabled=1</span> in the <span class="system">kbs-CentOS-Testing</span> stanza:</p>
<p class="command">gedit kbsingh-CentOS-Extras.repo</p>
<pre># All new packages are now released to the testing repository first
# and only moved into Stable after a period of time
# Note: The testing repository is disabled by default

[kbs-CentOS-Extras]
name=CentOS.Karan.Org-EL$releasever - Stable
gpgcheck=1
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
enabled=1
baseurl=http://centos.karan.org/el$releasever/extras/stable/$basearch/RPMS/

[kbs-CentOS-Testing]
name=CentOS.Karan.Org-EL$releasever - Testing
gpgcheck=1
gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt
enabled=1
baseurl=http://centos.karan.org/el$releasever/extras/testing/$basearch/RPMS/</pre>
<p>Then we import the GPG key of our new repository:</p>
<p class="command">rpm &#8211;import http://centos.karan.org/RPM-GPG-KEY-karan.org.txt </p>
<p>Now we can install Beryl with a single command:</p>
<p class="command">yum install beryl </p>
<p>This will install Beryl and all needed dependencies on your system. </p>
<p>That&#8217;s it. We can now start Beryl by going to <span class="system">Applications &gt; System Tools &gt; Beryl Manager</span>. If all goes well, your desktop should now have 3D effects, and you should see the red Beryl gem in the top right corner of your desktop: </p>
<p><img src="http://static.howtoforge.com/images/beryl_centos5.0/1.jpg" height="344" width="550" /></p>
<p><img src="http://static.howtoforge.com/images/beryl_centos5.0/2.jpg" height="344" width="550" /></p>
<p><img src="http://static.howtoforge.com/images/beryl_centos5.0/3.jpg" height="344" width="550" /></p>
<p><img src="http://static.howtoforge.com/images/beryl_centos5.0/4.jpg" height="344" width="550" /></p>
<p><img src="http://static.howtoforge.com/images/beryl_centos5.0/5.jpg" height="344" width="550" /></p>
<p><img src="http://static.howtoforge.com/images/beryl_centos5.0/6.jpg" height="344" width="550" /></p>
<p>&nbsp;</p>
<h3>3 Make Beryl Start Automatically</h3>
<p>Of course, you don&#8217;t want to start Beryl manually each time you log in to your desktop. Fortunately, there&#8217;s a way to make it start automatically. Open a terminal (<span class="system">Applications &gt; Accessories &gt; Terminal</span>) and become root by typing:</p>
<p class="command">su</p>
<p>First, we create the file <span class="system">/usr/bin/startberyl.sh</span>:</p>
<p class="command">gedit /usr/bin/startberyl.sh</p>
<pre>#!/bin/sh
beryl-manager
sleep 4
exec gnome-session</pre>
<p>Then we make it executable:</p>
<p class="command">chmod a+x /usr/bin/startberyl.sh</p>
<p>Afterwards, we create the file <span class="system">/usr/share/xsessions/Beryl.desktop</span>:</p>
<p class="command">gedit /usr/share/xsessions/Beryl.desktop</p>
<pre>[Desktop Entry]
Encoding=UTF-8
Name=Beryl
Exec=/usr/bin/startberyl.sh
Icon=
Type=Application</pre>
<p>Then we log out of our current desktop session. On the login screen, go to <span class="system">Session</span>, choose <span class="system">Beryl</span> and click on the <span class="system">Change Session</span> button. Then log in with your username and password. You will then be asked:</p>
<p class="system">Do you wish to make Beryl the default for future sessions?</p>
<p>You can choose between <span class="system">Just For This Session</span> and <span class="system">Make Default</span>. If this is your first try, I recommend to select <span class="system">Just For This Session</span> to see if Beryl really starts automatically. If it works, you can select <span class="system">Make Default</span> at the next login. </p>
<p>&nbsp;</p>
<h3>4 Customize Beryl Behaviour And Window Themes</h3>
<p>If you like to modify Beryl&#8217;s behaviour and effects, you can go to <span class="system">Applications &gt; System Tools &gt; Beryl Settings Manager</span>. You can then customize Beryl: </p>
<p><img src="http://static.howtoforge.com/images/beryl_centos5.0/7.jpg" height="344" width="550" /></p>
<p>To change window decorations and themes, you must start the <span class="system">Emerald Theme Manager</span> by going to <span class="system">System &gt; Preferences &gt; More Preferences &gt; Emerald Theme Manager</span>:</p>
<p><img src="http://static.howtoforge.com/images/beryl_centos5.0/8.jpg" height="344" width="550" /></p>
<p>&nbsp;</p>
<h3>5 Links</h3>
<ul>
<li>CentOS: http://www.centos.org</li>
<li>Beryl: http://www.beryl-project.org</li>
</ul>
<p>Copyright © 2007 Falko Timme<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>Enabling Beryl On A PCLinuxOS 2007 Desktop</li>
<li>Using Compiz, Beryl, And Metisse On A Mandriva 2007 Spring Desktop</li>
<li>Installing Beryl Or Compiz Fusion On A Fedora 7 Desktop</li>
<li>Installing Beryl On An Ubuntu Feisty Fawn Desktop With An ATI Radeon Graphic Card</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/488.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The (Almost) Perfect Setup &#8211; Debian Sarge (3.1) On A Strato Dedicated-Server (With ISPConfig)</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/496.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/496.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 13:12:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/496.html</guid>
		<description><![CDATA[The (Almost) Perfect Setup &#8211; Debian Sarge (3.1) On A Strato Dedicated-Server (With ISPConfig) Based and abuttet to the HowTo &#8211; The Perfect Setup Debian Sarge (3.1) &#8211; of Falko Timme I wrote this HowTo &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/496.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[<h2>The (Almost) Perfect Setup &#8211; Debian Sarge (3.1) On A Strato Dedicated-Server (With ISPConfig)</h2>
<p>Based and abuttet to the HowTo &#8211; The Perfect Setup Debian Sarge (3.1) &#8211; of Falko Timme I wrote this <b>HowTo for STRATO-Server</b>, because Strato has some specifics in it´s Debian Sarge (3.1) &#8211; Image.</p>
<p>Let me say first: This is one way of many possible, but I try this more than one time and <b>it works</b>.</p>
<p>Anyway I must say to you, too =&gt; <b>If you use this HowTo you do it on your own risk ! You will lose all Files on the Strato-Server, ´cause we start with a brandnew installation of the Debian-Image !</b> If you have question mail me or send me a PM.</p>
<p>If you want to have it in german language please mail me, too.</p>
<p class="highlight">Wer diese Anleitung auf deutsch haben möchte, muss mir nur eine eMail oder PN schreiben.</p>
<p>You will need: </p>
<li>a Strato &#8211; Dedicatet Server</li>
<li>WinSCP3 and Putty or similar software on your computer at home</li>
<p>We use (based on the HowTo by Falko Timme) for the Server: </p>
<li>Apache 2 as web-server</li>
<li>Postfix as mailserver</li>
<li>Courier-POP3 and Courier-IMAP for eMail, too</li>
<li>BIND as DNS-server</li>
<li>proftpd as FTP-server</li>
<li>Webalizer for statistics</li>
<h3>STEP 1 &#8211; Install a new Debian-Image 3.1 with the Strato-Konfigurationsmenü</h3>
<li>choose <span class="system">Serverkonfiguration</span></li>
<li>choose <span class="system">Neuinstallation</span></li>
<li>mark the Box and choose <span class="system">Debian GNU/Linux 3.1 für Profis</span></li>
<li>click on <span class="system">weiter</span></li>
<li>fill in the code you will see</li>
<p class="highlight">Don´t forget:</p>
<p><b>You will lose all Files on the Strato-Server, </p>
<p>´cause we start with a brandnew installation of the Debian-Image !</b></p>
<li>if you´re sure that you want it, click on <span class="system">weiter</span></li>
<li>wait until you get the eMail from Strato that the reinstallation is finished.</li>
<h3>STEP 2 &#8211; Update the Debian Sarge Image</h3>
<li>login your server as root by Putty</li>
<li>copy here the code and paste it in Putty</li>
<li>follow the instructions</li>
<p class="command">apt-get update</p>
<p>If you´re asked that you want to stop now, ´cause a new kernel will be installed answer with <b>no</b>.</p>
<p>But don´t forget to reboot your server after this upgrade. </p>
<p class="command">apt-get dist-upgrade</p>
<p class="command">apt-get upgrade</p>
<p>(If someone said, that this is to much update and -grade, let me first answer:</p>
<p>I try it many times and it works everytime a little bit other &#8211; and rather one time often than one time too little.) </p>
<h3>STEP 3 &#8211; Add some more nameservers</h3>
<li>open and edit the file <span class="system">/etc/resolv.conf</span></li>
<li>add some more nameservers (only if you want)</li>
<pre>nameserver 81.169.163.104
nameserver 81.169.163.106
search serverkompetenz.net
nameserver <i>ip.number.from.another</i></pre>
<h3>STEP 4 &#8211; Setting the hostname</h3>
<p>Instead of <span class="system">server1.example.com</span> put in your real serverdomain (h12345.serverkompetenz.net)
<pre>echo <span class="system">server1.example.com</span> &gt; /etc/hostname
/bin/hostname -F /etc/hostname</pre>
<h3>STEP 5 &#8211; Install needed and missing software and remove unneeded software</h3>
<p class="command">apt-get install make gcc g++ cpp wget flex bzip2 rdate fetchmail libdb3++-dev unzip zip ncftp xlispstat libarchive-zip-perl zlib1g-dev libpopt-dev nmap openssl lynx fileutils <i><b>(all in one line!)</b></i></p>
<p>Answer the questions with the default answers. </p>
<p class="command">update-rc.d -f exim remove</p>
<p>update-inetd &#8211;remove daytime</p>
<p>update-inetd &#8211;remove telnet</p>
<p>update-inetd &#8211;remove time</p>
<p>update-inetd &#8211;remove finger</p>
<p>update-inetd &#8211;remove talk</p>
<p>update-inetd &#8211;remove ntalk</p>
<p>update-inetd &#8211;remove ftp</p>
<p>update-inetd &#8211;remove discard</p>
<p>/etc/init.d/inetd reload</p>
<h3>STEP 6 &#8211; Install and configure quota</h3>
<p class="command">apt-get install quota quotatool</p>
<p>Answer the question with <b>no</b>. </p>
<li>open and edit the file <span class="system">/etc/fstab</span></li>
<pre># /etc/fstab: static file system information.
#
# file system     mount point    type     options                  dump pass
/dev/sda1         /boot          ext2     nosuid,nodev             0    2
/dev/sda2         none           swap     sw                       0    0
/dev/sda3         /              ext3     defaults,errors=remount-ro,usrquota,grpquota 0       1
proc              /proc          proc     defaults                 0    0
</pre>
<li>run the following steps:</li>
<p class="command">touch /quota.user /quota.group</p>
<p>chmod 600 /quota.*</p>
<p>mount -o remount /</p>
<p>quotacheck -avugm</p>
<p>quotaon -avug</p>
<ul>
<li class="leaf">The (Almost) Perfect Setup &#8211; Debian Sarge (3.1) On A Strato Dedicated-Server (With ISPConfig) &#8211; Page 2</li>
<li class="leaf">The (Almost) Perfect Setup &#8211; Debian Sarge (3.1) On A Strato Dedicated-Server (With ISPConfig) &#8211; Page 3</li>
</ul>
<p> next The (Almost) Perfect Setup &#8211; Debian Sarge (3.1) On A Strato Dedicated-Server (With ISPConfig) &#8211; Page 2<br />Copyright © 2006 Tobias Groebe<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>The Perfect Setup &#8211; Debian Sarge (3.1)</li>
<li>The Perfect Setup &#8211; Ubuntu 6.06 LTS Server (Dapper Drake)</li>
<li>The Perfect Setup &#8211; Fedora Core 5 (64-bit)</li>
<li>The Perfect Setup &#8211; SuSE 10.1 (32-bit)</li>
<li>The Perfect Setup &#8211; CentOS 4.3 (64-bit)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/496.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/500.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/500.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 13:12:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/500.html</guid>
		<description><![CDATA[Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk Version 1.0 Author: C. Troy Popplewell Visit the Endorsoft.com forums at http://www.endorsoft.com/forums . Last edited: 02/10/2006 Overview This tutorial explains how I was able to setup &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/500.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[<p><P><B><SPAN>Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk</span></b></p>
<p><P>Version 1.0</p>
<p><P>Author: C. Troy Popplewell</p>
<p><P>Visit the Endorsoft.com forums at http://www.endorsoft.com/forums .</p>
<p><P>Last edited: 02/10/2006</p>
<p><P></p>
<p><P></p>
<p><P><U><SPAN>Overview </span></u></p>
<p><P>This tutorial explains how I was able to setup a web server in order to support Java Server Pages (JSP) and Servlets using virtually hosted websites. Although this setup worked for this particular environment, I can make no guarantees that it will work for yours, but it should with some tweaking. Iâ€™ll explain later on. I have spent a lot of time gathering several resources in order to get this to work. Many portions of these resources have been deprecated and required a few workarounds. It is my intention that this tutorial will help anyone that has attempted to install such a system without success. If you find any inconsistencies within this tutorial, please notify me at the email address above. </p>
<p><P></p>
<p><P><U><SPAN>Outlook </span></u></p>
<p><P>The ultimate goal is to provide instructions on how to incorporate JSP/Servlet support on the ISPConfig web hosting software. I felt it was necessary to provide this first segment separately for those that do not wish to use the ISPConfig web hosting control panel. </p>
<p><P></p>
<p><P><U><SPAN>System Details </span></u></p>
<p><P>The system used in this tutorial has the following installed:</p>
<p><P><B>Operating System:</b> Debian Sarge (3.1) http://www.debian.org/ </p>
<p><P><B>Webserver:</b> Apache 2.0.54 http://www.apache.org/ </p>
<p><P><B>JDK: </b>JDK 5.0 http://java.sun.com/j2se/1.5.0/download.jsp </p>
<p><P><B>Servlet Container:</b> Tomcat http://tomcat.apache.org/</p>
<p><P><B>Tomcat</b> <B>Connector:</b> Jakarta Tomcat Connector mod_jk (not mod_jk2)</p>
<p><P></p>
<p><P><U><SPAN>Debian Sarge (3.1) </span></u></p>
<p><P>If you plan on utilizing ISPConfig to host your websites with Debian Sarge, I highly recommend the how-to provided by Falko Timme here: The Perfect Setup &#8211; Debian Sarge (3.1) which prepares your system to support ISPConfig. There are â€œPerfect Setupâ€? tutorials for other distributions as well. Otherwise, you should be able to find many other resources on the internet for installing Debian. This tutorial is specifically based on configuring Apache and Tomcat to work on Debian using the mod_jk connector. </p>
<p><P></p>
<p><P><U><SPAN>Apache2 </span></u></p>
<p><P>Since installing Apache is beyond the scope of this tutorial, I will assume that you already have Apache 2.0.x installed and running. If you need instructions on installing and configuring Apache 2.0.x please refer to the documentation at the Apache website. Again, you can also find instruction here: The Perfect Setup &#8211; Debian Sarge (3.1).</p>
<p><P></p>
<p><P><U><SPAN>Installing JDK (Java Development Kit) </span></u></p>
<p><P>In order to run Tomcat, you will need to install JDK and set the <I><SPAN>JAVA_HOME</span></i> environment variable to identify the location of the JDK environment on your system. I have chosen to use JDK 5.0.</p>
<p><P></p>
<p><OL type="1"><br />
<LI>You can download JDK 5.0 at http://java.sun.com/j2se/1.5.0/download.jsp. </li>
</ol>
<p><P></p>
<p><OL type="1" start="2"><br />
<LI>Click on <I><SPAN>Download JDK 5.0 Update 6</span></i> to go to the download page.</li>
</ol>
<p><P></p>
<p><OL type="1" start="3"><br />
<LI>Click <I><SPAN>Accept</span></i> to accept the license agreement.</li>
</ol>
<p><P></p>
<p><OL type="1" start="4"><br />
<LI>Next choose the <I><SPAN>Linux self-extracting file</span></i>. This is the download for the self-extracting binary file rather than the rpm.</li>
</ol>
<p><P></p>
<p><OL type="1" start="5"><br />
<LI>Download to your preferred download directory. Change to that directory and make it executable by executing the following command:</li>
</ol>
<p><P><SPAN>chmod +x jdk-1_5_0_06-linux-i586.bin </span></p>
<p><P></p>
<p><OL type="1" start="6"><br />
<LI>Now execute the file:</li>
</ol>
<p><P><SPAN>./jdk-1_5_0_06-linux-i586.bin</span></p>
<p><P></p>
<p><OL type="1" start="7"><br />
<LI>You should now have a new directory called <I><SPAN>j2sdk1.5-sun</span></i>. Now move this directory to the location where it should be run. I chose <I><SPAN>/usr/lib/.</span></i></li>
</ol>
<p><P><SPAN>mv j2sdk1.5-sun /usr/lib</span></p>
<p><P></p>
<p><OL type="1" start="8"><br />
<LI>Now create a symbolic link called <I>jdk </i>to <I><SPAN>JAVA_HOME </span></i>by the following command. This allows you to easily switch back and forth between different jvms should you ever need to</li>
</ol>
<p><P><SPAN>cd /usr/lib</span></p>
<p><P><SPAN>ln -s j2sdk1.5-sun jdk</span></p>
<p><OL type="1" start="8"><br />
<LI>Now we need to set the <I><SPAN>JAVA_HOME</span></i> environment variable. Add the following at the end of <I><SPAN>/etc/profile</span></i> just after <I><SPAN>export PATH</span></i>.</li>
</ol>
<p><P><SPAN>JAVA_HOME=&#8221;/usr/lib/jdk&#8221;</span></p>
<p><P><SPAN>export JAVA_HOME</span></p>
<p><P></p>
<p><P>/etc/profile is executed at startup and when a user logs into the system. In order to update the environment you will need to log out and log back in to the system.</p>
<p><P></p>
<p><P></p>
<p><P></p>
<p><OL type="1" start="10"><br />
<LI>Check to make sure <I><SPAN>JAVA_HOME</span></i> is defined correctly by executing the command below. This should report the location of the Java SDK which should be <I><SPAN>/usr/lib/jdk</span></i>. </li>
</ol>
<p><P><SPAN>echo $JAVA_HOME</span></p>
<p><P></p>
<p><OL type="1" start="11"><br />
<LI>Now test Java with the following command. You should be returned with <I><SPAN>/usr/bin/java</span></i><SPAN>. </span>If so, you have successfully completed this section.</li>
</ol>
<p><P><SPAN>which java</span></p>
<p><P></p>
<p><P></p>
<p><P><U><SPAN>Installing Tomcat </span></u></p>
<p><P>In this section you will download and install Apache Tomcat 5.5.15. For this particular setup, there is no need to build the package from source, we will download the binary version.</p>
<p><P></p>
<p><OL type="1"><br />
<LI>Download the binary version to your preferred download directory from here: http://tomcat.apache.org/download-55.cgi. Choose the <I><SPAN>tar.gz</span></i> from the <I><SPAN>core</span></i> section for 5.5.15.</li>
</ol>
<p><P></p>
<p><OL type="1" start="2"><br />
<LI>Now change to that directory and extract the files using the following command:</li>
</ol>
<p><P><SPAN>cd /mydownloads <I>(be sure to change to your download directory)</i></span></p>
<p><P><SPAN>tar xvzf apache-tomcat-5.5.15.tar.gz</span></p>
<p><P></p>
<p><OL type="1" start="3"><br />
<LI>You should now have a new directory called <I><SPAN>apache-tomcat-5.5.15</span></i>. Now move this directory to the location where it should be installed. Again, I chose <I><SPAN>/usr/lib/.</span></i><SPAN> </span>Note that this location will be referred to as <I><SPAN>CATALINA_HOME</span></i> in the Tomcat documentation.</li>
</ol>
<p><P><SPAN>mv apache-tomcat-5.5.15 /usr/lib</span></p>
<p><P></p>
<p><OL type="1" start="4"><br />
<LI>Next change to the <I><SPAN>/usr/lib/ </span></i>directory.</li>
</ol>
<p><P><SPAN>cd /usr/lib</span></p>
<p><P></p>
<p><OL type="1" start="5"><br />
<LI>Now create a symbolic link called <I>apache-tomcat </i>to <I><SPAN>CATALINA_HOME </span></i>by the following command. </li>
</ol>
<p><P><SPAN>ln -s apache-tomcat-5.5.15 apache-tomcat</span></p>
<p><P></p>
<p><P>This will save you from having to make changes to startup and shutdown scripts each time you upgrade Tomcat and if you so desire, it also allows you to keep several versions of Tomcat on your system and easily switch amongst them.</p>
<p><P></p>
<p><OL type="1" start="6"><br />
<LI>You should now be able to start and stop Tomcat from the <I><SPAN>CATALINA_HOME/bin</span></i> directory. If you are using another shell other than the bash shell you will nee to add <I><SPAN>sh</span></i> to the beginning of the command. You should now be able to test that Tomcat is installed by starting it and opening your browser and entering <SPAN>http://localhost:8080</span> into your browser. Port 8080 is the default port for Tomcat and can be easily changed in the <SPAN>/usr/lib/apache-tomcat/conf/server.xml </span>file. (We will work with this file later on.) If you plan to access this page remotely, be sure to forward the respective port to your serverâ€™s IP address within your router. You should now see the Tomcat welcome page that contains links to Tomcat documentation as well as sample JSP/Servlet scripts. Verify that Tomcat is running by executing some of the examples found on the welcome page.</li>
</ol>
<p><P><SPAN>cd /usr/lib/apache-tomcat/bin</span></p>
<p><P><SPAN>sh startup.sh</span></p>
<p><P></p>
<p><P>To shutdown the server, you will need to execute the following command. Feel free to try it, but for now we will leave Tomcat running.</p>
<p><P><SPAN>sh shutdown.sh</span></p>
<p><P></p>
<ul>
<li class="leaf">Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk &#8211; Page 2</li>
<li class="leaf">Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk &#8211; Page 3</li>
<li class="leaf">Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk &#8211; Page 4</li>
</ul>
<p> next Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk &#8211; Page 2<br />Copyright © 2006 C. Troy Popplewell<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>Simple Apache 2 Tomcat 5 mod_jk integration</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/500.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building A Virtual Server (VPS) With Debian 3.1 (Sarge) And OpenVZ</title>
		<link>http://www.coastalcompanionbirdsanctuary.org/html/495.html</link>
		<comments>http://www.coastalcompanionbirdsanctuary.org/html/495.html#comments</comments>
		<pubDate>Sat, 04 Feb 2012 13:11:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.coastalcompanionbirdsanctuary.org/html/495.html</guid>
		<description><![CDATA[This is a &#8220;copy &#38; paste&#8221; HowTo! The easiest way to follow this tutorial is to use a command line client/SSH client (like PuTTY for Windows) and simply copy and paste the commands (except where &#8230;<span class="more-link-span"><a href="http://www.coastalcompanionbirdsanctuary.org/html/495.html" class="more-link">Read More </a></span>]]></description>
			<content:encoded><![CDATA[</p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>This is a <i>&#8220;copy &amp; paste&#8221;</i> HowTo!</b> The easiest way to follow this tutorial is to use a command line client/SSH client (like PuTTY for Windows) and simply copy and paste the commands (except where you have to provide own information like IP addresses, hostnames, passwords,&#8230;). This helps to avoid typos.</font>
</p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="3"><b>Building A Virtual Server (VPS) With Debian 3.1 (Sarge) And OpenVZ</b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Version 1.2<br />
  Author: Till Brehm &lt;t.brehm [at] howtoforge [dot] com &gt;<br />
Last edited 09/07/2006</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">In this HowTo I will describe  the steps to be taken to prepare a server for OpenVZ virtual machines  on Debian 3.1 (Sarge) 32Bit Linux. With OpenVZ you can create multiple Virtual Private Servers (VPS) on the same hardware, similar to Xen and the Linux Vserver project. OpenVZ is the open-source branch of Virtuozzo, a commercial virtualization solution used by many providers that offer virtual servers. The OpenVZ kernal patch is licensed under the GPL license, and the user-level tools are under the QPL license. </font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">In the first chapter I will compile the linux kernel for Debian with the OpenVZ<br />
  patches. This results in an easy-to-install .deb package. This is nescessary when<br />
  you need drivers that are not compiled in the stock kernel that is avilable from systs.org.&nbsp;<br />
  You can skip the first chapter if the precompiled kernel fulfills your needs<br />
and install the kernel as described in chapter 1.2.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2"><b>Please note:</b> if you want to use the precompiled OpenVZ kernel, you can skip the sections 1 and 1.1 and go directly to 1.2. If you want to compile your own kernel, please read the sections 1 and 1.1 before you proceed with 1.2.</font></p>
</p>
<h4><font face="Verdana, Arial, Helvetica, sans-serif">1 Prepare Your Server To Host Virtual Private Servers</font> </h4>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">First we install some prerequisites for the kernel compilation.</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">apt-get install kernel-package libncurses5-dev fakeroot wget bzip2</font> </i></font></p>
</p>
<h4><b><font face="Verdana, Arial, Helvetica, sans-serif">1.1 Compiling The OpenVZ linux kernel</font> </b></h4>
<p><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">Downloading The Kernel Sources  </font></b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">The OpenVZ patch is currently available for the kernel 2.6.8 only. We will use the vanilla kernel from kernel.org and patch and configure it for our needs. To download and unpack the sources, execute the following commads: </font></p>
<p><font face="Courier New, Courier, mono"><i><br />
<font size="2">cd /usr/src<br />
wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.8.tar.bz2<br />
tar xjf linux-2.6.8.tar.bz2<br />
cd linux-2.6.8/</font></i></font></p>
</p>
<p><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">Getting The OpenVZ Patch And Patch The Kernel</font></b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Now we download the OpenVZ kernel patch from OpenVZ.org and apply it to the kernel sources. </font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">wget http://download.openvz.org/kernel/stable/022stab078.14/patches/patch-022stab078-combined.gz<br />
  gzip -d<br />
patch-022stab078-combined.gz<br />
patch -p1 &lt; patch-022stab078-combined</font></i></font></p>
</p>
<p><font face="Verdana, Arial, Helvetica, sans-serif"><b><font size="2">Getting The Kernel Config For OpenVZ</font></b></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">OpenVZ.org offers several kernel configurations from generic i686 to enterprise configurations. I select the generic i686 configuration. You may select another config depending on your hardware and processor. The configs can be downloaded from here: http://openvz.org/download/kernel/</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">wget http://download.openvz.org/kernel/stable/022stab078.14/configs/kernel-2.6.8-022stab078-i686.config.ovz</font> </i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Now run &#8220;<i><font face="Courier New, Courier, mono">make menuconfig</font></i>&#8220;, select &#8220;<i><font face="Courier New, Courier, mono">Load an alternate configuration file</font></i>&#8221; and select the file &#8220;<i><font face="Courier New, Courier, mono">/usr/src/linux-2.6.8/kernel-2.6.8-022stab078-i686.config.ovz</font></i>&#8220;.</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">make menuconfig</font></i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">If you have some special kernel config requirements, change them now. Then select <font face="Courier New, Courier, mono"><i>Exit</i></font> and then <font face="Courier New, Courier, mono"><i>Save</i></font> to save the kernel configuration.</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">make-kpkg clean</font></i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Now we compile the kernel. </font></p>
<p><font face="Courier New, Courier, mono"><i> <font size="2">fakeroot make-kpkg &#8211;revision=OpenVZ.2.6.8 kernel_image</font></i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">If the compilation stops with an error, run</font></p>
<p><font size="2"><i><font face="Courier New, Courier, mono">make clean</font></i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">and then re-run the previous commands starting with</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">make menuconfig</font></i></font></p>
</p>
<h4><font face="Verdana, Arial, Helvetica, sans-serif">1.2 Installing The OpenVZ Kernel</font></h4>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">If you have skipped the first chapter, you can install the precompiled Debian kernel now.</font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Add the repository for the OpenVZ Tools to <font face="Courier New, Courier, mono"><i>/etc/apt/sources.list</i></font>:</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">echo &#8220;</font></i></font><font face="Courier New, Courier, mono"><i><font size="2">deb http://debian.systs.org/ stable openvz</font></i></font><font face="Courier New, Courier, mono"><i><font size="2">&#8221; &gt;&gt; /etc/apt/sources.list<br />
apt-get update</font></i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Install the packages:</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">apt-get install </font></i></font><i>kernel-image-2.6.8-stable-ovz</i></p>
</p>
<h4><font face="Verdana, Arial, Helvetica, sans-serif">1.3 Installing OpenVZ Tools</font> </h4>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Install the packages:</font></p>
<p><font face="Courier New, Courier, mono"><i><font size="2">apt-get install vzctl vzquota vzctl-template<br /></font></i></font></p>
<p><font face="Verdana, Arial, Helvetica, sans-serif" size="2">Now you should reboot your server:</font></p>
<p><i><font face="Courier New, Courier, mono" size="2">shutdown -r now</font></i> 
</p>
<ul>
<li class="leaf">Building A Virtual Server (VPS) With Debian 3.1 (Sarge) And OpenVZ &#8211; Page 2</li>
<li class="leaf">Building A Virtual Server (VPS) With Debian 3.1 (Sarge) And OpenVZ &#8211; Page 3</li>
</ul>
<p> next Building A Virtual Server (VPS) With Debian 3.1 (Sarge) And OpenVZ &#8211; Page 2<br />Copyright © 2006 Till Brehm<br />All Rights Reserved.</p>
<h2 class="title"><span style="margin-top:5px;font-weight:bold">Related Tutorials</span></h2>
<ul class="related-links">
<li>The Perfect Xen 3.0 Setup For Debian</li>
<li>How to set up Xen 3.0 from binaries in Ubuntu 6.06 LTS (Dapper Drake)</li>
<li>The Perfect Xen Setup For Debian And Ubuntu</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.coastalcompanionbirdsanctuary.org/html/495.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

