View Issue Details

IDProjectCategoryView StatusLast Update
00001983D machine tool[All Projects] Generalpublic2023-12-15 01:26
ReporterDigitalMy 
PrioritynormalSeverityfeatureReproducibilityN/A
Status assignedResolutionopen 
Summary0000198: Common and special software for Raspberry Pi 3
DescriptionMain featues:
1. 3D printer host
2. SMB share
3. Display for information
4. Web camera host
5. Raspbian for ARM OS installed to 64GB microSD card as https://www.raspberrypi.org/documentation/installation/installing-images/windows.md (Win32 Disk Imager)
6. Has RDP connection to desktop
7. Web server with PHP
8. Has bluetooth connectivity
9. Has wireless and wired network
Additional InformationChip was BCM2837
TagsNo tags attached.

Relationships

related to 0000194 assignedDigitalMy 3D machine tool Design and produce shield for 3D printer with Raspberry Pi 3 
related to 0000272 resolvedDigitalMy Windows and other desktop OS Install Debian on weak laptop 

Activities

DigitalMy

2016-08-20 11:55

administrator   ~0000409

Last edited: 2016-08-20 11:58

View 3 revisions

10. web browsers
sudo apt-get install luakit
luakit http://digitalmy.ru/

DigitalMy

2016-08-20 12:07

administrator   ~0000410

Last edited: 2021-08-30 23:33

View 3 revisions

Allow SSH for root user
1) passwd root
2) edit /etc/ssh/sshd_config file , set
PermitRootLogin yes
3) systemctl restart ssh || systemctl restart sshd


1. install "OctoPrint"

DigitalMy

2016-08-20 12:08

administrator   ~0000411

Last edited: 2023-09-17 01:02

View 11 revisions

2. used "samba" app, install samba share on Raspberry Pi 2B:

sudo apt-get install samba samba-common-bin

sudo mkdir -m 1777 /media/share
or
sudo mkdir -m 1777 /share
sudo chmod 777 /etc/motion
sudo mkdir -m 1777 /share/motion
sudo chmod 777 /share/motion
sudo useradd -m motion -s /bin/bash -d /home/motion
sudo chown motion /share/motion
passwd motion
sudo chown motion /share/motion/2021

sudo nano /etc/samba/smb.conf
or edit smb.conf file better in powerful notepad leafpad

sudo pdbedit -a pi sorce
not latest

sudo /etc/init.d/samba restart
-> newer:
sudo service smbd restart
sudo service nmbd restart

> in case no user added, will get error "tdbsam_getsampwnam: failed to open /var/lib/samba/private/passdb.tdb"
> add user with:
sudo pdbedit -a pi sorce

and client also:
sudo apt-get install smbclient

use unix passwords for samba:
sudo apt-get install libpam-smbpass

sudo motion

sudo service motion stop
sudo service motion start
sudo service motion restart

DigitalMy

2016-08-20 12:09

administrator   ~0000412

Last edited: 2019-03-08 13:00

View 2 revisions

3. connected to HDMI port : cable (new)
-> Use separate monitor HD

DigitalMy

2016-08-20 15:35

administrator   ~0000413

Last edited: 2023-12-15 01:26

View 4 revisions

9. > set static IP
sudo nano /etc/dhcpcd.conf
and specify:
interface eth0
static ip_address=10.2.1.2/24
static routers=10.2.1.1
static domain_name_servers=10.2.1.1

systemctl stop dhcpcd
apt remove dhcpcd5
vi /etc/network/interfaces.d/eth0
systemctl restart networking
ss -lnp

9.1. > Found that firewall rejects any packet from outside LAN... fix it:
ifconfig
 showed that wrong netmask 255.0.0.0 broadcast 10.255.255.255 assigned... fix it : add /24 to line end "static ip_address="

DigitalMy

2016-08-20 16:32

administrator   ~0000414

Last edited: 2023-10-27 02:51

View 16 revisions

4. connect Microsoft HD-5000 web camera USB
sudo apt-get install motion
> default location for config file /etc/motion/motion.conf (do not put copy to user folder)
sudo nano /etc/motion/motion.conf
> change the following parameters to:
daemon=on
stream_localhost = off
webcontrol_localhost = off
>edit
sudo nano /etc/default/motion

> set:
start_motion_daemon=yes
> execute:
sudo nano /etc/rc.local
> add line:
motion
> start service:
sudo service motion start


sudo pkill -f motion

sudo rm -r /share/motion/2021
sudo mv /share/motion/*.jpg /share/motion/2021/
sudo mv /share/motion/202107*.mp4 /share/motion/2021/07/


Add separate disk for video (USB flash)
sudo mount /dev/sda1 /share/motion
sudo update-initramfs -u
echo '/dev/sda1 /share/motion vfat defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab
chmod -R 777 /share/motion

DigitalMy

2016-09-06 00:30

administrator   ~0000422

In case run Windows 10 IoT,
default: Administrator p@ssw0rd

DigitalMy

2017-02-19 12:43

administrator   ~0000470

Last edited: 2021-03-02 12:48

View 2 revisions

Tested Pi3 with Android 7 (geektillithertz.com)
installed Aptoide TV (aptoide.com)

not enough functions available, but it works
found this firmware not useful

DigitalMy

2020-09-27 11:14

administrator   ~0003983

7. apache2

after installed , location is:
/var/www/html
and files are owned by "root", no default password in Raspbian...
set password for root user:
> sudo passwd root
open as root:
> su - root
> mc

DigitalMy

2021-03-02 11:25

administrator   ~0003996

Installed samba share on Raspberry Pi 2B (mini NAS):

sudo apt-get install samba samba-common-bin
sudo mkdir -m 1777 /media/share
sudo nano /etc/samba/smb.conf
sudo pdbedit -a pi sorce
sudo /etc/init.d/samba restart

DigitalMy

2021-07-27 16:04

administrator   ~0007058

Test other video streaming software:

sudo apt-get install fswebcam
sudo apt-get install imagemagick libav-tools libjpeg8-dev subversion
sudo svn co https://svn.code.sf.net/p/mjpg-streamer/code/mjpg-streamer/ mjpg-streamer
cd mjpg-streamer
sudo make
> added:
cd /home/pi/mjpg-streamer && ./mjpg_streamer -i "./input_uvc.so" -o "./output_http.so -w ./www"
to /etc/rc.local

DigitalMy

2023-10-27 01:30

administrator   ~0011237

Last edited: 2023-10-29 05:42

View 3 revisions

6. after upgrade need fix xrdp,
edit /etc/X11/xrdp/xorg.conf
add Option "CoreKeyboard" and Option "CorePointer"

Section "InputDevice"
    Identifier "xrdpKeyboard"
    Driver "xrdpkeyb"
    Option "CoreKeyboard"
EndSection

Section "InputDevice"
    Identifier "xrdpMouse"
    Driver "xrdpmouse"
    Option "CorePointer"
EndSection


usermod -a -G video root
usermod -a -G audio root

optional change of desktop:
mcedit nano /etc/xdg/lxsession/LXDE-pi/autostart

@lxpanel --profile LXDE
@pcmanfm --desktop --profile LXDE
@xscreensaver -no-splash