Welcome to the Cumulus Support forum.
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
Auto starting CumulusMX Debian RPi
Moderator: mcrossley
-
- Posts: 15
- Joined: Sun 29 Mar 2015 8:49 pm
- Weather Station: Fineoffset
- Operating System: Windows 10
- Location: UK, Hereford
Auto starting CumulusMX Debian RPi
I'm running my RPI without a screen or keyboard attached. No GUI running.
I would like CumulusMX to autostart as the RPI boots but I have had no success and if I ssh onto the device I can get a session with CumulusMX running fine but this stops as soon as I close the client window.
There are so many different sets of instructions around I would appreciate a steer in the right direction.
Tx
I would like CumulusMX to autostart as the RPI boots but I have had no success and if I ssh onto the device I can get a session with CumulusMX running fine but this stops as soon as I close the client window.
There are so many different sets of instructions around I would appreciate a steer in the right direction.
Tx
-
- Posts: 2473
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Auto starting CumulusMX Debian RPi
Install the screen program. Then use the following commands (substitute /srv/CumulusMX for the location of your MX install):
Note that this command must be run from the location of CumulusMX.exe, so you will need to script a directory change first.
i.e. something like:
You will need to put this script in a location such as /etc/init.d, depending on whether your system uses upstart or systemd or whatever to run porgrams on start-up.
Code: Select all
screen -amds bash mono /srv/CumulusMX/CumulusMX.exe
i.e. something like:
Code: Select all
#!/bin/bash
cd /srv/CumulusMX
screen -amds bash mono /srv/CumulusMX/CumulusMX.exe
-
- Posts: 15
- Joined: Sun 29 Mar 2015 8:49 pm
- Weather Station: Fineoffset
- Operating System: Windows 10
- Location: UK, Hereford
Re: Auto starting CumulusMX Debian RPi
That seems to have sorted things, thank you.
- jpsc
- Posts: 179
- Joined: Tue 23 Aug 2011 6:06 pm
- Weather Station: Davis Vantage Vue, belfryboy USB
- Operating System: Raspbian Bullseye
- Location: Wye valley, Herefordshire, UK
- Contact:
Re: Auto starting CumulusMX Debian RPi
Does screen require a newer mono?
or have I done something wrong?
Code: Select all
pi@WeatherServer2 ~ $ sudo apt-get install screen
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
iselect screenie byobu
The following NEW packages will be installed:
screen
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/650 kB of archives.
After this operation, 923 kB of additional disk space will be used.
WARNING: The following packages cannot be authenticated!
screen
Install these packages without verification [y/N]? y
Selecting previously unselected package screen.
dpkg: unrecoverable fatal error, aborting:
reading files list for package 'libmono-i18n-cjk4.0-cil': Input/output error
E: Sub-process /usr/bin/dpkg returned an error code (2)
-
- Posts: 2473
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Auto starting CumulusMX Debian RPi
Looks like something went wrong with your Mono install. dpkg is trying to tidy up after the (earlier) mono install - and something isn't quite right.jpsc wrote:Does screen require a newer mono?
-
- Posts: 143
- Joined: Sun 10 Jan 2010 10:43 am
- Weather Station: WS2350
- Operating System: Raspberry Pi2 - Debian
- Location: Germany
- Contact:
Re: Auto starting CumulusMX Debian RPi
Hi
Maybe you want to try this instruction/Script I wrote last friday to manually Start|restart|stop Cumulus on a Raspberry Pi/Debian System.
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13767
there is also a solution how you can use the Script when the system restarts.
I am also always using Headless mode and it works perfect for me.
Jan
Maybe you want to try this instruction/Script I wrote last friday to manually Start|restart|stop Cumulus on a Raspberry Pi/Debian System.
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13767
there is also a solution how you can use the Script when the system restarts.
I am also always using Headless mode and it works perfect for me.
Jan
- jpsc
- Posts: 179
- Joined: Tue 23 Aug 2011 6:06 pm
- Weather Station: Davis Vantage Vue, belfryboy USB
- Operating System: Raspbian Bullseye
- Location: Wye valley, Herefordshire, UK
- Contact:
Re: Auto starting CumulusMX Debian RPi
I'll reupdate screenLooks like something went wrong with your Mono install
You're using screen aren't you?Maybe you want to try this instruction/Script I wrote last friday
-
- Posts: 2473
- Joined: Wed 08 Jun 2011 11:19 am
- Weather Station: Davis Vantage Pro 2 + Ecowitt
- Operating System: GNU/Linux Ubuntu 22.04 LXC
- Location: Alcaston, Shropshire, UK
- Contact:
Re: Auto starting CumulusMX Debian RPi
It's not screen that needs re-updating. As I said previously, it looks like your mono install didn't finish off completely, and your package manager is trying to clean up after that (mono) install. It's not actually getting on to the screen install - look at the error message.jpsc wrote:I'll reupdate screenLooks like something went wrong with your Mono install
-
- Posts: 143
- Joined: Sun 10 Jan 2010 10:43 am
- Weather Station: WS2350
- Operating System: Raspberry Pi2 - Debian
- Location: Germany
- Contact:
Re: Auto starting CumulusMX Debian RPi
yes, thats true and you are right, asking this question because when you are not able to install screen, you are also not able to use my script.jpsc wrote:You're using screen aren't you?
Unfortunately there seem to be no other possibillity to run CumulusMX than using Screen.
when readin earlier Posts form you, I can see, that you are having Problems installing screen.
Which Raspberry Pi are you using?
If you are using a Rasperry Pi2, please uninstall Mono and update it to the most current Version which is currently
mono --version
Mono JIT compiler version 4.0.1 (tarball Tue Apr 28 12:05:30 UTC 2015)
Please refer to this Post, to remove Screen first: https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13753
But pleasae keep in mind, this only works for Raspberry PI 2
If you are using a Raspberry Pi B (the old one) I would try to do the following
Make a DD Backup of your SD Card
Uninstall Mono according to the Post above.
Once Mono is uninstalled, install 'screen' first and than install mono again.
Based on your Logfiles, screen installation is complaining about mono installation ?
but looking again at your error messages: WARNING: The following packages cannot be authenticated!
screen it looks more as something is wrong in software.sources?
can oyu please try to install, lets say "ntpdate" for example?
sudo apt-get install ntpdate
Did you get this package without a Problem?
If not, reboot and try again....
Jan
- jpsc
- Posts: 179
- Joined: Tue 23 Aug 2011 6:06 pm
- Weather Station: Davis Vantage Vue, belfryboy USB
- Operating System: Raspbian Bullseye
- Location: Wye valley, Herefordshire, UK
- Contact:
Re: Auto starting CumulusMX Debian RPi
Sorry, typo - I meant mono.It's not screen that needs re-updating. As I said previously, it looks like your mono install didn't finish off completely, and your package manager is trying to clean up after that (mono) install. It's not actually getting on to the screen install - look at the error message.
This is a brand new install from scratch as of Sunday, I changed the SD card. It is a Pi2. Cumulus is on a thumb drive so I can change the O/S easily.
-
- Posts: 143
- Joined: Sun 10 Jan 2010 10:43 am
- Weather Station: WS2350
- Operating System: Raspberry Pi2 - Debian
- Location: Germany
- Contact:
Re: Auto starting CumulusMX Debian RPi
okay, if this Installation is so new, and you are okay with a new Installation, maybe you can start form the scratch again ?
- bzncrew
- Posts: 25
- Joined: Sat 25 Jul 2015 10:43 pm
- Weather Station: Vantage Pro 2
- Operating System: Win 7
- Location: Bozeman MT
Re: Auto starting CumulusMX Debian RPi
Forgive me, but I'm very new to Linux.
I go back to the DOS days with autoexec.bat which I fully understand. This script stuff is new to me.
I can run the
screen -amds bash mono /home/pi/CumulusMX/CumulusMX.exe
command. Runs fine and I can close the SSH session and it keeps running.
How do you make a script? I created on called cstart.sh and it won't do anything when I type it at the command line
Where does it live?
How do you make the OS execute it on boot?
This I can't seem to find any simple answer for.
I go back to the DOS days with autoexec.bat which I fully understand. This script stuff is new to me.
I can run the
screen -amds bash mono /home/pi/CumulusMX/CumulusMX.exe
command. Runs fine and I can close the SSH session and it keeps running.
How do you make a script? I created on called cstart.sh and it won't do anything when I type it at the command line
Where does it live?
How do you make the OS execute it on boot?
This I can't seem to find any simple answer for.
freddie wrote:Install the screen program. Then use the following commands (substitute /srv/CumulusMX for the location of your MX install):
Note that this command must be run from the location of CumulusMX.exe, so you will need to script a directory change first.Code: Select all
screen -amds bash mono /home/pi/CumulusMX/CumulusMX.exe
i.e. something like:
You will need to put this script in a location such as /etc/init.d, depending on whether your system uses upstart or systemd or whatever to run porgrams on start-up.Code: Select all
#!/bin/bash cd /srv/CumulusMX screen -amds bash mono /srv/CumulusMX/CumulusMX.exe
-
- Posts: 239
- Joined: Sat 13 Jun 2015 5:57 pm
- Weather Station: FineOffset WS3080
- Operating System: Debian Buster - Raspbian - Raspb
- Location: Germany - nearby Kassel
Re: Auto starting CumulusMX Debian RPi
Hi
Why don't you try out this Start stop Script?
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13767
Also if you don't want to use it, there is also an explanation how you can add a Cron Job which is starting a script at system boot.
Why don't you try out this Start stop Script?
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13767
Also if you don't want to use it, there is also an explanation how you can add a Cron Job which is starting a script at system boot.
- pete_c
- Posts: 228
- Joined: Wed 12 Oct 2011 11:22 pm
- Weather Station: Davis Vue-Pro2 - Fine Offset
- Operating System: W2003-XPSP3-Linux
- Location: Time Traveler
Re: Auto starting CumulusMX Debian RPi
@bzncrew
To ease the transition over to Linux install WinSCP on your wintel computer.
WinSCP can be downloaded here: http://winscp.net/eng/index.php
A nice web based light management software is called Webmin.
It will provide a nice functional GUI to manage your RPi2.
Read about it here: http://www.webmin.com/deb.html
Here are the steps to install it:
Use Putty to SSH to your RPi2 and do the following to install Webmin
1 - sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
2 - wget http://prdownloads.sourceforge.net/weba ... 60_all.deb
3 - sudo dpkg --install webmin_1.760_all.deb
This if the main page of the Webmin GUI. I use it to update the RPi2 and to keep tabs on it.
BTW with Webmin you can add an autostart script, disable or enable it from autostarting, create a cron job and do the same with that via the Webmin GUI. No Putty / SSH / WinSCP involved as the Webmin application knows exactly where the scripts belong.
To ease the transition over to Linux install WinSCP on your wintel computer.
WinSCP can be downloaded here: http://winscp.net/eng/index.php
WinSCP offers up a Windows like explorer view of your RPi2. You can move, copy and edit files / rights to files with WinSCP. IE: you can create a script in any directory and change it so it executes with WinSCP.How do you make a script?
I created on called cstart.sh and it won't do anything when I type it at the command line
Where does it live?
A nice web based light management software is called Webmin.
It will provide a nice functional GUI to manage your RPi2.
Read about it here: http://www.webmin.com/deb.html
Here are the steps to install it:
Use Putty to SSH to your RPi2 and do the following to install Webmin
1 - sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
2 - wget http://prdownloads.sourceforge.net/weba ... 60_all.deb
3 - sudo dpkg --install webmin_1.760_all.deb
This if the main page of the Webmin GUI. I use it to update the RPi2 and to keep tabs on it.
BTW with Webmin you can add an autostart script, disable or enable it from autostarting, create a cron job and do the same with that via the Webmin GUI. No Putty / SSH / WinSCP involved as the Webmin application knows exactly where the scripts belong.
You do not have the required permissions to view the files attached to this post.
- Pete
Automator
Automator
- bzncrew
- Posts: 25
- Joined: Sat 25 Jul 2015 10:43 pm
- Weather Station: Vantage Pro 2
- Operating System: Win 7
- Location: Bozeman MT
Re: Auto starting CumulusMX Debian RPi
Jank,jank wrote:Hi
Why don't you try out this Start stop Script?
https://cumulus.hosiene.co.uk/viewtopic.php?f=27&t=13767
Also if you don't want to use it, there is also an explanation how you can add a Cron Job which is starting a script at system boot.
That script is perfect. The instructions are actually quite clear. I think all the switch options make me think it wasn't what I needed. Perfect.
So now I see that CRON is my friend. Lots of stuff you can do with it. Very powerful.
--Russ