From c87a37fce91750a8d83c48b2ab2b2464180bee2e Mon Sep 17 00:00:00 2001 From: cimryan Date: Tue, 16 Oct 2018 17:07:54 -0700 Subject: [PATCH 1/3] Added instruction to remove the init_resize.sh invocation --- GetShellWitoutMonitorOnLinux.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/GetShellWitoutMonitorOnLinux.md b/GetShellWitoutMonitorOnLinux.md index faefa01..72c7c41 100644 --- a/GetShellWitoutMonitorOnLinux.md +++ b/GetShellWitoutMonitorOnLinux.md @@ -6,3 +6,5 @@ Here are a few ways to accomplish this * [Script to setup the Pi for connecting over USB](https://github.com/BigNate1234/rpi-USBSSH) * (I.e. First write the OS image to the SD card, then this script will make the changes to the card so you can boot it and access it over the USB cable. * **Assumes the SD card for the Pi is mounted at /Volumes/boot , and that you can use `sh`/`bash`**. This _should_ be the default for a Mac; if using something else, modify the script accordingly. + +Be sure to delete the "init=/usr/lib/raspi-config/init_resize.sh" parameter from cmdline.txt to prevent the os partition from being expanded to fill the drive. From 20eff04ea8fe9842ed037ddf5490de1fede652ca Mon Sep 17 00:00:00 2001 From: cimryan Date: Tue, 16 Oct 2018 17:38:41 -0700 Subject: [PATCH 2/3] Added instruction to delete the init_resize call during manual setup --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3d14615..173eb73 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ There are four phases to setting up the Pi: > Note: you don't need to uncompress the zip file you downloaded. ### Get a shell on the Pi -If you have a monitor with an hdmi input, a mini hdmi to hdmi cable, a usb keyboard and a micro usb power cable you can hook up the devices to the Pi and configure it directly. +If you have a monitor with an hdmi input, a mini hdmi to hdmi cable, a usb keyboard and a micro usb power cable you can hook up the devices to the Pi and configure it directly. Before you start those steps, ensure that the MicroSD card is in your computer and edit the cmdline.txt file to delete the parameter " init=/usr/lib/raspi-config/init_resize.sh". 1. Insert the MicroSD card into the Pi. 1. Connect the keyboard, and monitor to the Pi. 1. Connect the power supply to the Pi using the port labeld "PWR" on the circuitboard. @@ -159,4 +159,4 @@ sudo -i mount / -o remount,rw mount /boot -o remount,rw ``` -Then make whatever changes you need to. The next time the system boots the partitions will once again be read-only. \ No newline at end of file +Then make whatever changes you need to. The next time the system boots the partitions will once again be read-only. From 8a1786e4c59a8eeebbaacd793a63914d8aabfbe6 Mon Sep 17 00:00:00 2001 From: cimryan Date: Tue, 16 Oct 2018 20:42:36 -0700 Subject: [PATCH 3/3] Added instruction to delete .ssh\known_hosts --- GetShellWithoutMonitorOnWindows.md | 1 + 1 file changed, 1 insertion(+) diff --git a/GetShellWithoutMonitorOnWindows.md b/GetShellWithoutMonitorOnWindows.md index d696876..efd24ab 100644 --- a/GetShellWithoutMonitorOnWindows.md +++ b/GetShellWithoutMonitorOnWindows.md @@ -29,6 +29,7 @@ ``` ssh pi@raspberrypi.local ``` + > Note: If you receive an error indicating that the host id has changed and you can't work around it you'll need to delete the ~\\.ssh\known_hosts file. You're especially likely to encounter this error if you're following these instructions for a second time. 1. If you get an "unknown host" error message install Bonjour: https://support.apple.com/kb/DL999 and go back to step 15. 1. You should be prompted for the password for the user "pi". Enter ```