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.

88 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 and nodejs 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. echo "Install finished"
  49. exit
  50. ;;
  51. "NSSA/CIT")
  52. echo -e "Welcome to the TigerOS NSSA/CIT package installer script.\n
  53. This script will install wireshark, python 2.7, python 3 and jGrasp on you machine."
  54. while true; do
  55. read -p "Do you wish to continue? [y/n] " yn
  56. case $yn in
  57. [Yy]* ) break;;
  58. [Nn]* ) exit;;
  59. esac
  60. done
  61. sudo dnf install wireshark python python3
  62. #call jGrasp installer script here
  63. echo "Install finished"
  64. exit
  65. ;;
  66. "SE")
  67. echo -e "Welcome to the TigerOS SE package installer script.\n
  68. This script will install ruby, eclipse, Spin, sqlite3 and MIT Alloy on you machine."
  69. while true; do
  70. read -p "Do you wish to continue? [y/n] " yn
  71. case $yn in
  72. [Yy]* ) break;;
  73. [Nn]* ) exit;;
  74. esac
  75. done
  76. sudo dnf install wireshark python python3
  77. #call jGrasp installer script here
  78. echo "Install finished"
  79. exit
  80. ;;
  81. "Quit")
  82. break
  83. ;;
  84. *) echo invalid option;;
  85. esac
  86. done