Friday, July 31, 2020
Friday, July 24, 2020
Thursday, July 23, 2020
How to set Jenkins user as root
to set root user for Jenkins to follow below steps for CentOs
1. Open up the script
vim /etc/sysconfig/jenkins
2. Find this
$JENKINS_USER
and change to “root”:$JENKINS_USER="root"
3. Then change the ownership of Jenkins home, webroot and logs:
chown -R root:root /var/lib/jenkins
chown -R root:root /var/cache/jenkins
chown -R root:root /var/log/jenkins
4) Restart Jenkins and check the user has been changed:
service jenkins restart
Friday, July 17, 2020
Wednesday, July 15, 2020
Saturday, July 11, 2020
Create a New Sudo User in AWS EC2 (Ubuntu AMI)
Create a New Sudo User in AWS EC2
(Ubuntu AMI)
Log in your Ec2 Instance using “ec2-user”
ssh ec2-user@<ip> -i <ssh key>
|
Log in to your server as the root user.
ubuntu@ip-172-31-24-53:~$ sudo -i
root@ip-172-31-24-53:~# |
Use the adduser command to add a new user to your system.
adduser <username>
root@ip-172-31-24-53:~# adduser test
|
Set and confirm the new user’s password at the prompt. Use
strong password to secure account
strong password to secure account
root@ip-172-31-24-53:~# passwd test
Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully |
Use the usermod command to add the user to the sudo group.
usermod -aG sudo username
root@ip-172-31-24-53:~# usermod -aG sudo test
|
By default, on Ubuntu, members of the sudo group have sudo privileges.
Test sudo access on new user account
Use the su command to switch to the new user account.
root@ip-172-31-24-53:~# su test
su - username
|
As the new user, verify that you can use sudo by prepending “sudo” to the command
that you want to run with superuser privileges.
that you want to run with superuser privileges.
test@ip-172-31-24-53:/root$ sudo ls -la /root
|
Thursday, July 9, 2020
Installing JFrog Artifactory on CentOS / RHEL 7
Installing JFrog Artifactory on CentOS / RHEL 7
Artifactory is a universal repository manager created by JFrog.
A repository manager is a software application designed to manage binary
components related to an application. Being a universal repository manager,
Artifactory supports all major packaging formats like Apache Maven, Gradle,
Docker and many more.
# Upgrade to Java-8 sudo yum install java-1.8.0 sudo yum remove java-1.7.0-openjdk
#Setting up JAVA_HOME Environment Variable
echo "export /
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64"/ >> /etc/profile
. /etc/profile
env | grep JAVA
JAVA_HOME=/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.191.b12-1.el7_6.x86_64
# Installing Artifactory wget https://bintray.com/jfrog/artifactory-rpms/rpm -O / bintray-jfrog-artifactory-rpms.repo sudo mv bintray-jfrog-artifactory-rpms.repo /etc/yum.repos.d/ sudo yum install jfrog-artifactory-oss
echo "export ARTIFACTORY_HOME=/opt/jfrog/artifactory" >> /etc/profile
. /etc/profile
env | grep ARTIFACTORY_HOME
ARTIFACTORY_HOME=/opt/jfrog/artifactory
# Setup Service sudo service artifactory start |
Monday, July 6, 2020
Thursday, July 2, 2020
Wednesday, July 1, 2020
Subscribe to:
Posts (Atom)
Wireless Security Configuration: Protect Your Network Now!
Introduction: In today’s connected world, wireless networks are as common as smartphones, and they’re often the gateway to our personal, pr...
-
sudo apt update sudo apt install ubuntu-desktop sudo apt install tightvncserver sudo apt install gnome-panel gnome-settings-daemon metac...
-
How to Setup GUI on Amazon EC2 Ubuntu Server Amazon EC2 Linux servers do not come with GUI, all the operations have to be done using ssh co...
-
Amazon ElastiCache Managed, in-memory data store services. Choose Redis or Memcached to power real-time applications. Amazon...