User Tools

Site Tools


blog:spring2016:mp010784:journal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
blog:spring2016:mp010784:journal [2016/04/12 23:23] – [Week 11] mp010784blog:spring2016:mp010784:journal [2016/04/30 17:15] (current) – [Week 14] mp010784
Line 447: Line 447:
  
 We are also looking into potentially displaying some log information in our script as well.  Currently we are playing with the output of last as seen below:\\ We are also looking into potentially displaying some log information in our script as well.  Currently we are playing with the output of last as seen below:\\
-{{http://www.matthewjpage.com/image/lastonsamba.png|something}}  +{{http://www.matthewjpage.com/image/lastonsamba.png|something}}\\ 
 +Which we need to have our script parse through some of this data to see the last login times for each user is what I think we were leaning towards.\\ 
 + 
 +We also may get a live test with the user who will actually be using this samba server and out admin script (barb) this week when she comes to give us the instructor reviews for the class sometime maybe this week. then we can hammer out anything that isn't intuitive or that may need further explanation or options for barb's everyday usage.\\    
 + 
 +On Thursday afternoon I stayed late in the LAIR and expected to run into Tyler Mosgrove but he was nowhere to be found.  I cried for several minutes then decided to work on our script some more.  I ended up changing the loading messages for our arbitrary loading screens to make Barb wait for no reason, from the very formal, official messages that Tyler put in as "Initializing...",  "Validating...", "Authenticating..."  to what i had originally wanted something with a little bit more humor, so if Tyler will let it fly then it will stay in its current state as "Initializing...", "Waking up hamster...", and "Feeding it caffeine..."  Which is WAY COOLER if you ask me.  I also fully implemented and added an addadmin,sh script which from the ground up creates a new user that belongs to both the student group and admin group for say a teacher to use.  The alternative method woudl be a two step process fo privilege escalation which I have the beginnings of a script called elevatepriv.sh added tot he repo that contains the main commadn that we would need to elevate a lower level student account to an admin account with:\\ 
 +<cli> 
 +sudo usermod -a g admin USERNAME_HERE 
 +</cli>\\ 
 +But we may have decided that for Barb's purposes the two step method while more versatile may be too cumbersome and complicated for her usage, so that may be unnecessary.  I also added a simple Credits option the main menu which simply states "DEVELOPED BY: Tyler Mosgrove and Matthew Page" because why not have our name on it somewhere with all that we already have on it.\\ 
 + 
 +Still we are planning to add a last login type aspect to our admin script which we still need to hammer out.\\  
 ====Week 12==== ====Week 12====
 +
 +This week Tyler and I got a few more small things poliahed on our admin script for the samba file server.  We now have two seperate working submenus, one for students and one for instructors.  We spent a bit of time on Monday working on trying to figure a solution to getting the last command to output the most recent instance of a user logging in and after much time trying to use sed, after asking stackoverflow we decided to look into awk as a solution, which appears to have worked, however, it only shows people that have logged in with a shell, which our average user will not ever have access to, so we've had to explore samba logs which are located at /var/log/samba/  by a name such as log.HOSTNAME, so in the case of my HP Envy laptop it shows up as log.hp-envy, we found an option in the samba config file located at /etc/samba/smb.conf to change from hostname (log.%m)to the username (log.%U) and we had to add a line to set the log level as follows:\\
 +
 +<file>
 +...
 +log file = /var/log/samba/log.%U
 +...
 +log level = 3
 +...
 +</file>\\
 +
 +Matt has also released all the eoce's this week (End Of Course Experience for the uninitiated)I'm assuming that that means we can begin to work on them soon if not now.  I don't think this class's EOCE will be as intense as some previous classes I've taken.\\  
 +
 +On Wednesday, Tyler got the script's function to show the user's last login, for both teacher and students successfully based upon the samba log file.  We also restructured the main menu to move restart services and reboot the server into a system submenu and also moved credits into the Info section which will also end up including descriptions for what each option in the whole menu does and some help info in addition to the credits.  We also added a user mann for barb as per her request to make it the same username as she has on the old server and changed the sudoers file to allow for this.  The other thing we discovered today was that if you create a user with a backslash at the end of the name (a typo I had made) then it breaks the functionality of the last login portion of the script, so we need to implement a block preventing barb from making a user with any special characters.  This is very close to being completed.\\ 
 +
 +Tyler got the special characters limitation for new usernames expression figured out and implemented and functioning correctly.  We had declared the project done after that only for me to realize that we had intended to have a means of resetting or changing a password that we hadn't implemented yet.  So I added that menu option for both students and instructors and it appears to be working.  Will confirm with Tyler on Monday that everything works as it should and that we are ready to possibly show it off to barb again for testing...maybe not.  But we also if we are going to try to enter the project into the Sustainability Research Student Showcase for last week fo classes we need to write up a submission report early this next week.   Other than that we are probably just doing our eoce's.  Tyler said he already fully completed his for this class.\\        
 + 
  
 ====Week 13==== ====Week 13====
 +
 +Started working on the EOCE (End of Course Experience) this week.\\
 +
 +Tyler and I are also working on our submission of this project into CCC's Inspired series ending event which is a Sustainability Research Student Showcase of projects that students worked on this semester that pertain to one or many fo the facets of sustainability.  Our project addresses all three aspects of sustainability: economic, ecological, and social.  Our submission email:\\ 
 +
 +<file>
 +
 +Dr.Powers,
 +
 +This is a project submission on the behalf of Tyler Mosgrove & Mathew Page.\\
 +
 +The following project was conducted under the High Performance Computing program, and HPC Experience II class in room R108.\\
 +
 +The Systems Administration project is a solution to classroom needs.\\Specifically, the courses offered in room C107 which are commonly computer assisted art classes.\\ As technologies evolve and these courses become more popular, their needs also grow which may require additional resources and funding.  The resource being addressed in this project is file space. Commonly, an art student in one of these classes will benefit from classroom data storage. The data itself is larger then what is being stored by your typical college student and commonly consists of multi media files like photos, videos, or even music.  This involves a solution that enables all of the students computers to connect to a file server at which they can store their projects on. The file server itself consist of a dedicated computer on a trusted network that is using specialized software for mass data storage. Not only is it more convenient for these students, but there is a safety net there that thwarts data loss which one can be at risk when using personal solutions like thumb drives. As of today the previous solution is out of date, and it is time for an upgrade. This project falls under many aspects of the sustainability efforts. Economically, instead of buying new software and equipment this project will be using a recycled computer and open source software. Ultimately this will reduce college expenditures and the use of resources that could have been spent on physical equipment, software, installation, and maintenance if a new system was bought instead. Second, this project speaks volumes to the social aspect of sustainability because it is catering to the needs of students. Not only that, but it has also presented an entire learning experience for the team that developed this solution. Finally,  the environmental angle. As stated before, instead of buying a new computer a recycled PC is being used. It is unfortunately common for an individual/institution to throw away equipment that could potentially be put to more use.
 +
 + I hope this is an adequate explanation of this projects sustainability qualities. If you have any questions about the project feel free to contact us. We are looking forward to showcasing our project at the sustainability fair.
 +
 +You will find the instructor's endorsement letter attached to this email. 
 +
 +Kind regards,
 +
 +Tyler Mosgrove & Mathew Page
 +</file>
  
 ====Week 14====     ====Week 14====    
 +
 +Continuing to work on this class's EOCE and also this Wednesday is the Sustainability Research Fair thing related to CCC's Inspired series they've been doing in the Library this semester and Tyler and my samba server project for this class has been entered into said event.\\ 
blog/spring2016/mp010784/journal.1460503432.txt.gz · Last modified: 2016/04/12 23:23 by mp010784