diff --git a/doc/GetShellWithoutMonitorOnWindows.md b/doc/GetShellWithoutMonitorOnWindows.md index 0142aeb..5063334 100644 --- a/doc/GetShellWithoutMonitorOnWindows.md +++ b/doc/GetShellWithoutMonitorOnWindows.md @@ -15,12 +15,17 @@ ``` cd ~ wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/windows/setup-piForHeadlessConfig.ps1 -OutFile setup-piForHeadlessConfig.ps1 - wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/windows/WpaSupplicantConf.psm1 -OutFile WpaSupplicantConf.psm1 ./setup-piForHeadlessConfig.ps1 -Verbose ``` 1. Enter the single letter of the "boot" drive and press Enter. 1. Enter the SSID of your WiFi network and press Enter. 1. Enter the Pre-Shared Key of your WiFi network and press Enter. +1. If you want to add additional WiFi networks, execute: + ``` + ./add-wifi.ps1 -Verbose + ``` +1. If you will use any public or insecure networks, be sure to update your password using the instructions at the end of this document. +1. Enter the additional SSID and Pre-Shared Key of the WiFi network and repeat as necessary. 1. Eject the sd card. 1. Move the sd card to the Pi. 1. Connect a micro usb cable to the port labeled "USB" on the Raspberry Pi, and to the PC. @@ -38,3 +43,17 @@ ``` raspberry ``` +1. Change your password! While not required, it is recommended, especially if you may be using any public or insecure WiFi connections. To do so Enter + ``` + passwd + ``` +1. Then enter your new password and press Enter +1. Confirm your new password and press Enter +1. If you want to change your password later, you must set the system partition to writeable with either + ``` + /root/bin/remountfs_rw + ``` +1. or + ``` + mount / -o remount,rw + ``` diff --git a/setup/windows/setup-piForHeadlessConfig.ps1 b/setup/windows/setup-piForHeadlessConfig.ps1 index a2a802c..540278a 100644 --- a/setup/windows/setup-piForHeadlessConfig.ps1 +++ b/setup/windows/setup-piForHeadlessConfig.ps1 @@ -11,6 +11,9 @@ Param [string]$wifiPSK ) +wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/windows/WpaSupplicantConf.psm1 -OutFile WpaSupplicantConf.psm1 +wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/windows/add-wifi.ps1 -OutFile add-wifi.ps1 + Import-Module -Name ".\WpaSupplicantConf.psm1" -Force $drivePath="${driveLetter}:"