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.

105 lines
4.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, 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. dnf copr enable phracek/PyCharm; dnf install pycharm-community;
  31. # TODO PROLOG
  32. wget https://mirror.racket-lang.org/installers/6.8/racket-6.8-x86_64-linux.sh
  33. chmod +x racket-6.8-x86_64-linux.sh
  34. ./racket-6.8-x86_64-linux.sh
  35. ./cs/logisim.sh
  36. ./cs/jflap.sh
  37. ;;
  38. "IT/WMC")
  39. echo -e "Welcome to the TigerOS IT/WMC package installer script.
  40. This script will install mysql, mongodb, subversion, filezilla, nodejs and jGRASP on your machine."
  41. while true; do
  42. read -p "Do you wish to continue? [y/n] " yn
  43. case $yn in
  44. [Yy]* ) break;;
  45. [Nn]* ) exit;;
  46. esac
  47. done
  48. wget https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm -O mysql-repo.rpm
  49. dnf install -y mysql-repo.rpm
  50. dnf install -y mysql-community-server
  51. echo "mysql installed see "https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/" for further instructions. Start at step 4."
  52. dnf install -y mongodb
  53. semanage port -a -t mongod_port_t -p tcp 27017
  54. dnf install -y subversion filezilla nodejs java-1.8.0-openjdk
  55. echo "Due to licensing constraints we cannot distribute jGrasp at this time.\n
  56. Please see http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html for download instructions.\n
  57. Please note that the JDK is already installed and accesibble on your system."
  58. mysql_secure_installation
  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 your 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-gtk python python3 java-1.8.0-openjdk
  73. groupadd wireshark
  74. usermod -aG wireshark $USER
  75. #call jGrasp installer script here
  76. echo "Due to licensing constraints we cannot distribute jGrasp at this time.\n
  77. Please see http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html for download instructions.\n
  78. Please note that the JDK is already installed and accesibble on your system."
  79. echo "Install finished"
  80. exit
  81. ;;
  82. "SE")
  83. echo -e "Welcome to the TigerOS SE package installer script.\n
  84. This script will install ruby, eclipse, Spin, sqlite3, plantUML, gitk and MIT Alloy on your machine."
  85. while true; do
  86. read -p "Do you wish to continue? [y/n] " yn
  87. case $yn in
  88. [Yy]* ) break;;
  89. [Nn]* ) exit;;
  90. esac
  91. done
  92. dnf install -y eclipse-jdt ruby sqlite plantuml gitk geany
  93. ./se/spin.sh && ./se/alloy.sh
  94. echo "Install finished"
  95. exit
  96. ;;
  97. "Quit")
  98. break
  99. ;;
  100. *) echo invalid option;;
  101. esac
  102. done