]> apps.delaporte.us Git - dotfiles.git/blob - cheatsheets/raspberry-pi.md
Some ideas for later.
[dotfiles.git] / cheatsheets / raspberry-pi.md
1
2 ## Remote Access
3
4 Under Preferences
5
6 + Change Password
7 + Under Interfaces - Enable SSH and VNC
8
9 On a Windows computer:
10
11 ```powershell
12 choco install vnc-viewer
13 ```
14
15 VNC remote host will be `raspberrypi.local`.
16 User is `pi`. Password is whatever you set in the step above.
17
18 ## Overclock
19
20 Watch your speed with one of these commands:
21 ```bash
22 cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_cur_freq
23 vcgencmd measure_clock arm
24 watch -n 1 vcgencmd measure_clock arm
25 ```
26
27 To edit the overclock setting:
28 ```bash
29 sudo vi /boot/config.txt
30 ```
31
32 ```ini
33 # uncomment to overclock the arm. 700 MHz is the default.
34 over_voltage=6
35 arm_freq=2000
36 ```
37
38 Reboot to apply changes.
39
40 ```bash
41 sudo reboot
42 ```
43
44 [Explanation of availabe over-clock settings](https://haydenjames.io/raspberry-pi-3-overclock/)
45
46 ## Set up for TV Remote Control
47
48 ### TODO: Install XMBC / Kodi
49
50 Once called XBox Media Center.
51
52 Maybe install Kodi or [OSMC](https://osmc.tv/download/)
53
54 Simplest is to image the whole install...
55 https://www.raspberrypi.org/documentation/usage/kodi/README.md
56
57 ```powershell
58 sudo apt install kodi
59 ```
60
61 ### TODO: Commands from TV remote into Pi
62
63 HDMI can send TV remote commands to the Pi via [CEC](https://github.com/Pulse-Eight).
64
65 List connected devices:
66
67 ```powershell
68 cec-client -l
69 ```
70
71 List available commands
72 ```powershell
73 echo h | cec-client -s -d 1
74 ```
75
76
77
78 [Reference](https://ownyourbits.com/2017/02/02/control-your-raspberry-pi-with-your-tv-remote/)