Showing posts with label CentOS. Show all posts
Showing posts with label CentOS. Show all posts
Tuesday, April 9, 2019
Wednesday, December 5, 2018
curl: (60) Peer's Certificate issuer is not recognized
After our company implements stricter rules, I can't install docker in my vagrant properly. I have been solving this issue for about a week and its hard to point out the correct solution until I found from stackoverflow.
add this in vagrant file
config.vm.box_download_ca_cert = "./Fortinet_CA_SSL.cer"
https://stackoverflow.com/questions/47676980/curl-60-peers-certificate-issuer-is-not-recognized
add this in vagrant file
config.vm.box_download_ca_cert = "./Fortinet_CA_SSL.cer"
Finally fixed it. Post the answer here as reference.
- Export company trusted root certificate with .cer extension. Somthing naming external root certificate
- Convert the ca file to .pem file using
openssl x509 -in xxx.cer -inform der -outform pem -out xxx.pem
Then on the centos 7 os:
- Install the ca-certificates package: yum install ca-certificates
- Enable the dynamic CA configuration feature: update-ca-trust force-enable
- Add the exported pem files to /etc/pki/ca-trust/source/anchors/
- Use command: update-ca-trust extract
https://stackoverflow.com/questions/47676980/curl-60-peers-certificate-issuer-is-not-recognized
Wednesday, July 25, 2018
Monday, June 18, 2018
VBoxGuestAdditions in vagrant centos
1. sudo yum update && sudo yum -y install kernel-headers kernel-devel
2. manually by downloading the iso file inside VM (e.g. wget) and installing it, e.g.
wget http://download.virtualbox.org/virtualbox/5.0.16/VBoxGuestAdditions_5.0.16.iso -P /tmp
(read only to write permission)
sudo chmod 777 /tmp/VBoxGuestAdditions_5.0.16.iso
sudo mount -o loop /tmp/VBoxGuestAdditions_5.0.16.iso /mnt
(install libraries)
sudo yum -y install gcc
sudo yum install freeglut-devel
sudo yum install mesa*
sudo sh -x /mnt/VBoxLinuxAdditions.run # --keep
forget all the commands above , just download the geerlingguy/centos7
that's it!!! voila
Thursday, May 10, 2018
Vagrant centos version
I spent almost 3 hours figuring out this issue I have just encountered.
In my personal laptop, I plan to install centos/7 box but I got some weird issue. Something like permission thing, after an hour of fixing still I can't solve my problem.
So, I switch to bento/centos-6-7 and it works. It downloads the box and installed it. However when I try to clone the git repo. I got another issue. something in the git.
so, I downloaded again another box but this time, it is bento/centos7-2. hopefully, it will work now.
In my personal laptop, I plan to install centos/7 box but I got some weird issue. Something like permission thing, after an hour of fixing still I can't solve my problem.
So, I switch to bento/centos-6-7 and it works. It downloads the box and installed it. However when I try to clone the git repo. I got another issue. something in the git.
so, I downloaded again another box but this time, it is bento/centos7-2. hopefully, it will work now.
Monday, February 19, 2018
Install VirtualBox guest additions in CentOS
Open up the virtualbox centos gui
type:
su -
yum update kernel*
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
reboot
insert virtual optical disk in settings
mount /dev/cdrom /mnt
cd /mnt
./VBoxLinuxAdditions.run
Merci!
References:
http://nanxiao.me/en/install-virtualbox-guest-additions/
type:
su -
yum update kernel*
yum -y install kernel-devel kernel-headers dkms gcc gcc-c++
reboot
insert virtual optical disk in settings
mount /dev/cdrom /mnt
cd /mnt
./VBoxLinuxAdditions.run
Merci!
References:
http://nanxiao.me/en/install-virtualbox-guest-additions/
Monday, January 1, 2018
How to connect shared folder in virtual box using centos
sudo mount -t vboxsf repo2 /home/devlynard/data/vbroker
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 docker-ce
yum list docker-ce --showduplicates | sort -r
docker-ce.x86_64 17.12.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.09.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.09.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.2.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.06.0.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.2.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.1.ce-1.el7.centos docker-ce-stable
docker-ce.x86_64 17.03.0.ce-1.el7.centos docker-ce-stable
sudo yum install docker-ce-17.09.1.ce
sudo systemctl start docker
sudo usermod -aG docker $USER
https://www.youtube.com/watch?v=EYVO4kEQomE
https://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/
UPDATED: 9 Jan 2018
I have successfully connected my working directory from host(Windows) to server(virtualbox running centos)
1. add shared folder in virtual box settings.
2. mount below folders
sudo mount -t vboxsf repo2 /home/devlynard/odoo9/app/customaddons
3. add command at start up
edit etc/rc.d/rc.local
make it executable
Eureka!
UPDATED: 9 Jan 2018
I have successfully connected my working directory from host(Windows) to server(virtualbox running centos)
1. add shared folder in virtual box settings.
2. mount below folders
sudo mount -t vboxsf repo2 /home/devlynard/odoo9/app/customaddons
3. add command at start up
edit etc/rc.d/rc.local
make it executable
Eureka!
Sunday, December 31, 2017
How to install samba in centos
http://www.techotopia.com/index.php/Sharing_Files_between_CentOS_6_and_Windows_Systems_with_Samba
https://www.cyberciti.biz/faq/unix-create-user-account/
found this , i think this is the right one
https://www.youtube.com/watch?v=EYVO4kEQomE
https://www.if-not-true-then-false.com/2010/install-virtualbox-guest-additions-on-fedora-centos-red-hat-rhel/
How to install GIT in centos
yum install git
Reference:
https://www.rosehosting.com/blog/how-to-install-git-on-centos-7/
Reference:
https://www.rosehosting.com/blog/how-to-install-git-on-centos-7/
Saturday, December 30, 2017
No internet connection in fresh install CentOs
ip addr show
ifup enp0s3
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
https://www.youtube.com/watch?v=QeMCnkq9W10
ifup enp0s3
vi /etc/sysconfig/network-scripts/ifcfg-enp0s3
https://www.youtube.com/watch?v=QeMCnkq9W10
Subscribe to:
Posts (Atom)
free online comma separating tool
https://delim.co/#
-
In my current company, I'm using Visual Paradigm for my documentation task. If you go there site, you can either download community and ...
-
I spend many days to figure it out my problem in Vagrant. After I posted my question in stackoverflow, nobody is helping me instead they dow...
-
I used KeePass long time ago and until now I'm still using it. It's a great tool to save your password encrypted. At my home, I sa...
