Hey there.
I'm new in write bash scripts in fact this is my first one so please be patient ;). Also english is not my native language but i hope you understand me anyway.
I installed xubuntu on my mothers laptop and every time a new version update gets installed the keyboard doesn't work anymore
i had to reconfigure it by
So to get her the possibility to solve this problem by her self i wrote a small bash script to enable onboard keyboard (to input sudo password & menu navigation) and run this specific command.
The problem i got is that the terminal isn't open all the time. Most time i have to run the script twice then the terminal shows up. I guess i've done a really simple mistake which i just can't see yet.
How can i solve this or is there maybe a more simple way to solve it?
Greetings & Thanks for your help
Apop
---------- Post updated 1st Mar 2017 at 08:49 AM ---------- Previous update was 28th Feb 2017 at 06:11 PM ----------
Tried out some things now like run the onboard command in a seperate instance with
"onboard $" but didn't help.
Have tried this but if i run onboard in the background the keyboard don't shows up. Only the terminal opens in this case.
I also tried the while command just for try&error but don't figured out yet how to exit the loop without repeating it.
#!/bin/bash
while onboard
do xfce4-terminal -e "sudo dpkg-reconfigure keyboard-configuration"
done
killall onboard
killall reconfig
exit 0
Edit:
if i run the onboard command in the terminal i get following message and the window gets blocked (no other commands possible):
might this cause this problem?
---------- Post updated at 07:52 PM ---------- Previous update was at 06:42 PM ----------
Ok solved the "onboard problem" with using exec. Now both commands runs all the time but now the keyboard isn't closing after the reconfiguration is done.
I will try it. I also checked the output of bash -x and i saw that the script seems to stop after executing onboard. I had some echoes at the end but they didn't get printed.
---------- Post updated at 03:11 PM ---------- Previous update was at 03:07 PM ----------
Nope same problem with the loop. Script get stopped after executing onboard command
EDIT:
I wrote also in the ubuntuforums for help with the onboard command as it is related to ubuntu in the software center i hoped they may can help me out with this But forum seems to be inactive since january 17
I guess I will try to run onboard in a seperate process with a second file. It feels not very efficient to create 2 files for this small script but I guess this should at least work.