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.

100 lines
3.3 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 IDEA, PyCharm, PROLOG, Racket 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. # IDEA
  30. ./cs/idea.sh
  31. # Pycharm
  32. # TODO Pycharm
  33. # PROLOG
  34. # TODO PROLOG
  35. # Racket
  36. # TODO Racket
  37. # JFLAP
  38. ./cs/jflap.sh
  39. ;;
  40. "IT/WMC")
  41. echo -e "Welcome to the TigerOS IT/WMC package installer script.
  42. This script will install mysql, mongodb, subversion, filezilla, nodejs and jGRASP on you machine."
  43. while true; do
  44. read -p "Do you wish to continue? [y/n] " yn
  45. case $yn in
  46. [Yy]* ) break;;
  47. [Nn]* ) exit;;
  48. esac
  49. done
  50. wget https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm -O mysql-repo.rpm
  51. dnf install -y mysql-repo.rpm
  52. dnf install -y mysql-community-server
  53. echo "mysql installed see https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/ step 4 for further instructions"
  54. dnf install -y mongodb
  55. semanage port -a -t mongod_port_t -p tcp 27017
  56. # dnf install -y httpd
  57. dnf install -y subversion filezilla nodejs php
  58. #call jGRASP script here
  59. echo "Install finished"
  60. exit
  61. ;;
  62. "NSSA/CIT")
  63. echo -e "Welcome to the TigerOS NSSA/CIT package installer script.\n
  64. This script will install wireshark, python 2.7, python 3 and jGrasp on you machine."
  65. while true; do
  66. read -p "Do you wish to continue? [y/n] " yn
  67. case $yn in
  68. [Yy]* ) break;;
  69. [Nn]* ) exit;;
  70. esac
  71. done
  72. dnf install -y wireshark python python3
  73. #call jGrasp installer script here
  74. echo "Install finished"
  75. exit
  76. ;;
  77. "SE")
  78. echo -e "Welcome to the TigerOS SE package installer script.\n
  79. This script will install ruby, eclipse, Spin, sqlite3 and MIT Alloy on you machine."
  80. while true; do
  81. read -p "Do you wish to continue? [y/n] " yn
  82. case $yn in
  83. [Yy]* ) break;;
  84. [Nn]* ) exit;;
  85. esac
  86. done
  87. dnf install -y eclipse-jdt ruby sqlite
  88. ./se/spin.sh && ./se/alloy.sh
  89. echo "Install finished"
  90. exit
  91. ;;
  92. "Quit")
  93. break
  94. ;;
  95. *) echo invalid option;;
  96. esac
  97. done