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.

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