View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0000198 | 3D machine tool | [All Projects] General | public | 2016-08-20 03:14 | 2023-12-15 01:26 |
Reporter | DigitalMy | ||||
Priority | normal | Severity | feature | Reproducibility | N/A |
Status | assigned | Resolution | open | ||
Summary | 0000198: Common and special software for Raspberry Pi 3 | ||||
Description | Main 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 Information | Chip was BCM2837 | ||||
Tags | No tags attached. | ||||
|
10. web browsers sudo apt-get install luakit luakit http://digitalmy.ru/ |
|
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" |
|
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 |
|
3. connected to HDMI port : cable (new) -> Use separate monitor HD |
|
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=" |
|
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 |
|
In case run Windows 10 IoT, default: Administrator p@ssw0rd |
|
Tested Pi3 with Android 7 (geektillithertz.com) installed Aptoide TV (aptoide.com) not enough functions available, but it works found this firmware not useful |
|
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 |
|
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 |
|
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 |
|
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 |