36 lines
1.7 KiB
Bash
36 lines
1.7 KiB
Bash
|
#!/bin/bash
|
||
|
|
||
|
#vlaier
|
||
|
sudo apt update
|
||
|
sudo apt upgrade
|
||
|
sudo apt install onboard
|
||
|
sudo apt install xdotool
|
||
|
sudo chmod 777 /usr/share/onboard/layouts
|
||
|
sudo chmod 777 /usr/share/onboard/layouts/images
|
||
|
#images
|
||
|
cp ~/Documents/jitsiBox/*.png /usr/share/onboard/layouts/images
|
||
|
cp ~/Documents/jitsiBox/bt.svg /usr/share/onboard/layouts/images
|
||
|
#fichiers clavier
|
||
|
sudo chmod 777 /usr/share/onboard/layouts/Whiteboard.onboard
|
||
|
sudo rm /usr/share/onboard/layouts/Whiteboard.onboard
|
||
|
cp ~/Documents/jitsiBox/Whiteboard.onboard /usr/share/onboard/layouts/
|
||
|
sudo chmod 777 /usr/share/onboard/layouts/Whiteboard-Alpha.svg
|
||
|
sudo rm /usr/share/onboard/layouts/Whiteboard-Alpha.svg
|
||
|
cp ~/Documents/jitsiBox/Whiteboard-Alpha.svg /usr/share/onboard/layouts/
|
||
|
sudo chmod 777 /usr/share/onboard/layouts/key_defs.xml
|
||
|
sudo rm /usr/share/onboard/layouts/key_defs.xml
|
||
|
cp ~/Documents/jitsiBox/key_defs.xml /usr/share/onboard/layouts/
|
||
|
#script
|
||
|
sudo chmod 777 /usr/share/onboard/scripts
|
||
|
cp -r ~/Documents/jitsiBox/scripts/* /usr/share/onboard/scripts/
|
||
|
#fichier python
|
||
|
sudo chmod 777 /usr/lib/python3/dist-packages/Onboard
|
||
|
sudo rm /usr/lib/python3/dist-packages/Onboard/Keyboard.py
|
||
|
cp ~/Documents/jitsiBox/Keyboard.py /usr/lib/python3/dist-packages/Onboard
|
||
|
#autostart
|
||
|
sudo chmod 777 /etc/xdg/lxsession/LXDE-pi/autostart
|
||
|
echo 'setxkbmap fr'>>/etc/xdg/lxsession/LXDE-pi/autostart
|
||
|
echo 'onboard &'>>/etc/xdg/lxsession/LXDE-pi/autostart
|
||
|
echo 'chromium-browser --kiosk --window-position=0,0 --noerrdialogs --disable-translate --disable-infobars --disable-features=TranslateUI --disk-cache-dir=/dev/null --disable-pinch --overscroll-history-navigation=disabled --disable-features=TouchpadOverscrollHistoryNavigation https://talk.fdn.fr/ '>>/etc/xdg/lxsession/LXDE-pi/autostart
|
||
|
sudo reboot
|