-
Notifications
You must be signed in to change notification settings - Fork 156
/
setup
executable file
·39 lines (33 loc) · 1021 Bytes
/
setup
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# Setup speech recognition for the person.
# Do NOT run this script as root, because it can cause problems with files rights
command="apt-get install sox python-argparse wget espeak xautomation xvkbd -y"
if which "gksu"
then
gksu -S "$command"
elif which "kdesudo"
then
kdesudo "$command"
else
eval "sudo $command"
fi
DIR="$(pwd)"
echo Assuming all files are in "'$DIR'"
touch Recognition/dictionary.c
cd Recognition
make
cd ..
rm Recognition/modes/main.dic
rm Recognition/bin/ -r
rm $HOME/.palaver.d/plugins.db
rm $HOME/.palaver.d/UserInfo
rm $HOME/.palaver.d/configs -r
mkdir $HOME/.palaver.d/
cp Recognition/config/defaultBin Recognition/bin -r
touch $HOME/.palaver.d/UserInfo
cp Recognition/config/BlankInfo $HOME/.palaver.d/UserInfo
touch Recognition/modes/main.dic
cp Recognition/config/defaultMain.dic Recognition/modes/main.dic
./installDefault
nohup Recognition/bin/goto 'http://palaver.bmandesigns.com/thanks' "nohup.out" &
echo "Done, you will have to setup the hotkey yourself."