Page 1 of 1
Run 2 Commands on startup
Posted: 12 Apr 2018, 13:47
by steve1882
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
Run 2 Commands on startup
Posted: 12 Apr 2018, 14:39
by fanthom
Hi Steve,
Check samples in our documentation:
http://porteus-kiosk.org/parameters.html#run_command
Thanks
Run 2 Commands on startup
Posted: 13 Apr 2018, 10:37
by steve1882
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
Run 2 Commands on startup
Posted: 13 Apr 2018, 10:48
by fanthom
Thats because you are breaking basic config rules:
http://porteus-kiosk.org/remote-managem ... quirements
check point f).
Run 2 Commands on startup
Posted: 13 Apr 2018, 12:17
by steve1882
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
Run 2 Commands on startup
Posted: 13 Apr 2018, 12:47
by fanthom
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'.