Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. Linux:
  2.  
  3. Create file /opt/init.sh and add:
  4. service apache2 start
  5. service mysql start
  6.  
  7. Add to /etc/sudoers file:
  8. %sudo ALL=NOPASSWD: /opt/init.sh
  9.  
  10.  
  11. Windows:
  12.  
  13. WIN+R > type shell:startup and pres Enter
  14.  
  15. In startup folder create file wls-autostart.vbs and add:
  16. Set ws = WScript.CreateObject("WScript.Shell")
  17. cmd = "C:\Windows\System32\bash.exe -c 'sudo /opt/init.sh'"
  18. ws.Run cmd, 0, false
  19. Set ws = Nothing
  20. WScript.quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement