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.

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