Fedora Remix maintained by the Rochester Institute of Technology (RIT) Linux Users Group, targeted at users new to Linux and RIT students, faculty, and staff
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
3.4 KiB

  1. #!/bin/bash
  2. # TigerOS postinstall package setup script
  3. # author: Aidan Kahrs <axk4545@rit.edu>
  4. # Check that the current user is root
  5. if [ $EUID != 0 ]
  6. then
  7. echo "Please run this script as root ( $@$0)."
  8. exit
  9. fi
  10. echo -e "Welcome to the TigerOS post install script.\n
  11. This script will install a set of packages used for classes in your major."
  12. echo -e "\n"
  13. sleep 5;
  14. PS3='Please enter your major: '
  15. options=("CS" "IT/WMC" "NSSA/CIT" "SE" "Quit")
  16. select opt in "${options[@]}"
  17. do
  18. case $opt in
  19. "CS")
  20. echo -e "Welcome to the TigerOS CS package installer script.\n
  21. This script will install Intellij IDEA, PyCharm, PROLOG, Racket, Logisim and JFLAP on your machine."
  22. while true; do
  23. read -p "Do you wish to continue? [y/n] " yn
  24. case $yn in
  25. [Yy]* ) break;;
  26. [Nn]* ) exit;;
  27. esac
  28. done
  29. ./cs/idea.sh
  30. # TODO Pycharm
  31. # TODO PROLOG
  32. # TODO Racket
  33. ./cs/logisim.sh
  34. ./cs/jflap.sh
  35. ;;
  36. "IT/WMC")
  37. echo -e "Welcome to the TigerOS IT/WMC package installer script.
  38. This script will install mysql, mongodb, subversion, filezilla, nodejs and jGRASP on you machine."
  39. while true; do
  40. read -p "Do you wish to continue? [y/n] " yn
  41. case $yn in
  42. [Yy]* ) break;;
  43. [Nn]* ) exit;;
  44. esac
  45. done
  46. wget https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm -O mysql-repo.rpm
  47. dnf install -y mysql-repo.rpm
  48. dnf install -y mysql-community-server
  49. echo "mysql installed see "https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/" step 4 for further instructions"
  50. dnf install -y mongodb
  51. semanage port -a -t mongod_port_t -p tcp 27017
  52. dnf install -y subversion filezilla nodejs
  53. #call jGRASP script here
  54. mysql_secure_installation
  55. echo "Install finished"
  56. exit
  57. ;;
  58. "NSSA/CIT")
  59. echo -e "Welcome to the TigerOS NSSA/CIT package installer script.\n
  60. This script will install wireshark, python 2.7, python 3 and jGrasp on you machine."
  61. while true; do
  62. read -p "Do you wish to continue? [y/n] " yn
  63. case $yn in
  64. [Yy]* ) break;;
  65. [Nn]* ) exit;;
  66. esac
  67. done
  68. dnf install -y wireshark-gtk python python3
  69. groupadd wireshark
  70. usermod -aG wireshark $USER
  71. #call jGrasp installer script here
  72. echo "Install finished"
  73. exit
  74. ;;
  75. "SE")
  76. echo -e "Welcome to the TigerOS SE package installer script.\n
  77. This script will install ruby, eclipse, Spin, sqlite3, plantUML, gitk and MIT Alloy on you machine."
  78. while true; do
  79. read -p "Do you wish to continue? [y/n] " yn
  80. case $yn in
  81. [Yy]* ) break;;
  82. [Nn]* ) exit;;
  83. esac
  84. done
  85. dnf install -y eclipse-jdt ruby sqlite plantuml gitk geany
  86. ./se/spin.sh && ./se/alloy.sh
  87. echo "Install finished"
  88. exit
  89. ;;
  90. "Quit")
  91. break
  92. ;;
  93. *) echo invalid option;;
  94. esac
  95. done