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.

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