Enviado em 21/07/2016 - 08:07h
Olá pessoal!Enviado em 21/07/2016 - 09:11h
Bom dia, Daniel!nano /etc/rc.local
#!/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. /caminho/do/script/script.sh exit 0
chmod +x /caminho/do/script/script.sh
Enviado em 21/07/2016 - 10:38h
Olá brunoanderson!#!/bin/bash # Somente um teste... echo "Sistema inicializado!!!" leafpad & xterm &
#!/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. /root/Documentos/teste.sh exit 0
chmod +x /root/Documentos/teste.sh
Enviado em 21/07/2016 - 11:46h
Certo... então, procedimento dispensado. rsupdate-rc.d teste.sh defaults
Enviado em 21/07/2016 - 14:24h
Já tentei sim...e apresenta esse erro:insserv: warning: script 'teste.sh' missing LSB tags and overrides
#! /bin/sh ### BEGIN INIT INFO # Provides: anacron # Required-Start: $remote_fs $syslog $time # Required-Stop: $remote_fs $syslog $time # Default-Start: 2 3 4 5 # Default-Stop: # Short-Description: Run anacron jobs # Description: The first purpose of this script is to run anacron at # boot so that it can catch up with missed jobs. Note # that anacron is not a daemon. It is run here just once # and is later started by the real cron. The second # purpose of this script is that said cron job invokes # this script to start anacron at those subsequent times, # to keep the logic in one place. ### END INIT INFO
Enviado em 21/07/2016 - 14:34h
Você pode agendar via crontab.#crontab -e @reboot /home/user/test.sh
Enviado em 21/07/2016 - 16:20h
Olá rodrigofl20 !# 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 @reboot /root/Documentos/teste.sh
Enviado em 21/07/2016 - 16:25h
Não amigo, o crontab é uma "agenda" do linux.crontab -ee na janela que abrir vai colocar
@reboot /root/Documentos/teste.sh
Enviado em 21/07/2016 - 16:45h
Foi o que eu fiz...digitei no terminal o comando:crontab -e
Enviado em 22/07/2016 - 08:56h
Cara, eu tive o mesmo problema a alguns dias atrás. Meu script não iniciava com o linux de jeito nenhum...nano /lib/systemd/system/getty@.service
touch ~/.bash_profile
Enviado em 22/07/2016 - 11:19h
Obrigado pelas ajudas brunoanderson !#!/bin/sh ### BEGIN INIT INFO # Provides: AutoStartScript.sh # Required-Start: $local_fs $remote_fs $network $syslog # Required-Stop: $local_fs $remote_fs $network $syslog # Default-Start: 2 3 4 5 # Default-Stop: 0 1 6 # Short-Description: Executar scripts na inicialização. # Description: Executar scripts personalizados na inicialização do sistema. ### END INIT INFO # Criado e configurado para executar scripts na inicialização do sistema. # Basta colocar o caminho do script: # Ex: /root/teste.sh
[Desktop Entry] Name=ExecuteStart GenericName=Auto Start Scripts Comment=Configuração de auto inicialização de scripts. Exec=/etc/init.d/AutoStartScripts.sh Terminal=false Type=Application X-GNOME-Autostart-enabled=true
chmod +x /etc/init.d/AutoStartScripts.sh chmod +x /root/teste.sh
Enviado em 22/07/2016 - 11:22h
Veja comComo gerar um podcast a partir de um livro em PDF
Automatizando digitação de códigos 2FA no browser
Resolver problemas de Internet
Como compartilhar a tela do Ubuntu com uma Smart TV (LG, Samsung, etc.)
Músicas de Andrew Hulshult no DOOM (WAD)
Instalar o Apache, MySQL e PHP no Oracle Linux 8
Bloqueando telemetria no Deepin 23.1
Como converter imagens PNG/JPEG para SVG em linha de comando
Fez porcaria no teu repositório Git? Aprenda a restaurar uma versão anterior do seu código!
Ajuda Pra Melhoria do NFTABLES. (6)
erro no Light-Locker, tela não bloqueia (1)
Linux mint não desliga corretamente mesmo mexendo no grub (3)