<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:ref="http://purl.org/rss/1.0/modules/reference/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns="http://purl.org/rss/1.0/">
	<channel rdf:about="http://www.cyberbyte.ch/blog/rss.rdf">
		<title>Sysadmin Blog</title>
		<link>http://www.cyberbyte.ch/blog/index.php</link>
		<description><![CDATA[Copyright Cyberbyte Networks]]></description>
		<items>
			<rdf:Seq>
				<rdf:li resource="http://www.cyberbyte.ch/blog/index.php?entry=entry140414-121759" />
				<rdf:li resource="http://www.cyberbyte.ch/blog/index.php?entry=entry131022-230042" />
				<rdf:li resource="http://www.cyberbyte.ch/blog/index.php?entry=entry120929-211121" />
				<rdf:li resource="http://www.cyberbyte.ch/blog/index.php?entry=entry120929-000000" />
				<rdf:li resource="http://www.cyberbyte.ch/blog/index.php?entry=entry120717-000000" />
				<rdf:li resource="http://www.cyberbyte.ch/blog/index.php?entry=entry120716-000000" />
				<rdf:li resource="http://www.cyberbyte.ch/blog/index.php?entry=entry071110-000000" />
				<rdf:li resource="http://www.cyberbyte.ch/blog/index.php?entry=entry040322-000000" />
			</rdf:Seq>
		</items>
	</channel>
	<item rdf:about="http://www.cyberbyte.ch/blog/index.php?entry=entry140414-121759">
		<title>Postfix Mail Queue Cleaner</title>
		<link>http://www.cyberbyte.ch/blog/index.php?entry=entry140414-121759</link>
		<description><![CDATA[This small shell script removes all messages originating from a certain sender address out of the postfix mail queue.<br /><br /><pre><br />#! /bin/bash<br />if [ &quot;$1&quot; == &quot;&quot; ]; then<br />  echo &quot;please give e-mail address&quot;<br />  exit 1<br />else<br />  emailaddr=$1<br />fi<br />for id in `mailq | egrep &quot;[0-9A-F]{10} &quot; | grep &quot;$emailaddr&quot; | cut -d &quot; &quot; -f 1`<br />do<br />  echo $id<br />  postsuper -d $id<br />done<br /><br /></pre>]]></description>
	</item>
	<item rdf:about="http://www.cyberbyte.ch/blog/index.php?entry=entry131022-230042">
		<title>DNS Tools</title>
		<link>http://www.cyberbyte.ch/blog/index.php?entry=entry131022-230042</link>
		<description><![CDATA[Web Interface for DNS Queries.<br /><br /><h2>Download</h2><br /><a href="http://www.cyberbyte.ch/Linux/dnstools.tar.gz" >Download the tarball</a><br /><br /><h2>Prerequisites</h2><br />The &quot;dig&quot; tool must be installed on your system, and be allowed to be executed from php. If it doesn&#039;t work, e.g. if using safe_mode and/or open_basedir restrictions, add the path where dig is located to the two php options:<br /><pre>open_basedir /usr/bin/dig<br />safe_mode_exec_dir /usr/bin/</pre>Within a VirtualHost, set with php_admin_value &lt;option&gt;.<br /><br />In addition, TCP port 43 and UDP port 53 need to be open outbound.<br /><br /><h2>Installation</h2><br />Extract the content of the archive within your web root of the webserver, e.g.<br /><pre>cd &lt;webroot&gt;<br />tar xvzf dnstools.tar.gz</pre><br /><h2>Usage</h2><br />Navigate your web-browser to <a href="http://&lt;your_host_name&gt;/dnstools/" >http://&lt;your_host_name&gt;/dnstools/</a> and enter either the appropriate form.<br />]]></description>
	</item>
	<item rdf:about="http://www.cyberbyte.ch/blog/index.php?entry=entry120929-211121">
		<title>QEMU/KVM Virtual Host Manager</title>
		<link>http://www.cyberbyte.ch/blog/index.php?entry=entry120929-211121</link>
		<description><![CDATA[<h2>Description</h2><br />This tiny script shows you a overview of the virtual machines on QEMU/KVM carrier servers using libvirt as management interface.<br /><br />It can either show all virtual machines or only the running VMs.<br /><br /><h2>Prerequisites</h2><br />This PHP Script requires PHP extension <a href="https://libvirt.org/php/" >libvirt-php</a><br /><br /><h2>Download</h2><br />Download the <a href="http://www.cyberbyte.ch/Linux/virtmgr/virtmgr.tar.gz" >gzip&#039;ped tar archive</a><br /><br /><h2>Installation</h2><br />    Unpack the archive to a webserver document root with direct access to your libvirt hypervisors over TCP Port 16509 or SSH<br /><br />    Adapt at least the variables <code>$dnsdomain</code> and <code>$arr_hosts</code> to your infrastructure and change <code>$comtype</code> to &quot;qemu+ssh&quot; when SSH instead of direct port access is wanted<br /><br />    Try it out using <code>http://yourwebserver/virtmgr/index.php</code><br />]]></description>
	</item>
	<item rdf:about="http://www.cyberbyte.ch/blog/index.php?entry=entry120929-000000">
		<title>Postfix Mail Queue Manager</title>
		<link>http://www.cyberbyte.ch/blog/index.php?entry=entry120929-000000</link>
		<description><![CDATA[<h2>Description</h2><br />This PHP script shows the content of the mail queues of multiple servers and give you the possibility to hold, release, delete and reqeue single messages. <br /><br />If you install a tiny wrapper script on mail servers, you may even remove or requeue multiple messages from a certain sender.<br /><br />In addition, you can also requeue all messages (<code>sendmail -q</code>).<br /><br /><h2>Download</h2><br />Download the <a href="http://www.cyberbyte.ch/Linux/mail/mailqmgr.tar.gz" >gzip&#039;ped tar archive</a><br /><br /><h2>Prerequisites:</h2><br />On a web- or intranet accessible host (access protection highly recommended!):<br />- Web Server with PHP script language support (<code>shell_exec</code> function has to be enabled)<br />- Key-based SSH access to mail servers for webserver user<br /><br />On mail servers:<br />- Postfix<br />- sudo<br /><br /><h2>Installation</h2><br />    Unpack the archive beneath a webserver document root<br /><br />    Adapt the variables $mailservers and $user to your needs, if you like to use the selection by sender e-mail address feature, configure also variable $wrapper_cmd<br /><br />    Add the following lines to <code>/etc/sudoers</code> on the mail server(s), assuming user <code>admin</code> for login to the mail server(s) (change it to your needs):<br /><br /><pre>admin    ALL=(ALL) NOPASSWD: /usr/sbin/postsuper<br />admin    ALL=(ALL) NOPASSWD: /usr/sbin/postqueue<br />admin    ALL=(ALL) NOPASSWD: /usr/local/bin/mailqueue.sh</pre>(last line only needed for selection by sender address)<br /><br />    If you want to use the selection by e-mail address feature, put mailqueue.sh to some path on the mail server(s) and make it executable, e.g.:<br /><pre>cp mailqueue.sh /usr/local/bin/mailqueue.sh<br />chmod 755 /usr/local/bin/mailqueue.sh</pre><br />    Try it out using <code>http://yourwebserver/mailqmgr/index.php</code>]]></description>
	</item>
	<item rdf:about="http://www.cyberbyte.ch/blog/index.php?entry=entry120717-000000">
		<title>Remove Apache VirtualHost section</title>
		<link>http://www.cyberbyte.ch/blog/index.php?entry=entry120717-000000</link>
		<description><![CDATA[This small <a href="http://www.cyberbyte.ch/Linux/Apache/remove_virtual.pl" >perl script</a> removes a VirtualHost configuration section<br /><br />Call with:<br /><pre>remove_virtual.pl &lt;webname&gt; &lt;apache conf file&gt;</pre><br /><code>&lt;webname&gt;</code> is to be replaced with the FQDN of the name based virtual host (ServerName)<br /><br /><code>&lt;apache conf file&gt;</code> is the full path to the apache configuration file that contains the VirtualHost]]></description>
	</item>
	<item rdf:about="http://www.cyberbyte.ch/blog/index.php?entry=entry120716-000000">
		<title>Schweizer Fernsehen (SF) Podcasts</title>
		<link>http://www.cyberbyte.ch/blog/index.php?entry=entry120716-000000</link>
		<description><![CDATA[For this stuff to work, you need the alternative firmware WDLXTV for your WD TV Live Box. You can get that from the <a href="http://wiki.wdlxtv.com/Main_Page" >WDLXV site</a>.<br /><br />Simply get the <a href="http://www.cyberbyte.ch/Linux/wdlxtv/dailypodcasts.xml" >file</a> and copy it to /conf/ directory on your WD TV Live wdlxtv pimp&#039;ed box:<br /><pre> scp dailypodcasts.xml root@ip_of_your_wdtv:/conf/ </pre><br />(if you have trouble downloading the file, e.g. get displayed XML code, use &quot;Save As...&quot; function of your browser)]]></description>
	</item>
	<item rdf:about="http://www.cyberbyte.ch/blog/index.php?entry=entry071110-000000">
		<title>Data Synchronisation scripts for rsync</title>
		<link>http://www.cyberbyte.ch/blog/index.php?entry=entry071110-000000</link>
		<description><![CDATA[Some simple <a href="http://www.cyberbyte.ch/Linux/rsync/sync_scripts.tar.gz" >shell scripts</a> for synchronize your data using rsync.<br /><br />You only have to adapt the variables at the beginning of the scripts according your needs.<br /><br /><h2>rsync_home.sh</h2><br />This one can be used if you have your remote system mounted onto the local file system, e.g. using NFS or SAMBA<br /><br />Variables:<br /><br />    <code>MOUNTPOINT</code>: Path on local system where you have mounted the exported path of remote system<br />    <code>LOCALDIR</code>: Path on local system from where you want to synchronize (by default your home directory)<br />    <code>EXCLUDEFILE</code>: File where you can enter all path&#039;s (one on a line) that shouldn&#039;t be transferred<br />    <code>LOGFILE</code>: File to log output of rsync into<br /><br /><h2>rsync_home_ssh.sh</h2><br />This one is an example if you want to access the remote system over SSH.<br /><br />Variables:<br /><br />    <code>REMOTEHOST</code>: Full qualified host name of remote system<br />    <code>LOCALDIR</code>: Path on local system from where you want to synchronize (by default your home directory)<br />    <code>REMOTEDIR</code>: directory on remote host after the colon (&quot;:&quot;) (by default your home directory)<br />    <code>EXCLUDEFILE</code>: File where you can enter all path&#039;s (one on a line) that shouldn&#039;t be transferred<br />    <code>LOGFILE</code>: File to log output of rsync into<br /><br />Remote Host can be either preset or passed as a command line parameter.<br /><br />For not have to type your passphrase for your ssh key every time, you can store it within your <a href="http://www.openbsd.org/cgi-bin/man.cgi?query=ssh-agent" >SSH agent</a>. ]]></description>
	</item>
	<item rdf:about="http://www.cyberbyte.ch/blog/index.php?entry=entry040322-000000">
		<title>Simple SSL Certificate Authority</title>
		<link>http://www.cyberbyte.ch/blog/index.php?entry=entry040322-000000</link>
		<description><![CDATA[Sometimes, you need some SSL certificates for providing SSL encrypted pages.<br /><br />You can obtain a server certificate from Verisign or Entrust but they&#039;re quite expensive.<br /><br />Or you can make them yourself. Here are some tools to get there. I won&#039;t provide information about cryptology at all, neither you will find a professional PKI solution here.<br /><br />Creating your &quot;own CA&quot; makes only sense for sites where encryption should be in place, without providing official trusted credentials. Every user connecting to your secured site get a warning message every time he connects to your site, until he manually accept your CA Certificate.<br /><br />First you need OpenSSL, the code which deals with digital certificates.<br />    For information on the command options of the OpenSSL tools look at the OpenSSL <a href="http://www.openssl.org/docs/apps/openssl.html" >Documentation</a> (from openssl.org)<br />    Then get the SSL CA-Tools 0.2 (<a href="http://www.cyberbyte.ch/Linux/ssl.ca-0.2.tar.gz" >SSL CA-Tools 0.2</a>). This is a version slightly modified so you can also renew certificates easily.<br />    If you do prefer to use the original version, you can find it here: <a href="http://www.openssl.org/contrib/ssl.ca-0.1.tar.gz" >SSL CA-Tools</a>)<br /><br />The SSL CA-Tools are easy to use scripts which query the necessary information in a dialog and execute the appropriate openssl commands. Untar it somewhere, e.g. under your openssl directory, look at the README, and create a self-signed CA certificate, user- and server certificates and finally sign them with your CA key.]]></description>
	</item>
</rdf:RDF>
