Tuesday, 7 February 2017

Remotely controlling the Raspberry Pi

The advantage of connecting the Pi is that it can supply the power for the Pi and it doesn’t require the keyboard, mouse or display attached to the Pi separately.
Step by step procedure is as follows:
You can enable/disable the serial console with either editing /boot/config.txt or raspi-config (which will edit /boot/config.txt for you)

Option 1. Enabling in /boot/config.txt

You can pop your SD card into a computer and edit config.txt with a text editor like SimpleText, WordPad or whatnot. You can also edit on a pi with sudo nano /boot/config.txt
At the bottom, last line, add enable_uart=1 on it's own line
learn_raspberry_pi_enableuart.png

Option 2. Enabling via Raspi-Config

Using a monitor and keyboard, log into the shell and run
sudo raspi-config
go down to Advanced Options
learn_raspberry_pi_advanced_options.png
Hit enter and then go down to Serial
learn_raspberry_pi_seria.png
Select Yes
learn_raspberry_pi_yes.png
It should now be enabled
learn_raspberry_pi_enab.png
Hit return then select Finish
When it asks you to reboot, go to Yes and hit return

No comments:

Post a Comment