yarn start
- start development server in http://localhost:3000yarn build
- Builds the app for production to thebuild
folder for the best performance.
- Raspberry Pi 3
- Heatsinks - (keep that CPU cooler)
- Screen - todo: defined which screen
- DC-DC converter (12v input to 5v usb) - Power Pi in the car
- Powerblock for safe power on and power off
- Download RASPBERRY PI OS LITE onto micro SD card.
- Put SD card in Raspberry Pi, connect HDMI and keyboard
- Boot Rasperry PI and login with
user: pi
andpassword: raspberry
- Run
sudo raspi-config
- Go to Localisation Options -> WLAN Country -> Select PT Portugal
- Go to System Options -> Wireless LAN -> SSID:
HOMELAN2
PASSWORD:qwerty123456
- Go to Interface Options -> Enable SSH
- Go to System Options -> Hostname -> Write
novadash
- Finish / Save and reboot
sudo reboot
- On main computer run
ssh pi@IP
andpassword: raspberry
- Run
sudo raspi-config
- Go to System Options -> Boot / Auto Login -> Console Autologin
- Go to System Options -> Network at Boot -> NO
- Save and reboot
- Update everything
sudo apt-get -y update && sudo apt-get -y upgrade ; sudo apt-get autoremove
- this will take a while - Reboot
sudo reboot
- Run
sudo apt-get install libgl1-mesa-dri
- Run
sudo raspi-config
- Go to Advanced Options -> A7: GL Driver -> GL (Fake KMS)
- Reboot
sudo reboot
The bare minimum we need are X server and window manager. Let’s install just that:
- Run
sudo apt-get install --no-install-recommends xserver-xorg x11-xserver-utils xinit openbox
- Run
sudo apt-get install --no-install-recommends chromium-browser
openbox is now installed; let's make it so our window's manager starts up chromium (auto start stuff comes later)
- Edit file
sudo nano /etc/xdg/openbox/autostart
# Disable any form of screen saver / screen blanking / power management
xset s off
xset s noblank
xset -dpms
# Allow quitting the X server with CTRL-ATL-Backspace
setxkbmap -option terminate:ctrl_alt_bksp
# Start Chromium in kiosk mode
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/' ~/.config/chromium/'Local State'
sed -i 's/"exited_cleanly":false/"exited_cleanly":true/; s/"exit_type":"[^"]\+"/"exit_type":"Normal"/' ~/.config/chromium/Default/Preferences
chromium-browser --kiosk --disable-overscroll-edge-effect --disable-sync --disable-suggestions-ui --disable-signin-promo --mmal-frame-copy --mmal-frame-buffers=4 --ignore-gpu-blacklist --enable-native-gpu-memory-buffers --start-maximized --disable-infobars 'http://localhost:8080'
- Example only: To start chromium now: type
startx -- -nocursor
- Example only: To quit chromium/x server - hit
Ctrl-Alt-Backspace
- Edit file
sudo nano /home/pi/.bash_profile
cd ~/nova-dashboard && bash init.sh
- Run
sudo nano /boot/config.txt
-> find, uncomment and set:
framebuffer_width=800
framebuffer_width-480
- Run
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
- Run
sudo apt-get install -y nodejs
- Run
sudo npm install --global yarn
- Run
sudo apt-get install git
- Run
git clone https://github.com/nunoxavier/nova-dashboard.git
- Run
cd nova-dashboard
- Run
chmod +x init.sh
- Run
yarn install --production=true