Difference between revisions of "Astroberry Server"
Astroberry (talk | contribs) |
Astroberry (talk | contribs) (Marked this version for translation) |
||
Line 1: | Line 1: | ||
<translate> | <translate> | ||
+ | <!--T:1--> | ||
'''Astroberry Server''' is ready to use system for [https://www.raspberrypi.org/ Raspberry Pi] for controlling astronomy equipment. | '''Astroberry Server''' is ready to use system for [https://www.raspberrypi.org/ Raspberry Pi] for controlling astronomy equipment. | ||
+ | <!--T:2--> | ||
It runs on single board computer and is powered by Linux operating system. Astroberry lets you remotely control your telescope, focuser, camera and many other devices used in astronomy. It can manage your equipment located in the backyard or hundreds kilometers away. The system can be accessed as a remote desktop via a web browser or VNC client or it can act as INDI server accessible by INDI clients such as KStars, Skycharts / Cartes du Ciel or Stellarium. Astroberry Server is based on open-source software, developed and improved by astrofans around the globe. | It runs on single board computer and is powered by Linux operating system. Astroberry lets you remotely control your telescope, focuser, camera and many other devices used in astronomy. It can manage your equipment located in the backyard or hundreds kilometers away. The system can be accessed as a remote desktop via a web browser or VNC client or it can act as INDI server accessible by INDI clients such as KStars, Skycharts / Cartes du Ciel or Stellarium. Astroberry Server is based on open-source software, developed and improved by astrofans around the globe. | ||
+ | <!--T:3--> | ||
Astroberry Server project site is located at [https://www.astroberry.io/ www.astroberry.io] | Astroberry Server project site is located at [https://www.astroberry.io/ www.astroberry.io] | ||
− | == Features == | + | == Features == <!--T:4--> |
* Support for Raspberry Pi 3 and 4, Pi Zero and... probably any other Raspberry Pi version released so far | * Support for Raspberry Pi 3 and 4, Pi Zero and... probably any other Raspberry Pi version released so far | ||
* Official Raspbian Buster Desktop by Raspberry Pi Foundation | * Official Raspbian Buster Desktop by Raspberry Pi Foundation | ||
Line 32: | Line 35: | ||
* Support for raspi-config (console) and rc_gui (graphical UI) for easy configuration of Raspberry Pi options | * Support for raspi-config (console) and rc_gui (graphical UI) for easy configuration of Raspberry Pi options | ||
− | == System Requirements == | + | == System Requirements == <!--T:5--> |
* Raspberry Pi 4 (recommended) or Raspberry Pi 3 (minimal) | * Raspberry Pi 4 (recommended) or Raspberry Pi 3 (minimal) | ||
* microSD card 32GB (recommended) or 16BG (minimal) | * microSD card 32GB (recommended) or 16BG (minimal) | ||
− | == Quick Start == | + | == Quick Start == <!--T:6--> |
=== Image Verification === | === Image Verification === | ||
You can verify downloaded file with any checksum software available for your system or by running below commands in your terminal: | You can verify downloaded file with any checksum software available for your system or by running below commands in your terminal: | ||
+ | <!--T:7--> | ||
<code>sha256sum astroberry-server_2.0.1.img.zip</code> | <code>sha256sum astroberry-server_2.0.1.img.zip</code> | ||
+ | <!--T:8--> | ||
Make sure that the output of the command is '''098d986f9e31f209e2bf58321977d3d7232d63d2b5981dce5f23036c6ef0d141'''. | Make sure that the output of the command is '''098d986f9e31f209e2bf58321977d3d7232d63d2b5981dce5f23036c6ef0d141'''. | ||
+ | <!--T:9--> | ||
If it's not, the file is corrupted and must be downloaded again. If you download the file again and the checksum is incorrect, please let us know. | If it's not, the file is corrupted and must be downloaded again. If you download the file again and the checksum is incorrect, please let us know. | ||
− | === Installation === | + | === Installation === <!--T:10--> |
Basic installation of the system requires [https://www.astroberry.io/docs/index.php?title=Astroberry_Server#Flashing_microSD_card flashing your microSD] card with system image file. It's not the same as copying the file to microSD card. If you just copy downloaded file to your microSD card it's not going to work. | Basic installation of the system requires [https://www.astroberry.io/docs/index.php?title=Astroberry_Server#Flashing_microSD_card flashing your microSD] card with system image file. It's not the same as copying the file to microSD card. If you just copy downloaded file to your microSD card it's not going to work. | ||
+ | <!--T:11--> | ||
You can [https://www.astroberry.io/docs/index.php?title=Astroberry_Server#Flashing_microSD_card flash your microSD] card (minimum 16GB required) using [https://www.balena.io/etcher/ etcher.io] or running below commands in your terminal: | You can [https://www.astroberry.io/docs/index.php?title=Astroberry_Server#Flashing_microSD_card flash your microSD] card (minimum 16GB required) using [https://www.balena.io/etcher/ etcher.io] or running below commands in your terminal: | ||
unzip astroberry-server_2.0.1.img.zip | unzip astroberry-server_2.0.1.img.zip | ||
Line 54: | Line 61: | ||
'''Note: Replace sdX with your microSD card identifier. Make sure it is correct before running the above command!''' | '''Note: Replace sdX with your microSD card identifier. Make sure it is correct before running the above command!''' | ||
+ | <!--T:12--> | ||
The process takes some time and you need to be patient. If you abort the flashing process your system is not going to boot at all. | The process takes some time and you need to be patient. If you abort the flashing process your system is not going to boot at all. | ||
− | === First Boot === | + | === First Boot === <!--T:13--> |
After the first boot, search for 'astroberry' wireless hotspot and connect your PC to it using 'astroberry' for password. Point your browser to https://astroberry.local or https://10.42.0.1 to access Astroberry Server. For the Internet access connect your Astroberry to your home wireless network. Right-click top bar Wi-Fi icon and edit Wireless connection by entering your home network SSID and password. While connected to the Internet you can update your system by running below commands in your terminal: | After the first boot, search for 'astroberry' wireless hotspot and connect your PC to it using 'astroberry' for password. Point your browser to https://astroberry.local or https://10.42.0.1 to access Astroberry Server. For the Internet access connect your Astroberry to your home wireless network. Right-click top bar Wi-Fi icon and edit Wireless connection by entering your home network SSID and password. While connected to the Internet you can update your system by running below commands in your terminal: | ||
<code> sudo apt update && sudo apt upgrade && sudo apt dist-upgrade</code> | <code> sudo apt update && sudo apt upgrade && sudo apt dist-upgrade</code> | ||
− | == Installation == | + | == Installation == <!--T:14--> |
=== Easy installation === | === Easy installation === | ||
See [[#Quick Start]] section | See [[#Quick Start]] section | ||
− | === Advanced installation === | + | === Advanced installation === <!--T:15--> |
You can install Astroberry Server packages on top of official [https://www.raspberrypi.org/downloads/raspbian/ Raspbian Buster with desktop] system. This approach is not recommended for beginners. It '''does not''' provide all Astroberry Server features available in precooked image and you have to configure your system on your own, which requires advanced understanding of linux system. It's time consuming but you keep full control over the process. | You can install Astroberry Server packages on top of official [https://www.raspberrypi.org/downloads/raspbian/ Raspbian Buster with desktop] system. This approach is not recommended for beginners. It '''does not''' provide all Astroberry Server features available in precooked image and you have to configure your system on your own, which requires advanced understanding of linux system. It's time consuming but you keep full control over the process. | ||
+ | <!--T:16--> | ||
Download official [https://www.raspberrypi.org/downloads/raspbian/ Raspbian Buster with desktop] image and [https://www.astroberry.io/docs/index.php?title=Astroberry_Server#Flashing_microSD_card flash your microSD] card with it. Connect keyboard, mouse and HDMI display to your Raspberry Pi, setup your system with the official first boot wizard and run the following commands in your terminal: | Download official [https://www.raspberrypi.org/downloads/raspbian/ Raspbian Buster with desktop] image and [https://www.astroberry.io/docs/index.php?title=Astroberry_Server#Flashing_microSD_card flash your microSD] card with it. Connect keyboard, mouse and HDMI display to your Raspberry Pi, setup your system with the official first boot wizard and run the following commands in your terminal: | ||
wget -O - https://www.astroberry.io/repo/key | sudo apt-key add - | wget -O - https://www.astroberry.io/repo/key | sudo apt-key add - | ||
Line 73: | Line 82: | ||
sudo apt upgrade | sudo apt upgrade | ||
+ | <!--T:17--> | ||
At this point you can choose to install all Astroberry packages at once by running <code>sudo apt install astroberry-server-full</code> or you can install only selected packages. | At this point you can choose to install all Astroberry packages at once by running <code>sudo apt install astroberry-server-full</code> or you can install only selected packages. | ||
+ | <!--T:18--> | ||
Packages installed by astroberry-server-full include: | Packages installed by astroberry-server-full include: | ||
* astroberry-server-wui | * astroberry-server-wui | ||
Line 95: | Line 106: | ||
* indiwebmanagerapp | * indiwebmanagerapp | ||
− | == Configuration == | + | == Configuration == <!--T:19--> |
=== Setting time and date === | === Setting time and date === | ||
Raspberry Pi does not come with real time clock (RTC), which remembers time and date between restarts. As the result it does not know what time and date is just after start. To overcome this limitation, it synchronizes time and date from the Internet. This can obviously work only if it has Internet access. Otherwise your system will think it is in the 1st of January 1970. | Raspberry Pi does not come with real time clock (RTC), which remembers time and date between restarts. As the result it does not know what time and date is just after start. To overcome this limitation, it synchronizes time and date from the Internet. This can obviously work only if it has Internet access. Otherwise your system will think it is in the 1st of January 1970. | ||
+ | <!--T:20--> | ||
There are a few ways to ensure that you system is set to proper time and date. | There are a few ways to ensure that you system is set to proper time and date. | ||
− | ==== Internet connection ==== | + | ==== Internet connection ==== <!--T:21--> |
Connect Raspberry Pi to a network, which has Internet access e.g. your home network or your smartphone, using wireless tethering function, and the system will do the rest for you. | Connect Raspberry Pi to a network, which has Internet access e.g. your home network or your smartphone, using wireless tethering function, and the system will do the rest for you. | ||
If you can't have Raspberry Pi always connected to a network with access to the Internet you need to use other options. | If you can't have Raspberry Pi always connected to a network with access to the Internet you need to use other options. | ||
− | ==== RTC module ==== | + | ==== RTC module ==== <!--T:22--> |
Get a real time clock (RTC) module and connect it to GPIO. It will remember time and date between restarts. Additionally if you connect your Raspberry Pi to a network with access to the Internet, your time and date will be synchronized to minimize any difference. | Get a real time clock (RTC) module and connect it to GPIO. It will remember time and date between restarts. Additionally if you connect your Raspberry Pi to a network with access to the Internet, your time and date will be synchronized to minimize any difference. | ||
− | ==== GPS module ==== | + | ==== GPS module ==== <!--T:23--> |
Get GPS module and connect it to Raspberry Pi. You can use either USB connection (plug-and-play) or serial device connected to GPIO. GPS module will synchronize time and date with GPS satellites. Note that satellites provide UTC time and are not aware of your time zone. However if you set your timezone correctly in the system, it will be used to adjust the time received from satellites accordingly. Using GPS module gives you additional feature of setting your location, which is required by various astronomy applications. | Get GPS module and connect it to Raspberry Pi. You can use either USB connection (plug-and-play) or serial device connected to GPIO. GPS module will synchronize time and date with GPS satellites. Note that satellites provide UTC time and are not aware of your time zone. However if you set your timezone correctly in the system, it will be used to adjust the time received from satellites accordingly. Using GPS module gives you additional feature of setting your location, which is required by various astronomy applications. | ||
− | ==== Manual configuration ==== | + | ==== Manual configuration ==== <!--T:24--> |
You can always set time and date manually after each boot. It's not the most convenient way to keep system time and date accurate but it's good to know you can do it anyway. | You can always set time and date manually after each boot. It's not the most convenient way to keep system time and date accurate but it's good to know you can do it anyway. | ||
To set date to the 19th of May 2020 and time to 11:14:00 run in terminal: <code>sudo date -s "2020-05-19 11:14:00"</code> | To set date to the 19th of May 2020 and time to 11:14:00 run in terminal: <code>sudo date -s "2020-05-19 11:14:00"</code> | ||
− | === Setting geographic location === | + | === Setting geographic location === <!--T:25--> |
Setting geographic location is quite important when using Astroberry. Many applications use your location to provide you with accurate position of stars and planets. Make sure that you set your geographic location before running these applications. | Setting geographic location is quite important when using Astroberry. Many applications use your location to provide you with accurate position of stars and planets. Make sure that you set your geographic location before running these applications. | ||
− | ==== GPS device ==== | + | ==== GPS device ==== <!--T:26--> |
To provide system-wide location info Astroberry system uses GPSD service. It grabs raw data from GPS device and provides it to whole operating system and applications that need this information. | To provide system-wide location info Astroberry system uses GPSD service. It grabs raw data from GPS device and provides it to whole operating system and applications that need this information. | ||
If you use GPS device the whole system and applications can get accurate geographic location from it. When using GPS device make sure that Virtual GPS is stopped and disabled by running <code>systemctl stop virtualgps && systemctl disable virtualgps</code>. Otherwise GPSD service will simultaneously use location from two sources i.e. GPS and Virtual GPS. | If you use GPS device the whole system and applications can get accurate geographic location from it. When using GPS device make sure that Virtual GPS is stopped and disabled by running <code>systemctl stop virtualgps && systemctl disable virtualgps</code>. Otherwise GPSD service will simultaneously use location from two sources i.e. GPS and Virtual GPS. | ||
− | ==== Virtual GPS ==== | + | ==== Virtual GPS ==== <!--T:27--> |
If you don't have GPS device, Astroberry provides Virtual GPS, which uses static location configured in /etc/location.conf file. | If you don't have GPS device, Astroberry provides Virtual GPS, which uses static location configured in /etc/location.conf file. | ||
+ | <!--T:28--> | ||
You can set your location by running Preferences/Geographic Location from system menu or running <code>sudo nano /etc/location.conf</code> in console. | You can set your location by running Preferences/Geographic Location from system menu or running <code>sudo nano /etc/location.conf</code> in console. | ||
+ | <!--T:29--> | ||
After setting location in the file you need to make sure that Virtual GPS service is up and running. | After setting location in the file you need to make sure that Virtual GPS service is up and running. | ||
* Run <code>sudo systemctl status virtualgps</code> to check service status | * Run <code>sudo systemctl status virtualgps</code> to check service status | ||
Line 135: | Line 149: | ||
* Run <code>sudo systemctl restart virtualgps</code> to restart service | * Run <code>sudo systemctl restart virtualgps</code> to restart service | ||
− | ==== How applications get location data ==== | + | ==== How applications get location data ==== <!--T:30--> |
By default applications use system-wide location data from GPSD service. However there are some other options, which must be noted. | By default applications use system-wide location data from GPSD service. However there are some other options, which must be noted. | ||
* Kstars can use system-wide location data from GPSD service or it can read location from one of GPS drivers, namely [https://indilib.org/devices/auxiliary/gps.html INDI GPSD] or [https://indilib.org/devices/auxiliary/gps-nmea.html INDI GPS NMEA] | * Kstars can use system-wide location data from GPSD service or it can read location from one of GPS drivers, namely [https://indilib.org/devices/auxiliary/gps.html INDI GPSD] or [https://indilib.org/devices/auxiliary/gps-nmea.html INDI GPS NMEA] | ||
Line 141: | Line 155: | ||
* Astroberry Astro Panel uses system-wide location from GPSD service | * Astroberry Astro Panel uses system-wide location from GPSD service | ||
− | ==== Geographic location architecture ==== | + | ==== Geographic location architecture ==== <!--T:31--> |
Geographic location system architecture is quite complex. | Geographic location system architecture is quite complex. | ||
− | |----> Mount with GPS ---------------------------> INDI mount driver ---->| | + | <!--T:32--> |
+ | |----> Mount with GPS ---------------------------> INDI mount driver ---->| | ||
| | | | | | ||
Satellites ----> |----> Smart Phone with GPS ---------------------> INDI GPS NMEA -------->|----> KStars | Satellites ----> |----> Smart Phone with GPS ---------------------> INDI GPS NMEA -------->|----> KStars | ||
Line 154: | Line 169: | ||
|----> Astroberry Astro Panel | |----> Astroberry Astro Panel | ||
− | === Configuring network connections === | + | === Configuring network connections === <!--T:33--> |
TBC | TBC | ||
− | == Maintenance and Upgrade == | + | == Maintenance and Upgrade == <!--T:34--> |
=== Upgrading the system === | === Upgrading the system === | ||
Astroberry comes with online [https://www.astroberry.io/repo/ software repository]. If you installed your system from downloaded image file, it is already configured for you. Using software repository you can install and update your system without need to manually download updates. Just make sure that Astroberry is connected to a network with access to the Internet and integrated software management system will download and install all updates for you. | Astroberry comes with online [https://www.astroberry.io/repo/ software repository]. If you installed your system from downloaded image file, it is already configured for you. Using software repository you can install and update your system without need to manually download updates. Just make sure that Astroberry is connected to a network with access to the Internet and integrated software management system will download and install all updates for you. | ||
+ | <!--T:35--> | ||
Astroberry is Rasbian based Linux system, which uses APT software management system. You can update the system by using aptitude or Software Updater. | Astroberry is Rasbian based Linux system, which uses APT software management system. You can update the system by using aptitude or Software Updater. | ||
+ | <!--T:36--> | ||
If you prefer to use terminal just run <code>sudo apt update && sudo apt upgrade && sudo apt dist-upgrade</code> | If you prefer to use terminal just run <code>sudo apt update && sudo apt upgrade && sudo apt dist-upgrade</code> | ||
+ | <!--T:37--> | ||
Major system upgrades are also released as a new image file. This is only for minimizing amount of updates you would have to apply between major system upgrades. There is no other need to reflash microSD card with new system image. If you decide to reflash your microSD card, make sure to backup your data first. All your data on microSD card will be overwritten during reflashing microSD card. If you update the system from software repository all your data and files are preserved. | Major system upgrades are also released as a new image file. This is only for minimizing amount of updates you would have to apply between major system upgrades. There is no other need to reflash microSD card with new system image. If you decide to reflash your microSD card, make sure to backup your data first. All your data on microSD card will be overwritten during reflashing microSD card. If you update the system from software repository all your data and files are preserved. | ||
− | === Installing alien software === | + | === Installing alien software === <!--T:38--> |
Astroberry is based on [https://www.raspberrypi.org/downloads/raspbian/ Rasbian Buster] operating system. This means that it is a Linux operating system compatible with Debian 10 (Buster). | Astroberry is based on [https://www.raspberrypi.org/downloads/raspbian/ Rasbian Buster] operating system. This means that it is a Linux operating system compatible with Debian 10 (Buster). | ||
Debian packages are distributed as .deb files available in numerous software repositories. Astroberry comes with it's own [https://www.astroberry.io/repo/ software repository] (KStars, INDI, PHD2 etc) and additionally uses official Raspbian repository for core operating system functionalities. All of these are packages for '''specific version of operating system''' i.e. Rasbian Buster. | Debian packages are distributed as .deb files available in numerous software repositories. Astroberry comes with it's own [https://www.astroberry.io/repo/ software repository] (KStars, INDI, PHD2 etc) and additionally uses official Raspbian repository for core operating system functionalities. All of these are packages for '''specific version of operating system''' i.e. Rasbian Buster. | ||
+ | <!--T:39--> | ||
Using packages from other Linux distributions e.g. Ubuntu is technically possible, but sometimes requires advanced configuration changes. There is no guarantee that alien packages will work properly on Astroberry. | Using packages from other Linux distributions e.g. Ubuntu is technically possible, but sometimes requires advanced configuration changes. There is no guarantee that alien packages will work properly on Astroberry. | ||
It is common error that users add [https://indilib.org/download/ubuntu.html Nightly Builds repository for Ubuntu] to Astroberry. It can work for some packages, sometimes. In majority of cases this can be very problematic and make your system unstable. You should not do it, unless you really know what you're doing. | It is common error that users add [https://indilib.org/download/ubuntu.html Nightly Builds repository for Ubuntu] to Astroberry. It can work for some packages, sometimes. In majority of cases this can be very problematic and make your system unstable. You should not do it, unless you really know what you're doing. | ||
+ | <!--T:40--> | ||
The safest way to bring alien software to your system is to build it from sources. This way all dependencies and requirements are ensured at compilation time. | The safest way to bring alien software to your system is to build it from sources. This way all dependencies and requirements are ensured at compilation time. | ||
− | == How-to == | + | == How-to == <!--T:41--> |
=== Flashing microSD card === | === Flashing microSD card === | ||
After downloading Astroberry Server image you need to unzip it first. Use your preferred software to do it or run this command in your terminal: | After downloading Astroberry Server image you need to unzip it first. Use your preferred software to do it or run this command in your terminal: | ||
+ | <!--T:42--> | ||
<code> unzip astroberry-server_2.0.1.img.zip</code> | <code> unzip astroberry-server_2.0.1.img.zip</code> | ||
You can flash your microSD card with '''unzipped''' file using [https://etcher.io/ etcher.io] or running below commands in your terminal: | You can flash your microSD card with '''unzipped''' file using [https://etcher.io/ etcher.io] or running below commands in your terminal: | ||
+ | <!--T:43--> | ||
<code> sudo dd if=astroberry-server_2.0.1.img of=/dev/sdX bs=8M status=progress</code> | <code> sudo dd if=astroberry-server_2.0.1.img of=/dev/sdX bs=8M status=progress</code> | ||
+ | <!--T:44--> | ||
Note that copying downloaded file to a microSD card will not work. You need to flash your microSD card with unzipped file. | Note that copying downloaded file to a microSD card will not work. You need to flash your microSD card with unzipped file. | ||
− | == FAQ == | + | == FAQ == <!--T:45--> |
=== How can I update the system? === | === How can I update the system? === | ||
You can upgrade all system components using regular system upgrade using apt, apt-get, aptitude or Software Updater. | You can upgrade all system components using regular system upgrade using apt, apt-get, aptitude or Software Updater. | ||
− | === The image is too large for my microSD card === | + | === The image is too large for my microSD card === <!--T:46--> |
If the image appears to be too big shrink it according to [https://softwarebakery.com//shrinking-images-on-linux this example] | If the image appears to be too big shrink it according to [https://softwarebakery.com//shrinking-images-on-linux this example] | ||
− | === How to connect to my wireless home network? === | + | === How to connect to my wireless home network? === <!--T:47--> |
Wireless connection is predefined for you. Just edit it and change network name and password. | Wireless connection is predefined for you. Just edit it and change network name and password. | ||
* Right-click wireless icon on the taskbar | * Right-click wireless icon on the taskbar | ||
Line 205: | Line 228: | ||
* Reboot | * Reboot | ||
− | === I cannot login to astroberry HotSpot === | + | === I cannot login to astroberry HotSpot === <!--T:48--> |
Note that default keyboard layout used in the image is [https://en.wikipedia.org/wiki/QWERTY QUERTY]. If you use other keyboard layout the password you type in might be different than you think e.g. for French keyboard it may become astroberrz (instead astroberry). Change your keyboard layout using raspi-config or gui_rc to aligh system configuration and your keyboard. | Note that default keyboard layout used in the image is [https://en.wikipedia.org/wiki/QWERTY QUERTY]. If you use other keyboard layout the password you type in might be different than you think e.g. for French keyboard it may become astroberrz (instead astroberry). Change your keyboard layout using raspi-config or gui_rc to aligh system configuration and your keyboard. | ||
− | === How can I change my regional settings or add support for my language? === | + | === How can I change my regional settings or add support for my language? === <!--T:49--> |
The easiest way is to run raspi-config (console) and rc_gui (graphical UI). The latter is accessible in Menu / Preferences / Raspberry Pi Configuration | The easiest way is to run raspi-config (console) and rc_gui (graphical UI). The latter is accessible in Menu / Preferences / Raspberry Pi Configuration | ||
− | === Screen resolution does not match my display. How can I fix it? === | + | === Screen resolution does not match my display. How can I fix it? === <!--T:50--> |
If your display cannot handle FullHD resolution (1920x1080) you need to either connect via web browser and set Local in sliding menu Settings / Scaling OR you need to change the system resolution by running raspi-config in terminal or Raspberry Pi Configuration from Prefferences menu. | If your display cannot handle FullHD resolution (1920x1080) you need to either connect via web browser and set Local in sliding menu Settings / Scaling OR you need to change the system resolution by running raspi-config in terminal or Raspberry Pi Configuration from Prefferences menu. | ||
− | === What is the source of location data in GPS Panel and Astro Panel? === | + | === What is the source of location data in GPS Panel and Astro Panel? === <!--T:51--> |
The panels use GPS readings for your location. If you don't have GPS the panel uses virtualgps provided with Astroberry Server. You can set your static location by editing /etc/location.conf file or using Preferences/Geographic Location menu. After the change reboot or restart virtual GPS by running: sudo systemctl restart virtualgps.service | The panels use GPS readings for your location. If you don't have GPS the panel uses virtualgps provided with Astroberry Server. You can set your static location by editing /etc/location.conf file or using Preferences/Geographic Location menu. After the change reboot or restart virtual GPS by running: sudo systemctl restart virtualgps.service | ||
− | === How can I login to default pi user account? === | + | === How can I login to default pi user account? === <!--T:52--> |
Pi user account is disabled for security reasons. You can reenable it anytime by running: sudo passwd -u pi | Pi user account is disabled for security reasons. You can reenable it anytime by running: sudo passwd -u pi | ||
− | == Help and Support == | + | == Help and Support == <!--T:53--> |
Astroberry Server is free and open-source software. It does not come with commercial support. Lots of information on how to manage it can be found in this documentation and [https://indilib.org/forum/astroberry.html INDI Forum]. Also make sure to review open issues at [https://github.com/rkaczorek/astroberry-server GitHub] | Astroberry Server is free and open-source software. It does not come with commercial support. Lots of information on how to manage it can be found in this documentation and [https://indilib.org/forum/astroberry.html INDI Forum]. Also make sure to review open issues at [https://github.com/rkaczorek/astroberry-server GitHub] | ||
− | == Report a Bug == | + | == Report a Bug == <!--T:54--> |
File any issues on [https://github.com/rkaczorek/astroberry-server GitHub] | File any issues on [https://github.com/rkaczorek/astroberry-server GitHub] | ||
</translate> | </translate> |
Revision as of 18:45, 21 May 2020
Astroberry Server is ready to use system for Raspberry Pi for controlling astronomy equipment.
It runs on single board computer and is powered by Linux operating system. Astroberry lets you remotely control your telescope, focuser, camera and many other devices used in astronomy. It can manage your equipment located in the backyard or hundreds kilometers away. The system can be accessed as a remote desktop via a web browser or VNC client or it can act as INDI server accessible by INDI clients such as KStars, Skycharts / Cartes du Ciel or Stellarium. Astroberry Server is based on open-source software, developed and improved by astrofans around the globe.
Astroberry Server project site is located at www.astroberry.io
Contents
- 1 Features
- 2 System Requirements
- 3 Quick Start
- 4 Installation
- 5 Configuration
- 6 Maintenance and Upgrade
- 7 How-to
- 8 FAQ
- 8.1 How can I update the system?
- 8.2 The image is too large for my microSD card
- 8.3 How to connect to my wireless home network?
- 8.4 I cannot login to astroberry HotSpot
- 8.5 How can I change my regional settings or add support for my language?
- 8.6 Screen resolution does not match my display. How can I fix it?
- 8.7 What is the source of location data in GPS Panel and Astro Panel?
- 8.8 How can I login to default pi user account?
- 9 Help and Support
- 10 Report a Bug
Features
- Support for Raspberry Pi 3 and 4, Pi Zero and... probably any other Raspberry Pi version released so far
- Official Raspbian Buster Desktop by Raspberry Pi Foundation
- APT repository for Raspbian Buster (yes, now any Raspbian Buster user can install Astroberry Server with 'apt install')
- Web interface featuring GPS Panel and Astro Panel (celestial almanac for your localization)
- Astroberry Wireless Hotspot allowing to access the system directly i.e. without external wireless network eg. in the field
- Remote desktop accessible over VNC at astroberry.local:5900 or a web browser at http://astroberry.local/desktop
- INDI framework with all available device drivers
- KStars planetarium software and Ekos with all available device drivers plus custom astroberry drivers
- SkyChart / Cartes du Ciel planetarium program (only in precooked image)
- Hallo Northern SKY planetarium program (only in precooked image)
- CCDciel capture software (only in precooked image)
- Astrometry for field solving (index files not provided and must be downloaded separately)
- ASTAP, the Astrometric STAcking Program (only in precooked image)
- PHD2 for autoguiding
- Gnome Predict for satellite tracking
- oaCapture for planetary imaging
- FireCapture for planetary imaging
- SER Player for watching captured video streams (only in precooked image)
- Astroberry DIY drivers for focuser and relay board
- Astroberry PiFace drivers for focuser and relay board
- Astroberry Motor HAT for focuser based on Adafruit Motor HAT
- Virtual GPS for users who do not have GPS device
- File sharing server allowing for network access to captured images
- Support for raspi-config (console) and rc_gui (graphical UI) for easy configuration of Raspberry Pi options
System Requirements
- Raspberry Pi 4 (recommended) or Raspberry Pi 3 (minimal)
- microSD card 32GB (recommended) or 16BG (minimal)
Quick Start
Image Verification
You can verify downloaded file with any checksum software available for your system or by running below commands in your terminal:
sha256sum astroberry-server_2.0.1.img.zip
Make sure that the output of the command is 098d986f9e31f209e2bf58321977d3d7232d63d2b5981dce5f23036c6ef0d141.
If it's not, the file is corrupted and must be downloaded again. If you download the file again and the checksum is incorrect, please let us know.
Installation
Basic installation of the system requires flashing your microSD card with system image file. It's not the same as copying the file to microSD card. If you just copy downloaded file to your microSD card it's not going to work.
You can flash your microSD card (minimum 16GB required) using etcher.io or running below commands in your terminal:
unzip astroberry-server_2.0.1.img.zip sudo dd if=astroberry-server_2.0.1.img of=/dev/sdX bs=8M status=progress
Note: Replace sdX with your microSD card identifier. Make sure it is correct before running the above command!
The process takes some time and you need to be patient. If you abort the flashing process your system is not going to boot at all.
First Boot
After the first boot, search for 'astroberry' wireless hotspot and connect your PC to it using 'astroberry' for password. Point your browser to https://astroberry.local or https://10.42.0.1 to access Astroberry Server. For the Internet access connect your Astroberry to your home wireless network. Right-click top bar Wi-Fi icon and edit Wireless connection by entering your home network SSID and password. While connected to the Internet you can update your system by running below commands in your terminal:
sudo apt update && sudo apt upgrade && sudo apt dist-upgrade
Installation
Easy installation
See #Quick Start section
Advanced installation
You can install Astroberry Server packages on top of official Raspbian Buster with desktop system. This approach is not recommended for beginners. It does not provide all Astroberry Server features available in precooked image and you have to configure your system on your own, which requires advanced understanding of linux system. It's time consuming but you keep full control over the process.
Download official Raspbian Buster with desktop image and flash your microSD card with it. Connect keyboard, mouse and HDMI display to your Raspberry Pi, setup your system with the official first boot wizard and run the following commands in your terminal:
wget -O - https://www.astroberry.io/repo/key | sudo apt-key add - sudo su -c "echo 'deb https://www.astroberry.io/repo/ buster main' > /etc/apt/sources.list.d/astroberry.list" sudo apt update sudo apt upgrade
At this point you can choose to install all Astroberry packages at once by running sudo apt install astroberry-server-full
or you can install only selected packages.
Packages installed by astroberry-server-full include:
- astroberry-server-wui
- astroberry-server-sysmod
- indi-full
- libindi-dev
- kstars-bleeding
- astrometry.net
- gsc
- phd2
- phdlogview
- oacapture
- ser-player
- gpredict
- indi-astroberry-amh
- indi-astroberry-diy
- indi-astroberry-piface
- virtualgps
- gwenview
- indiwebmanagerapp
Configuration
Setting time and date
Raspberry Pi does not come with real time clock (RTC), which remembers time and date between restarts. As the result it does not know what time and date is just after start. To overcome this limitation, it synchronizes time and date from the Internet. This can obviously work only if it has Internet access. Otherwise your system will think it is in the 1st of January 1970.
There are a few ways to ensure that you system is set to proper time and date.
Internet connection
Connect Raspberry Pi to a network, which has Internet access e.g. your home network or your smartphone, using wireless tethering function, and the system will do the rest for you. If you can't have Raspberry Pi always connected to a network with access to the Internet you need to use other options.
RTC module
Get a real time clock (RTC) module and connect it to GPIO. It will remember time and date between restarts. Additionally if you connect your Raspberry Pi to a network with access to the Internet, your time and date will be synchronized to minimize any difference.
GPS module
Get GPS module and connect it to Raspberry Pi. You can use either USB connection (plug-and-play) or serial device connected to GPIO. GPS module will synchronize time and date with GPS satellites. Note that satellites provide UTC time and are not aware of your time zone. However if you set your timezone correctly in the system, it will be used to adjust the time received from satellites accordingly. Using GPS module gives you additional feature of setting your location, which is required by various astronomy applications.
Manual configuration
You can always set time and date manually after each boot. It's not the most convenient way to keep system time and date accurate but it's good to know you can do it anyway.
To set date to the 19th of May 2020 and time to 11:14:00 run in terminal: sudo date -s "2020-05-19 11:14:00"
Setting geographic location
Setting geographic location is quite important when using Astroberry. Many applications use your location to provide you with accurate position of stars and planets. Make sure that you set your geographic location before running these applications.
GPS device
To provide system-wide location info Astroberry system uses GPSD service. It grabs raw data from GPS device and provides it to whole operating system and applications that need this information.
If you use GPS device the whole system and applications can get accurate geographic location from it. When using GPS device make sure that Virtual GPS is stopped and disabled by running systemctl stop virtualgps && systemctl disable virtualgps
. Otherwise GPSD service will simultaneously use location from two sources i.e. GPS and Virtual GPS.
Virtual GPS
If you don't have GPS device, Astroberry provides Virtual GPS, which uses static location configured in /etc/location.conf file.
You can set your location by running Preferences/Geographic Location from system menu or running sudo nano /etc/location.conf
in console.
After setting location in the file you need to make sure that Virtual GPS service is up and running.
- Run
sudo systemctl status virtualgps
to check service status - Run
sudo systemctl enable virtualgps
to enable service - Run
sudo systemctl disable virtualgps
to disable service - Run
sudo systemctl start virtualgps
to start service - Run
sudo systemctl stop virtualgps
to stop service - Run
sudo systemctl restart virtualgps
to restart service
How applications get location data
By default applications use system-wide location data from GPSD service. However there are some other options, which must be noted.
- Kstars can use system-wide location data from GPSD service or it can read location from one of GPS drivers, namely INDI GPSD or INDI GPS NMEA
- Astroberry GPS Panel uses system-wide location from GPSD service
- Astroberry Astro Panel uses system-wide location from GPSD service
Geographic location architecture
Geographic location system architecture is quite complex.
|----> Mount with GPS ---------------------------> INDI mount driver ---->| | | Satellites ----> |----> Smart Phone with GPS ---------------------> INDI GPS NMEA -------->|----> KStars | | |----> GPS Device ------>| |----> INDI GPSD ------------>| |-> GPSD service ->| /etc/location.conf ----> Virtual GPS ---->| |----> Astroberry GPS Panel | |----> Astroberry Astro Panel
Configuring network connections
TBC
Maintenance and Upgrade
Upgrading the system
Astroberry comes with online software repository. If you installed your system from downloaded image file, it is already configured for you. Using software repository you can install and update your system without need to manually download updates. Just make sure that Astroberry is connected to a network with access to the Internet and integrated software management system will download and install all updates for you.
Astroberry is Rasbian based Linux system, which uses APT software management system. You can update the system by using aptitude or Software Updater.
If you prefer to use terminal just run sudo apt update && sudo apt upgrade && sudo apt dist-upgrade
Major system upgrades are also released as a new image file. This is only for minimizing amount of updates you would have to apply between major system upgrades. There is no other need to reflash microSD card with new system image. If you decide to reflash your microSD card, make sure to backup your data first. All your data on microSD card will be overwritten during reflashing microSD card. If you update the system from software repository all your data and files are preserved.
Installing alien software
Astroberry is based on Rasbian Buster operating system. This means that it is a Linux operating system compatible with Debian 10 (Buster). Debian packages are distributed as .deb files available in numerous software repositories. Astroberry comes with it's own software repository (KStars, INDI, PHD2 etc) and additionally uses official Raspbian repository for core operating system functionalities. All of these are packages for specific version of operating system i.e. Rasbian Buster.
Using packages from other Linux distributions e.g. Ubuntu is technically possible, but sometimes requires advanced configuration changes. There is no guarantee that alien packages will work properly on Astroberry. It is common error that users add Nightly Builds repository for Ubuntu to Astroberry. It can work for some packages, sometimes. In majority of cases this can be very problematic and make your system unstable. You should not do it, unless you really know what you're doing.
The safest way to bring alien software to your system is to build it from sources. This way all dependencies and requirements are ensured at compilation time.
How-to
Flashing microSD card
After downloading Astroberry Server image you need to unzip it first. Use your preferred software to do it or run this command in your terminal:
unzip astroberry-server_2.0.1.img.zip
You can flash your microSD card with unzipped file using etcher.io or running below commands in your terminal:
sudo dd if=astroberry-server_2.0.1.img of=/dev/sdX bs=8M status=progress
Note that copying downloaded file to a microSD card will not work. You need to flash your microSD card with unzipped file.
FAQ
How can I update the system?
You can upgrade all system components using regular system upgrade using apt, apt-get, aptitude or Software Updater.
The image is too large for my microSD card
If the image appears to be too big shrink it according to this example
How to connect to my wireless home network?
Wireless connection is predefined for you. Just edit it and change network name and password.
- Right-click wireless icon on the taskbar
- Select Edit connections
- Double-click Wireless connection
- Enter your network name in SSID field
- Go to Wi-Fi Security tab
- Enter your network password in Password field
- Reboot
I cannot login to astroberry HotSpot
Note that default keyboard layout used in the image is QUERTY. If you use other keyboard layout the password you type in might be different than you think e.g. for French keyboard it may become astroberrz (instead astroberry). Change your keyboard layout using raspi-config or gui_rc to aligh system configuration and your keyboard.
How can I change my regional settings or add support for my language?
The easiest way is to run raspi-config (console) and rc_gui (graphical UI). The latter is accessible in Menu / Preferences / Raspberry Pi Configuration
Screen resolution does not match my display. How can I fix it?
If your display cannot handle FullHD resolution (1920x1080) you need to either connect via web browser and set Local in sliding menu Settings / Scaling OR you need to change the system resolution by running raspi-config in terminal or Raspberry Pi Configuration from Prefferences menu.
What is the source of location data in GPS Panel and Astro Panel?
The panels use GPS readings for your location. If you don't have GPS the panel uses virtualgps provided with Astroberry Server. You can set your static location by editing /etc/location.conf file or using Preferences/Geographic Location menu. After the change reboot or restart virtual GPS by running: sudo systemctl restart virtualgps.service
How can I login to default pi user account?
Pi user account is disabled for security reasons. You can reenable it anytime by running: sudo passwd -u pi
Help and Support
Astroberry Server is free and open-source software. It does not come with commercial support. Lots of information on how to manage it can be found in this documentation and INDI Forum. Also make sure to review open issues at GitHub
Report a Bug
File any issues on GitHub