×

INDI Library v1.9.7 Released (29 Jul 2022)

Bi-monthly INDI Library released with new drivers and bug fixes.

Installing INDI/KSTARS-EKOS on a NanoPC-T4

  • Posts: 790
  • Thank you received: 86
Mde lots of progress tonight. I got Vino VCN to work, and connects from a local network well. Very responsive too.
But - I have two issues I need help with:

1. I need the system (Lubuntu) to start the VNC server automatically upon startup. As the machine will be headless, it needs to be a turnkey system. I'm not sure if Vino Vnc will allow that. If not, please suggest an alternative, noting that RealVNC does not work on the NanoPC T4.

2. As soon as I log off from my Mac, VNC server shuts down on the Lubuntu machine. I need it to stay active all the time.

Any help would be appreciated!

Peter

iOptron CEM120 EC2 and CEM25P
Celestron C11 EdgeHD and William Optics Star71
ASI 1600MM Pro, ASI 462MC
Moonlight Litecrawler (C11) and Motorfocus (WOStar71)
LodeStar X2 and ZWO OAG
Nextdome, AAG Cloudwatcher
MacMini
4 years 1 month ago #28574

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

  • Posts: 439
  • Thank you received: 51
Have you tested x11vnc which is the simplest way to access your SBC ?
Are you familiar with shell script ?
I might provide you some shell scripts that might help you to install x11vnc so it could start at boot.
You can take a look there: github.com/Patrick-81/NAFABox/blob/maste.../install_comsetup.sh
The following user(s) said Thank You: Peter Kennett
Last edit: 4 years 1 month ago by Patrick.
4 years 1 month ago #28576

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

  • Posts: 1941
  • Thank you received: 416
Does your Lubuntu system boot into a desktop? My Ubuntu system does (it starts the MATE desktop) and IIRC yours into LXDE. You should be able to add a start up application that starts the vino server for you. That’s what I did and it works like a charm.

Also have a look at the vino config settings using the dconf editor. it could be dconf2. I am not sure so please check yourself. There should be an option to keep vino running after you disconnect.
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
The following user(s) said Thank You: Peter Kennett
4 years 1 month ago #28577

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

  • Posts: 790
  • Thank you received: 86
Major breakthrough!
1. I got the NanoPC to login automatically upon booting.
2. It creates a hotspot automatically.
3. Starts the VNC server
4. Stays on after I quite my VNC client - and has no errors reconnecting over and over.

Now I just have two more task to figure out. Please offer suggestions!

A: I need the system to use a screen size of 1440 x 900 when headless (VNC). Right now it's a tiny block about 400x400 square!
B: need INDI Server to automatically start upon booting.

Then I will test it with my gear as a headless INDI controller for my Astro rig.

Making progress! Thanks all!

iOptron CEM120 EC2 and CEM25P
Celestron C11 EdgeHD and William Optics Star71
ASI 1600MM Pro, ASI 462MC
Moonlight Litecrawler (C11) and Motorfocus (WOStar71)
LodeStar X2 and ZWO OAG
Nextdome, AAG Cloudwatcher
MacMini
4 years 1 month ago #28642

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

  • Posts: 1117
  • Thank you received: 182
I solved this by writing a small script, making it executable (set the permissions accordingly) and calling it up during startup.
I need to check the exact syntax I used (once I get back home), but the core element was to use the command

xrandr -s 1440x900

In my case I used a different screen size, but 1440x900 is what you probably want for your Macbook Air.

You can check whether that works by calling up the terminal when you start up your NanoPC and then enter above command. The screen size should then change. If it does, it is simply a matter of calling up the command during startup. In that script you can then include other commands as you wish to be executed at startup (e.g. KStars). Or you can just add KStars to the startup items.
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
The following user(s) said Thank You: Peter Kennett
4 years 1 month ago #28645

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

  • Posts: 790
  • Thank you received: 86
Thanks! I looked (and tried) but 1360x768 is as close as I can get.
Where do I put the command so it occurs while booting?

PK

iOptron CEM120 EC2 and CEM25P
Celestron C11 EdgeHD and William Optics Star71
ASI 1600MM Pro, ASI 462MC
Moonlight Litecrawler (C11) and Motorfocus (WOStar71)
LodeStar X2 and ZWO OAG
Nextdome, AAG Cloudwatcher
MacMini
4 years 1 month ago #28646

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

  • Posts: 790
  • Thank you received: 86
Ok I found an easy to to autostart that commend. I just opened Preferences from the desktop, opened Default applications for LXsession, clicked on Autostart, clicked +add, and just typed "sudo xrandr -s 1360x768"
When I hit enter, it changed the heading to "manually auto started application" and executes it!
I tested it, and my headless NanoPC T4 works great!

Now I just need to get INDI Web Manager up and running.

iOptron CEM120 EC2 and CEM25P
Celestron C11 EdgeHD and William Optics Star71
ASI 1600MM Pro, ASI 462MC
Moonlight Litecrawler (C11) and Motorfocus (WOStar71)
LodeStar X2 and ZWO OAG
Nextdome, AAG Cloudwatcher
MacMini
Last edit: 4 years 1 month ago by Peter Kennett.
4 years 1 month ago #28649

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

  • Posts: 1117
  • Thank you received: 182
That's great, Peter! Looks like you are basically there.
One question, though: Why do you need INDI Web Manager? I just run everything on my Pi3 or my Zotac and log in via VNC. In other words, no part of INDI or KStars is running on my Desktop. That way I am completely flexible and can log in seamlessly from any device I want, e.g. from my Desktop until I go under cover, and then during the night from my iPhone, to check on progress and occasionally make adjustments without having to get up.
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
4 years 1 month ago #28650

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

  • Posts: 790
  • Thank you received: 86
That is a good point. I guess I was just trying to have all options on the table.
I will test it outside when I get a chance and see if any bugs pop up.

Thanks again for your help!

iOptron CEM120 EC2 and CEM25P
Celestron C11 EdgeHD and William Optics Star71
ASI 1600MM Pro, ASI 462MC
Moonlight Litecrawler (C11) and Motorfocus (WOStar71)
LodeStar X2 and ZWO OAG
Nextdome, AAG Cloudwatcher
MacMini
4 years 1 month ago #28654

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

  • Posts: 1941
  • Thank you received: 416
A more Linux-esque way of doing this is by adding an X config file in /etc/X11/xorg.conf with the proper settings for your display. But the xrandr method works as well, yes :)
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
4 years 1 month ago #28657

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

  • Posts: 1117
  • Thank you received: 182
Hi Wouter,

I also tried that, but I recall that I had problems with the new resolution remaining set in Xorg.conf. It would always reset again after shutting down the system. I ended up resorting to the xrandr script solution in the startup items.
Can you post how you changed the xorg.conf file to maintain a stable resolution when running a headless system?

Best

Jo
Atlas Pro AZ-EQ, ASI1600MM-Pro, ASI120MM-S, ES102ED, WO-Z61, Nikon D3300, ASI-EFW, ZWO LRGB,Ha,O3,S2 filter set
4 years 1 month ago #28669

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

  • Posts: 1941
  • Thank you received: 416
Hey Jo,

This is the xorg.conf file I use on my Odroid with Ubuntu MATE:
Section "Device"
Identifier      "ODROID"
Driver "armsoc"
Option "Debug"         "false"
Option "DPMS"          "false"
    Option      "NoFlip"    "false"
Option "NoHardwareMouse" "true"
    Option      "NoG2D"     "false"
EndSection
 
Section "ServerLayout"
Identifier      "Default Layout"
Option "BlankTime"     "0"
Option "StandbyTime"   "0"
Option "SuspendTime"   "0"
Option "OffTime"       "0"
EndSection
 
Section "DRI"
Mode            0666
EndSection
 
Section "Screen"
Identifier      "Default Screen"
Device "Mali-Fbdev"
DefaultDepth    24
        SubSection "Display"
            Virtual 1400 1050
        EndSubSection
EndSection

Apart from that I made no changes to the system.

Cheers, Wouter
Wouter van Reeven

ASI6200MM and 7 slot 2" filter wheel with a SkyWatcher Esprit 80 ED on a SkyWatcher HEQ5-Pro
ASI1600MM-Pro Cooled and 5 slot 1.25" filter wheel with an 8" TS Ritchey-Chrétien on a SkyWatcher EQ6-R
The following user(s) said Thank You: Jose Corazon
Last edit: 4 years 1 month ago by Wouter van Reeven.
4 years 1 month ago #28670

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

Time to create page: 0.297 seconds