-
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

Adaptec ASR-8805 12GBPS SAS/SATA/SSD Raid card with AFM-700 1GB Flash, Battery.
$119.99

LSI 9207-8i SATA/SAS 6Gb/s PCI-E 3.0 FW:P20 IT Mode for ZFS FreeNAS unRAID US
$39.99

BROKEN OWC ThunderBay 8 RAID 5 Edition 8-Bay External Drive
$167.90

Intel RAID Storage Expander RES2SV240 E91267-203 SAS SATA 6Gb 24 Port US
$65.99

J7TNV DELL PERC HBA330+ 12GBPS SAS SATA PCI-E X8 RAID Controller Adapter 0J7TNV
$54.99

ADAPTEC ASR-7805 Single 6gb/s 8int Port SAS/SATA Raid Controller With Cache
$12.00

700-0129-00 3 Ware Escalade PCI-X RAID Controller W/ Long Bracket ***Pulled***
$19.99

25R8076 IBM ServerRAID 8K SAS Raid Controller Module 39R8875 ***Pulled***
$19.90

Adaptec ASR 71605 1GB 16Port HBA RAID PCIe Controller Card w/ Battery 4x Cables
$99.00

Lot of 2 Fujitsu A3C40137316 SAS PCIe RAID Card w/ L3-25419-01A Module
$39.99