]> apps.delaporte.us Git - dotfiles.git/blob - doc/raspberry-pi.md
Organize old Windows scripts
[dotfiles.git] / doc / 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 Use
47
48 ### Change Scale
49
50 + Right-Click
51 + Desktop Preferences
52 + System
53 + Font: 22+
54 + Mouse Cursor: Large
55
56
57 ## Set up for TV Remote Control
58
59 ### TODO: Install XMBC / Kodi
60
61 Once called XBox Media Center.
62
63 Maybe install Kodi or [OSMC](https://osmc.tv/download/)
64
65 Simplest is to image the whole install...
66 https://www.raspberrypi.org/documentation/usage/kodi/README.md
67
68 ```powershell
69 sudo apt install kodi
70 ```
71
72 ### TODO: Commands from TV remote into Pi
73
74 HDMI can send TV remote commands to the Pi via [CEC](https://github.com/Pulse-Eight).
75
76 List connected devices:
77
78 ```powershell
79 cec-client -l
80 ```
81
82 List available commands
83 ```powershell
84 echo h | cec-client -s -d 1
85 ```
86
87
88
89 [Reference](https://ownyourbits.com/2017/02/02/control-your-raspberry-pi-with-your-tv-remote/)