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
Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2
$315.00
đŸ”¥Intel NUC Mini Pc Core i5, Up to 32GB RAM, 2TB SSD Windows 10 Pre Install
$269.00
Lenovo IdeaCentre 3 07IRB8 Desktop Intel Core i5-13400 16GB 512GB SSD W11H
$399.99
HP ProDesk 600 G4 SFF (Core i5-8500 @3.0GHz, 8GB RAM 256GB SSD) Desktop NO OS
$84.99
Intel Core i9-12900K Unlocked Desktop Processor - 16 Cores (8P+8E) & 24 Threads
$299.99
AMD Ryzen 7 9700X 8-Core 16-Thread Desktop Processor - 8 Core And 16 Thread - Up
$349.99
NEW Intel Core i9 8-Core 11900K 5.30GHz i9-11900K SRKND LGA1200 CPU Processor
$212.98
Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor
$14.69
HP Envy TE01-5147c Desktop Intel Core i7-14700 2.1GHz 32GB 512GB 1TB W11P
$575.99
HP PROBOOK 640 G8 | INTEL CORE I7-1165G7 2.80GHZ | 256GB | 16GB RAM | NO OS
$229.99