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.

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