Jump to content

Stargazers Lounge Uses Cookies

Like most websites, SGL uses cookies in order to deliver a secure, personalised service, to provide social media functions and to analyse our traffic. Continued use of SGL indicates your acceptance of our cookie policy.

sgl_imaging_challenge_banner_30_second_exp_2_winners.thumb.jpg.b5430b40547c40d344fd4493776ab99f.jpg

Astrofriend

Setup a Linux astroserver with Raspberry

Recommended Posts

I have for a long time looking and read about those Linux astroservers. I'm a Windows user and don't know much about Linux. But now it's seems that they have come very far  with the functions they can do with a Linux and Raspberry (one card computer) system to control the telescope and connected equipment.

With a small Raspberry computer you lower the powerconsumption a lot, the weight is much lower and it's very small in size, you can mount it direct on the telescope. It's very cheap and you can divide the system on many computers if you wish. It's very amazing that a small thing like this can do so much! And the best of all, you can do a lot of the work in your Windows computer without any Linux installation, only Linux in the Raspberry computer, maybe later if I want to do more advanced things I have to install Linux in my PC, but not yet.

I just have to give it a try.

I will use the Kstars with Indidrivers and the Ekos software. One thing I must have is that the astroserver must be independent of the network and clients. Just use the client to start the process and have some overview. It doens't then matter if the network or clients goes down, the server will continue its work.

Do you find it interesting?

I have tried to document the steps I do when building this Linux/Raspberry system and have it on my homepage:

http://astrofriend.eu/astronomy/projects/project-kstars-indi-linux/project-kstars-indi-linux.html

 

Just six days ago I know almost nothing about Linux and Raspberry, but now I'm almost there to have a working system. I had a massive help from the Swedish forum Astronet to achive this.

I update my homepage and correct it when I get more knowledge and experience.

Linux for astronomy use has evolved very much the last years, earlier it looks so complicated, now even I can setup a system, or at least I hope to get it to work, I'm not there yet. But it's the most exiting I have done for many years!

 

/Lars

Edited by Astrofriend
  • Like 3

Share this post


Link to post
Share on other sites

There are now a couple of active threads here on the subject. I am also going that route :)

Regarding one of the issue you mention on your website about resolution


"The screen resolution when I in remote mode with VNC is to low, I need 1920x1200 pixel"

there is a document in that thread on the INDI forum that gives a tip on how to fix this:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

www.indilib.org/media/kunena/attachments/3322/StuffthatIdidtocreatemyimageforKStars.pdf

You should edit this document in the edit the following file in the Pi-boot partition which should have automatically mounted after the imaging process:


/boot/config.txt
With the following options:
hdmi_force_hotplug=1
hdmi_group=2
hdmi_mode=46 (1440 x 900@60Hz)


For the 3rd one, you can set your resolution to whatever you like. I set it to option 46 (1440 x 900) since that is my laptop resolution.
https://www.raspberrypi.org/forums/viewtopic.php?f=91&t=19600
https://www.raspberrypi.org/documentation/configuration/config-txt.md

(The reason we are doing this is because when you connect via VNC from the remote computer and there is no HDMI device attached, you want it to have a decent resolution)

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Hope that helps!

  • Like 1

Share this post


Link to post
Share on other sites

Hi Vox,

Yes now I got it to work with your instructions and some help from INDi that you sugested. I replaced tightVNC with VinoVNC and then I got my desktop Raspberry on my remote VNC, then I changed the resoultion as you sugested and now I can run the Raspberry and test it.

Now I trying to start Kstars and connect to my Canon 6D camera. I get it to work but very slowly and it lockup sometimes. It feels like it is out of memory.

Anyway, with this I have come vary far. And I like this concept, if the Raspberry is slow now I just have to wait a halfyear and it will have com more powerful models.

I updated my homepage with the latest instructions if someone want to setup a Raspberry as I have done:

http://astrofriend.eu/astronomy/projects/project-kstars-indi-linux/project-kstars-indi-linux.html

Most updates in part 3 and I have put in a lot of links to.

 

Thanks for the help!

/Lars

Edited by Astrofriend
  • Like 1

Share this post


Link to post
Share on other sites

Glad to know you worked it out!

So far I've found solutions for all the issues I had. That is the beauty of openSource ! Yes it takes time and ressearch and can be frustrating at time but I learned a lot and my setup is far more effecient than when I was running Windows ;)

Looks good to :)

Edited by Vox45
  • Like 1

Share this post


Link to post
Share on other sites

I just want to share an elegant solution, that just came out (around august), for powering an external HDD and a PI

The issue has always been that powering an external HDD from the USB port of the PI is a bit problematic. Western Digital came out with an optimized drive for RPI with a proprietary cable that powers the drive AND the PI

The solution is quite cheap (cable and 341GB drive for ~50£) note that the cable and drive have proprietary connectors, the drive is specifically made for the PI

Here is the link for the accessories and drive: https://www.wdc.com/en-gb/products/wdlabs.html

and a youtube link showing how it all connects

 

 

 

 

Share this post


Link to post
Share on other sites

Hi Vox45,

Yes, that could be usefull in future for me and others, thank you for sharing!

 

I contiinue my setup of the Kstars/Ekos system. Now the control of EQMod mount working very well, but the Canon 6D camera lock, both Kstars and the camera itselfe. What I know there are others who use this camera with Kstars/Ekos so it's just something with my setup.

I had to redo my installation and setup from scratch, and now I used my own project instructions, the instructions is a collection from others and my text that connect them together with comments, I have update it a lot and I think it's pretty good now:

http://astrofriend.eu/astronomy/projects/project-kstars-indi-linux/project-kstars-indi-linux.html

 

Note:

This instruction is when you have everything related to Linux, Kstars/Ekos & INDI installed on the astroserver and the client is a Windows machine, but you can use part of it for other configurations.

 

My problem to solve that is left now is:

1.

Canon 6D camera communication, why does it hang the Kstars? It opens the shutter, the problem seems to be transfer of the image from the camera to Ekos.

2.

When connection the camera it's mounted by automatic to desktop, I have disable it but still it's doing this. But very easy to unmount manually so I can it like this when testing.

3.

How to replace ip number with hostname when connecting with VNC, I think I have tried every combination without success.

 

/Lars

 

Edited by Astrofriend

Share this post


Link to post
Share on other sites
2 hours ago, Astrofriend said:

3.

How to replace ip number with hostname when connecting with VNC, I think I have tried every combination without success.

Try <hostname>.local

Share this post


Link to post
Share on other sites

Hi,

I still can't connect to my Raspberry.

This are my names:

computername=raspberr

username=rb01

 

vnc-login-01.jpg

 

On Raspberry in terminal window it display: rb01.raspberr: @

 

In UltraVNC I had tried every combination (local network)

 

rb01@raspberr

rb01@raspberr:5900

raspberr\rb01

raspberr\rb01:5900

and now

raspberr.local

rb01@raspberr.local

rb01@raspberr:local

 

But with IP adress 192.168.1.13 it connect as it should, but because it is a dynamic ip adress I don't know for sure what it is.

 

vnc-login-02.jpg

 

I'm cleary don't understand this how to connect in with a hostname.

 

/Lars

Share this post


Link to post
Share on other sites

Can you connect with SSH using PuTTY? That would tell you if the problem is the VNC server. I use X11vnc as my server.

Share this post


Link to post
Share on other sites

You can set up a fixed IP address in the Raspberry OS.

Share this post


Link to post
Share on other sites

Ken:

I think the VNC server work as it should becauser when I connect with IP number there isn't any problem. I will try SSH and PuTTY and see what it will say, just have to figure out how to used it.

 

Gina:

Yes that's how I have solved it earlier with a fixed IP address. But then I have problem to connect to internet with the astroserver (over local network which is not only my own sometimes). Maybe that problem is something in the setup too.

 

Thansk for help and the ideas to solve it!

/Lars

 

Share this post


Link to post
Share on other sites

Hi Jazza,

 

Always more combination to try :-) , it says that the display is defoult set to =0 so maybe it could work.

 

raspberr.0

rb01@raspberr.0

raspberr\rb01.0

raspberr:0

rb01@raspberr:0

raspberr\rb01:0

 

Sorry, no connection.

 

/Lars

 

Edited by Astrofriend

Share this post


Link to post
Share on other sites

Have you tried:

raspberr.local:5900

raspberr.local:5901

Share this post


Link to post
Share on other sites

Hi Kens,

 

I tried

 

raspberr.local:5900

raspberr.local:5901

 

but also

 

raspberr.local::5900

raspberr.local::5901

 

Because in the UltraVNC windows thay have "host::port" as an example. I haven't seen anywere to use "::" as a delimiter earlier.

 

Didn't work.

 

Thanks for the idea!

 

/Lars

Edited by Astrofriend

Share this post


Link to post
Share on other sites

If you can connect with an IP address but not with a name then it sounds like there is no name/ip mapping.

You can test this by noting the IP address and then adding an entry to the hosts file.

On Windows, hosts lives in Windows\System32\drivers\etc and is a plain text file.

You should see some examples in there, but basically:

x.x.x.x        raspberr

Its usually a tab char between the ip and name.

This sets up a mapping and then you should be able to ping raspberr.

Assuming that works then UltraVNC should as well, with a port number if needed.

So that only works with a static IP address. If you need dynamic then you will need to set up a DHCP and DNS pair so that a DNS entry gets created with the correct IP.

You should also be able to configure DHCP so it always gives your RPi the same IP address.

  • Like 1

Share this post


Link to post
Share on other sites

Hi dwc,

It sounds that I shouldn't try another twohundred combination of usernames :-)

I don't have much knowledge of network setup even if I had spent many many years with computers.

 

26 minutes ago, dwc said:

If you need dynamic then you will need to set up a DHCP and DNS pair so that a DNS entry gets created with the correct IP.

My client is a windows machine and my astro server is a Raspberry with Linux. Shall I use your above information to setup both machines if I have dynamic address?

 

Many thanks!

 

/Lars

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By bottletopburly
      Currently setting up a pi4 with indigosky which will be run via APT , running win10  and the the latest APT Beta release 3.75.2 , now I can connect to indigosky server via browser , but I can’t connect via APT  indigo control panel throws up an error can’t connect to indigo or indi server  server address is default Indigosky , server port 7624 , on pressing navigate server error says dns address can’t be found , has anyone been successful in connecting to indigosky via APT running win10.
    • By Craig Shaw
      I have searched SGL for a tutorial incase this has been covered so forgive me if it has. I've also searched the web in general and couldn't find a full tutorial to do this, so i have collated a couple of tutorials that make it work.

      I have managed to get SkySafari to work with a £32 ish Raspberry Pi3 and the cable that came with my scope with a usb to serial converter - the same things you need for connecting to a PC. It allows me to control the scope using the SkySafari Plus app on my tablet or phone AND it creates a wifi hotspot on the Raspberry Pi so it doesnt have to be on a network to work. This also turns the pi into a natty mini wireless router which is handy if you travel since it gives you a private wireless network when plugged into hotel wired internet ?
      ***STANDARD DISCLAIMER***
      I AM NOT RESPONSIBLE FOR ANY DAMAGE THAT MAY OCCUR  TO YOUR HARDWARE BY FOLLOWING THIS POST OR ANYTHING LINKED TO THIS POST

      It takes about 30 mins to do the tinkering, make sure you use the latest LITE version of raspbian.
      You need:
      Raspberry Pi 3 Portable power to it (preferably) Raspbian Lite Image file Appropriate cables to connect your Telescope to it via USB Computer connected to network Network cable to connect Raspberry Pi for initial setup A GoTo / Push To etc telescope mount compatible with SkySafari Plus / Pro A nice case for the Raspberry Pi
      You need to know a little about accessing the Raspberry Pi by SSH.
      For windows, use Win32 Disk Imager to burn the latest Raspbian LITE image to a micro sd card. Open the card on the pc (called boot) and make a blank file on it called 'ssh' - no file extension. This enables ssh access automatically.
      Stick it in your Pi and plug it into your network router and a power source.
      Find its ip address - i log into my router by typing its ip address into a web browser and look at connected devices, there are other methods though.

      I use a program called Putty to ssh.

      There are many tutorials on how to do the above and it isnt as hard as it first seems.

      I used 2 tutorials to do this and i will link to them directly as the original authors explain it better than me. The first one is muuuch longer than the second which is just 3 steps so bare with it.
       
      ***NOTE***
      When the first tutorial suggests a reboot after the upgrade, DO IT! Then ssh back into the Pi and continue.

      Don't bother rebooting after tutorial 1 either.
      Tutorial 1 - Turn Raspberry Pi into a portable wifi hotspot

      See 'CONNECTING' after doing step 2 in the next tutorial to actually connect to the scope as what you have just done changes it a bit.

      Tutorial 2 - Make it talk to SkySafari App and the 'Scope

      You can now unplug the pi from your router. Plug your USB to serial adapter into the pi, your telescope cable into that and connect it to your scope as you would do with a pc (mine is into the AutoStar hand box) and use it as a stand alone adapter just like the £200 SkyFi adapter!

      CONNECTING:
      To connect SkySafari to the pi you simply connect your tablet or phone to the pi's network like you would any other wifi network, i called mine Scope, connect using the security key / password you made up in tutorial 1. Open SkySafari and follow step 3 in the second tutorial but with IP address 192.168.0.10 - the port is still 4000 (unless you changed it)

      If you are at home and your cable is long enough to reach your router you can plug the pi into that and use your home internet too - which you cant do with the SkyFi adapter!
      I am going to shorten my serial cable to make it a neater package, i can always solder new plus to make an extension if i ever need one.

      I am also working on finding out how to make it share usb internet so a 4g dongle can be plugged into it when out and about since when you connect to the pi's wifi in the field you will not have internet on the device connected to it.
      Also the Pi could possibly be used for imaging or tracking, someone on here will probably know more on this.
    • By Astrofriend
      Maybe you have plans to build an astroserver to control your equipment. One thing to figure out is how fast computer do you need. Too fast and it take more power then necesary (my computer is battery operated), to slow and it will not work properly.
      I have made a table over the CPU loads on my Astroserver during different work:
      http://www.astrofriend.eu/astronomy/tutorials/tutorial-cpu-load/tutorial-cpu-load.html
      Maybe it could be to some help for you.
      /Lars
    • By OlegKutkov
      Hello.
      This is my first post here and I wish to introduce a little program i wrote.
      This is a RAW to FITS batch converter. Converter supports many cameras vendors: Canon, Nikon, Pentax, Fuji, Konica, Hasselblad and so on.
      May be useful for someone who shooting space with DSLR and wanna do a real science, search for variable stars for example.
      Program is very simple (see attached screenshot), you just set input directory, output directory and few conversion options.
      You can choose how to process color channels from the RAW file.
      Possible options is:
      - convert RGB to avarage grayscale
      - store all three channels as separate images in a one FITS.
      - store all three channels in a separate FITS's
      - store only one selected channel
      Converter supports multithreading conversion, depending on your cpu/cores count.
      All data you entered in UI will store in FITS header. Some data (like exposure, date and camera model) may be acquired from the RAW file, this is preferable.
       
      This is a free software licensed under GPLv2 license.
      You can get it on github: https://github.com/olegkutkov/Raw2Fits
      Program uses libraw library and i highly recommend to get latest stable version of this library instead of using your distro version. If you have multiple LibRaw versions on your system - please carefully check which version you linking and using in runtime. Correct Makefile if needed.
      Libraw version older than 0.17 may not correctly extract EXIF data from the RAW files.
      Also you will need cfitsio, any version is Ok.
      User interface is built with GTK3 toolkit and tested with Gnome 3, Mate and Cinnamon DE on different Mint, Debian and Fedora distributions.
       
      After executing 'sudo make install' command this program should appear in your Applications menu
      Hope this program will be useful for someone.
      I will be glad to hear your feedback, propositions and bug reports



       

    • By jdmgray
      Hi all, 
      Not sure I'm in the right place or not but I was hoping someone could help...
      I have an Altair Astro GPCamV2 and the box tells you to get the software from http://cameras.altairastro.com/ and that it will only work with Windows!
      I was wondering if anyone else has gotten this type of cam working on a Linux os before and what the steps were for doing so. (Other software that will work, terminal commands for the drivers etc.)
      thank you in advance ?
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.