Ian created a new topic ' macOS 10.15 and KStart/Ekos Distribution and Notarisation' in the forum. 9 months ago

As I understand it, imminent macOS release 10.15 will require all apps are "notarized" in order to be installed.

Is KStars/Ekos for Mac currently notarised or plans to make it notarized (or are there ways round it)?

I'm uncertain what notarization involves and to me it sounds like a retrograde step. There are rumours that the requirement might be slipping and wont be introduced immediately on 10.15 release but I've no idea as to the reliability of these rumours.


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

Thank you (and others) for providing such an amazing suit of software.

It might be overkill to change the INDIWebManager template .service file, particularly if it's specific to Raspbian and if the GSC instructions make it clear.

I was previously on UbuntuMate but for a rebuild became worried about the slow/delayed update release timescales for RPi versions and as the underlying OS is pretty much the sam and as it's a tool (small black box) Raspbian would undoubtedly "do the job".

I'm probably unusual in wanting totally headless, but I'm very aware of how limited RPi RAM is (and I'm open to suggestions from others).

Anyway, thanks for your time and assistance.


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

rlancaste wrote: Ok I just updated the build requirements for gettext in INDI Web Manager App.

I found what you mentioned on this page: www.indilib.org/support/tutorials/139-in...on-raspberry-pi.html . and can change that

But where are you looking at instructions for setting up the INDI Web Manager as a service. That doesn't seem to be on that same page. Did you get it from the INDI Web Manager Github readme page?

Or maybe you mean that there were not instructions and you just edited this file?

If it is one of the last two, I can ask Jasem to update them because those are in his Github repo.

Yes - https://github.com/knro/indiwebmanager - does not give instructions on GSC (that I noticed) but does have a sample indiwebmanager.service that has a comment about configuring username so could maybe benefit from a commented out line #If you are using GSC - though probably less important (or maybe not even relevant as it's a separate installation)


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

Thanks for your thoughts. I'm not 100% set and certainly always open to alternative ways of doing things (time to get worried when you aren't prepared to consider different ides).

I'm not yet on guiding (not even got a guide scope). I looked last year (but disappeared off to S America for the winter so no astronomy) - but got uncertain on selecting a guide scope with all the focal length field of view issues and different configurations (e.g. through main scope or separate guide scope, and then I've also got a focal reducer ,etc.

My main aims in the short term are DSLR and I can stay warm indoors (I hate cold).

Again thanks for your help on this.


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

rlancaste wrote: Try sudo apt install gettext?

If a dependency is missing I will add it to the list on the readme.

Many thanks. That solved the build issue.

Unfortunately I can't use your app as I wont be running the desktop (totally "headless" and without VNC is the plan).

After loads hunting and messing I've found the issue and (pardon my misuse of Linux terms) it looks like when run as a service, even under a given user the environment variables from .bashrc are not passed to the indi-web (as identified in IndiLib instructions https://www.indilib.org/support/tutorials/139-indi-library-on-raspberry-pi.html )
IndiLib instructons https://www.indilib.org/support/tutorials/139-indi-library-on-raspberry-pi.html state
cp ~/.bashrc ~/.bashrc.copy
echo "export GSCDAT=~/gsc" >> ~/.bashrc
as part of the installation. It's not the value of the environment variable which obviously has to be right depending on where the GSC is installed to, but that the (correct) value is not being passed to indi-web application.

Also the same applied to putting the environment variable into /etc/profile (as per AstriPi3).

Way I found to get it to work was to add
to the indiwebmanager.service.

Assuming I have not made a big mistake and inadvertently done something else and that the indiwebmanager.service change is the answer, how does one draw attention so web pages/git instructions can be updated?

Many thanks for all your help.


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

rlancaste wrote: For more info:


(Sorry about this - I'm fine with C/C++ dev but not familiar with Linux so what should be straightforward for some is not so straight forward for me .... so you gte daft questions)

I'm having problems building the INDIWebManagerApp. Following you instructions from https://github.com/rlancaste/INDIWebManagerApp . Installed all the packages listed (using sudo apt-get install). The cmake step is failing:
phobos@Phobos-1r:~/AstroRoot/INDIWebManagerApp-build $ cmake -DCMAKE_INSTALL_PREFIX=/usr ~/AstroRoot/INDIWebManagerApp/
CMake Error at /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
  Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE
Call Stack (most recent call first):
  /usr/share/cmake-3.13/Modules/FindPackageHandleStandardArgs.cmake:378 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.13/Modules/FindGettext.cmake:80 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  /usr/lib/arm-linux-gnueabihf/cmake/KF5I18n/KF5I18nMacros.cmake:28 (find_package)
  /usr/lib/arm-linux-gnueabihf/cmake/KF5I18n/KF5I18nConfig.cmake:43 (include)
  /usr/share/ECM/find-modules/FindKF5.cmake:74 (find_package)
  CMakeLists.txt:58 (find_package)

-- Configuring incomplete, errors occurred!
See also "/home/phobos/AstroRoot/INDIWebManagerApp-build/CMakeFiles/CMakeOutput.log".
CMake Error: Unable to open check cache file for write. /home/phobos/AstroRoot/INDIWebManagerApp-build/CMakeFiles/cmake.check_cache
phobos@Phobos-1r:~/AstroRoot/INDIWebManagerApp-build $

Again, apologies what what is probably blindingly obvious to a Linux dev.
I'm running or Raspbian Buster (latest release, installation without apps (not "minimal" but without all the Libre Office, etc.). It's a new installation only for Indi so does not have lots of other packages installed for other stuff.


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

AstroNerd wrote: GSC is for Kstars, so why are you installing in your rpi, if you don’t have Kstars installed, does not make sense...
GSC should be installed on your machine that you run ekos from..., also GSC can’t be installed on raspbian via the “sudo apt-get install gsc” command it’s has to be compiled from source...at least that’s the way I was told to do it... ?

For the CCD Simulator to return star fields. Have I got it wrong as it's the CCD Simulator that is reporting the gsc errors? (As instructed "If you are planning to use the indi_simulator_ccd driver and need to retrieve simulated images of star fields you have to install de Guide Star Catalog (GSC) on your RPi." from https://www.indilib.org/support/tutorials/139-indi-library-on-raspberry-pi.html

I am compiling from source (and I got all the warnings posted 1st post in this thread). I've tried the instructions specific to Rasbian (part way down page https://www.indilib.org/support/tutorials/139-indi-library-on-raspberry-pi.html ) and then the AstriPi3 script commands (i.e. the commands NOT the script itself)


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

Sorry, I'm being slow today so a few questions:
1. Is your app a INDI Web Manager or something that controls an INDI Web Manager?
2. Does it have to be installed on the computer running the INDI Web Manager (or can I install it on my Mac client and use it to control the RPi INDI Web Manager)?
3. In your instructions for installing INDI Web Manager your say "not as root". Is this crucial only for your app or generally - as I installed INDI Web Manager as root (with sudo) as per the indiwebmanager git instructions ( https://github.com/knro/indiwebmanager )

n.b. gsc app seems to work as I can trye in a command to the prompt and gets a good'ish looking response

phobos@Phobos-1r:~ $ gsc -c 1.441 +1.345 -r 10.1 -n 3000
0000101499 001.45207 +01.19901   1.2 15.33 0.40  1 3 0516 F;   8.78 176
0000101073 001.49327 +01.22190   0.3 12.63 0.40  1 0 0516 T;   8.02 157
0000101073 001.49326 +01.22197   0.3 13.09 0.31  0 0 012J T;   8.02 157
0000100568 001.54076 +01.23600   0.4 11.50 0.34  0 0 012J T;   8.86 138
0000100568 001.54086 +01.23601   0.3 10.67 0.40  1 0 0516 T;   8.87 138
0000100490 001.57280 +01.24538   0.5 12.80 0.40  1 2 0516 T;   9.91 127
0000100490 001.57275 +01.24540   0.4 13.59 0.34  0 2 012J T;   9.91 127
0000100158 001.57343 +01.24592   0.3 14.09 0.34  0 2 012J F;   9.92 127
0000100956 001.40505 +01.25325   0.3 14.21 0.40  1 0 0516 T;   5.91 201
0000100956 001.40501 +01.25328   0.3 14.67 0.31  0 0 012J T;   5.91 201
0000101305 001.29578 +01.26928   0.3 15.50 0.40  1 0 0516 F;   9.82 242
0000100734 001.44099 +01.28381   0.3 14.54 0.40  1 0 0516 T;   3.67 180
0000100734 001.44094 +01.28382   0.3 15.50 0.31  0 0 012J T;   3.67 180
0000101492 001.33585 +01.29301   0.3 15.52 0.40  1 0 0516 F;   7.04 244
0000101449 001.29985 +01.32605   0.3 15.32 0.40  1 0 0516 F;   8.54 262
0000100040 001.44471 +01.35359   0.3 13.29 0.40  1 0 0516 T;   0.56  23
0000100040 001.44472 +01.35366   0.3 13.59 0.34  0 0 012J T;   0.57  23
0000100483 001.38725 +01.36053   0.3 14.42 0.40  1 0 0516 T;   3.36 286
0000100483 001.38732 +01.36054   0.3 14.76 0.34  0 0 012J T;   3.35 286
0000100712 001.41926 +01.36799   0.3 15.30 0.34  0 0 012J T;   1.90 317
0000100712 001.41927 +01.36801   0.3 14.83 0.40  1 0 0516 T;   1.90 317
0000101283 001.29008 +01.38563   0.2 15.55 0.40  1 0 0516 F;   9.38 285
0000100955 001.31024 +01.39150   0.3 13.75 0.34  0 0 012J T;   8.32 290
0000100955 001.31021 +01.39151   0.3 13.28 0.40  1 0 0516 T;   8.33 290
0000101234 001.43477 +01.41157   0.3 15.13 0.40  1 0 0516 F;   4.01 355
0000100477 001.55909 +01.45543   0.3 11.80 0.40  1 0 0516 T;   9.70  47
0000100477 001.55906 +01.45545   0.4 12.21 0.34  0 0 012J T;   9.70  47
0000100328 001.48468 +01.48429   0.3 14.58 0.40  1 0 0516 T;   8.76  17
0000100328 001.48467 +01.48438   0.3 15.00 0.34  0 0 012J T;   8.76  17
0000100509 001.47921 +01.48527   0.3 13.96 0.40  1 0 0516 T;   8.72  15
0000100509 001.47924 +01.48538   0.3 14.46 0.34  0 0 012J T;   8.73  15
phobos@Phobos-1r:~ $ 


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

I tried moving everything to the /usr/share and putting the new GSCDAT environment varible in /etc/profile which I assume is the global (not user specific)

I installed the same IndiWebManager as is installed by your script i.e.

sudo apt-get install python3-pip
sudo -H pip3 install indiweb

I followed the IndiLib web site instructions so I could set it to autostart as I'll mostly be headless and wanted to avoid desktop icons to start and stop stuff.

Checked running processes and indi-web is running under the correct user
740 phobos    20   0   25400  16836   8564 S   0.0   1.8   0:01.52 indi-web

The gsc executable seems to run (if I do
gsc -help
I get the help output I expect. Path to gsc seems ok as I can enter the command fine when current working directory is "elsewhere"


Ian replied to the topic 'RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

It looks mainly the same. Differences I doubt would have a massive impact e.g. your script is copying the GSC files to /usr/share/GSC where the IndiLib web site keeps them under the user home ~/gsc - but my GSCDATA env variable points to where mine are as yours points to where you put hem (I've checked the environment and the variable is there correctly (I've actually tried them in two places.

I was unsure about the compiler warnings as to whether they were causing problems in the generated executable, but from my own C/C++ days warnings were not normally fatal (unlike errors) and it does generate the gsc.exe (renamed name moved same in yours and IndiLib

The IndiLib instructions adds two files from src to the gsc directory (just a copy regions.* - something not in your script: cp ~/gsc/bin/regions.* ~/gsc). But I can't believe a couple of extra files would be causing problems. (Plus on my Mac installation those region files are not present - and that works file).

Another difference is the IndiLib instructions put setting the environment variable in .bashrc where your script uses /etc/profile. But I've checked the environment and it'd in there properly and the indiwebmanager (which starts the indiserver and thus starts the CCD Simulator) is configured to run under the same username.

Is there any way I can check what username the processes are running under in case something is being run under the wrong username (which might the mean the env variable is not getting set, etc.


Ian created a new topic ' RPi CCD Simulator GSC Installation Problem' in the forum. 9 months ago

(I did do a search 1st so sorry if I missed the obvious)
Trying to install the GSC on my RPi (Raspbian, latest release version) and I can't get it working. It's a new installation (INDI, everything and RPi is just Indi Server (no Kstars). Only difference was that on RPi, Indi Server installed via apt-get as in:
sudo apt-get -y install indi-bin

(as stated in [url=https://www.indilib.org/download/viewcategory/14-raspberry-pi.html]https://www.indilib.org/download/viewcategory/14-raspberry-pi.htmlhttps
rather than through:
tar -xzf libindi_1.2.0_rpi.tar.gz
cd libindi_1.2.0_rpi
sudo dpkg -i *.deb

When I run Ekos (remote) anything imaging it reports errors e.g. INDI Control Panel->CCD Simulators tab->Main Control bottom (log?) reports "2019-09-27T15:49:48: [ERROR] Got no stars, is gsc installed with appropriate environment variables set ?? " and all the image capture/displays just return "white noise"

Installation went fine except for a load of compiler warnings on "make" for gsc.exe (but gsc.exe is created, mv's and put in /usr/bin ok. Compiler warnings:
cc -I. -O gsc.c prtgsc.c dispos.c decode_c.c get_head.c find_reg.c to_d.c dtos.c -lm
gsc.c:356:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
gsc.c: In function ‘main’:
gsc.c:442:8: warning: implicit declaration of function ‘to_d’; did you mean ‘tod’? [-Wimplicit-function-declaration]
     if(to_d(line,&da0,&dd0) <0) {
gsc.c:614:9: warning: implicit declaration of function ‘lseek’; did you mean ‘fseek’? [-Wimplicit-function-declaration]
  size = lseek(f2,0L,2);
gsc.c:617:5: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
gsc.c:621:2: warning: implicit declaration of function ‘close’; did you mean ‘pclose’? [-Wimplicit-function-declaration]
get_head.c: In function ‘get_header’:
get_head.c:25:6: warning: implicit declaration of function ‘read’; did you mean ‘fread’? [-Wimplicit-function-declaration]
  if (read(fp,w,4) != 4) return((char *)0);
to_d.c: In function ‘to_d’:
to_d.c:61:9: warning: implicit declaration of function ‘isspace’ [-Wimplicit-function-declaration]
  while (isspace(*str)) str++;
to_d.c:62:6: warning: implicit declaration of function ‘ispunct’ [-Wimplicit-function-declaration]
  if (ispunct(*str)) return(-1);
strip a.out ; rm *.o ; mv a.out gsc.exe
rm: cannot remove '*.o': No such file or directory


Ian created a new topic ' macOS/OS X Kstars/IndiLib Download' in the forum. 2 years ago

On the downloads page(s) for Mac, the links for the download seem not to be working. The download buttons seem to behave differently in different browsers. In Safari clicking on "Download" downloads a file called kstars-latest.dmg.html (zero bytes in size). In Firefox, same Download buttons download a zero sized kstars-latest.dmg.

Tried from < indilib.org/download/osx.html > as well as < indilib.org/download/osx/download/4-mac-osx/12-kstars.html >


Thomas thanked Ian in topic Raspberry Pi 3 Setup Script 2 years ago

Ian replied to the topic 'Raspberry Pi 3 Setup Script' in the forum. 2 years ago

colgs3b wrote: starhopper,
there is a Utilities folder on the Desktop that contains scripts for changing the network settings.
"Start Ekos Field Wifi" will switch the Wifi into access point mode.

In the field, I am usually using my iPad Mini to control my RPi, so I don't have a laptop to make a direct connection and switch the RPi to adhoc. The usb key idea is interesting, so long as you have a free usb port.

Similar to my own reasons for wanting e.g. USB (or something other than direct connection) to switch to ad-hoc mode when no infrastructure available.

Been investigating further and whilst beyond my Linux knowledge, I did wonder if "Autorun" might be a way to do this. i.e. setup a USB drive with the "Switch to Field/ad-hoc mode" script configured as Autorun (and configure the Linux to autorun without requiring user confirmation).

So you'd fit the USB drive, startup the RPi, the USB would do it's stuff (swtich to ad-hoc mode), then remove the USB drive and connect your astro gear (so USB drive would only need to be fitted at startup.

Based my revised thoughts on

But I must repeat, I'm beyond my very limited knowledge of Linux.


Ian replied to the topic 'Raspberry Pi 3 Setup Script' in the forum. 2 years ago

rlancaste wrote: Psamathe,

Yes this is definitely a possible thing to do, but then you also run the risk of your system potentially deciding to start its own wifi up when you don't want it to do so. What I tend to do is I have the wifi networks saved from all the different places I usually image so that it automatically connects to them. But if I am at a new place or want to use an ad hoc network, I plug in my ethernet cord between the pi and the laptop and use VNC to either set up or change networks.

What about using a USB drive as a "key" - if the drive contains a specific file, specific location it starts on ad-hoc, otherwise starts normal client mode. That way a small cheap USB drive effectively becomes the switch meaning no cable, no keyboard, etc.just turn up (away from any Wi-Fi networks, plug in the USB drive and power on ...