Professional Documents
Culture Documents
CPT 180 Bash-PowerShell Setup Assignment
CPT 180 Bash-PowerShell Setup Assignment
Directions
Using the following guidelines, setup your computer to use Bash and PowerShell.
If you are using a Windows Computer, create a Word document named Setup.docx and perform steps A, B,
C, D, E, and F. Submit your Word Document into the Bash - PowerShell Setup Assignment Submission Folder.
If you are using an Apple (macOS) Computer, create a Pages document named Setup and perform steps
G, H, I and J. Save the Pages file as a PDF file and submit the PDF file into the Bash - PowerShell Setup
Assignment Submission Folder.
1. Go to www.cygwin.com
2. Under Installing Cygwin, either click on setup-x86_64.exe (64 bit) or setup-x86.exe (32 bit).
3. If you receive a Windows notification that says "This type of file can harm your computer. Do
you want to keep it anyway?" Click Keep.
4. Double-click (run) the downloaded file.
5. On the opening splash screen, click Next.
6. Ensure that "Install from Internet" is selected and click Next.
7. Use the default Install Directory (recommended) or change it and click Next.
8. Use the default Package Directory (recommended) or change it and click Next.
9. Ensure "Use System Proxy Settings" is selected and click Next.
10. Choose a download site (use top one on list) and click Next.
11. On the Select Packages screen, accept the default and click Next.
12. On the Review and Confirm Changes screen, click Next.
13. Cygwin will now be downloaded and installed. This may take a few minutes. When complete,
ensure that "Create icon on Desktop" is selected and click Finish.
1. You must setup NotePad++ to properly format Linux files. To do this, complete the following:
2. Open Notepad++
3. Go to Settings – Preferences…
4. Select New Document.
5. Under Format (Line ending), select Unix (LF).
6. Copy and Paste a screenshot of the NotePad ++ Preferences dialog box showing that Unix
(LF) is selected into your Word document.
7. Click Close
1. On Windows 8.1 and Windows 8, the Windows PowerShell 2.0 Engine feature is turned on by
default. However, to use it, you need to turn on the option for Microsoft .NET Framework 3.5,
which it requires.
2. To turn on .NET Framework 3.5
3. On the Start screen, type Windows Features.
4. On the Apps bar, click Settings, and then click Turn Windows features on or off.
5. In the Windows Features box, click .NET Framework 3.5 .
6. To turn the Windows PowerShell 2.0 Engine on and off
7. On the Start screen, type Windows Features.
8. On the Apps bar, click Settings, and then click Turn Windows features on or off.
9. In the Windows Features box, expand the Windows PowerShell 2.0 node, and click
the Windows PowerShell 2.0 Engine box to select or clear it.
10. The PowerShell and PowerShell ISE Icons should appear on the Start Menu. If not, type in
PowerShell and ISE, respectively.
1. Right Click on the PowerShell icon (on Start Menu under Windows PowerShell) and select "Run
as Administrator".
2. On the PowerShell command line, type in Get-Host
3. You should get a result similar to:
4. Copy and Paste a screenshot of this result into your Word document.
5. To allow PowerShell to load and run scripts, you must set the PowerShell execution policy. On
the PowerShell command line, type in:
Set-ExecutionPolicy –ExecutionPolicy RemoteSigned
9. Copy and Paste a screenshot of this result into your Word document.
Perform the following on an Apple (macOS) Computer:
4. Copy and Paste a screenshot of this result into your Pages document.
1. You must setup TextEdit to properly format Linux files. To do this, complete the following:
2. Open TextEdit
3. Go to Preferences.
4. Select New Document.
5. Set the New Document Format to Plain Text.
6. Ensure that Smart quotes, Smart Dashes, and Smart links are all deselected. (NOT selected)
7. Copy and Paste a screenshot of the TextEdit Preferences dialog.
8. Close Preferences.
Version
-------
7.1.3
4. Copy and Paste a screenshot of this result into your Pages document.