Results 1 to 3 of 3
Hi Guys,
I after a bit of help getting a script to run on login please. I think this is in the correct area, I've read that Limpus is based ...
- 07-24-2010 #1Just Joined!
- Join Date
- Jul 2010
- Posts
- 2
How to start script on login
Hi Guys,
I after a bit of help getting a script to run on login please. I think this is in the correct area, I've read that Limpus is based on Fedora distro.
I can't say I know Linux in any great detail.
The idea is to display a full screen an image when the os loads.
Below details all the instructions that I've found so far and the relevant system info.
The script is sound as it works when run manually. It doesn't run automatically all on boot-up.
This is something that needs to be set up across many machines, so I'm looking for a solution like this that I can set up from an installer type script.
System: Acer Revo
OS: Limpus Linux
Runstate: 5
Login: Set to log in automatically under 'dummy' profile
Script set up:
File name/location: /etc/init.d/mystartup.sh
File Contents:
--Start
#!/bin/bash
echo 'script running?' > /tmp/my.log
eog -f '/root/Desktop/x.jpg'
--End
Added executable permission:
chmod +x /etc/init.d/mystartup.sh
Created a symbolic link to the file:
ln -s /etc/init.d/mystartup.sh /etc/rc.d/rc5.d/S50mystartup.sh
That's it I think. If anyone can fill in any gaps, so I can get this working it will be massively appreciated. I'm sure it's just a simple thing I'm missing.
I'm starting to wonder whether i've taken the wrong approach somehow?!
Cheers, Ben
- 07-25-2010 #2Just Joined!
- Join Date
- Jul 2010
- Posts
- 2
You don't need the script in the /etc/init.d directory. Scripts in that directory get run when the system starts up, assuming they're properly linked to the appropriate run level in the /etc/rc.d* directories. Since you're using eog, I assume you're running the Gnome desktop, yes? I don't have a lot of experience with it, but here's a snippet from the Gnome site:
"Autostart Of Applications During Startup
By placing an application's .desktop file in one of the Autostart directories the application will be automatically launched during startup of the user's desktop environment after the user has logged in."
The full documentation can be found on the Gnome web site. I can't post a link now, I'm too new to the forum. But here's an attempt to get you where you need to be:
library<dot>gnome<dot>org/devel/autostart-spec/
Full details at that location.
- 07-25-2010 #3Just Joined!
- Join Date
- Jul 2010
- Posts
- 2
That sounds more like it.
Didn't think to check under Gnome specifically - thanks a lot!


Reply With Quote