×
INDI Library v1.8.1 Released (09 Sep 2019)

Monthly maintenance release INDI v1.8.1

A totally headless, no GUI, INDI server?

2 months 4 weeks ago
knro
Administrator
Administrator
Posts: 7378
Karma: 51
A totally headless, no GUI, INDI server? #42424
INDI server does not have a GUI, it is headless as is.

So you can either install Debian or Ubuntu server on the Pi, and just install INDI server there. Or if you want to use GUI-OS like StellarMate, you can do as Marc suggested above which is to set the run level to 3 to prevent going to GUI mode. Btw, SM OS already forces fsck on boot if it detects issues. What version were you running?

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
The following user(s) said Thank You RonK

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
DerPit
Gold Boarder
Gold Boarder
Posts: 264
Karma: 1
More
A totally headless, no GUI, INDI server? #42433

RonK wrote: Okay, actually I've already got a Raspberry Pi 3 with Stellarmate on it and it's connected to my MacBook through WiFi. It all works nicely… until I unplug the Raspberry Pi by accident and it doesn't start anymore. The reason why it doesn't start anymore is that the OS on which Stellarmate is built is a GUI-based OS.

What happens after a hard reboot is that, at times, it requires a fsck to be performed, but it won't do it all by itself. It's gonna to ask. One needs to type Ctrl-D, because it expects to be plugged to a monitor and a keyboard since it's a desktop environment.


Please note that this problem has nothing to do with 'desktop' or 'gui'. So especially the answers suggesting to switch to runlevel 3 / text mode won't help anything, you'd run into the same error again as it happens way before any desktop environment is started.
It is the initial system startup script that would (try to) run the file system check. And usually, it does this with the option '-y' to run unattended (for filesystems that support this).
As Jasem mentioned, the automatic fsck is already done in SM, so it might well be that in your case you did hit an error that fsck could not fix. Then of course (also) a headless system is at the loss (unless it has something like automatic restore from a separate partition).

Thus my question, is there a simple, no-fail, INDI server out there that won't let me down if I unplug the power cable by mistake? I don't care about any GUI interface on the device that runs the INDI server, I never use it. GUIs suck.


I'd just always carry a second SD card with a backup with me.....

openSUSE Tumbleweed KStars git INDI git
GPDX+EQMOD, CEM60EC, ASI1600+EFW+ASI290 mini
The following user(s) said Thank You RonK

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
Marc2b
Senior Boarder
Senior Boarder
Posts: 47
Karma: 1
More
A totally headless, no GUI, INDI server? #42439
Derpit wrote : "... so it might well be that in your case you did hit an error that fsck could not fix."

Right, but considering Ubuntu has most probably a journaling filesystem, this shoud not even happen and a power loss shouldn't do much damage... Those days when a power loss on Unices systems was a catastrophe are long gone :). If fsck could not fix the problem, maybe it's because the card itself has been corrupted ?

- Marc

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
aj55
Junior Boarder
Junior Boarder
Posts: 34
More
A totally headless, no GUI, INDI server? #42443
I am new to Stellarmate, but wouldn't starting RealVNC on your laptop create the opportunity to work on the Pi as it were?
I always run RealVNC next to Kstars on my laptop just to start other programs on my Pi....
Cheers

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago 2 months 3 weeks ago by aj55.
aj55
Junior Boarder
Junior Boarder
Posts: 34
More
A totally headless, no GUI, INDI server? #42444
But perhaps VNC is not running on the Pi in the situation you mention?

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
RonK
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
A totally headless, no GUI, INDI server? #42445

aj55 wrote: But perhaps VNC is also stuck on the Pi in the situation you mention?


Yes, it happens before the VNC service starts.

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
aj55
Junior Boarder
Junior Boarder
Posts: 34
More
A totally headless, no GUI, INDI server? #42448
Out of curiosity, how do you shutdown the Pi without VNC?
Is it possible from Kstars on your laptop?

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
RonK
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
A totally headless, no GUI, INDI server? #42449

aj55 wrote: Out of curiosity, how do you shutdown the Pi without VNC?
Is it possible from Kstars on your laptop?


I do that either with VNC or through Stellarmate's Web interface.

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
avarakin
Senior Boarder
Senior Boarder
Posts: 70
More
A totally headless, no GUI, INDI server? #42451
Most of the time I just pull the plug and so far (2+ years) never had a problem.

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
Marc2b
Senior Boarder
Senior Boarder
Posts: 47
Karma: 1
More
A totally headless, no GUI, INDI server? #42452
from a simple terminal something a bit less violent maybe :)
ssh -t yourPi poweroff
- Marc

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago
TomTuttle
Fresh Boarder
Fresh Boarder
Posts: 3
More
A totally headless, no GUI, INDI server? #42644
It's built on Ubuntu right? You should be able to edit /etc/defaults/rcS
And edit/add the line: FSCKFIX=yes

From the man page -- man5/rcS.5.html
FSCKFIX
When the root and all other file systems are checked, fsck is invoked with the -a
option which means "autorepair". If there are major inconsistencies then the fsck
process will bail out. The system will print a message asking the administrator to
repair the file system manually and will present a root shell prompt (actually a
sulogin prompt) on the console. Setting this option to yes causes the fsck
commands to be run with the -y option instead of the -a option. This will tell
fsck always to repair the file systems without asking for permission.

Please Log in or Create an account to join the conversation.

2 months 3 weeks ago 2 months 3 weeks ago by TomTuttle. Reason: Duplicate
TomTuttle
Fresh Boarder
Fresh Boarder
Posts: 3
More
A totally headless, no GUI, INDI server? #42645
Edit - duplicate (didn't realize posts were moderated).

BTW, there is some risk in this, it's possible for the fs to be really messed up and require manual fixing but I only know of a couple 'nix SysAdmins even capable of it (I am not one of them).

Backups are your friend! After I get an RPi sd card how I want it, I'll use one of the image reader/writer programs to make an ISO/IMG file of it. I usually use Win32 Disk Imager.

Please Log in or Create an account to join the conversation.

Time to create page: 0.966 seconds