-
-
Save Hemanthdev/09bfb3be13d08ba7cbccecd17109893e to your computer and use it in GitHub Desktop.
Revisions
-
igorferreira revised this gist
Dec 12, 2017 . 1 changed file with 10 additions and 10 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,11 +24,11 @@ install_gist() { add_users_sucan() { echo " ______________________________________________________________________________________ 00- instala - criando usuarios ______________________________________________________________________________________ " echo " " sudo groupadd developers @@ -56,11 +56,11 @@ list_users() { install_tools() { echo " ______________________________________________________________________________________ 01- instala - wget, subversion, git, gitk, gitg, htop, glances -- ______________________________________________________________________________________ " echo " " sudo yum -y install epel-release @@ -95,20 +95,20 @@ install_tools() { #sudo yum groupinstall xfce -y echo " " echo " ______________________________________________________________________________________ --- instalado - wget, subversion, git, gitk, gitg, htop, glances -- ______________________________________________________________________________________ " } install_visualcode() { echo " ______________________________________________________________________________________ 02- instala - visual code -- INICIO ______________________________________________________________________________________ " echo " " sudo rpm --"import https://packages.microsoft.com/keys/microsoft.asc" @@ -120,11 +120,11 @@ install_visualcode() { sudo yum check-update sudo yum -y install code echo " " echo " ______________________________________________________________________________________ instalado com sucesso! - visual code -- FIM ______________________________________________________________________________________ " echo " " } -
igorferreira revised this gist
Dec 12, 2017 . 1 changed file with 9 additions and 20 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -35,24 +35,14 @@ add_users_sucan() { sudo groupadd docker #adduser -c "Pedro X" pxxxxxx #adduser -c "Igor X" isfxxxx #adduser -c "Hugo X" hcvxxxx usermod -a -G isf0516 isfxxxx usermod -a -G wheel isfxxxx usermod -a -G developers isfxxxx usermod -a -G docker isfxxxx #sudo list_users cat /etc/passwd | cut -d ":" -f1 @@ -424,10 +414,9 @@ install_apache_maven() { if [ -e "$file" ]; then echo " ja foi feito o download verificar a integridade do arquivo ! " else wget http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz -
isf0516 revised this gist
Nov 23, 2017 . 1 changed file with 64 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -367,6 +367,9 @@ install_eclipse() { # --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3" \ wget --verbose --debug --no-proxy --output-document="eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz" \ http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 #http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 echo " " echo " download ok! " fi @@ -631,6 +634,67 @@ install_insync(){ } install_cntlm(){ sudo yum -y install cntlm # 1- Configuracao password # cntlm -H # 2- Colar no arquivo de configuracao # /etc/cntlm.conf # 3- Configurar o proxy do sistema para usar 127.0.0.1:3128 } install_virtualbox(){ # First install VirtualBox dependencies. sudo yum -y install gcc dkms make qt libgomp patch sudo yum -y install kernel-headers kernel-devel binutils glibc-headers glibc-devel font-forge cd /etc/yum.repos.d/ ## Fedora 26/25/24/23/22/21/20/19/18/17/16 users #wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo ## CentOS 7.4/6.9 and Red Hat (RHEL) 7.4/6.9 users sudo wget http://download.virtualbox.org/virtualbox/rpm/rhel/virtualbox.repo ## Fedora 26/25/24/23/22 ## #dnf update ## Fedora 21/20/19/18/17/16 and CentOS/RHEL 7/6/5 ## sudo yum -y update ## CentOS 7 and RHEL 7 ## sudo rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm ## Fedora 21/20/19/18/17/16 and CentOS/RHEL 7/6/5 ## sudo yum -y install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel dkms ## Fedora 21/20/19/18/17/16 and CentOS/RHEL 7/6/5 ## sudo yum -y install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-PAE-devel dkms ## CentOS/RHEL 7/6 ## sudo yum -y install VirtualBox-5.2 } install_ansible(){ #https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-ansible-on-centos-7 sudo yum install epel-release sudo yum install ansible } install_vagrant(){ # https://www.vagrantup.com/downloads.html wget --verbose --debug --no-proxy --output-document="vagrant_2.0.1_x86_64.rpm" \ https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.rpm?_ga=2.121963147.1662700309.1511411667-991246640.1511411667 sudo yum install vagrant_2.0.1_x86_64.rpm } ############################################################################### # Main body of script starts here -
isf0516 revised this gist
Nov 22, 2017 . 1 changed file with 13 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -73,13 +73,19 @@ install_tools() { " echo " " sudo yum -y install epel-release sudo yum check-update sudo yum groupinstall 'Development Tools' sudo yum -y install wget subversion git gitk gitg htop glances terminator konsole alacarte sudo yum -y install system-config-users sudo yum -y install ntfs-3g ntfsprogs ntfsprogs-gnomevfs sudo yum -y install fuse fuse-ntfs-3g dkms dkms-fuse curl https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash nvm install lts/carbon nvm install lts/argon nvm install lts/boron #http://itnotesandscribblings.blogspot.com.br/2014/09/centos-6-to-7-desktop-upgrade.html # Install "nux desktop" for vlc @@ -538,6 +544,8 @@ update_git(){ echo " ______________________________________________________________________________________ 14- Atualizando git para 2 https://serverfault.com/questions/709433/install-a-newer-version-of-git-on-centos-7 _____________________________________________________________________________________ " sudo yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker -
isf0516 revised this gist
Nov 22, 2017 . 1 changed file with 201 additions and 62 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -24,85 +24,112 @@ install_gist() { add_users_sucan() { echo " ______________________________________________________________________________________ 00- instala - criando usuarios ______________________________________________________________________________________ " echo " " sudo groupadd developers sudo groupadd docker #adduser -c "Pedro Marins" p112123 #adduser -c "Igor Ferreira" isf0516 #adduser -c "Hugo Camargo" hcv0913 usermod -a -G isf0516 isf0516 usermod -a -G wheel isf0516 usermod -a -G developers isf0516 usermod -a -G docker isf0516 #usermod -a -G hcv0913 hcv0913 #usermod -a -G wheel hcv0913 #usermod -a -G developers hcv0913 #usermod -a -G docker hcv0913 #usermod -a -G p112123 p112123 #usermod -a -G wheel p112123 #usermod -a -G developers p112123 #usermod -a -G docker p112123 #sudo list_users cat /etc/passwd | cut -d ":" -f1 sudo chgrp -R developers /opt } list_users() { cat /etc/passwd | cut -d ":" -f1 } install_tools() { echo " ______________________________________________________________________________________ 01- instala - wget, subversion, git, gitk, gitg, htop, glances -- ______________________________________________________________________________________ " echo " " sudo yum install -y epel-release sudo yum check-update sudo yum groupinstall 'Development Tools' sudo yum install -y wget subversion git gitk gitg htop glances terminator konsole alacarte sudo yum install -y system-config-users sudo yum install -y ntfs-3g ntfsprogs ntfsprogs-gnomevfs sudo yum install -y fuse fuse-ntfs-3g dkms dkms-fuse #http://itnotesandscribblings.blogspot.com.br/2014/09/centos-6-to-7-desktop-upgrade.html # Install "nux desktop" for vlc sudo yum install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-1.el7.nux.noarch.rpm # Install vlc from Nux sudo yum install -y vlc sudo yum install -y http://mirror.yandex.ru/fedora/russianfedora/russianfedora/free/el/updates/7/x86_64//chrome-gnome-shell-6.1-1.el7.R.noarch.rpm # Disable "nux desktop" from being auto-enabled # sudo cd /etc/yum.repos.d/ # sudo sed -i.orig 's/enabled=1/enabled=0/' nux-dextop.repo #XFCE # http://jensd.be/125/linux/rhel/install-mate-or-xfce-on-centos-7 #sudo yum groupinstall xfce -y echo " " echo " ______________________________________________________________________________________ --- instalado - wget, subversion, git, gitk, gitg, htop, glances -- ______________________________________________________________________________________ " } install_visualcode() { echo " ______________________________________________________________________________________ 02- instala - visual code -- INICIO ______________________________________________________________________________________ " echo " " sudo rpm --"import https://packages.microsoft.com/keys/microsoft.asc" sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' #wget "https://go.microsoft.com/fwlink/?LinkID=760867" -O vscode.rpm #sudo yum localinstall vscode.rpm sudo yum check-update sudo yum -y install code echo " " echo " ______________________________________________________________________________________ instalado com sucesso! - visual code -- FIM ______________________________________________________________________________________ " echo " " } @@ -132,7 +159,7 @@ install_sublime3() { sudo yum clean all sudo yum -y update sudo yum -y install glibc.i686 sudo yum install -y ftp://rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/glib2-2.50.3-3.el7.i686.rpm sudo yum install -y ftp://rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/libX11-1.6.5-1.el7.i686.rpm @@ -147,6 +174,13 @@ install_sublime3() { import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) " echo " ______________________________________________________________________________________ instalado com sucesso! - sublime -- FIM ______________________________________________________________________________________ " echo " " } install_java8() { @@ -169,7 +203,7 @@ install_java8() { #http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz #cd ~/Downloads #wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ # "http://download.oracle.com/otn-pub/java/jdk/${java_version_with_build}/090f390dda5b47b9b721c7dfaa008135/jdk-${java_version}-linux-x64.rpm" @@ -183,23 +217,29 @@ install_java8() { sudo tar -xzvf jdk-8*.tar.gz -C /opt/ echo " Next, install Java with the following command:" sudo alternatives --install /usr/bin/java java /opt/jdk1.8.0_151/bin/java 2 sudo alternatives --config java echo " Choose the latest version of Java and press enter. You will also need to setup javac and jar commands path using alternatives: " sudo alternatives --install /usr/bin/jar jar /opt/jdk1.8.0_151/bin/jar 2 sudo alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_151/bin/javac 2 sudo alternatives --set jar /opt/jdk1.8.0_151/bin/jar sudo alternatives --set javac /opt/jdk1.8.0_151/bin/javac #echo " You will need to configure environment variables for Java for all users. # To do so, create a new file named java.sh and java.csh: # " #sudo nano /etc/profile.d/java.sh echo " " echo " ______________________________________________________________________________________ --- instalado - Java 8-- ______________________________________________________________________________________ " } @@ -235,7 +275,7 @@ install_wildfly() { echo "Add the following lines:" export JBOSS_HOME="/opt/wildfly-10.1.0.Final" export JAVA_HOME="/opt/jdk1.8.0_151" #echo "You can also set JBOSS_HOME system wide by editing /etc/profile file:" #sudo nano /etc/profile @@ -244,6 +284,13 @@ install_wildfly() { #JBOSS_HOME="/opt/wildfly-10.1.0.Final" echo "Save and close the file, when you are finished" echo " " echo " ______________________________________________________________________________________ --- instalado - WildFly Application Server -- ______________________________________________________________________________________ " } @@ -272,18 +319,24 @@ install_spring_studio() { fi tar xvzf spring-tool-suite*tar.gz echo " Relocating Spring Tool Suite Bundle" sudo mv sts-bundle /opt/ echo " Symlinking Spring Tool Suite Binary" sudo su -c "ln -s /opt/sts-bundle/sts-3.9.1.RELEASE/STS /usr/local/bin/STS" echo " Trocando permissoes da pasta para grupo developers" sudo chgrp -R developers /opt/ sudo chown -R isf0516:developers * echo " " echo " ______________________________________________________________________________________ --- instalado - Spring Tools Suite IDE --- ______________________________________________________________________________________ " } install_eclipse() { @@ -323,6 +376,14 @@ install_eclipse() { sudo su -c "ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse" #http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 echo " " echo " ______________________________________________________________________________________ --- instalado - eclipse IDE --- ______________________________________________________________________________________ " } install_chrome(){ @@ -377,7 +438,12 @@ install_apache_maven() { sudo chgrp -R developers /opt echo " " echo " ______________________________________________________________________________________ --- instalado - o Apache Maven --- ______________________________________________________________________________________ " } install_node6() { @@ -406,13 +472,19 @@ install_node8() { curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash - sudo yum -y install nodejs echo " " echo " ______________________________________________________________________________________ --- instalado - o nodejs 8 --- ______________________________________________________________________________________ " } install_node_official() { echo " ______________________________________________________________________________________ 12- Instalando o nodejs official --- Referencia: https://nodejs.org/en/download/package-manager/ @@ -421,12 +493,19 @@ install_node_official() { " sudo yum install nodejs npm --enablerepo=epel echo " " echo " ______________________________________________________________________________________ --- instalado - o nodejs official --- ______________________________________________________________________________________ " } install_docker_ce(){ echo " ______________________________________________________________________________________ 13- Instalando o docker ce ______________________________________________________________________________________ " @@ -447,53 +526,104 @@ install_docker_ce(){ # sudo yum remove docker-ce # sudo rm -rf /var/lib/docker echo " " echo " ______________________________________________________________________________________ --- instalado - o docker ce --- ______________________________________________________________________________________ " } update_git(){ echo " ______________________________________________________________________________________ 14- Atualizando git para 2 _____________________________________________________________________________________ " sudo yum -y install curl-devel expat-devel gettext-devel openssl-devel zlib-devel gcc perl-ExtUtils-MakeMaker sudo yum -y install autoconf libcurl-devel expat-devel gcc gettext-devel kernel-headers openssl-devel perl-devel zlib-devel sudo yum -y remove git sudo rpm -U http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm \ && yum install -y git # 1. Install a package with repository for your system: # On CentOS, install package centos-release-scl available in CentOS repository: sudo yum -y install centos-release-scl # On RHEL, enable RHSCL repository for you system: sudo yum-config-manager --enable rhel-server-rhscl-7-rpms # 2. Install the collection: sudo yum -y install rh-git29 # 3. Start using the software collection: scl enable rh-git29 bash sudo yum -y install gitflow echo " " echo " ______________________________________________________________________________________ --- instalado - o git 2 --- ______________________________________________________________________________________ " } install_snx(){ echo " ______________________________________________________________________________________ 15- SNX http://kenfallon.com/how-to-install-checkpoint-ssl-extender-vpn-snx-under-fedora-14/ ______________________________________________________________________________________ " sudo yum update sudo yum -y install libcanberra-gtk2.i686 pkgconfig.i686 compat-libstdc++-33.x86_64 compat-libstdc++-33.i686 audit-libs.i686 sudo sh +x snx_install.sh } install_openshift_client_tools(){ echo " ______________________________________________________________________________________ 16- Install openshift-client-tools openshift-origin-client-tools-v3.7.0-rc.0-e92d5c5-linux-64bit.tar.gz ______________________________________________________________________________________ " wget https://github.com/openshift/origin/releases/download/v3.7.0-rc.0/openshift-origin-client-tools-v3.7.0-rc.0-e92d5c5-linux-64bit.tar.gz tar -xvf openshift-origin-client-tools-v3.7.0-rc.0-e92d5c5-linux-64bit.tar.gz -C /opt/openshift-client sudo ln -s /opt/openshift-client/oc /usr/local/bin/oc } install_insync(){ echo " ______________________________________________________________________________________ 17- Install insync - google drive openshift-origin-client-tools-v3.7.0-rc.0-e92d5c5-linux-64bit.tar.gz ______________________________________________________________________________________ " sudo rpm --import https://d2t3ff60b2tol4.cloudfront.net/repomd.xml.key #sudo echo " [insync] # name=insync repo # baseurl=http://yum.insynchq.com/centos/$releasever/ # gpgcheck=1 # gpgkey=https://d2t3ff60b2tol4.cloudfront.net/repomd.xml.key # enabled=1 # metadata_expire=120m" > /etc/yum.repos.d/insync.repo sudo yum install insync } ############################################################################### # Main body of script starts here ############################################################################### @@ -518,17 +648,20 @@ echo " 09- Apache Maven 10- Node 6 11- Node 8 12- Node official 13- Docker ce 14- Update Git to 2.9 from RedHat 15- Install SNX client 16- Install openshift_client_tools 17- Install insync - google drive OBS. pressione 'ctrl+c' p/ sair sem reiniciar o Linux ______________________________________________________________________________________ " INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "O que deseja instalar agora?" 25 130 18 \ "0" "criar usuarios equipe SUCAN" ON \ "1" "wget, subversion, git, gitk, gitg, htop, glances" OFF \ "2" "Visual Code" OFF \ @@ -541,9 +674,12 @@ INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "9" "Apache Maven" OFF \ "10" "nodejs 6" OFF \ "11" "nodejs 8" OFF \ "12" "nodejs official" OFF \ "13" "docker ce" OFF \ "14" "Update Git to 2.9 from RedHat" OFF \ "15" "Install SNX client" OFF \ "16" "Install openshift_client_tools" OFF \ "17" "Install insync - google drive" OFF 3>&1 1>&2 2>&3) exitstatus=$? if [ $exitstatus = 0 ]; @@ -563,9 +699,12 @@ then 9) install_apache_maven;; 10) install_node6;; 11) install_node8;; 12) install_node_official;; 13) install_docker_ce;; 14) update_git;; 15) install_snx;; 16) install_openshift_client_tools;; 17) install_insync;; *) echo "Opcao Invalida!" ;; esac -
igorferreira revised this gist
Oct 30, 2017 . 1 changed file with 3 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -519,7 +519,9 @@ echo " 10- Node 6 11- Node 8 12- Docker ce 13- Update Git to 2.9 from RedHat 14- Install SNX client OBS. pressione 'ctrl+c' p/ sair sem reiniciar o Linux ______________________________________________________________________________________ -
igorferreira revised this gist
Oct 30, 2017 . 1 changed file with 15 additions and 14 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -350,7 +350,6 @@ install_apache_maven() { " echo "Fazer o download do arquivo do Maven: https://maven.apache.org/download.cgi" file="apache-maven-3.5.2-bin.tar.gz" if [ -e "$file" ]; @@ -364,18 +363,20 @@ install_apache_maven() { wget http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz fi echo "Extraia o arquivo:" sudo tar -xvf $file -C /opt/ echo "Unix-based Operating System (Linux, Solaris and Mac OS X) Tips" echo $JAVA_HOME # /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home echo "Adicionar ao PATH" export PATH=/opt/apache-maven-3.5.2/bin:$PATH sudo chgrp -R developers /opt echo " --- Instalando o Apache Maven ---" } @@ -548,16 +549,16 @@ then echo "Sua vc escolheu instalar: " $INSTALACAO case $INSTALACAO in 0) add_users_sucan;; 1) install_tools;; 2) install_visualcode;; 3) install_sublime3;; 4) install_java8;; 5) install_wildfly;; 6) install_spring_studio;; 7) install_eclipse;; 8) install_chrome;; 9) install_apache_maven;; 10) install_node6;; 11) install_node8;; 12) install_docker_ce;; -
igorferreira revised this gist
Oct 30, 2017 . 1 changed file with 73 additions and 35 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -67,21 +67,22 @@ list_users(){ install_tools() { echo " ______________________________________________________________________________________ 01- instala - wget, subversion, git, gitk, gitg, htop, glances -- ______________________________________________________________________________________ " echo " " sudo yum install -y epel-release sudo yum check-update sudo yum groupinstall 'Development Tools' sudo yum install -y wget subversion git gitk gitg htop glances terminator sudo yum install -y system-config-users sudo yum install -y ntfs-3g ntfsprogs ntfsprogs-gnomevfs sudo yum install -y fuse fuse-ntfs-3g dkms dkms-fuse #XFCE # http://jensd.be/125/linux/rhel/install-mate-or-xfce-on-centos-7 #sudo yum groupinstall xfce -y echo " --- instalado - wget, subversion, git, gitk, gitg, htop, glances -- " } @@ -155,8 +156,7 @@ install_java8() { ______________________________________________________________________________________ " echo " " #java_base_version="8" @@ -210,24 +210,38 @@ install_wildfly() { ______________________________________________________________________________________ " echo " " file="wildfly-10.1.0.Final.zip" if [ -e "$file" ]; then echo " ja foi feito o download verificar a integridade do arquivo ! " else echo " You can download it using wget with the following command:" wget http://download.jboss.org/wildfly/10.1.0.Final/wildfly-10.1.0.Final.zip fi echo "Once download is complete, extract the downloaded archive to the /opt/ directory:" sudo unzip wildfly-10.1.0.Final.zip -d /opt/ sudo chgrp -R developers /opt/* #echo "Now define JBOSS_HOME and the JAVA_HOME path in the standlone.conf file:" #sudo nano /opt/wildfly-10.1.0.Final/bin/standalone.conf echo "Add the following lines:" export JBOSS_HOME="/opt/wildfly-10.1.0.Final" #export JAVA_HOME="/opt/jdk1.8.0_111" #echo "You can also set JBOSS_HOME system wide by editing /etc/profile file:" #sudo nano /etc/profile #echo "Add the following line:" #JBOSS_HOME="/opt/wildfly-10.1.0.Final" echo "Save and close the file, when you are finished" @@ -242,15 +256,16 @@ install_spring_studio() { echo " " echo " Download Latest Spring Tool Suite IDE for Linux: pring Tool Suite tar.gz 32/64bit " echo " Open a Command Line Terminal Window: Ctrl+Alt+t" echo " " file="spring-tool-suite-3.9.1.RELEASE-e4.7.1a-linux-gtk-x86_64.tar.gz" if [ -e "$file" ]; then echo " ja foi feito o download verificar a integridade do arquivo ! " else wget http://download.springsource.com/release/STS/3.9.1.RELEASE/dist/e4.7/spring-tool-suite-3.9.1.RELEASE-e4.7.1a-linux-gtk-x86_64.tar.gz @@ -265,6 +280,9 @@ install_spring_studio() { echo " Symlinking Spring Tool Suite Binary" sudo su -c "ln -s /opt/sts-bundle/sts-3.9.1.RELEASE/STS /usr/local/bin/STS" echo " Trocando permissoes da pasta para grupo developers" sudo chgrp -R developers /opt/ echo " 05- Instalando Spring Tool Suite IDE --- " } @@ -277,17 +295,19 @@ install_eclipse() { echo " " echo "downloading... " file="eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz" if [ -f "$file" ]; then echo " ja foi feito o download verificar a integridade do arquivo" else #http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 # --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3" \ wget --verbose --debug --no-proxy --output-document="eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz" \ http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 echo " " echo " download ok! " fi @@ -299,7 +319,7 @@ install_eclipse() { sudo mv ~/Downloads/eclipse /opt/ #sudo mv ~/Downloads/eclipse-jee-oxygen/eclipse /opt/ echo "Symlinking Eclipse" sudo su -c "ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse" #http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 @@ -329,8 +349,25 @@ install_apache_maven() { ______________________________________________________________________________________ " echo "Fazer o download do arquivo do Maven: https://maven.apache.org/download.cgi" file="apache-maven-3.5.2-bin.tar.gz" if [ -e "$file" ]; then echo " ja foi feito o download verificar a integridade do arquivo ! " else wget http://mirror.nbtelecom.com.br/apache/maven/maven-3/3.5.2/binaries/apache-maven-3.5.2-bin.tar.gz fi echo "Extraia o arquivo:" unzip apache-maven-3.5.2-bin.zip -d /opt/"ou tar xzvf apache-maven-3.5.2-bin.tar.gz" echo "Unix-based Operating System (Linux, Solaris and Mac OS X) Tips" @@ -451,7 +488,7 @@ install_snx(){ ______________________________________________________________________________________ " sudo yum update sudo yum install -y install libcanberra-gtk2.i686 pkgconfig.i686 compat-libstdc++-33.x86_64 compat-libstdc++-33.i686 audit-libs.i686 sudo sh +x ~/Download/snx_install.sh } @@ -463,8 +500,9 @@ echo "Start of script..." echo " ______________________________________________________________________________________ ************************ instalações Disponiveis ************************ ______________________________________________________________________________________ " echo " MENU PRINCIPAL Escolha uma opção pelo numero: @@ -487,7 +525,7 @@ echo " MENU PRINCIPAL " INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "O que deseja instalar agora?" 25 130 16 \ "0" "criar usuarios equipe SUCAN" ON \ "1" "wget, subversion, git, gitk, gitg, htop, glances" OFF \ "2" "Visual Code" OFF \ @@ -501,7 +539,7 @@ INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "10" "nodejs 6" OFF \ "11" "nodejs 8" OFF \ "12" "docker ce" OFF \ "13" "Update Git to 2.9 from RedHat" OFF \ "14" "Install SNX client" OFF 3>&1 1>&2 2>&3) exitstatus=$? @@ -524,7 +562,7 @@ then 11) install_node8;; 12) install_docker_ce;; 13) update_git;; 14) install_snx;; *) echo "Opcao Invalida!" ;; esac -
igorferreira revised this gist
Oct 30, 2017 . 1 changed file with 56 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -67,7 +67,7 @@ list_users(){ install_tools() { echo " ______________________________________________________________________________________ 01- instala - wget, subversion, git, gitk, gitg, htop, glances, synapse -- ______________________________________________________________________________________ " echo " " @@ -79,6 +79,9 @@ install_tools() { sudo yum install -y ntfs-3g fuse sudo yum install -y ntfsprogs ntfsprogs-gnomevfs sudo yum install -y fuse fuse-ntfs-3g dkms dkms-fuse #sudo add-apt-repository ppa:synapse-core/ppa #sudo yum update #sudo yum install synapse echo " --- instalado - wget, subversion, git, gitk, gitg, htop, glances -- " } @@ -408,14 +411,59 @@ install_docker_ce(){ } update_git(){ echo " ______________________________________________________________________________________ 13- Atualizando git para 2 ______________________________________________________________________________________ " sudo yum remove git sudo yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel sudo yum install gcc perl-ExtUtils-MakeMaker #sudo rpm -U http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm \ #&& yum install -y git # 1. Install a package with repository for your system: # On CentOS, install package centos-release-scl available in CentOS repository: sudo yum install -y centos-release-scl # On RHEL, enable RHSCL repository for you system: sudo yum-config-manager --enable rhel-server-rhscl-7-rpms # 2. Install the collection: sudo yum install -y rh-git29 # 3. Start using the software collection: scl enable rh-git29 bash sudo yum install -y gitflow } install_snx(){ echo " ______________________________________________________________________________________ 14- SNX http://kenfallon.com/how-to-install-checkpoint-ssl-extender-vpn-snx-under-fedora-14/ ______________________________________________________________________________________ " sudo yum update sudo yum install -y install libcanberra-gtk2.i686 pkgconfig.i686 sudo sh +x ~/Download/snx_install.sh } ############################################################################### # Main body of script starts here ############################################################################### echo "Start of script..." echo " ______________________________________________________________________________________ ************************ instalações Disponiveis ************************ ______________________________________________________________________________________ " echo " MENU PRINCIPAL Escolha uma opção pelo numero: @@ -439,7 +487,7 @@ echo " MENU PRINCIPAL " INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "O que deseja instalar agora?" 22 120 14 \ "0" "criar usuarios equipe SUCAN" ON \ "1" "wget, subversion, git, gitk, gitg, htop, glances" OFF \ "2" "Visual Code" OFF \ @@ -452,7 +500,9 @@ INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "9" "Apache Maven" OFF \ "10" "nodejs 6" OFF \ "11" "nodejs 8" OFF \ "12" "docker ce" OFF \ "13" "Update Git to 2.9 from RedHat" OFF \ "14" "Install SNX client" OFF 3>&1 1>&2 2>&3) exitstatus=$? if [ $exitstatus = 0 ]; @@ -473,6 +523,8 @@ then 10) install_node6;; 11) install_node8;; 12) install_docker_ce;; 13) update_git;; 13) install_snx;; *) echo "Opcao Invalida!" ;; esac -
Igor Ferreira revised this gist
Oct 30, 2017 . 1 changed file with 100 additions and 35 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -3,7 +3,7 @@ #https://www.shellscript.sh/functions.html install_gist() { echo " ______________________________________________________________________________________ install bash framework @@ -76,6 +76,9 @@ install_tools() { sudo yum install -y system-config-users sudo yum install -y wget subversion git gitk gitg htop glances terminator sudo yum groupinstall 'Development Tools' sudo yum install -y ntfs-3g fuse sudo yum install -y ntfsprogs ntfsprogs-gnomevfs sudo yum install -y fuse fuse-ntfs-3g dkms dkms-fuse echo " --- instalado - wget, subversion, git, gitk, gitg, htop, glances -- " } @@ -100,24 +103,45 @@ install_visualcode() { install_sublime3() { echo " ______________________________________________________________________________________ 03- instala - sublime -- ______________________________________________________________________________________ " echo " " SUBLIME_VERSION_BUILD=3143 file="~/Downloads/sublime_text_3_build_${SUBLIME_VERSION_BUILD}_x64.tar.bz2" if [ -f "$file" ]; then echo " ja foi feito o download verificar a integridade do arquivo" else wget https://download.sublimetext.com/sublime_text_3_build_${SUBLIME_VERSION_BUILD}_x64.tar.bz2 fi sudo yum clean all sudo yum -y update sudo yum install glibc.i686 sudo yum install -y ftp://rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/glib2-2.50.3-3.el7.i686.rpm sudo yum install -y ftp://rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/libX11-1.6.5-1.el7.i686.rpm sudo yum install -y ftp://rpmfind.net/linux/centos/7.4.1708/os/x86_64/Packages/gtk2-devel-2.24.31-1.el7.i686.rpm tar vxjf sublime_text_3_build_${SUBLIME_VERSION_BUILD}_x64.tar.bz2 rm -rf /opt/sublime_text_3 sudo mv sublime_text_3/ /opt/ sudo ln -s /opt/sublime_text_3/sublime_text /usr/bin/sublime echo " Paste into console: import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) " } @@ -217,13 +241,26 @@ install_spring_studio() { echo " Open a Command Line Terminal Window: Ctrl+Alt+t" echo " Extracting Spring Tool Suite. Double-Click on Archive and Extract into /tmp" file="~/Downloads/spring-tool-suite-3.9.1.RELEASE-e4.7.1a-linux-gtk-x86_64.tar.gz" if [ -f "$file" ]; then echo " ja foi feito o download verificar a integridade do arquivo" else wget http://download.springsource.com/release/STS/3.9.1.RELEASE/dist/e4.7/spring-tool-suite-3.9.1.RELEASE-e4.7.1a-linux-gtk-x86_64.tar.gz fi tar xvzf ~/Downloads/spring-tool-suite*tar.gz -C ~/Downloads/ echo " Relocating Spring Tool Suite Bundle" sudo mv ~/Downloads/sts-bundle /opt/ echo " Symlinking Spring Tool Suite Binary" sudo su -c "ln -s /opt/sts-bundle/sts-3.9.1.RELEASE/STS /usr/local/bin/STS" echo " 05- Instalando Spring Tool Suite IDE --- " } @@ -236,15 +273,21 @@ install_eclipse() { " echo " " echo "downloading... " file="~/Downloads/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz" if [ -f "$file" ]; then echo " ja foi feito o download verificar a integridade do arquivo" else # --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3" \ wget --verbose --debug --no-proxy --output-document="eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz" \ http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 echo " " echo " download ok! " fi tar xvzf ~/Downloads/eclipse-jee-oxygen-1a-linux-gtk*tar.gz #-C ~/Downloads/eclipse-jee-oxygen @@ -273,12 +316,10 @@ install_chrome(){ # gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub # " > /etc/yum.repos.d/google-chrome.repo #yum install google-chrome-stable sudo yum install -y https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm } install_apache_maven() { echo " ______________________________________________________________________________________ 09- Instalando o Apache Maven --- @@ -341,6 +382,31 @@ install_node_official() { } install_docker_ce(){ echo " ______________________________________________________________________________________ 12- Instalando o docker ce ______________________________________________________________________________________ " #sudo yum list docker-ce --showduplicates | sort -r sudo yum install -y yum-utils \ device-mapper-persistent-data \ lvm2 sudo yum-config-manager \ --add-repo \ https://download.docker.com/linux/centos/docker-ce.repo sudo yum install -y docker-ce sudo systemctl start docker # to remove # sudo yum remove docker-ce # sudo rm -rf /var/lib/docker } ############################################################################### # Main body of script starts here @@ -350,7 +416,7 @@ echo " _________________________________________________________________________ ************************ instalações Disponiveis ************************ ______________________________________________________________________________________ " echo " MENU PRINCIPAL Escolha uma opção pelo numero: @@ -365,15 +431,15 @@ echo " MENU PRINCIPAL 09- Apache Maven 10- Node 6 11- Node 8 12- Docker ce OBS. pressione 'ctrl+c' p/ sair sem reiniciar o Linux ______________________________________________________________________________________ " INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "O que deseja instalar agora?" 20 120 13 \ "0" "criar usuarios equipe SUCAN" ON \ "1" "wget, subversion, git, gitk, gitg, htop, glances" OFF \ "2" "Visual Code" OFF \ @@ -385,11 +451,13 @@ INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "8" "Google Chrome Browser" OFF \ "9" "Apache Maven" OFF \ "10" "nodejs 6" OFF \ "11" "nodejs 8" OFF \ "12" "docker ce" OFF 3>&1 1>&2 2>&3) exitstatus=$? if [ $exitstatus = 0 ]; then echo "Sua vc escolheu instalar: " $INSTALACAO case $INSTALACAO in 0) add_users_sucan ;; @@ -402,8 +470,9 @@ if [ $exitstatus = 0 ]; then 7) install_eclipse ;; 8) install_chrome ;; 9) install_apache_maven ;; 10) install_node6;; 11) install_node8;; 12) install_docker_ce;; *) echo "Opcao Invalida!" ;; esac @@ -412,8 +481,4 @@ else fi echo "**********************************End of script****************************************" -
igorferreira created this gist
Oct 27, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,419 @@ #!/usr/bin/env bash #https://www.shellscript.sh/functions.html install_gist(){ echo " ______________________________________________________________________________________ install bash framework ______________________________________________________________________________________ " #source <(VERSION=1.0.0; URL="https://github.com/niieani/bash-oo-framework/releases/download/$VERSION/oo-framework.sh"; RETRIES=3; hash curl 2>/dev/null && curl - sL --retry $RETRIES "$URL" || wget -t $RETRIES -O - -o /dev/null "$URL" || echo "echo 'An error occured while downloading the framework.' && exit 1") # load the type system #import util/log util/exception util/tryCatch util/namedParameters # load the standard library for basic types and type the system #import util/class # sudo wget https://github.com/gmarik/gist.sh/blob/master/gist.sh && chmod 755 gist.sh && mv gist.sh /usr/local/bin/ } add_users_sucan() { echo " ______________________________________________________________________________________ 00- instala - criando usuarios ______________________________________________________________________________________ " echo " " sudo groupadd developers sudo groupadd docker adduser -c "Pedro Marins" p112123 adduser -c "Igor Ferreira" isf0516 adduser -c "Hugo Camargo" hcv0913 usermod -a -G isf0516 isf0516 usermod -a -G wheel isf0516 usermod -a -G developers isf0516 usermod -a -G docker isf0516 usermod -a -G hcv0913 hcv0913 usermod -a -G wheel hcv0913 usermod -a -G developers hcv0913 usermod -a -G docker hcv0913 usermod -a -G p112123 p112123 usermod -a -G wheel p112123 usermod -a -G developers p112123 usermod -a -G docker p112123 sudo list_users sudo chgrp -R developers /opt } list_users(){ cat /etc/passwd | cut -d ":" -f1 } install_tools() { echo " ______________________________________________________________________________________ 01- instala - wget, subversion, git, gitk, gitg, htop, glances -- ______________________________________________________________________________________ " echo " " sudo yum install -y epel-release sudo yum check-update sudo yum install -y system-config-users sudo yum install -y wget subversion git gitk gitg htop glances terminator sudo yum groupinstall 'Development Tools' echo " --- instalado - wget, subversion, git, gitk, gitg, htop, glances -- " } install_visualcode() { echo " ______________________________________________________________________________________ 02- instala - visual code -- ______________________________________________________________________________________ " echo " " sudo rpm --"import https://packages.microsoft.com/keys/microsoft.asc" sudo sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo' #wget "https://go.microsoft.com/fwlink/?LinkID=760867" -O vscode.rpm #sudo yum localinstall vscode.rpm sudo yum check-update sudo yum install code echo " --- instalado - visual code -- " } install_sublime3(){ echo " ______________________________________________________________________________________ 03- instala - sublime -- ______________________________________________________________________________________ " echo " " wget http://c758482.r82.cf2.rackcdn.com/sublime_text_3_build_3059_x32.tar.bz2 tar vxjf sublime_text_3_build_3059_x32.tar.bz2 sudo mv sublime_text_3/ /opt/ sudo ln -s /opt/sublime_text_3/sublime_text /usr/bin/sublime echo " Paste into console: import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) " } install_java8() { echo " ______________________________________________________________________________________ 04- instala - Java 8-- ______________________________________________________________________________________ " echo " Before starting the WildFly install, you will need to install Oracle Java 8 as a prerequisite of WildFly. You can download the latest version of Java from it's official website: http://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.html Once download is complete, extract the downloaded archive to /opt/ directory: " #java_base_version="8" #java_sub_version="151" #java_base_build="12" #java_version="${java_base_version}u${java_sub_version}" #java_build="b${java_base_build}" #java_version_with_build="${java_version}-${java_build}" #http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz cd ~/Downloads #wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ # "http://download.oracle.com/otn-pub/java/jdk/${java_version_with_build}/090f390dda5b47b9b721c7dfaa008135/jdk-${java_version}-linux-x64.rpm" #wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ #"http://download.oracle.com/otn-pub/java/jdk/8u144-b01/090f390dda5b47b9b721c7dfaa008135/jdk-8u144-linux-x64.tar.gz" wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" \ "http://download.oracle.com/otn-pub/java/jdk/8u151-b12/e758a0de34e24606bca991d704f6dcbf/jdk-8u151-linux-x64.tar.gz" sudo tar -xzvf jdk-8*.tar.gz -C /opt/ echo " Next, install Java with the following command:" sudo alternatives --install /usr/bin/java java /opt/jdk1.8.0_144/bin/java 2 sudo alternatives --config java echo " Choose the latest version of Java and press enter. You will also need to setup javac and jar commands path using alternatives: " sudo alternatives --install /usr/bin/jar jar /opt/jdk1.8._111/bin/jar 2 sudo alternatives --install /usr/bin/javac javac /opt/jdk1.8.0_111/bin/javac 2 sudo alternatives --set jar /opt/jdk1.8.0_111/bin/jar sudo alternatives --set javac /opt/jdk1.8.0_111/bin/javac #echo " You will need to configure environment variables for Java for all users. # To do so, create a new file named java.sh and java.csh: # " #sudo nano /etc/profile.d/java.sh } install_wildfly() { echo " ______________________________________________________________________________________ 05- instala - WildFly Application Server -- ______________________________________________________________________________________ " echo " " echo " You can download it using wget with the following command:" wget http://download.jboss.org/wildfly/10.1.0.Final/wildfly-10.1.0.Final.zip echo "Once download is complete, extract the downloaded archive to the /opt/ directory:" sudo unzip wildfly-10.1.0.Final.zip -d /opt/ echo "Now define JBOSS_HOME and the JAVA_HOME path in the standlone.conf file:" sudo nano /opt/wildfly-10.1.0.Final/bin/standalone.conf echo "Add the following lines:" JBOSS_HOME="/opt/wildfly-10.1.0.Final" JAVA_HOME="/opt/jdk1.8.0_111" echo "You can also set JBOSS_HOME system wide by editing /etc/profile file:" sudo nano /etc/profile echo "Add the following line:" JBOSS_HOME="/opt/wildfly-10.1.0.Final" echo "Save and close the file, when you are finished" } install_spring_studio() { echo " ______________________________________________________________________________________ 06- Instalando Spring Tools Suite IDE --- ______________________________________________________________________________________ " echo " " echo " Download Latest Spring Tool Suite IDE for Linux: pring Tool Suite tar.gz 32/64bit " echo " Open a Command Line Terminal Window: Ctrl+Alt+t" echo " Extracting Spring Tool Suite. Double-Click on Archive and Extract into /tmp" tar xvzf ~/Downloads/spring-tool-suite*tar.gz -C /tmp/ echo " Relocating Spring Tool Suite Bundle" sudo mv ~/Downloads/sts-bundle /opt/ echo " Symlinking Spring Tool Suite Binary" sudo su -c "ln -s /opt/sts-bundle/sts-3.6.4.RELEASE/STS /usr/local/bin/STS" echo " 05- Instalando Spring Tool Suite IDE --- " } install_eclipse() { echo " ______________________________________________________________________________________ 07- Instalando eclipse IDE --- ______________________________________________________________________________________ " echo " " echo "downloading... " wget \ --user-agent="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.3) Gecko/2008092416 Firefox/3.0.3" \ --verbose \ --debug \ --no-proxy \ --output-document="eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz" \ http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 echo " " echo " download ok! " tar xvzf ~/Downloads/eclipse-jee-oxygen-1a-linux-gtk*tar.gz #-C ~/Downloads/eclipse-jee-oxygen echo "Relocating Eclipse to opt" sudo mv ~/Downloads/eclipse /opt/ #sudo mv ~/Downloads/eclipse-jee-oxygen/eclipse /opt/ echo "Symlinking Spring Tool Suite Binary" sudo su -c "ln -s /opt/eclipse/eclipse /usr/local/bin/eclipse" #http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/oxygen/1a/eclipse-jee-oxygen-1a-linux-gtk-x86_64.tar.gz&mirror_id=576 } install_chrome(){ echo " ______________________________________________________________________________________ 08- Instalando o Google Chrome Browser --- ______________________________________________________________________________________ " #sudo echo " [google64] # name=Google - x86_64 # baseurl=http://dl.google.com/linux/rpm/stable/x86_64 # enabled=1 # gpgcheck=1 # gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub # " > /etc/yum.repos.d/google-chrome.repo #yum install google-chrome-stable yum install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm } install_apache_maven() { echo " ______________________________________________________________________________________ 09- Instalando o Apache Maven --- ______________________________________________________________________________________ " echo "Fazer o download do arquivo do Maven: https://maven.apache.org/download.cgi" echo "Extraia o arquivo:" unzip apache-maven-3.5.2-bin.zip "ou tar xzvf apache-maven-3.5.2-bin.tar.gz" echo "Unix-based Operating System (Linux, Solaris and Mac OS X) Tips" echo $JAVA_HOME # /Library/Java/JavaVirtualMachines/jdk1.8.0_45.jdk/Contents/Home echo "Adicionar ao PATH" export PATH=/opt/apache-maven-3.5.2/bin:$PATH echo " --- Instalando o Apache Maven ---" } install_node6() { echo " ______________________________________________________________________________________ 10- Instalando o nodejs 6 --- Referencia: https://nodejs.org/en/download/package-manager/ ______________________________________________________________________________________ " sudo yum install gcc-c++ make curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash - sudo yum -y install nodejs } install_node8() { echo " ______________________________________________________________________________________ 11- Instalando o nodejs 8 --- Referencia: https://nodejs.org/en/download/package-manager/ ______________________________________________________________________________________ " sudo yum install gcc-c++ make curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash - sudo yum -y install nodejs } install_node_official() { echo " ______________________________________________________________________________________ 11- Instalando o nodejs official --- Referencia: https://nodejs.org/en/download/package-manager/ Enterprise Linux (RHEL and CentOS) users may use the Node.js and npm packages from the EPEL repository. ______________________________________________________________________________________ " sudo yum install nodejs npm --enablerepo=epel } ############################################################################### # Main body of script starts here ############################################################################### echo "Start of script..." echo " ______________________________________________________________________________________ ************************ instalações Disponiveis ************************ ______________________________________________________________________________________ " echo " MENU PRINCIPAL Escolha uma opção pelo numero: 01- tools: wget, subversion, git, gitk, gitg, htop, glances 02- Visual Code 03- Sublime text 3 04- Java 8 05- WildFly Application Server 06- Spring Tools Suite IDE 07- eclipse IDE + **Sonar Lint 08- Google Chrome Browser 09- Apache Maven 10- Node 6 11- Node 8 OBS. pressione 'ctrl+c' p/ sair sem reiniciar o Linux ______________________________________________________________________________________ " #!/bin/bash INSTALACAO=$(whiptail --title "instalações Disponiveis" --radiolist \ "O que deseja instalar agora?" 19 120 12 \ "0" "criar usuarios equipe SUCAN" ON \ "1" "wget, subversion, git, gitk, gitg, htop, glances" OFF \ "2" "Visual Code" OFF \ "3" "Sublime text 3" OFF \ "4" "Java 8" OFF \ "5" "WildFly Application Server" OFF \ "6" "Spring Tools Suite IDE" OFF \ "7" "eclipse IDE" OFF \ "8" "Google Chrome Browser" OFF \ "9" "Apache Maven" OFF \ "10" "nodejs 6" OFF \ "11" "nodejs 8" OFF 3>&1 1>&2 2>&3) exitstatus=$? if [ $exitstatus = 0 ]; then echo "Sua vc escolheu instalar:" $INSTALACAO case $INSTALACAO in 0) add_users_sucan ;; 1) install_tools ;; 2) install_visualcode ;; 3) install_sublime3 ;; 4) install_java8 ;; 5) install_wildfly ;; 6) install_spring_studio ;; 7) install_eclipse ;; 8) install_chrome ;; 9) install_apache_maven ;; 10) install_node6;; 11) install_node8;; *) echo "Opcao Invalida!" ;; esac else echo "Você cancelou." fi echo "**********************************End of script****************************************"