User Tools

Site Tools


pibot:flashdrivewin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pibot:flashdrivewin [2021/06/25 06:31] – Removed partition imager app jstruebelpibot:flashdrivewin [2022/10/20 19:53] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +===== Prepare Windows Flash Drive =====
 +
 +The first step required is to format the USB Flash drive for the native OS. On Windows 10 follow the steps below.
 +
 +  - Insert the USB Flash drive into the computer
 +  - Launch the Disk Management tool
 +    - Open the Start Menu
 +    - Type in "Create and format hard disk"
 +    - Click the "Create and format hard disk partitions" Control Panel result\\ \\ <WRAP box>{{ :pibot:flashdrivewin:dm1.png |Find Disk Utility}}</WRAP>
 +  - Select the USB Flash drive in the list at the top\\ \\ <WRAP box>{{ :pibot:flashdrivewin:dm2.png |Select drive}}</WRAP>
 +  - Right click on the USB Flash drive and select "Format..."\\ \\ <WRAP box>{{ :pibot:flashdrivewin:dm3.png |Select erase}}</WRAP>
 +  - Type in a name for the drive\\ \\ <WRAP box>{{ :pibot:flashdrivewin:dm4.png |Name drive}}</WRAP>
 +  - Select the "NTFS" option for the File System\\ \\ <WRAP box>{{ :pibot:flashdrivewin:dm5.png |Select file system}}</WRAP>
 +  - Click the "OK" button\\ \\ <WRAP box>{{ :pibot:flashdrivewin:dm6.png |Start format}}</WRAP>
 +  - Click the "OK" button when it asks to continue\\ \\ <WRAP box>{{ :pibot:flashdrivewin:dm7.png |Confirm format}}</WRAP>
 +  - When it's finished close the Disk Management window
 +
 +===== Add Windows Applications =====
 +
 +The next step is to add the applications that are needed.
 +
 +  - Open an Explorer window and select the USB Flash drive\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app1.png |Select drive}}</WRAP>
 +  - Create a folder called "Applications"\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app2.png |New Applications Folder}}</WRAP>
 +  - Download and install the Raspberry Pi Imager app
 +    - Browse to [[https://www.raspberrypi.org/software/]] and download the latest version
 +    - Run the downloaded app\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app3.png |Raspberry Pi Imager Install}}</WRAP>
 +    - Follow the prompts to install the app. At the end uncheck the option to "Run Raspberry Pi Imager" and click "Finish"\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app4.png |Raspberry Pi Imager Install Complete}}</WRAP>
 +    - Open another Explorer window and navigate to C:\Program Files (x86)\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app5.png |Raspberry Pi Imager Folder}}</WRAP>
 +    - Drag the Raspberry Pi Imager folder to the Applications folder on the USB Flash drive\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app6.png |Raspberry Pi Imager Installed}}</WRAP>
 +  - Download and install the Win32-OpenSSH app
 +    - Browse to [[https://github.com/PowerShell/Win32-OpenSSH]] and download the latest version zip file under the "Releases" heading on the right side
 +    - Open the downloaded file and select the Extract all icon on the Extract toolbar\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app7.png |Visual Studio Code Zip}}</WRAP>
 +    - Change the path to the Applications folder on the USB Flash drive and click the "Extract" button\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app8.png |Visual Studio Code Extract Files}}</WRAP>
 +  - Download and install the Visual Studio Code app
 +    - Browse to [[https://code.visualstudio.com]] and download the latest version zip file under the "Other platforms" link
 +    - Open the downloaded file and select the Extract all icon on the Extract toolbar\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app9.png |Visual Studio Code Zip}}</WRAP>
 +    - Change the path to a Visual Studio Code subfolder of the Applications folder on the USB Flash drive and click the "Extract" button\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app10.png |Visual Studio Code Extract Files}}</WRAP>
 +    - Create a new folder named "data" in the Visual Studio Code folder on the USB Flash drive\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app11.png |Visual Studio Code Data Folder}}</WRAP>
 +  - Install required extensions in Visual Studio Code
 +    - Open the Code app from the Visual Studio Code folder on the USB Flash drive
 +    - Click on the extensions icon\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app12.png |VSCode Extensions}}</WRAP>
 +    - Type "Python" in the search field\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app13.png |VSCode Extensions - Python}}</WRAP>
 +    - Click the "Install" button for the Python extension\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app14.png |VSCode Extensions Python Install}}</WRAP>
 +    - Type "C/C++" in the search field\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app15.png |VSCode Extensions - C/C++}}</WRAP>
 +    - Click the "Install" button for the C/C++ extension\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app16.png |VSCode Extensions - C/C++ Install}}</WRAP>
 +    - Type "Remote-SSH" in the search field\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app17.png |VSCode Extensions - Remote-SSH}}</WRAP>
 +    - Click the "Install" button for the Remote - SSH extension\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app18.png |VSCode Extensions - Remote-SSH Install}}</WRAP>
 +    - Close Visual Studio Code
 +  - Download and install the PuTTY app
 +    - Browse to [[https://jakub.kotrla.net/putty/]] and download the latest version zip file at the bottom of the page
 +    - Open the downloaded file and select the Extract all icon on the Extract toolbar\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app19.png |PuTTY Zip}}</WRAP>
 +    - Change the path to a PuTTY subfolder of the Applications folder on the USB Flash drive and click the "Extract" button\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app20.png |PuTTY Extract Files}}</WRAP>
 +  - Create a batch file to setup paths for Visual Studio Code
 +    - Open the Code app from the Visual Studio Code folder on the USB Flash drive
 +    - Select File->New File\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app21.png |VSCode - New File}}</WRAP>
 +    - Enter the following text\\ \\ <code>SET PATH=%~dp0\OpenSSH-Win64;%~dp0\"Visual Studio Code";%PATH%
 +Code</code>
 +    - Select File->Save As...\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app22.png |VSCode - Save File}}</WRAP>
 +    - Browse to the "Applications" folder on the USB Flash drive, enter "VSCode.cmd" for the File name: and click Save\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app23.png |VSCode - Save File Location}}</WRAP>
 +    - Close Visual Studio Code
 +  - Download and install the Win32DiskImager app
 +    - Browse to [[https://sourceforge.net/projects/win32diskimager/files/Archive/]] and download the latest version binary zip file
 +    - Open the downloaded file and select the Extract all icon on the Extract toolbar\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app24.png |Win32DiskImager Zip}}</WRAP>
 +    - Change the path to a Win32DiskImager subfolder of the Applications folder on the USB Flash drive and click the "Extract" button\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app25.png |Win32DiskImager Extract Files}}</WRAP>
 +
 +
 +====== Add Web Link ======
 +
 +  - Open Edge and browse to the [[https://robot-club.jonathan.struebel-family.net/start|Robot Club]] home page
 +  -  Open an Explorer window and select the USB Flash drive\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app2.png |USB Flash Drive Folder}}</WRAP>
 +  - Right click in the Explorer window and select New->Shortcut
 +  - Select the web address at the top of the Edge window, copy it and paste it for the location of the item\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app26.png |Shortcut - Location}}</WRAP>
 +  - Click the "Next" button\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app27.png |Shortcut - Next}}</WRAP>
 +  - Enter "Robot Club" for the name of the shortcut\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app28.png |Shortcut - Name}}</WRAP>
 +  - Click the "Finish" button\\ \\ <WRAP box>{{ :pibot:flashdrivewin:app29.png |Shortcut - Finish}}</WRAP>