-
LXDE autostart scripts
I'm trying to get Knoppix 6 to autostart 2 scripts, both after it launches LXDE:
1. a script to run as root that mounts filesystems a certain way
for this I started by putting a symlink to the real script in rc5.d, but that didn't work, so I cp'ed the script to /etc/init.d/myscript.sh after setting chmod 755 and ran
Code:
update-rc.d myscript.sh defaults
which looked successful but it doesn't work after the remaster. I suppose all the rest of the init scripts need to run first to populated fstab, how would I do this?
2. a GUI python script to run after the desktop comes up. I've tried creating a /home/knoppix/.config/somescript.desktop file which contains:
Code:
[Desktop Entry]
Type=Application
Exec=/home/knoppix/somescript.py
and that didn't work, neither did creating ~./.config/openbox/autostart.sh containing:
Code:
# Run the system-wide support stuff
. $GLOBALAUTOSTART
# Programs to launch at startup
hsetroot ~/wallpaper.png &
xcompmgr -c -t-5 -l-5 -r4.2 -o.55 &
# Programs that will run after Openbox started
(sleep 2 && somescript.py) &
I can't seem to find any other command line edit that will accomplish this, which is what I need. Thanks for the help.
edit: I figured it out, do this:
create /etc/xdg/autostart/someentry.desktop containing:
Code:
[Desktop Entry]
Name=Somename
Comment=Scanner
Type=Application
Exec=/home/knoppix/somescript.py
Terminal=false
X-GNOME-Autostart-enabled=true
I also wanted to run a root mount script, which I did by creating another file in the same dir of somerootscript.desktop
Code:
[Desktop Entry]
Name=somerootscript
Comment=Somescript
Type=Application
Exec=/home/knoppix/rootscript.sh
Terminal=false
X-GNOME-Autostart-enabled=true
in /home/knoppix/rootscript.sh I put
Code:
#!/bin/bash
sudo /pathtorootscript/rootscript.sh
and that all worked. This took a ton of time to figure out, I hope it helps.
Similar Threads
-
By jogeedaklown in forum Customising & Remastering
Replies: 1
Last Post: 04-08-2010, 04:49 PM
-
By unckybob in forum Hardware & Booting
Replies: 2
Last Post: 11-18-2009, 07:15 PM
-
By advertising in forum General Support
Replies: 0
Last Post: 11-18-2009, 03:19 PM
-
By ztahf in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 04-29-2009, 12:20 AM
-
By arwen in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 04-10-2009, 08:25 AM
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 System X3850-X5 Server w/4x Intel Xeon E7-4870 CPU , 512 GB DDR3 RAM,NO HDD
$1299.99

IBM QRadar xx29 2x Xeon E5-2650v4 2x 900W PSU M5120 12x 3.5" Bay Server No RAM
$149.99

Unused IBM 09P0037 MAINBOARD For RS/6000 7044-170 P-Series
$375.00

IBM ADP Server Type 7870 AC1 NO HDD | 128GB RAM PC3L | 2 x Xeon E5620
$199.99

IBM SYSTEM X3500 M3 SERVER 7380AC1 TOWER Server XEON E5620 8GB RAID SEE NOTES
$108.92

IBM 02YC027 Seagate ST2400MM0129 2.4TB 10K SAS 12Gb/s 2.5" Server Hard Drive
$200.00

IBM 4262 SYSTEM x3200 Tower - HDD Wiped, NO OS
$80.00

Compaq ProLiant 1500R 5/100 rack server, Series 3155, with IBM 2.1GB HD, VINTAGE
$295.00

IBM 7915 AC1 M4 E27R704 Server Intel 2650V2 32GB RAM NO HDD w/ 2x 750w PSU
$250.00

Lot of 2 IBM blade center Type H chassis 8852
$559.00