Files
teslausb/GetShellWithoutMonitorOnWindows.md
cimryan d635f62de0 Remove instruction to install Putty
The later instructions reference the ssh built-in to Windows.
2018-10-12 18:58:56 -07:00

2.3 KiB

Seting up the Pi without a monitor using Windows

  1. Download and install: Notepad++ Alternatively, any other text editor which is capable of editing files with Unix-style line endings.
  2. Optional: Watch this video to get an idea of the process. The steps from the video are partially automated, below.
  3. Remove the MicroSD card from your computer and reinsert it. Do not at any point during the setup of the USB drive allow Windows to format any partition on any drive.
  4. Note that a new drive labeled "boot" has appeared on your computer. Note the drive letter of that drive.
  5. Right-click on your Start menu icon and select "Windows PowerShell (Admin)".
  6. Right-click the title bar of the window and select "Properties". Ensure that the "Use legacy console" checkbox is unchecked and activate the OK button. If it was checked before you unchecked it, close te PowerShell window and go back to step 3. If it wasn't, proceed onto the next step.
  7. Run the following command:

    Note: You can paste into the PowerShell window by right-clicking. The text will appear at the position of the cursor, not necessarily at the position where you click.

    Set-ExecutionPolicy -Scope CurrentUser Unrestricted
    
  8. Enter Y when prompted, and press Enter.
  9. Run the following commands:
    cd ~
    wget https://raw.githubusercontent.com/cimryan/teslausb/master/windows_archive/setup-piForHeadlessConfig.ps1 -OutFile setup-piForHeadlessConfig.ps1
    ./setup-piForHeadlessConfig.ps1 -Verbose
    
  10. Enter the single letter of the "boot" drive and press Enter.
  11. Eject the sd card.
  12. Move the sd card to the Pi.
  13. Connect a micro usb cable to the port labeled "USB" on the Raspberry Pi, and to the PC.
  14. On the PC, press your Windows key, type Control Panel.
  15. Open "Network and Sharing Center"
  16. Click "Change adapter settings"
  17. Wait for something labeled "USB Ethernet/RNDIS Gadget" to appear.
  18. Enter this command in your PowerShell window:
    ssh pi@raspberrypi.local
    
  19. If you get an "unknown host" error message install Bonjour: https://support.apple.com/kb/DL999 and go back to step 15.
  20. You should be prompted for the password for the user "pi". Enter
    raspberry