inital commit
This commit is contained in:
commit
7e37008cc7
25
TUI-menu.sh
Normal file
25
TUI-menu.sh
Normal file
@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
while true
|
||||
do
|
||||
|
||||
dialog --msgbox "Welcome to the Pi WWriter 400 Main Menu" 0 0
|
||||
APP=$(dialog --title "please select a option:" --menu "Apps:" 0 0 0 \
|
||||
1 "Word Processor" \
|
||||
2 "Spread Sheet" \
|
||||
3 "dictionary" \
|
||||
4 "un-mount fashdrive" \
|
||||
5 "mount flashdrie" \
|
||||
6 "Terminal" \
|
||||
3>&1 1>&2 2>&3 3>&-)
|
||||
|
||||
case $APP in
|
||||
1) wordgrinder ;;
|
||||
2) SC=$(dialog --inputbox "enter path for spread sheet" 0 0 3>&1 1>&2 2>&3 3>&-) && sc $SC ;;
|
||||
3) DICT=$(dialog --inputbox "enter dictionary search term" 0 0 3>&1 1>&2 2>&3 3>&-) && dict $DICT | less ;;
|
||||
4) sudo umount ~/data ;;
|
||||
5) sudo mount /dev/sda1 ~/data ;;
|
||||
6) clear ; exit ;;
|
||||
*) clear ; exit ;;
|
||||
esac
|
||||
|
||||
done
|
21
setup.sh
Executable file
21
setup.sh
Executable file
@ -0,0 +1,21 @@
|
||||
#!/bin/bash
|
||||
mkdir ~/data
|
||||
sudo apt-get update && sudo apt-get upgrade -y
|
||||
sudo apt-get install dialog \
|
||||
wordgrinder \
|
||||
sc \
|
||||
dict dictd dict-gcide wamerican \
|
||||
git \
|
||||
-y
|
||||
echo ./TUI-menu.sh >> ~/.bashrc
|
||||
echo "enable SPI interface and don't reboot"
|
||||
sleep 10s
|
||||
sudo raspi-config
|
||||
|
||||
echo "change console font to terminus and adjust font size"
|
||||
sleep 10s
|
||||
sudo dpkg-reconfigure console-setup
|
||||
|
||||
git clone https://github.com/goodtft/LCD-show.git
|
||||
cd LCD-show
|
||||
sudo ./LCD35-show
|
Loading…
Reference in New Issue
Block a user