This is an old revision of the document!
pi4 2020-09
Downloaded piOS.
sshfs
@inagua: generate passwordless keys names pi4e.id_rsa
ssh-keygen -f pi4e.id_rsa
append pi4e.id_rsa.pub to pi@pi4e:.ssh/authorized_keys
scp .ssh/pi4e.id_rsa.pub pi@pi4e:.ssh/ ssh pi@pi4e cat .ssh/pi4e.id_rsa.pub >> .ssh/authorized_keys'
install raspbian https://www.raspberrypi.org/downloads/ start and small config (wifi, keyboard, ssh)
upgrade to pixel
sudo apt-get update sudo apt-get dist-upgrade sudo apt-get install -y rpi-chromium-mods sudo apt-get install -y python-sense-emu python3-sense-emu python-sense-emu-doc
remmina & VNC server
@pi change server params: unix → vnc user, add admin user
sshfs automount
sudo apt-get install sshfs autofs
added to
- /etc/auto.master
/sshfs /etc/auto.sshfs uid=1000,gid=1000,--timeout=30,--ghost
created
- /etc/auto.sshfs
pendejo -fstype=fuse,rw,nodev,nonempty,noatime,allow_other,max_read=65536 :sshfs\#user@server\:/path/to/
created public/private key on pi with no password, and copied private to root@pi
ssh-keygen -t rsa
added public key to user@server:.ssh/authorized_keys2
sudo systemctl restart autofs
debugging:
sudo service autofs stop sudo automount -f -v
usb webcam
install motion
sudo apt-get install motion
edit /etc/motion/motion.conf
:
daemon on output_pictures off ffmpeg_output_movies off stream_quality 75 stream_localhost off stream_authentication username:password webcontrol_authentication username:password
redirect port 24/8080 26/8081
sudo systemctl restart motion sudo systemctl status motion
various
sudo apt-get install iotop sudo apt-get install iftop sudo apt-get install sysstat
links/projects
- make pi a tor router https://hackaday.io/project/4223/instructions
- sensors T, %h, press https://www.sparkfun.com/products/13676