-
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

IBM H2224XXLR3 2U 4-Node 24SFF Barebone Chassis 24-Trays 2x 2130W PSU W/ Rails
$299.99

IBM X3550 M4 1U Server 2x E5-2670 2.6GHz 16-Cores 128gb 2x 300gb M5110 2x 550w
$149.99

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 16 GB, DUAL 750W, 2 X 1TB SERVER
$249.99

TrueNas Server 2x E5-2666 v3 2.9ghz 64gb 71605 2x 900w
$299.99

IBM Server RS/6000 43P Model 140 Type 7243-140 192MB RAM No HDD - READ
$180.00

IBM S822LC 2x Power8 3.49GHz 512Gb 1.9Tb SSD 2U Linux Server - 8001-22C Power 8
$599.96

IBM 8284-22A POWER8 S822 Server Dual 3.89GHz 6 Core CPU 512GB RAM w/ PowerVM
$699.00

IBM AS400 Model 150 v4r5
$1000.00

IBM X3650 M4 Server 2X Xeon E5-2630, 2.30Ghz, 6 Cores, 32GB DDR3, NO HDD/FREESHP
$147.95

IBM X3650 M5 5462-AC1,2 X E5-2640V3 2.6GHZ 8C, 32GB, DUAL 750W, 2 X 1TB SERVER
$279.99