You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+6-6
Original file line number
Diff line number
Diff line change
@@ -44,10 +44,10 @@ Note: You can user `${SERIAL}` to get Pi's serial number into URL.
44
44
### Automatic WiFi setup
45
45
46
46
1. After flashing remount your SD card.
47
-
2. Create a wpa_supplicant.conf in your SD cards boot folder
47
+
2. Create a `wpa_supplicant.conf` in your SD cards boot folder
48
48
3. Copy the [sample wpa_supplicant.conf](#sample-wpasupplicantconf) file into the boot folder on the SD card.
49
49
4. Replace `WiFi-SSID` and `WiFi-PASSWORD` with your WiFi configuration.
50
-
5.*Optional*: Set the country code to your country code e.g. DE.
50
+
5. Optional: Set the country code to your country code e.g. `DE`.
51
51
52
52
#### Sample wpa_supplicant.conf
53
53
```
@@ -56,15 +56,15 @@ update_config=1
56
56
country=US
57
57
58
58
network={
59
-
ssid="WiFi-SSID"
60
-
psk="WiFi-PASSWORD"
61
-
key_mgmt=WPA-PSK
59
+
ssid="WiFi-SSID"
60
+
psk="WiFi-PASSWORD"
61
+
key_mgmt=WPA-PSK
62
62
}
63
63
```
64
64
65
65
## Hardware
66
66
67
-
Works with [Raspberry Pi versions 1, 2 & 3](https://www.raspberrypi.org/products/). The 3 series is recommended, as it's the most powerful, and comes with built-in WiFi (though both [official](https://www.raspberrypi.org/products/raspberry-pi-usb-wifi-dongle/) and [off-the-shelf](https://elinux.org/RPi_USB_Wi-Fi_Adapters) USB WiFi dongles can work equally well).
67
+
Works with [all Raspberry Pi versions](https://www.raspberrypi.org/products/). Versions 3 and 4 are recommended, though, since the smaller ones can be a bit underpowered for rendering complex dashboards. The 3 and 4 also come with built-in WiFi, which is convenient (though both [official](https://www.raspberrypi.org/products/raspberry-pi-usb-wifi-dongle/) and [off-the-shelf](https://elinux.org/RPi_USB_Wi-Fi_Adapters) USB WiFi dongles can work equally well).
68
68
69
69
Make sure you have a [compatible 4+ GB SD card](http://elinux.org/RPi_SD_cards). In general, any Class 10 card will work, as they're fast enough and of high enough quality.
Copy file name to clipboardexpand all lines: docs/first-boot.md
+10-1
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,13 @@ Finally, further tweaks can be made by changing the [Chromium command line switc
50
50
51
51
Adding these options will allow you to mix secure (i.e. HTTPS) origins with insecure ones (you need to specifically white-list them). Sometimes you need stuff like this to pull together all the bits and pieces of your dashboard from different origins. We're not saying you should. But you can.
52
52
53
+
## Controlling the kiosk remotely
54
+
55
+
Sometimes you need to do basic remote adjustments, like changing the URL that's displayed.
56
+
57
+
- If you need a lot of flexibility, [you can install VNC](https://github.com/futurice/chilipie-kiosk/issues/38#issuecomment-442031274) to get a full remote desktop
58
+
- If you just need to set the URL, you can SSH over (not enabled by default; see above), and e.g. [run something like](https://github.com/futurice/chilipie-kiosk/issues/71#issuecomment-522035239): `export DISPLAY=:0; xdotool key F11 sleep 1 key ctrl+l sleep 1 type 'https://google.com'; xdotool sleep 1 key KP_Enter; xdotool key F11`. Very crude. Very effective.
59
+
53
60
## Username and password
54
61
55
62
If you need to login to a shell, the default username and password are `pi` and `raspberry`, as is tradition for Raspberry Pi. The `pi` user also has `sudo` access.
@@ -69,13 +76,15 @@ Press `Ctrl + Alt + F3` to get to a virtual terminal, and use your favorite edit
69
76
70
77
Save the file, and `sudo reboot`.
71
78
79
+
Note that on the Pi 4, you'll need to disable the `dtoverlay=vc4-fkms-v3d` line in `/boot/config.txt` for this to work. But then that [may cause other issues](https://www.reddit.com/r/raspberry_pi/comments/dw1376/dtoverlayvc4fkmsv3d_causes_display_to_shift_right/). This is hopefully fixed in a future Raspbian release.
80
+
72
81
Exotic screens may require a bit more fiddling. See issues [#41](https://github.com/futurice/chilipie-kiosk/issues/41) and [#58](https://github.com/futurice/chilipie-kiosk/issues/58) for ideas.
73
82
74
83
## Replacing the boot graphics
75
84
76
85
The image that's displayed while the kiosk is starting can be changed by just replacing `~/background.png`.
77
86
78
-
To change the default chilipie-kiosk boot graphics to a nice doge, for example, try `wget -O background.png bit.ly/2w1P4Il`.
87
+
To change the default chilipie-kiosk boot graphics to a [nice Windoge one](https://mcdn.wallpapersafari.com/medium/93/77/8xKLeg.png), for example, try `wget -O background.png https://bit.ly/2Q4GF1t`.
# exit on error; treat unset variables as errors; exit on errors in piped commands
4
+
set -euo pipefail
5
+
6
+
# Ensure we operate from consistent pwd for the rest of the script
7
+
DIR="$(cd"$( dirname "${BASH_SOURCE[0]}")">/dev/null 2>&1&&pwd)"# Figure out the ABSOLUTE PATH of this script without relying on the realpath command, which may not always be available
8
+
cd"$DIR"
9
+
10
+
if [ "$OSTYPE"=="linux-gnu" ];then
11
+
MOUNTED_BOOT_VOLUME="/media/$(whoami)/boot"# i.e. under which name is the SD card mounted under /media in Linux (Ubuntu)
12
+
elif [[ "$OSTYPE"== darwin* ]];then
13
+
MOUNTED_BOOT_VOLUME="/Volumes/boot"# i.e. under which name is the SD card mounted under /Volumes on macOS
LOCALE="en_US.UTF-8 UTF-8"# or e.g. "fi_FI.UTF-8 UTF-8" for Finland
26
+
LANGUAGE="en_US.UTF-8"# should match above
10
27
KEYBOARD="us"# or e.g. "fi" for Finnish
11
28
TIMEZONE="Etc/UTC"# or e.g. "Europe/Helsinki"; see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
12
29
30
+
functionecho-bold {
31
+
echo -e "$(tput -Txterm-256color bold)$1$(tput -Txterm-256color sgr 0)"# https://unix.stackexchange.com/a/269085; the -T arg accounts for $ENV not being set
# We want to do this as early as possible, so perl et al won't complain about misconfigured locales for the rest of the image prep
169
+
ssh "echo $LOCALE | sudo tee /etc/locale.gen"
170
+
ssh "sudo locale-gen"
171
+
ssh "echo -e \"LANGUAGE=$LANGUAGE\nLC_ALL=$LANGUAGE\" | sudo tee /etc/environment"
172
+
107
173
working "Setting hostname"
108
174
# We want to do this right before reboot, so we don't get a lot of unnecessary complaints about "sudo: unable to resolve host chilipie-kiosk" (https://askubuntu.com/a/59517)
working "Shortening message-of-the-day for logins"
141
-
ssh "sudo rm /etc/profile.d/sshpwd.sh"
142
-
ssh "echo | sudo tee /etc/motd"
213
+
working "Silencing console logins"# this is to avoid a brief flash of the console login before X comes up
214
+
ssh "sudo rm /etc/profile.d/sshpwd.sh /etc/profile.d/wifi-check.sh"# remove warnings about default password and WiFi country (https://raspberrypi.stackexchange.com/a/105234)
0 commit comments