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
Forum rules
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
Porteus Kiosk section of the forum is unmaintained now. Its kept in a 'read only' mode for archival purposes.
Please use the kiosk contact page for directing your queries: https://porteus-kiosk.org/contact.html
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Run 2 Commands on startup
Hi Steve,
Check samples in our documentation:
http://porteus-kiosk.org/parameters.html#run_command
Thanks
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.
Run 2 Commands on startup
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
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
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Run 2 Commands on startup
Thats because you are breaking basic config rules:
http://porteus-kiosk.org/remote-managem ... quirements
check point f).
http://porteus-kiosk.org/remote-managem ... quirements
check point f).
Please add [Solved] to your thread title if the solution was found.
Run 2 Commands on startup
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
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
- fanthom
- Moderator Team
- Posts: 5667
- Joined: 28 Dec 2010, 02:42
- Distribution: Porteus Kiosk
- Location: Poland
- Contact:
Run 2 Commands on startup
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'.
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.