Sunday, July 30, 2017

Week 4: vsFTP Using Nano

INTRODUCTION
This week involved setting up the vsFTP which is used for moving files from the client to the server. During the setup and previous weeks have noted it is important to know how to utilize manipulating files in Linux. So this week will discuss nano just one of the text editors to choose from.


Image 1




NANO TIPS
First is to open a file is to place nano <filepath>. In image 1 can see this command line being used to open /etc/vsftpd/vsftpd.conf.




Image 2


The next thing to notice is at the bottom of the nano editor as seen in image 2. You can view the commands listing. Note to call the commands the user can hit ctrl (letter) to do assorted things within the editor. Just some of these commands are saving/writeout with ctrl c. Another useful keyboard command is ctrl g which brings up the help menu.





A command of note is to hit ctrl c to see your current line number. However, would recommend hitting alt c which leaves the line number on the screen to show current position. This helps to know exactly where you are in the file see image 3. Lastly if you know the line number and you wish to change can get there quickly using alt g to enter the number.
Image 3















CONCLUSION
There are other choices when it comes to file manipulation such as vi and gedit both should also be looked at to decide what works best for the user. However, nano should be in the arsenal of all linux users as a fall back. Here is a great link below. It is a list of the commands/keyboard shortcuts within nano.

Sunday, July 23, 2017

Week 3: Send-mail Setup


INTRODUCTION:
This week needed to set up send-mail server. Like weeks prior it is important to pay close attention to the instructions and spelling/typos/spacing. In last blog had issues and noted that very fact. Another thing to note was to use the “cd” command to change directories more often to see where you are working versus using the whole directory path/ Example go from cd /var/spool/mail would now show that you are working in the mail folder. In comparison to typing that over and over again to make changes in the mail directory/folder.

IMAGE 1 (gedit)



NEW ITEMS:
Something new for this week was to use gedit see image 1 left versus using nano see image 2 below. The gedit gives a quick save button and other selections versus using ctrl “letter” choices to complete tasks.

IMAGE 2 (nano)











IMAGE 3
LAB 3 
Similar to weeks prior still had trouble shooting issues. The main issue was getting the #systemctl start sendmail.service and #systemctl status sendmail.service to display the example given in the lab. See image 3.

After looking on discussion board found that using restart versus start cured that problem. The final issue turned out to be that the users created could not get permission to view the mail being sent. Could see in the journalctl -xn command that the mail was sent just could not get the permissions to let the second user view the mail.
One suggestion was to use adduser <user> mail command and following after run chmod ug+rw /var/mail/<user>. This also gave no good results. 

CONCLUSION
Conclusion was still having problems in Skillsoft lab but if keep practicing it can only get better. So would recommend to all not matter how bad it gets keep on trying and learn from the errors.



Sunday, July 16, 2017

Week 2: DNS Server Lab

Image 1
INTRODUCTION:

There are some differences in the working of the labs from what is supplied and what is required. The purpose of the blog this week is to assist in making it through the lab. NOTE: some errors may occur if spacing or spelling errors occur. In addition, should you get the clock screen saver click ctrl-v and will return to the work screen. See Image 1.



Image 2





First need to log onto the TigerVNC viewer, click connect and use the password provided. See Image 2.
Image 3








The next few steps should begin to look familiar from week one and other exercises. On the screen click Activities and search for terminal in the navigation bar. See Image 3.

From here on need to follow the instructions that are given on the side of the Skillsoft screen.






ADDITIONAL TIPS
Watch for spacing/spelling of the inputs.
Ensure to switch users from student to root using the “su root” command.
Ensure you have the spacing and commands spelled correctly by using Notepad beside the lab. See Images 4 and 5.

Image 4

Image 5




































CONCLUSION
Despite following the instructions still gave errors. Could not seem to find the issue "Some lines were ellipsized use -l to show in full".
All images from 6-9 are the attempts to locate the flaw/error.
Image 6

Image 7

Image 8

Image 9



Saturday, July 8, 2017

Week 1: Basic Linux Commands

Figure 1: putty
THE BEGINNING

The ability to learn any language always starts with the basics. In Linux that means setting down the path through the command window similar to DOS. However, utilizing a Fedora workstation rather than the command window of old. Seen in Figure 1.






THE BASIC COMMANDS

Just some of the basic commands are:

Command                                                 Description
ls                              List the contents of the current directory in short form.
-a                              Added to ls will display hidden files
pwd                              Prints the working directory
cp                              Copies files
rm                              Remove files
cd                              Change directories
mkdir                      Creates a new directory
rmdir                      Remove Directory


COMMON ERRORS
Note that there are many ways that errors can occur in comparison to say C# and Java. In these languages you can notice minor errors such as spelling or spacing. In Linux it is more nuanced and need to pay attention to these errors or can get errors as seen in Figure 2. Here got ahead of the programming and forgot to create the file/directory before calling it.
Figure 2


CONCLUSION
In week one are introduced to the Linux formatting and language. From here will build and learn to enhance the ability of using this powerful language and open-source operating system. As the old saying goes a person needs to learn to crawl before you can walk and walk before you can run.





Introduction



              I have retired from the Air Force after 23 years of service. As with many members who separate wanted to do something different from what was required in the service. My wife and I live in New York city with our two dogs. We spend most of our time site seeing or working with the dogs on Instagram, their blog MosaTravelDogs and my wife’s photography page BKPphoto.com.

               My major is CIS with a concentration in Web design and administration. Reason for choosing this was so that I could maintain our current webpage and blogs.