pratyushanurag

Untitled

Mar 26th, 2019
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.34 KB | None | 0 0
  1. One liner script solution:
  2.  
  3. https://community.openhab.org/t/solved-grafana-repository-error-no-pubkey/66664
  4.  
  5. curl -s https://packagecloud.io/install/repositories/grafana/stable/script.deb.sh | sudo bash
  6.  
  7.  
  8. To install it, first add the webupd8 repository for this programv needs the web X utility to be installed:
  9.  
  10. sudo add-apt-repository ppa:webupd8team/y-ppa-manager
  11.  
  12. Update your software list and install Y-PPA-Manager:
  13.  
  14. sudo apt-get update
  15. sudo apt-get install y-ppa-manager
  16.  
  17. Run y-ppa-manager (i.e. type y-ppa-manager then press enter key).
  18.  
  19. When the main y-ppa-manager window appears, click on "Advanced."
  20.  
  21. From the list of advanced tasks, select "Try to import all missing GPG keys" and click OK.
  22.  
  23. ######################################################
  24.  
  25. sudo wget https://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpm
  26. sudo yum install mysql-community-server -y
  27.  
  28. https://aws.amazon.com/premiumsupport/knowledge-center/ec2-enable-epel/
  29. https://smartechie.com/srplilu0gmail-com/trending/installing-maven-using-yum-on-ec2-instance-amazon-linux/
  30.  
  31. JDK switch commands
  32. sudo wget --no-check-certificate --no-cookies --header "Cookie: oraclelicense=accept-securebackup-cookie" http://download.oracle.com/otn-pub/java/jdk/8u141-b15/336fa29ff2bb4ef291e347e091f7f4a7/jdk-8u141-linux-x64.rpm
  33.  
  34. sudo yum install -y jdk-8u141-linux-x64.rpm
  35.  
  36. sudo /usr/sbin/alternatives --install /usr/bin/java java /usr/java/<java version you installed>/bin/java 20000
  37.  
  38. sudo /usr/sbin/alternatives --config java
  39.  
  40.  
  41. mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
  42.  
  43. Apache-tomcat acces from remote host or IP:
  44. https://stackoverflow.com/questions/36703856/access-tomcat-manager-app-from-different-host
  45. https://serverfault.com/questions/796960/how-to-access-tomcat-manager-gui-from-another-machine
  46.  
  47. tomcat-user.xml entry
  48. <role rolename="manager-gui"/>
  49. <role rolename="manager-script"/>
  50. <role rolename="manager-jmx"/>
  51. <role rolename="manager-status"/>
  52. <user username="tomcat" password="password" roles="manager-gui,manager-script,manager-jmx,manager-status"/>
  53.  
  54. webapps/manager/META-INF/context.xml
  55. allow="^.*$"
  56.  
  57. https://medium.com/@khandelwal12nidhi/ansible-setup-on-aws-ec2-instance-d83fac41fcc8
  58.  
  59. https://www.youtube.com/watch?v=hwrYURP4O2k
Add Comment
Please, Sign In to add comment