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

Monthly maintenance release INDI v1.8.1

A totally headless, no GUI, INDI server?

3 weeks 3 days ago 3 weeks 3 days ago by RonK.
RonK
Fresh Boarder
Fresh Boarder
Posts: 9
More
Topic Author
A totally headless, no GUI, INDI server? #42400
Hi y'all,

I was wondering, is there a plain headless INDI server out there for Raspberry, or any other box for that matter? By headless I mean just that, a totally GUI less, lightweight, system to which I can connect a laptop through WiFi, so I can use Kstars on the laptop, while the INDI server is running on the PI.

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.

My Stellarmate-powered RaspBerry is stuck to my C8 tube, it has no monitor and no keyboard and I don’t carry one with me in the field. So when this happens, my astrophotography session is pretty much screwed up and I can pack my gear and go home. And plug the Pi to a monitor and to a keyboard and press Ctrl-D.

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.

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

3 weeks 3 days ago 3 weeks 3 days ago by nmac.
nmac
Platinum Boarder
Platinum Boarder
Posts: 426
Karma: 2
More
A totally headless, no GUI, INDI server? #42401
I am running an ubuntu headless PC for Ekos and that has happened to me too.
Solution, make it run fsck at every boot. If it's ok it only takes a few more seconds, if it's not it will correct the filesystem by itself.
I know it's not ideal for an SDCard based system (more wearing of the card) but it's a solution.

Use this: sudo tune2fs -c 1 /dev/sdX, where sdX is replaced by the SDCard device, something like "/dev/mmcblkp02", you have to see wich is your root partition.

(PT) SC@ROS Observatory
TS 6" F4 Newtonian / Canon 550D / GPU CC / Datyson T7M / Arduino Moonlite DC Clone- HEQ5 Pro
Explore Scientific 80APO - 120ST / G2-8300FW5 / ES FF 2" / ASI120MM - Arduino Moonlite DC Clone - Vixen GPD2
www.flickr.com/photos/139335144@N03/

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

3 weeks 3 days ago
rlancaste
Platinum Boarder
Platinum Boarder
Posts: 1897
Karma: 19
More
A totally headless, no GUI, INDI server? #42403
INDI Server is a command line program. INDI Web Manager is a python based web hosted program. Neither one requires a monitor or X window system to be loaded. Also the pi can connect to wifi networks without needing a GUI. So yes you could configure a PI to be GUI less and headless.
The following user(s) said Thank You RonK

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

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

rlancaste wrote: So yes you could configure a PI to be GUI less and headless.


Well, I certainly can't, but someone smarter than me could.

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

3 weeks 3 days ago
maxer
Gold Boarder
Gold Boarder
Posts: 233
Karma: 1
More
A totally headless, no GUI, INDI server? #42408
Hi,

Another suggestion is to create a file in the root directory using command : sudo touch /forcefsck
When the Pi boots then the file is recognized and a forced fsck is done and the file is removed.
It won't hurt to run that at every bootup so you can put the command (without 'sudo') in the system crond configuration file, then the file is created at every boot.

Cs
/Markku

EQ8, Small scope SW200, Big scope SW300, Xagyl FW, Guidescope Celestron 80mm, SX LodestarX2, SXVR-H9.
RPi3, Ubuntu Mate, and many Arduinos..
The following user(s) said Thank You RonK

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

3 weeks 3 days ago 3 weeks 3 days ago by Marc2b.
Marc2b
Senior Boarder
Senior Boarder
Posts: 46
Karma: 1
More
A totally headless, no GUI, INDI server? #42409
Ron, booting in text mode is simple. You just need an ssh cnx. Once logged as root just type :

systemctl set-default multi-user.target # next boot will be in text mode ( equ. runlevel 3 )
or, if you decide to go back to graphical mode :
systemctl set-default graphical.target # next boot will be in graphical mode ( equ. runlevel 5 )

As long as you have an ssh cnx you can swap at will between th two modes :)

- Marc
The following user(s) said Thank You RonK

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

3 weeks 3 days ago
Marc2b
Senior Boarder
Senior Boarder
Posts: 46
Karma: 1
More
A totally headless, no GUI, INDI server? #42411
By the way... I always bring with me a clean copy of my working SD card when I'm in the field. It helps saving the day sometimes :) I just have to swap the cards in case of emergency and I can perform the autopsy once home :)

- Marc

PS : Actually, I also bring a second Pi. You're never too prudent when your night relies on this little buddy. :)
The following user(s) said Thank You RonK

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

3 weeks 3 days ago
knro
Administrator
Administrator
Posts: 7157
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.

3 weeks 3 days ago
DerPit
Gold Boarder
Gold Boarder
Posts: 211
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.

3 weeks 2 days ago
Marc2b
Senior Boarder
Senior Boarder
Posts: 46
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.

3 weeks 2 days ago
aj55
Junior Boarder
Junior Boarder
Posts: 23
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.

3 weeks 2 days ago 3 weeks 2 days ago by aj55.
aj55
Junior Boarder
Junior Boarder
Posts: 23
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.

Time to create page: 0.831 seconds