Download as pdf or txt
Download as pdf or txt
You are on page 1of 5

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.

Perform the following on a Windows Computer:

A. Install Cygwyn as follows:

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.

B. Test Bash on Cygwin as follows:

1. Double click the Cygwin Terminal on the desktop.


2. On the command line, type in bash --version
3. You should get a result similar to:

GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)


Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
4. Copy and Paste a screenshot of this result into your Word document.

C. Install NotePad++ as follows:

1. Go to the Notepad++ website.


2. https://notepad-plus-plus.org/
3. Click download.
4. Click DOWNLOAD to download the latest version.
5. If prompted by Windows, click Keep.
6. After the installer file downloads, run it.
7. Select the language and click OK.
8. On the Welcome to Notepad++ screen, click Next >.
9. On the License Agreement screen, click I Agree.
10. On the Install Location screen, click Next >.
11. On the Choose Components screen, click Next >.
12. On the 2nd Choose Components screen, check Create Shortcut on Desktop (if you wish) and
then click Install.
13. After the software installs, click Finish.

D. Set up NotePad++ as follows:

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

E. Set up PowerShell on Windows 8/8.1. (PowerShell is already installed on Windows 10.)

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.

F. Test PowerShell on Windows as follows:

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

6. When prompted to confirm, click "Yes".


7. On the PowerShell command line, type in Get-ExecutionPolicy –List
8. You should get a result similar to:

9. Copy and Paste a screenshot of this result into your Word document.
Perform the following on an Apple (macOS) Computer:

G. Test Bash as follows:

1. Open the Terminal application.


2. On the command line, type in bash --version
3. You should get a result similar to:

GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin17)


Copyright (C) 2007 Free Software Foundation, Inc.

4. Copy and Paste a screenshot of this result into your Pages document.

H. Set up TextEdit as follows:

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.

I. Downloading and Installing PowerShell on macOs as follows:


1. Using your browser, navigate to the Microsoft PowerShell site.
2. https://docs.microsoft.com/en-us/powershell/
3. Click on Setup and Installation.
4. Click on Installing PowerShell Core on macOS.
5. Scroll down to the section named "Installation via Direct Download".
6. Click on releases in the first sentence of the section.
7. Scroll down to the section named "Assets".
8. Click on the file named:
9. powershell-7.1.3-osx-x64.pkg (or newest release)
10. The file should download to your computer.
11. After it downloads, click the arrow next to the file name and click Open.
12. This should open the "Welcome to the PowerShell – 7.1.3 Installer" window.
13. Click Continue.
14. This will open the "Select a Destination" Window.
15. Click Continue.
16. This will open the "Installation Type" window.
17. Click Continue for standard installation.
18. If prompted for your password, enter and Click Install Software.
19. When the installation is complete, Click Close.

J. Test PowerShell on macOS as follows:

1. Double Click the PowerShell icon.


2. On the PowerShell command line, type in Get-Host | Select-Object Version
3. You should get a result similar to:

Version
-------
7.1.3

4. Copy and Paste a screenshot of this result into your Pages document.

You might also like