User Tools

Site Tools


rocnet:headless-cam-en

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
rocnet:headless-cam-en [2021/01/22 11:58] rjversluisrocnet:headless-cam-en [2022/06/17 09:42] (current) rjversluis
Line 3: Line 3:
 [[:english|Content]] -> [[:english#rocview|Rocview ]] -> [[:rocnet:cam-en|Camera Streaming]] [[:english|Content]] -> [[:english#rocview|Rocview ]] -> [[:rocnet:cam-en|Camera Streaming]]
   * **[[:rocnet:headless-cam-en|Headless Setup]]**   * **[[:rocnet:headless-cam-en|Headless Setup]]**
 +  * [[:raspi:install:rpi-install-en|Rocrail graphical install]]
    
 |< >| |< >|
Line 8: Line 9:
  \\  \\
  \\  \\
-=====SD Card with PiOS Lite===== +=====SD Card with Pi OS Lite (32bit)===== 
-{{ :rocnet:pios-imager.png?300}} +Download the Raspberry Pi Imager:
-See +
   * __**[[https://www.raspberrypi.org/software/|Raspberry Pi Imager]]**__   * __**[[https://www.raspberrypi.org/software/|Raspberry Pi Imager]]**__
-on how to create a SD image.\\ 
  
 +{{:rocnet:pi-img-os-0.png?240}}{{:rocnet:pi-img-os-1.png? 240}}{{:rocnet:pi-img-os-2.png? 240}}{{:rocnet:pi-img-os-3.png? 240}}{{:rocnet:pi-img-os-00.png? 240}}\\
 +
 +Insert a SD-Card.\\
 +Start the "Raspberry Pi Imager" program.\\
 +
 +Select:
 +  - CHOOSE OS
 +  - Pi OS Other
 +  - Pi OS Lite (32bit)
 +
 +See also __**[[:raspi:install:rpi-install-en#advanced_options|Advanced Options]]**__ for setting up SSH and WiFi.\\
  
  \\  \\
 =====Config the Boot Partition===== =====Config the Boot Partition=====
-Create locally a file named as "wpa_supplicant.confwith the following content:+Insert the SD-Card again, after creating of the Image on the SD-Card has finished.\\ 
 +The SD-Card should be visible in the File-Explorer as ''boot''.\\ 
 + \\ 
 +To make the Zero able to connect to the WiFi, it must get some settings to get this done.\\ 
 +The easiest way is to create text file locally named as ''wpa_supplicant.conf'' with the following content:
 <code> <code>
 country=DE country=DE
Line 23: Line 37:
 update_config=1 update_config=1
 network={ network={
-       ssid="<my SSID>"+       ssid="<my SSID1>"
        psk="<my PASSWORD>"        psk="<my PASSWORD>"
        key_mgmt=WPA-PSK        key_mgmt=WPA-PSK
 +       priority=2
 +}
 +network={
 +       ssid="<my SSID2>"
 +       psk="<my PASSWORD>"
 +       key_mgmt=WPA-PSK
 +       priority=1
 } }
 </code> </code>
-Replace the "<my*>" values with the real ones.\\ +Replace the "<my*>" values with the access information of the Access Point.\\ 
-  * **Note:** //Multiple network definitions seems to be allowed.// \\ +  * **Note:** //Multiple network definitions may be added. The highest priority will be connected first if available.// \\ 
 +Copy an empty file named ''SSH'', and ''wpa_supplicant.conf'' to ''boot''. (Under Windows mostly drive ''D:'')\\
  
-Copy an empty file named "SSH", and "wpa_supplicant.conf" file into the boot partition of the SD-Card:\\+to the boot partition of the SD-Card:\\
 {{:rocnet:cam:boot-1.png?400}}{{:rocnet:cam:boot-2.png?400}}\\ {{:rocnet:cam:boot-1.png?400}}{{:rocnet:cam:boot-2.png?400}}\\
  
Line 158: Line 179:
  \\  \\
 =====Boot speed===== =====Boot speed=====
 +Check the services which are not needed for the headless setup:
 <code> <code>
 systemd-analyze blame systemd-analyze blame
 </code> </code>
 +Google "raspberry zero systemd-analyze blame" to find tips, because this is a bit out of scope to include it in the Wiki.\\
  
 +
 +
 + \\
 +=====Power consumption=====
 +====HDMI====
 +Running a headless Zero, there's no need to power the display circuitry.\\
 +Add the following line in ''/etc/rc.local'' to disable HDMI on boot.
 +<code>/usr/bin/tvservice -o</code>
 +(-p to re-enable).\\
 +Approximately 25mA reduction.\\
 +
 +
 + \\
 +=====Special Boot Options=====
 +To be able to use pin 27 and 28 as normal I/O, add an extra line in the /boot/config.txt:
 +<code>
 +force_eeprom_read=0
 +</code>
 +
 +  * https://www.raspberrypi.org/documentation/configuration/config-txt/boot.md
  
  
Line 167: Line 210:
  \\  \\
 =====Notes===== =====Notes=====
 +====SFTP File Transfer====
 +WinSCP and FileZilla can be used for transferring files to and from the Raspberry Pi.\\
 +For more information see:
 +  * https://www.raspberrypi.org/documentation/remote-access/ssh/sftp.md
 +
 +
 ====SSH==== ====SSH====
   * The terminal/console commands **ssh** and **scp** are available under Linux, Windows10 and Apple macOS.   * The terminal/console commands **ssh** and **scp** are available under Linux, Windows10 and Apple macOS.
Line 175: Line 224:
   * **1** System Options   * **1** System Options
     * **S6** Network at Boot ((Select wait for network connection on boot))     * **S6** Network at Boot ((Select wait for network connection on boot))
 +
 +
 +
 +
 + \\
 +====Disable screen saver====
 +In case of a connected display, none headless, without user interaction.\\
 +
 +Edit the lightdm configuration:
 +<code>$ sudo nano /etc/lightdm/lightdm.conf</code>
 +find this section, and add the extra options:
 +<code>
 +[Seat:*]
 +xserver-command=X -s 0 -dpms
 +</code>
rocnet/headless-cam-en.1611313096.txt.gz · Last modified: 2021/01/22 11:58 by rjversluis