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.4 KiB

  1. #!/usr/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 walk you through initial configuration if TigerOS including installing a set of packages used for classes in your major."
  12. echo -e "\n"
  13. sleep 5;
  14. ./usr/local/bin/enablerpmfusion
  15. PS3='Please enter your major: '
  16. options=("CS" "IT/WMC" "NSSA/CIT" "SE" "Quit")
  17. select opt in "${options[@]}"
  18. do
  19. case $opt in
  20. "CS")
  21. echo -e "Welcome to the TigerOS CS package installer script.\n
  22. This script will install Intellij IDEA, PyCharm, PROLOG, Racket, Logisim and JFLAP on your machine."
  23. while true; do
  24. read -p "Do you wish to continue? [y/n] " yn
  25. case $yn in
  26. [Yy]* ) break;;
  27. [Nn]* ) exit;;
  28. esac
  29. done
  30. ./usr/local/bin/cs/idea.sh
  31. dnf copr enable phracek/PyCharm; dnf install pycharm-community;
  32. # TODO PROLOG
  33. wget https://mirror.racket-lang.org/installers/6.8/racket-6.8-x86_64-linux.sh
  34. chmod +x racket-6.8-x86_64-linux.sh
  35. ./racket-6.8-x86_64-linux.sh
  36. ./usr/local/bin/cs/logisim.sh
  37. ./usr/local/bin/cs/jflap.sh
  38. ;;
  39. "IT/WMC")
  40. echo -e "Welcome to the TigerOS IT/WMC package installer script.
  41. This script will install mysql, mongodb, subversion, filezilla, and nodejs on your machine."
  42. while true; do
  43. read -p "Do you wish to continue? [y/n] " yn
  44. case $yn in
  45. [Yy]* ) break;;
  46. [Nn]* ) exit;;
  47. esac
  48. done
  49. wget https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm -O mysql-repo.rpm
  50. dnf install -y mysql-repo.rpm
  51. dnf install -y mysql-community-server
  52. echo "mysql installed see "https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/" for further instructions. Start at step 4."
  53. dnf install -y mongodb
  54. semanage port -a -t mongod_port_t -p tcp 27017
  55. dnf install -y subversion filezilla nodejs java-1.8.0-openjdk
  56. echo "Due to licensing constraints we cannot distribute jGrasp at this time.\n
  57. Please see http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html for download instructions.\n
  58. Please note that the JDK is already installed and accesibble on your system."
  59. mysql_secure_installation
  60. echo "Install finished"
  61. exit
  62. ;;
  63. "NSSA/CIT")
  64. echo -e "Welcome to the TigerOS NSSA/CIT package installer script.\n
  65. This script will install wireshark, python 2.7, and python 3 on your machine."
  66. while true; do
  67. read -p "Do you wish to continue? [y/n] " yn
  68. case $yn in
  69. [Yy]* ) break;;
  70. [Nn]* ) exit;;
  71. esac
  72. done
  73. dnf install -y wireshark-gtk python python3 java-1.8.0-openjdk
  74. groupadd wireshark
  75. usermod -aG wireshark $USER
  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 accessible 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. ./usr/local/bin/se/spin.sh && ./usr/bin/tigeros/se/alloy.sh
  94. echo "Install finished"
  95. exit
  96. ;;
  97. "Quit")
  98. break
  99. ;;
  100. *) echo invalid option;;
  101. esac
  102. done