tag:blogger.com,1999:blog-91741821956546053092024-03-05T19:33:53.179-08:00Tech NuggetsAnonymoushttp://www.blogger.com/profile/05947682193522155212noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-9174182195654605309.post-53221423804478953172014-03-08T16:09:00.000-08:002014-03-08T16:09:06.206-08:00<div style="text-align: center;">
<u><b><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Linux Full Fledged Email Server (Ultimatum!)</span></span></b></u></div>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">This article has been written to outline the advantages and to be used as a step by step guide to install and use the Kolab mail server on Ubuntu.</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Platform</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"></span></span>
<ul>
<li>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Ubuntu 12.04 (LTS)</span></span></li>
<li><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Kolab</span></span></li>
<li><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">OpenLDAP</span></span></li>
<li><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Web Front-ends </span></span></li>
</ul>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">The Advantages (Yep right at the start...!)</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><i>Admin Interface</i> </span></span><br />
<br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Well the admin interface is a rich, feature-packed and user friendly interface.The following can be managed in this interface.</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"></span></span><br />
<ul>
<li>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Users & Groups (obviously!)</span></span></li>
<li><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Roles (Well this slightly different than groups)</span></span></li>
<li><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Domains (Yes, you can have a multiple domains!)</span></span></li>
</ul>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><i>User Interface Features</i></span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"></span></span><br />
<ul>
<li>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Webmail (runs on RoundCube)</span></span></li>
<li><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Tasks/Notes and Calendar</span></span></li>
<li><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Shared Folders</span></span></li>
</ul>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><b>Installation Instructions</b></span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Install the base Ubuntu server (12.04 as of this writing)</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br />This includes the usual Base installation steps along with configuring the network settings etc. Also make sure that the hosts file has the correct configuration. The host file should like the below.</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">127.0.0.1 localhost</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">127.0.1.1 <Hostname.domain.local> <Hostname></span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">www.xxx.yyy.zzz </span></span><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><Hostname.domain.local> <Hostname></span></span><span style="font-family: Verdana,sans-serif;"><span style="font-size: x-small;"> </span></span><br />
<br />
<span style="font-family: Verdana,sans-serif;"><span style="font-size: x-small;">www.xxx.yyy.zzz been the IP of the Kolab server. You can edit this file by typing the below.</span></span><br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><br /></span></span>
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">sudo pico /etc/hosts</span><span style="font-family: Verdana,sans-serif;"> </span></span><br />
<br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">Prepare the server for the Kolab installation.</span></span><br />
<br />
<br />
<code>sudo pico </code><tt class="docutils literal"><span class="pre">/etc/apt/sources.list.d/kolab.list</span></tt><br />
<br />
<span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"><span class="docutils literal"><span class="pre">Once the file opens enter the following lines.</span></span></span></span><br />
<tt class="docutils literal"><span class="pre"><br /></span></tt>
<br />
<pre>deb http://obs.kolabsys.com:82/Kolab:/3.2/Ubuntu_12.04/ ./
deb http://obs.kolabsys.com:82/Kolab:/3.2:/Updates/Ubuntu_12.04/ ./</pre>
<pre></pre>
<pre>Now we will obtain the necessary keys for these repositories. Execute the below in order to complete this.</pre>
<pre></pre>
<pre>sudo su</pre>
<pre><b class="command">wget -qO - http://obs.kolabsys.com:82/Kolab:/3.2/Ubuntu_12.04/Release.key | apt-key add -</b></pre>
<pre><b class="command"><b class="command">wget -qO - http://obs.kolabsys.com:82/Kolab:/3.2:/Updates/Ubuntu_12.04/Release.key | apt-key add -</b></b></pre>
<pre>exit</pre>
<pre> </pre>
<pre></pre>
<pre><span style="font-family: Verdana,sans-serif;"><span style="font-size: x-small;">We need to ensure that the Kolab packages get preference over other repositories. </span></span></pre>
<pre><span style="font-family: Verdana,sans-serif;"><span style="font-size: x-small;">Hence we need to do the following.</span></span></pre>
<pre><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;"> </span></span></pre>
<pre></pre>
<pre>sudo pico <tt class="docutils literal"><span class="pre">/etc/apt/preferences.d/kolab</span></tt></pre>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<pre><span style="font-size: small;"><span style="font-family: Verdana,sans-serif;"><span class="docutils literal"><span class="pre">Once the file opens enter the below.</span></span></span></span></pre>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<pre>Package: *
Pin: origin obs.kolabsys.com
Pin-Priority: 501</pre>
<pre> </pre>
<pre><span style="font-size: small;"><span style="font-family: Verdana,sans-serif;">Once the file is saved and closed run the below.</span></span></pre>
<pre> </pre>
<pre></pre>
<pre>sudo apt-get update</pre>
<pre></pre>
<pre>This will sync the new Kolab repositories. </pre>
<pre></pre>
<pre>This is when we can go for the kill....!</pre>
<pre></pre>
<pre>sudo apt-get install kolab</pre>
<pre></pre>
<pre>you will be prompted for the below credentials</pre>
<pre></pre>
<pre>New MySQL Root Password</pre>
<pre>Postfix Configuration (select "Internet Site" for the time been)</pre>
<pre>Postfix Configuration (enter the FQDN of your domain)</pre>
<pre></pre>
<pre>Once the lengthy installation is complete run the below command.</pre>
<pre></pre>
<pre>sudo setup-kolab</pre>
<pre></pre>
<pre>This process will prompt you for the below.</pre>
<pre></pre>
<pre>Administrator Password</pre>
<pre>Directory Manager Password</pre>
<pre>User and Group accounts under which the services should run under (select the default value)</pre>
<pre>Domain name space (select the default if it the correct FQDN of your domain)</pre>
<pre>Cyrus Administrator Password</pre>
<pre>Kolab Service Password</pre>
<pre>MySQL Server Setup (select Existing MySQL Server)</pre>
<pre>MySQL Root Password (this is the password which was supplied during the Kolab installation)</pre>
<pre>MySQL Kolab Password</pre>
<pre>MySQL Roundcube Password</pre>
<pre></pre>
<pre></pre>
<pre>Once this completes do the following.</pre>
<pre></pre>
<pre>cd to the home directory</pre>
<pre>touch setup_roundcube.patch</pre>
<pre>pico setup_roundcube.patch</pre>
<pre> </pre>
<pre>Navigate to https://issues.kolab.org/attachment.cgi?id=626 and paste the contents to the file you just created.</pre>
<pre> </pre>
<pre>Save and close the file.</pre>
<pre></pre>
<pre>sudo service kolab-server stop</pre>
<pre>sudo service kolab-saslauthd stop</pre>
<pre>mysql -uroot -p -e "DROP DATABASE roundcube"</pre>
<pre>cd /usr/share/pyshared/pykolab/setup </pre>
<pre>sudo patch < ~/setup_roundcube.patch</pre>
<pre>sudo setup-kolab roundcube</pre>
<pre>sudo reboot </pre>
<pre></pre>
<pre>Let's do our initial setup before we can start using the services on the server.</pre>
<pre></pre>
<pre>Navigate to http://<IP_of_the_server><tt class="docutils literal"><span class="pre">/kolab-webadmin/</span></tt></pre>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<pre><tt class="docutils literal"><span class="pre">User Name - cn=Directory Manager</span></tt></pre>
<pre><tt class="docutils literal"><span class="pre">Password - Same password provided for </span></tt>Directory Manager Password</pre>
<pre></pre>
<pre>This is what you should see.</pre>
<pre></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_c9eDLWGDgLtfkAKuZPnvEBlGBoZKns9stv3PSIFRe1hYDJmkPXXCFxvuvzctcm0pNkIMkPDjx2RrSx7sdNVFe2q-IIOBM9YLf37Ejh-SLuRZWXyCHWAhUDCVlu6JPgtS5c8stmtASdKy/s1600/AdminPannel.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg_c9eDLWGDgLtfkAKuZPnvEBlGBoZKns9stv3PSIFRe1hYDJmkPXXCFxvuvzctcm0pNkIMkPDjx2RrSx7sdNVFe2q-IIOBM9YLf37Ejh-SLuRZWXyCHWAhUDCVlu6JPgtS5c8stmtASdKy/s1600/AdminPannel.JPG" height="222" width="640" /></a></div>
<pre></pre>
<pre>Voila! This is the admin panel! Finally....yes!!!</pre>
<pre></pre>
<pre>Click on Users</pre>
<pre></pre>
<pre>Fill in the Account Type (Kolab User)</pre>
<pre>Given Name</pre>
<pre>Surname</pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcd6mOqXFNVdnwqdPKD7V8k1RIlFH1hqK_DH8hJQaBfaPoRufC2gL6kjwmUeqR9nXCcSZYBq0JapvvoSoMGOUlAMv1D7lVcVFqD4DMZEeCJBMND_FAvL7MaFOT0LWSbjxy2SA2xnnOvHYG/s1600/User1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhcd6mOqXFNVdnwqdPKD7V8k1RIlFH1hqK_DH8hJQaBfaPoRufC2gL6kjwmUeqR9nXCcSZYBq0JapvvoSoMGOUlAMv1D7lVcVFqD4DMZEeCJBMND_FAvL7MaFOT0LWSbjxy2SA2xnnOvHYG/s1600/User1.JPG" height="266" width="640" /></a></div>
<pre> </pre>
<pre></pre>
<pre>Click on the System tab</pre>
<pre>Give the new user a password</pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpNJY5yqKg8skJIuR-rLxwXDSawOWgtKFGnW92jbeAu-zyYkgYHoJ3VCxVbqqtzYoCpW7tC0-Now9P47Ihadtk-AVB6-PLpHJFYcG4bM5TD4Gu9l1hhPQKTPzKPvWbKKqxNQzuvzHSsCKR/s1600/User2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpNJY5yqKg8skJIuR-rLxwXDSawOWgtKFGnW92jbeAu-zyYkgYHoJ3VCxVbqqtzYoCpW7tC0-Now9P47Ihadtk-AVB6-PLpHJFYcG4bM5TD4Gu9l1hhPQKTPzKPvWbKKqxNQzuvzHSsCKR/s1600/User2.JPG" height="276" width="640" /></a></div>
<pre> </pre>
<pre></pre>
<pre>Click on the Configuration tab</pre>
<pre>Assign a quota if required </pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHAgwkLE25gOfBjZ7p96O6XDyh8dZ4A6BGqHUjDbcQ0_R1vtYuWPOnCzh43AEcuYpJcesazZfB3R_xCdnPOf1WSiYiQ5tkAVg-VJdK18l8FhfNxlwEDh_9jB1E5gVx9jSKBPC3ei8-YhPv/s1600/User3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgHAgwkLE25gOfBjZ7p96O6XDyh8dZ4A6BGqHUjDbcQ0_R1vtYuWPOnCzh43AEcuYpJcesazZfB3R_xCdnPOf1WSiYiQ5tkAVg-VJdK18l8FhfNxlwEDh_9jB1E5gVx9jSKBPC3ei8-YhPv/s1600/User3.JPG" height="276" width="640" /></a></div>
<pre> </pre>
<pre></pre>
<pre>Click on Submit</pre>
<pre></pre>
<pre>Our first user is born!</pre>
<pre></pre>
<pre>Let's take a look at the webmail interface now!</pre>
<pre></pre>
<pre>Navigate to http://<IP_of_the_server><tt class="docutils literal"><span class="pre">/roundcubemail/ </span></tt></pre>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<pre><tt class="docutils literal"><span class="pre">Log in with the newly created account from the previous step.</span></tt></pre>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<pre><tt class="docutils literal"><span class="pre">The user name would be the surname</span></tt></pre>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA11cFC9avfZNVFhBm0DUMswYAOm30NxUbOVXtNxemW9Fiu-rkX8ZEK6MmtL1d9oNYKvZjem50B_SR02AKJLXycQqGCfxH4lE-XzKNVDfXJd9gQh_qu8VVKfdGv2RqXu4XjCK-FzSZmQNU/s1600/Webmail.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA11cFC9avfZNVFhBm0DUMswYAOm30NxUbOVXtNxemW9Fiu-rkX8ZEK6MmtL1d9oNYKvZjem50B_SR02AKJLXycQqGCfxH4lE-XzKNVDfXJd9gQh_qu8VVKfdGv2RqXu4XjCK-FzSZmQNU/s1600/Webmail.JPG" height="312" width="640" /></a></div>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<pre><tt class="docutils literal"><span class="pre">Here is another useful link to manage the file sharing feature on the server</span></tt></pre>
<pre><tt class="docutils literal"><span class="pre"> </span></tt></pre>
<pre><tt class="docutils literal"><span class="pre"></span></tt>http://<IP_of_the_server><tt class="docutils literal"><span class="pre">/chwala/ (log in as any of the created users)</span></tt></pre>
<pre><tt class="docutils literal"><span class="pre">
</span></tt><tt class="docutils literal"><span class="pre"></span></tt></pre>
<pre><tt class="docutils literal"><span class="pre">
</span></tt><tt class="docutils literal"><span class="pre"></span></tt></pre>
Anonymoushttp://www.blogger.com/profile/05947682193522155212noreply@blogger.com0tag:blogger.com,1999:blog-9174182195654605309.post-57779785128755153282014-02-26T22:37:00.005-08:002014-02-26T22:37:50.244-08:00Best Free AutoTask DashBoard <h2 style="text-align: center;">
<u>Best Free AutoTask DashBoard </u></h2>
<br />
Everyone that uses AutoTask (AT for short from here onwards) dreams of having a live dashboard showing the stats clear and shiny! Here is the solution!!<br />
<br />
Out there is a system which runs on Ubuntu and has a few components installed on it to get this lovely dashboard running. Listed below are the main components (as of this writing)<br />
<br />
<ul>
<li>Ubuntu 12.04 LTS </li>
<li>MySQL 5.5.32</li>
<li>Apache 2.2.22</li>
<li>CakePHP 2.3.4</li>
</ul>
<br />
<b>Installation/Configuration</b><br />
<br />
The easiest way to get this up and running in a short time is to download the pre-configured virtual machine. This can be downloaded from <a href="http://www.autotask.campai.nl/documents/autotask-dashboards-virtual-machine.zip" target="_blank">here</a><br />
<br />
The purpose of this document is not to cover the actual configuration as such but to provide an overview in to the dashboard it self.<br />
<br />
This dashboard can do the following.<br />
<br />
<ul>
<li>Gather information from different queues</li>
<li>Accumulate data for each resource</li>
<li>Show the rate of closed tickets against created tickets per day.</li>
<li>Show the resource that closed the most number of tickets</li>
</ul>
<br />
All this can be done for free! Highly recommended for all AT using companies. <br />
<br />
Below is a screenshot of what it looks like (to give you a taste!)<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDGBxnmiK67WR0UgEsp92fwaSG1e7xz741e4ZDbBA8wdGx-qZtihd7CzuWp6NJv5uWTpywwUwTJY3b4-IYz2tPcHbuQPYmprQcqyJiRM-QL6qb3bFk46W6kFKA9IEeIXBpKrCiXpQC3CYV/s1600/AT+Dashboard.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDGBxnmiK67WR0UgEsp92fwaSG1e7xz741e4ZDbBA8wdGx-qZtihd7CzuWp6NJv5uWTpywwUwTJY3b4-IYz2tPcHbuQPYmprQcqyJiRM-QL6qb3bFk46W6kFKA9IEeIXBpKrCiXpQC3CYV/s1600/AT+Dashboard.JPG" height="266" width="640" /></a></div>
<br />
The website for more information is <a href="http://www.autotask.campai.nl/" target="_blank">this</a>Anonymoushttp://www.blogger.com/profile/05947682193522155212noreply@blogger.com0tag:blogger.com,1999:blog-9174182195654605309.post-74245486382387273822014-02-26T22:24:00.002-08:002014-02-26T22:24:57.945-08:00<h2 style="text-align: center;">
<u>Full Featured Email Server in Ubuntu</u></h2>
<br />
<i>This tutorial has been written to outline the steps to install and configure a full featured email server.</i><br />
<br />
<b>Obejectives:</b><br />
<br />
<ul>
<li>Have a light weight email server</li>
<li>All software should be free of charge (of course!)</li>
<li>Easy to use and configure</li>
</ul>
<br />
<b>List of Components:</b><br />
<br />
<ul>
<li>Postfix: SMTP service</li>
<li>Dovecot: POP3/POP3S, IMAP/IMAPS,</li>
<li>Managesieve service</li>
<li>Apache: Web server</li>
<li>MySQL: Storing mail accounts and application data</li>
<li>Amavisd, SpamAssassin,</li>
<li>ClamAV: Anti-spam, anti-virus</li>
<li>Roundcube: Webmail</li>
<li>Awstats: Apache and Postfix log analyzer</li>
<li>Fail2ban: scans log files (e.g. /var/log/apache/error_log) and bans
IPs that show the malicious signs -- too many password failures, seeking
for exploits, etc.</li>
<li>iRedAdmin: A basic, free & open source administration panel to manage the mail accounts</li>
<li>Webmin: A full featured, web based system admin tool to manage the server remotely</li>
<li>OpenSSH: A service to access the CLI interface remotely.</li>
</ul>
<br />
<u><b>Step 1 (Ubuntu Server Base Installation)</b></u><br />
<br />
Install the base server components. Do not install any extra components at the tasksel screen.Once the installtion is complete run the following commands to bring the installation up to date with the latest software components on the online repos.<br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">sudo apt-get update</span></span><br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">sudo apt-get upgrade -y</span></span><br />
<br />
Assign a static IP to the box.<br />
<br />
In order to assign a static IP address execute the following commands on the CLI <br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">sudo nano /etc/network/interfaces</span></span><br />
<br />
Once in the interfaces file the display should like something similar to the below screen grab<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWIPZxIEu57WOqSSg-J0I34UFmB040MBglM4rckkh6NH0bwD8ayLxzqi6gJOORRu62Vrq-F8YPje2k5tzMcYabc5Fa4hUdq7UA6Q_gV9RKQvVxqEsx89jpJO0VLVZJ6ZqkJsiKjHaVMV0M/s1600/Networking+DHCP.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjWIPZxIEu57WOqSSg-J0I34UFmB040MBglM4rckkh6NH0bwD8ayLxzqi6gJOORRu62Vrq-F8YPje2k5tzMcYabc5Fa4hUdq7UA6Q_gV9RKQvVxqEsx89jpJO0VLVZJ6ZqkJsiKjHaVMV0M/s1600/Networking+DHCP.JPG" height="256" width="640" /></a></div>
<br />
Make the following changes<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDZrVMLZ7kdKf7XDY8khjEXQgb5FiIeLfdzN70NvsIKqni6vm0_CqsIzexVQwzymxLEAKHi6zYM4CbDWTM10lZXLpHmUKUyzZvLzG7p8dlhpAaj-yXxoYwPrL6uw0L2kbNY58QW7HIJwnL/s1600/Networking+STATIC.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjDZrVMLZ7kdKf7XDY8khjEXQgb5FiIeLfdzN70NvsIKqni6vm0_CqsIzexVQwzymxLEAKHi6zYM4CbDWTM10lZXLpHmUKUyzZvLzG7p8dlhpAaj-yXxoYwPrL6uw0L2kbNY58QW7HIJwnL/s1600/Networking+STATIC.JPG" height="236" width="640" /></a></div>
<br />
Make sure the server has a FQDN configured. In order to do so execute the following on the CLI.<br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">sudo nano /etc/hosts</span></span><br />
<br />
Edit the lines to look similar to the below. Remeber to add tabs between instead of spaces! <br />
<br />
127.0.0.1 localhost<br />
127.0.1.1 <ServerName.domain.local> <ServerName> <br />
<IP_Address> <ServerName.domain.local> <ServerName> <br />
<br />
Reboot the computer to apply all changes.<br />
<br />
<u><b>Step 2 (OpenSSH Installation)</b></u><br />
<br />
Execute the following command to complete this step<br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">sudo apt-get install openssh-server -y</span></span><br />
<br />
After the installation is complete download putty from <a href="http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe" target="_blank">here</a>. Open Putty.exe is downloaded on your desktop computer open it and enter the IP of the server. You will receive a warning about adding SSH keys, click "Yes" and you will be presented with a remote loin screen to the server. <br />
<br />
<u><b>Step 3 (Install Webmin)</b></u><br />
<br />
Execute the following commands<br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">sudo pico /etc/apt/sources.list</span></span><br />
<br />
Once the file opens add the following lines to the end.<br />
<span style="font-size: x-small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"><br /><span style="font-size: small;">#Webmin</span></span></span><br />
<span style="font-size: small;"><code>deb http://download.webmin.com/download/repository sarge contrib<br />
deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib </code></span><br />
<br />
<br />
Then close the file after saving it and execute the below.<br />
<br />
<span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">sudo su<br />cd</span></span><br />
<span style="font-size: small;"><span style="font-family: "Courier New",Courier,monospace;">wget http://www.webmin.com/jcameron-key.asc<br />apt-key add jcameron-key.asc <br />exit<br />sudo apt-get update<br />sudo apt-get install webmin -y<code><code> </code> </code></span></span> <br />
<br />
<u><b>Step 4 (iRedMail Installation)</b></u><br />
<br />
Visit <a href="http://www.iredmail.org/download.html" target="_blank">this</a> page and download the latest release of iRedMail. In order to do this copy the link to the actual file (Right click on the file and click on "Copy Link Location" (in Firefox). Open a SSH session (via Putty, see Step 2) and run the following command.<br />
<span style="font-size: small;"><br /><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">mkdir iRedMail</span></span><br />
this will create a new directory under your home directory. change the directory to the newly created one.Then type wget and right click inside the putty session. If the link was copied it will be pasted on the session. The set of commands to accomplish these tasks are as follows.<br />
<span style="font-size: small;"><br /></span>
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">cd iRedMail</span></span><br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">wget https://bitbucket.org/zhb/iredmail/downloads/iRedMail-0.8.6.tar.bz2</span></span><br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">ls</span></span><br />
<br />
The screen should look like this after all the above commands have been executed.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSlkCKDCKYRi8wBVGXzIZGjPyQMBlrt7hBrLHJ46daHw5KORCZbY-aMi8Rs7gkLiEry-jUkOpHWpMOwKNOBdOJNY2BzhdT0m8nq6EnUGZbBkG9dnrbG08ZMc4rFJRWY0LFCK5yx8AEMKCu/s1600/iRedMail+Download.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjSlkCKDCKYRi8wBVGXzIZGjPyQMBlrt7hBrLHJ46daHw5KORCZbY-aMi8Rs7gkLiEry-jUkOpHWpMOwKNOBdOJNY2BzhdT0m8nq6EnUGZbBkG9dnrbG08ZMc4rFJRWY0LFCK5yx8AEMKCu/s1600/iRedMail+Download.JPG" height="122" width="640" /></a></div>
<br />
Let's go ahead and extract the downloaded file as it is a zipped archive. Type the following. The "x.y.z" stands for the version number on the file.<br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">tar xjf iRedMail-x.y.z.tar.bz2</span></span><br />
<br />
This will create a new folder iRedMail-x.y.z If you type ls this is visible. CD to the folder.<br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">cd iRedMail-x.y.z</span></span><br />
<br />
Let's install it (finally!)<br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;"> sudo bash iRedMail.sh</span></span><br />
<br />
Here are the screenshots of the setup steps.<br />
<br />
<div style="text-align: center;">
Figure 1</div>
<div class="separator" style="clear: both; text-align: left;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfqMXr17AEvMCrU5BMbI8G2zdT4yrAAGxCKLziGLgwn89wqaVXLbYrc03Z76PcZzSd4bIeE5ODkOGKAl0r0v-hplPNtusAy7MuxIJJ-LwQUPDiafM8EfptAqY3xR5zbf1xUzP0be8AJWOX/s1600/iRedMail_Install_I.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjfqMXr17AEvMCrU5BMbI8G2zdT4yrAAGxCKLziGLgwn89wqaVXLbYrc03Z76PcZzSd4bIeE5ODkOGKAl0r0v-hplPNtusAy7MuxIJJ-LwQUPDiafM8EfptAqY3xR5zbf1xUzP0be8AJWOX/s1600/iRedMail_Install_I.JPG" height="338" width="640" /></a>Tab to "Yes" and hit enter</div>
<br />
<div style="text-align: center;">
Figure 2</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPcZtwy8ceSbw8IVuSTSGQKQSgkPrOoTVP1JgfJX-6-OGGdpOpbb0vq7OJI_LtleaA9KuK26VhVxoJVpUyjj0CfH0OK4HASlVFjvihrpW4Fv3LszempBCVX4Qaay7LXdp-Cc-Zk3zk-bX1/s1600/iRedMail_Install_II.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiPcZtwy8ceSbw8IVuSTSGQKQSgkPrOoTVP1JgfJX-6-OGGdpOpbb0vq7OJI_LtleaA9KuK26VhVxoJVpUyjj0CfH0OK4HASlVFjvihrpW4Fv3LszempBCVX4Qaay7LXdp-Cc-Zk3zk-bX1/s1600/iRedMail_Install_II.JPG" height="340" width="640" /></a></div>
For the time been we could hit "Next". but the best would be to hold this directory on a separate drive and have a directory dedicated for it on that drive.<br />
<br />
<div style="text-align: center;">
Figure 3</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNy_lRSV1y0xPW7-nQDvC2kCzKCSmb2yuFC-WG38p1vD8FaMGNA4JoSLvXSUbsCO40sExLonkWwD1KfMTx9ujkBckuTsrGxY_-rSOuY9MxMB3FhxIUSwRI_JM_U62QrMNlktkv0_pQxgQm/s1600/iRedMail_Install_III.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjNy_lRSV1y0xPW7-nQDvC2kCzKCSmb2yuFC-WG38p1vD8FaMGNA4JoSLvXSUbsCO40sExLonkWwD1KfMTx9ujkBckuTsrGxY_-rSOuY9MxMB3FhxIUSwRI_JM_U62QrMNlktkv0_pQxgQm/s1600/iRedMail_Install_III.JPG" height="342" width="640" /></a>Let's select MySQL as it is less complicated. Again OpenLDAP would be my choice as it is far more scalable. and besides that's the application that is built for directory work! But let's go with MySQL on this occasion.<br />
<br />
<div style="text-align: center;">
Figure 4</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQsuxxvvM2fJoo8eNI9TlQDuVGprkeMmanr-u8RM31WQb_qlZjOFgTaPhxQd655WdLx5lbo5u1e8YWJwYjCEhlO71MD3pp_3iRqbhh1cvVv1q51tGCLB_bRfvsOH1h52L25T02dfl3951f/s1600/iRedMail_Install_IV.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQsuxxvvM2fJoo8eNI9TlQDuVGprkeMmanr-u8RM31WQb_qlZjOFgTaPhxQd655WdLx5lbo5u1e8YWJwYjCEhlO71MD3pp_3iRqbhh1cvVv1q51tGCLB_bRfvsOH1h52L25T02dfl3951f/s1600/iRedMail_Install_IV.JPG" height="336" width="640" /></a>Well read the instructions and do as it says! <br />
<br />
<div style="text-align: center;">
Figure 5</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgutn_PhZ7A5BH8r82PXQ_QOmZRjRz8A-0wbde8hd_nkyAj5kuqhyphenhyphenDGD6AD3a_BQGkAdOf8AOjOokZIkVJ54EdN53_1CyPZIjzhCophPUcfzkJKSXoa04vkBeeXgWHhf2yqXHJOPwLf8fAY/s1600/iRedMail_Install_V.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgutn_PhZ7A5BH8r82PXQ_QOmZRjRz8A-0wbde8hd_nkyAj5kuqhyphenhyphenDGD6AD3a_BQGkAdOf8AOjOokZIkVJ54EdN53_1CyPZIjzhCophPUcfzkJKSXoa04vkBeeXgWHhf2yqXHJOPwLf8fAY/s1600/iRedMail_Install_V.JPG" height="340" width="640" /></a>Add the actual domain name here! The external domain that you would expect the emails to land in.<br />
<br />
<div style="text-align: center;">
Figure 6</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUXww1LxELYcMKsYGIJw9ne8QIYDQ8JPZEtu-Q7WAtpQalNFS3kO-9FyS7kUyWDpiWRQ5hy3SLOoLcHhBRES5GCmDfdedTxUWB5monR3F9kdB8C4RlvVqMfqAerj4tuemilEZrduhculej/s1600/iRedMail_Install_VI.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiUXww1LxELYcMKsYGIJw9ne8QIYDQ8JPZEtu-Q7WAtpQalNFS3kO-9FyS7kUyWDpiWRQ5hy3SLOoLcHhBRES5GCmDfdedTxUWB5monR3F9kdB8C4RlvVqMfqAerj4tuemilEZrduhculej/s1600/iRedMail_Install_VI.JPG" height="340" width="640" /></a>Again enter the password for the admin user.<br />
<br />
<div style="text-align: center;">
Figure 7</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyPMtopRoKbCR4wnTMz4F62RLaSw1TdrszXJsa3qWDXjDYOYD2_h0zbUIa44kC71FAT1Xm1TKpjrWZVhMSHtjsUvbLbB1EKCDSEXpWM0miKm1IeY7IULCGMf4bUEuK9FLeia67i6bhD8DT/s1600/iRedMail_Install_VII.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjyPMtopRoKbCR4wnTMz4F62RLaSw1TdrszXJsa3qWDXjDYOYD2_h0zbUIa44kC71FAT1Xm1TKpjrWZVhMSHtjsUvbLbB1EKCDSEXpWM0miKm1IeY7IULCGMf4bUEuK9FLeia67i6bhD8DT/s1600/iRedMail_Install_VII.JPG" height="336" width="640" /></a>Allow all the items to be selected (this is by default) and select "Next".<br />
<br />
<div style="text-align: center;">
Figure 8</div>
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMNa1OilIGl-UteGKoDhrqZ8OQOdH-MvKJWyUhAnOwt6CdFg3m2MT2-d0uteFGDsfdR1ae-WIA9GLyrvURcfLZzBALKcwmJ57baSUeFPOcXi8T155KoxM_bewpOovhyD4YyKybuk_PyOTz/s1600/iRedMail_Install_VIII.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhMNa1OilIGl-UteGKoDhrqZ8OQOdH-MvKJWyUhAnOwt6CdFg3m2MT2-d0uteFGDsfdR1ae-WIA9GLyrvURcfLZzBALKcwmJ57baSUeFPOcXi8T155KoxM_bewpOovhyD4YyKybuk_PyOTz/s1600/iRedMail_Install_VIII.JPG" height="228" width="640" /></a>Well hitting "y" would be helpful here :-)<br />
<br />
This will start a bit of a lengthy installation/configuration process. Sit back and have a coffee. I know how tiring all this would have been!<br />
<br />
<br />
Once the installation is complete here are the URLs to go to and here starts the fun stuff!<br />
<br />
<b><span style="font-family: Georgia,"Times New Roman",serif;">Webmail</span></b>: <span class="system">http://your_server/mail/</span> <br />
postmaster@<your_domain> / Password given during installation<br />
See Figure 6 <br />
<br />
<b><span style="font-family: Georgia,"Times New Roman",serif;">Admin panel</span></b>: <span class="system">https://your_server/iredadmin/</span><br />
<span class="system">postmaster@<your_domain> / Password given during installation</span><br />
See Figure 6<br />
<br />
<br />
<b><span style="font-family: Georgia,"Times New Roman",serif;">phpMyAdmin</span></b>: <span class="system">https://<IP_of_Server>/phpmyadmin/</span><br />
<span class="system">root / Password given during installation </span><br />
<span class="system">See Figure 4 </span><br />
<br />
<b><span style="font-family: Georgia,"Times New Roman",serif;">Awstats</span></b>: <span class="system">https://</span><span class="system"><span class="system"><IP_of_Server></span>/awstats/awstats.pl?config=web</span> (or <span class="system">?config=smtp</span>)<br />
<span class="system">postmaster@<your_domain> / Password given during installation</span><br />
See Figure 6<br />
<br />
<br />
<b><span style="font-family: Georgia,"Times New Roman",serif;">Webmin</span></b> http://<IP_of_Server>:10000<br />
The user you login to the server with and the same password<br />
<br />
Tip:<br />
<br />
In case none of the above sites can be accessed it is not an problem with the installation. Instead the installed iptables firewall is blocking all the incoming connections and in turn blocks access to all the above. To resolve this do the following (Please be aware that this is a temp measure only.Resolving the issue is outside the scope of this document)<br />
<br />
<span style="font-size: small;"><span style="font-family: "Helvetica Neue",Arial,Helvetica,sans-serif;">sudo services iptables stop</span></span><br />
<br />
Here ends my little tutorial. Hope it comes in useful people!Anonymoushttp://www.blogger.com/profile/05947682193522155212noreply@blogger.com0tag:blogger.com,1999:blog-9174182195654605309.post-89092786587394016182011-11-08T03:35:00.000-08:002011-11-09T00:05:04.985-08:00Home Server with Ubuntu<br />
<div style="font-family: Verdana,sans-serif; text-align: center;">
<b>Installing and Configuring an Internet Gateway with Ubuntu </b></div>
<br />
<br />
<u><i>Overview</i></u><br />
<br />
All homes have internet access these days. With browsing comes other requirements like sharing, downloading and security. In this tutorial I will explain how to install a linux server to give your home network some security, bandwidth sharing and torrent downloading facilities. Well while there are many ways to accomplish this here is a cheap and effective way to accomplish this. And when I say cheap I mean absolutely no cost for software! This is how the setup will look like.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVPUlMFRcjZA4g1BCcvrS7f3dex3PlUw6_CrkEojS9USJRcrGzK07_T2IjKVc_8nI9mYXwIc0j1jXUK19A8DBllf5AGwA0RImS-iszg03zmuHPexOtBr0t5w9TKpiHotRqP-Oe4W-IXgOK/s1600/UbuntuHomeServer.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="141" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgVPUlMFRcjZA4g1BCcvrS7f3dex3PlUw6_CrkEojS9USJRcrGzK07_T2IjKVc_8nI9mYXwIc0j1jXUK19A8DBllf5AGwA0RImS-iszg03zmuHPexOtBr0t5w9TKpiHotRqP-Oe4W-IXgOK/s400/UbuntuHomeServer.jpg" width="400" /></a></div>
<br />
<i><b>Requirements</b></i><br />
<br />
<u><b>Hardware</b></u><br />
<br />
Basic PC with at least 2 HDDs and 2 NICs. For this tutorial I will assume that the first NIC is connected to your ADSL router.<br />
<br />
<u><b>Software </b></u><br />
<br />
Latest Ubuntu release (11.10 at the time of the writing)<br />
<br />
<br />
Component list<br />
<br />
<br />
<ul>
<li>Ubuntu (Operating System)</li>
<li>Webmin (Web based remote management system)</li>
<li>OpenSSH (Remote command line server)</li>
<li>Shorewall (Firewall)</li>
<li>Squid (Proxy Server)</li>
<li>SARG (Squid Log Report Generator) </li>
<li>DHCP3 (DHCP Server)</li>
<li>Bind9 (DNS Server)</li>
<li>MySQL (SQL Server for TorrentFlux-b4rt)</li>
<li>Apache (Web Server for TorrentFlux-b4rt)</li>
<li>Full PHP Base (TorrentFlux-b4rt runs on this)</li>
<li>TorrentFlux-b4rt (Torrent Server)</li>
</ul>
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">Installing Ubuntu</b><br />
<br />
Download the latest Ubuntu release from <a href="http://www.ubuntu.com/" target="_blank">here</a>. Burn the ISO to a CD and boot your PC of the CD. Please see the following screenshots and follow it to install the operating system. Please note that the screenshots have been taken from 11.04 but the 11.10 installation screens look very similar. Alternatively you could also look <a href="https://help.ubuntu.com/11.10/installation-guide/i386/howto-getting-images.html" target="_blank">here</a> and <a href="https://help.ubuntu.com/11.10/installation-guide/i386/howto-installation.html" target="_blank">here</a> for further installation details. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoAZvnlPyKhhANKONdULGcpL4MyPtVqHEoyM-ZNZhyDv-lSGG05ws1JJBcsSTmicLLVrrRaBB32ge1IiBgSTGak5pYQxFItOMMeArSkRhkKC_NMofHC1J4jfOt0g_SnpasgzplMvmtTDCN/s1600/Inst1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjoAZvnlPyKhhANKONdULGcpL4MyPtVqHEoyM-ZNZhyDv-lSGG05ws1JJBcsSTmicLLVrrRaBB32ge1IiBgSTGak5pYQxFItOMMeArSkRhkKC_NMofHC1J4jfOt0g_SnpasgzplMvmtTDCN/s320/Inst1.JPG" width="320" /></a></div>
<br />
Highlight English and hit enter.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiezYGRK1BVNxiKPOxE3_0RF8KnFyY3xSY3aZUW2saVtwJ5M2SWbocuTHHL2TYqlFSIt1WbIGcIWY6j1CGRhBOxrBgkPofYUoDqfM94Gqzxpw9a9DpET0nEYuNNMMaNAe28wbiUH5sbuIUm/s1600/Inst2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiezYGRK1BVNxiKPOxE3_0RF8KnFyY3xSY3aZUW2saVtwJ5M2SWbocuTHHL2TYqlFSIt1WbIGcIWY6j1CGRhBOxrBgkPofYUoDqfM94Gqzxpw9a9DpET0nEYuNNMMaNAe28wbiUH5sbuIUm/s320/Inst2.JPG" width="320" /></a></div>
Highlight Install Ubuntu Server and hit enter.<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjadNxB4FfzAJZWWIAVxyBdRZUUoau1Cnf4wpmKpNfQRybx1E1NvgHTRCPElcmiHq0WQTYhOyFa5T_dye30kVjQoY3JIMUN-BsztAFdA8wfJp-4yfCJkw_q23tjQqW9INd9E_HhYvV7-lK_/s1600/Ins3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjadNxB4FfzAJZWWIAVxyBdRZUUoau1Cnf4wpmKpNfQRybx1E1NvgHTRCPElcmiHq0WQTYhOyFa5T_dye30kVjQoY3JIMUN-BsztAFdA8wfJp-4yfCJkw_q23tjQqW9INd9E_HhYvV7-lK_/s320/Ins3.JPG" width="320" /></a></div>
<br />
I've chosen English here. But you could customize it to fit your needs. I will skip to the meat and potatoes of the installation. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_CbmBoYj3J6fDKEWcmlKKqvpUno_CqYnGGm5tDxYXzvtySIzZShItqMWFsMGoU4CcM98YMUJdamyrXDxZ1bcsqsk2P3ZWo9_ZQdD3ebrFnCN9174U_97atzghzhS999pb2VO5k_KKUUOl/s1600/Inst4.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_CbmBoYj3J6fDKEWcmlKKqvpUno_CqYnGGm5tDxYXzvtySIzZShItqMWFsMGoU4CcM98YMUJdamyrXDxZ1bcsqsk2P3ZWo9_ZQdD3ebrFnCN9174U_97atzghzhS999pb2VO5k_KKUUOl/s320/Inst4.JPG" width="320" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
</div>
Highlight eth0 and hit enter. Please note that the name of the adapter is not important. What really matters is the real device name of the adapter which in this case is eth0.<br />
<br />
<span id="goog_1775777273"></span><span id="goog_1775777274"></span><br />
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9rvBEL8YOMXNO-z0hhDe9kdp0fqZZAz6pvtqOkeHrdLGZuyMWt_AQuvOAwtWZnJ52Yg0w2yHo5O_hyphenhyphennL0ENBDKGP8jaLvp08zbEiFITFN5naL_XQmv2JHaHp99jEMAD023qM1Ge4AVHpt/s1600/Inst5.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9rvBEL8YOMXNO-z0hhDe9kdp0fqZZAz6pvtqOkeHrdLGZuyMWt_AQuvOAwtWZnJ52Yg0w2yHo5O_hyphenhyphennL0ENBDKGP8jaLvp08zbEiFITFN5naL_XQmv2JHaHp99jEMAD023qM1Ge4AVHpt/s320/Inst5.JPG" width="320" /></a></div>
<br />
Type a name for the server and hit enter. Note that the name cannot contain spaces. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicM4dQpdKod88JjvDfeOHMx6LCM0ZKnA2pyMbaf7WkIFjAxii_5mZ_BtFyx8AwjGacVRPve5KWU0BiSCaItZ6ICj-ASbl9j7R50nimK0n5UALw5sq0K-aTmaga_j5d2nZ5urKeXlUven41/s1600/Inst6.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEicM4dQpdKod88JjvDfeOHMx6LCM0ZKnA2pyMbaf7WkIFjAxii_5mZ_BtFyx8AwjGacVRPve5KWU0BiSCaItZ6ICj-ASbl9j7R50nimK0n5UALw5sq0K-aTmaga_j5d2nZ5urKeXlUven41/s320/Inst6.JPG" width="320" /></a></div>
<br />
Usually you could just hit enter here.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho8eL1klbb67ZA-f7njp7FVjaC2IzbzZpTqC1qs3zMW6NXJeRVOv3a0uTb7GhDAeBrdhj4EL3AC5K2ES5Dnrw_VEGGOdpnW8F_WznUUwdzgVwGLVKASrRk3kDh7b6g1kMfzLV1z6PqYSwE/s1600/Inst7.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEho8eL1klbb67ZA-f7njp7FVjaC2IzbzZpTqC1qs3zMW6NXJeRVOv3a0uTb7GhDAeBrdhj4EL3AC5K2ES5Dnrw_VEGGOdpnW8F_WznUUwdzgVwGLVKASrRk3kDh7b6g1kMfzLV1z6PqYSwE/s320/Inst7.JPG" width="320" /></a></div>
<br />
Highlight Guided - use entire disk and set up LVM.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEacEwN0DmhmIlvWUXy1M8WLmMjWi2QFiXDDS3kM7mKRIMkV5oUTr4NkDYsG0H3E9u3ygBXTu5qnzsj0fnlxqye-FnhPCFnYkMUoeg6nPsVLtU8cEYY0DHJrVDVE32OY0-zr1D0_FkFTtL/s1600/Inst8.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiEacEwN0DmhmIlvWUXy1M8WLmMjWi2QFiXDDS3kM7mKRIMkV5oUTr4NkDYsG0H3E9u3ygBXTu5qnzsj0fnlxqye-FnhPCFnYkMUoeg6nPsVLtU8cEYY0DHJrVDVE32OY0-zr1D0_FkFTtL/s320/Inst8.JPG" width="320" /></a></div>
<br />
Usually you could highlight the first entry. Make sure that it says (0,0,0). Or the highest possible in your case. This means that you are installing Ubuntu on the first hard disk. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-GC-NZi_JMZH5SEr7Xr6xRAA9ujaPDk65ql71Hp5-f3b8__o5quCKrxDAJerzRBpd9kTmyIuJ3XcwwogbvM4M9aDoQcthuETAKtUuAlfrf6BPXWs3S4SUJxFIZYjpusHiLT3I722tFljW/s1600/Inst9.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-GC-NZi_JMZH5SEr7Xr6xRAA9ujaPDk65ql71Hp5-f3b8__o5quCKrxDAJerzRBpd9kTmyIuJ3XcwwogbvM4M9aDoQcthuETAKtUuAlfrf6BPXWs3S4SUJxFIZYjpusHiLT3I722tFljW/s320/Inst9.JPG" width="320" /></a></div>
Select Yes and press enter.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii6lI3tw81OaIK3XDbZwayPSKgD-rpFqFhCkAQsWIh3MG18LBEUR5-SBELP3TtHpJrFcN3TT2eWr_AGKHWs_yjI0hTAK0NcjKpPcHc_x90Gad27KfvfcB7tAYQxPeNv5Ba5876IfWFwuDh/s1600/Inst10.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEii6lI3tw81OaIK3XDbZwayPSKgD-rpFqFhCkAQsWIh3MG18LBEUR5-SBELP3TtHpJrFcN3TT2eWr_AGKHWs_yjI0hTAK0NcjKpPcHc_x90Gad27KfvfcB7tAYQxPeNv5Ba5876IfWFwuDh/s320/Inst10.JPG" width="320" /></a></div>
Backspace whatever that's in by default and type in max. Hit enter.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYzgttu0CZKWTGn_5Mgvq70K6SGImROK0uK3Gg72y61kVD27x2nVEs4l3tEUmI2xCF8lpJKGnr2vrcpj1YuG9BN3rei8QlJTYPJH06FdSYQCkfSNH6SM-iC3kI4o_KWIkguWsUJrfXUW6C/s1600/Inst11.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjYzgttu0CZKWTGn_5Mgvq70K6SGImROK0uK3Gg72y61kVD27x2nVEs4l3tEUmI2xCF8lpJKGnr2vrcpj1YuG9BN3rei8QlJTYPJH06FdSYQCkfSNH6SM-iC3kI4o_KWIkguWsUJrfXUW6C/s320/Inst11.JPG" width="320" /></a></div>
Highlight Yes and hit enter. Once this is done the installer will initiate the actual installation. Sit back and relax while it's been done for you.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk3OTMVRhNagi0uiJ5Um1SEZ3OR1KeOW3NaCFOWrI4Brsl06wGJqpU2vxG6s2pZK9gUHMXAgAbPQUVoNX9ngpBaW5iNhwLqzV_iMj0JZHxmso45BTKpnwljLwTui_WHaduhLyP6yek9eTE/s1600/Inst12.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhk3OTMVRhNagi0uiJ5Um1SEZ3OR1KeOW3NaCFOWrI4Brsl06wGJqpU2vxG6s2pZK9gUHMXAgAbPQUVoNX9ngpBaW5iNhwLqzV_iMj0JZHxmso45BTKpnwljLwTui_WHaduhLyP6yek9eTE/s320/Inst12.JPG" width="320" /></a></div>
<br />
Give your user a name and hot enter. I've user the name user in this tutorial.Once you hit enter you will get a very similar screen to the one above. hit enter again. Please note that you could change the user name for the account you created. I prefer to keep both names the same to avoid complications.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGZfRQktc7xS5yaPbL47eMDqIBmx0P06ZEX7hn_nwxxaS43VqLFtrjRm8sEEIEwTZTail9sQUqDKZtUddvbUVe-oRzn2PuAdVayaECCbH_fbQPxDiyXvExrRCo81Ne25FRbv1Mcz5HO5I5/s1600/Inst13.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgGZfRQktc7xS5yaPbL47eMDqIBmx0P06ZEX7hn_nwxxaS43VqLFtrjRm8sEEIEwTZTail9sQUqDKZtUddvbUVe-oRzn2PuAdVayaECCbH_fbQPxDiyXvExrRCo81Ne25FRbv1Mcz5HO5I5/s320/Inst13.JPG" width="320" /></a></div>
<br />
Give the new account a secure password. Note that the password you type is displayed as asterisks. Once the password is typed hit enter and enter the same password in the confirmation box as well.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAUdXz29w3d38Z-HNme8TQ_G097pnSk6eYi2edIbc2JF6eDRnpsv5AgmxEYSvtOVRHOLh8N0Z_Fh3EOkSgXMW-RjPK6JNGzSCDdMK4t0wjQr9jVxw5voa3AkyJGUcEhbmoT47hkplxrV4o/s1600/Inst14.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjAUdXz29w3d38Z-HNme8TQ_G097pnSk6eYi2edIbc2JF6eDRnpsv5AgmxEYSvtOVRHOLh8N0Z_Fh3EOkSgXMW-RjPK6JNGzSCDdMK4t0wjQr9jVxw5voa3AkyJGUcEhbmoT47hkplxrV4o/s320/Inst14.JPG" width="320" /></a></div>
<br />
Select No when prompted to encrypt your home directory. This will avoid any complications.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw9snZCE4sK7hpVSYKDVPwcJvZGMBFSLiHONIPDTWs15iRYKIojHSxSf8W8y9Oq5oRrUCT8Qb-8K5WtjVzWW8CTH7SMMsT2SItSAOIQwSZHuYozzI3ee9wVluLkCWMMJIMF3slDMUZpRs6/s1600/Inst15.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgw9snZCE4sK7hpVSYKDVPwcJvZGMBFSLiHONIPDTWs15iRYKIojHSxSf8W8y9Oq5oRrUCT8Qb-8K5WtjVzWW8CTH7SMMsT2SItSAOIQwSZHuYozzI3ee9wVluLkCWMMJIMF3slDMUZpRs6/s320/Inst15.JPG" width="320" /></a></div>
<br />
Just hit enter here. The installation will start downloading additional files and resume the installation process. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFlsNWUZiyuKWjanfbzIaB0BSh4d-AL4wVRgl95G4dzW92wejMFBkR6qMxqLCE3iq9hyphenhyphenJi-dECh_gULJ3dLCmaQxPEeqHFqDImO0Ha6Grkd9GAfpUL77pf5J0o6ad9UR8T_m94a4XmShyF/s1600/Inst16.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiFlsNWUZiyuKWjanfbzIaB0BSh4d-AL4wVRgl95G4dzW92wejMFBkR6qMxqLCE3iq9hyphenhyphenJi-dECh_gULJ3dLCmaQxPEeqHFqDImO0Ha6Grkd9GAfpUL77pf5J0o6ad9UR8T_m94a4XmShyF/s320/Inst16.JPG" width="320" /></a></div>
Select No automatic updates and hit enter.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoIHk45chDC95aN50acoQxV1Nxw3YyZs-15iVFyeqlvOHiudLGrpCpBhhBclrKSDjsTnfqbynMoWLZm33P-Ipa7MUm06qfvl0wZCvQvuxd1cZeXHxyFSK9haegUUTW9akOxg5FFWaOeNT5/s1600/Inst17.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgoIHk45chDC95aN50acoQxV1Nxw3YyZs-15iVFyeqlvOHiudLGrpCpBhhBclrKSDjsTnfqbynMoWLZm33P-Ipa7MUm06qfvl0wZCvQvuxd1cZeXHxyFSK9haegUUTW9akOxg5FFWaOeNT5/s320/Inst17.JPG" width="320" /></a></div>
<br />
Hit the tab key to highlight Continue and hit enter.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVR1j1BZlXmmTM2LraR7VzqMHmjnjBN30yh1I7le6Q5oXrS0XrU3l8b4jckDdiEayt8efFD5Jn1qjqNk1IY7p4qCztvWk7sISrZi-TnWuY8BwVjUYL_nGiqh4n1FCEkUHJpfqz1b0r8nco/s1600/Inst18.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="239" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVR1j1BZlXmmTM2LraR7VzqMHmjnjBN30yh1I7le6Q5oXrS0XrU3l8b4jckDdiEayt8efFD5Jn1qjqNk1IY7p4qCztvWk7sISrZi-TnWuY8BwVjUYL_nGiqh4n1FCEkUHJpfqz1b0r8nco/s320/Inst18.JPG" width="320" /></a></div>
Highlight Yes to install the GRUB boot loader and hit enter.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUTjrcm21qnbxkqosCFCYWs_QKfHagLfmUyLajd5QXlMlKBMvnOChCZDbuCC-JgjlqrR9n2cWgvfXZ8a7_7y3hcv-w5u3gCDiiprEheaaWYSdr4r1tk-Yc3kdZH6MsGZd1U98YfR4JV5JL/s1600/Inst19.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="240" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUTjrcm21qnbxkqosCFCYWs_QKfHagLfmUyLajd5QXlMlKBMvnOChCZDbuCC-JgjlqrR9n2cWgvfXZ8a7_7y3hcv-w5u3gCDiiprEheaaWYSdr4r1tk-Yc3kdZH6MsGZd1U98YfR4JV5JL/s320/Inst19.JPG" width="320" /></a></div>
Congratulations!!! The installation is complete. Highlight Continue and hit enter to reboot the server.<br />
<br />
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">Initial Setup</b><br />
<br />
Once the server reboots and you log in with the user credentials provided during the setup process execute the following commands. When running a command in sudo context you will have to enter the logged in user's password to continue.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo apt-get update</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo apt-get upgrade -y</span></b></div>
<br />
this might take some time to complete. <br />
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">IP Configuration</b><br />
<br />
Since we have two NICs on the server we need to configure it before continuing any further. Execute the following commands to configure the network settings. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo pico /etc/network/interface</span></b></div>
<br />
Once the configuration file opens edit the contents as shown below. Ignore the lines with the '#' since these are all comments. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">auto lo</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">iface lo inet loopback</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;"><br /></span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">auto eth0</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">iface eth0 inet dhcp</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;"><br /></span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">auto eth1 inet static</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">address 192.168.2.1</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">netmask 255.255.255.0</span></b></div>
<br />
Once edited press Ctrl+x. This will bring up a small prompt asking to save the file press y and hit enter to close the file. Then run the following command to restart the networking service and apply the changes. If you receive any warnings about the command been deprecated it can be safely ignored. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo /etc/init.d/networking restart</span></b></div>
<br />
Type the following command to verify the connections are up and the changes have been applied. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">ip addr</span></b></div>
<br />
This should display the IP addresses per each adapter. Make sure the new IP has been applied. <br />
<br />
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">Installing Webmin</b><br />
<br />
Webmin is the web based GUI interface for managing the system remotely. Mainly there are a couple of ways to install Webmin, manually or via the Ubuntu repository. We will be using the Ubuntu repository to install Webmin. But since Webmin is not added to the Ubuntu repository buy default we will first make the repository aware of Webmin. Please run the following command to open up the repository source list to add the Webmin part to it.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo pico /etc/apt/sources.list</span></b></div>
<br />
Once the file opens add the following lines to the bottom of the file.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">deb http://download.webmin.com/download/repository sarge contrib</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib </span></b></div>
<br />
Press Ctrl+x. This will bring up a small prompt asking to save the file press y and hit enter to close the file.<br />
<br />
Run the following commands to add the security key for the repository. This is essential since the repository will not update appropriately without the key.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo su</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">cd /root</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">wget http://www.webmin.com/jcameron-key.asc</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">apt-key add jcameron-key.asc </span></b></div>
<br />
Afterwords run the below commands to update the repository and install Webmin.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: x-small;"><b>sudo apt-get update</b></span></div>
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: x-small;"><b>sudo apt-get install webmin</b></span></div>
<br />
Once the installation is complete run the following commands to reset the root password for Webmin. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">cd /usr/share/webmin</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo ./changepass.pl /etc/webmin root <new_password></span></b></div>
<br />
replace <new_password> with a preferred password. Open up a web browser on a PC on the internal network and point the browser to https://192.168.2.1:10000 <br />
<br />
If you receive a warning ignore it (in Firefox add an exception). <br />
<br />
Then log in with root and the password you provided when resetting the Webmin root's password. Once logged in Go to Webmin > Webmin Users<br />
<br />
Then add a new Webmin group called WebminAdmins and expand the available modules. Click on select all and click create. Then click on convert unix users to webmin users and select Only users and click on the button to select the users. This should bring up a popup with all the system users. Make sure you click on the user you created during the initial setup process and click Ok. Then click on the Convert Now button. You should see a list of users and the selected user been converted to a Webmin user. Then click on Logout at the bottom left corner of the page and log in as the user you logged in to the server console. Welcome to Webmin!!! You should see something similar to this.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGiPpaFoKiGBswy-p4600bIp8iRRf3vCUv34KjTApV9QVZYut6odX_MUftwsr1tvwASy5wC8TDhupybg-ZgJNdATj7h7KWUyBUTSPsmQFvDfr7kHA5tVjFtq17uC9yx4039qJ6TYJe1vql/s1600/Webmin.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="146" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhGiPpaFoKiGBswy-p4600bIp8iRRf3vCUv34KjTApV9QVZYut6odX_MUftwsr1tvwASy5wC8TDhupybg-ZgJNdATj7h7KWUyBUTSPsmQFvDfr7kHA5tVjFtq17uC9yx4039qJ6TYJe1vql/s320/Webmin.JPG" width="320" /></a></div>
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">Installing OpenSSH Server</b><br />
<br />
Run the following command to install OpenSSH Server. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo apt-get install openssh-server. </span></b></div>
<br />
Once this is done go to a PC on the internal network and download Putty. You could download it from <a href="http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe" target="_blank">here</a>. Run putty and enter the internal IP address of the server and click on Open. See the screenshot below.<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyxb18lp6NeF4Vyg4mwWM6-dLBs7GOIL9Fu9DLWeF-crNdibpG89Vk16VsNiDOFr-g5HUDPWNFe9ajsuEYzyFpEX9VDZWX0VpDYfTLha8KO2mZYgWhs1Wb1_eTwaN12kVqsE2N2ClN0ANk/s1600/Putty.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="308" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiyxb18lp6NeF4Vyg4mwWM6-dLBs7GOIL9Fu9DLWeF-crNdibpG89Vk16VsNiDOFr-g5HUDPWNFe9ajsuEYzyFpEX9VDZWX0VpDYfTLha8KO2mZYgWhs1Wb1_eTwaN12kVqsE2N2ClN0ANk/s320/Putty.JPG" width="320" /></a></div>
<span id="goog_1775777337"></span><span id="goog_1775777338"></span><br />
You will receive a warning the first time you connect. Accept the certificate. Then log in using the same credentials used to log in to the server console. <br />
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">ShoreWall Installation</b><br />
<br />
ShoreWall or Shoreline Firewall is a simple to configure firewall which will basically provide some security and internet sharing. Let's go ahead and install it.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: x-small;"><b>sudo apt-get install shorewall</b></span></div>
<br />
Configuring ShoreWall.<br />
<br />
Usually configuration takes heaps of typing (which I love!!). But for any GUI freaks I will show the GUI way of doing it. Go to your Webmin site and expand Networking and click on Shoreline Firewall.<br />
<br />
Network Zones: This section defines zones to which we will assign "levels of trust". We will create three zones: the firewall, Internet, and local zones.<br />
<br />
Click Add a new network zone. You will be provided with a number of options. We are interested in the Zone ID field and the Zone type list. For each zone, enter the options as follows, and click Create before returning to the page to create the next.<br />
<br />
Zone ID = fwall; Zone type = Firewall system<br />
Zone ID = net; Zone type = IPv4<br />
Zone ID = loc; Zone type = IPv4<br />
<br />
Network Interfaces: This section tells the firewall which Ethernet card is connected to the Internet, and which one to the LAN. In our case, we have only two interfaces.<br />
<br />
Click Add a new network interface, and again you will be presented with a vast array of options. We will define only Interface, Zone name, and Broadcast address. Here, also, you will have to setup one interface at a time, clicking Create before returning to configure the next. Configure as follows:<br />
<br />
Interface = eth0; Zone name = net; Broadcast address = Automatic<br />
Interface = eth1; Zone name = loc; Broadcast address = Automatic<br />
<br />
Default Policies: The default policies tell the firewall what to do with packets coming from various sources. We will set it to drop all requests from the Internet, and accept all from the LAN and the firewall itself. Click Add a new default policy. As before, we will define one policy at a time, clicking Create before proceeding. Configure the policies as follows:<br />
<br />
Source zone = net; Destination zone = Any; Policy = DROP<br />
Source zone = fwall; Destination zone = Any; Policy = ACCEPT<br />
Source zone = loc; Destination zone = Any; Policy = ACCEPT<br />
Source zone = Any; Destination zone = Any; Policy = REJECT<br />
<br />
Firewall Rules: This section defines specific rules for specific services. We will enable them as the need arises, later. Make sure the lines are entered identical to the given order or you will not have access to your box at all!<br />
<br />
TOS: This section optimizes Web browsing as much as you can on your end. Click Add a new type of service, and we will proceed to configure the services one by one.<br />
<br />
Source zone = Any; Destination zone = Any; Protocol = TCP, Source ports = Any; Destination ports = with the Ports or ranges radio button selected enter www; Type of service = Maximize-Throughput<br />
Source zone = Any; Destination zone = Any; Protocol = TCP, Source ports = Any; Destination ports = with the Ports or ranges radio button selected enter www; Type of service = Minimize-Delay<br />
Source zone = Any; Destination zone = Any; Protocol = TCP, Source ports = with the Ports or ranges radio button selected enter www; Destination ports = Any; Type of service = Maximize-Throughput<br />
Source zone = Any; Destination zone = Any; Protocol = TCP, Source ports = with the Ports or ranges radio button selected enter www; Destination ports = Any; Type of service = Minimize-Delay<br />
<br />
Masquerading: This tells the server to forward requests from the LAN to the Internet, which is required for Internet connection-sharing. Click Add a new masquerading rule, and enter the following rule.<br />
<br />
Outgoing interface = eth0; Network to masquerade = with Subnet on interface selected, choose eth1; leave the rest unchanged<br />
<br />
When Stopped: This allows machines whose IP addresses are specified to access the server even when the firewall is not running. No other IP addresses will have access. Add as many as you want, but there should be at least one, just in case. In the example below, I have allowed access from two IP addresses on the LAN. Click Add a new stopped address, and configure as follows:<br />
<br />
Interface = eth1; select Listed addresses and networks, and enter 192.168.0.2,192.168.0.3 and/or any other addresses you wish.<br />
<br />
Back on the Shorewall main page, click <i>"Check Firewall"</i>. You
should get the thumbs up. Note that an "OK" result here does <i>not</i>
guarantee the firewall will work properly, or will work at all. It
simply checks the rules syntax.<br />
There is a security feature that prevents an unconfigured Shorewall
from being started up, when booting. This has to be changed manually. For
this, you will need a Java-enabled Web browser to do it using Webmin, or
you could resort to using vim from the CLI.<br />
What you have to do is change the line<br />
<tt>startup=0</tt>
in the file <tt>/etc/default/shorewall</tt> to<br />
<tt>startup=1</tt><br />
<tt> </tt>
<br />
In Webmin, go to <i>Others > File Manager</i>. This will give you a
nice Java-based file manager. Navigate to the above mentioned file, and
click the <i>"Edit"</i> button at the top. A text editor window will
pop up. (Disable pop-up blocker.) Make the change, and then save and
close.<br />
<br />
Again, using this browser, browse to the file
<tt>/etc/shorewall/shorewall.conf</tt>, click <i>"Edit"</i>, and find
the line <tt>IP_FORWARDING=Keep</tt>. Change the value from
<tt>Keep</tt> to <tt>On</tt>. Save and close.<br />
<br />
Now, let us make sure that Shorewall is set to start at bootup. Go to
<i>System > Bootup and Shutdown</i>, look for <tt>shorewall</tt> in the
list. Tick the checkbox, and click <i>"Start Now and On Boot"</i> at
the bottom. Go back to the <i>Networking > Shorewall Firewall</i> page,
and you should see six buttons where there were previously only two. Click
<i>"Show Status"</i>, to verify that all is running well. Your Internet
connection sharing should be set up, now. Try it out!<br />
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">Squid Proxy Server </b><br />
<br />
Run the following command to install Squid. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<span style="font-size: x-small;"><b>sudo apt-get install squid</b></span></div>
<br />
After the installation completes go to Servers > Squid in Webmin. We will configure Squid from here.<br />
<br />
Ports and Networking: Here we will tell Squid which port it will be listening on. The default is port 3128. We will stick to this, but you can change it. In the "Options for port" field, enter transparent. This will make Squid a transparent proxy server, which eliminates the need to configure machines on your LAN. Save the changes.<br />
<br />
Memory Usage: Here, you can define memory usage limits for Squid, or choose to go with the default settings. I would draw attention to the "Maximum cached object size" option. Here, you can define the maximum size of cached files.<br />
<br />
Cache Options: The option I would recommend you changing here is the "Cache Directories" one. Squid defaults to a 100MB cache, which is pretty minuscule for our caching proxy objective. Decide how much of your hard disk you wish to use for the cache; I use 5GB out of my 40GB hard disk. In the "Directory" field, enter /var/spool/squid, "Type" as UFS, in "Size (MB)", enter however much you decided on in megabytes, for the 1st- and 2nd-level directories, enter one of the following numbers; 16,32,64,128 or 256 (defaults being 16 and 256, respectively). These numbers basically define the file structure of your cache. Read the help documentation, for more information on this and other options. Save your changes.<br />
<br />
Helper Programs: In the "DNS server addresses" field, enter 192.168.0.1, select the radio button, and save. This tells Squid to send DNS requests to the BIND DNS server running on your server.<br />
<br />
Access Control: Here, we will define which LAN machines will be able to use Squid, by their IP addresses. At the bottom of the "Access Control Lists" section, select Client Address from the drop down list, and click "Create new ACL". In the page that appears, enter a name of your choice in the "ACL Name" field (e.g., Local_Network), define the range of IP addresses you wish to grant access to, and the Netmask, e.g., From = 192.168.0.2, To = 192.168.0.7, Netmask = 255.255.255.0. If you would like to grant access to all machines on your LAN, enter as follows; From = 192.168.0.0, To = *leave blank*, Netmask = 255.255.255.0. Save your changes.<br />
<br />
Having defined the machines on our LAN, we will now tell Squid what to do with requests from these machines. Click "Add proxy restriction" in the "Proxy Restrictions" section. Select the "Allow" action, and the ACL you just created (Local_Network) from the "Match ACLs" list. Save your changes.<br />
<br />
Your new restriction will be at the bottom of the restrictions list, and, since they are effectuated in order, you will have to move your new rule up the list to third place. Do this using the "Move" arrows, to the right of the defined restrictions.<br />
<br />
Next go to Networking>Shorewall Firewall>Firewall Rules>Manually Edit File, and paste the following rule:<br />
Next run the following command on the server console or putty.<br />
<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo pico /etc/shorewall/rules</span></b></div>
<br />
Add the following line above the line which says "END OF FILE" Also make sure that ther spaces between each of the parameters is a tab space. <br />
<br />
#squid transparent proxy redirect<br />
REDIRECT loc 3128 tcp www - <br />
<br />
Now restart ShoreWall by running this command<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo shorewall restart</span></b></div>
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">Installing SARG </b><br />
<br />
What is SARG? SARG stands for Squid Analysis Report Generator. When all users browse via your server and Squid does all the proxying for them Squid will generate logs. SARG is simply a nice way to look at them. SARG is used to generate HTML reports from Squid logs. This is very easy to install and use. Run the following command to install SARG.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo apt-get install sarg -y</span></b></div>
<br />
Refresh the modules in Webmin and you should see SARG under the Servers category. If not go to un-used modules and click on SARG. If you see a message about an incorrect module configuration change the SARG configuration to /etc/sarg/sarg.conf and save it. Then log out and log in back to Webmin. Enjoy SARG.<br />
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">Installing the DHCP Server</b><br />
<br />
Run the following command to install DHCP server.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo apt-get install isc-dhcp-server -y</span></b></div>
<br />
The DHCP Server will fail when attempted to start. This is normal and expected since the server is not configured.<br />
<br />
Then in Webmin go to unused modules and click DHCP Server. Make tho following changes.<br />
<br />
DHCP Server Config File = /etc/dhcp/dhcpd.conf<br />
DHCP Server Executable = /usr/sbin/dhcpd<br />
Command to start DHCP server = /etc/init.d/isc-dhcp-server start<br />
Command to apply configuration = /etc/init.d/isc-dhcp-server restart<br />
Command to stop DHCP server = /etc/init.d/isc-dhcp-server stop<br />
Path to DHCP server PID file = /var/run/dhcp-server/dhcpd.pid<br />
<br />
Click save.<br />
<br />
This DHCP Server has all the options of a normal DHCP server including MAC address binding. Look in to these possibilities under hosts and host groups. Let's configure the DHCP server before we could start it. Go to Webmin and go to the DHCP server configuration. Then click on add a new subnet under subnets and shared networks.Make the following changes.<br />
<br />
Network Address = 192.168.2.0<br />
Address Ranges = 192.168.2.10 - 192.168.2.250<br />
Netmask = 255.255.255.0<br />
<br />
Click Save. Click on Edit Clien Options on the mail DHCP configuration page. Make the following changes. <br />
<br />
Subnet Mask = 255.255.255.0<br />
Domain Name = <A_Name_For_Your_Domain><br />
Default Routers = 192.168.2.1<br />
DNS Servers = 192.168.2.1<br />
<br />
Click on Save. Now on the main DHCP configuration page click on Start Server. Your DHCP server is up and running!!!<br />
<br />
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">Installing DNS</b><br />
<br />
First install the DNS server.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo apt-get install bind9 -y</span></b></div>
<br />
Go to the Webmin page for BIND DNS Server (typically under the servers category) and click on Forwarding and Transfers. Under IP Address enter 208.67.222.222 for the first entry and 208.67.220.220 fr the second entry. Leave everything else on their default values. Click Save. One on the main BIND DNS Server page click Stop Bind, then Start Bind. This completes the DNS server setup. <br />
<br />
Next we need to install the necessary components for the TorrentFlux-b4rt server, which will be MySQL, Apache and PHP. We will do this in one single step. Run the following command in either the server's console or in Putty. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo tasksel</span></b></div>
<br />
You should see the following screen. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVPCm0bnaqbtS-fvFyydV6BV9RUfzPUqQe6hrVaU8zkT6Qu5uO-PcyM41N6TDd6oEt9h-R3ALqT66HuOWkywqoFyyKMNRhwehS_C4GAUoymLn6FFwwbLWTSWOAkNmH9bkI2NyyFvWIkHaX/s1600/Tasksel1.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjVPCm0bnaqbtS-fvFyydV6BV9RUfzPUqQe6hrVaU8zkT6Qu5uO-PcyM41N6TDd6oEt9h-R3ALqT66HuOWkywqoFyyKMNRhwehS_C4GAUoymLn6FFwwbLWTSWOAkNmH9bkI2NyyFvWIkHaX/s400/Tasksel1.JPG" width="400" /></a></div>
Highlight the LAMP Server via your arrow keys and press the space bar to select it. Then Press the tab key to highlight OK and hit enter. Tasksel will start downloading the necessary files and commence installation. You will be prompted for the MySQL root's password. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixQUx9QXgSkvAL4SuvhK4yIQIKDCTvZyovz1m8PIJjExgwERzBmwqWyKP1VOrkNUamFUJSovPOx4CdrFskwj8Vg20doD6leHBngtDFl0tVMwNfbm80gQ69swelyIcdjM8PgV8URSilZzjp/s1600/Tasksel2.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="210" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEixQUx9QXgSkvAL4SuvhK4yIQIKDCTvZyovz1m8PIJjExgwERzBmwqWyKP1VOrkNUamFUJSovPOx4CdrFskwj8Vg20doD6leHBngtDFl0tVMwNfbm80gQ69swelyIcdjM8PgV8URSilZzjp/s400/Tasksel2.JPG" width="400" /></a></div>
<br />
Type a new password for the MySQL root account and hit enter. Please note that this is not the password for the server's root password! once you hit enter you will be prompted with another windows to retype the password. Retype the password and hit enter. <br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBBBbg57cmQw3evQAVEZz_bgfgPC8XQ7hYDXmrQ91dcg0kekUGuabssvBAApLG32y_qbp6b8tCzTJ-nboOW5fUtOpHx6RgKGgxknFPgIu4aEwlOc_Zkgr48PxBxqr6rRJs7mfyhBNdCRxf/s1600/Tasksel3.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="208" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiBBBbg57cmQw3evQAVEZz_bgfgPC8XQ7hYDXmrQ91dcg0kekUGuabssvBAApLG32y_qbp6b8tCzTJ-nboOW5fUtOpHx6RgKGgxknFPgIu4aEwlOc_Zkgr48PxBxqr6rRJs7mfyhBNdCRxf/s400/Tasksel3.JPG" width="400" /></a></div>
The installation will resume and complete. Once completed it will return you to the command prompt.<br />
<br />
<br />
<b style="font-family: Arial,Helvetica,sans-serif;">TorrentFlux-b4rt Installation </b><br />
<br />
To get the full functionality of TorrentFlux-b4rt we will have to install a few additional software. Run the following command to install the dependencies.<br />
<br />
<b><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">sudo apt-get install unrar-free unzip cksfv vlc uudeview -y </span></span></b><br />
<br />
You can download TorrentFlux-b4rt from <a href="http://download.berlios.de/tf-b4rt/torrentflux-b4rt_1.0-beta2.tar.bz2" target="_blank">here</a>. Once the download completes, On Webmin go to "Others > Uploads and Downloads". Click on the "Upload to server" tab. Browse to the file you downloaded. "On File or Directory to upload to" select your home folder (usually this is under /home/<user_name>. Under "Extract archive or compressed files?" select "Yes, then delete". Finally click on Upload and wait for the upload to complete. Still in Webmin go to Others > File Manager. Navigate to your home folder and select the TorrentFlux-b4rt extracted folder. Click Copy on the file browser's tool bar. Then navigate to /var/www and click paste on the file manager's tool bar.<br />
<br />
While the folder is still selected click on Info on the tool bar. Under Permissions click all three Read, Write and List check boxes. Then under the "apply changes to" drop down select "This folder and all sub folders". Finally click Save.<br />
<br />
TorrentFlux will also need a writable directory to store downloads. On the Webmin file manager go to /usr/local and create a new directory and name it as torrentflux. Now go the info of the folder and under Ownership type www-data in to the user and group fields. Then check all check boxes for read, write and list. Also make sure to change the "Apply changes to" drop down to "This folder and all sub folders". Click Save.<br />
<br />
Now navigate to Servers > Apache Web Server. Under Existing Virtual Hosts click on the Virtual Server. Under Virtual Server Details click on the box next to "Document Root" and navigate to /var/www/<torrentflux-b4rt_directory>/html and click OK. Then Click Save. Finally restart Apache by clicking Stop Apache and then Start Apache. <br />
<br />
Now comes the final setup portion for TorrentFlux-b4rt! Point a web browser on the LAN to your server's IP address, in this case 192.168.2.1. And you should receive the TorrentFlux-b4rt setup page.<br />
<br />
Click Continue on the first page and on the second page. The third page is to select the database type. Please make sure you select MySQL ad click Continue. The 4th page will confirm that our PHP setup is compatible with MySQL. Click Continue again. The next page will ask for the connection parameters to connect to the MySQL server. Make the following changes and click Continue.<br />
<br />
Host = localhost<br />
Name = torrentfluxb4rt<br />
Username = root<br />
Password = <MySQL root's password><br />
Check the Create Database check box. <br />
<br />
Click Continue.<br />
<br />
You should receive a green OK! Click Continue on the next two pages. On the Database - Config File page click Continue.Click Continue again on the Database - Create Tables page. Click Continue on the Database - Insert Data Into Database page. Click Continue on the Server Configuration page and the torrentflux-b4rt 1.0-beta2 - Setup page. Click Continue until you reach the "Installation End page. The final page will direct you to the actual TorrentFlux-b4rt site we just setup! Voila!!! Note that the initial log in will be treated as the administrator log in. So be careful and enter a new admin user name and a new password for the admin user.<br />
<br />
You will notice on the initial page there is Red "path is not valid" error under "transmissioncli". Let's rectify it. Again this calls for a few prerequisites to be installed prior to going ahead.<br />
<br />
<b><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">sudo apt-get install gcc pkg-config libssl-dev make -y</span></span></b><br />
<br />
Download the transmission client from <a href="http://www.4shared.com/file/8AGjkmY0/transmission-106tar.html" target="_blank">here</a>. once you download it upload it to the server via Webmin's file upload page and extract it in the same process used earlier in this tutorial. Then navigate to /var/www/<torrentflux-b4rt_directory>/clients/transmission. Copy the Transmission-1.06_tfCLI-svn3356.tar.bz2 to your home folder. Untar it using this command. <br />
<br />
<pre style="font-family: Verdana,sans-serif;"><b><span style="font-size: x-small;">tar -jxvf Transmission-1.06_tfCLI-svn3356.tar.bz2</span></b></pre>
<pre></pre>
Now copy /home/<user_name>/Transmission-1.06_tfCLI-svn3356/cli/transmissioncli.c to /home/<user_name>/transmission-1.06/cli<br />
<br />
Now enter the following commands on a terminal. <br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo su</span></b></div>
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">cd transmission-1.06 </span></b></div>
<pre class="wiki" style="font-family: Verdana,sans-serif;"><b><span style="font-size: x-small;">./configure -q && make -s</span></b></pre>
<pre class="wiki" style="font-family: Verdana,sans-serif;"><b><span style="font-size: x-small;">make install </span></b></pre>
<pre class="wiki"></pre>
<pre class="wiki">Once the building is complete click "Update Settings" on the TorrentFlux-b4rt page.</pre>
<br />
This completes the TorrentFlux-b4rt installation. Go through the settings and set it up according to your preferences.It's up to you to do the fine tuning on TorrentFlux-b4rt. You could add different users so that they could have individual TorrentFlux logins. <br />
<br />
<u><i>How to add a secondary hard disk for torrent downloads?</i></u> <br />
<br />
Run the following command<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo lshw -C disk</span></b></div>
<br />
note the name for your second hard disk (usually this will be under *-disk: 1) note the name next to logical name. <br />
<br />
Now run this command.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo fdisk /dev/<name_of_the_second_disk></span></b></div>
Type "<b><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">n</span></span></b>" (without quotes) and hit enter.<br />
Type "<b><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">p</span></span></b>" (without quotes) and hit enter.<br />
Type "<b><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">1</span></span></b>" (without quotes) and hit enter.<br />
Press enter twice to accept the default start and end values for the number of cylinders. <br />
Type "<b><span style="font-size: x-small;"><span style="font-family: Verdana,sans-serif;">w</span></span></b>" (without quotes) and hit enter. This will also exit fdisk.<br />
Now type...<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo mkfs -t ext3 /dev/sdb1</span></b></div>
<br />
okay the disk is ready! now we have to mount it in order to use it. Type the following commands.<br />
<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo mkdir /media/sdb1</span></b></div>
<br />
Now on Webmin go to System > Disk and Network Filesystems.<br />
<br />
In the type drop down select Linux Native Filesystem (ext3) and click Add Mount. Then do the following changes on the page.<br />
<br />
Mounted As = /media/sdb1<br />
Save Mount? = Save and Mount at boot<br />
Mount Now? = Don't mount<br />
Linux Native File System = Select "Disk" and 'Device B partition 1 (Linux)" from the drop down.<br />
Click Create<br />
<br />
Reboot the server by entering the following command.<br />
<div style="font-family: Verdana,sans-serif;">
<b><span style="font-size: x-small;">sudo reboot</span></b></div>
<br />
Once the server restarts go to Webmin > Other > File Manager and navigate to /media/sab1. Create a directory and name it as downloads. Tick all read, write and list check boxes using the info dialog box. Click Save.<br />
<br />
Now in TorrentFlux-b4rt log in as the admin user and click Admin > Server and change the "Transfer Parent Path" to /media/sdb1/download and click Update Settings. Now TorrentFlux will use this directory for downloads. <br />
<br />
<br />
<br />
<br />
This completes this tutorial as well. Sit back and enjoy!!!Anonymoushttp://www.blogger.com/profile/05947682193522155212noreply@blogger.com0