This project contains instructions and Makefile for setting up a portable Astrophotography computer.
It can be used for setting up different computers: Orange Pi 5, Raspberry Pi, Libre Computers Le Potato and a regular x86 PC.
At this point in time (March 2023) it is strongly recommended using Orange Pi 5: it costs less than Raspberry Pi 4, has 4GB of memory in minimal configuration and much faster CPU.
Why use makefile as opposed to shell script? Because make stops execution in case of failures and can be invoked for the whole installation or for a part of it.
Why not use Astroberry? Because you want to know what exactly is intalled or you want to customize installation or you just don't trust downloading random images from the internet
This script is better suited for users, who have experience with Linux and want to build a system from scratch, utilizing official images from Ubuntu. In case if you don't have experience with Linux, it is suggested to install Astroberry image or buy StellarMate image.
- Installs most commonly used Astrophotography software:
- INDI
- Kstars
- PHD2
- CCDCiel
- PHD Log Viewer
- Skychart
- Astrometry with sextractor
- ASTAP plate solver, which is much faster than astrometry
- Sets up Wireless Access Point. Default name is RPI and password is password but can be changed in the script. Once connected to WAP, IP address of PI is 10.0.0.1
- Sets up vnc to be started automatically
- Configures screen to be 1920x1080 for headless operation
- Miscellaneous software
- Syncthing for syncing images into processing PC
- Arduino IDE
- Fully headless operation
- Install Jammy (22.04) Xfce Desktop image from Orange Pi website
- Power on the Pi, once in Xfce desktop, open terminal and run the commands as below (password is orangepi on the 1st line).
sudo bash
adduser YOUR_USERNAME
adduser YOUR_USERNAME sudo
su YOUR_USERNAME
cd
git clone https://github.com/avarakin/AstroPiMaker4.git
cd AstroPiMaker4
make opi5
- Reboot
- Connect to Pi using VNC client, keep in mind that you have to use display :1, e.g. enter orangepi5.lan:1 as server address.
Notes
- Alternatively, you can install everything headlessly: just ssh into the Pi:
ssh orangepi@orangepi5.lan
- During update, there will be a question asked about what to do about configuration file '/etc/issue'. You can just hit enter on it, and it will keep the existing file, or you can enter 'Y' so the file gets updates with the content from the repository so in future you will never have to deal with it
- Downlaod 32 bit image of 20.04 from page:
https://ubuntu.com/download/raspberry-pi
It looks like they use same image for RPi3 and RPi4, so same image can be used for RPi3
-
Unpack and burn image into SD Card.
-
Connect to Pi
Connect Ethernet cable, put the card into RPI and boot.
Once green networking LED starts blinking, you can try to find the RPI on the network using nmap. Replace 192.168.1.0 by your network's subnet:
nmap -p 22 --open -sV 192.168.1.0/24
You can also find IP address of your RPi in your router admin page, look for DHCP leases. Of course, you can also just add connect mouse, keyboard and screen and find the IP using command:
ip addr
Once you identify IP of your PI, login into it using ssh, with user/password : ubuntu/ubuntu, e.g.:
ssh ubuntu@192.168.1.100
It will ask to change the password.
- Install the software
Run the following commands. At some point installer will ask to select Display Manager. You need to chose lightdm.
sudo apt update
sudo apt install -y git make
git clone https://github.com/avarakin/AstroPiMaker4.git
cd AstroPiMaker4
make
This will take an hour or so. It may ask some questions, so monitor the process. You will need to reboot Pi after that. Once Pi is up, you should be able to see it as RPI in the list of available Access Points. Password is "password" but can be changed in the script. Once connected to WAP, IP address of PI is 10.0.0.1
- Reboot the system.
- Connect to it using VNC
- Installer creates a startup script indi.sh in home directory which you need to edit to include your drivers
- In case if you run Gnome, you can change the look and feel of desktop to be more conventional by opening Gnome Tweaks tool and enabling "Dash to Panel" and "System Monitor" extensions
Install any flavor of Ubuntu you like and then install script and rest of software:
sudo apt update
sudo apt install -y git make
git clone https://github.com/avarakin/AstroPiMaker4.git
cd AstroPiMaker4
make pc
Libre Computer Le Potato is a low cost ($35 as of January 2023) Raspberry Pi clone, which is widely available. It does have some shortcomings comparing to Pi 4:
- Lower speed, e.g. it takes 30s to plate solve an image vs 22s on RPi4
- It only has USB2 and no USB3, but performance degradation was not noticeable even for 26MB IMX571 mono chip
- Network is only 100MB and not 1GB, but performance degradation was not noticeable while using VNC
- Even though Wifi is missing, it can be added using a USB dongle, which also has an advantage of having an external antenna
- Missing Bluetooth is not a big loss for this use case
- Even thouhg this computer comes with only 2GB or RAM, it can still work with 26MB IMX571 mono chip by setting up swap space. No performance degradation was observed due to swapping
Even though you can use desktop version of Le Potato image as a starting point, it it not recommended because Gnome based Ubuntu desktop is resource intensive and may cause periodic freezing. Furthermore, Ubuntu desktop version comes with software which is redundant for the given use case. The instructions assume that you use base Ubuntu image of Le Potato as a starting point. The script installs Mate desktop which is very light weight.
- Download base version of Ubuntu: https://distro.libre.computer/ci/ubuntu/22.04/ubuntu-22.04.1-preinstalled-server-arm64%2Baml-s905x-cc.img.xz
- Burn it on SD card, insert it into the board and power it up
- Once computer is up, you need to create your user:
adduser YOUR_USERNAME
apt install sudo
adduser YOUR_USERNAME sudo
- Install base software, script and run installer
su YOUR_USERNAME
sudo apt update
sudo apt upgrade
sudo apt install -y git make dialog
git clone https://github.com/avarakin/AstroPiMaker4.git
cd AstroPiMaker4
make le_potato
- Change hostname in /etc/hostname