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'.
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:
...but there's no /tmp/test directory on boot :\Code:knoppix@Microknoppix:~$ cat /home/knoppix/.config/autostart/startup.desktop [Desktop Entry] Name=Startup ServerExec="/bin/mkdir /tmp/test" Icon= Type=Application
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
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'.
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.
If there's errors with processing .config/autostart/* files, is there anywhere these errors will be logged so I can check for messages?Code:knoppix@Microknoppix:~$ cat .config/autostart/startup.desktop [Desktop Entry] Name=Startup Exec="/bin/mkdir /tmp/external" Icon= Type=Application
The first desktop file will create a new directory /tmp/testdir if it does not already exist.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/mkTestdir.desktop [Desktop Entry] Name=mkTestdir Exec=/bin/mkdir -p /tmp/testdir Terminal=false Type=Application
Code:knoppix@Knoppix720cd:~$ cat /home/knoppix/.config/autostart/mkTestfile.desktop [Desktop Entry] Name=mkTestfile Exec=/usr/bin/touch /tmp/testfile Terminal=false Type=Application
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
$159.99
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
$139.95
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
$201.44
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
$160.00
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
$995.00