Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

sibianul

Members
  • Joined

  • Last visited

Reputation Activity

  1. Like
    sibianul got a reaction from manuti in Installing FTP server bananaPi M1   
    Thanks for your advices, it was quite easy to setup the ftp using your instructions, I also created a new user and setup the user home directory inside /var/www/html/security_camera_storage.  The camera is saving new images each time there is motion, my only problem so far is how other users can access those images? 
     
    I tried to create a php script to scan the directory where images are saved but it seems it fails as the directory is owned by user securitycam, and php is running with a different user. I want to setup some cronjobs to scan and delete old files (let's say, I will delete every image older than 3 days), I will also need to display the images in my dashboard, so I will definitely need to find a fix to this "issue"
     
    The other files in html folder are owned by admin user.
     
    Any advices on how to setup the ftp to save files that can be accessed by admin user, are welcome
     
    Thank you.
     
    UPDATE
     
    I have added user admin to group secuirtycam, but still didn't help:
     
    sudo usermod -a -G securitycam admin
    sudo chgrp -R securitycam /var/www/html/security_camera_storage
     
    After seeing that PHP still can't access that folder, I changed the permissions of that folder to 777. Is this such a bad thing? even if this bananaPi is a local device, obody else has access to this pi, just me.
     
    sudo chmod -R 777 /var/www/html/security_camera_storage
     
    This way it scans the folder, but unfortunately newly added files, are still not accessible, the main folder is accessible, PHP script is seeing all the files, even the new ones, but when I try to display them in a webpage, the images are not shown. So I still need to fix this, the proper way
     
    Thank you.
     



Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.