<?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>Debian Tutorials &#187; Etch</title>
	<atom:link href="http://www.debiantutorials.com/category/release/etch-release/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.debiantutorials.com</link>
	<description>Copy/Paste tutorials for Debian Linux</description>
	<lastBuildDate>Wed, 18 Aug 2010 00:35:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring goldfish autoresponder for Postfix</title>
		<link>http://www.debiantutorials.com/configuring-goldfish-autoresponder-for-postfix/</link>
		<comments>http://www.debiantutorials.com/configuring-goldfish-autoresponder-for-postfix/#comments</comments>
		<pubDate>Sat, 07 Aug 2010 13:46:21 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Etch]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Mail]]></category>
		<category><![CDATA[Squeeze]]></category>
		<category><![CDATA[autoresponder]]></category>
		<category><![CDATA[goldfish]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=335</guid>
		<description><![CDATA[goldfish is a quite simple autoresponder for Postfix in conjunction with MySQL, written in PHP. It consists of only one PHP file which can be started through a cronjob. 
In this tutorial, it's assumed that you have already installed Postfix with MySql backend using this tutorial: Installing Postfix with MySql backend and SASL for SMTP [...]]]></description>
			<content:encoded><![CDATA[<p>goldfish is a quite simple autoresponder for Postfix in conjunction with MySQL, written in PHP. It consists of only one PHP file which can be started through a cronjob. </p>
<p>In this tutorial, it's assumed that you have already installed Postfix with MySql backend using this tutorial: <a href="http://www.debiantutorials.net/installing-postfix-with-mysql-backend-and-sasl-for-smtp-authentication/">Installing Postfix with MySql backend and SASL for SMTP authentication</a></p>
<p>1. Install PHP5-CLI (Command Line Interpreter) if it's not already installed</p>
<p><code>apt-get install php5-cli<br />
</code><span id="more-335"></span></p>
<p>2. Create a MySql table for goldfish and a user that has only read access to the users table and read/update access to the autoresponder table (mysql -u root -p)</p>
<p><code>USE mail;<br />
&nbsp;<br />
CREATE TABLE autoresponder (<br />
email varchar(255) NOT NULL,<br />
descname varchar(255) default NULL,<br />
`from` date NOT NULL,<br />
`to` date NOT NULL,<br />
message text NOT NULL,<br />
enabled tinyint(4) NOT NULL default '0',<br />
subject varchar(255) NOT NULL,<br />
PRIMARY KEY (email),<br />
FULLTEXT KEY message (message)<br />
) TYPE=MyISAM;<br />
&nbsp;<br />
-- Insert a sample out of office message for the<br />
-- e-mail address email@example.com<br />
-- Goldfish automatically enables and disables the out of office<br />
-- message according to the from and to dates<br />
-- (in this case: 7th of august to 14th of august 2010)<br />
INSERT INTO autoresponder ('email@example.com', 'Your name', '2010-08-07', '2010-08-14', 'Your message', '1', 'Your subject');<br />
&nbsp;<br />
GRANT SELECT,UPDATE ON mail.autoresponder TO '{username}'@'localhost' IDENTIFIED BY '{password}';<br />
GRANT SELECT ON mail.users TO '{username}'@'localhost' IDENTIFIED BY '{password}';<br />
FLUSH PRIVILEGES;<br />
&nbsp;<br />
exit;<br />
</code></p>
<p><em>Replace {username} and {password} with selected username and password that will be used by goldfish</em></p>
<p><em>We'll use the mail database that was created in the Postfix installation tutorial.</em></p>
<p>3. Download goldfish and put it to any location on the server. In this example I'll place it in /usr/local/goldfish</p>
<p><code>mkdir /usr/local/goldfish<br />
wget http://www.remofritzsche.com/projects/goldfish/download/goldfish-1.1-STABLE.tar.gz<br />
tar zxvf goldfish-1.1-STABLE.tar.gz<br />
mv goldfish-1.1-STABLE/* /usr/local/goldfish/<br />
rm goldfish-1.1-STABLE* -rf # Clean up<br />
</code></p>
<p><em>1.1 was the latest stable version when this tutorial was written. Check this location for updated version: http://www.remofritzsche.com/projects/goldfish/download/</em></p>
<p>4. Configure database information in goldfish (pico /usr/local/goldfish/autoresponder.php)</p>
<p><code>/* Database information */<br />
$conf['mysql_host'] = "localhost";<br />
$conf['mysql_user'] = "{username}";<br />
$conf['mysql_password'] = "{password}";<br />
$conf['mysql_database'] = "mail";<br />
</code></p>
<p><em>Input your MySql server information and the login created in step 2. mysql_host should be localhost in most cases and the mysql_database should be mail (if you didn't choose another name for the database when Postfix was installed with MySql backend)</em></p>
<p>5. Configure database queries in goldfish (pico /usr/local/goldfish/autoresponder.php)</p>
<p><code>/* Database Queries */<br />
&nbsp;<br />
# This query has to return the path (`path`) of the corresponding<br />
# maildir-Mailbox with email-address %m<br />
$conf['q_mailbox_path'] = "SELECT CONCAT('/home/vmail/', SUBSTRING_INDEX(email,'@',-1), '/', SUBSTRING_INDEX(email,'@',1), '/') as `path` FROM users WHERE `email` = '%m'";<br />
</code></p>
<p><em>The database queries begin on line 56 in version 1.1. Replace the q_mailbox_path query with the one shown above. The only change is that the table name is changed from view_users to users.</em></p>
<p>6. Make the vmail user the owner of the goldfish directory and make the php file executable. The vmail user was created when you installed Postfix.</p>
<p><code>chown vmail /usr/local/goldfish -R<br />
chmod 700 /usr/local/goldfish/autoresponder.php<br />
</code></p>
<p>7. Create a cronjob to run goldfish every 5 minutes as the vmail user. It must be running as a user that can read the maildir mailboxes currently located in /home/vmail. (crontab -e)</p>
<p><code>*/5 * * * * vmail /usr/local/goldfish/autoresponder.php<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/configuring-goldfish-autoresponder-for-postfix/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing and configuring Squid proxy server</title>
		<link>http://www.debiantutorials.com/installing-and-configuring-squid-proxy-server/</link>
		<comments>http://www.debiantutorials.com/installing-and-configuring-squid-proxy-server/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 23:05:25 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Etch]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[squid]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/installing-and-configuring-squid-proxy-server/</guid>
		<description><![CDATA[Squid is a caching proxy supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator.
1. Install the Squid package
apt-get install squid

2. Allow your ip network to use the proxy server (pico /etc/squid/squid.conf). Append lines [...]]]></description>
			<content:encoded><![CDATA[<p>Squid is a caching proxy supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-requested web pages. Squid has extensive access controls and makes a great server accelerator.</p>
<p>1. Install the Squid package</p>
<p><code>apt-get install squid<br />
</code><span id="more-218"></span></p>
<p>2. Allow your ip network to use the proxy server (pico /etc/squid/squid.conf). Append lines similar to these to your config </p>
<p>file:</p>
<p><code>acl mynetwork src 192.168.1.0/255.255.255.0<br />
http_access allow mynetwork<br />
</code></p>
<p><em>Replace 192.168.1.0/255.255.255.0 with the network that should be able to use the proxy.</em></p>
<p>3. Don't forward client ip information (optional)</p>
<p><code>forwarded_for off<br />
</code></p>
<p>4. Restart the daemon</p>
<p><code>/etc/init.d/squid restart<br />
</code></p>
<p>5. Configure your web browser or application your would like to use the proxy server to connect to serverip at port 3128.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/installing-and-configuring-squid-proxy-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable root login to SSH</title>
		<link>http://www.debiantutorials.com/disable-root-login-to-ssh/</link>
		<comments>http://www.debiantutorials.com/disable-root-login-to-ssh/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:44:31 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Etch]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=205</guid>
		<description><![CDATA[Allowing root logins to your SSH damon is a big security threat. If the SSH port is open, hackers will probably at some time attempt to brute force your root password. It's a good idea to disable root logins to SSH and instead use a normal user to login and type "su -" to enter [...]]]></description>
			<content:encoded><![CDATA[<p>Allowing root logins to your SSH damon is a big security threat. If the SSH port is open, hackers will probably at some time attempt to brute force your root password. It's a good idea to disable root logins to SSH and instead use a normal user to login and type "su -" to enter the super user shell or sudo to perform tasks that require root privileges.</p>
<p>1. Open the SSH daemon config file and change this line: (pico /etc/ssh/sshd_config)</p>
<p><code>PermitRootLogin no<br />
</code><span id="more-205"></span></p>
<p>2. Restart the SSH daemon</p>
<p><code>/etc/init.d/ssh restart<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/disable-root-login-to-ssh/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding a sudoer to use sudo on Debian</title>
		<link>http://www.debiantutorials.com/adding-a-sudoer-to-use-sudo-on-debian/</link>
		<comments>http://www.debiantutorials.com/adding-a-sudoer-to-use-sudo-on-debian/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:36:59 +0000</pubDate>
		<dc:creator>aip</dc:creator>
				<category><![CDATA[Etch]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://www.debiantutorials.net/?p=203</guid>
		<description><![CDATA[Sudo allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.
1. Create a new user (optional)
adduser user1

2. Make sure sudo is install (installed by default on [...]]]></description>
			<content:encoded><![CDATA[<p>Sudo allows a system administrator to delegate authority to give certain users (or groups of users) the ability to run some (or all) commands as root or another user while providing an audit trail of the commands and their arguments.</p>
<p>1. Create a new user (optional)</p>
<p><code>adduser user1<br />
</code><span id="more-203"></span></p>
<p>2. Make sure sudo is install (installed by default on lenny)</p>
<p><code>apt-get install sudo<br />
</code></p>
<p>3. Add the new user to the sudo-ers list (visudo)</p>
<p><code>user1 ALL=(ALL) ALL<br />
</code></p>
<p><em>This will allow user1 to run all commands that require root privileges. You can also limit the access, <a href="http://www.sudo.ws/sudo/man/sudoers.html" target="_blank">Click here to view the syntax</a></em></p>
<p>4. Save the file by pressing Ctrl-X if you are using Nano/pico or :w if using vi</p>
<p>You can now login as the standard user (user1) and execute commands that require root privileges using sudo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/adding-a-sudoer-to-use-sudo-on-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Setup Trac and Subversion</title>
		<link>http://www.debiantutorials.com/setup-trac-and-subversion/</link>
		<comments>http://www.debiantutorials.com/setup-trac-and-subversion/#comments</comments>
		<pubDate>Mon, 28 Jan 2008 23:38:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Etch]]></category>
		<category><![CDATA[Lenny]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[trac]]></category>

		<guid isPermaLink="false">http://debiantutorials.net/setup-trac-and-subversion/</guid>
		<description><![CDATA[Setup Trac and Subversion
First install packages for both Trac and Subversion. We'll be using Apache to publish the Subversion reposatories
apt-get install python-setuptools trac subversion libapache2-svn

Create the SVN reposatory directory structure, used to create new reposatories later
mkdir /var/svn/
mkdir /var/svn/tmpproject
mkdir /var/svn/tmpproject/branches
mkdir /var/svn/tmpproject/tags
mkdir /var/svn/tmpproject/trunk
Enable the Apache SVN module
a2enmod dav_fs

Create a password file containing users that have access to [...]]]></description>
			<content:encoded><![CDATA[<p>Setup Trac and Subversion</p>
<p>First install packages for both Trac and Subversion. We'll be using Apache to publish the Subversion reposatories<br />
<code>apt-get install python-setuptools trac subversion libapache2-svn<br />
</code></p>
<p>Create the SVN reposatory directory structure, used to create new reposatories later<br />
<code>mkdir /var/svn/<br />
mkdir /var/svn/tmpproject<br />
mkdir /var/svn/tmpproject/branches<br />
mkdir /var/svn/tmpproject/tags<br />
mkdir /var/svn/tmpproject/trunk</code><span id="more-4"></span></p>
<p>Enable the Apache SVN module</p>
<p><code>a2enmod dav_fs<br />
</code></p>
<p>Create a password file containing users that have access to the Subversion reposatories and Trac<br />
<code>htpasswd -c /etc/apache2/svn.passwd user1<br />
htpasswd /etc/apache2/svn.passwd user2<br />
</code></p>
<p>Edit the apache configurations to enable Trac and Subversion SVN (pico /etc/apache2/sites-enabled/000-default). Add the following lines:<br />
<code>&lt;Location /svn&gt;<br />
DAV svn<br />
SVNParentPath /var/svn<br />
SVNAutoversioning on<br />
AuthType Basic<br />
AuthName "Subversion Repository"<br />
AuthUserFile /etc/apache2/svn.passwd<br />
Require valid-user<br />
&lt;/Location&gt;</code></p>
<p>&lt;Directory "/usr/share/trac/htdocs"&gt;<br />
Options Indexes MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;</p>
<p>Alias /trac "/usr/share/trac/htdocs"<br />
Create a directory for Trac projects<br />
<code>mkdir /var/trac<br />
</code></p>
<p><strong>Create projects</strong></p>
<p>Subversion reposatory<br />
<code>svnadmin create /var/svn/myproject --fs-type fsfs<br />
svn import /var/svn/tmpproject file:///var/svn/myproject -m "initial import"<br />
find /var/svn/myproject -type f -exec chmod 660 {} \;<br />
find /var/svn/myproject -type d -exec chmod 2770 {} \;<br />
chown -R root.www-data /var/svn/myproject<br />
</code></p>
<p>Trac project<br />
<code>trac-admin /var/trac/myproject initenv<br />
find /var/trac/myproject -type f -exec chmod 660 {} \;<br />
find /var/trac/myproject -type d -exec chmod 2770 {} \;<br />
chown -R root.www-data /var/trac/myproject<br />
</code></p>
<p>Configure Apache to publish the new project (pico /etc/apache2/sites-enabled/000-default). Add the following lines:<br />
<code>ScriptAlias /projects/myproject /usr/share/trac/cgi-bin/trac.cgi<br />
a<br />
&lt;Location "/projects/myproject"&gt;<br />
SetEnv TRAC_ENV "/var/trac/myproject"<br />
&lt;/Location&gt;<br />
&nbsp;<br />
&lt;Location "/projects/myproject"&gt;<br />
AuthType Basic<br />
AuthName "Trac - myproject"<br />
AuthUserFile /etc/apache2/svn.passwd<br />
Require valid-user<br />
&lt;/Location&gt;<br />
</code></p>
<p>Restart Apache<br />
<code>/etc/init.d/apache2 force-reload<br />
</code></p>
<p>Give a user administrator permissions to the project<br />
<code>trac-admin /var/trac/myproject<br />
permission add user1 TRAC_ADMIN<br />
</code></p>
<p>You can now access your Trac project by browsing with your favorite browser to http://localhost/projects/myproject.</p>
<p>To access the Subversion reposatory you can use any Subversion client. If you're using Windows, <a href="http://tortoisesvn.tigris.org/">TortoiseSVN</a> would be a good choice.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.debiantutorials.com/setup-trac-and-subversion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
