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.

112 lines
4.5 KiB

7 years ago
  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 (sudo $@$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. exit
  41. ;;
  42. "IT/WMC")
  43. echo -e "Welcome to the TigerOS IT/WMC package installer script.\n
  44. This script will install mysql, mongodb, subversion, filezilla, and nodejs on your machine."
  45. echo
  46. while true; do
  47. read -p "Do you wish to continue? [y/n] " yn
  48. case $yn in
  49. [Yy]* ) break;;
  50. [Nn]* ) exit;;
  51. esac
  52. done
  53. wget https://dev.mysql.com/get/mysql57-community-release-fc25-9.noarch.rpm -O mysql-repo.rpm
  54. dnf install -y mysql-repo.rpm
  55. dnf install -y mysql-community-server
  56. echo "mysql installed see "https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/" for further instructions. Start at step 4."
  57. dnf install -y mongodb
  58. semanage port -a -t mongod_port_t -p tcp 27017
  59. dnf install -y subversion filezilla nodejs java-1.8.0-openjdk
  60. echo -e "Due to licensing constraints we cannot distribute jGrasp at this time.\n
  61. Please see http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html for download instructions.\n
  62. Please note that the JDK is already installed and accesibble on your system."
  63. mysql_secure_installation
  64. rm mysql-repo.rpm
  65. echo "Install finished"
  66. exit
  67. ;;
  68. "NSSA/CIT")
  69. echo -e "Welcome to the TigerOS NSSA/CIT package installer script.\n
  70. This script will install wireshark, python 2.7, and python 3 on your machine."
  71. echo
  72. while true; do
  73. read -p "Do you wish to continue? [y/n] " yn
  74. case $yn in
  75. [Yy]* ) break;;
  76. [Nn]* ) exit;;
  77. esac
  78. done
  79. dnf install -y wireshark-gtk python python3 java-1.8.0-openjdk
  80. groupadd wireshark
  81. usermod -aG wireshark $USER
  82. echo -e "Due to licensing constraints we cannot distribute jGrasp at this time.\n
  83. Please see http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html for download instructions.\n
  84. Please note that the JDK is already installed and accessible on your system."
  85. echo "Install finished"
  86. exit
  87. ;;
  88. "SE")
  89. echo -e "Welcome to the TigerOS SE package installer script.\n
  90. This script will install ruby, eclipse, Spin, sqlite3, plantUML, gitk and MIT Alloy on your machine."
  91. echo
  92. while true; do
  93. read -p "Do you wish to continue? [y/n] " yn
  94. case $yn in
  95. [Yy]* ) break;;
  96. [Nn]* ) exit;;
  97. esac
  98. done
  99. dnf install -y eclipse-jdt ruby sqlite plantuml gitk geany
  100. bash /usr/local/bin/se/spin.sh && bash /usr/local/bin/se/alloy.sh
  101. echo "Install finished"
  102. exit
  103. ;;
  104. "Quit")
  105. break
  106. ;;
  107. *) echo invalid option;;
  108. esac
  109. done