-
Notifications
You must be signed in to change notification settings - Fork 1
Managing RP3s Remotely
This project required that the Raspberry Pi Setup(s) be managed remotely. The ability to deploy each setup independently of any one computer and the ability to SSH into each of the devices was essential in the success of this project. To accomplish this task we utilized two additional services: TMUX & Remot3.it
Remot3.it allows you to ssh into any device that is connected to your dashboard.
Tmux allows you to run a detached console session so that you can run the sensor code when you leave the immediate area that the code needs to run.
Step 1: get ip address of raspberry pi using $ ifconfig
Step 2: enable ssh on raspberry pi with $sudo raspi-config
Step 3: ssh into raspberry pi ( $ ssh user@ipaddress)
Step 4: enter password for your raspberry pi
Step 5: run $ sudo apt-get update
Step 6: run $ sudo apt-get install tmux
You now have tmux installed and it is ready to use.
To run tmux
run $ tmux
To detach a session
run Ctrl-b d
To reattch a session
run $ tmux attach -t [session name]
To List sessiosn running
run $ tmux List-Sessions