git / GitHub development with Raspberry Pi's and other devices #183
Replies: 6 comments 6 replies
-
I think I'll try to use Tailscale as well.
Various resources: |
Beta Was this translation helpful? Give feedback.
-
@Neil-YL and I are both working on the a1 mini Pi around the same time (different branches), so we can either work on a common branch (e.g., Instructions at https://stackoverflow.com/questions/36687536/how-to-open-2-visual-studio-instances-with-same-git-projects-and-different-bran |
Beta Was this translation helpful? Give feedback.
-
I'm leaning towards running in headless mode (e.g., Raspberry Pi OS Lite (bookworm)) in general, especially for any Raspberry Pi Zero 2W's that we have, to reduce the resources consumed by the OS. Some considerations:
following based on ChatGPT prompt, username redacted
1. Verify the Current Network Status: First, let's check the current status of your wireless interface ( ip addr show wlan0 This command will display the IP address and connection status of 2. Install Necessary Packages: Ensure that sudo apt update
sudo apt install network-manager Optionally, you can run 3. Disable Conflicting Network Services: [OPTIONAL] To prevent conflicts, optionally disable other network management services such as sudo systemctl disable dhcpcd
sudo systemctl stop dhcpcd 4. Enable and Start NetworkManager: Activate sudo systemctl enable NetworkManager
sudo systemctl start NetworkManager 5. Configure the WPA2-Enterprise Connection Using The sudo nmtui Within the
Note that users with sudo or root access can see the password again if they go digging. I suggest changing your university password to something unique and specific to it (e.g., memorable password generated via 1password). You could also do something like make sure only you have root access and create a non-admin account that others on your team can SSH into, but some consideration might be required when trying to get the device to autostart a script. After configuring these settings, save and exit 6. Connect to the "UofT" Network: Attempt to establish the connection using sudo nmcli connection up UofT If you are SSH'd into the device, it may close your connection. If all goes well, you should be able to connect after waiting a minute or so. Otherwise, if something catastrophic happens (i.e., it's unable to connect at all), then you'll need access to the device to manually follow these steps. 7. Verify the Connection: Check if ip addr show wlan0 You can also check (example output also shown): sudo nmcli dev status
Alternatively, you can use Additional Considerations:
By following these steps, you should be able to connect your Raspberry Pi Zero 2W to the "UofT" WPA2-Enterprise Wi-Fi network using your UTORid "***". Rebooting the device should still connect to the one most recently chosen. Various resources during troubleshooting (see list in comment): |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
just want to add for troubleshooting wifi setup with raspberry pi. i didnt set my wlan country to CA and this gave me some problems. what was happening was it was blocking the wifi connection. when i ran: |
Beta Was this translation helpful? Give feedback.
-
Had a weird issue crop up where I tried activating an eduroam connection via tailscale (via
(private chatgpt link, since I can't share due to use of audio, for my own reference) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If SSH'ing via VSCode extension, it appears that the git credentials are all stored on the VS Code side, which means you can probably keep your regular credentials. However, if you're developing locally on the Raspberry Pi (i.e., with attached monitor and keyboard) it would probably be best to use a personal access token restricted to that repository (see below). In particular, I have a separate account
sgbaird-alt
that I'll use sometimes. A personal access token restricted to a single repository (possibly where the main branch is protected and not accessible bysgbaird-alt
) would be a relatively secure way to go about it while still allowing the freedom for anyone to commit as long as they're on that repo. Also, logging in with GitHub username and password is deprecated, so you need a personal access token if you're developing locally, anyway. The RPi's themselves will have credentials for accessing (SSH, etc.), but this is less likely to be kept secure (i.e., more likely to be shared freely).https://github.com/settings/personal-access-tokens/new
The overall idea is how to keep a seamless development experience (especially integration with git/GitHub) while still developing on these separate devices that are accessible by multiple users and generally serve only a single purpose.
cc @Neil-YL since we talked about this a bit.
Beta Was this translation helpful? Give feedback.
All reactions