lavurso
Posts: 2
Joined: Sun May 24, 2020 1:29 am

RPi_Cam_Web_Interface issue

Sun May 24, 2020 1:31 am

I have a Raspberry Pi 3 Model B Rev 1.2 with a Raspberry Pi Camera V2. Fresh install of Buster on my microSD card. Only thing I've changed is the desktop background. My aim is to use RPi_Cam_Web_Interface for astrophotography.

I enabled the camera in preferences and ran install.sh.

[email protected]:~/RPi_Cam_Web_Interface $ sh install.sh

+ readlink -f install.sh

+ dirname /home/pi/RPi_Cam_Web_Interface/install.sh

+ cd /home/pi/RPi_Cam_Web_Interface

+ dpkg-query -W -f=${Status} dialog

+ grep -c ok installed

+ [ 1 -eq 0 ]

+ color_red=tput setaf 1

+ color_green=tput setaf 2

+ color_reset=tput sgr0

+ versionfile=./www/config.php

+ cat ./www/config.php

+ grep 'APP_VERSION'

+ cut -d ' -f4

+ version=v6.6.9

+ backtitle=Copyright (c) 2015, Bob Tidey. RPi Cam v6.6.9

+ jpglink=no

+ phpversion=7.3

+ [ ! -e ./config.txt ]

+ source ./config.txt

install.sh: 72: install.sh: source: not found

+ rpicamdirold=

install.sh: 74: install.sh: Bad substitution

I'm not very technical and know very little programming. The lines from the install script cited from the traceback are:

source ./config.txt

rpicamdirold=$rpicamdir

if [ ! "${rpicamdirold:0:1}" == "" ]; then

rpicamdirold=/$rpicamdirold

fi

I don't know what I can do so this installs and functions.

Thank you.

P.S. This is the config file

#This is config file for main installer. Put any extra options in here.

rpicamdir="html"

webserver="apache"

webport="80"

user=""

webpasswd=""

autostart="yes"

jpglink="no"

phpversion="7.3"

lavurso
Posts: 2
Joined: Sun May 24, 2020 1:29 am

Re: RPi_Cam_Web_Interface issue

Mon May 25, 2020 2:15 pm

Bump

trejan
Posts: 1686
Joined: Tue Jul 02, 2019 2:28 pm

Re: RPi_Cam_Web_Interface issue

Mon May 25, 2020 2:51 pm

lavurso wrote:
Sun May 24, 2020 1:31 am
[email protected]:~/RPi_Cam_Web_Interface $ sh install.sh
Don't use sh with this. install.sh was written for bash but you're forcing it to use sh which is very basic. Do ./install.sh instead.

Return to “Troubleshooting”