Skip to content

al3xxndr/RaspCam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 

Repository files navigation

Raspberry Pi SSH and Camera Setup

Setting up Raspberry Pi as an SSH server:

  1. Install Raspberry Pi OS by flashing the latest version onto an SD card.
  2. Connect the Raspberry Pi to power and establish a network connection (Ethernet or Wi-Fi).
  3. Update the system packages by running the following commands:
    sudo apt update
    sudo apt upgrade
  4. Enable SSH by executing the following commands:
    sudo systemctl enable ssh
    sudo systemctl start ssh
  5. Optionally, configure the Raspberry Pi using the raspi-config tool.
  6. Find the IP address of the Raspberry Pi on the network using the ifconfig command.
  7. Install the Termius app on your iOS device.
  8. Open Termius and add a new host using the Raspberry Pi's IP address, SSH as the connection type, and a chosen name.
  9. Enter the Raspberry Pi's username and password.
  10. Tap the newly added host in Termius to establish an SSH connection to the Raspberry Pi.

Accessing Raspberry Pi camera via fswebcam:

  1. Install fswebcam on the Raspberry Pi using the command:
    sudo apt-get install fswebcam
  2. Capture an image using fswebcam with the following command:
    fswebcam image.jpg
  3. Customize the command with options like resolution, delay, and device selection, if desired.

Viewing the image on an iPhone:

  1. 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/
  2. Open an image viewer app on your iPhone and access the copied image.
  3. 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.

Releases

No releases published

Packages

No packages published