Results 1 to 2 of 2

Thread: best way to run scripts automatically after boot

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    2013-Nov
    Posts
    42

    best way to run scripts automatically after boot

    I might be a little noobish, but:
    Whats the easiest way to run .sh scripts after login, e.g. activate the Thinkpad Trackpoint?
    In Kali 1 I simply added a autorun task, but now I can only run programs, no scripts.

    I tried with rc.local, but the scripts were not working.
    Executing them manually after boot everything works.

  2. #2
    Name Taken Guest
    That's because Kali 2.0 uses Systemd. The proper way is to create a oneshot Systemd service unit file then enable it.

    Code:
    [Unit]
    Description=Trackpoint Script
    
    [Service]
    Type=oneshot
    RemainAfterExit=yes
    ExecStart=/root/trackpoint.sh
    
    [Install]
    WantedBy=graphical.target

Similar Threads

  1. Automation scripts
    By Falcon_Hoodlum in forum NetHunter How-Tos
    Replies: 2
    Last Post: 2017-05-04, 08:29
  2. start ssh automatically?
    By lasermole in forum NetHunter General Questions
    Replies: 0
    Last Post: 2014-12-01, 21:01
  3. Install Scripts
    By s3v3nh4cks in forum Installing Archive
    Replies: 1
    Last Post: 2014-11-28, 14:11
  4. Nautilus scripts
    By detron in forum TroubleShooting Archive
    Replies: 1
    Last Post: 2013-04-03, 20:49

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •