-
howto Statup Scripts
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:
Code:
knoppix@Microknoppix:~$ cat /home/knoppix/.config/autostart/startup.desktop
[Desktop Entry]
Name=Startup
ServerExec="/bin/mkdir /tmp/test"
Icon=
Type=Application
...but there's no /tmp/test directory on boot :\
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
-
Senior Member
registered user
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.
Code:
knoppix@Microknoppix:~$ cat .config/autostart/startup.desktop
[Desktop Entry]
Name=Startup
Exec="/bin/mkdir /tmp/external"
Icon=
Type=Application
If there's errors with processing .config/autostart/* files, is there anywhere these errors will be logged so I can check for messages?
-
Senior Member
registered user
Examples
The first desktop file will create a new directory /tmp/testdir 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
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/mkTestfile.desktop
[Desktop Entry]
Name=mkTestfile
Exec=/usr/bin/touch /tmp/testfile
Terminal=false
Type=Application
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

HyperX FURY DDR4 4GB 8GB 16GB 32GB 3200 2400 2666 Desktop RAM Memory DIMM 288pin
$46.80

HyperX FURY DDR4 8GB 16GB 4GB 32GB 2666MHz PC4-21300 Desktop RAM Memory DIMM 288
$46.50

Gigastone DDR3 Desktop RAM 32GB (4x8GB) 1600MHz PC3-12800 CL11 1.5V 240 Pin
$59.99

Corsair Vengeance 32GB 16GB 8GB DDR3 1866MHz 1600MHz CL10 Desktop Memory RAM LOT
$48.99

Kingston HyperX FURY DDR3 8GB 16GB 32G 1600 1866 1333 Desktop Memory RAM DIMM
$45.80

16GB 2x8GB PC3-12800U 1333MHZ DDR3 240pin DESKTOP MEMORY RAM
$26.99

8GB 2X4GB DDR3 PC3-12800U Desktop Memory Ram DELL HP LENOVO ACER GATEWAY
$12.99

A-Tech 8GB DDR3 1600 PC3-12800 Laptop SODIMM 204-Pin Memory RAM PC3L DDR3L 1x 8G
$15.99

Apple Macbook Pro 13" Laptop | 8GB RAM +256GB SSD | OS High Sierra | WARRANTY
$229.00

Gigastone DDR4 16GB (8GBx2) 2666MHz PC4-21300 CL19 1.2V UDIMM 288 Pin Ram
$44.99