======Project: Configuration of my login and environment variables====== A project for UNIX/Linux by Corey Forman during the fall 2011. This project was begun on 12/15/11 and was finished the same day. =====Objectives===== The purpose of this project is to get experience with the dotfiles and how i can manipulate my login file to change how my login reacts when i get on. =====Prerequisites===== In order to successfully accomplish/perform this project, the listed resources/experiences need to be consulted/achieved: * basic scripting knowledge * basic ls use * basic path knowledge * basic common sense because if you mess up you can't log in =====Background===== The only background i have on this is the data that was discuses in class and therefor has no url. we learned how to access the dotfiles and we learned how to script. after this you need to know what happens in the login file and what can be changed and added. =====Attributes===== State and justify the attributes you'd like to receive upon successful approval and completion of this project. * commands i am adding commands to my login process * files and directories im working in a file * text processing im editing the files text * unix shell i am changing my shell slightly by adding to my path * job control i am controlling the jobs the script performs when i log in * scripting i am changing a script * the unix development environment i am exploring the environment and changing how it reacts. =====Procedure===== First the proper file needs to be located After i must enter the vi editor Next i need to add what i want it to do and then test it. =====Code===== Upon completion of the project, if there is an applicable collection of created code, place a copy of your finished code within blocks here. # ~/.profile: executed by the command interpreter for login shells. # This file is not read by bash(1), if ~/.bash_profile or ~/.bash_login # exists. # see /usr/share/doc/bash/examples/startup-files for examples. # the files are located in the bash-doc package. # the default umask is set in /etc/profile; for setting the umask # for ssh logins, install and configure the libpam-umask package. #umask 022 # if running bash if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc" fi fi # set PATH so it includes user's private bin if it exists if [ -d "$HOME/bin" ] ; then PATH="$HOME/bin:$PATH" fi echo -n "Would you like to play a game? " read reply if [ $reply = "yes" ]; then cd ../../usr/games echo "im sorry but wargames are not allowed how about some tetris <(^^,)>" sleep 2 tetris-bsd fi =====Execution===== Again, if there is associated code with the project, and you haven't already indicated how to run it, provide a sample run of your code: login as: cforman cforman@lab46.corning-cc.edu's password: __ _ _ _ __ . . . . . . . . . . . . . . . . . . . . . . . . . | | __ _| |__ / | |_/ / . Basic System Usage: Type 'usage' at prompt . | |__/ _` | '_ \\_ _/ _ \ . Events and News: Type 'news' at prompt . |_____\__,_|_.__/ |_|\___/ . Broken E-mail? Type 'fixmail' at prompt . --------------------------- . Check Lab46 Mail: Type 'alpine' at prompt . c o r n i n g - c c . e d u . . . . . . . . . . . . . . . . . . . . . . . . . Lab46 is the Computer & Information Science Department's Student Development Server for Computer-related coursework, projects, and exploration. For more information, please check out: .. . . . . . . . . . .. . Lab46 Web Page: http://lab46.corning-cc.edu/ . . Lab46 Help Form: http://lab46.corning-cc.edu/help_request . . Help E-mail: haas@corning-cc.edu or wedge@lab46.corning-cc.edu . .. . . . . . . . . . .. _ .-./*) _/___/ `. U U 'You can compress files with 'gzip'.' You have old mail. Last login: Thu Dec 15 19:16:53 2011 from cpe-67-251-66-32.stny.res.rr.com Would you like to play a game? if i say yes _ .-./*) _/___/ `. U U 'You can compress files with 'gzip'.' You have old mail. Last login: Thu Dec 15 21:27:49 2011 from cpe-67-251-66-32.stny.res.rr.com Would you like to play a game? yes im sorry but wargames are not allowed how about some tetris <(^^,)> Your score: 120 points x level 2 = 240 Hit RETURN to see high scores, ^C to skip. lab46:/usr/games$ =====Reflection===== It can be dangerous to your ability to log in but if you do it right changing this file can result in lots of useful functionality. =====References===== In performing this project, the following resources were referenced: * Mathew Hass