<?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>Vuko&#039;s Blog &#187; Ubuntu / Debian</title>
	<atom:link href="http://blog.vukomir.info/category/linux/ubuntu-debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.vukomir.info</link>
	<description># echo &#34;Is your home directory $HOME?&#34;</description>
	<lastBuildDate>Tue, 15 Feb 2011 10:10:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>ClamAV + samba</title>
		<link>http://blog.vukomir.info/2011/01/19/clamav-samba/</link>
		<comments>http://blog.vukomir.info/2011/01/19/clamav-samba/#comments</comments>
		<pubDate>Tue, 18 Jan 2011 22:18:34 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Bash]]></category>
		<category><![CDATA[centOS]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[antivirus]]></category>
		<category><![CDATA[clamav]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/?p=353</guid>
		<description><![CDATA[This is a howto on getting samba + clamav  to work on a rpm system First thing first I need do install samba file server and clamav anti-virus, after configurating my samba share i have made 2 directory&#8217;s in /home virus logs the virus folder contains the infected files found during scanning and the logs [...]]]></description>
			<content:encoded><![CDATA[<p>This is a howto on getting samba + clamav  to work on a rpm system</p>
<p>First thing first I need do install samba file server and clamav anti-virus, after configurating my samba share i have made 2 directory&#8217;s in /home</p>
<ol>
<li>virus</li>
<li>logs</li>
</ol>
<p>the virus folder contains the infected files found during scanning and the logs folder contains the report of the scanning witch is send bu email to you.</p>
<p>and added a script in crontab in the root account.</p>
<pre class="brush: shell">

#!/bin/bash
TIME=$(date &#039;+%Y-%m-%d-%T&#039;)
/usr/bin/clamdscan --move /home/virus/quarantine -v /home/samba &amp;gt; /home/logs/samba/dailyscan.$TIME
virus=`cat /home/logs/samba/dailyscan.$TIME | grep &quot;Infected files&quot; | awk &#039;{print $3}&#039;`
virus=`cat /home/logs/samba/dailyscan.$TIME | grep &quot;Total errors:&quot; | awk &#039;{print $3}&#039;`
if [ &quot;$virus&quot; != &quot;0&quot; ]; then
mail -u root -s &quot;Virus on Samba File Server : Hostname `hostname`&quot; you@mail.com &amp;lt;/home/logs/samba/dailyscan.$TIME
else if [ &quot;$error&quot; != &quot;0&quot; ]; then
mail -u root -s &quot;Error on virus scan Interliner.eu: Hostname `hostname`&quot; you@mail.com &amp;lt;/home/logs/samba/dailyscan.$TIME
fi
fi
</pre>
<p>and set the script to run once a day, in my case in 11:00pm, because the businesses it is not in the hours <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> . The reson is that i made it run once a day because it task&#8217;s 2 hours to finish the scanning, You can change this <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2011%2F01%2F19%2Fclamav-samba%2F&amp;title=ClamAV%20%2B%20samba" id="wpa2a_2"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2011/01/19/clamav-samba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian pptpd HOWTO</title>
		<link>http://blog.vukomir.info/2008/06/13/debian-pptpd-howto/</link>
		<comments>http://blog.vukomir.info/2008/06/13/debian-pptpd-howto/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 07:43:22 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/debian-pptpd-howto/</guid>
		<description><![CDATA[Installing MPPE Support Most people want their tunnels encrypted. Check the version of your kernel; if it is below 2.6.15-rc1 then you do not have MPPE support. To check further, test like this: # modprobe ppp-compress-18 &#38;&#38; echo success If this fails, follow the Debian MPPE HOWTO, then return here. Installing the Server ProgramInstall the [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Installing MPPE Support</strong> Most people want their tunnels encrypted.  Check the version of your kernel; if it is below 2.6.15-rc1 then you do not have MPPE support. To check further, test like this:</p>
<table border="0" cellpadding="6" width="90%" bgcolor="#d8f8d8">
<tbody>
<tr>
<td><tt># modprobe ppp-compress-18 &amp;&amp; echo success </tt></td>
</tr>
</tbody>
</table>
<p>If this fails, follow the <a href="http://pptpclient.sourceforge.net/howto-debian-build.phtml">Debian MPPE HOWTO</a>, then return here.<a title="install" name="install"></a></p>
<hr noshade="noshade" /><strong>Installing the Server Program</strong>Install the <em>pptpd</em> package from the Debian Project:</p>
<table border="0" cellpadding="6" width="90%" bgcolor="#d8f8d8">
<tbody>
<tr>
<td><tt># apt-get install pptpd </tt></td>
</tr>
</tbody>
</table>
<p><a title="configure" name="configure"></a></p>
<hr noshade="noshade" /><strong>Configure IP Address Range</strong>Edit the file <tt>/etc/pptpd.conf</tt> for the IP address range, for example:</p>
<table border="0" cellpadding="6" width="90%" bgcolor="#d8f8d8">
<tbody>
<tr>
<td><tt>localip 192.168.0.1<br />
remoteip 192.168.0.234-238,192.168.0.245 </tt></td>
</tr>
</tbody>
</table>
<p>Note: see pptpd.conf(5) for more details on the other options.Note: you will need to restart <em>pptpd</em> to make changes to <tt>/etc/pptpd.conf</tt> effective:</p>
<table border="0" cellpadding="6" width="90%" bgcolor="#d8f8d8">
<tbody>
<tr>
<td><tt># /etc/init.d/pptpd restart </tt></td>
</tr>
</tbody>
</table>
<p><a title="users" name="users"></a></p>
<hr noshade="noshade" /><strong>Adding Users</strong>Configure <tt>/etc/ppp/chap-secrets</tt> for the accounts, for example:</p>
<table border="0" cellpadding="6" width="90%" bgcolor="#d8f8d8">
<tbody>
<tr>
<td><tt># echo "username pptpd password *" &gt;&gt; /etc/ppp/chap-secrets </tt></td>
</tr>
</tbody>
</table>
<p>Note: this method has all the usernames in one file.  There are other ways, including authentication using Radius, or using Samba.  Check the mailing list (<a href="https://lists.sourceforge.net/lists/listinfo/poptop-server">subscribe</a>, <a href="http://marc.theaimsgroup.com/?l=poptop-server&amp;r=1&amp;w=2">archives</a>).Note: you do not need to restart <em>pptpd</em>, a change to <tt>chap-secrets</tt> is effective for the next connection.<a title="testing" name="testing"></a></p>
<hr noshade="noshade" /><strong>Testing</strong>Attempt a connection from a client.  On successful connection, a new interface should be created (e.g. ppp0), and the remote IP address of the interface should be pingable.  If so, the rest of your problems are likely to be routing.Note: if you need to set up a Debian test client, see the <a href="http://pptpclient.sourceforge.net/howto-debian.phtml">PPTP Client Debian HOWTO</a>.  The test client cannot be on the same host, it doesn&#8217;t work.To diagnose faults, enable the options <em>debug dump</em> in <tt>/etc/ppp/pptpd-options</tt>.  The change is effective on the next connection.  The <em>debug</em> output goes to <tt>/var/log/debug</tt>, and the <em>dump</em> output and usual output to <tt>/var/log/messages</tt>.</p>
<p><a title="patching" name="patching"></a></p>
<hr noshade="noshade" /><strong>Patching</strong>If you need to adopt a source code change made in CVS after the version you are running, see our <a href="http://poptop.sourceforge.net/dox/debian-patching.phtml">Applying patches to Debian pptpd</a> page.<a title="performance" name="performance"></a></p>
<hr noshade="noshade" /><strong>Performance Notes</strong>On a Debian system there may be scripts run by <em>pppd</em> when a network interface is brought up.  These scripts are in the <tt>/etc/ppp/ip-up.d</tt> directory.Some of these scripts may run with incorrect assumptions &#8230; in particular the Debian Sarge <em>exim4</em> package includes a script <tt>/etc/ppp/ip-up.d/exim4</tt> that restarts <em>exim4</em> or runs the queue.  The assumption in this script is that the system has just connected to the internet through the PPP link.You may wish to customise this script.  If your server has a default route via an ethernet interface, then either remove the script or add an <em>exit</em> command near the top.</p>
<hr noshade="noshade" />
<h3><a title="comments" name="comments"></a>Comments</h3>
<p>If you have <em>comments</em> on this document, please send them to the author at james.cameron at hp.com.  But if you <em>need help</em>, use the mailing list  (<a href="https://lists.sourceforge.net/lists/listinfo/poptop-server">subscribe</a>, <a href="http://marc.theaimsgroup.com/?l=poptop-server&amp;r=1&amp;w=2">archives</a>) so that we can share the load.</p>
<p><a href="http://poptop.sourceforge.net/dox/debian-howto.phtml">Sursa</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F06%2F13%2Fdebian-pptpd-howto%2F&amp;title=Debian%20pptpd%20HOWTO" id="wpa2a_4"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/06/13/debian-pptpd-howto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu PXE Install</title>
		<link>http://blog.vukomir.info/2008/04/25/ubuntu-pxe-install/</link>
		<comments>http://blog.vukomir.info/2008/04/25/ubuntu-pxe-install/#comments</comments>
		<pubDate>Fri, 25 Apr 2008 23:10:03 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[mass]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/ubuntu-pxe-install/</guid>
		<description><![CDATA[hmmm trebuia sa instalez pe 23 de systeme windows/ubuntu , sa instalez pe fiecare in parte nici nu intra in vorba puteam sa instalez pe un sistem si sa fac clona cu norton si sa arunc clona pe fiecare sistem in parte si era ok sau prin retea sa butez clona&#8230;..sau cum avem ubuntu server [...]]]></description>
			<content:encoded><![CDATA[<p>hmmm trebuia sa instalez pe 23 de systeme windows/ubuntu <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> , sa instalez pe fiecare in parte nici nu intra in vorba puteam sa instalez pe un sistem si sa fac clona cu norton si sa arunc clona pe fiecare sistem in parte si era ok sau prin retea sa butez clona&#8230;..sau cum avem ubuntu server cu ldap si samba m-am hotarat sa fac prin network boot <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a href="http://wiki.koeln.ccc.de/index.php/Ubuntu_PXE_Install">http://wiki.koeln.ccc.de/index.php/Ubuntu_PXE_Install</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F04%2F25%2Fubuntu-pxe-install%2F&amp;title=Ubuntu%20PXE%20Install" id="wpa2a_6"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/04/25/ubuntu-pxe-install/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What if&#8230;</title>
		<link>http://blog.vukomir.info/2008/04/22/what-if/</link>
		<comments>http://blog.vukomir.info/2008/04/22/what-if/#comments</comments>
		<pubDate>Tue, 22 Apr 2008 18:41:43 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu mobile]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/what-if/</guid>
		<description><![CDATA[Imi place ce sa spun linux on mobile si mai ales ubuntu mobile]]></description>
			<content:encoded><![CDATA[<p>Imi place <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  ce sa spun linux on mobile si mai ales ubuntu mobile <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F04%2F22%2Fwhat-if%2F&amp;title=What%20if%26%238230%3B" id="wpa2a_8"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/04/22/what-if/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Server 7.10: OpenLDAP + SAMBA Domain Controller</title>
		<link>http://blog.vukomir.info/2008/04/21/ubuntu-server-710-openldap-samba-domain-controller/</link>
		<comments>http://blog.vukomir.info/2008/04/21/ubuntu-server-710-openldap-samba-domain-controller/#comments</comments>
		<pubDate>Mon, 21 Apr 2008 21:33:02 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[controler]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[samba]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/ubuntu-server-710-openldap-samba-domain-controller/</guid>
		<description><![CDATA[Nu de mult timp am ajuns admin de retea la fostul liceu &#62;:) ca sa vezi si cum un admin de retea nu prea are ce sa faca daca nu se strica ceva a inceput plictiseala si una alta am reusit sa ard o sursa de la comp din greseala bineinteles a da si inainte [...]]]></description>
			<content:encoded><![CDATA[<p>Nu de mult timp am ajuns admin de retea la fostul liceu &gt;:) ca sa vezi <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  si cum un admin de retea nu prea are ce sa faca daca nu se strica ceva a inceput plictiseala <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  si una alta am reusit sa ard o sursa de la comp <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  din greseala bineinteles <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   a da si inainte de aia am instalat si configurat Active directory pe windows 2003 dar aveam o problema cu logarea dura cam foarte mult avei timp sa fumezi 2 tigari pana te loga <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_neutral.gif' alt=':|' class='wp-smiley' /> </p>
<p><span id="more-94"></span></p>
<p>dupa accea m-am hotarat sa fac aia pe linux am loat o statie normala de lucru pe care cam caraie windows-ul <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  si ma instalat ubuntu server 7.10 impreuna cu OpenLDAP si Samba Domain Controller si pot sa spun ca merge foarte ok pe langa asta am mai instalat DHCPd si un proxy server nu de alta dar sa poata antivirusul sa faca update pt ca am cam taiat net-ul din sala de info stau prea mult elevii pe hi5 sau asculta muzica de pe youtube si imi mananca banda cea de toate zilele 32kb/s <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' />  sper sa se rezolve problema aia cu banda de net, na ma rog eu orcum o sa am net <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  si apropo de windows, serverul de Ael care ruleaza pe windows a crapat acuam cateva zile nush dc nu a fost instalat nimica alceva in afara de Ael pe sistemul respectiv&#8230;intro zi de luni am mers la lucru si cand acolo explorer-ul de la windows 2003 pornea si se oprea singru era clar trebuie reparat dar mi-am bagat picioarele in el si am hotarat sa pun Ael-ul pe linux <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  joi cand ajung la lucru o sa am cu ce sa ma joc <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  partea a2a ii ca pe forumul de la edu toti zic sa nu se faca aia dar macar nu moare sistemul intro luna pt ca nu a fost oprit <img src='http://blog.vukomir.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>pt cei care doresc sa instaleze  opeldap + samba domain controller va recoman <a href="http://ubuntuforums.org/showthread.php?t=640760">ubuntuforum</a></p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F04%2F21%2Fubuntu-server-710-openldap-samba-domain-controller%2F&amp;title=Ubuntu%20Server%207.10%3A%20OpenLDAP%20%2B%20SAMBA%20Domain%20Controller" id="wpa2a_10"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/04/21/ubuntu-server-710-openldap-samba-domain-controller/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>how to run a script at boot time?</title>
		<link>http://blog.vukomir.info/2008/04/16/how-to-run-a-script-at-boot-time/</link>
		<comments>http://blog.vukomir.info/2008/04/16/how-to-run-a-script-at-boot-time/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 20:08:32 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/2008/04/16/how-to-run-a-script-at-boot-time/</guid>
		<description><![CDATA[cp file /etc/init.d/file Change my example obove file with your scriptfile name. chmod +x file update-rc.d file defaults to remove a script: First you most remove the original script in /etc/init.d Then, to remove the links in /etc/rcrunlevel.d run (as root): update-rc.d file remove defaults is used, update-rc.d will make links to start the service [...]]]></description>
			<content:encoded><![CDATA[<p class="command"> cp file /etc/init.d/file</p>
<p>Change my example obove file with your scriptfile name.</p>
<p class="command">chmod +x file</p>
<p class="command">update-rc.d file defaults</p>
<p class="command"><span id="more-89"></span></p>
<p><strong>to remove a script:</strong></p>
<p>First you most remove the original script in /etc/init.d  Then, to remove the links in /etc/rc<em>runlevel</em>.d run (as root):</p>
<p class="command">update-rc.d file remove</p>
<p><strong>defaults</strong> is used, <strong>update-rc.d</strong> will make links to start the service in runlevels 2345, and stop the service in runlevels 016.</p>
<p>To start the script <strong>folding</strong> in <a href="http://en.wikipedia.org/wiki/Runlevel">runlevels</a> 0123 and stop in 456, run (as root):</p>
<p class="command">update-rc.d file start 0123 stop 456</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F04%2F16%2Fhow-to-run-a-script-at-boot-time%2F&amp;title=how%20to%20run%20a%20script%20at%20boot%20time%3F" id="wpa2a_12"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/04/16/how-to-run-a-script-at-boot-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install DHCP on Ubuntu/Debian</title>
		<link>http://blog.vukomir.info/2008/04/16/how-to-install-dhcp-on-ubuntudebian/</link>
		<comments>http://blog.vukomir.info/2008/04/16/how-to-install-dhcp-on-ubuntudebian/#comments</comments>
		<pubDate>Wed, 16 Apr 2008 14:03:52 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[debina]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/2008/04/16/how-to-install-dhcp-on-ubuntudebian/</guid>
		<description><![CDATA[Assumed that “eth0″ is the interface for network card IP Address 10.0.0.1 Range: 10.0.0.1 to 10.0.0.30 Subnet Mask: 255.255.255.224 DNS Servers: 193.226.98.1, 193.226.98.2 Domains:r2d2.dositei.ro Gateway Address: 10.0.0.1 sudo apt-get install dhcp3-server sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup nano /etc/default/dhcp3-server Find this line INTERFACES=&#8221;" Replace with the following line INTERFACES=&#8221;eth0&#8243; Save the edited file sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">Assumed that “eth0″ is the interface for network card</p>
<p class="MsoNormal"><em>IP Address 10.0.0.1</em></p>
<p class="MsoNormal"><em>Range: 10.0.0.1 to 10.0.0.30</em></p>
<p class="MsoNormal"><em>Subnet Mask: 255.255.255.224</em></p>
<p class="MsoNormal"><em>DNS Servers: 193.226.98.1, 193.226.98.2</em></p>
<p class="MsoNormal"><em>Domains:r2d2.dositei.ro</em></p>
<p class="MsoNormal"><em>Gateway Address: 10.0.0.1</em></p>
<p class="MsoNormal"><span id="more-88"></span></p>
<p class="MsoNormal">
<p class="command">sudo apt-get install dhcp3-server</p>
<p class="command">sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup</p>
<p class="command">nano /etc/default/dhcp3-server</p>
<p class="MsoNormal">
<p class="MsoNormal"><strong>Find this line</strong></p>
<p class="MsoNormal" style="text-indent: 0.5in">INTERFACES=&#8221;"</p>
<p class="MsoNormal"><strong>Replace with the following line</strong></p>
<p class="MsoNormal" style="text-indent: 0.5in">INTERFACES=&#8221;eth0&#8243;</p>
<p class="MsoNormal"><strong>Save the edited file</strong></p>
<p class="MsoNormal">
<p class="command">sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup</p>
<p class="command">rm /etc/dhcpd.conf</p>
<p class="command">nano /etc/dhcp3/dhcpd.conf</p>
<p class="MsoNormal"><strong><span style="text-decoration: underline;">copy and paste the code</span></strong></p>
<p class="MsoNormal">
<p class="MsoNormal">ddns-update-style none;</p>
<p class="MsoNormal">log-facility local7;</p>
<p class="MsoNormal">subnet 10.0.0.0 netmask 255.255.255.224 {<br />
range 10.0.0.1 10.0.0.30;<br />
option domain-name-servers 193.226.98.1, 193.226.98.2;<br />
option domain-name &#8220;r2d2.dositei.ro&#8221;;<br />
option routers 10.5.0.1;<br />
option broadcast-address 10.0.0.31;<br />
default-lease-time 600;<br />
max-lease-time 7200;<br />
}</p>
<p class="command">sudo /etc/init.d/dhcp3-server restart</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F04%2F16%2Fhow-to-install-dhcp-on-ubuntudebian%2F&amp;title=How%20to%20install%20DHCP%20on%20Ubuntu%2FDebian" id="wpa2a_14"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/04/16/how-to-install-dhcp-on-ubuntudebian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nano /etc/apt/sources.list</title>
		<link>http://blog.vukomir.info/2008/04/14/nano-etcaptsourceslist/</link>
		<comments>http://blog.vukomir.info/2008/04/14/nano-etcaptsourceslist/#comments</comments>
		<pubDate>Mon, 14 Apr 2008 21:01:50 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Ubuntu / Debian]]></category>
		<category><![CDATA[dedina]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/2008/04/14/nano-etcaptsourceslist/</guid>
		<description><![CDATA[# # deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted #deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted # See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to # newer versions of the distribution. deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted ## Major bug fix updates [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal">#<br />
# deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted</p>
<p>#deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted<br />
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to<br />
# newer versions of the distribution.<br />
<span id="more-87"></span><br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted</p>
<p>## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted</p>
<p>## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu<br />
## team, and may not be under a free licence. Please satisfy yourself as to<br />
## your rights to use the software. Also, please note that software in<br />
## universe WILL NOT receive any review or updates from the Ubuntu security<br />
## team.<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe</p>
<p>## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu<br />
## team, and may not be under a free licence. Please satisfy yourself as to<br />
## your rights to use the software. Also, please note that software in<br />
## multiverse WILL NOT receive any review or updates from the Ubuntu<br />
## security team.<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse</p>
<p>## Uncomment the following two lines to add software from the &#8216;backports&#8217;<br />
## repository.<br />
## N.B. software from this repository may not have been tested as<br />
## extensively as that contained in the main release, although it includes<br />
## newer versions of some applications which may provide useful features.<br />
## Also, please note that software in backports WILL NOT receive any review<br />
## or updates from the Ubuntu security team.<br />
<span> </span>deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
<span> </span>deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse</p>
<p>## Uncomment the following two lines to add software from Canonical&#8217;s<br />
## &#8216;partner&#8217; repository. This software is not part of Ubuntu, but is<br />
## offered by Canonical and the respective vendors as a service to Ubuntu<br />
## users.<br />
<span> </span>deb http://archive.canonical.com/ubuntu gutsy partner<br />
<span> </span>deb-src http://archive.canonical.com/ubuntu gutsy partner</p>
<p>deb http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse</p>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F04%2F14%2Fnano-etcaptsourceslist%2F&amp;title=nano%20%2Fetc%2Fapt%2Fsources.list" id="wpa2a_16"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/04/14/nano-etcaptsourceslist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PureFTPd And MySQL (Incl. Quota And Bandwidth Management)</title>
		<link>http://blog.vukomir.info/2008/04/06/pureftpd-and-mysql-incl-quota-and-bandwidth-management/</link>
		<comments>http://blog.vukomir.info/2008/04/06/pureftpd-and-mysql-incl-quota-and-bandwidth-management/#comments</comments>
		<pubDate>Sun, 06 Apr 2008 08:33:24 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu / Debian]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/2008/04/06/pureftpd-and-mysql-incl-quota-and-bandwidth-management/</guid>
		<description><![CDATA[Preliminary Note In this tutorial I use the hostname openhell.org with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate. Make sure that you are logged in as root (type in sudo su to become root), because we must run all the steps from this tutorial [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>Preliminary Note</p></blockquote>
<p>In this tutorial I use the hostname <span class="system">openhell.org</span> with the IP address <span class="system">192.168.0.100</span>. These settings might differ for you, so you have to replace them where appropriate.</p>
<p>Make sure that you are logged in as root (type in</p>
<p class="command">sudo su</p>
<p>to become root), because we must run all the steps from this tutorial as root user. Also, if you want to use <span class="system">vi</span> as your text editor (as suggested by this tutorial), you should run</p>
<p><span id="more-84"></span></p>
<p class="command">apt-get install vim-full</p>
<p>The <span class="system">vim-full</span> package makes sure that the <span class="system">vi</span> text editor behaves as expected (without <span class="system">vim-full</span>, you might experience some strange behaviour in the <span class="system">vi</span> text editor).</p>
<h3>2 Install MySQL And phpMyAdmin</h3>
<p>This can all be installed with one single command:</p>
<p class="command">apt-get install mysql-server mysql-client libmysqlclient15-dev phpmyadmin apache2</p>
<p>You will be asked two questions:</p>
<p><span class="system">New password for the MySQL &#8220;root&#8221; user:</span> <span class="highlight">&lt;&#8211; yourrootsqlpassword</span> (password of your choice)<br />
<span class="system">Web server to reconfigure automatically:</span> <span class="highlight">&lt;&#8211; apache2</span></p>
<h3>3 Install PureFTPd With MySQL Support</h3>
<p>For Ubuntu 7.10 there is a pre-configured <span class="system">pure-ftpd-mysql</span> package available. Install it like this:</p>
<p class="command">apt-get install pure-ftpd-mysql</p>
<p>Then we create an ftp group (<span class="system">ftpgroup</span>) and user (<span class="system">ftpuser</span>) that all our virtual users will be mapped to. Replace the group- and userid <span class="system">2001</span> with a number that is free on your system:</p>
<p class="command">groupadd -g 2001 ftpgroup<br />
useradd -u 2001 -s /bin/false -d /bin/null -c &#8220;pureftpd user&#8221; -g ftpgroup ftpuser</p>
<h3>4 Create The MySQL Database For PureFTPd</h3>
<p>Now we create a database called <span class="system">pureftpd</span> and a MySQL user named <span class="system">pureftpd</span> which the PureFTPd daemon will use later on to connect to the <span class="system">pureftpd</span> database:</p>
<p class="command">mysql -u root -p</p>
<p class="command">CREATE DATABASE pureftpd;<br />
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON pureftpd.* TO &#8216;pureftpd&#8217;@'localhost&#8217; IDENTIFIED BY &#8216;ftpdpass&#8217;;<br />
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP ON pureftpd.* TO &#8216;pureftpd&#8217;@'localhost.localdomain&#8217; IDENTIFIED BY &#8216;ftpdpass&#8217;;<br />
FLUSH PRIVILEGES;</p>
<p>Replace the string <span class="system">ftpdpass</span> with whatever password you want to use for the MySQL user <span class="system">pureftpd</span>. Still on the MySQL shell, we create the database table we need (yes, there is only one table!):</p>
<p class="command">USE pureftpd;</p>
<p class="command">CREATE TABLE ftpd (<br />
User varchar(16) NOT NULL default &#8221;,<br />
status enum(&#8217;0&#8242;,&#8217;1&#8242;) NOT NULL default &#8217;0&#8242;,<br />
Password varchar(64) NOT NULL default &#8221;,<br />
Uid varchar(11) NOT NULL default &#8216;-1&#8242;,<br />
Gid varchar(11) NOT NULL default &#8216;-1&#8242;,<br />
Dir varchar(128) NOT NULL default &#8221;,<br />
ULBandwidth smallint(5) NOT NULL default &#8217;0&#8242;,<br />
DLBandwidth smallint(5) NOT NULL default &#8217;0&#8242;,<br />
comment tinytext NOT NULL,<br />
ipaccess varchar(15) NOT NULL default &#8216;*&#8217;,<br />
QuotaSize smallint(5) NOT NULL default &#8217;0&#8242;,<br />
QuotaFiles int(11) NOT NULL default 0,<br />
PRIMARY KEY (User),<br />
UNIQUE KEY User (User)<br />
) TYPE=MyISAM;</p>
<p class="command">quit;</p>
<p>As you may have noticed, with the <span class="system">quit;</span> command we have left the MySQL shell and are back on the Linux shell.</p>
<p>BTW, (I&#8217;m assuming that the hostname of your ftp server system is <span class="system">server1.example.com</span>) you can access phpMyAdmin under <span class="system">http://openhell.org/phpmyadmin/</span> (you can also use the IP address instead of <span class="system">server1.example.com</span>) in a browser and log in as the user <span class="system">pureftpd</span>. Then you can have a look at the database. Later on you can use phpMyAdmin to administrate your PureFTPd server.</p>
<h3>5 Configure PureFTPd</h3>
<p>Edit <span class="system">/etc/pure-ftpd/db/mysql.conf</span>. It should look like this:</p>
<p class="command">cp /etc/pure-ftpd/db/mysql.conf /etc/pure-ftpd/db/mysql.conf_orig<br />
cat /dev/null &gt; /etc/pure-ftpd/db/mysql.conf<br />
vi /etc/pure-ftpd/db/mysql.conf</p>
<table style="height: 227px;" border="1" cellspacing="0" cellpadding="2" width="868" align="center" bgcolor="#cccccc">
<tbody>
<tr>
<td>
<pre>MYSQLSocket      /var/run/mysqld/mysqld.sock

#MYSQLServer     localhost

#MYSQLPort       3306

MYSQLUser       pureftpd

MYSQLPassword   ftpdpass

MYSQLDatabase   pureftpd

#MYSQLCrypt md5, cleartext, crypt() or password() - md5 is VERY RECOMMENDABLE uppon cleartext

MYSQLCrypt      md5

MYSQLGetPW      SELECT Password FROM ftpd WHERE User="L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "R")

MYSQLGetUID     SELECT Uid FROM ftpd WHERE User="L" AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "R")

MYSQLGetGID     SELECT Gid FROM ftpd WHERE User="L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "R")

MYSQLGetDir     SELECT Dir FROM ftpd WHERE User="L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "R")

MySQLGetBandwidthUL SELECT ULBandwidth FROM ftpd WHERE User="L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "R")

MySQLGetBandwidthDL SELECT DLBandwidth FROM ftpd WHERE User="L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "R")

MySQLGetQTASZ   SELECT QuotaSize FROM ftpd WHERE User="L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "R")

MySQLGetQTAFS   SELECT QuotaFiles FROM ftpd WHERE User="L"AND status="1" AND (ipaccess = "*" OR ipaccess LIKE "R")</pre>
</td>
</tr>
</tbody>
</table>
<p>Make sure that you replace the string <span class="system">ftpdpass</span> with the real password for the MySQL user <span class="system">pureftpd</span> in the line <span class="system">MYSQLPassword</span>! Please note that we use md5 as <span class="system">MYSQLCrypt</span> method, which means we will store the users&#8217; passwords as an MD5 string in the database which is far more secure than using plain text passwords!</p>
<p>Then create the file <span class="system">/etc/pure-ftpd/conf/ChrootEveryone</span> which simply contains the string <span class="system">yes</span>:</p>
<p class="command">echo &#8220;yes&#8221; &gt; /etc/pure-ftpd/conf/ChrootEveryone</p>
<p>This will make PureFTPd chroot every virtual user in his home directory so he will not be able to browse directories and files outside his home directory.</p>
<p>Also create the file <span class="system">/etc/pure-ftpd/conf/CreateHomeDir</span> which again simply contains the string <span class="system">yes</span>:</p>
<p class="command">echo &#8220;yes&#8221; &gt; /etc/pure-ftpd/conf/CreateHomeDir</p>
<p>This will make PureFTPd create a user&#8217;s home directory when the user logs in and the home directory does not exist yet.</p>
<p>Afterwards, we restart PureFTPd:</p>
<p class="command">/etc/init.d/pure-ftpd-mysql restart</p>
<h3>6 Populate The Database And Test</h3>
<p>To populate the database you can use the MySQL shell:</p>
<p class="command">mysql -u root -p</p>
<p class="command">USE pureftpd;</p>
<p>Now we create the user <span class="system">exampleuser</span> with the status <span class="system">1</span> (which means his ftp account is active), the password <span class="system">secret</span> (which will be stored encrypted using MySQL&#8217;s MD5 function), the UID and GID <span class="system">2001</span> (use the userid and groupid of the user/group you created at the end of step two!), the home directory <span class="system">/home/www.example.com</span>, an upload and download bandwidth of 100 KB/sec. (kilobytes per second), and a quota of 50 MB:</p>
<p class="command">INSERT INTO `ftpd` (`User`, `status`, `Password`, `Uid`, `Gid`, `Dir`, `ULBandwidth`, `DLBandwidth`, `comment`, `ipaccess`, `QuotaSize`, `QuotaFiles`) VALUES (&#8216;exampleuser&#8217;, &#8217;1&#8242;, MD5(&#8216;secret&#8217;), &#8217;2001&#8242;, &#8217;2001&#8242;, &#8216;/home/www.example.com&#8217;, &#8217;100&#8242;, &#8217;100&#8242;, &#8221;, &#8216;*&#8217;, &#8217;50&#8242;, &#8217;0&#8242;);</p>
<p class="command">quit;</p>
<p>Now open your FTP client program on your work station (something like WS_FTP or SmartFTP if you are on a Windows system or gFTP or FileZilla on a Linux desktop) and try to connect. As hostname you use <span class="system">server1.example.com</span> (or the IP address of the system), the username is <span class="system">exampleuser</span>, and the password is <span class="system">secret</span>.</p>
<p>If you are able to connect &#8211; congratulations! If not, something went wrong.</p>
<p>Now, if you run</p>
<p class="command">ls -l /home</p>
<p>you should see that the directory <span class="system">/home/www.example.com</span> (<span class="system">exampleuser</span>&#8216;s home directory) has been automatically created, and it is owned by <span class="system">ftpuser</span> and <span class="system">ftpgroup</span> (the user/group we created at the end of step two):</p>
<p class="system">root@server1:~# ls -l /home<br />
total 8<br />
drwxr-xr-x 2 administrator administrator 4096 2007-10-18 11:35 administrator<br />
drwxr-xr-x 2 ftpuser       ftpgroup      4096 2007-10-29 14:29 www.example.com<br />
root@server1:~#</p>
<h3>7 Database Administration</h3>
<p>For most people it is easier if they have a graphical front-end to MySQL; therefore you can also use phpMyAdmin (in this example under <span class="system">http://openhell.org/phpmyadmin/</span>) to administrate the pureftpd database.</p>
<p><a title="1.png" href="http://blog.vukomir.info/wp-content/2008/04/1.png"><img src="http://blog.vukomir.info/wp-content/2008/04/1.png" alt="1.png" width="519" height="394" /></a></p>
<p>Whenever you want to create a new user, you have to create an entry in the table <span class="system">ftpd</span> so I will explain the columns of this table here:</p>
<h4>ftpd Table:</h4>
<ul>
<li> <span class="system">User</span>: The name of the virtual PureFTPd user (e.g. <span class="system">exampleuser</span>).</li>
<li> <span class="system">status</span>: 0 or 1. 0 means the account is disabled, the user cannot login.</li>
<li><span class="system">Password</span>: The password of the virtual user. Make sure you use MySQL&#8217;s MD5 function to save the password encrypted as an MD5 string:</li>
<li><a title="2.png" href="http://blog.vukomir.info/wp-content/2008/04/2.png"><img src="http://blog.vukomir.info/wp-content/2008/04/2.png" alt="2.png" width="457" height="347" /></a></li>
<li> <span class="system">UID</span>: The userid of the ftp user you created at the end of step two (e.g. <span class="system">2001</span>).</li>
<li> <span class="system">GID</span>: The groupid of the ftp group you created at the end of step two (e.g. <span class="system">2001</span>).</li>
<li> <span class="system">Dir</span>: The home directory of the virtual PureFTPd user (e.g. <span class="system">/home/www.example.com</span>). If it does not exist, it will be created when the new user logs in the first time via FTP. The virtual user will be jailed into this home directory, i.e., he cannot access other directories outside his home directory.</li>
<li> <span class="system">ULBandwidth</span>: Upload bandwidth of the virtual user in KB/sec. (kilobytes per second). 0 means unlimited.</li>
<li> <span class="system">DLBandwidth</span>: Download bandwidth of the virtual user in KB/sec. (kilobytes per second). 0 means unlimited.</li>
<li> <span class="system">comment</span>: You can enter any comment here (e.g. for your internal administration) here. Normally you leave this field empty.</li>
<li> <span class="system">ipaccess</span>: Enter IP addresses here that are allowed to connect to this FTP account. <span class="system">*</span> means any IP address is allowed to connect.</li>
<li> <span class="system">QuotaSize</span>: Storage space in MB (not KB, as in <span class="system">ULBandwidth</span> and <span class="system">DLBandwidth</span>!) the virtual user is allowed to use on the FTP server. 0 means unlimited.</li>
<li> <span class="system">QuotaFiles</span>: amount of files the virtual user is allowed to save on the FTP server. 0 means unlimited.</li>
</ul>
<h3>8 Anonymous FTP</h3>
<p>If you want to create an anonymous ftp account (an ftp account that everybody can login to without a password), you can do it like this:</p>
<p>First create a user <span class="system">ftp</span> (with the homedir <span class="system">/home/ftp</span>) and group <span class="system">ftp</span>:</p>
<p class="command">groupadd ftp<br />
useradd -s /bin/false -d /home/ftp -m -c &#8220;anonymous ftp&#8221; -g ftp ftp</p>
<p>Then create the file <span class="system">/etc/pure-ftpd/conf/NoAnonymous</span> which contains the string <span class="system">no</span>:</p>
<p class="command">echo &#8220;no&#8221; &gt; /etc/pure-ftpd/conf/NoAnonymous</p>
<p>With this configuration, PureFTPd will allow anonymous logins.</p>
<p>Restart PureFTPd:</p>
<p class="command">/etc/init.d/pure-ftpd-mysql restart</p>
<p>Then we create the directory <span class="system">/home/ftp/incoming</span> which will allow anonymous users to upload files. We will give the <span class="system">/home/ftp/incoming</span> directory permissions of <span class="system">311</span> so that users can upload, but not see or download any files in that directory. The <span class="system">/home/ftp</span> directory will have permissions of <span class="system">555</span> which allows seeing and downloading of files:</p>
<p class="command">cd /home/ftp<br />
mkdir incoming<br />
chown ftp:nogroup incoming/<br />
chmod 311 incoming/<br />
cd ../<br />
chmod 555 ftp/</p>
<p>Now anonymous users can login, and they can download files from <span class="system">/home/ftp</span>, but uploads are limited to <span class="system">/home/ftp/incoming</span> (and once a file is uploaded into <span class="system">/home/ftp/incoming</span>, it cannot be read nor downloaded from there; the server admin has to move it into <span class="system">/home/ftp</span> first to make it available to others).</p>
<h3>9 Links</h3>
<ul>
<li>PureFTPd: <a href="http://www.pureftpd.org/" target="_blank">http://www.pureftpd.org</a></li>
<li>MySQL: <a href="http://www.mysql.com/" target="_blank">http://www.mysql.com</a></li>
<li>phpMyAdmin: <a href="http://www.phpmyadmin.net/" target="_blank">http://www.phpmyadmin.net</a></li>
<li>Ubuntu: <a href="http://www.ubuntu.com/" target="_blank">http://www.ubuntu.com</a></li>
</ul>
<p class="command">
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F04%2F06%2Fpureftpd-and-mysql-incl-quota-and-bandwidth-management%2F&amp;title=PureFTPd%20And%20MySQL%20%28Incl.%20Quota%20And%20Bandwidth%20Management%29" id="wpa2a_18"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/04/06/pureftpd-and-mysql-incl-quota-and-bandwidth-management/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Basic Debian Source List</title>
		<link>http://blog.vukomir.info/2008/03/06/basic-debian-source-list/</link>
		<comments>http://blog.vukomir.info/2008/03/06/basic-debian-source-list/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 15:40:51 +0000</pubDate>
		<dc:creator>Ianculov Vucomir</dc:creator>
				<category><![CDATA[Ubuntu / Debian]]></category>

		<guid isPermaLink="false">http://blog.vukomir.info/2008/03/06/basic-debian-source-list/</guid>
		<description><![CDATA[# Remember that you can only use http, ftp or file URIs # CDROMs are managed through the apt-cdrom tool. deb http://http.us.debian.org/debian stable main contrib non-free deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free deb http://security.debian.org stable/updates main contrib non-free # Uncomment if you want the apt-get source function to work deb-src http://http.us.debian.org/debian stable main contrib non-free [...]]]></description>
			<content:encoded><![CDATA[<p># Remember that you can only use http, ftp or file URIs</p>
<pre># CDROMs are managed through the apt-cdrom tool.
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free

# Uncomment if you want the apt-get source function to work
deb-src http://http.us.debian.org/debian stable main contrib non-free
deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free</pre>
<pre>Sumber asal : <a href="http://usegpl.web.id/www.debian.org" title="Debian Website" target="_blank">www.debian.org</a></pre>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.vukomir.info%2F2008%2F03%2F06%2Fbasic-debian-source-list%2F&amp;title=Basic%20Debian%20Source%20List" id="wpa2a_20"><img src="http://blog.vukomir.info/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.vukomir.info/2008/03/06/basic-debian-source-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

