Hi, there is a nice script made by Robert Lancaster: github.com/rlancaste/AstroPi3/blob/master/setupUbuntuSBC.sh
You can run it as it is or study its content, and run only those commands you are interested in.

Read More...