From 62567ca883b7668eaa7bcaf0cf43844aa266a08c Mon Sep 17 00:00:00 2001 From: skipfire Date: Thu, 25 Oct 2018 08:19:38 -0500 Subject: [PATCH 1/4] Add-WiFi & Change Password doc update --- doc/GetShellWithoutMonitorOnWindows.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/doc/GetShellWithoutMonitorOnWindows.md b/doc/GetShellWithoutMonitorOnWindows.md index 0142aeb..1f3fc5f 100644 --- a/doc/GetShellWithoutMonitorOnWindows.md +++ b/doc/GetShellWithoutMonitorOnWindows.md @@ -21,6 +21,13 @@ 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: + ``` + wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/windows/add-wifi.ps1 -OutFile add-wifi.ps1 + ./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 +45,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 + ``` + passwod + ``` +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 + ``` +or + ``` + mount / -o remount,rw + ``` From 8d1d7e70c7ce1e09ba7b31b4710d42b58b438e55 Mon Sep 17 00:00:00 2001 From: skipfire Date: Thu, 25 Oct 2018 08:21:17 -0500 Subject: [PATCH 2/4] Minor doc update --- doc/GetShellWithoutMonitorOnWindows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/GetShellWithoutMonitorOnWindows.md b/doc/GetShellWithoutMonitorOnWindows.md index 1f3fc5f..7dc5d79 100644 --- a/doc/GetShellWithoutMonitorOnWindows.md +++ b/doc/GetShellWithoutMonitorOnWindows.md @@ -55,7 +55,7 @@ ``` /root/bin/remountfs_rw ``` -or +1. or ``` mount / -o remount,rw ``` From fe49e74385b8f8bc52edcb77874b412b1dd6a099 Mon Sep 17 00:00:00 2001 From: skipfire Date: Thu, 25 Oct 2018 08:25:05 -0500 Subject: [PATCH 3/4] Minor update --- doc/GetShellWithoutMonitorOnWindows.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/GetShellWithoutMonitorOnWindows.md b/doc/GetShellWithoutMonitorOnWindows.md index 7dc5d79..aa221ca 100644 --- a/doc/GetShellWithoutMonitorOnWindows.md +++ b/doc/GetShellWithoutMonitorOnWindows.md @@ -47,7 +47,7 @@ ``` 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 ``` - passwod + passwd ``` 1. Then enter your new password and press Enter 1. Confirm your new password and press Enter From ee039418e64c4478f75289760f0952ed3a3a78fd Mon Sep 17 00:00:00 2001 From: skipfire Date: Thu, 25 Oct 2018 08:46:18 -0500 Subject: [PATCH 4/4] Move additional wgets into setup ps1 --- doc/GetShellWithoutMonitorOnWindows.md | 2 -- setup/windows/setup-piForHeadlessConfig.ps1 | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/GetShellWithoutMonitorOnWindows.md b/doc/GetShellWithoutMonitorOnWindows.md index aa221ca..5063334 100644 --- a/doc/GetShellWithoutMonitorOnWindows.md +++ b/doc/GetShellWithoutMonitorOnWindows.md @@ -15,7 +15,6 @@ ``` 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. @@ -23,7 +22,6 @@ 1. Enter the Pre-Shared Key of your WiFi network and press Enter. 1. If you want to add additional WiFi networks, execute: ``` - wget https://raw.githubusercontent.com/cimryan/teslausb/master/setup/windows/add-wifi.ps1 -OutFile add-wifi.ps1 ./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. 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}:"