- Install Raspberry Pi OS by flashing the latest version onto an SD card.
- Connect the Raspberry Pi to power and establish a network connection (Ethernet or Wi-Fi).
- Update the system packages by running the following commands:
sudo apt update
sudo apt upgrade - Enable SSH by executing the following commands:
sudo systemctl enable ssh
sudo systemctl start ssh - Optionally, configure the Raspberry Pi using the
raspi-config
tool. - Find the IP address of the Raspberry Pi on the network using the
ifconfig
command. - Install the Termius app on your iOS device.
- Open Termius and add a new host using the Raspberry Pi's IP address, SSH as the connection type, and a chosen name.
- Enter the Raspberry Pi's username and password.
- Tap the newly added host in Termius to establish an SSH connection to the Raspberry Pi.
- Install fswebcam on the Raspberry Pi using the command:
sudo apt-get install fswebcam
- Capture an image using fswebcam with the following command:
fswebcam image.jpg
- Customize the command with options like resolution, delay, and device selection, if desired.
- Use the SCP command to securely copy the image file from the Raspberry Pi to the iPhone. For example:
scp pi@<Raspberry_Pi_IP_Address>:/path/to/image.jpg ~/Documents/
- Open an image viewer app on your iPhone and access the copied image.
- Alternatively, set up a web server on the Raspberry Pi and serve the image file. Access the image from your iPhone's web browser using the Pi's IP address and the appropriate URL (e.g.,
http://<Raspberry_Pi_IP_Address>/image.jpg
).
Remember to ensure the security of your Raspberry Pi and SSH connection by using strong passwords and following network security best practices.