Results 1 to 4 of 4

Thread: howto Statup Scripts

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    2

    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

  2. #2
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512
    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'.

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    2
    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?

  4. #4
    Senior Member registered user
    Join Date
    Feb 2010
    Posts
    512

    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
  •  


Vintage Gaming Gateway EV 700 Computer Monitor Tested Look picture

Vintage Gaming Gateway EV 700 Computer Monitor Tested Look

$100.00



Vintage Apple Disk II Analog Card 820-0007 picture

Vintage Apple Disk II Analog Card 820-0007

$50.00



Dell Inspiron 600M vintage laptop computer, 40GB HD, Windows 98 SE picture

Dell Inspiron 600M vintage laptop computer, 40GB HD, Windows 98 SE

$110.00



Vintage Original Apple AirPort Card 630-2883, Model PC24-H - Tested picture

Vintage Original Apple AirPort Card 630-2883, Model PC24-H - Tested

$19.00



Vintage Apple Modulator A2M4020 for Television picture

Vintage Apple Modulator A2M4020 for Television

$32.00



Vintage Sony VGN-SZ240P 13” Intel T2400 1gb 100GB HD Nvidia Windows 10 works picture

Vintage Sony VGN-SZ240P 13” Intel T2400 1gb 100GB HD Nvidia Windows 10 works

$49.90



Vintage Intel Pentium Pro 200 MHz 256K KB80521EX200 SL22V Socket 8 Collectible picture

Vintage Intel Pentium Pro 200 MHz 256K KB80521EX200 SL22V Socket 8 Collectible

$30.00



IBM Thinkpad T41 vintage laptop 14 inch Screen, 40GB HD, Windows 98 SE picture

IBM Thinkpad T41 vintage laptop 14 inch Screen, 40GB HD, Windows 98 SE

$120.00



VINTAGE 1992 NEWPORT SYSTEMS 700-0002-001 REV E GREAT CONDITION  picture

VINTAGE 1992 NEWPORT SYSTEMS 700-0002-001 REV E GREAT CONDITION

$99.99



Vintage Comfort Keyboard Systems Ergomagic Mechanical AT/PS2 Keyboard picture

Vintage Comfort Keyboard Systems Ergomagic Mechanical AT/PS2 Keyboard

$134.99