Results 1 to 4 of 4

Thread: howto Statup Scripts

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    2

    howto Statup Scripts

    Hello!

    How do I get a script to execute on boot in a persistent usb knoppix install?

    I tried this, but it didn't work:

    Code:
    knoppix@Microknoppix:~$ cat /home/knoppix/.config/autostart/startup.desktop 
    [Desktop Entry]
    Name=Startup
    ServerExec="/bin/mkdir /tmp/test"
    Icon=
    Type=Application
    ...but there's no /tmp/test directory on boot :\

    more info about my setup:
    Code:
    knoppix@Microknoppix:~$ uname -a
    Linux Microknoppix 3.9.6 #25 SMP PREEMPT Sat Jun 15 15:27:01 CEST 2013 i686 GNU/Linux

  2. #2
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    I would suggest that you read the latest Desktop Entry Specification. On the page Recognized desktop entry keys you will find out that there is no key 'ServerExec'.

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    2
    Thanks for your fast response!

    I updated the "ServerExec" line to "Exec" as per the link you provided, but there's still no /tmp/test file getting created on boot.

    Code:
    knoppix@Microknoppix:~$ cat .config/autostart/startup.desktop 
    [Desktop Entry]
    Name=Startup
    Exec="/bin/mkdir /tmp/external"
    Icon=
    Type=Application
    If there's errors with processing .config/autostart/* files, is there anywhere these errors will be logged so I can check for messages?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512

    Examples

    The first desktop file will create a new directory /tmp/testdir if it does not already exist.
    Code:
    knoppix@Knoppix720cd:~$ cat /home/knoppix/.config/autostart/mkTestdir.desktop 
    [Desktop Entry]
    Name=mkTestdir
    Exec=/bin/mkdir -p /tmp/testdir
    Terminal=false
    Type=Application
    The second desktop file will create an empty file /tmp/testfile if it does not already exist.
    Code:
    knoppix@Knoppix720cd:~$ cat /home/knoppix/.config/autostart/mkTestfile.desktop 
    [Desktop Entry]
    Name=mkTestfile
    Exec=/usr/bin/touch /tmp/testfile
    Terminal=false
    Type=Application

Posting Permissions

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


IBM System X3650 M4 7915AC1 Server 2*Intel Xeon E5-2640 0 2.5GHz 8GB SEE NOTES  picture

IBM System X3650 M4 7915AC1 Server 2*Intel Xeon E5-2640 0 2.5GHz 8GB SEE NOTES

$135.89



IBM eServer xSeries 226 6LFF 2*Xeon 2.8GHz 6GB RAM No HDD 2*514W PS Tower Server picture

IBM eServer xSeries 226 6LFF 2*Xeon 2.8GHz 6GB RAM No HDD 2*514W PS Tower Server

$159.99



IBM SYSTEM x3200 - HDD Removed picture

IBM SYSTEM x3200 - HDD Removed

$69.99



IBM X3500 M3 Server 2x E5620 8-Core CPU 128GB RAM M5015 RAID 3TB 6TB 9TB SAS HDD picture

IBM X3500 M3 Server 2x E5620 8-Core CPU 128GB RAM M5015 RAID 3TB 6TB 9TB SAS HDD

$139.95



IBM X3500 M3 Server 2x E5620 8-Core CPU 128GB RAM M5015 RAID 4TB 8TB 16TB HDD picture

IBM X3500 M3 Server 2x E5620 8-Core CPU 128GB RAM M5015 RAID 4TB 8TB 16TB HDD

$139.95



IBM x3650 M5 SFF 24 Bay 1x Xeon E5-2620v4 16GB RAM ServeRAID M5210 2x 900W picture

IBM x3650 M5 SFF 24 Bay 1x Xeon E5-2620v4 16GB RAM ServeRAID M5210 2x 900W

$201.44



IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 0HDD SERVER  picture

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 0HDD SERVER

$205.99



IBM x3650M3 Server Dual x5690 6 Core 3.47GHZ 64 GB DDR3 2x 146GB SAS picture

IBM x3650M3 Server Dual x5690 6 Core 3.47GHZ 64 GB DDR3 2x 146GB SAS

$160.00



IBM HS23 Server 2x Xeon E5-2630 @ 2.30 GHz NO HDD NO RAM NO OS (LS) picture

IBM HS23 Server 2x Xeon E5-2630 @ 2.30 GHz NO HDD NO RAM NO OS (LS)

$58.45



IBM 9406-520 i5 520 System i 520 Server picture

IBM 9406-520 i5 520 System i 520 Server

$995.00