Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Linux:
- Create file /opt/init.sh and add:
- service apache2 start
- service mysql start
- Add to /etc/sudoers file:
- %sudo ALL=NOPASSWD: /opt/init.sh
- Windows:
- WIN+R > type shell:startup and pres Enter
- In startup folder create file wls-autostart.vbs and add:
- Set ws = WScript.CreateObject("WScript.Shell")
- cmd = "C:\Windows\System32\bash.exe -c 'sudo /opt/init.sh'"
- ws.Run cmd, 0, false
- Set ws = Nothing
- WScript.quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement