This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| raspberry_pi_kiosk [2020/01/23 20:30] – herwarth | raspberry_pi_kiosk [2020/05/16 18:44] (current) – herwarth | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| ===== Installation ===== | ===== Installation ===== | ||
| ==== Raspbian Buster Lite ==== | ==== Raspbian Buster Lite ==== | ||
| - | Download Raspbian | + | Download Raspbian |
| Use Etcher or whatever to install the downloaded zip on a SD card. | Use Etcher or whatever to install the downloaded zip on a SD card. | ||
| Line 15: | Line 15: | ||
| systemctl enable ssh.service | systemctl enable ssh.service | ||
| systemctl start ssh.service | systemctl start ssh.service | ||
| + | </ | ||
| + | <code - / | ||
| + | [Time] | ||
| + | NTP=172.16.0.254 | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | # | ||
| </ | </ | ||
| ==== Making the system a read-only system ==== | ==== Making the system a read-only system ==== | ||
| Line 33: | Line 41: | ||
| Edit fstab so it looks something like this. Your PARTUUIDs are different! | Edit fstab so it looks something like this. Your PARTUUIDs are different! | ||
| <code - / | <code - / | ||
| - | proc /proc | + | proc /proc proc defaults |
| - | PARTUUID=6c586e13-01 | + | PARTUUID=6c586e13-01 |
| - | PARTUUID=6c586e13-02 | + | PARTUUID=6c586e13-02 |
| - | tmpfs / | + | tmpfs / |
| - | tmpfs / | + | tmpfs / |
| - | tmpfs / | + | tmpfs / |
| - | tmpfs / | + | tmpfs / |
| - | tmpfs / | + | tmpfs / |
| - | tmpfs / | + | tmpfs / |
| + | tmpfs / | ||
| + | tmpfs / | ||
| </ | </ | ||
| < | < | ||
| Line 67: | Line 77: | ||
| TimeoutSec=30s | TimeoutSec=30s | ||
| </ | </ | ||
| - | Because /var/spool is also a tmpfs filesystem, we need to disable that directory to become mask 0755. Comment | + | Because /var/spool is also a tmpfs filesystem, we need to disable that directory to become mask 0755. Copy the following file |
| - | <code - /usr/lib/ | + | < |
| + | cp / | ||
| + | </ | ||
| + | comment | ||
| + | <code - /etc/ | ||
| . | . | ||
| . | . | ||
| Line 75: | Line 89: | ||
| </ | </ | ||
| ==== Disable ugly boot splash and rotate screen ==== | ==== Disable ugly boot splash and rotate screen ==== | ||
| - | I need to rotate the screen, because I use the monitor in portrait mode. 0=normal, 1=90 degrees CW, 2=180 degrees CW, 3=90 degrees CCW, and 4=upside down | + | I need to rotate the screen, because I use the monitor in portrait mode. 0=normal, 1=90 degrees CW, 2=180 degrees CW, 3=90 degrees CCW, and 4=upside down. Add the following to the end of the file: |
| <code - / | <code - / | ||
| + | . | ||
| + | . | ||
| + | . | ||
| display_rotate=3 | display_rotate=3 | ||
| disable_splash=1 | disable_splash=1 | ||
| Line 90: | Line 107: | ||
| PS1=' | PS1=' | ||
| } | } | ||
| + | alias temp='/ | ||
| alias ro=' | alias ro=' | ||
| alias rw=' | alias rw=' | ||
| Line 110: | Line 128: | ||
| < | < | ||
| apt-get -y install --no-install-recommends xserver-xorg xinit xterm x11-xserver-utils | apt-get -y install --no-install-recommends xserver-xorg xinit xterm x11-xserver-utils | ||
| - | apt-get -y install --no-install-recommends | + | apt-get -y install --no-install-recommends |
| </ | </ | ||
| The pi user needs to be added to the tty group: | The pi user needs to be added to the tty group: | ||