• Benvenuti su RaspberryItaly!
Benvenuto ospite! Login Login con Facebook Registrati Login with Facebook


Valutazione discussione:
  • 0 voto(i) - 0 media
  • 1
  • 2
  • 3
  • 4
  • 5

[-]
Tags
riavvio programmato raspberry del

Riavvio programmato del Raspberry
#1
Ciao Ragazzi, circa un'anno fà, leggendo su vari post, ho impostato il riavvio automatico ogni settimana del raspberry, ora vorrei modificare il tempo di riavvio ma purtroppo non ricordo come ho fatto...
Ho controllato e non ho utilizzato crone
Forse ho utilizzato un file dove ho impostato il tempo di riavvio....
Mi sapete aiutare??
Ciao grazie a tutti
Risposta
#2
Codice:
sudo crontab -e
oppure guarda in
Codice:
sudo nano /etc/rc.local

in ogni modo, se non hai eseguito molti comandi (speranza remota, però è utile provare), lancia
Codice:
history > history_log.txt
e guardaci dentro, magari trovi i comandi che usasti un anno fa



Coltiva linux, che windows si pianta da solo! (cit.)
Risposta
#3
Grazie provo....
Risposta
#4
Sad 
Ciao ho accesso al RBpi mediante PUtty, in modalità terminale e come amministratore,  ecco il risultato:
comando: sudo crontab -e
Codice:
# Edit this file to introduce tasks to be run by cron.
#
# Each task to run has to be defined through a single line
# indicating with different fields when the task will be run
# and what command to run for the task
#
# To define the time you can provide concrete values for
# minute (m), hour (h), day of month (dom), month (mon),
# and day of week (dow) or use '*' in these fields (for 'any').#
# Notice that tasks will be started based on the cron's system
# daemon's notion of time and timezones.
#
# Output of the crontab jobs (including errors) is sent through
# email to the user the crontab file belongs to (unless redirected).
#
# For example, you can run a backup of all your user accounts
# at 5 a.m every week with:
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/
#
# For more information see the manual pages of crontab(5) and cron(8)
#
# m h  dom mon dow   command

--------------------------------------
comando: sudo nano /etc/rc.local
Codice:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# Print the IP address
_IP=$(hostname -I) || true
if [ "$_IP" ]; then
 printf "My IP address is %s\n" "$_IP"
fi
/usr/local/bin/noip2
sh /home/bananapi/opt/openhab/start.sh
exit 0

---------------------------
Comando: history > history_log.txt

non mi restituisce nulla
Risposta
#5
ok, ho finito i jolly Smile

allora ignoro dove la guida che hai seguito ti abbia fatto mettere il reboot di sistema.

cosa c'è in /bananapi/opt/ecc ecc?
che script è?



Coltiva linux, che windows si pianta da solo! (cit.)
Risposta
#6
ciao, in /home/bananapi/opt/openhab/start.sh
file per eseguire OpenHab sistema di supervisione
Risposta
  


Vai al forum:


Navigazione: 1 Ospite(i)
Forum con nuovi Post
Forum senza nuovi post
Forum bloccato
Forum Redirect