Astrofriend's homepage

www.astrofriend.eu
Share: Twitter Reddit Facebook Gmail Gmail Email
Search Astrofriend's homepage:

Valid CSS!

All pages shall now have been validated

Info Cookies (Kakor) / GDPR

Navigation

Advertisement /
Annons:

Tutorial News

Advertisement / Annons:

My astronomy project:
Setup astroserver with Raspberry Pi3


Content:

  1. Change from Windows to a Linux astroserver
  2. Collecting information and demands on the astroserver
  3. Installation of Ubuntu Mate, setup WIFI
  4. Installation of vino VNC, setup screen
  5. Installation of KStars on Raspberry (Old, don't use this instruction !)
  6. Test of controlling the Canon camera in KStars/Ekos (Old, don't use this instruction !)
  7. Test of controlling the mount with INDI EQMod in KStars/Ekos (Old, don't use this instruction !)

Related projects:

Note:
I take no responsibility for what are written here, you use the information at your own risk!


4, Installation of vino VNC, setup screen:

Read this very well written help PDF file:


Update the Kernel, according to the help file above you should do that.

Open the terminal window. You find it under Applications>System Tools>MATE Terminal:

Read the PDF file above item 14, give the following commands in terminal window, you maybe will be asked to type in your password:

Note: You must have an internet connection to do this!

  1. sudo rpi-update

    (type in your password when asked for it)

    This will take several minutes, do a restart when finished.


As I have told earlier I plan to remote control my Raspberry, I tried to use Tight VNC first, but didn't work in my system, but maybe for you. With help from the INDI forum I instead installed the Vino VNC, much better result.

If you didn't set your user account to auto login, read item 8 to 9 in the above help file how to setup auto login to desktop.

Read item 16 to 19 in the above help file for Vino VNC installation. Type in this three commands in terminal window, do a return after each.

  1. sudo apt-get install vino

    Type in your password when asked, type in a Y when asked.

  2. vino-preferences

    A new window will open up

    Check "Allow other users to view your desktop"

    Check "Allow other users to control your desktop"

    Check "Require a password" and type in your password

    Close windows

  3. gsettings set org.gnome. Vino require-encryption false

Maybe you want setup VNC to auto start, then you don't have to connect any monitor or keyboard to Raspberry, you control it from your VNC client.

  1. Open System>Control Center:
  2. Click on "Startup Applications"
  3. Startup Programs: Go to bottom, click on "Add" button
  4. Type in a name "vino VNC"
  5. Browse in file system: usr>lib>vino>vino-server and open
  6. Restart system

You also have to edit the config.txt file to have the correct screen resolution when over remote control with VNC, when in remote you normally don't have any monitor connected and then you need a virtual one.

To edit the config.txt file and some other system files you must be logged in as root, If you haven't already setup a password for root user you do it like this in the terminal:

  1. sudo passwd root

    First it will ask for your user password

    Then it asks for new UNIX password

    Then it asks to retype the new UNIX password

Root setup

Maybe you have to restart your raspberry after this, then from system menu: Log Out and change user to root. You have to type in "root" user. Now you can change config.txt files. Maybe you get an Error message. I just clicked on the OK button, not sure what it's about.

You have the full description here:

Show hidden files with file manager (under Places menu):

Hidden files

It's a bit complicated to find some of the files you need to change if you work with terminal (like old DOS window) because they are hidden. You have to check "Show Hidden Files" on to see them, I did it in the menu window Places>Computer check "Show Hidden Files" under View. And I didn't use the terminal later, I use the files under Places menu, much easier if you are a Windows user like me.

Find config.txt file:

Edit of config.text file

You find the config.txt file under Computer>File System>boot. You are a more serious person than I'm and backup the file before you change anything. Be very careful here, if you do something wrong the machine it maybe don't startup and you have to reinstall everything!

Double click on the config.txt file and then "Display" button.

You will then see this, scroll down to hdmi_force_hotplug

Edit HDMI_force_hotplug=1

Now read item 5 in the PDF file above how to edit this config.txt file. Note how I changed the parameter hdmi_force_hotplug to =1. Don't forget to erase "#" in front of the command you want to use!

Then according to the help file above I changed hdmi_mode to =2, that means it use the DMT part of the resolution table.

Now one last thing to edit, the resolution you want to use. First I tried 1920x1200@60Hz, give me fine big screen to look at, but it slow the system down and I changed once more to a lower resolution, the 1368x768@60Hz and now it update the screen faster, this is only a problem in remote mode over VNC. This was the code I used: hdmi_mode=39.

You should set the Power Management also. Open Control Center and click on "Power management" button. Set "Never" on both computer and Display sleep. Close window.

Save your config.txt file and change back from root to your own username, but better to restart your Raspberry.

Go Back to content

Go Back
To page V

Advertisement / Annons: