Moderator Control Panel ]

ssh key

ssh key

Postby johnnysamu » Sun Apr 02, 2017 2:59 am

I have done a bash script that sends the time to the MOI pro from another computer. This is to get good sync, and I do not get moi pro and tvheadend to have the right time.

There is no professional script but does its thing.


#!/bin/bash
timeNow=$(date +"%T") #Orsundsbro servern
dateNow=$(date "+%Y-%m-%d")
ssh -t -t root@192.168.1.88 << HERE
date=timeNow
date=dateNow
# ln -nf /usr/share/zoneinfo/Europe/Stockholm /etc/localtime
# hwclock -w
MoiProtimeNow=$(date +"%T")
MoiProdateNow=$(date "+%Y-%m-%d")
HERE

echo "
have now tried sending time:" $dateNow $timeNow " To MoiPro" "which now has the time: " $MoiProdateNow$

# exit


Then I send over the public key to the Moi pro ""ssh-copy-id root@192.168.1.88"
(https://www.digitalocean.com/community/ ... sh-keys--2)

And run "./TVserverTidfix.sh"

But unfortunately it does not work. Someone who can think and fix?
johnnysamu
 
Posts: 34
Joined: Wed Nov 19, 2014 2:43 am

Return to MOI Pro

Who is online

Users browsing this forum: No registered users and 2 guests