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 5362 IBM System/36 Mini-Computer Mainframe 5291 2, CRT Terminal DM12N501
$219.99
GMK Awaken - Mainframe base kit (BNIB - Factory Sealed)
$100.00
VINTAGE IBM Type 4869 External 5 1/4" ~ Floppy Disk Drive Mainframe ~
$129.99
Digital DEC LK201 Terminal Keyboard RJ11 Connection Mainframe
$49.00
6 Vintage Computer Tape Reels mainframe 3200 5000 data ibm magnetic processor
$99.00
IBM Mainframe Vintage MVS/XA DFP V2 R3 Microfiche (~ 300K pages on ~800 cards)
$80.00
HP HEWLETT PACKARD 9826 Vintage Computer
$524.00
VINTAGE CPU IBM MCM POWER7 - MAINFRAME PROCESSOR
$49.00
S300 Chassis Portable ITX Portable TYPECmini Desktop Computer Mainframe Chassis
$192.05
Xargon 1 Beyond Reality RARE Game Floppy 3.5” Floppy Mainframe Collection
$349.99