ssh key
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 [email protected] << 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 [email protected]"
(https://www.digitalocean.com/community/ ... sh-keys--2)
And run "./TVserverTidfix.sh"
But unfortunately it does not work. Someone who can think and fix?
There is no professional script but does its thing.
#!/bin/bash
timeNow=$(date +"%T") #Orsundsbro servern
dateNow=$(date "+%Y-%m-%d")
ssh -t -t [email protected] << 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 [email protected]"
(https://www.digitalocean.com/community/ ... sh-keys--2)
And run "./TVserverTidfix.sh"
But unfortunately it does not work. Someone who can think and fix?