Guest User

Untitled

a guest
Jul 23rd, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. You can add an item in `~/.config/autostart`,
  2.  
  3. e.g Open `~/.config/autostart/myscript.desktop`, and paste the following contents
  4.  
  5. ```
  6. [Desktop Entry]
  7. Name=MyScript
  8. GenericName=A descriptive name
  9. Comment=Some description about your script
  10. Exec=/path/to/my/script.sh
  11. Terminal=false
  12. Type=Application
  13. X-GNOME-Autostart-enabled=true
  14. ```
  15. For example(x11vnc):
  16.  
  17. ```
  18. [Desktop Entry]
  19. Type=Application
  20. Name=x11vnc
  21. Exec=x11vnc -usepw -reopen -bg -forever &
  22. Comment=Starts an x11vnc server on port kali:5900
  23. ```
  24.  
  25. And make sure the script is executable.
Add Comment
Please, Sign In to add comment