Merge pull request #61 from skipfire/master

Doc updates - add wifi, change password; move extra wgets to setup ps1
This commit is contained in:
cimryan
2018-10-25 18:44:36 -07:00
committed by GitHub
2 changed files with 23 additions and 1 deletions

View File

@@ -15,12 +15,17 @@
``` ```
cd ~ 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/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 ./setup-piForHeadlessConfig.ps1 -Verbose
``` ```
1. Enter the single letter of the "boot" drive and press Enter. 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 SSID of your WiFi network and press Enter.
1. Enter the Pre-Shared Key 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. Eject the sd card.
1. Move the sd card to the Pi. 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. 1. Connect a micro usb cable to the port labeled "USB" on the Raspberry Pi, and to the PC.
@@ -38,3 +43,17 @@
``` ```
raspberry 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
```

View File

@@ -11,6 +11,9 @@ Param
[string]$wifiPSK [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 Import-Module -Name ".\WpaSupplicantConf.psm1" -Force
$drivePath="${driveLetter}:" $drivePath="${driveLetter}:"