commit 7e37008cc7c9286532acb666885ea99a086b8c33 Author: batvin123 Date: Thu Oct 3 08:23:47 2024 -0400 inital commit diff --git a/TUI-menu.sh b/TUI-menu.sh new file mode 100644 index 0000000..50e68a2 --- /dev/null +++ b/TUI-menu.sh @@ -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 diff --git a/setup.sh b/setup.sh new file mode 100755 index 0000000..aedd74c --- /dev/null +++ b/setup.sh @@ -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