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
Vintage Gaming Gateway EV 700 Computer Monitor Tested Look
$100.00
Vintage Apple Disk II Analog Card 820-0007
$50.00
Dell Inspiron 600M vintage laptop computer, 40GB HD, Windows 98 SE
$110.00
Vintage Original Apple AirPort Card 630-2883, Model PC24-H - Tested
$19.00
Vintage Apple Modulator A2M4020 for Television
$32.00
Vintage Sony VGN-SZ240P 13” Intel T2400 1gb 100GB HD Nvidia Windows 10 works
$49.90
Vintage Intel Pentium Pro 200 MHz 256K KB80521EX200 SL22V Socket 8 Collectible
$30.00
IBM Thinkpad T41 vintage laptop 14 inch Screen, 40GB HD, Windows 98 SE
$120.00
VINTAGE 1992 NEWPORT SYSTEMS 700-0002-001 REV E GREAT CONDITION
$99.99
Vintage Comfort Keyboard Systems Ergomagic Mechanical AT/PS2 Keyboard
$134.99