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.

111 lines
4.5 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 (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. echo "Install finished"
  65. exit
  66. ;;
  67. "NSSA/CIT")
  68. echo -e "Welcome to the TigerOS NSSA/CIT package installer script.\n
  69. This script will install wireshark, python 2.7, and python 3 on your machine."
  70. echo
  71. while true; do
  72. read -p "Do you wish to continue? [y/n] " yn
  73. case $yn in
  74. [Yy]* ) break;;
  75. [Nn]* ) exit;;
  76. esac
  77. done
  78. dnf install -y wireshark-gtk python python3 java-1.8.0-openjdk
  79. groupadd wireshark
  80. usermod -aG wireshark $USER
  81. echo "Due to licensing constraints we cannot distribute jGrasp at this time.\n
  82. Please see http://spider.eng.auburn.edu/user-cgi/grasp/grasp.pl?;dl=download_jgrasp.html for download instructions.\n
  83. Please note that the JDK is already installed and accessible on your system."
  84. echo "Install finished"
  85. exit
  86. ;;
  87. "SE")
  88. echo -e "Welcome to the TigerOS SE package installer script.\n
  89. This script will install ruby, eclipse, Spin, sqlite3, plantUML, gitk and MIT Alloy on your machine."
  90. echo
  91. while true; do
  92. read -p "Do you wish to continue? [y/n] " yn
  93. case $yn in
  94. [Yy]* ) break;;
  95. [Nn]* ) exit;;
  96. esac
  97. done
  98. dnf install -y eclipse-jdt ruby sqlite plantuml gitk geany
  99. bash /usr/local/bin/se/spin.sh && bash /usr/bin/tigeros/se/alloy.sh
  100. echo "Install finished"
  101. exit
  102. ;;
  103. "Quit")
  104. break
  105. ;;
  106. *) echo invalid option;;
  107. esac
  108. done