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.

89 lines
3.1 KiB

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