This file contains 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 characters
Step 1: sudo apt update && sudo apt upgrade | |
Step 2: sudo sed -i 's/^PasswordAuthentication no/PasswordAuthentication yes/' /etc/ssh/sshd_config | |
Step 3 : sudo /etc/init.d/ssh restart | |
Step 4 : sudo passwd Ubuntu | |
Step 5 : sudo apt install xrdp xfce4 xfce4-goodies tightvncserver | |
Step 6 : echo xfce4-session> /home/ubuntu/.xsession | |
Step 7: sudo cp /home/ubuntu/.xsession /etc/skel | |
Step 8 : sudo sed -i '0,/-1/s//ask-1/' /etc/xrdp/xrdp.ini | |
Step 9 : sudo service xrdp restart | |
Optional |
This file contains 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 characters
node{ | |
stage('SCM Checkout'){ | |
//svn credentialsId: 'svn_credentails', remote:'http://86.62.223.182:81/svn/holoteq/Mood_microservice/spring-web' | |
checkout([$class: 'SubversionSCM', filterChangelog: false, ignoreDirPropChanges: false, locations: [[cancelProcessOnExternalsFail: true, credentialsId: 'svn_credentails', depthOption: 'infinity', ignoreExternalsOption: true, local: '.', remote: 'http://86.62.223.182:81/svn/holoteq/Mood_microservice']], quietOperation: true, workspaceUpdater: [$class: 'UpdateUpdater']]) | |
} | |
stage('Mvn Package'){ | |
sh label: '', script: 'mvn clean install' | |
} | |
stage('Build Artifacts'){ |
This file contains 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 characters
#to remove install package | |
yum remove <package name> | |
#to search for package | |
which <package name> | |
#to see all install software | |
yum list installed | |
#to install openfire server | |
sudo rpm -ivh openfire-4.5.1-1.x86_64.rpm |
This file contains 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 characters
#To check log messages | |
sudo more /var/log/messages | |
#To check logs to perticular application | |
sudo more /var/log/messages | grep jenkins | |
#To to check users activity | |
sudo cat /var/log/audit/audit.log | grep applicationName |
This file contains 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 characters
#To check log messages | |
sudo more /var/log/messages | |
#To check logs to perticular application | |
sudo more /var/log/messages | grep jenkins | |
#To to check users activity | |
sudo cat /var/log/audit/audit.log | grep applicationName |
This file contains 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 characters
<plugin> | |
<!-- <groupId>org.springframework.boot</groupId> | |
<artifactId>spring-boot-maven-plugin</artifactId> --> | |
<groupId>org.jacoco</groupId> | |
<artifactId>jacoco-maven-plugin</artifactId> | |
<version>0.8.5</version> | |
<executions> | |
<execution> | |
<id>pre-unit-test</id> | |
<goals> |
This file contains 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 characters
node { | |
//tool name: '', type: 'maven' | |
stage('Enviroment variable'){ | |
env.nexusVersion="nexus3" | |
env.nexusProtocol = "http" | |
env.nexusUrl = "13.233.237.222:8081" | |
env.nexusRepository = "auction-snapshot" | |
env.nexuscredentialsId = "nexus" | |
} | |
environment{ |
This file contains 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 characters
#copy file to s3 bucket | |
aws --region ap-south-1 s3 cp zoomLinuxall.tar.gz s3://zoomlinuxnazer | |
#make zip file | |
tar cvf zoomLinuxall.tar.gz zoom/ | |
#create bucket | |
aws --region ap-south-1 s3 mb bucketname | |
#to copy derictory | |
aws --region ap-south-1 s3 cp --recursive zoom s3://zoomlinuxnazer |
This file contains 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 characters
#dowload the latest version | |
sudo wget https://download.sonatype.com/nexus/3/latest-unix.tar.gz | |
#untar the download file | |
sudo tar -xf latest-unix.tar.gz | |
# change to ownership | |
sudo chown -R ec2-user:ec2-user sonatype-work/ nexus3/ | |
#list java packages | |
sudo yum list | grep java-1.8.0 | |
#install java | |
sudo yum install java-1.8.0-openjdk -y |
This file contains 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 characters
#to check the version of jenkins | |
sudo rpm -qa | grep jenkins | |
#create folder jenkins-war | |
sudo mkdir /jenkins-war ; cd /jenkins-war | |
#copy file of jenkins war folder to take back up | |
sudo cp -p /usr/lib/jenkins/jenkins.war jenkins.war.orig | |
#dowload latest jenkins updated file | |
sudo wget http://updates.jenkins-ci.org/download/war/(version)/jenkins.war | |
#to chake updated version of jenkins | |
https://jenkins.io/changelog-stable/ |
NewerOlder