Run 2 Commands on startup

'User made' tutorials related to Porteus Kiosk edition.
Official kiosk documentation can be find here: http://porteus-kiosk.org/documentation.html
Post Reply
steve1882
Ronin
Ronin
Posts: 3
Joined: 12 Apr 2018, 12:47
Distribution: ok

Run 2 Commands on startup

Post#1 by steve1882 » 12 Apr 2018, 13:47

Hi,

I'm trying to run 2 commands on start up, I want to remove Remina and launch FireFox on boot.

I can get both commands working when I run each of them separately by running these commands below.

run_command=sed -i '/remmina.desktop/d' /etc/xdg/tint2/tint2rc (removes remina)

run_command=sed -i 's/#su - guest/su - guest/' $scripts/gui-app (launches FireFox)

I can remove Remina but then Firefox doesn't launch and vice versa.

Any help on the script to remove Remina and then launch FireFox automatically would be great.

Thanks

Steve

User avatar
fanthom
Site Admin
Site Admin
Posts: 5152
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Run 2 Commands on startup

Post#2 by fanthom » 12 Apr 2018, 14:39

Hi Steve,

Check samples in our documentation:
http://porteus-kiosk.org/parameters.html#run_command

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

steve1882
Ronin
Ronin
Posts: 3
Joined: 12 Apr 2018, 12:47
Distribution: ok

Run 2 Commands on startup

Post#3 by steve1882 » 13 Apr 2018, 10:37

Hi Fanthom,

We've already tried this and still not having any luck I'm afraid.

I must mention we're a school running a virtual Citrix network and trying to roll out Porteous as our new build.

This is part of our current config, however it will not run these in tandom.

#remove remmina
run_command=sed -i '/remmina.desktop/d' /etc/xdg/tint2/tint2rc

#start Firefox Automatically
run_command=sed -i 's/#su - guest/su - guest/' $scripts/gui-app

Any help would be much appreciated.

Thanks,

Steve

User avatar
fanthom
Site Admin
Site Admin
Posts: 5152
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Run 2 Commands on startup

Post#4 by fanthom » 13 Apr 2018, 10:48

Thats because you are breaking basic config rules:
http://porteus-kiosk.org/remote-managem ... quirements

check point f).
Please add [Solved] to your thread title if the solution was found.

steve1882
Ronin
Ronin
Posts: 3
Joined: 12 Apr 2018, 12:47
Distribution: ok

Run 2 Commands on startup

Post#5 by steve1882 » 13 Apr 2018, 12:17

Hi Fanthom,

This is all relatively new to me still, we have tried running both commands on one line. Please see below what we've tried.

run_command=sed -i '/remmina.desktop/d' /etc/xdg/tint2/tint2rc & run_command=sed -i 's/#su - guest/su - guest/' $scripts/gui-app

run_command=sed -i '/remmina.desktop/d' /etc/xdg/tint2/tint2rc; run_command=sed -i 's/#su - guest/su - guest/' $scripts/gui-app

run_command=sed -i '/remmina.desktop/d' /etc/xdg/tint2/tint2rc && run_command=sed -i 's/#su - guest/su - guest/' $scripts/gui-app

If you or anyone else could point me in the right direction on how to get both commands working on one line that would be great.

Thanks,

Steve

User avatar
fanthom
Site Admin
Site Admin
Posts: 5152
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Run 2 Commands on startup

Post#6 by fanthom » 13 Apr 2018, 12:47

You are putting 'run_command=' parameter as 'run_command=' parameter value which is obviously wrong.

You need to use 'run_command=' as parameter and two or more commands as 'parameter value'.
Please add [Solved] to your thread title if the solution was found.

Post Reply