-
Notifications
You must be signed in to change notification settings - Fork 0
1. Raspberry Pi Configuration
Brian Mikinski edited this page Feb 13, 2019
·
5 revisions
-
Update Raspberry Pi
- Let's update the Pi just for good measures. Run the following from a terminal window -
-
pi@raspberrypi:~ $ sudo apt-get update
-
pi@raspberrypi:~ $ sudo apt-get upgrade
- Configure SSH (if you want to be able to login to your pi remotely - coming soon)
- Configure VNC (configure VNC to remote desktop into your Pi - coming soon)
- Check your nodejs version. I found that dotnet build would not work for templates that needed node (angular, react, etc) because my node version was outdated
-
pi@raspberrypi:~ $ sudo nodejs -v
- Ideally our previous sudo apt-get upgrade command would have updated node for us but I found this to not be the case. My Pi kept picking up legacy versions of nodejs. If you have a 4.xx version of node I suggest you upgrade using the following stack overflow post.
-
Install .Net Core Pre-requisites
- I've seen posts where people installed .Net Core on their pi without any of the following requirements but my pi has always needed most of these to be installed.
-
pi@raspberrypi:~ $ sudo apt-get install htop wpasupplicant libunwind8 libunwind8-dev gettext libicu-dev liblttng-ust-dev libcurl4-openssl-dev libssl-dev uuid-dev
-
Install .Net 2.1 sdk
- create a dotnet directory in opt to house your dotnet core installation
-
pi@raspberrypi:~ $ sudo mkdir /opt/dotnet
- Download the arm sdk. On your Pi, go to https://www.microsoft.com/net/download/linux and download the arm32-sdk bits
- Locate your the file you just downloaded (dotnet-sdk-2.1.300-linux-arm.tar.gz) and run the following command to unpackage the tar
-
pi@raspberrypi:~ $ sudo tar -xvf dotnet-sdk-2.1.300-linux-arm.tar.gz -C /opt/dotnet
- Create a symbolic link so you can run "dotnet -command" from anywhere on your terminal
-
pi@raspberrypi:~ $ sudo ln -s /opt/dotnet/dotnet /usr/local/bin
- Check to see if your installation worked by running the following commands -
pi@raspberrypi:~ $ dotnet --info
- Additionally, if you get some errors running dotnet commands, you can check if you are missing any pre-requisites
-
pi@raspberrypi:~ $ cd /opt/dotnet/ pi@raspberrypi:~/opt/dotnet/ $ ldd dotnet
- Any object that is not found means the dependency needs to be installed likely using apt-get
- Run this command to further check for missing dependencies and be very sure you're not missing anything
-
pi@raspberrypi:~ $ cd /opt/dotnet/Microsoft.NETCore.App/2.1.0 Pi@raspberrypi:~/opt/dotnet/shared/Microsoft.NETCore.App/2.1.0 $ ldd *.so pi@raspberrypi:~/opt/dotnet/shared/Microsoft.NETCore.App/2.1.0 $ ldd *.so|grep -i "not found"
- SQLite Setup
- Install SQLite on your raspberry pi
-
pi@raspberrypi:~ $ sudo apt install sqlite
- Thanks to the following people whose previous work helped me piece this all together
- Guy, Robot
- Jeremy Morgan
- Scott Hanselman:
- Dave the Engineer 👍
- Digital Ocean
- Gamefromscratch