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
EXCELLENT Apple 16 Inch MacBook Pro 2019/2020 32GB RAM 1TB SSD 2.3Ghz 8-Core i9
$1249.00
Dell 14" TOUCHSCREN Laptop 8th Gen Core i5 16GB RAM 512GB SSD/256 Bluetooth W11
$235.00
Dell OptiPlex 5060 MT Computer Core i7 8th Gen 6-core 32GB Ram 1TB NVMe SSD PC
$375.00
Dell 14" Screen Laptop 8th Gen Core i5 16GB RAM 256GB SSD Bluetooth WebCam Win11
$185.00
Intel - Core i5-13600K 13th Gen 14 cores 6 P-cores + 8 E-cores 24M Cache, 3.5...
$314.99
Intel Core I7-4770 CPU Processor 3.40 GHz Quad Core Haswell SR149 LGA 1150...
$35.00
HP Essential Laptop Computer 15.6" HD Intel Core i7 8 GB memory; 128 GB SSD
$449.99
Intel - Core i7-13700K 13th Gen 16 cores 8 P-cores + 8 E-cores 30M Cache, 3.4...
$449.99
Lenovo Loq 15Irh8 15" Laptop Core i5-13420H GeForce RTX 2050 16GB 512GB SSD W11H
$519.99
Dell 15.6" NVIDIA Gaming Laptop - Intel Quad Core i7 64GB RAM 2TB SSD Windows 11
$523.00