AUTO-RUN command on STARTUP (when porteus is up-n-running)

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
testsforknowledge
Black ninja
Black ninja
Posts: 42
Joined: 07 Jan 2013, 16:44
Distribution: PORTEUS
Location: slovenia

AUTO-RUN command on STARTUP (when porteus is up-n-running)

Post#1 by testsforknowledge » 26 Feb 2013, 14:52

where can i put some command ,
that it will be executed when porteus is up-n-running?

(let-s say if i wish to start gimp automatically)???

thnx for help

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#2 by Ahau » 26 Feb 2013, 21:23

hi testsforknowledge,

To autostart an application when your desktop environment starts up, try copying the .desktop file from /usr/share/applications/ into /etc/xdg/autostart. If you're looking to run a script or something prior to the desktop opening up, you can add a line to /etc/rc.d/rc.local.
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#3 by Hamza » 26 Feb 2013, 21:26

@Ahau, It has been confirmed by fanthom that rc.local script is executed before Xserver so no GUI could be executed. I don't think that's the right option as the user want to execute a software such as GIMP which will need at least Xserver :)
NjVFQzY2Rg==

User avatar
Ahau
King of Docs
King of Docs
Posts: 1331
Joined: 28 Dec 2010, 15:18
Distribution: LXDE & Xfce 32/64-bit
Location: USA

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#4 by Ahau » 26 Feb 2013, 21:32

Yes, Hamza, you are correct. I should have been more clear in my statement that this would not work for opening up an app inside a Desktop Environment.
Please take a look at our online documentation, here. Suggestions are welcome!

User avatar
brokenman
Site Admin
Site Admin
Posts: 5542
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#5 by brokenman » 26 Feb 2013, 23:29

Please remember to give as much info as possible when asking for help. A good start would be which architecture you are using such as 32 or 64bit. Next it would be useful to know which version of Porteus you are running and which desktop environment you are booting into such as xfce, lxde, razor, kde4.
How do i become super user?
Wear your underpants on the outside and put on a cape.

testsforknowledge
Black ninja
Black ninja
Posts: 42
Joined: 07 Jan 2013, 16:44
Distribution: PORTEUS
Location: slovenia

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#6 by testsforknowledge » 27 Feb 2013, 08:29

- How to start let/s say GIMP(or another prg with GUI) automatically, when PORTEUS is up-n-running?
(but porteus is booted from USB)

- how to make some folder automatically copies from USB (folder of PORTEUS USB) to Desktop

Thank you
i have Porteus 1.2, 32bit

User avatar
Ed_P
Contributor
Contributor
Posts: 3314
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#7 by Ed_P » 01 Mar 2013, 04:42

This thread may interest you:

viewtopic.php?f=81&t=1955

Don't let the title throw you.
Ed

User avatar
fanthom
Site Admin
Site Admin
Posts: 4613
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#8 by fanthom » 01 Mar 2013, 06:34

@ testsforknowledge
How to start let/s say GIMP(or another prg with GUI) automatically, when PORTEUS is up-n-running?
copy relevant .desktop file from /usr/share/applications to ~/.config/autostart (for LXDE/XFCE/Razor) or ~/.kde4/Autostart (for kde4)
- how to make some folder automatically copies from USB (folder of PORTEUS USB) to Desktop
use /etc/rc.d/rc.local for this purpose

Cheers
Please add [Solved] to your thread title if the solution was found.

testsforknowledge
Black ninja
Black ninja
Posts: 42
Joined: 07 Jan 2013, 16:44
Distribution: PORTEUS
Location: slovenia

AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#9 by testsforknowledge » 25 Mar 2013, 08:27

fanthom wrote:@ testsforknowledge
How to start let/s say GIMP(or another prg with GUI) automatically, when PORTEUS is up-n-running?
copy relevant .desktop file from /usr/share/applications to ~/.config/autostart (for LXDE/XFCE/Razor) or ~/.kde4/Autostart (for kde4)
- how to make some folder automatically copies from USB (folder of PORTEUS USB) to Desktop
use /etc/rc.d/rc.local for this purpose

Cheers

tested 1st part: added link into ~/.kde4/Autostart/ folder and when all is loaded, it starts my program.

BUT,
does anyone know why it is started 2x?? I run BLENDER, but i do not know yet, why it opens 2 blenders. when i close one, after it openes one more.

User avatar
Hamza
Warlord
Warlord
Posts: 1847
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#10 by Hamza » 25 Mar 2013, 18:40

Did you added that blender command into 2 files? Did you used '&' tweak in order to run your software in background?
NjVFQzY2Rg==

User avatar
fanthom
Site Admin
Site Admin
Posts: 4613
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: AUTO-RUN command on STARTUP (when porteus is up-n-runnin

Post#11 by fanthom » 25 Mar 2013, 19:32

tried with avidemux and it does not appear again after closing.
Please add [Solved] to your thread title if the solution was found.

Post Reply