Setting up for development

Setting up your WiggleBin for easy development

Setting up a Raspberry Pi for Developing WiggleBin Packages

Setting up a Raspberry Pi for developing WiggleBin packages is an essential step towards contributing to this innovative project aimed at revolutionizing waste management systems. WiggleBin, with its focus on smart and efficient waste collection solutions, offers a promising avenue for creating a more sustainable and environmentally-friendly future.

In this guide, we'll walk you through the process of configuring your Raspberry Pi to serve as a development platform for WiggleBin packages. Whether you're a seasoned developer or just starting your journey in software development, this setup will equip you with the tools and environment needed to contribute to the advancement of waste management technology.

From installing necessary software packages to configuring development environments and setting up version control systems, we'll cover everything you need to know to kickstart your journey as a WiggleBin developer on your Raspberry Pi. By following these steps, you'll be well-equipped to dive into the exciting world of developing solutions that make a tangible difference in waste collection and management.

Connecting to Raspberry Pi with VS Code

Install Remote SSH Extension in Visual Studio Code

  1. Open Visual Studio Code: Launch Visual Studio Code on your computer.

  2. Open Extensions View: Click on the Extensions view icon in the sidebar on the left side of the window. Alternatively, you can press Ctrl+Shift+X (Windows/Linux) or Cmd+Shift+X (macOS) to open the Extensions view.

  3. Search for Remote SSH Extension: In the Extensions view, type "Remote SSH" into the search bar at the top. Press Enter to start the search.

  4. Install Remote SSH Extension: Look for the "Remote - SSH" extension in the search results. Click on the "Install" button next to the extension. Wait for the installation process to complete.

  5. Reload Visual Studio Code: After the extension is installed, you'll be prompted to reload Visual Studio Code to activate the extension. Click on the "Reload" button or close and reopen Visual Studio Code.

That's it! You have successfully installed the Remote SSH extension in Visual Studio Code and connected to a remote SSH host for development.

Connecting to WiggleBin with VS Code

To connect to your Raspberry Pi named "wiggle" using VS Code, follow these steps:

  1. Open Visual Studio Code: Launch Visual Studio Code on your computer.

  2. Install Remote SSH Extension: If you haven't already, install the "Remote - SSH" extension by following the instructions in this guide (you can replace the link with the guide provided earlier).

  3. Open Command Palette: Press Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (macOS) to open the Command Palette.

  4. Connect to Remote SSH Host: In the Command Palette, type "Remote-SSH: Connect to Host" and select it from the list.

  5. Enter SSH Hostname: Enter [email protected] as the SSH hostname when prompted. Replace wiggle with the username of your Raspberry Pi and wigglebin.local with its hostname or IP address.

  6. Authenticate and Connect: Follow the prompts to authenticate with your SSH password or SSH key if required. Once authenticated, Visual Studio Code will establish an SSH connection to your Raspberry Pi.

  7. Start Developing Remotely: After connecting to your Raspberry Pi, you can start developing remotely using VS Code. You'll have access to all your files and can use the built-in terminal for executing commands.

That's it! You're now connected to your Raspberry Pi named "wiggle" using VS Code and can begin developing remotely.

Setting Up SSH Key for Passwordless Login in VS Code

One convenient way to streamline your workflow in VS Code is by setting up an SSH key for passwordless login to your Raspberry Pi, such as WiggleBin. Follow these steps to simplify your access:

Generate an SSH Key on your development machine

ssh-keygen

Copy the Key from the Raspberry Pi to Your Computer: On your development machine, copy the public key from you computer to Raspberry Pi's SSH directory using ssh-copy-id. Replace [email protected] with your Raspberry Pi's username and hostname:

ssh-copy-id -i ~/.ssh/id_rsa [email protected]

Enter Password (If Required): You may be prompted to enter the password for the Raspberry Pi. Once entered, your SSH key will be added to the authorized keys list, allowing passwordless login.

Last updated