Losing GUI interface on RPI 2

all about Meteohub on the new Raspberry PI platform

Moderator: Mattk

User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Losing GUI interface on RPI 2

Post by admin »

ok, next update will have this line added into crontab if not already there.
For the moment feel free to add it as first line to your crontab.
Editing should be done by "crontab -e". Please copy and paste the line as any typos might break something.
User avatar
rainman110
Junior Boarder
Junior Boarder
Posts: 35
Joined: Wed Mar 31, 2010 2:19 am
Location: Mount Rainier

Re: Losing GUI interface on RPI 2

Post by rainman110 »

I don't find that line in crontab either:


root@meteohub-rpi-home:~# crontab -l
*/1 */1 * * * /bin/pidof histeval0 || /usr/bin/nice /home/meteohub/histeval0
*/1 * * * * /bin/cat /proc/uptime >/var/run/meteohub/alive
22,52 * * * * echo 'wdnow' >/dev/meteohub
13 */6 * * * /bin/pidof histeval2 || /usr/bin/nice /home/meteohub/histeval2
47 4 * * * /bin/pidof histeval3 || /usr/bin/nice /home/meteohub/histeval3
*/3 * * * * /bin/pidof wswinimport || /usr/bin/nice /home/meteohub/wswinimport 2>>/data/log/messages
17 */6 * * * rm /var/run/*.idx
18 */4 * * * /usr/bin/tail -n 1000 /var/log/messages >/var/log/messages.new; /bin/mv -f /var/log/messages.new /var/log/messages
26 6 * * * nice /srv/www/meteolog.cgi 0 0
#
User avatar
rainman110
Junior Boarder
Junior Boarder
Posts: 35
Joined: Wed Mar 31, 2010 2:19 am
Location: Mount Rainier

Re: Losing GUI interface on RPI 2

Post by rainman110 »

admin wrote:When you look at crontab via "crontab -l", don't you have this statement on the second line?

Code: Select all

*/1 * * * * ([ -n "`/bin/pidof thttpd`" ] && [ -n "`/bin/pidof thttpdbackup`" ]) || rcthttpd restart
This checks for thttpd running every minute and restarts services if they are down.

I added this line to crontab and am testing it now.

root@meteohub-rpi-home:~# crontab -l
*/1 * * * * ([ -n "`/bin/pidof thttpd`" ] && [ -n "`/bin/pidof thttpdbackup`" ]) || rcthttpd restart
*/1 */1 * * * /bin/pidof histeval0 || /usr/bin/nice /home/meteohub/histeval0
*/1 * * * * /bin/cat /proc/uptime >/var/run/meteohub/alive
22,52 * * * * echo 'wdnow' >/dev/meteohub
13 */6 * * * /bin/pidof histeval2 || /usr/bin/nice /home/meteohub/histeval2
47 4 * * * /bin/pidof histeval3 || /usr/bin/nice /home/meteohub/histeval3
*/3 * * * * /bin/pidof wswinimport || /usr/bin/nice /home/meteohub/wswinimport 2>>/data/log/messages
17 */6 * * * rm /var/run/*.idx
18 */4 * * * /usr/bin/tail -n 1000 /var/log/messages >/var/log/messages.new; /bin/mv -f /var/log/messages.new /var/log/messages
26 6 * * * nice /srv/www/meteolog.cgi 0 0
#
User avatar
rainman110
Junior Boarder
Junior Boarder
Posts: 35
Joined: Wed Mar 31, 2010 2:19 am
Location: Mount Rainier

Re: Losing GUI interface on RPI 2

Post by rainman110 »

Reporting back on my test. I have two identical RPi2 meteohubs hosting different weather stations, both running 5.0i. I appended the rcthttpd restart line to the crontab of one, and left the other one alone. Rebooted both. A day later, the meteohub with the rcthttpd restart line appended to the crontab is still running fine, while the web interface quit on the other meteohub within two hours. So at this point I would have to say the new crontab line seems to have fixed the problem, although a longer test period will help confirm this. I appended the rcthttpd restart line to the second meteohub as well a few hours ago, and the web interface is still up.

Boris thanks for the code and the instructions. At this point I would say that modification would likely solve this RPi2 problem if you include it in the next update. I will post back again if something changes.
Armond
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: Mon Dec 14, 2015 5:43 pm

Re: Losing GUI interface on RPI 2

Post by Armond »

Hi!
I have the same problem.
I try to connect with putty, but it wont work.
Am I doing right?
Attachments
putty.jpg
putty.jpg (52.46 KiB) Viewed 6266 times
User avatar
admin
Platinum Boarder
Platinum Boarder
Posts: 7854
Joined: Mon Oct 01, 2007 10:51 pm

Re: Losing GUI interface on RPI 2

Post by admin »

putty and port 80 is not a good idea :lol:
Did you use SSH before or is it the very first time?
Standard SSH port is 22.
Armond
Fresh Boarder
Fresh Boarder
Posts: 19
Joined: Mon Dec 14, 2015 5:43 pm

Re: Losing GUI interface on RPI 2

Post by Armond »

I just bought the RPi and just installed meteohub with my rfxtrx433e. I am tired of having my laptop on 24/7 with my weatherstation.
I have not use SSH before.
Post Reply