Har nyss fått igång owfs och försöker mig på att installera rrdtool också,
har gått igenom wikin men blir någonting fel för mig.
get_temp.sl ger mig tempen men säger åtkomst nekas,
graph_temp.pl ger mig åtkomst nekad.
thony@lort:~$ get_temp.sh
ERROR: opening '/home/thony/rrddata/outside_temp.rrd': Åtkomst nekas
19.44
thony@lort:~$ cat /mnt/1wire/28.*/temperature
19.625thony@lort:~$ get_temp.sh
ERROR: opening '/home/thony/rrddata/outside_temp.rrd': Åtkomst nekas
19.63
thony@lort:~$ graph_temp.pl
bash: /home/thony/bin/graph_temp.pl: Åtkomst nekas
thony@lort:~$
thony@lort:~$ graph_temp.pl
bash: /home/thony/bin/graph_temp.pl: Åtkomst nekas
thony@lort:~$ sudo graph_temp.pl
sudo: graph_temp.pl: command not found
thony@lort:~$
letar jag upp filen och tittar i egenskaper så står det att root äger filen.
hittade en kod på nätet som gör mig till root men får fortfarande inte tillgång till filen
kör jag ls för mappen får jag
Get_temp.sh i grönt text
graph_temp.pl i vit text
thony@lort:~$ sudo chmod a+x graph_temp.pl
[sudo] password for thony:
thony@lort:~$ sudo ./graph_temp.pl
problem generating the graph: opening '/home/anders/rrddata/outside_temp.rrd': Filen eller katalogen finns inte
Done!
thony@lort:~$
gjorde en ny installation av ubuntu och nu får jag följande
thony@lort:~$ get_temp.sh
ERROR: opening '/home/thony/rrddata/outside_temp.rrd': Permission denied
20.82
thony@lort:~$ sudo get_temp.sh
[sudo] password for thony:
sudo: get_temp.sh: command not found
thony@lort:~$ sudo ./get_temp.sh
sudo: ./get_temp.sh: command not found
thony@lort:~$ graph_temp.pl
problem generating the graph: Could not save png to '/var/www/graph_temp.png'
Done!
thony@lort:~$
klickar jag mig in i mappen var/www ser jag att graph_temp.png uppdaterar sig varannan minut, och jag får upp en graf om jag dubbel klickar på den,